From 7ea463ed0833ef51cfb989b0e03bc8c6247b4138 Mon Sep 17 00:00:00 2001 From: kdletters Date: Sat, 18 Jul 2026 22:02:22 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=80=E5=BD=B9=E6=97=A7=E5=88=9B=E4=BD=9C?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E4=B8=9A=E5=8A=A1=E5=B9=B6=E4=BF=9D=E7=95=99?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=A3=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 保留 SpacetimeDB 历史表、迁移白名单与最小兼容读取定义 移除旧创作前后端、worker、业务过程及纯业务 crate 的编译依赖 恢复现役创作、项目、我的入口及桌面移动导航 收紧 Vite、TypeScript、ESLint、Vitest 与静态资源退役边界 补齐开发栈、网关、原生壳和文档退役约束 --- .env.example | 7 - .eslintrc.cjs | 55 ++ deploy/container/README.md | 42 +- deploy/container/api-server.env.example | 2 - deploy/container/docker-compose.loadtest.yml | 26 - deploy/container/nginx.conf | 3 +- deploy/env/api-server.env.example | 5 - deploy/nginx/genarrative-dev-http.conf | 3 +- deploy/nginx/genarrative.conf | 3 +- deploy/pingora/nginx-route-parity.matrix.json | 23 + deploy/pingora/pingora-gateway.env.example | 6 - .../shared-memory/decision-log.md | 15 +- .../shared-memory/development-workflow.md | 22 +- docs/project-memory/shared-memory/pitfalls.md | 4 + .../shared-memory/project-overview.md | 4 +- ...latformSelectionStageModel收口计划-2026-06-04.md | 2 + ...端架构】外部生成Worker化方案-2026-06-03.md | 2 + ...架构】统一公开作品ReadModel设计-2026-05-26.md | 2 + ...开发运维】Pingora独立网关试点-2026-06-11.md | 22 +- ...构下线】旧创作模板业务退役方案-2026-07-17.md | 31 +- ...ExpoReactNative与Tauri宿主壳方案-2026-06-17.md | 22 +- ...前端架构】宿主壳能力统一协议-2026-06-17.md | 8 +- ...规范】Agent工作入口与执行准则-2026-06-22.md | 2 +- ...】server-rs与SpacetimeDB数据契约-2026-05-15.md | 63 +- ...发运维】本地开发验证与生产运维-2026-05-15.md | 45 +- ...【技术方案】微信虚拟支付接入-2026-05-26.md | 5 - ...作】创作主页与项目入口改版计划-2026-06-18.md | 2 + ...玩法创作】平台入口与玩法链路-2026-05-15.md | 5 +- miniprogram/app.json | 3 +- miniprogram/config.js | 5 - miniprogram/host-bridge/dispatch.js | 2 - miniprogram/host-bridge/protocol.js | 8 - miniprogram/host-bridge/protocol.test.js | 15 - package.json | 4 +- packages/shared/src/contracts/auth.ts | 7 - .../shared/src/contracts/hostBridge.test.ts | 1 - packages/shared/src/contracts/hostBridge.ts | 1 - .../host-bridge/subscribeMessage.js | 0 .../host-bridge/subscribeMessage.test.js | 0 .../pages/subscribe-message/index.js | 0 .../pages/subscribe-message/index.json | 0 .../pages/subscribe-message/index.wxml | 0 .../pages/subscribe-message/index.wxss | 0 .../miniprogram}/shell/subscribeMessage.js | 0 .../shell/subscribeMessage.test.js | 0 scripts/check-api-server-env.mjs | 2 +- scripts/check-module-runtime-artifact.mjs | 367 ++++++++++++ scripts/check-native-shells.mjs | 94 +-- scripts/check-pingora-canary-docker.mjs | 6 - scripts/check-pingora-gateway-smoke.mjs | 17 +- scripts/check-pingora-route-parity.mjs | 3 +- scripts/check-production-ops-guardrails.mjs | 5 - scripts/container-compose.mjs | 5 +- scripts/container-worker-smoke.mjs | 4 +- scripts/loadtest/README.md | 2 + scripts/vite-retired-css-plugin.test.ts | 216 ++++++- server-rs/Cargo.lock | 551 ++---------------- server-rs/Cargo.toml | 4 +- server-rs/crates/api-server/Cargo.toml | 1 - server-rs/crates/api-server/src/admin.rs | 43 +- server-rs/crates/api-server/src/app.rs | 20 +- server-rs/crates/api-server/src/auth.rs | 120 +--- .../crates/api-server/src/backpressure.rs | 149 +---- .../src/character_animation_assets.rs | 2 +- server-rs/crates/api-server/src/config.rs | 142 ----- .../crates/api-server/src/editor_agent.rs | 6 +- .../crates/api-server/src/editor_project.rs | 6 +- .../src/editor_screen_background_decision.rs | 4 +- server-rs/crates/api-server/src/main.rs | 1 + .../src/modules/platform_support.rs | 10 + .../crates/api-server/src/runtime_settings.rs | 35 +- server-rs/crates/api-server/src/state.rs | 43 +- server-rs/crates/api-server/src/telemetry.rs | 39 +- server-rs/crates/api-server/src/tracking.rs | 145 ++++- server-rs/crates/module-runtime/Cargo.toml | 1 - .../crates/module-runtime/src/application.rs | 20 + .../crates/module-runtime/src/commands.rs | 24 +- server-rs/crates/module-runtime/src/domain.rs | 68 +++ server-rs/crates/module-runtime/src/errors.rs | 27 +- server-rs/crates/module-runtime/src/lib.rs | 18 +- server-rs/crates/pingora-gateway/src/main.rs | 86 +-- server-rs/crates/platform-auth/src/lib.rs | 176 ------ server-rs/crates/platform-llm/src/lib.rs | 1 + server-rs/crates/platform-wechat/src/lib.rs | 6 +- .../platform-wechat/src/subscribe_message.rs | 112 ---- server-rs/crates/shared-contracts/src/auth.rs | 9 - .../crates/shared-contracts/src/runtime.rs | 30 +- .../crates/spacetime-client/src/active.rs | 4 - .../spacetime-client/src/active/mapper.rs | 6 +- .../src/active/mapper/runtime.rs | 67 +++ .../spacetime-client/src/active/runtime.rs | 57 ++ .../spacetime-client/src/module_bindings.rs | 40 +- .../module_bindings/accept_quest_reducer.rs | 68 --- .../acknowledge_quest_completion_reducer.rs | 68 --- .../admin_list_work_visibility_procedure.rs | 59 -- .../admin_update_work_visibility_procedure.rs | 59 -- .../admin_work_visibility_list_input_type.rs | 15 - ...k_visibility_list_procedure_result_type.rs | 19 - ...n_work_visibility_procedure_result_type.rs | 19 - .../admin_work_visibility_snapshot_type.rs | 27 - ...admin_work_visibility_update_input_type.rs | 18 - ...vance_puzzle_clear_next_level_procedure.rs | 59 -- .../advance_puzzle_next_level_procedure.rs | 59 -- ...l_novel_runtime_history_entry_procedure.rs | 62 -- ...ssion_ledger_entry_and_return_procedure.rs | 62 -- ...hapter_progression_ledger_entry_reducer.rs | 73 --- .../apply_inventory_mutation_reducer.rs | 68 --- .../apply_quest_signal_reducer.rs | 68 --- .../bark_battle_draft_config_snapshot_type.rs | 24 - ...k_battle_draft_config_upsert_input_type.rs | 22 - .../bark_battle_draft_create_input_type.rs | 25 - .../bark_battle_gallery_view_row_type.rs | 112 ---- .../bark_battle_gallery_view_table.rs | 114 ---- .../bark_battle_procedure_result_type.rs | 23 - .../bark_battle_run_finish_input_type.rs | 32 - .../bark_battle_run_get_input_type.rs | 16 - .../bark_battle_run_snapshot_type.rs | 31 - .../bark_battle_run_start_input_type.rs | 23 - ...rk_battle_runtime_config_get_input_type.rs | 16 - ...ark_battle_runtime_config_snapshot_type.rs | 24 - .../bark_battle_work_delete_input_type.rs | 16 - .../bark_battle_work_publish_input_type.rs | 19 - .../battle_state_input_type.rs | 34 -- .../battle_state_procedure_result_type.rs | 19 - .../battle_state_query_input_type.rs | 15 - .../battle_state_snapshot_type.rs | 46 -- ...egin_story_session_and_return_procedure.rs | 59 -- .../begin_story_session_reducer.rs | 68 --- .../big_fish_agent_message_snapshot_type.rs | 23 - .../big_fish_anchor_item_type.rs | 20 - .../big_fish_anchor_pack_type.rs | 20 - .../big_fish_anchor_status_type.rs | 22 - .../big_fish_asset_coverage_type.rs | 20 - .../big_fish_asset_generate_input_type.rs | 23 - .../big_fish_asset_slot_snapshot_type.rs | 26 - .../big_fish_background_blueprint_type.rs | 22 - .../big_fish_draft_compile_input_type.rs | 18 - .../big_fish_gallery_view_table.rs | 114 ---- .../big_fish_game_draft_type.rs | 25 - .../big_fish_input_submit_input_type.rs | 19 - .../big_fish_level_blueprint_type.rs | 29 - .../big_fish_message_finalize_input_type.rs | 25 - .../big_fish_message_submit_input_type.rs | 20 - .../big_fish_play_record_input_type.rs | 18 - .../big_fish_publish_input_type.rs | 17 - .../big_fish_run_get_input_type.rs | 16 - .../big_fish_run_procedure_result_type.rs | 19 - .../big_fish_run_start_input_type.rs | 18 - .../big_fish_runtime_entity_snapshot_type.rs | 21 - .../big_fish_runtime_params_type.rs | 23 - .../big_fish_runtime_snapshot_type.rs | 31 - .../big_fish_session_create_input_type.rs | 20 - .../big_fish_session_get_input_type.rs | 16 - .../big_fish_session_procedure_result_type.rs | 19 - .../big_fish_session_snapshot_type.rs | 36 -- .../module_bindings/big_fish_vector_2_type.rs | 16 - .../big_fish_work_delete_input_type.rs | 16 - .../big_fish_work_like_record_input_type.rs | 17 - .../big_fish_work_remix_input_type.rs | 19 - .../big_fish_work_summary_snapshot_type.rs | 97 --- .../big_fish_works_list_input_type.rs | 16 - .../big_fish_works_procedure_result_type.rs | 19 - .../chapter_progression_get_input_type.rs | 16 - .../chapter_progression_input_type.rs | 31 - .../chapter_progression_ledger_input_type.rs | 21 - ...apter_progression_procedure_result_type.rs | 19 - .../chapter_progression_snapshot_type.rs | 36 -- .../checkpoint_wooden_fish_run_procedure.rs | 59 -- ...uzzle_background_compile_task_procedure.rs | 59 -- ...m_puzzle_work_point_incentive_procedure.rs | 59 -- ...orm_browse_history_and_return_procedure.rs | 59 -- .../click_match_3_d_item_procedure.rs | 59 -- .../compile_big_fish_draft_procedure.rs | 59 -- ...ustom_world_published_profile_procedure.rs | 62 -- .../compile_jump_hop_draft_procedure.rs | 59 -- .../compile_match_3_d_draft_procedure.rs | 59 -- .../compile_puzzle_agent_draft_procedure.rs | 59 -- .../compile_puzzle_clear_draft_procedure.rs | 59 -- .../compile_square_hole_draft_procedure.rs | 59 -- ...ile_visual_novel_work_profile_procedure.rs | 59 -- .../compile_wooden_fish_draft_procedure.rs | 59 -- .../consume_inventory_item_input_type.rs | 16 - .../continue_story_and_return_procedure.rs | 59 -- .../module_bindings/continue_story_reducer.rs | 68 --- .../create_bark_battle_draft_procedure.rs | 59 -- ...reate_battle_state_and_return_procedure.rs | 59 -- .../create_battle_state_reducer.rs | 68 --- .../create_big_fish_session_procedure.rs | 59 -- ...te_custom_world_agent_session_procedure.rs | 59 -- ...create_jump_hop_agent_session_procedure.rs | 59 -- ...reate_match_3_d_agent_session_procedure.rs | 59 -- .../create_puzzle_agent_session_procedure.rs | 59 -- ...te_puzzle_clear_agent_session_procedure.rs | 59 -- ...ate_square_hole_agent_session_procedure.rs | 59 -- ...te_visual_novel_agent_session_procedure.rs | 59 -- ...ate_wooden_fish_agent_session_procedure.rs | 59 -- ...tion_entry_config_procedure_result_type.rs | 19 - .../creation_entry_config_snapshot_type.rs | 27 - ...eation_entry_event_banner_snapshot_type.rs | 22 - ...y_event_banners_admin_upsert_input_type.rs | 15 - ...creation_entry_start_card_snapshot_type.rs | 18 - ...tion_entry_type_admin_upsert_input_type.rs | 26 - ...creation_entry_type_modal_snapshot_type.rs | 16 - .../creation_entry_type_snapshot_type.rs | 27 - ...m_world_agent_action_execute_input_type.rs | 20 - ..._world_agent_action_execute_result_type.rs | 19 - ..._world_agent_card_detail_get_input_type.rs | 17 - ...world_agent_message_finalize_input_type.rs | 41 -- ...ustom_world_agent_message_snapshot_type.rs | 24 - ...m_world_agent_message_submit_input_type.rs | 20 - ...om_world_agent_operation_get_input_type.rs | 17 - ...d_agent_operation_procedure_result_type.rs | 19 - ...rld_agent_operation_progress_input_type.rs | 27 - ...tom_world_agent_operation_snapshot_type.rs | 27 - ...m_world_agent_session_create_input_type.rs | 32 - ...stom_world_agent_session_get_input_type.rs | 16 - ...rld_agent_session_procedure_result_type.rs | 19 - ...ustom_world_agent_session_snapshot_type.rs | 47 -- ...tom_world_draft_card_detail_result_type.rs | 19 - ...draft_card_detail_section_snapshot_type.rs | 17 - ...m_world_draft_card_detail_snapshot_type.rs | 29 - .../custom_world_draft_card_snapshot_type.rs | 32 - ...world_gallery_detail_by_code_input_type.rs | 15 - .../custom_world_gallery_detail_input_type.rs | 16 - ...ustom_world_gallery_entry_snapshot_type.rs | 34 -- .../custom_world_gallery_list_result_type.rs | 19 - .../custom_world_library_detail_input_type.rs | 16 - ...stom_world_library_mutation_result_type.rs | 21 - .../custom_world_profile_delete_input_type.rs | 17 - ...om_world_profile_like_record_input_type.rs | 18 - .../custom_world_profile_list_input_type.rs | 15 - .../custom_world_profile_list_result_type.rs | 19 - ...om_world_profile_play_record_input_type.rs | 17 - ...custom_world_profile_publish_input_type.rs | 20 - .../custom_world_profile_remix_input_type.rs | 20 - .../custom_world_profile_snapshot_type.rs | 39 -- ...stom_world_profile_unpublish_input_type.rs | 18 - .../custom_world_profile_upsert_input_type.rs | 31 - .../custom_world_publish_world_input_type.rs | 24 - .../custom_world_publish_world_result_type.rs | 25 - ...ld_published_profile_compile_input_type.rs | 22 - ...d_published_profile_compile_result_type.rs | 19 - ...published_profile_compile_snapshot_type.rs | 28 - ...custom_world_work_summary_snapshot_type.rs | 40 -- .../custom_world_works_list_input_type.rs | 15 - .../custom_world_works_list_result_type.rs | 19 - .../delete_bark_battle_work_procedure.rs | 59 -- .../delete_big_fish_work_procedure.rs | 59 -- ...te_custom_world_agent_session_procedure.rs | 59 -- ...stom_world_profile_and_return_procedure.rs | 59 -- .../delete_jump_hop_work_procedure.rs | 59 -- .../delete_match_3_d_work_procedure.rs | 59 -- .../delete_puzzle_work_procedure.rs | 59 -- ...e_runtime_snapshot_and_return_procedure.rs | 59 -- .../delete_square_hole_work_procedure.rs | 59 -- .../delete_visual_novel_work_procedure.rs | 59 -- .../delete_wooden_fish_work_procedure.rs | 59 -- .../drag_puzzle_piece_or_group_procedure.rs | 59 -- .../drop_square_hole_shape_procedure.rs | 59 -- .../equip_inventory_item_input_type.rs | 15 - ...ute_custom_world_agent_action_procedure.rs | 59 -- ...e_big_fish_agent_message_turn_procedure.rs | 59 -- ...stom_world_agent_message_turn_procedure.rs | 62 -- ..._match_3_d_agent_message_turn_procedure.rs | 59 -- ...ize_puzzle_agent_message_turn_procedure.rs | 59 -- ...quare_hole_agent_message_turn_procedure.rs | 59 -- ...sual_novel_agent_message_turn_procedure.rs | 62 -- .../finish_bark_battle_run_procedure.rs | 59 -- .../finish_match_3_d_time_up_procedure.rs | 59 -- .../finish_square_hole_time_up_procedure.rs | 59 -- .../finish_wooden_fish_run_procedure.rs | 59 -- .../generate_big_fish_asset_procedure.rs | 59 -- .../get_bark_battle_run_procedure.rs | 59 -- ...et_bark_battle_runtime_config_procedure.rs | 59 -- .../get_battle_state_procedure.rs | 59 -- .../get_big_fish_run_procedure.rs | 59 -- .../get_big_fish_session_procedure.rs | 59 -- .../get_chapter_progression_procedure.rs | 59 -- .../get_creation_entry_config_procedure.rs | 54 -- ...ustom_world_agent_card_detail_procedure.rs | 59 -- ..._custom_world_agent_operation_procedure.rs | 59 -- ...et_custom_world_agent_session_procedure.rs | 59 -- ..._world_gallery_detail_by_code_procedure.rs | 59 -- ...t_custom_world_gallery_detail_procedure.rs | 59 -- ...t_custom_world_library_detail_procedure.rs | 59 -- .../get_jump_hop_agent_session_procedure.rs | 59 -- .../get_jump_hop_leaderboard_procedure.rs | 59 -- .../get_jump_hop_run_procedure.rs | 59 -- .../get_jump_hop_work_profile_procedure.rs | 59 -- .../get_match_3_d_agent_session_procedure.rs | 59 -- .../get_match_3_d_run_procedure.rs | 59 -- .../get_match_3_d_work_detail_procedure.rs | 59 -- ...player_progression_or_default_procedure.rs | 59 -- .../get_profile_play_stats_procedure.rs | 59 -- .../get_puzzle_agent_session_procedure.rs | 59 -- ...et_puzzle_clear_agent_session_procedure.rs | 59 -- .../get_puzzle_clear_runtime_run_procedure.rs | 59 -- ...get_puzzle_clear_work_profile_procedure.rs | 59 -- .../get_puzzle_gallery_detail_procedure.rs | 59 -- .../get_puzzle_run_procedure.rs | 59 -- .../get_puzzle_work_detail_procedure.rs | 59 -- .../get_runtime_inventory_state_procedure.rs | 59 -- .../get_runtime_snapshot_procedure.rs | 59 -- ...get_square_hole_agent_session_procedure.rs | 59 -- .../get_square_hole_run_procedure.rs | 59 -- .../get_square_hole_work_detail_procedure.rs | 59 -- .../get_story_session_state_procedure.rs | 59 -- ...et_visual_novel_agent_session_procedure.rs | 59 -- .../get_visual_novel_run_procedure.rs | 59 -- .../get_visual_novel_work_detail_procedure.rs | 59 -- ...get_wooden_fish_agent_session_procedure.rs | 59 -- .../get_wooden_fish_run_procedure.rs | 59 -- .../get_wooden_fish_work_profile_procedure.rs | 59 -- .../grant_inventory_item_input_type.rs | 18 - ...ression_experience_and_return_procedure.rs | 59 -- ...t_player_progression_experience_reducer.rs | 71 --- .../inventory_item_snapshot_type.rs | 30 - .../inventory_mutation_input_type.rs | 22 - .../inventory_mutation_type.rs | 26 - .../inventory_slot_snapshot_type.rs | 39 -- ...ump_hop_agent_session_create_input_type.rs | 23 - .../jump_hop_agent_session_get_input_type.rs | 16 - ...hop_agent_session_procedure_result_type.rs | 19 - .../jump_hop_agent_session_snapshot_type.rs | 29 - .../jump_hop_character_asset_snapshot_type.rs | 22 - .../jump_hop_creator_config_snapshot_type.rs | 20 - .../jump_hop_difficulty_type.rs | 22 - .../jump_hop_draft_compile_input_type.rs | 35 -- .../jump_hop_draft_snapshot_type.rs | 37 -- .../jump_hop_gallery_card_view_row_type.rs | 85 --- .../jump_hop_gallery_card_view_table.rs | 118 ---- .../jump_hop_gallery_view_row_type.rs | 119 ---- .../jump_hop_gallery_view_table.rs | 116 ---- .../jump_hop_jump_procedure.rs | 59 -- .../jump_hop_jump_result_kind_type.rs | 22 - .../jump_hop_last_jump_type.rs | 22 - ...ump_hop_leaderboard_entry_snapshot_type.rs | 19 - .../jump_hop_leaderboard_get_input_type.rs | 17 - ...p_hop_leaderboard_procedure_result_type.rs | 21 - .../src/module_bindings/jump_hop_path_type.rs | 24 - .../module_bindings/jump_hop_platform_type.rs | 25 - .../jump_hop_run_get_input_type.rs | 16 - .../jump_hop_run_jump_input_type.rs | 21 - .../jump_hop_run_procedure_result_type.rs | 19 - .../jump_hop_run_restart_input_type.rs | 19 - .../jump_hop_run_snapshot_type.rs | 29 - .../jump_hop_run_start_input_type.rs | 20 - .../jump_hop_run_status_type.rs | 20 - .../module_bindings/jump_hop_scoring_type.rs | 18 - .../jump_hop_tile_asset_snapshot_type.rs | 29 - .../jump_hop_tile_face_asset_snapshot_type.rs | 24 - ...jump_hop_tile_face_assets_snapshot_type.rs | 22 - .../jump_hop_tile_type_type.rs | 26 - .../jump_hop_work_delete_input_type.rs | 16 - .../jump_hop_work_get_input_type.rs | 16 - .../jump_hop_work_procedure_result_type.rs | 19 - .../jump_hop_work_publish_input_type.rs | 17 - .../jump_hop_work_snapshot_type.rs | 45 -- .../jump_hop_work_update_input_type.rs | 24 - .../jump_hop_works_list_input_type.rs | 16 - .../jump_hop_works_procedure_result_type.rs | 19 - .../list_big_fish_works_procedure.rs | 59 -- ..._custom_world_gallery_entries_procedure.rs | 54 -- .../list_custom_world_profiles_procedure.rs | 59 -- .../list_custom_world_works_procedure.rs | 59 -- .../list_jump_hop_works_procedure.rs | 59 -- .../list_match_3_d_works_procedure.rs | 59 -- .../list_platform_browse_history_procedure.rs | 59 -- .../list_profile_save_archives_procedure.rs | 59 -- .../list_puzzle_clear_works_procedure.rs | 59 -- .../list_puzzle_gallery_procedure.rs | 54 -- .../list_puzzle_works_procedure.rs | 59 -- .../list_square_hole_works_procedure.rs | 59 -- ..._visual_novel_runtime_history_procedure.rs | 59 -- .../list_visual_novel_works_procedure.rs | 59 -- .../list_wooden_fish_works_procedure.rs | 59 -- ...rk_puzzle_clear_level_time_up_procedure.rs | 59 -- ...uzzle_draft_generation_failed_procedure.rs | 59 -- ...uzzle_level_generation_failed_procedure.rs | 59 -- ...h_3_d_agent_message_finalize_input_type.rs | 23 - .../match_3_d_agent_message_snapshot_type.rs | 20 - ...tch_3_d_agent_message_submit_input_type.rs | 19 - ...tch_3_d_agent_session_create_input_type.rs | 21 - .../match_3_d_agent_session_get_input_type.rs | 16 - ...3_d_agent_session_procedure_result_type.rs | 19 - .../match_3_d_agent_session_snapshot_type.rs | 31 - ...ch_3_d_click_item_procedure_result_type.rs | 23 - .../match_3_d_creator_config_snapshot_type.rs | 22 - .../match_3_d_draft_compile_input_type.rs | 25 - .../match_3_d_draft_snapshot_type.rs | 22 - .../match_3_d_gallery_view_row_type.rs | 98 ---- .../match_3_d_gallery_view_table.rs | 113 ---- .../match_3_d_item_snapshot_type.rs | 23 - .../match_3_d_run_click_input_type.rs | 20 - .../match_3_d_run_get_input_type.rs | 16 - .../match_3_d_run_procedure_result_type.rs | 19 - .../match_3_d_run_restart_input_type.rs | 18 - .../match_3_d_run_snapshot_type.rs | 31 - .../match_3_d_run_start_input_type.rs | 19 - .../match_3_d_run_stop_input_type.rs | 17 - .../match_3_d_run_time_up_input_type.rs | 17 - .../match_3_d_tray_slot_snapshot_type.rs | 18 - .../match_3_d_work_delete_input_type.rs | 16 - .../match_3_d_work_get_input_type.rs | 16 - .../match_3_d_work_procedure_result_type.rs | 19 - .../match_3_d_work_publish_input_type.rs | 17 - .../match_3_d_work_snapshot_type.rs | 35 -- .../match_3_d_work_update_input_type.rs | 25 - .../match_3_d_works_list_input_type.rs | 16 - .../match_3_d_works_procedure_result_type.rs | 19 - ...attle_interaction_procedure_result_type.rs | 19 - .../npc_battle_interaction_result_type.rs | 19 - .../npc_interaction_battle_mode_type.rs | 18 - .../npc_interaction_procedure_result_type.rs | 19 - .../npc_interaction_result_type.rs | 28 - .../npc_interaction_status_type.rs | 26 - .../npc_social_action_kind_type.rs | 24 - .../npc_state_procedure_result_type.rs | 19 - .../npc_state_snapshot_type.rs | 35 -- .../npc_state_upsert_input_type.rs | 31 - .../player_progression_get_input_type.rs | 15 - .../player_progression_grant_input_type.rs | 20 - ...layer_progression_procedure_result_type.rs | 19 - .../player_progression_snapshot_type.rs | 25 - .../public_work_asset_read_grant_table.rs | 166 ------ .../public_work_asset_read_grant_type.rs | 46 -- .../public_work_detail_entry_table.rs | 114 ---- .../public_work_detail_entry_type.rs | 97 --- .../public_work_gallery_entry_table.rs | 114 ---- .../public_work_gallery_entry_type.rs | 91 --- ...eraction_config_admin_upsert_input_type.rs | 15 - .../publish_bark_battle_work_procedure.rs | 59 -- .../publish_big_fish_game_procedure.rs | 59 -- ...stom_world_profile_and_return_procedure.rs | 59 -- .../publish_custom_world_profile_reducer.rs | 71 --- .../publish_custom_world_world_procedure.rs | 59 -- .../publish_jump_hop_work_procedure.rs | 59 -- .../publish_match_3_d_work_procedure.rs | 59 -- .../publish_puzzle_clear_work_procedure.rs | 59 -- .../publish_puzzle_work_procedure.rs | 59 -- .../publish_square_hole_work_procedure.rs | 59 -- .../publish_visual_novel_work_procedure.rs | 59 -- .../publish_wooden_fish_work_procedure.rs | 59 -- ...uzzle_agent_message_finalize_input_type.rs | 25 - .../puzzle_agent_message_snapshot_type.rs | 23 - .../puzzle_agent_message_submit_input_type.rs | 19 - .../puzzle_agent_session_create_input_type.rs | 20 - .../puzzle_agent_session_get_input_type.rs | 16 - ...zle_agent_session_procedure_result_type.rs | 19 - .../puzzle_agent_session_snapshot_type.rs | 36 -- .../puzzle_agent_suggested_action_type.rs | 17 - .../puzzle_anchor_item_type.rs | 20 - .../puzzle_anchor_pack_type.rs | 21 - .../puzzle_anchor_status_type.rs | 22 - .../puzzle_audio_asset_type.rs | 22 - ...ackground_compile_task_claim_input_type.rs | 19 - ...ound_compile_task_procedure_result_type.rs | 17 - ...kground_compile_task_release_input_type.rs | 18 - .../puzzle_board_snapshot_type.rs | 23 - .../puzzle_cell_position_type.rs | 16 - ...e_clear_agent_session_create_input_type.rs | 23 - ...zzle_clear_agent_session_get_input_type.rs | 16 - ...ear_agent_session_procedure_result_type.rs | 19 - ...uzzle_clear_agent_session_snapshot_type.rs | 23 - .../puzzle_clear_board_cell_snapshot_type.rs | 20 - .../puzzle_clear_board_snapshot_type.rs | 19 - .../puzzle_clear_card_asset_snapshot_type.rs | 24 - .../puzzle_clear_draft_compile_input_type.rs | 29 - .../puzzle_clear_draft_snapshot_type.rs | 32 - ...puzzle_clear_gallery_card_view_row_type.rs | 77 --- .../puzzle_clear_gallery_card_view_table.rs | 121 ---- .../puzzle_clear_gallery_view_row_type.rs | 124 ---- .../puzzle_clear_gallery_view_table.rs | 120 ---- .../puzzle_clear_image_asset_snapshot_type.rs | 22 - ...uzzle_clear_pattern_group_snapshot_type.rs | 22 - .../puzzle_clear_run_get_input_type.rs | 16 - .../puzzle_clear_run_next_level_input_type.rs | 18 - .../puzzle_clear_run_procedure_result_type.rs | 19 - ...puzzle_clear_run_retry_level_input_type.rs | 18 - .../puzzle_clear_run_start_input_type.rs | 19 - .../puzzle_clear_run_swap_input_type.rs | 22 - .../puzzle_clear_run_time_up_input_type.rs | 18 - .../puzzle_clear_runtime_snapshot_type.rs | 30 - .../puzzle_clear_work_get_input_type.rs | 16 - ...puzzle_clear_work_procedure_result_type.rs | 19 - .../puzzle_clear_work_publish_input_type.rs | 17 - .../puzzle_clear_work_snapshot_type.rs | 40 -- .../puzzle_clear_work_update_input_type.rs | 23 - .../puzzle_clear_works_list_input_type.rs | 16 - ...uzzle_clear_works_procedure_result_type.rs | 19 - .../puzzle_creator_intent_type.rs | 22 - ...puzzle_draft_compile_failure_input_type.rs | 21 - .../puzzle_draft_compile_input_type.rs | 20 - .../puzzle_draft_level_type.rs | 36 -- .../puzzle_form_draft_save_input_type.rs | 18 - .../module_bindings/puzzle_form_draft_type.rs | 17 - .../puzzle_gallery_card_view_row_type.rs | 110 ---- .../puzzle_gallery_card_view_table.rs | 115 ---- .../puzzle_gallery_view_table.rs | 116 ---- .../puzzle_generated_image_candidate_type.rs | 21 - ...puzzle_generated_images_save_input_type.rs | 23 - .../puzzle_leaderboard_entry_type.rs | 19 - .../puzzle_leaderboard_submit_input_type.rs | 21 - ...zle_level_generation_failure_input_type.rs | 23 - .../puzzle_merged_group_state_type.rs | 19 - .../puzzle_piece_state_type.rs | 20 - .../puzzle_publish_input_type.rs | 26 - .../puzzle_recommended_next_work_type.rs | 20 - .../puzzle_result_draft_type.rs | 35 -- .../puzzle_result_preview_blocker_type.rs | 17 - .../puzzle_result_preview_envelope_type.rs | 22 - .../puzzle_result_preview_finding_type.rs | 18 - .../puzzle_run_drag_input_type.rs | 20 - .../puzzle_run_get_input_type.rs | 16 - .../puzzle_run_next_level_input_type.rs | 19 - .../puzzle_run_pause_input_type.rs | 18 - .../puzzle_run_procedure_result_type.rs | 19 - .../puzzle_run_prop_input_type.rs | 19 - .../puzzle_run_snapshot_type.rs | 32 - .../puzzle_run_start_input_type.rs | 19 - .../puzzle_run_swap_input_type.rs | 19 - .../puzzle_runtime_level_snapshot_type.rs | 48 -- .../puzzle_runtime_level_status_type.rs | 20 - .../puzzle_select_cover_image_input_type.rs | 19 - .../puzzle_ui_background_save_input_type.rs | 25 - .../puzzle_work_delete_input_type.rs | 16 - .../puzzle_work_get_input_type.rs | 15 - .../puzzle_work_like_record_input_type.rs | 17 - ...e_work_point_incentive_claim_input_type.rs | 17 - .../puzzle_work_procedure_result_type.rs | 19 - .../puzzle_work_profile_type.rs | 119 ---- .../puzzle_work_remix_input_type.rs | 22 - .../puzzle_work_upsert_input_type.rs | 25 - .../puzzle_works_list_input_type.rs | 15 - .../puzzle_works_procedure_result_type.rs | 19 - .../quest_completion_ack_input_type.rs | 16 - .../quest_record_input_type.rs | 46 -- .../quest_signal_apply_input_type.rs | 19 - .../quest_turn_in_input_type.rs | 16 - .../record_big_fish_like_procedure.rs | 59 -- .../record_big_fish_play_procedure.rs | 59 -- ...ord_custom_world_profile_like_procedure.rs | 59 -- ...ord_custom_world_profile_play_procedure.rs | 59 -- .../record_puzzle_work_like_procedure.rs | 59 -- ...rd_visual_novel_runtime_event_procedure.rs | 59 -- ...uzzle_background_compile_task_procedure.rs | 62 -- .../remix_big_fish_work_procedure.rs | 59 -- .../remix_custom_world_profile_procedure.rs | 59 -- .../remix_puzzle_work_procedure.rs | 59 -- ...olve_combat_action_and_return_procedure.rs | 59 -- .../resolve_combat_action_input_type.rs | 23 - ...lve_combat_action_procedure_result_type.rs | 19 - .../resolve_combat_action_reducer.rs | 68 --- .../resolve_combat_action_result_type.rs | 21 - ...battle_interaction_and_return_procedure.rs | 59 -- ...solve_npc_battle_interaction_input_type.rs | 29 - ...ve_npc_interaction_and_return_procedure.rs | 59 -- .../resolve_npc_interaction_input_type.rs | 20 - .../resolve_npc_interaction_reducer.rs | 68 --- ..._npc_social_action_and_return_procedure.rs | 59 -- .../resolve_npc_social_action_input_type.rs | 23 - .../resolve_npc_social_action_reducer.rs | 68 --- ...easure_interaction_and_return_procedure.rs | 59 -- .../resolve_treasure_interaction_reducer.rs | 68 --- .../restart_jump_hop_run_procedure.rs | 59 -- .../restart_match_3_d_run_procedure.rs | 59 -- .../restart_square_hole_run_procedure.rs | 59 -- ...ofile_save_archive_and_return_procedure.rs | 59 -- .../retry_puzzle_clear_level_run_procedure.rs | 59 -- ...runtime_browse_history_clear_input_type.rs | 15 - .../runtime_browse_history_list_input_type.rs | 15 - ...me_browse_history_procedure_result_type.rs | 19 - .../runtime_browse_history_snapshot_type.rs | 29 - .../runtime_browse_history_sync_input_type.rs | 19 - ...runtime_browse_history_write_input_type.rs | 23 - ...e_inventory_state_procedure_result_type.rs | 19 - ...untime_inventory_state_query_input_type.rs | 16 - .../runtime_inventory_state_snapshot_type.rs | 20 - ...ntime_profile_play_stats_get_input_type.rs | 15 - ...rofile_play_stats_procedure_result_type.rs | 19 - ...untime_profile_play_stats_snapshot_type.rs | 20 - ...time_profile_played_world_snapshot_type.rs | 25 - ...me_profile_save_archive_list_input_type.rs | 15 - ...file_save_archive_procedure_result_type.rs | 22 - ..._profile_save_archive_resume_input_type.rs | 16 - ...time_profile_save_archive_snapshot_type.rs | 30 - .../runtime_snapshot_delete_input_type.rs | 15 - .../runtime_snapshot_get_input_type.rs | 15 - .../runtime_snapshot_procedure_result_type.rs | 19 - .../module_bindings/runtime_snapshot_type.rs | 22 - .../runtime_snapshot_upsert_input_type.rs | 20 - .../save_puzzle_form_draft_procedure.rs | 59 -- .../save_puzzle_generated_images_procedure.rs | 59 -- .../save_puzzle_ui_background_procedure.rs | 59 -- .../select_puzzle_cover_image_procedure.rs | 59 -- ..._hole_agent_message_finalize_input_type.rs | 23 - ...square_hole_agent_message_snapshot_type.rs | 20 - ...re_hole_agent_message_submit_input_type.rs | 19 - ...re_hole_agent_session_create_input_type.rs | 21 - ...quare_hole_agent_session_get_input_type.rs | 16 - ...ole_agent_session_procedure_result_type.rs | 19 - ...square_hole_agent_session_snapshot_type.rs | 31 - ...quare_hole_creator_config_snapshot_type.rs | 26 - .../square_hole_draft_compile_input_type.rs | 23 - .../square_hole_draft_snapshot_type.rs | 30 - ...square_hole_drop_feedback_snapshot_type.rs | 17 - ...e_hole_drop_shape_procedure_result_type.rs | 23 - .../square_hole_gallery_view_row_type.rs | 108 ---- .../square_hole_gallery_view_table.rs | 116 ---- .../square_hole_hole_option_snapshot_type.rs | 19 - .../square_hole_hole_snapshot_type.rs | 20 - .../square_hole_run_drop_input_type.rs | 20 - .../square_hole_run_get_input_type.rs | 16 - .../square_hole_run_procedure_result_type.rs | 19 - .../square_hole_run_restart_input_type.rs | 18 - .../square_hole_run_snapshot_type.rs | 39 -- .../square_hole_run_start_input_type.rs | 18 - .../square_hole_run_stop_input_type.rs | 17 - .../square_hole_run_time_up_input_type.rs | 17 - .../square_hole_shape_option_snapshot_type.rs | 20 - .../square_hole_shape_snapshot_type.rs | 20 - .../square_hole_work_delete_input_type.rs | 16 - .../square_hole_work_get_input_type.rs | 16 - .../square_hole_work_procedure_result_type.rs | 19 - .../square_hole_work_publish_input_type.rs | 17 - .../square_hole_work_snapshot_type.rs | 41 -- .../square_hole_work_update_input_type.rs | 29 - .../square_hole_works_list_input_type.rs | 16 - ...square_hole_works_procedure_result_type.rs | 19 - .../start_bark_battle_run_procedure.rs | 59 -- .../start_big_fish_run_procedure.rs | 59 -- .../start_jump_hop_run_procedure.rs | 59 -- .../start_match_3_d_run_procedure.rs | 59 -- ...tart_puzzle_clear_runtime_run_procedure.rs | 59 -- .../start_puzzle_run_procedure.rs | 59 -- .../start_square_hole_run_procedure.rs | 59 -- .../start_visual_novel_run_procedure.rs | 59 -- .../start_wooden_fish_run_procedure.rs | 59 -- .../stop_match_3_d_run_procedure.rs | 59 -- .../stop_square_hole_run_procedure.rs | 59 -- .../story_continue_input_type.rs | 19 - .../story_event_snapshot_type.rs | 22 - .../story_session_input_type.rs | 21 - .../story_session_procedure_result_type.rs | 21 - .../story_session_snapshot_type.rs | 28 - .../story_session_state_input_type.rs | 15 - ...ory_session_state_procedure_result_type.rs | 21 - .../submit_big_fish_input_procedure.rs | 59 -- .../submit_big_fish_message_procedure.rs | 59 -- ...it_custom_world_agent_message_procedure.rs | 59 -- ...ubmit_match_3_d_agent_message_procedure.rs | 59 -- .../submit_puzzle_agent_message_procedure.rs | 59 -- ...bmit_puzzle_leaderboard_entry_procedure.rs | 59 -- ...mit_square_hole_agent_message_procedure.rs | 59 -- ...it_visual_novel_agent_message_procedure.rs | 59 -- .../swap_puzzle_clear_cards_procedure.rs | 59 -- .../swap_puzzle_pieces_procedure.rs | 59 -- .../treasure_record_procedure_result_type.rs | 19 - .../treasure_record_snapshot_type.rs | 33 -- .../treasure_resolve_input_type.rs | 33 -- .../module_bindings/turn_in_quest_reducer.rs | 68 --- .../unequip_inventory_item_input_type.rs | 15 - ...stom_world_profile_and_return_procedure.rs | 59 -- .../unpublish_custom_world_profile_reducer.rs | 71 --- ...date_bark_battle_draft_config_procedure.rs | 59 -- .../update_jump_hop_work_procedure.rs | 59 -- .../update_match_3_d_work_procedure.rs | 59 -- .../update_puzzle_clear_work_procedure.rs | 59 -- .../update_puzzle_run_pause_procedure.rs | 59 -- .../update_puzzle_work_procedure.rs | 59 -- .../update_square_hole_work_procedure.rs | 59 -- .../update_visual_novel_work_procedure.rs | 59 -- .../update_wooden_fish_work_procedure.rs | 59 -- ...hapter_progression_and_return_procedure.rs | 59 -- .../upsert_chapter_progression_reducer.rs | 68 --- ...on_entry_event_banners_config_procedure.rs | 62 -- ...rt_creation_entry_type_config_procedure.rs | 59 -- ...orld_agent_operation_progress_procedure.rs | 62 -- ...stom_world_profile_and_return_procedure.rs | 59 -- .../upsert_custom_world_profile_reducer.rs | 71 --- .../upsert_npc_state_and_return_procedure.rs | 59 -- .../upsert_npc_state_reducer.rs | 68 --- ...orm_browse_history_and_return_procedure.rs | 59 -- ...ublic_work_interaction_config_procedure.rs | 62 -- ...t_runtime_snapshot_and_return_procedure.rs | 59 -- ...ert_visual_novel_run_snapshot_procedure.rs | 59 -- .../use_puzzle_runtime_prop_procedure.rs | 59 -- ...novel_agent_message_finalize_input_type.rs | 24 - ...isual_novel_agent_message_snapshot_type.rs | 20 - ...l_novel_agent_message_submit_input_type.rs | 19 - ...l_novel_agent_session_create_input_type.rs | 23 - ...sual_novel_agent_session_get_input_type.rs | 16 - ...vel_agent_session_procedure_result_type.rs | 19 - ...isual_novel_agent_session_snapshot_type.rs | 32 - .../visual_novel_gallery_view_row_type.rs | 82 --- .../visual_novel_gallery_view_table.rs | 117 ---- ...ual_novel_history_procedure_result_type.rs | 19 - .../visual_novel_json_field_type.rs | 18 - .../visual_novel_json_value_type.rs | 27 - .../visual_novel_run_get_input_type.rs | 16 - .../visual_novel_run_procedure_result_type.rs | 19 - .../visual_novel_run_snapshot_type.rs | 32 - ...al_novel_run_snapshot_upsert_input_type.rs | 26 - .../visual_novel_run_start_input_type.rs | 20 - ...vel_runtime_event_procedure_result_type.rs | 19 - ...l_novel_runtime_event_record_input_type.rs | 23 - ...isual_novel_runtime_event_snapshot_type.rs | 25 - ...novel_runtime_history_append_input_type.rs | 24 - ...vel_runtime_history_entry_snapshot_type.rs | 27 - ...l_novel_runtime_history_list_input_type.rs | 16 - .../visual_novel_work_compile_input_type.rs | 24 - .../visual_novel_work_delete_input_type.rs | 16 - .../visual_novel_work_get_input_type.rs | 16 - ...visual_novel_work_procedure_result_type.rs | 19 - .../visual_novel_work_publish_input_type.rs | 17 - .../visual_novel_work_snapshot_type.rs | 33 -- .../visual_novel_work_update_input_type.rs | 24 - .../visual_novel_works_list_input_type.rs | 16 - ...isual_novel_works_procedure_result_type.rs | 19 - ...en_fish_agent_session_create_input_type.rs | 22 - ...ooden_fish_agent_session_get_input_type.rs | 16 - ...ish_agent_session_procedure_result_type.rs | 19 - ...wooden_fish_agent_session_snapshot_type.rs | 27 - .../wooden_fish_audio_asset_snapshot_type.rs | 21 - ...ooden_fish_creator_config_snapshot_type.rs | 21 - .../wooden_fish_draft_compile_input_type.rs | 32 - .../wooden_fish_draft_snapshot_type.rs | 33 -- .../wooden_fish_gallery_card_view_row_type.rs | 76 --- .../wooden_fish_gallery_card_view_table.rs | 121 ---- .../wooden_fish_gallery_view_row_type.rs | 117 ---- .../wooden_fish_gallery_view_table.rs | 116 ---- .../wooden_fish_image_asset_snapshot_type.rs | 22 - .../wooden_fish_run_checkpoint_input_type.rs | 20 - .../wooden_fish_run_finish_input_type.rs | 20 - .../wooden_fish_run_get_input_type.rs | 16 - .../wooden_fish_run_procedure_result_type.rs | 19 - .../wooden_fish_run_snapshot_type.rs | 26 - .../wooden_fish_run_start_input_type.rs | 19 - .../wooden_fish_run_status_type.rs | 18 - .../wooden_fish_word_counter_type.rs | 16 - .../wooden_fish_work_delete_input_type.rs | 16 - .../wooden_fish_work_get_input_type.rs | 16 - .../wooden_fish_work_procedure_result_type.rs | 19 - .../wooden_fish_work_publish_input_type.rs | 17 - .../wooden_fish_work_snapshot_type.rs | 40 -- .../wooden_fish_work_update_input_type.rs | 30 - .../wooden_fish_works_list_input_type.rs | 16 - ...wooden_fish_works_procedure_result_type.rs | 19 - .../crates/spacetime-module/src/active.rs | 2 - .../src/asset_metadata/objects.rs | 9 +- .../src/external_generation.rs | 29 +- .../crates/spacetime-module/src/runtime.rs | 5 +- .../src/runtime/active/settings.rs | 129 ++++ src/components/auth/BindPhoneScreen.test.tsx | 6 +- src/components/auth/BindPhoneScreen.tsx | 21 +- .../common/FloatingFeedbackEntry.tsx | 11 +- .../common/PlatformDangerConfirmDialog.tsx | 3 - .../common/PlatformModalCloseButton.tsx | 20 +- .../common/UnifiedConfirmDialog.tsx | 4 - src/components/common/UnifiedModal.tsx | 87 +-- src/components/common/platformBrandAssets.ts | 6 + .../creation-home/CreationLandingView.tsx | 2 +- .../PlatformActiveProfileView.test.tsx | 63 ++ .../PlatformActiveProfileView.tsx | 34 ++ .../PlatformEntryActiveFlowShell.test.tsx | 46 +- .../PlatformEntryActiveFlowShell.tsx | 95 ++- .../platformEntryActiveTypes.ts | 1 + src/index.css | 16 + src/routing/activeAppPageRoutes.test.ts | 3 + src/routing/activeAppPageRoutes.ts | 1 + src/services/activeAppTitle.test.ts | 1 + src/services/activeAppTitle.ts | 4 +- src/services/authService.ts | 37 -- tsconfig.json | 17 + vite.config.ts | 165 +++++- vitest.config.ts | 2 +- 776 files changed, 2073 insertions(+), 27260 deletions(-) rename {miniprogram => retired/legacy-creation-templates/frontend/miniprogram}/host-bridge/subscribeMessage.js (100%) rename {miniprogram => retired/legacy-creation-templates/frontend/miniprogram}/host-bridge/subscribeMessage.test.js (100%) rename {miniprogram => retired/legacy-creation-templates/frontend/miniprogram}/pages/subscribe-message/index.js (100%) rename {miniprogram => retired/legacy-creation-templates/frontend/miniprogram}/pages/subscribe-message/index.json (100%) rename {miniprogram => retired/legacy-creation-templates/frontend/miniprogram}/pages/subscribe-message/index.wxml (100%) rename {miniprogram => retired/legacy-creation-templates/frontend/miniprogram}/pages/subscribe-message/index.wxss (100%) rename {miniprogram => retired/legacy-creation-templates/frontend/miniprogram}/shell/subscribeMessage.js (100%) rename {miniprogram => retired/legacy-creation-templates/frontend/miniprogram}/shell/subscribeMessage.test.js (100%) create mode 100644 scripts/check-module-runtime-artifact.mjs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/accept_quest_reducer.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/acknowledge_quest_completion_reducer.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/admin_list_work_visibility_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/admin_update_work_visibility_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/admin_work_visibility_list_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/admin_work_visibility_list_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/admin_work_visibility_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/admin_work_visibility_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/admin_work_visibility_update_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/advance_puzzle_clear_next_level_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/advance_puzzle_next_level_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/append_visual_novel_runtime_history_entry_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/apply_chapter_progression_ledger_entry_and_return_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/apply_chapter_progression_ledger_entry_reducer.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/apply_inventory_mutation_reducer.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/apply_quest_signal_reducer.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/bark_battle_draft_config_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/bark_battle_draft_config_upsert_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/bark_battle_draft_create_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/bark_battle_gallery_view_row_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/bark_battle_gallery_view_table.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/bark_battle_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/bark_battle_run_finish_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/bark_battle_run_get_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/bark_battle_run_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/bark_battle_run_start_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/bark_battle_runtime_config_get_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/bark_battle_runtime_config_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/bark_battle_work_delete_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/bark_battle_work_publish_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/battle_state_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/battle_state_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/battle_state_query_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/battle_state_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/begin_story_session_and_return_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/begin_story_session_reducer.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/big_fish_agent_message_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/big_fish_anchor_item_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/big_fish_anchor_pack_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/big_fish_anchor_status_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/big_fish_asset_coverage_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/big_fish_asset_generate_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/big_fish_asset_slot_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/big_fish_background_blueprint_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/big_fish_draft_compile_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/big_fish_gallery_view_table.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/big_fish_game_draft_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/big_fish_input_submit_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/big_fish_level_blueprint_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/big_fish_message_finalize_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/big_fish_message_submit_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/big_fish_play_record_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/big_fish_publish_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/big_fish_run_get_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/big_fish_run_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/big_fish_run_start_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/big_fish_runtime_entity_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/big_fish_runtime_params_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/big_fish_runtime_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/big_fish_session_create_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/big_fish_session_get_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/big_fish_session_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/big_fish_session_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/big_fish_vector_2_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/big_fish_work_delete_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/big_fish_work_like_record_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/big_fish_work_remix_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/big_fish_work_summary_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/big_fish_works_list_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/big_fish_works_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/chapter_progression_get_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/chapter_progression_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/chapter_progression_ledger_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/chapter_progression_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/chapter_progression_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/checkpoint_wooden_fish_run_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/claim_puzzle_background_compile_task_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/claim_puzzle_work_point_incentive_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/clear_platform_browse_history_and_return_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/click_match_3_d_item_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/compile_big_fish_draft_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/compile_custom_world_published_profile_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/compile_jump_hop_draft_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/compile_match_3_d_draft_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/compile_puzzle_agent_draft_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/compile_puzzle_clear_draft_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/compile_square_hole_draft_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/compile_visual_novel_work_profile_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/compile_wooden_fish_draft_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/consume_inventory_item_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/continue_story_and_return_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/continue_story_reducer.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/create_bark_battle_draft_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/create_battle_state_and_return_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/create_battle_state_reducer.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/create_big_fish_session_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/create_custom_world_agent_session_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/create_jump_hop_agent_session_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/create_match_3_d_agent_session_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/create_puzzle_agent_session_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/create_puzzle_clear_agent_session_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/create_square_hole_agent_session_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/create_visual_novel_agent_session_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/create_wooden_fish_agent_session_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/creation_entry_config_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/creation_entry_config_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/creation_entry_event_banner_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/creation_entry_event_banners_admin_upsert_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/creation_entry_start_card_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/creation_entry_type_admin_upsert_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/creation_entry_type_modal_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/creation_entry_type_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_action_execute_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_action_execute_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_card_detail_get_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_message_finalize_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_message_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_message_submit_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_operation_get_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_operation_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_operation_progress_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_operation_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_session_create_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_session_get_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_session_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_session_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/custom_world_draft_card_detail_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/custom_world_draft_card_detail_section_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/custom_world_draft_card_detail_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/custom_world_draft_card_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/custom_world_gallery_detail_by_code_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/custom_world_gallery_detail_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/custom_world_gallery_entry_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/custom_world_gallery_list_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/custom_world_library_detail_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/custom_world_library_mutation_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_delete_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_like_record_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_list_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_list_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_play_record_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_publish_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_remix_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_unpublish_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_upsert_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/custom_world_publish_world_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/custom_world_publish_world_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/custom_world_published_profile_compile_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/custom_world_published_profile_compile_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/custom_world_published_profile_compile_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/custom_world_work_summary_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/custom_world_works_list_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/custom_world_works_list_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/delete_bark_battle_work_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/delete_big_fish_work_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/delete_custom_world_agent_session_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/delete_custom_world_profile_and_return_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/delete_jump_hop_work_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/delete_match_3_d_work_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/delete_puzzle_work_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/delete_runtime_snapshot_and_return_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/delete_square_hole_work_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/delete_visual_novel_work_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/delete_wooden_fish_work_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/drag_puzzle_piece_or_group_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/drop_square_hole_shape_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/equip_inventory_item_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/execute_custom_world_agent_action_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/finalize_big_fish_agent_message_turn_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/finalize_custom_world_agent_message_turn_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/finalize_match_3_d_agent_message_turn_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/finalize_puzzle_agent_message_turn_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/finalize_square_hole_agent_message_turn_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/finalize_visual_novel_agent_message_turn_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/finish_bark_battle_run_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/finish_match_3_d_time_up_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/finish_square_hole_time_up_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/finish_wooden_fish_run_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/generate_big_fish_asset_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/get_bark_battle_run_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/get_bark_battle_runtime_config_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/get_battle_state_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/get_big_fish_run_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/get_big_fish_session_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/get_chapter_progression_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/get_creation_entry_config_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/get_custom_world_agent_card_detail_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/get_custom_world_agent_operation_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/get_custom_world_agent_session_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/get_custom_world_gallery_detail_by_code_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/get_custom_world_gallery_detail_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/get_custom_world_library_detail_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/get_jump_hop_agent_session_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/get_jump_hop_leaderboard_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/get_jump_hop_run_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/get_jump_hop_work_profile_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/get_match_3_d_agent_session_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/get_match_3_d_run_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/get_match_3_d_work_detail_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/get_player_progression_or_default_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/get_profile_play_stats_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/get_puzzle_agent_session_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/get_puzzle_clear_agent_session_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/get_puzzle_clear_runtime_run_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/get_puzzle_clear_work_profile_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/get_puzzle_gallery_detail_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/get_puzzle_run_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/get_puzzle_work_detail_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/get_runtime_inventory_state_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/get_runtime_snapshot_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/get_square_hole_agent_session_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/get_square_hole_run_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/get_square_hole_work_detail_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/get_story_session_state_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/get_visual_novel_agent_session_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/get_visual_novel_run_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/get_visual_novel_work_detail_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/get_wooden_fish_agent_session_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/get_wooden_fish_run_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/get_wooden_fish_work_profile_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/grant_inventory_item_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/grant_player_progression_experience_and_return_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/grant_player_progression_experience_reducer.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/inventory_item_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/inventory_mutation_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/inventory_mutation_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/inventory_slot_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/jump_hop_agent_session_create_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/jump_hop_agent_session_get_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/jump_hop_agent_session_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/jump_hop_agent_session_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/jump_hop_character_asset_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/jump_hop_creator_config_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/jump_hop_difficulty_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/jump_hop_draft_compile_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/jump_hop_draft_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/jump_hop_gallery_card_view_row_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/jump_hop_gallery_card_view_table.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/jump_hop_gallery_view_row_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/jump_hop_gallery_view_table.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/jump_hop_jump_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/jump_hop_jump_result_kind_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/jump_hop_last_jump_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/jump_hop_leaderboard_entry_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/jump_hop_leaderboard_get_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/jump_hop_leaderboard_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/jump_hop_path_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/jump_hop_platform_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/jump_hop_run_get_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/jump_hop_run_jump_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/jump_hop_run_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/jump_hop_run_restart_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/jump_hop_run_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/jump_hop_run_start_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/jump_hop_run_status_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/jump_hop_scoring_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/jump_hop_tile_asset_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/jump_hop_tile_face_asset_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/jump_hop_tile_face_assets_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/jump_hop_tile_type_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/jump_hop_work_delete_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/jump_hop_work_get_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/jump_hop_work_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/jump_hop_work_publish_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/jump_hop_work_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/jump_hop_work_update_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/jump_hop_works_list_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/jump_hop_works_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/list_big_fish_works_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/list_custom_world_gallery_entries_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/list_custom_world_profiles_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/list_custom_world_works_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/list_jump_hop_works_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/list_match_3_d_works_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/list_platform_browse_history_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/list_profile_save_archives_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/list_puzzle_clear_works_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/list_puzzle_gallery_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/list_puzzle_works_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/list_square_hole_works_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/list_visual_novel_runtime_history_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/list_visual_novel_works_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/list_wooden_fish_works_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/mark_puzzle_clear_level_time_up_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/mark_puzzle_draft_generation_failed_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/mark_puzzle_level_generation_failed_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/match_3_d_agent_message_finalize_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/match_3_d_agent_message_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/match_3_d_agent_message_submit_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/match_3_d_agent_session_create_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/match_3_d_agent_session_get_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/match_3_d_agent_session_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/match_3_d_agent_session_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/match_3_d_click_item_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/match_3_d_creator_config_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/match_3_d_draft_compile_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/match_3_d_draft_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/match_3_d_gallery_view_row_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/match_3_d_gallery_view_table.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/match_3_d_item_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/match_3_d_run_click_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/match_3_d_run_get_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/match_3_d_run_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/match_3_d_run_restart_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/match_3_d_run_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/match_3_d_run_start_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/match_3_d_run_stop_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/match_3_d_run_time_up_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/match_3_d_tray_slot_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/match_3_d_work_delete_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/match_3_d_work_get_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/match_3_d_work_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/match_3_d_work_publish_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/match_3_d_work_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/match_3_d_work_update_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/match_3_d_works_list_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/match_3_d_works_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/npc_battle_interaction_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/npc_battle_interaction_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/npc_interaction_battle_mode_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/npc_interaction_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/npc_interaction_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/npc_interaction_status_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/npc_social_action_kind_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/npc_state_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/npc_state_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/npc_state_upsert_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/player_progression_get_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/player_progression_grant_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/player_progression_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/player_progression_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/public_work_asset_read_grant_table.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/public_work_asset_read_grant_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/public_work_detail_entry_table.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/public_work_detail_entry_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/public_work_gallery_entry_table.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/public_work_gallery_entry_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/public_work_interaction_config_admin_upsert_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/publish_bark_battle_work_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/publish_big_fish_game_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/publish_custom_world_profile_and_return_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/publish_custom_world_profile_reducer.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/publish_custom_world_world_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/publish_jump_hop_work_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/publish_match_3_d_work_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/publish_puzzle_clear_work_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/publish_puzzle_work_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/publish_square_hole_work_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/publish_visual_novel_work_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/publish_wooden_fish_work_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_message_finalize_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_message_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_message_submit_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_session_create_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_session_get_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_session_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_session_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_suggested_action_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_anchor_item_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_anchor_pack_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_anchor_status_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_audio_asset_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_background_compile_task_claim_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_background_compile_task_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_background_compile_task_release_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_board_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_cell_position_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_agent_session_create_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_agent_session_get_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_agent_session_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_agent_session_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_board_cell_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_board_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_card_asset_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_draft_compile_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_draft_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_gallery_card_view_row_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_gallery_card_view_table.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_gallery_view_row_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_gallery_view_table.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_image_asset_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_pattern_group_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_run_get_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_run_next_level_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_run_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_run_retry_level_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_run_start_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_run_swap_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_run_time_up_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_runtime_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_work_get_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_work_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_work_publish_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_work_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_work_update_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_works_list_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_works_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_creator_intent_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_draft_compile_failure_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_draft_compile_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_draft_level_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_form_draft_save_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_form_draft_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_gallery_card_view_row_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_gallery_card_view_table.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_gallery_view_table.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_generated_image_candidate_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_generated_images_save_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_leaderboard_entry_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_leaderboard_submit_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_level_generation_failure_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_merged_group_state_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_piece_state_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_publish_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_recommended_next_work_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_result_draft_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_result_preview_blocker_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_result_preview_envelope_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_result_preview_finding_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_run_drag_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_run_get_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_run_next_level_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_run_pause_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_run_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_run_prop_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_run_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_run_start_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_run_swap_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_runtime_level_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_runtime_level_status_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_select_cover_image_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_ui_background_save_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_work_delete_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_work_get_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_work_like_record_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_work_point_incentive_claim_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_work_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_work_profile_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_work_remix_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_work_upsert_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_works_list_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/puzzle_works_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/quest_completion_ack_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/quest_record_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/quest_signal_apply_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/quest_turn_in_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/record_big_fish_like_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/record_big_fish_play_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/record_custom_world_profile_like_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/record_custom_world_profile_play_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/record_puzzle_work_like_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/record_visual_novel_runtime_event_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/release_puzzle_background_compile_task_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/remix_big_fish_work_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/remix_custom_world_profile_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/remix_puzzle_work_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/resolve_combat_action_and_return_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/resolve_combat_action_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/resolve_combat_action_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/resolve_combat_action_reducer.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/resolve_combat_action_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/resolve_npc_battle_interaction_and_return_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/resolve_npc_battle_interaction_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/resolve_npc_interaction_and_return_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/resolve_npc_interaction_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/resolve_npc_interaction_reducer.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/resolve_npc_social_action_and_return_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/resolve_npc_social_action_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/resolve_npc_social_action_reducer.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/resolve_treasure_interaction_and_return_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/resolve_treasure_interaction_reducer.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/restart_jump_hop_run_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/restart_match_3_d_run_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/restart_square_hole_run_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/resume_profile_save_archive_and_return_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/retry_puzzle_clear_level_run_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/runtime_browse_history_clear_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/runtime_browse_history_list_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/runtime_browse_history_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/runtime_browse_history_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/runtime_browse_history_sync_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/runtime_browse_history_write_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/runtime_inventory_state_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/runtime_inventory_state_query_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/runtime_inventory_state_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_play_stats_get_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_play_stats_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_play_stats_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_played_world_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_save_archive_list_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_save_archive_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_save_archive_resume_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_save_archive_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/runtime_snapshot_delete_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/runtime_snapshot_get_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/runtime_snapshot_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/runtime_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/runtime_snapshot_upsert_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/save_puzzle_form_draft_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/save_puzzle_generated_images_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/save_puzzle_ui_background_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/select_puzzle_cover_image_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/square_hole_agent_message_finalize_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/square_hole_agent_message_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/square_hole_agent_message_submit_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/square_hole_agent_session_create_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/square_hole_agent_session_get_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/square_hole_agent_session_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/square_hole_agent_session_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/square_hole_creator_config_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/square_hole_draft_compile_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/square_hole_draft_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/square_hole_drop_feedback_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/square_hole_drop_shape_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/square_hole_gallery_view_row_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/square_hole_gallery_view_table.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/square_hole_hole_option_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/square_hole_hole_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/square_hole_run_drop_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/square_hole_run_get_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/square_hole_run_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/square_hole_run_restart_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/square_hole_run_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/square_hole_run_start_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/square_hole_run_stop_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/square_hole_run_time_up_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/square_hole_shape_option_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/square_hole_shape_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/square_hole_work_delete_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/square_hole_work_get_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/square_hole_work_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/square_hole_work_publish_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/square_hole_work_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/square_hole_work_update_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/square_hole_works_list_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/square_hole_works_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/start_bark_battle_run_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/start_big_fish_run_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/start_jump_hop_run_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/start_match_3_d_run_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/start_puzzle_clear_runtime_run_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/start_puzzle_run_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/start_square_hole_run_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/start_visual_novel_run_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/start_wooden_fish_run_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/stop_match_3_d_run_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/stop_square_hole_run_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/story_continue_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/story_event_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/story_session_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/story_session_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/story_session_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/story_session_state_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/story_session_state_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/submit_big_fish_input_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/submit_big_fish_message_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/submit_custom_world_agent_message_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/submit_match_3_d_agent_message_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/submit_puzzle_agent_message_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/submit_puzzle_leaderboard_entry_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/submit_square_hole_agent_message_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/submit_visual_novel_agent_message_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/swap_puzzle_clear_cards_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/swap_puzzle_pieces_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/treasure_record_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/treasure_record_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/treasure_resolve_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/turn_in_quest_reducer.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/unequip_inventory_item_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/unpublish_custom_world_profile_and_return_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/unpublish_custom_world_profile_reducer.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/update_bark_battle_draft_config_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/update_jump_hop_work_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/update_match_3_d_work_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/update_puzzle_clear_work_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/update_puzzle_run_pause_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/update_puzzle_work_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/update_square_hole_work_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/update_visual_novel_work_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/update_wooden_fish_work_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/upsert_chapter_progression_and_return_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/upsert_chapter_progression_reducer.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/upsert_creation_entry_event_banners_config_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/upsert_creation_entry_type_config_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/upsert_custom_world_agent_operation_progress_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/upsert_custom_world_profile_and_return_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/upsert_custom_world_profile_reducer.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/upsert_npc_state_and_return_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/upsert_npc_state_reducer.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/upsert_platform_browse_history_and_return_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/upsert_public_work_interaction_config_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/upsert_runtime_snapshot_and_return_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/upsert_visual_novel_run_snapshot_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/use_puzzle_runtime_prop_procedure.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/visual_novel_agent_message_finalize_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/visual_novel_agent_message_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/visual_novel_agent_message_submit_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/visual_novel_agent_session_create_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/visual_novel_agent_session_get_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/visual_novel_agent_session_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/visual_novel_agent_session_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/visual_novel_gallery_view_row_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/visual_novel_gallery_view_table.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/visual_novel_history_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/visual_novel_json_field_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/visual_novel_json_value_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/visual_novel_run_get_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/visual_novel_run_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/visual_novel_run_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/visual_novel_run_snapshot_upsert_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/visual_novel_run_start_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/visual_novel_runtime_event_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/visual_novel_runtime_event_record_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/visual_novel_runtime_event_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/visual_novel_runtime_history_append_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/visual_novel_runtime_history_entry_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/visual_novel_runtime_history_list_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/visual_novel_work_compile_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/visual_novel_work_delete_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/visual_novel_work_get_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/visual_novel_work_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/visual_novel_work_publish_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/visual_novel_work_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/visual_novel_work_update_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/visual_novel_works_list_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/visual_novel_works_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_agent_session_create_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_agent_session_get_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_agent_session_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_agent_session_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_audio_asset_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_creator_config_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_draft_compile_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_draft_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_gallery_card_view_row_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_gallery_card_view_table.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_gallery_view_row_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_gallery_view_table.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_image_asset_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_run_checkpoint_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_run_finish_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_run_get_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_run_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_run_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_run_start_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_run_status_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_word_counter_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_work_delete_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_work_get_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_work_procedure_result_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_work_publish_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_work_snapshot_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_work_update_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_works_list_input_type.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_works_procedure_result_type.rs create mode 100644 server-rs/crates/spacetime-module/src/runtime/active/settings.rs create mode 100644 src/components/common/platformBrandAssets.ts diff --git a/.env.example b/.env.example index f9a6f0423..4b5ed9164 100644 --- a/.env.example +++ b/.env.example @@ -114,10 +114,6 @@ WECHAT_MOCK_DISPLAY_NAME="微信旅人" WECHAT_MOCK_AVATAR_URL="" WECHAT_MINIPROGRAM_MESSAGE_TOKEN="" WECHAT_MINIPROGRAM_MESSAGE_ENCODING_AES_KEY="" -WECHAT_MINIPROGRAM_SUBSCRIBE_MESSAGE_ENABLED="true" -WECHAT_MINIPROGRAM_GENERATION_RESULT_TEMPLATE_ID="m5z7BkkBhJGbcH0cdDeHaeRU2tViDEguP38XdrRRCdU" -WECHAT_MINIPROGRAM_SUBSCRIBE_MESSAGE_STATE="formal" - # Model name for chat completions. VITE_LLM_MODEL="gpt-5.4-mini" GENARRATIVE_LLM_PROVIDER="openai-compatible" @@ -125,9 +121,6 @@ GENARRATIVE_LLM_BASE_URL="https://api.vectorengine.cn/v1" GENARRATIVE_LLM_API_KEY="" GENARRATIVE_LLM_MODEL="gpt-5.4-mini" -# Optional: enable upstream web search for RPG story text generation. -RPG_LLM_WEB_SEARCH_ENABLED="true" - # Server-side DashScope endpoint and API key used by the local scene-image proxy. DASHSCOPE_BASE_URL="https://dashscope.aliyuncs.com/api/v1" DASHSCOPE_API_KEY="YOUR_DASHSCOPE_API_KEY" diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 9ea2363c3..0ec44479d 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -171,6 +171,45 @@ module.exports = { 'src/services/appTitle.ts', 'src/services/appTitle.test.ts', 'src/components/CharacterAnimator.tsx', + 'src/components/*.ts', + 'src/components/*.tsx', + '!src/components/ResolvedAssetImage.tsx', + '!src/components/ResolvedAssetVideo.tsx', + 'src/hooks/*.ts', + 'src/hooks/*.tsx', + '!src/hooks/useGameSettings.ts', + '!src/hooks/useHostNavigationCanGoBack.ts', + '!src/hooks/useHostNavigationCanGoBack.test.tsx', + '!src/hooks/useResolvedAssetReadUrl.ts', + '!src/hooks/useResolvedAssetReadUrl.test.tsx', + 'src/persistence/*.ts', + 'src/persistence/*.tsx', + '!src/persistence/gameSettingsStorage.ts', + '!src/persistence/gameSettingsStorage.test.ts', + '!src/persistence/storage.ts', + '!src/persistence/storage.test.ts', + 'src/routing/*.ts', + 'src/routing/*.tsx', + '!src/routing/activeAppPageRoutes.ts', + '!src/routing/activeAppPageRoutes.test.ts', + '!src/routing/activeAppRoutes.tsx', + '!src/routing/activeAppRoutes.test.ts', + 'src/services/*.ts', + 'src/services/*.tsx', + '!src/services/activeAppTitle.ts', + '!src/services/activeAppTitle.test.ts', + '!src/services/apiClient.ts', + '!src/services/apiClient.test.ts', + '!src/services/assetReadUrlService.ts', + '!src/services/assetReadUrlService.test.ts', + '!src/services/authService.ts', + '!src/services/authService.test.ts', + '!src/services/clipboard.ts', + '!src/services/clipboard.test.ts', + '!src/services/frontendRuntimeConfigService.ts', + '!src/services/frontendRuntimeConfigService.test.ts', + '!src/services/sseStream.ts', + '!src/services/sseStream.test.ts', 'src/AdventurePanel.tsx', 'src/AdventureEntityModal.tsx', 'src/App.tsx', @@ -265,11 +304,23 @@ module.exports = { 'src/hooks/rpg-runtime-story/**', 'src/hooks/rpg-session/**', 'src/hooks/combat/**', + 'src/hooks/useCombatFlow.ts', + 'src/hooks/useStoryOptions.ts', 'src/prompts/customWorldPrompts.ts', 'src/services/ai.ts', 'src/services/appTitle.ts', 'src/services/appTitle.test.ts', 'src/services/miniGameDraftGenerationProgress.ts', + 'src/services/creationEntryConfigService.ts', + 'src/services/creationUrlState*', + 'src/services/customWorld*', + 'src/services/input-devices/**', + 'src/services/publicWorkCode.ts', + 'src/services/runtimeGuestAuth.ts', + 'src/services/runtimeRequest*', + 'src/services/runtimeAudioFeedback.ts', + 'src/services/useMocapInput*', + 'src/services/wechatMiniProgramSubscribe*', 'src/services/bark-battle-creation/**', 'src/services/bark-battle-runtime/**', 'src/services/big-fish-creation/**', @@ -304,6 +355,10 @@ module.exports = { 'src/services/visual-novel-runtime/**', 'src/services/visual-novel-works/**', 'src/services/wooden-fish/**', + 'src/types.ts', + 'src/types/**', + 'src/uiAssets.ts', + 'scripts/loadtest/**', 'packages/shared/src/contracts/jumpHop.ts', 'packages/shared/src/contracts/match3dAgent.ts', 'packages/shared/src/contracts/match3dRuntime.ts', diff --git a/deploy/container/README.md b/deploy/container/README.md index da6bc1873..9c7f304d6 100644 --- a/deploy/container/README.md +++ b/deploy/container/README.md @@ -10,11 +10,10 @@ Docker Compose ├─ nginx :80 -> api-server:8082,负责静态站点、/admin/、/api/ 反代、upstream timing log、连接限制 ├─ api-server :8082,Linux release 构建,连接 compose 内 SpacetimeDB ├─ external-generation-worker,独立 worker 进程,消费 external_generation_job 队列 -├─ otelcol :4317/4318,debug exporter,接收 traces / metrics / logs -└─ k6 profile=loadtest 时临时启动,在 compose 网络内压 nginx +└─ otelcol :4317/4318,debug exporter,接收 traces / metrics / logs ``` -当前容器模拟参数按 `genarrative-release` 服务器采样值收口为 2 vCPU / 2 GiB RAM / 4096 soft nofile / 768 worker_connections,并已在 compose 里落实到 `spacetimedb cpus=1.0 mem_limit=896m`、`api-server cpus=2.0 mem_limit=1g`、`external-generation-worker cpus=2.0 mem_limit=1g`、`nginx cpus=0.5 mem_limit=128m`、`otelcol cpus=0.25 mem_limit=128m`、`k6 cpus=1.0 mem_limit=512m`。SpacetimeDB 同时设置 `--page_pool_max_size=402653184`,给 reducer、订阅与运行时保留更多非 page pool 内存。 +当前容器模拟参数按 `genarrative-release` 服务器采样值收口为 2 vCPU / 2 GiB RAM / 4096 soft nofile / 768 worker_connections,并已在 compose 里落实到 `spacetimedb cpus=1.0 mem_limit=896m`、`api-server cpus=2.0 mem_limit=1g`、`external-generation-worker cpus=2.0 mem_limit=1g`、`nginx cpus=0.5 mem_limit=128m`、`otelcol cpus=0.25 mem_limit=128m`。SpacetimeDB 同时设置 `--page_pool_max_size=402653184`,给 reducer、订阅与运行时保留更多非 page pool 内存。 容器 `api-server` 默认 `GENARRATIVE_API_WORKER_THREADS=4`,用于让 Tokio 在 2 vCPU 配额内有更多 I/O 调度 worker;该值不会突破 compose 里的 `cpus=2.0` CPU 上限。 容器默认 `GENARRATIVE_EXTERNAL_GENERATION_MODE=queue`,用于验证 `api-server -> external_generation_job -> external-generation-worker` 链路;如只想本地同步排查 provider/OSS/SpacetimeDB 写回,可在本机 env 临时改为 `inline`,但该模式不会覆盖 worker 动态扩缩容验证。 Collector 镜像使用 `otel/opentelemetry-collector-contrib:0.151.0`。 @@ -168,42 +167,9 @@ npm run container:down npm run container:down -- -v ``` -## 压测 +## 历史压测 -k6 在 compose 网络内访问 `http://nginx`,避免 Windows 本机直连连接模型干扰 Linux 容器结果: - -```bash -npm run container:k6 -``` - -作品列表脚本一次 iteration 默认请求两个公开列表接口,因此目标 500 HTTP req/s 对应 `PEAK_RPS=250`: - -```powershell -$env:SCENARIO="spike" -$env:START_RPS="25" -$env:PEAK_RPS="250" -$env:HOLD="60s" -$env:END_RPS="25" -$env:PREALLOCATED_VUS="100" -$env:MAX_VUS="500" -$env:DETAIL_RATIO="0" -npm run container:k6 -``` - -容器内 `api-server` 资源上限与 Nginx 连接模型已经按 `genarrative-release` 的 2C / 2G / `nofile=4096` / `worker_connections=768` 收口;如果你要改成别的机器,就先重新采样再改这里。 - -SpacetimeDB 容器默认只提供运行时,不自动发布模块。首次启动或清理 `spacetime-data` 卷后,先只启动 `spacetimedb` 服务,再发布模块: - -```bash -npm run container:up -- spacetimedb -spacetime publish genarrative-loadtest --server http://127.0.0.1:13101 --module-path server-rs/crates/spacetime-module --yes --build-options="--debug" -``` - -发布完成后再执行 `npm run container:up` 和 `npm run container:k6`。如果 `deploy/container/api-server.env` 里的 `GENARRATIVE_SPACETIME_DATABASE` 改成了别的库名,发布命令里的库名也要同步修改。 - -如果要压 1000 HTTP req/s,把 `PEAK_RPS` 调到 `500`;如果要压 5000 HTTP req/s,把 `PEAK_RPS` 调到 `2500`,并同时提高 `PREALLOCATED_VUS` / `MAX_VUS`,观察是否先被带宽、Nginx `limit_conn` / `limit_req` 或 api-server 分组背压限制。当前容器 Nginx 对公开 gallery list 使用 `genarrative_gallery_rps`,公开详情和普通 API 使用 `genarrative_api_rps`,后台 API 使用 `genarrative_admin_rps`;api-server 侧对应 `GENARRATIVE_API_GALLERY_MAX_CONCURRENT_REQUESTS`、`GENARRATIVE_API_DETAIL_MAX_CONCURRENT_REQUESTS` 和 `GENARRATIVE_API_ADMIN_MAX_CONCURRENT_REQUESTS`。 - -2026-05-19 的 2C / 2G 容器压测结论:公开 gallery list 的 `limit_conn=320`、`limit_req rate=5000r/s burst=4096` 与 `GENARRATIVE_API_GALLERY_MAX_CONCURRENT_REQUESTS=320` 是当前发布口径。用宿主机 k6 打 `http://127.0.0.1:18080`,`PEAK_RPS=2500` 等价于约 5000 HTTP req/s 的两接口组合压测;连续 10 轮不重启 SpacetimeDB 的平均实际吞吐约 `4219 HTTP req/s`,总计 `1,897,357` 个 200、`212,542` 个 429、`0` 个 5xx,200 请求平均 `p95=123ms`、`p99=234ms`。该档会让 SpacetimeDB 内存从约 `366MiB` 累积到约 `885MiB / 896MiB`,下游内存先到危险区。当前不要为了降低“剩余 CPU”继续抬公开列表并发;下一步应减少成功列表请求后的 SpacetimeDB tracking 写入或优化下游连接 / 订阅状态,而不是放大入口并发。 +旧作品列表 / gallery 的 compose `k6` profile 与 `container:k6` 命令已经随模板业务退役。`scripts/loadtest/` 仅保留历史脚本和脱敏样例,不进入当前运行入口;新的容量验收必须针对现役编辑器、项目或素材接口单独设计,不能复用旧作品接口结论。 ### 内存采样 diff --git a/deploy/container/api-server.env.example b/deploy/container/api-server.env.example index 0cca35b21..e70045834 100644 --- a/deploy/container/api-server.env.example +++ b/deploy/container/api-server.env.example @@ -19,8 +19,6 @@ GENARRATIVE_EXTERNAL_GENERATION_WORKER_LEASE_SECONDS=600 GENARRATIVE_EXTERNAL_GENERATION_WORKER_JOB_TIMEOUT_SECONDS=900 GENARRATIVE_EXTERNAL_GENERATION_WORKER_LONG_JOB_TIMEOUT_SECONDS=1800 GENARRATIVE_API_MAX_CONCURRENT_REQUESTS=512 -GENARRATIVE_API_GALLERY_MAX_CONCURRENT_REQUESTS=320 -GENARRATIVE_API_DETAIL_MAX_CONCURRENT_REQUESTS=64 GENARRATIVE_API_ADMIN_MAX_CONCURRENT_REQUESTS=16 GENARRATIVE_TRACKING_OUTBOX_ENABLED=true GENARRATIVE_TRACKING_OUTBOX_DIR=/var/lib/genarrative/tracking-outbox diff --git a/deploy/container/docker-compose.loadtest.yml b/deploy/container/docker-compose.loadtest.yml index 9445f8c07..4b3b30032 100644 --- a/deploy/container/docker-compose.loadtest.yml +++ b/deploy/container/docker-compose.loadtest.yml @@ -139,32 +139,6 @@ services: - "${GENARRATIVE_CONTAINER_OTLP_GRPC_PORT:-4317}:4317" - "${GENARRATIVE_CONTAINER_OTLP_HTTP_PORT:-4318}:4318" - k6: - image: grafana/k6:0.52.0 - profiles: ["loadtest"] - cpus: "1.0" - mem_limit: 512m - depends_on: - nginx: - condition: service_healthy - environment: - BASE_URL: http://nginx - WORKS_DATA: data/works-list.sample.json - SCENARIO: ${SCENARIO:-spike} - START_RPS: ${START_RPS:-5} - PEAK_RPS: ${PEAK_RPS:-250} - HOLD: ${HOLD:-60s} - END_RPS: ${END_RPS:-5} - PREALLOCATED_VUS: ${PREALLOCATED_VUS:-100} - MAX_VUS: ${MAX_VUS:-500} - DETAIL_RATIO: ${DETAIL_RATIO:-0} - SLEEP_MIN_SECONDS: ${SLEEP_MIN_SECONDS:-0} - SLEEP_MAX_SECONDS: ${SLEEP_MAX_SECONDS:-0} - volumes: - - ../../scripts/loadtest:/scripts/loadtest:ro - working_dir: /scripts/loadtest - command: ["run", "k6-works-list.js"] - volumes: spacetime-data: api-tracking-outbox: diff --git a/deploy/container/nginx.conf b/deploy/container/nginx.conf index 2f1715b1b..9e34fbaca 100644 --- a/deploy/container/nginx.conf +++ b/deploy/container/nginx.conf @@ -21,7 +21,6 @@ http { } limit_conn_zone $binary_remote_addr zone=genarrative_api_conn:10m; - limit_req_zone $binary_remote_addr zone=genarrative_gallery_rps:10m rate=5000r/s; limit_req_zone $binary_remote_addr zone=genarrative_api_rps:10m rate=300r/s; limit_req_zone $binary_remote_addr zone=genarrative_admin_rps:10m rate=30r/s; @@ -141,7 +140,7 @@ http { try_files /index.html =404; } - location ~* "^/(?:creation|editor/canvas|project)/?$" { + location ~* "^/(?:creation|editor/canvas|profile|project)/?$" { try_files $uri /index.html =404; } # END GENARRATIVE MAIN SPA ROUTES diff --git a/deploy/env/api-server.env.example b/deploy/env/api-server.env.example index b4a392fa7..c254b1868 100644 --- a/deploy/env/api-server.env.example +++ b/deploy/env/api-server.env.example @@ -18,8 +18,6 @@ GENARRATIVE_EXTERNAL_GENERATION_WORKER_LEASE_SECONDS=600 GENARRATIVE_EXTERNAL_GENERATION_WORKER_JOB_TIMEOUT_SECONDS=900 GENARRATIVE_EXTERNAL_GENERATION_WORKER_LONG_JOB_TIMEOUT_SECONDS=1800 GENARRATIVE_API_MAX_CONCURRENT_REQUESTS=512 -GENARRATIVE_API_GALLERY_MAX_CONCURRENT_REQUESTS=320 -GENARRATIVE_API_DETAIL_MAX_CONCURRENT_REQUESTS=64 GENARRATIVE_API_ADMIN_MAX_CONCURRENT_REQUESTS=16 GENARRATIVE_API_SHUTDOWN_OUTBOX_FLUSH_TIMEOUT_MS=5000 GENARRATIVE_TRACKING_OUTBOX_ENABLED=true @@ -77,9 +75,6 @@ GENARRATIVE_LLM_PROVIDER=openai-compatible GENARRATIVE_LLM_BASE_URL=https://api.vectorengine.cn/v1 GENARRATIVE_LLM_API_KEY= GENARRATIVE_LLM_MODEL=gpt-5.4-mini -GENARRATIVE_RPG_LLM_WEB_SEARCH_ENABLED=false -GENARRATIVE_CREATION_AGENT_LLM_WEB_SEARCH_ENABLED=false - VECTOR_ENGINE_BASE_URL=https://api.vectorengine.cn VECTOR_ENGINE_API_KEY= VECTOR_ENGINE_IMAGE_REQUEST_TIMEOUT_MS=1000000 diff --git a/deploy/nginx/genarrative-dev-http.conf b/deploy/nginx/genarrative-dev-http.conf index 52aa40cfc..f210766ab 100644 --- a/deploy/nginx/genarrative-dev-http.conf +++ b/deploy/nginx/genarrative-dev-http.conf @@ -14,7 +14,6 @@ upstream genarrative_api { } limit_conn_zone $binary_remote_addr zone=genarrative_api_conn:10m; -limit_req_zone $binary_remote_addr zone=genarrative_gallery_rps:10m rate=5000r/s; limit_req_zone $binary_remote_addr zone=genarrative_api_rps:10m rate=300r/s; limit_req_zone $binary_remote_addr zone=genarrative_admin_rps:10m rate=30r/s; @@ -190,7 +189,7 @@ server { try_files /index.html =404; } - location ~* "^/(?:creation|editor/canvas|project)/?$" { + location ~* "^/(?:creation|editor/canvas|profile|project)/?$" { error_page 503 /maintenance.html; if ($genarrative_maintenance) { diff --git a/deploy/nginx/genarrative.conf b/deploy/nginx/genarrative.conf index 12c02618f..87bf769e3 100644 --- a/deploy/nginx/genarrative.conf +++ b/deploy/nginx/genarrative.conf @@ -12,7 +12,6 @@ upstream genarrative_api { } limit_conn_zone $binary_remote_addr zone=genarrative_api_conn:10m; -limit_req_zone $binary_remote_addr zone=genarrative_gallery_rps:10m rate=5000r/s; limit_req_zone $binary_remote_addr zone=genarrative_api_rps:10m rate=300r/s; limit_req_zone $binary_remote_addr zone=genarrative_admin_rps:10m rate=30r/s; @@ -210,7 +209,7 @@ server { try_files /index.html =404; } - location ~* "^/(?:creation|editor/canvas|project)/?$" { + location ~* "^/(?:creation|editor/canvas|profile|project)/?$" { error_page 503 /maintenance.html; if ($genarrative_maintenance) { diff --git a/deploy/pingora/nginx-route-parity.matrix.json b/deploy/pingora/nginx-route-parity.matrix.json index 0ef9163e1..632e190c4 100644 --- a/deploy/pingora/nginx-route-parity.matrix.json +++ b/deploy/pingora/nginx-route-parity.matrix.json @@ -333,6 +333,29 @@ "失败回退 `/index.html`" ] }, + { + "id": "profile_spa_fallback", + "samplePath": "/profile", + "expect": { + "kind": "static", + "root": "web", + "mode": "spa_fallback" + }, + "nginx": { + "production": [ + "# BEGIN GENARRATIVE MAIN SPA ROUTES", + "try_files $uri /index.html =404;" + ], + "development": [ + "# BEGIN GENARRATIVE MAIN SPA ROUTES", + "try_files $uri /index.html =404;" + ] + }, + "docs": [ + "主站 SPA allowlist", + "失败回退 `/index.html`" + ] + }, { "id": "web_spa_case_trailing_slash", "samplePath": "/PROJECT/", diff --git a/deploy/pingora/pingora-gateway.env.example b/deploy/pingora/pingora-gateway.env.example index fc12d4a58..467d559d2 100644 --- a/deploy/pingora/pingora-gateway.env.example +++ b/deploy/pingora/pingora-gateway.env.example @@ -62,12 +62,6 @@ GENARRATIVE_PINGORA_GATEWAY_PROTECTION_ENABLED=true GENARRATIVE_PINGORA_GATEWAY_ADMIN_API_MAX_CONCURRENT=64 GENARRATIVE_PINGORA_GATEWAY_ADMIN_API_RATE_PER_SECOND=30 GENARRATIVE_PINGORA_GATEWAY_ADMIN_API_BURST=16 -GENARRATIVE_PINGORA_GATEWAY_GALLERY_LIST_MAX_CONCURRENT=320 -GENARRATIVE_PINGORA_GATEWAY_GALLERY_LIST_RATE_PER_SECOND=5000 -GENARRATIVE_PINGORA_GATEWAY_GALLERY_LIST_BURST=4096 -GENARRATIVE_PINGORA_GATEWAY_GALLERY_DETAIL_MAX_CONCURRENT=32 -GENARRATIVE_PINGORA_GATEWAY_GALLERY_DETAIL_RATE_PER_SECOND=300 -GENARRATIVE_PINGORA_GATEWAY_GALLERY_DETAIL_BURST=32 GENARRATIVE_PINGORA_GATEWAY_API_MAX_CONCURRENT=64 GENARRATIVE_PINGORA_GATEWAY_API_RATE_PER_SECOND=300 GENARRATIVE_PINGORA_GATEWAY_API_BURST=64 diff --git a/docs/project-memory/shared-memory/decision-log.md b/docs/project-memory/shared-memory/decision-log.md index 236fda467..da4531b10 100644 --- a/docs/project-memory/shared-memory/decision-log.md +++ b/docs/project-memory/shared-memory/decision-log.md @@ -653,6 +653,7 @@ - 2026-06-20 桌面能力清单单测边界:Tauri `capabilities.rs` 必须用 Rust 单测同时覆盖桌面 runtime capability 清单顺序、无重复、真实桌面能力完整包含,并显式排除 `auth.requestLogin`、`payment.request`、`file.captureImage`、`scanner.scanQrCode` 和 `haptics.impact` 等未接入能力;桌面单端配置检查会反查该测试边界,避免只靠方案文档或共享 profile 发现桌面壳能力伪声明。 - 2026-06-20 桌面本地通知契约镜像:Tauri `notification.showLocal` 的 title / body 归一化、长度上限和成功结果 action 必须镜像共享 HostBridge 契约;Rust 侧常量使用 `HOST_BRIDGE_LOCAL_NOTIFICATION_TITLE_MAX_LENGTH`、`HOST_BRIDGE_LOCAL_NOTIFICATION_BODY_MAX_LENGTH` 和 `HOST_BRIDGE_LOCAL_NOTIFICATION_DELIVERED_TO_SYSTEM_ACTION` 命名,桌面单端配置检查会与 `packages/shared/src/contracts/hostBridge.ts` 比对数值并反查成功结果由该 action 常量组装,避免通知 payload 边界变成桌面壳本地规则。 - 2026-06-19 桌面壳外链打开 helper 共用:Tauri WebView 外域拦截和 HostBridge `app.openExternalUrl` 都必须复用 `open_normalized_desktop_external_url` 执行系统外链打开动作;HostBridge 分支仍先用 `normalize_external_url` 保留 payload 错误语义并把 opener 错误回传给 H5,WebView 拦截保持 best-effort 静默处理。桌面壳配置检查会拒绝 `dispatch.rs` 直接调用 `app.opener().open_url` 绕过该 helper,避免两条离壳路径漂移。 +> 2026-07-18 覆盖说明:本段后续关于微信 `navigation.openNativePage`、生成结果订阅页、`[subscribe-message]` 日志和订阅页路由门禁的 2026-06 决策均已由旧创作模板退役决策废止,只作为历史记录。Expo / Tauri 的同源 H5 受控导航及微信登录、支付、分享能力继续有效。 - 2026-06-20 H5 原生导航预校验:`navigateHostNativePage()` 在 `native_app` 下发送 `navigation.openNativePage` 前必须先拒绝空值、控制字符、协议相对 URL、外域绝对 URL 和非 `http:` / `https:` 协议目标;同源绝对 URL、`/path` 和保留给桌面壳兼容的相对 route 继续交给 Expo / Tauri 壳二次归一并补写宿主上下文。微信小程序分支仍按小程序页面 URL 语义走 `wx.miniProgram.navigateTo`,不套原生 App 同源 H5 预校验。根级 `npm run check:native-shells` 会反查 H5 facade 仍使用 `normalizeNativeAppPageUrl(...)` 且发送归一后的 URL,避免明显不安全目标触达原生壳。 - 2026-06-20 微信受控原生页能力声明:微信小程序壳真实 capability profile 声明 `navigation.openNativePage`,用于承接已经登记并测试的小程序原生页 flow;当前订阅生成结果通知页通过 H5 `requestGenerationResultSubscribePermission()` 调用 `navigateHostNativePage()` 打开 `/pages/subscribe-message/index`,小程序页再调用真实 `wx.requestSubscribeMessage` 并按既有结果协议回灌。根级 `npm run check:native-shells` 必须把该能力反查到共享 profile、微信 `WECHAT_HOST_CAPABILITIES` 镜像、订阅页协议常量、H5 入口、小程序 host-bridge / shell / page 文件和相关测试;该能力不代表开放任意小程序页面跳转。 - 2026-06-18 能力声明收紧:`packages/shared/src/contracts/hostBridge.ts` 提供 HostBridge method / capability 白名单,H5 的 `getHostRuntime()` 会解析并过滤 `hostCapabilities`;`openHostShare`、`writeHostClipboardText`、`requestHostHapticsImpact`、`setHostAppTitle`、`exportHostTextFile` 等 native 能力只在宿主声明对应 capability 后调用。发布分享弹窗只有声明 `share.open` 时才显示受控分享动作,并按 `hostShell` 区分 Expo 系统分享面板和 Tauri 剪贴板复制表达,避免旧壳或裁剪壳露出不可用入口。 @@ -781,6 +782,8 @@ ## 2026-06-17 H5 宿主壳能力统一走 HostBridge +> 2026-07-18 覆盖说明:以下订阅授权、订阅页和旧玩法导航部分已退役;登录、支付、分享、九宫切图与通用 HostBridge 分层仍有效。 + - 背景:主站同时运行在普通浏览器、微信小程序 `web-view` 和未来可能出现的原生 App WebView 中;登录、支付、分享、订阅授权和运行态分享目标同步曾散落在业务组件与服务文件里,后续新增宿主壳会导致同一业务重复分叉。 - 决策:前端宿主运行态识别、微信小程序 JS SDK 加载、原生页跳转、支付跳转、登录跳转、九宫切图和 `postMessage` 统一收口到 `src/services/host-bridge/hostBridge.ts`,业务层优先调用 `getHostRuntime`、`requestHostLogin`、`requestHostPayment`、`navigateHostNativePage`、`setHostShareTarget` 和 `openHostShareGrid`。`authService`、分享服务、订阅授权和个人中心充值可保留兼容导出或业务编排,但不再自行加载微信 JS SDK 或直接判断 `wx.miniProgram`。固定内置玩法不走代码包下载流程;AI 生成 H5 沙箱后续单独定义受限 `GameBridge`,不得直接暴露完整 `HostBridge`。 - 影响范围:`src/services/host-bridge/`、`src/services/authService.ts`、`src/services/payment/paymentPlatform.ts`、`src/services/wechatMiniProgramShareGrid.ts`、`src/services/wechatMiniProgramShareTarget.ts`、`src/services/wechatMiniProgramSubscribe.ts`、`src/components/platform-entry/usePlatformProfileCenterController.ts`、微信小程序壳和未来原生 App 壳接入。 @@ -4222,4 +4225,14 @@ - 背景:旧创作模板退役时误把新版 `/creation`、桌面公共侧边栏和“我的”完整资料页一起缩减;只恢复视觉后,现役 profile client 又经 `rpg-entry` barrel 把旧作品库、旧 runtime request 和展示模型重新带入 Vite 与 TypeScript 图。 - 决策:桌面端继续使用原平台公共结构,一级导航固定为 `创作 / 项目 / 我的`;顶栏保留编辑器项目 / 素材搜索、泥点入口和账号胶囊;“我的”全宽保留资料编辑、陶泥号、三项统计、充值、兑换码、社区、反馈、通用设置、API Key 和法律信息。搜索只面向编辑器项目与公开编辑器素材,不恢复旧公开作品搜索。 - 依赖边界:公共 dashboard、钱包、充值、兑换码、邀请码、API Key 和设置请求迁入 `services/platform-entry`,公共账单展示迁入现役 profile model。Vite 新增退役模块 graph 门禁,ESLint 对现役源码禁止导入旧目录;目录 watch ignore、Tailwind source、tsconfig include 和 tree-shaking 都不能作为依赖隔离证明。 -- 影响范围:`PlatformEntryActiveFlowShell`、`PlatformActiveProfileView`、编辑器 / 项目搜索、平台 profile clients、Vite / ESLint 门禁及旧业务退役方案。 +- 路由与响应式边界:`/creation`、`/project`、`/profile` 都是可刷新、可前进 / 后退的稳定路由;桌面端使用侧边栏,移动端必须提供同样 `创作 / 项目 / 我的` 的三项底部 dock,不得因隐藏桌面侧边栏而丢失移动导航。 +- 公共设置边界:`runtime_setting` 保持原表结构与历史数据,但它是音乐音量和平台主题的现役账号级公共能力,不归入旧玩法数据壳。鉴权后的 `GET/PUT /api/runtime/settings` 必须经 `spacetime-client` 调用 `get_runtime_setting_or_default` / `upsert_runtime_setting_and_return`;保留该路由不构成恢复旧 runtime API 的先例。 +- 编译门禁:除旧业务目录外,`src/uiAssets.ts`、`src/types.ts`、`src/types/**`、`src/services/runtimeAudioFeedback.ts` 和 `src/services/publicWorkCode.ts` 也是顶层退役 module,必须同时退出 Vite module graph、TypeScript、ESLint 和 Vitest;`/audio/**`、`/chat.png`、`/fusion-pixel.ttf` 及旧 pixel / story-tab / 玩法 CSS 不得进入 dev 服务或生产产物。验收时必须同时检查 `tsc --listFilesOnly`、Vite 依赖图 / 产物和退役资产路径,不能只依赖 tree-shaking。 +- Rust 产物边界:`module-runtime` 继续承载账号、钱包、公共设置、追踪和 feature gate,但 `CreationEntry*`、旧公开作品、存档、浏览历史与游玩统计 DTO / command / mapper / 规则必须退出实际 rlib;只保留历史表需要的 `RuntimeBrowseHistoryThemeMode`、完整保序的钱包流水来源枚举等持久化 ABI。`check:server-rs-ddd` 必须执行 `check:module-runtime-artifact`,同时验证旧符号和字面量为零、必要 ABI 仍存在,不能以源码存在 `#[cfg(any())]` 或路由未挂载代替产物证明。 +- 外围编译边界:`platform-auth` 不再编译 runtime guest token,`platform-wechat` 不再编译旧玩法生成结果订阅消息,小程序不再注册订阅授权页;旧公开作品资产授权 view 退出 SpacetimeDB module,匿名素材读取只保留现役 editor showcase 派生授权。 +- 历史队列边界:现役 external generation worker 只领取 `source_module = editor-canvas` 的任务,历史旧玩法 pending / running 行保持原状态,不得被新 worker 领取后改写为失败。 +- Agent crate 边界:`platform-agent` 的执行器、工具注册表、回调和拼图 Phase 1 输入均属于已退役 Creative Agent 业务,不得因现役编辑器 Agent 共用一个模型名常量而留在 workspace 或 `api-server` 依赖图。该常量收口到 `platform-llm`,`platform-agent` 与仅由它引入的 `langchainrust` 退出在运 Cargo resolve graph,源码目录继续仅作历史追溯。 +- 防回流补充:顶层 `creationEntryConfigService`、`creationUrlState`、`customWorld*`、`runtimeGuestAuth`、`runtimeRequest`、`input-devices`、`useCombatFlow`、`useStoryOptions`、`useMocapInput` 和微信生成订阅 facade 同样属于退役前端模块;Vite dev 对旧 `/api/creation*` 与 `/api/public-works*` 前缀直接返回 404,不能回落 SPA HTML。 +- Vite 全量边界补充:`src/games/**`、`src/data/**`、`src/prompts/**`、旧顶层 App / Playground、旧路由和 `services/ai.ts` 必须由 pre-transform 门禁直接拒绝;所有同源 `/generated-*` 裸读在 dev 与生产统一为空 `404`,历史对象只经现役签名读取接口兼容,不允许 SPA fallback 伪装成资产成功响应。 +- 前端混合根目录补充:`src/components`、`src/hooks`、`src/persistence`、`src/routing`、`src/services` 的根级文件实行现役白名单,Vite 与 ESLint 使用同一口径阻断旧 RPG / 玩法根文件;子目录仍按现役目录和退役目录分别管理,新增公共根文件必须显式登记。 +- 影响范围:`PlatformEntryActiveFlowShell`、`PlatformActiveProfileView`、编辑器 / 项目搜索、平台 profile clients、`module-runtime`、`platform-llm`、Cargo workspace / resolve graph、Vite / ESLint / Rust 产物门禁及旧业务退役方案。 diff --git a/docs/project-memory/shared-memory/development-workflow.md b/docs/project-memory/shared-memory/development-workflow.md index eacc85123..5630daee9 100644 --- a/docs/project-memory/shared-memory/development-workflow.md +++ b/docs/project-memory/shared-memory/development-workflow.md @@ -186,7 +186,7 @@ npm run check:rustfmt cargo fmt --all --manifest-path server-rs/Cargo.toml ``` -- 后端通用用户行为埋点统一通过 `record_tracking_event_and_return` procedure、`SpacetimeRuntimeClient::record_tracking_event(...)` 与 api-server `tracking` 中间件写入 `tracking_event` / `tracking_daily_stat`;后台、RPG、大鱼吃小鱼、Visual Novel、Story、Combat 默认排除;作品级游玩埋点统一使用 `work_play_start`,详细事件清单见 `docs/technical/BACKEND_TRACKING_EVENT_COVERAGE_2026-05-09.md`。 +- 后端通用用户行为埋点统一通过 `record_tracking_event_and_return` procedure、`SpacetimeRuntimeClient::record_tracking_event(...)` 与 api-server `tracking` 中间件写入 `tracking_event` / `tracking_daily_stat`;现役账号、钱包、编辑器、项目、精选素材和公共设置路由按 `tracking.rs` 的显式静态路由表记录,后台路由默认排除。旧玩法、公开作品和专属运行态路由已经退役,不再维护作品级游玩埋点覆盖。 编码检查: @@ -231,23 +231,15 @@ npm run check:native-shells ``` 该命令会覆盖 H5 HostBridge 关键测试、微信 / Expo / Tauri 三端桥接层文件结构门禁、完整相对路径文档反查、微信 capability 到真实 WebView / 支付 / 分享页面流程和测试清单的映射门禁、H5 HostBridge 事件订阅双能力门控反查、H5 `navigation.canGoBack` 消费 hook 与直达二级页返回锚点测试、移动端和桌面端单端源码清单门禁、Expo 壳 typecheck / test / EAS build config smoke / config smoke / Metro export smoke、Tauri 壳 typecheck / cargo test、桌面壳 release `--no-bundle` 构建烟测,以及可分发壳与 H5 HostBridge 真实调用链的临时替身词扫描,确认 Expo managed config、移动端 EAS 原生包构建 profile、移动端 iOS / Android production bundle、打包 H5 资产、Tauri release 入口、H5 页面内导航保留完整原生宿主上下文和 H5 HostBridge 真实调用链没有漂移;扫描范围包含微信小程序壳生产 `.js`、Tauri `Info.plist`、共享 HostBridge 契约、H5 native transport,并自动覆盖已接入真实宿主能力 facade 的 H5 生产调用链文件,但不扫描 Expo export、Tauri `target/`、Cargo / Metro 缓存或 release 构建产物。移动壳配置检查必须反查 EAS 生产 profile、文本 / 文档 / 图片 / 音频导入边界都来自共享 HostBridge 契约。登录与支付外链跳转必须保持在该调用链扫描内,`src/services/authService.ts` 和 `src/services/payment/paymentRedirect.ts` 是必扫文件;`AuthGate` 的登录成功、退出登录、身份边界刷新和登录状态异常重试都必须通过 `app.reloadWebView` 优先路径,并由 `src/components/auth/AuthGate.test.tsx` 进入该门禁。壳源码和配置继续严格禁止 mock / fake / placeholder / stub / TODO / FIXME / 占位 / 模拟 / 伪造 / 未实现 / 临时;H5 业务调用链允许正常表单 `placeholder` 属性、业务占位图文案和真实兼容 / 故障语义中的“未实现”“临时”表述,但仍禁止 mock / fake / stub / TODO / FIXME / 模拟 / 伪造等替身痕迹。 -创作 Agent 原生壳文档导入优先走 `file.importDocument`,旧壳只声明 `file.importText` 时才回退文本导入;相关变更必须让根级和单端门禁覆盖共享 method、capability profile、文档 MIME / 5 MiB 上限、读取前 size 校验,以及 H5 base64 转 `File` 后继续走后端文档解析的链路。 -创作 Agent 参考图上传在原生壳声明 `file.importImage` 时必须优先走宿主图片导入,并把 H5 base64 转 `File` 后继续交给既有 `onReferenceImageChange` 校验链路;用户取消原生选择不应再连带弹出浏览器文件输入,普通浏览器、小程序和未声明能力的裁剪壳才使用原隐藏文件输入。 -创作 Agent 轻输入 composer 的参考图按钮在原生壳声明 `file.importImage` 时必须优先走宿主图片导入;移动壳声明 `file.captureImage` 时才显示拍摄参考图入口,并把宿主图片同样转为 `File` 后复用 `readPuzzleReferenceImageAsDataUrl` 的类型、大小、压缩和预览链路。 反馈页上传凭证在原生壳声明 `file.importImage` 时必须优先走宿主图片导入;移动壳声明 `file.captureImage` 时才显示拍摄凭证入口,并把拍摄图片同样转为 `File` 后复用反馈页原有数量、大小、MIME、data URL 预览和提交 payload 校验。 -固定内置 H5 体验入口在原生壳声明 `navigation.openNativePage` 时必须优先走 `navigateHostNativePage()`;例如儿童动作热身 Demo 从平台首页进入 `/child-motion-demo` 时应由 HostBridge 发出 `navigation.openNativePage`,宿主不可用时才回退浏览器跳转。 +Expo / Tauri 声明 `navigation.openNativePage` 时,只用于现役同源 H5 路由的受控导航和宿主上下文续接;微信小程序不再声明该能力。旧儿童动作 Demo、模板工作台、生成页、结果页和运行态不得作为 HostBridge 导航验收入口。 H5 支付链接跳转在原生壳声明 `app.openExternalUrl` 时必须优先走宿主系统浏览器;原生壳未接真实支付 SDK 前不得声明 `payment.request`,也不得把外部 H5 支付跳转伪装成原生支付成功。 微信 OAuth 登录授权 URL 在原生壳声明 `app.openExternalUrl` 时必须优先走宿主系统浏览器;原生壳未接真实登录 SDK 前不得声明 `auth.requestLogin`,也不得把网页登录跳转伪装成原生登录成功。 -汪汪声浪结果页玩家 / 对手 / UI 背景三图槽位上传在原生壳声明 `file.importImage` 时必须优先走宿主图片导入,并把 H5 base64 转 `File` 后继续交给 `uploadBarkBattleAsset` 与当前槽位写回链路;用户取消原生选择不应再连带弹出浏览器文件输入,普通浏览器、小程序和未声明能力的裁剪壳才使用原隐藏文件输入。 -抓大鹅结果页发布封面图和封面参考图上传在原生壳声明 `file.importImage` 时必须优先走宿主图片导入,并把 H5 base64 转 `File` 后复用现有封面 data URL 读取、AI 重绘开关、参考图集合和封面生成 payload 链路;用户取消原生选择不应再连带弹出浏览器文件输入。 -RPG 角色资产工作室的角色参考图上传在原生壳声明 `file.importImage` 时必须优先走宿主图片导入,并把 H5 base64 转 `File` 后复用现有 `readFileAsDataUrl` 参考图集合和角色形象生成 payload 链路;用户取消原生选择不应再连带弹出浏览器文件输入。 -RPG 作品封面上传在原生壳声明 `file.importImage` 时必须优先走宿主图片导入,并把 H5 base64 转 `File` 后复用现有 10 MiB 校验、图片尺寸读取、16:9 裁剪和 `uploadCustomWorldCoverImage` 保存链路;用户取消原生选择不应再连带弹出浏览器文件输入。 -RPG 作品封面参考图上传在原生壳声明 `file.importImage` 时必须优先走宿主图片导入,并把 H5 base64 转 `File` 后复用现有 `readImageFileAsDataUrl` 读取、预览和 `generateCustomWorldCoverImage` payload 链路;用户取消原生选择不应再连带弹出浏览器文件输入。 -RPG 场景图片参考图上传在原生壳声明 `file.importImage` 时必须优先走宿主图片导入,并把 H5 base64 转 `File` 后复用现有 `readImageFileAsDataUrl` 读取、预览和 `rpgCreationAssetClient.generateSceneImage` payload 链路;用户取消原生选择不应再连带弹出浏览器文件输入。 +现役编辑器与个人中心新增文件导入能力时,继续复用共享 `file.importDocument`、`file.importImage`、`file.captureImage` 和 MIME / 大小门禁,不得把已退役模板的上传 service、玩法 DTO 或页面测试重新纳入原生壳门禁。 视觉小说结果页封面 / 角色 / 场景图片和音乐 / 环境音上传在原生壳声明 `file.importImage` / `file.importAudio` 时必须优先走宿主受控导入,并把 H5 base64 转 `File` 后继续交给 `uploadVisualNovelAsset` 与当前素材字段写回链路;用户取消原生选择不应再连带弹出浏览器文件输入,历史素材选择和 AI 图片生成保持原链路。 该命令会反查微信小程序 `WECHAT_HOST_CAPABILITIES` 与共享 `HOST_BRIDGE_WECHAT_MINI_PROGRAM_CAPABILITIES` 一致;小程序生产代码继续保留 CommonJS 运行时镜像,不直接 import TypeScript shared 包。 该命令同时会运行微信小程序 `miniprogram/host-bridge/`、`miniprogram/shell/`、`pages/web-view` 样式和 `scripts/miniprogram-web-view-auth.test.ts` 的壳层测试,保证微信桥接层拆分后的支付、订阅消息、九宫切图、分享目标和 WebView 登录 / 分享入口行为与 Expo、Tauri 壳一起验收。 -该命令还会反查微信小程序 `app.json.pages` 与 `host-bridge/protocol.js` 页面 URL、H5 小程序页面常量、H5 订阅授权页面常量、WebView 分享入口、分享目标消息类型、`WEB_VIEW_SOURCE_QUERY`、微信请求头运行时标记、H5 runtime parser、H5 路由保留字段和 H5 / API base URL 格式,避免页面路由、来源标记、宿主上下文 query 或域名配置在微信壳、H5 HostBridge 与运行时配置之间分叉。生产 / 开发 H5 与 API 域名都必须显式配置为纯 HTTPS domain,运行时开发域名回退生产域名只作为异常兜底。 +该命令还会反查微信小程序 `app.json.pages` 与 `host-bridge/protocol.js` 现役页面 URL、H5 小程序页面常量、WebView 分享入口、分享目标消息类型、`WEB_VIEW_SOURCE_QUERY`、微信请求头运行时标记、H5 runtime parser、H5 路由保留字段和 H5 / API base URL 格式,避免页面路由、来源标记、宿主上下文 query 或域名配置在微信壳、H5 HostBridge 与运行时配置之间分叉。旧生成结果订阅授权页和对应 H5 service 不再进入清单。生产 / 开发 H5 与 API 域名都必须显式配置为纯 HTTPS domain,运行时开发域名回退生产域名只作为异常兜底。 内容检查: @@ -314,8 +306,8 @@ npm run check:server-rs-ddd - 移动端优先,再兼容网页端。 - 页面只展示后端返回的状态,不自行计算结论型业务状态。 -- 创作中心入口配置事实源在 SpacetimeDB,通过 `GET /api/creation-entry/config` 下发;前端只在 `platformEntryCreationTypes.ts` 做展示派生,api-server 路由熔断也使用同一份配置,禁止恢复前端硬编码入口配置文件。底部加号创作入口页公告位也跟随后端 `eventBanners` 配置,前端只做展示和轮播;后台公告用表单维护标题与 HTML 内容,保存时再序列化为后端 `eventBannersJson` 传输字段。`最近创作` 不属于模板分类,不能作为分类缺失兜底;生成中和生成失败的真实草稿摘要都应进入最近创作。 -- 一期统一创作页字段 spec 同样跟随 `GET /api/creation-entry/config`,由 `creationTypes[].unifiedCreationSpec` 下发;拼图、抓大鹅、敲木鱼之外的模板不接入该扩展位,前端只保留旧后端缺字段时的兜底默认。 +- 现役一级入口为 `/creation`、`/project`、`/profile`,桌面侧边栏和移动端底部 dock 都固定显示“创作 / 项目 / 我的”。`/creation` 只读取图片编辑器项目与 `GET /api/editor/showcase/resources`,不得重新接入旧模板入口配置、旧作品架或专属运行态。 +- 旧创作模板目录和顶层旧业务模块必须持续退出 Vite、TypeScript、ESLint 与 Vitest;旧 `/api/creation-entry/config`、模板 API、公开作品详情和运行态 API 必须保持未挂载。SpacetimeDB 历史表、迁移白名单与必要兼容类型只作为数据壳保留,不得据此恢复业务逻辑。 - 优先复用现有面板、抽屉、弹窗,不新建独立大系统。 - 不在 UI 中默认写功能说明类文本。 - 弹出独立面板的交互不要实现成在当前面板下方追加内容。 @@ -329,7 +321,7 @@ npm run check:server-rs-ddd ## 提交前建议让 Agent 执行 -涉及拼图、抓大鹅、敲木鱼统一创作 / 生成链路、Phase 2 之后的跨玩法回归或本地 dev 栈时,先按 `quality-gates/README.md`、`quality-gates/【玩法创作】跨玩法回归与冒烟门禁-2026-05-30.md` 和对应单项门禁文档执行自动脚本与体验检查。 +涉及现役编辑器、项目、精选素材、账号、钱包、公共设置或本地 dev 栈时,按对应定向测试、类型检查、Rust / SpacetimeDB 门禁、真实浏览器 smoke 与本文件当前命令验收。旧跨玩法回归和单玩法质量门禁只作历史记录,不再作为提交前现役检查入口。 ```text 请检查当前 git diff,指出: diff --git a/docs/project-memory/shared-memory/pitfalls.md b/docs/project-memory/shared-memory/pitfalls.md index 68a0dad40..429d840b4 100644 --- a/docs/project-memory/shared-memory/pitfalls.md +++ b/docs/project-memory/shared-memory/pitfalls.md @@ -2929,6 +2929,8 @@ ## 小程序订阅消息授权不要依赖 web-view bindmessage +> 2026-07-18:本节及下一节只作为历史记录。生成结果订阅页、H5 service、HostBridge capability 和后端发送链路已随旧创作模板业务退役,不得按这些排障步骤恢复。 + - 现象:拼图点击生成后,H5 以为已经请求了生成结果订阅授权,但小程序没有弹出 `wx.requestSubscribeMessage` 授权框。 - 原因:`web-view bindmessage` / `wx.miniProgram.postMessage` 不适合承接“当前用户点击后立刻请求授权”的时序,消息可能等到 web-view 后退、分享或销毁时才派发,导致授权请求没有发生在 `compile_puzzle_draft` 前。 - 处理:不要在原生页 `onLoad` 自动触发 `wx.requestSubscribeMessage`,真机会闪页返回且不弹授权框。H5 在 `compile_puzzle_draft` 前应先进入生成进度态并立即发起生成 action,再通过微信 JS SDK `miniProgram.navigateTo` 非阻塞跳转到小程序原生订阅页尝试请求授权;用户接受、拒绝或返回都不能阻塞生成。原生页不要改写上一页 `webViewUrl`,否则 web-view 可能重新加载首页并丢失进度页状态。后端发送订阅消息仍只允许在拼图资产成功或失败终态后执行。 @@ -2937,6 +2939,8 @@ ## 微信订阅消息 time 字段不能用内部时间戳 +> 2026-07-18:该能力已退役,本节不再作为现役排障入口。 + - 现象:dev 服务器拼图资产生成终态后已经调用订阅消息发送,但日志出现 `微信订阅消息发送失败:argument invalid! data.time4.value invalid`,用户收不到生成结果通知。 - 原因:微信模板 `time` 字段不接受内部微秒时间戳、秒级时间戳或带 `Z` / 时区后缀的字符串;发送 `1713686401.234567Z` 或类似 `2026-06-08 08:09:18Z` 会被微信拒绝。 - 处理:`api-server` 构造生成结果订阅消息时,`time4` 固定格式化为北京时间 `YYYY-MM-DD HH:mm`;不要复用 `shared_kernel::format_timestamp_micros`。 diff --git a/docs/project-memory/shared-memory/project-overview.md b/docs/project-memory/shared-memory/project-overview.md index 8de7407b5..ce0e69c86 100644 --- a/docs/project-memory/shared-memory/project-overview.md +++ b/docs/project-memory/shared-memory/project-overview.md @@ -1,6 +1,6 @@ # Genarrative 项目共享概览 -更新时间:`2026-07-17` +更新时间:`2026-07-18` ## 一句话定位 @@ -21,7 +21,7 @@ Genarrative / 陶泥儿是一个 AI 原生互动内容与小游戏平台,把 A - 小程序 WebView 外壳:`miniprogram/`。 - 法律文本:`media/files/user_agreement.md`、`media/files/privacy_policy.md`、`media/files/disclaimer.md`。 -移动端一级 Tab:`推荐 / 发现 / 我的`。桌面端导航保留 `创作 / 项目 / 我的`,其中 `/creation` 是独立创作工具主页,`/project` 是画布项目入口,“我的”继续承载账号、钱包、统计和通用设置等平台公共能力。 +桌面端侧边栏和移动端底部 dock 的一级入口统一为 `创作 / 项目 / 我的`。`/creation` 是独立创作工具主页,`/project` 是画布项目入口,`/profile` 是“我的”稳定路由,继续承载账号、钱包、统计和通用设置等平台公共能力;刷新及浏览器前进 / 后退必须保持当前入口与选中态一致。 ## 当前后端路线 diff --git a/docs/technical/【前端架构】PlatformSelectionStageModel收口计划-2026-06-04.md b/docs/technical/【前端架构】PlatformSelectionStageModel收口计划-2026-06-04.md index bb235147f..3bcb30b35 100644 --- a/docs/technical/【前端架构】PlatformSelectionStageModel收口计划-2026-06-04.md +++ b/docs/technical/【前端架构】PlatformSelectionStageModel收口计划-2026-06-04.md @@ -1,5 +1,7 @@ # 【前端架构】Platform Selection Stage Model 收口计划 +> 2026-07-18 退役覆盖:本文涉及旧玩法 stage、生成页、结果页、公开详情和运行态的规则仅作为历史设计记录,不再进入现役前端编译链。当前稳定入口为 `/creation`、`/project` 与 `/profile`。 + ## 背景 `PlatformEntryFlowShellImpl.tsx` 在受保护数据失效后会清空当前用户的私有作品、运行态、草稿 notice 和生成状态。清理完成后,壳层还要判断当前 `SelectionStage` 是否还能继续展示:公开首页、公开详情、工作台入口等阶段可保留;结果页、生成页、运行态、个人反馈等依赖私有数据或运行态快照的阶段必须回到首页。 diff --git a/docs/technical/【后端架构】外部生成Worker化方案-2026-06-03.md b/docs/technical/【后端架构】外部生成Worker化方案-2026-06-03.md index 18b59ea78..f8cfe03aa 100644 --- a/docs/technical/【后端架构】外部生成Worker化方案-2026-06-03.md +++ b/docs/technical/【后端架构】外部生成Worker化方案-2026-06-03.md @@ -1,5 +1,7 @@ # 外部生成 Worker 化方案 +> 2026-07-18 退役覆盖:旧创作模板 job 类型、玩法写回和玩法恢复链路均已退出现役 worker。当前 worker 只领取 `source_module = editor-canvas` 的任务;本文涉及拼图、跳一跳、拼消消、敲木鱼等玩法的内容仅作为历史设计记录,历史队列行不得被领取或改写。 + 更新时间:`2026-07-15` ## 背景 diff --git a/docs/technical/【后端架构】统一公开作品ReadModel设计-2026-05-26.md b/docs/technical/【后端架构】统一公开作品ReadModel设计-2026-05-26.md index ff8f6f236..d9865c9f3 100644 --- a/docs/technical/【后端架构】统一公开作品ReadModel设计-2026-05-26.md +++ b/docs/technical/【后端架构】统一公开作品ReadModel设计-2026-05-26.md @@ -1,5 +1,7 @@ # 统一公开作品 ReadModel 设计 +> 2026-07-18 退役覆盖:统一公开作品 BFF、read model、逐玩法 source view 和互动链路均已退出现役编译与路由。相关历史表只作为 schema 数据壳保留;新版 `/creation` 只读取编辑器精选素材。本文其余内容仅作为历史设计记录。 + 更新时间:`2026-05-26` ## 背景 diff --git a/docs/technical/【开发运维】Pingora独立网关试点-2026-06-11.md b/docs/technical/【开发运维】Pingora独立网关试点-2026-06-11.md index 9077b7003..82f6dfbf4 100644 --- a/docs/technical/【开发运维】Pingora独立网关试点-2026-06-11.md +++ b/docs/technical/【开发运维】Pingora独立网关试点-2026-06-11.md @@ -18,7 +18,7 @@ - 代理路径上的上游连接失败会返回统一 JSON;`502` 使用 `GATEWAY_UPSTREAM_ERROR`,`504` 使用 `GATEWAY_UPSTREAM_TIMEOUT`,避免 shadow / canary 阶段把框架默认错误页透给前端或巡检。 - 上游超时显式配置在 Pingora peer 上:连接超时默认 `3000ms`,没有 Nginx 显式长超时的代理路由读取默认 `60s`,通用 `/api`、公开列表 / 详情和 SpacetimeDB subscribe 读取默认 `3600s`,写入超时默认 `3600s`。读 / 写 / 连接超时统一映射为 JSON `504 GATEWAY_UPSTREAM_TIMEOUT`。 - 默认开启 gzip 响应压缩,`GENARRATIVE_PINGORA_GATEWAY_GZIP_LEVEL=5` 和 `GENARRATIVE_PINGORA_GATEWAY_GZIP_MIN_LENGTH_BYTES=1024` 对齐当前 Nginx `gzip_comp_level 5` / `gzip_min_length 1024`;`GENARRATIVE_PINGORA_GATEWAY_GZIP_ENABLED=false` 时禁用。`GENARRATIVE_PINGORA_GATEWAY_COMPRESSION_ALGORITHMS=gzip` 是当前唯一允许的压缩算法白名单;网关会在进入 Pingora compression 模块前把 `Accept-Encoding` 收敛为 gzip,避免未验收的 `br` / `zstd` 被隐式打开。压缩能力由 `check:pingora-gateway-smoke` 用小响应不压缩、图片资源不压缩、大响应 `Accept-Encoding: gzip`、`Accept-Encoding: br, gzip`、`Content-Encoding: gzip`、`Vary: Accept-Encoding` 和解压后的响应体一起验证。Brotli 不进入当前 Pingora 正式化口径,仍由 Nginx / 前置代理能力探测承担;直连 Pingora 时不把 Brotli parity 作为切换门禁。 -- 默认开启单进程内接流保护,按客户端 IP 与路由组执行并发上限、RPS 和 burst 限制。保护组默认对齐当前 Nginx:`admin_api=64/30rps/16burst`、`gallery_list=320/5000rps/4096burst`、`gallery_detail=32/300rps/32burst`、`api=64/300rps/64burst`、`spacetime=256/1000rps/256burst`。超限返回 JSON `429` 并带 `Retry-After: 1`。 +- 默认开启单进程内接流保护,按客户端 IP 与路由组执行并发上限、RPS 和 burst 限制。保护组默认对齐当前 Nginx:`admin_api=64/30rps/16burst`、`api=64/300rps/64burst`、`spacetime=256/1000rps/256burst`。超限返回 JSON `429` 并带 `Retry-After: 1`。 - 当前接流保护的默认正式口径是单 Pingora 实例。`GENARRATIVE_PINGORA_GATEWAY_INSTANCE_COUNT` 默认 `1`;若 `GENARRATIVE_PINGORA_GATEWAY_PROTECTION_ENABLED=true` 且 `GENARRATIVE_PINGORA_GATEWAY_INSTANCE_COUNT>1`,必须先落地共享限流 / 共享并发保护层,并显式设置 `GENARRATIVE_PINGORA_GATEWAY_SHARED_PROTECTION_CONFIRMED=true`,否则网关启动和目标机 direct preflight 都会失败。若关闭网关保护后横向多实例运行,则全局接流保护必须由前置 Nginx / LB 承担。 - 默认以 TCP 对端 IP 作为限流 client key;只有在 Pingora 前置代理已经清洗 `X-Forwarded-For` 时,才允许开启 `GENARRATIVE_PINGORA_GATEWAY_TRUST_X_FORWARDED_FOR=true` 使用首个转发 IP。开启时必须同时设置 `GENARRATIVE_PINGORA_GATEWAY_TRUSTED_FRONT_PROXY_CONFIRMED=true`,否则网关会拒绝启动。若 Pingora 直接监听公网地址,`TRUST_X_FORWARDED_FOR` 必须保持 `false`,目标机 direct preflight 会在看到公网监听加该开关时失败。 - 可选配置 `GENARRATIVE_PINGORA_GATEWAY_GITEA_HOSTS` 和 `GENARRATIVE_PINGORA_GATEWAY_GITEA_UPSTREAM` 后,网关会先按 `Host` 归一化匹配 Gitea 域名,命中时整站代理到 Gitea 上游。Gitea 路由不走应用维护页、API 请求体上限或网关接流保护,避免影响 git clone / push。用于同一公网 IP 同时承载 `dev.genarrative.world` 与 `git.genarrative.world` 的直连切换时,TLS 证书必须同时覆盖两个域名;当前单 listener 配置只加载一组 cert/key。 @@ -70,7 +70,7 @@ npm run check:pingora-release-readiness `check:pingora-canary-docker` 会启动 mock `api-server`、mock SpacetimeDB、真实 `pingora-gateway` 和 Docker Nginx,把前缀 canary 与真实路径 canary 两份 snippet 都渲染到临时 Nginx 中,再复用 `check:pingora-canary-live` 验证 Nginx -> Pingora -> 上游的 handoff 链路。临时 Nginx 使用生产同口径 `genarrative_upstream` access log,live smoke 后会继续调用 `scripts/check-pingora-canary-access-log-parity.mjs`,按同一 `request_id` 对账 canary healthz、代表性 API、SpacetimeDB identity 和静态资源路径;前缀模式确认 Nginx rewrite 后路径与 Pingora access log 一致,真实路径模式除 healthz 探针外要求 Nginx path 与 Pingora path 完全一致。默认不拉取镜像;缺少 Docker daemon 或 `nginx:1.27-alpine` 镜像时跳过。CI / 目标 agent 上需要把它作为硬门禁时执行 `node scripts/check-pingora-canary-docker.mjs --require-docker --pull`。 -`check:pingora-canary-access-log-parity` 会烟测只读脚本 `scripts/check-pingora-canary-access-log-parity.mjs`,用于目标机 canary 后按 `request_id` 对照 Nginx handoff access log 和 Pingora tab-separated access log。真实目标机前缀 canary 执行时使用 `/opt/genarrative/current/scripts/check-pingora-canary-access-log-parity.mjs --nginx-log-file /var/log/nginx/genarrative.access.log --pingora-log-file /var/log/genarrative/pingora-gateway.access.log --path /__genarrative_pingora_canary/healthz --path /__genarrative_pingora_canary/api/creation-entry/config`;真实路径 canary 执行时追加 `--realpath --nginx-log-file /var/log/nginx/genarrative-pingora-realpath-canary.access.log --path /__genarrative_pingora_realpath_canary/healthz --path /api/creation-entry/config --path /v1/identity --path /assets/app.js`。脚本只读日志,不修改日志、不 reload Nginx 或 Pingora。 +`check:pingora-canary-access-log-parity` 会烟测只读脚本 `scripts/check-pingora-canary-access-log-parity.mjs`,用于目标机 canary 后按 `request_id` 对照 Nginx handoff access log 和 Pingora tab-separated access log。真实目标机前缀 canary 执行时使用 `/opt/genarrative/current/scripts/check-pingora-canary-access-log-parity.mjs --nginx-log-file /var/log/nginx/genarrative.access.log --pingora-log-file /var/log/genarrative/pingora-gateway.access.log --path /__genarrative_pingora_canary/healthz --path /__genarrative_pingora_canary/api/editor/showcase/resources`;真实路径 canary 执行时追加 `--realpath --nginx-log-file /var/log/nginx/genarrative-pingora-realpath-canary.access.log --path /__genarrative_pingora_realpath_canary/healthz --path /api/editor/showcase/resources --path /v1/identity --path /assets/app.js`。脚本只读日志,不修改日志、不 reload Nginx 或 Pingora。 `check:pingora-direct-preflight` 默认只检查仓库内主 service、direct-entry drop-in 和 env 示例,适合本机提交前护栏。目标机直连切换窗口必须提供真实 env 并打开现场检查: @@ -351,8 +351,8 @@ node -- /opt/genarrative/current/scripts/deploy/pingora-health-patrol-env-switch 4. 在 `server {}` 内人工 include 该 snippet,并保持 `allow 127.0.0.1; allow ::1; deny all;` 或改成当次可信来源。 5. 执行 `npm run check:nginx-pingora-canary`;目标机或 CI 有 Nginx 时执行 `node scripts/check-nginx-pingora-canary.mjs --require-nginx`,再执行 `nginx -t && nginx -s reload`。 6. 执行 `GENARRATIVE_PINGORA_CANARY_BASE_URL=http://127.0.0.1 GENARRATIVE_PINGORA_CANARY_HOST=<域名> npm run check:pingora-canary-live`,确认 healthz、API、SpacetimeDB identity、静态资源和拒绝入口都带 `X-Genarrative-Nginx-Handoff: pingora-canary`。 -7. 必要时再用同一前缀访问其它代表性路由,例如 `/__genarrative_pingora_canary/api/creation-entry/config`、`/__genarrative_pingora_canary/v1/identity` 和 `/__genarrative_pingora_canary/assets/app.js`,并对照直连 Nginx 正常入口和 Pingora shadow 日志。 -8. 执行 current release 随包 `scripts/check-pingora-canary-access-log-parity.mjs --nginx-log-file /var/log/nginx/genarrative.access.log --pingora-log-file /var/log/genarrative/pingora-gateway.access.log --path /__genarrative_pingora_canary/healthz --path /__genarrative_pingora_canary/api/creation-entry/config`,确认同一 `request_id`、`path`、`status` 和 `proxy_target` 与 Nginx access log 可对齐。对账脚本的日志路径、canary prefix、必需路径和 `--since-lines` / `GENARRATIVE_PINGORA_CANARY_ACCESS_LOG_SINCE_LINES` 都不能包含换行或 NUL;若 access log 行里解析出的 URI / path 含控制字符,脚本也会把对应行记为失败,避免污染值进入 JSON 对账输出。 +7. 必要时再用同一前缀访问其它代表性路由,例如 `/__genarrative_pingora_canary/api/editor/showcase/resources`、`/__genarrative_pingora_canary/v1/identity` 和 `/__genarrative_pingora_canary/assets/app.js`,并对照直连 Nginx 正常入口和 Pingora shadow 日志。 +8. 执行 current release 随包 `scripts/check-pingora-canary-access-log-parity.mjs --nginx-log-file /var/log/nginx/genarrative.access.log --pingora-log-file /var/log/genarrative/pingora-gateway.access.log --path /__genarrative_pingora_canary/healthz --path /__genarrative_pingora_canary/api/editor/showcase/resources`,确认同一 `request_id`、`path`、`status` 和 `proxy_target` 与 Nginx access log 可对齐。对账脚本的日志路径、canary prefix、必需路径和 `--since-lines` / `GENARRATIVE_PINGORA_CANARY_ACCESS_LOG_SINCE_LINES` 都不能包含换行或 NUL;若 access log 行里解析出的 URI / path 含控制字符,脚本也会把对应行记为失败,避免污染值进入 JSON 对账输出。 9. 验证结束后移除 include 并 reload Nginx;不要把该前缀入口当作正式公网 URL。 ## dev shadow service 验收记录 @@ -499,7 +499,7 @@ dev 根盘空间在安装后曾接近满盘;2026-06-17 进入 canary 前已清 | `GENARRATIVE_PINGORA_GATEWAY_UPSTREAM_CONNECT_TIMEOUT_MS` | `3000` | 连接上游的超时,必须大于 `0`。 | | `GENARRATIVE_PINGORA_GATEWAY_UPSTREAM_DEFAULT_READ_TIMEOUT_SECONDS` | `60` | 没有 Nginx 显式长超时的代理路由读取超时,必须大于 `0`。 | | `GENARRATIVE_PINGORA_GATEWAY_UPSTREAM_API_READ_TIMEOUT_SECONDS` | `3600` | 通用 `/api` 路由读取超时,对齐当前 Nginx `proxy_read_timeout 3600s`。 | -| `GENARRATIVE_PINGORA_GATEWAY_UPSTREAM_LONG_READ_TIMEOUT_SECONDS` | `3600` | 公开列表 / 详情和 SpacetimeDB subscribe 长连接读取超时。 | +| `GENARRATIVE_PINGORA_GATEWAY_UPSTREAM_LONG_READ_TIMEOUT_SECONDS` | `3600` | SpacetimeDB subscribe 长连接读取超时。 | | `GENARRATIVE_PINGORA_GATEWAY_UPSTREAM_WRITE_TIMEOUT_SECONDS` | `3600` | 写上游请求头 / 请求体超时,对齐当前 Nginx `proxy_send_timeout 3600s` 口径。 | | `GENARRATIVE_PINGORA_GATEWAY_TRUST_X_FORWARDED_FOR` | `false` | 是否用 `X-Forwarded-For` 首个 IP 作为接流保护 client key;公网直连 Pingora 时必须保持 `false`,direct preflight 会阻断公网监听误开启。 | | `GENARRATIVE_PINGORA_GATEWAY_TRUSTED_FRONT_PROXY_CONFIRMED` | `false` | 开启 `TRUST_X_FORWARDED_FOR` 时必须显式设为 `true`,表示前置代理会清洗 `X-Forwarded-For`。 | @@ -509,12 +509,6 @@ dev 根盘空间在安装后曾接近满盘;2026-06-17 进入 canary 前已清 | `GENARRATIVE_PINGORA_GATEWAY_ADMIN_API_MAX_CONCURRENT` | `64` | `/admin/api/*` 每 client 并发上限;`0` 表示不限制并发。 | | `GENARRATIVE_PINGORA_GATEWAY_ADMIN_API_RATE_PER_SECOND` | `30` | `/admin/api/*` 每 client token bucket 回填速率;`0` 表示不限制 RPS。 | | `GENARRATIVE_PINGORA_GATEWAY_ADMIN_API_BURST` | `16` | `/admin/api/*` 每 client 额外 burst。 | -| `GENARRATIVE_PINGORA_GATEWAY_GALLERY_LIST_MAX_CONCURRENT` | `320` | 公开列表路由每 client 并发上限。 | -| `GENARRATIVE_PINGORA_GATEWAY_GALLERY_LIST_RATE_PER_SECOND` | `5000` | 公开列表路由每 client RPS。 | -| `GENARRATIVE_PINGORA_GATEWAY_GALLERY_LIST_BURST` | `4096` | 公开列表路由每 client burst。 | -| `GENARRATIVE_PINGORA_GATEWAY_GALLERY_DETAIL_MAX_CONCURRENT` | `32` | 公开详情兼容路由每 client 并发上限。 | -| `GENARRATIVE_PINGORA_GATEWAY_GALLERY_DETAIL_RATE_PER_SECOND` | `300` | 公开详情兼容路由每 client RPS。 | -| `GENARRATIVE_PINGORA_GATEWAY_GALLERY_DETAIL_BURST` | `32` | 公开详情兼容路由每 client burst。 | | `GENARRATIVE_PINGORA_GATEWAY_API_MAX_CONCURRENT` | `64` | 通用 `/api` 路由每 client 并发上限。 | | `GENARRATIVE_PINGORA_GATEWAY_API_RATE_PER_SECOND` | `300` | 通用 `/api` 路由每 client RPS。 | | `GENARRATIVE_PINGORA_GATEWAY_API_BURST` | `64` | 通用 `/api` 路由每 client burst。 | @@ -536,13 +530,11 @@ dev 根盘空间在安装后曾接近满盘;2026-06-17 进入 canary 前已清 | `/admin/assets/*` | 从 Web 根目录精确读取静态文件;带 Vite 指纹的文件默认长期缓存,其它文件默认 `no-cache`,并支持条件请求返回 `304` 与单段 `Range: bytes=` 返回 `206` / 越界返回 `416`。 | | `/admin/*` | 先读取静态文件或目录 index,失败回退 `/admin/index.html`,HTML 默认 `no-cache`,并支持条件请求返回 `304` 与单段 `Range: bytes=` 返回 `206` / 越界返回 `416`。 | | `/assets/*` | 从 Web 根目录精确读取静态文件;带 Vite 指纹的文件默认长期缓存,其它文件默认 `no-cache`,并支持条件请求返回 `304` 与单段 `Range: bytes=` 返回 `206` / 越界返回 `416`。 | -| `/api/runtime/puzzle/gallery`、`/api/runtime/custom-world-gallery` | 转发到 `api-server`。 | -| `/api/runtime/puzzle/gallery/{id}`、`/api/runtime/custom-world-gallery/{profile}/{owner}` | 转发到 `api-server`。 | | `/api`、`/api/*` | 转发到 `api-server`,按配置执行 `Content-Length` 与流式 body 累计上限检查。 | | `/v1/database/{db}/subscribe`、`/v1/identity*` | 转发到 SpacetimeDB,保留 WebSocket Upgrade 头。 | | `/__genarrative_pingora/healthz` | 仅在携带 `X-Genarrative-Pingora-Probe` 且匹配配置 token 时返回 shadow JSON,否则 404。 | | `/v1/*`、`/generated-*`、`/healthz*`、`/readyz*` | 返回 404,保持生产公网不暴露口径。 | -| 主站 SPA allowlist | 只对当前前端完整路由及兼容恢复路径 `/creation/rpg/agent` 失败回退 `/index.html`;匹配大小写不敏感并允许一个尾部斜杠,HTML 默认 `no-cache`。 | +| 主站 SPA allowlist | 只对 `/`、`/creation`、`/project`、`/profile` 与 `/editor/canvas` 失败回退 `/index.html`;匹配大小写不敏感并允许一个尾部斜杠,HTML 默认 `no-cache`。 | | 其它 Web 路径 | 只读取真实静态文件或目录 index,缺失时返回真实 404;`/creation/not-exist`、`/runtime/not-exist`、`/puzzle/not-exist` 不进入 SPA fallback。 | 维护模式下,公网 API-like 路由返回 JSON `503`;公网 Web 静态路由先读取 `GENARRATIVE_PINGORA_GATEWAY_MAINTENANCE_PAGE_FILE` 指向的 release 外运行态公告,缺失时回退 `GENARRATIVE_PINGORA_GATEWAY_WEB_ROOT/maintenance.html`,两者都不存在时返回纯文本 `503`。版本化默认页不得包含日期或具体时段,临时公告由 `maintenance-on.sh --page-file` 安装并在 `maintenance-off.sh` 时清理。IPv4 loopback / RFC1918 / link-local 和 IPv6 loopback / ULA / link-local 来源绕过整站维护闸,主站页面与静态资源、普通 API、后台页面与后台 API、SpacetimeDB 路由均按非维护状态继续处理;应用层登录、管理员鉴权和其它业务鉴权保持不变。Pingora 直连按 TCP peer 判定来源;仅当 peer 是 loopback 的同机 Nginx 时才接受 Nginx 强制覆盖的 `X-Real-IP`,绝不使用客户端可伪造的 `X-Forwarded-For` 做维护放行。该放行只绕过网关维护响应;若 `pause-after-stdb` 已停止 api-server,内网普通 API 和后台 API 仍不可用。 @@ -556,7 +548,7 @@ dev 根盘空间在安装后曾接近满盘;2026-06-17 进入 canary 前已清 2. 涉及 Nginx 模板、Pingora 路由、限流分组或路由文档时,同步更新 `deploy/pingora/nginx-route-parity.matrix.json`,并运行 `npm run check:pingora-route-parity` 与 `cargo test -p pingora-gateway --manifest-path server-rs/Cargo.toml matches_nginx_route_parity_matrix`。 3. 容器内使用同一份 Web 产物、同一组真实上游地址跑 Pingora smoke,并继续对照 `deploy/nginx/genarrative.conf` 扩展真实上游路由 parity 自动测试。 4. 使用 `deploy/nginx/snippets/genarrative-pingora-canary.conf` 做 Nginx 前缀 canary;启用前先跑 `npm run check:nginx-pingora-canary` 和 `npm run check:pingora-canary-docker`,有 Nginx 或 Docker 的目标环境分别强制跑 `node scripts/check-nginx-pingora-canary.mjs --require-nginx` 与 `node scripts/check-pingora-canary-docker.mjs --require-docker --pull`,其中 Docker handoff 会自动对账临时 Nginx 与 Pingora access log。启用后跑 `npm run check:pingora-canary-live`,再用 current release 随包 access log parity 脚本对账目标机 Nginx 与 Pingora access log。canary live 的 base URL、prefix、Host、额外 path 和 timeout 不能包含换行或 NUL;canary live timeout 和 access log `since-lines` 必须是正整数,非法值直接失败。 -5. 前缀 canary 通过后,再使用 current release 随包 `/opt/genarrative/current/scripts/deploy/pingora-realpath-canary-enable.sh --apply --probe-token --host <域名> --base-url http://127.0.0.1:18083` 启用真实路径 canary;它会把 `deploy/nginx/snippets/genarrative-pingora-realpath-canary.conf` 渲染成独立本机 `server`,写入 `/etc/nginx/conf.d/zz-genarrative-pingora-realpath-canary.conf`,不能 include 到生产 `443` server 内。该片段使用 `access_log ... genarrative_upstream`,文件名必须保证晚于定义 `log_format genarrative_upstream` 的主站配置加载;否则 `nginx -t` 会报 `unknown log format "genarrative_upstream"`。启用脚本会先执行 `nginx -t`、reload Nginx,再默认运行 realpath live smoke,任一阶段失败都会恢复写入前配置。关闭时执行 `/opt/genarrative/current/scripts/deploy/pingora-realpath-canary-disable.sh --apply`,脚本会在 `nginx -t` 或 reload 失败时恢复删除前配置。启用后跑 `node -- /opt/genarrative/current/scripts/check-pingora-canary-live.mjs --realpath --base-url http://127.0.0.1:18083 --host <域名>`,再用 current release 随包 access log parity 脚本传 `--realpath --nginx-log-file /var/log/nginx/genarrative-pingora-realpath-canary.access.log` 对账 `/api/creation-entry/config`、`/v1/identity` 和 `/assets/app.js` 等真实路径。 +5. 前缀 canary 通过后,再使用 current release 随包 `/opt/genarrative/current/scripts/deploy/pingora-realpath-canary-enable.sh --apply --probe-token --host <域名> --base-url http://127.0.0.1:18083` 启用真实路径 canary;它会把 `deploy/nginx/snippets/genarrative-pingora-realpath-canary.conf` 渲染成独立本机 `server`,写入 `/etc/nginx/conf.d/zz-genarrative-pingora-realpath-canary.conf`,不能 include 到生产 `443` server 内。该片段使用 `access_log ... genarrative_upstream`,文件名必须保证晚于定义 `log_format genarrative_upstream` 的主站配置加载;否则 `nginx -t` 会报 `unknown log format "genarrative_upstream"`。启用脚本会先执行 `nginx -t`、reload Nginx,再默认运行 realpath live smoke,任一阶段失败都会恢复写入前配置。关闭时执行 `/opt/genarrative/current/scripts/deploy/pingora-realpath-canary-disable.sh --apply`,脚本会在 `nginx -t` 或 reload 失败时恢复删除前配置。启用后跑 `node -- /opt/genarrative/current/scripts/check-pingora-canary-live.mjs --realpath --base-url http://127.0.0.1:18083 --host <域名>`,再用 current release 随包 access log parity 脚本传 `--realpath --nginx-log-file /var/log/nginx/genarrative-pingora-realpath-canary.access.log` 对账 `/api/editor/showcase/resources`、`/v1/identity` 和 `/assets/app.js` 等真实路径。 6. 目标机 canary include 后必须跑正式切换聚合门禁,并按现场已启用的 canary 入口选择参数:前缀 canary 已启用时,源码 checkout / CI / 构建环境执行 `node scripts/check-pingora-release-readiness.mjs --require-docker --pull-docker --require-nginx --require-live --live-base-url http://127.0.0.1 --live-host <域名> --live-nginx-access-log /var/log/nginx/genarrative.access.log --live-pingora-access-log /var/log/genarrative/pingora-gateway.access.log`,目标机 current release 执行 `/opt/genarrative/current/scripts/check-pingora-release-readiness.mjs --release-runtime-only --require-live --live-base-url http://127.0.0.1 --live-host <域名> --live-nginx-access-log /var/log/nginx/genarrative.access.log --live-pingora-access-log /var/log/genarrative/pingora-gateway.access.log`;真实路径 canary 已启用时,追加或单独使用 `--require-realpath-live --realpath-live-base-url http://127.0.0.1:18083 --realpath-live-host <域名> --realpath-live-nginx-access-log /var/log/nginx/genarrative-pingora-realpath-canary.access.log --realpath-live-pingora-access-log /var/log/genarrative/pingora-gateway.access.log`。如果现场只启用了真实路径 canary,不要同时传 `--require-live`;缺少 Host 会直接失败,避免 live canary 误测默认 vhost。live smoke 后还会按 `request_id` 对账 Nginx 与 Pingora access log,缺少同一请求的 Pingora 日志、状态码、方法或 path 漂移都会失败。 7. 如需评估 Pingora 直连公网入口,必须显式配置 `TLS_LISTEN`、证书、私钥和 `HTTP_REDIRECT_LISTEN`;Certbot 证书先用随包 `scripts/deploy/pingora-tls-cert-sync.mjs` 同步到 `/etc/genarrative/pingora-tls/<域名>/`,不要直接 chmod Let’s Encrypt live/archive 原路径;同一 IP 上还有 Gitea 域名时,还必须配置 `GITEA_HOSTS` / `GITEA_UPSTREAM` 并确认 TLS 证书覆盖所有由 Pingora 直连接管的 Host。绑定 `80/443` 时还必须人工启用 `genarrative-pingora-gateway-direct-entry.conf` drop-in 授予 `CAP_NET_BIND_SERVICE`。随后用 `npm run check:pingora-gateway-smoke` 覆盖 TLS / HTTP/2 ALPN / redirect / WSS subscribe / Gitea Host 分流;目标机必须先跑 `npm run check:pingora-direct-preflight -- --env-file /etc/genarrative/pingora-gateway.env --require-live-env --systemd-cat --check-cert-readable --check-service-env-file --check-service-user-cert-readable --check-service-binary-executable --check-ports-free`,再跑 `npm run check:pingora-direct-live` 或 release readiness 的 `--require-direct`,且 `--require-direct` 必须带 direct HTTPS base URL、direct HTTP base URL、正式域名 Host/SNI、redirect Location host、Pingora access log 文件、health patrol env 文件、direct preflight env 文件、systemd drop-in 生效检查、service EnvironmentFile 一致性检查、当前用户和 systemd 服务用户证书可读检查、service 二进制可执行检查、显式 SpacetimeDB 数据库名,并会拒绝 `--skip-wss`。高端口 rehearsal 使用 `https://127.0.0.1:<高端口>` 打入但期望 HTTP redirect Location 指向正式域名默认 HTTPS 入口时,额外传 `--direct-redirect-base-url https://<域名>`;`--direct-redirect-host` 仍必须保留,用于 runbook Host 一致性约束。direct live 会用生成的 `request_id` 反查 Pingora access log;缺少对应日志、method 漂移、path 漂移或 status 漂移都算直连门禁失败。direct preflight 会拒绝开启网关保护但未确认共享保护层的 `GENARRATIVE_PINGORA_GATEWAY_INSTANCE_COUNT>1` 配置;`--env-file`、`--systemd-service`、服务用户和 env 中的 listen / cert / key 值都不能包含换行或 NUL,执行 `systemctl cat` 或 `sudo -u test -r ` 前还会复核子命令参数,避免污染参数进入目标机预检命令;direct live 的 URL、Host、redirect base URL、probe token、额外 path、数据库名、access log 路径、timeout 和布尔 env 也不能包含换行或 NUL,且会在发起请求前失败;direct live timeout 必须是正整数,直连相关布尔 env 只接受 `true/false`、`1/0`、`yes/no`、`on/off` 或空值,非法值直接失败。证书申请与续期仍由 Certbot / 外部自动化承担,网关只读取现有文件。 8. 正式直连 runbook 的启用前基础门禁和启用后 `--require-direct` 复核必须调用 `/opt/genarrative/current/scripts/check-pingora-release-readiness.mjs --release-runtime-only`。该脚本、`scripts/check-pingora-canary-live.mjs`、`scripts/ops/pingora-direct-rehearsal-status.mjs`、realpath canary 启停脚本和 `deploy/nginx/` 必须进入生产 API release、Jenkins API Build 归档、Jenkins API Deploy 复制清单和目标机 current release;缺失时部署应 fail-fast,切换窗口不能依赖源码 checkout 或 Jenkins workspace。 diff --git a/docs/technical/【架构下线】旧创作模板业务退役方案-2026-07-17.md b/docs/technical/【架构下线】旧创作模板业务退役方案-2026-07-17.md index c90d7e7e6..722a2479e 100644 --- a/docs/technical/【架构下线】旧创作模板业务退役方案-2026-07-17.md +++ b/docs/technical/【架构下线】旧创作模板业务退役方案-2026-07-17.md @@ -16,7 +16,7 @@ - `api-server` 中上述业务的 router、handler、service、生成与发布编排、公开详情、专属 runtime 和 worker 启动点。 - `spacetime-client` 的模板业务 facade、mapper、reducer/procedure 调用和业务 DTO 依赖。 - `spacetime-module` 的模板 reducer、procedure、业务 view、初始化逻辑和领域规则调用。 -- 所有纯模板 crate 及 RPG 专属运行态 crate 的 workspace/default 目标和在运依赖边。 +- 所有纯模板 crate、RPG 专属运行态 crate 及旧 Creative Agent 的 `platform-agent` crate 的 workspace/default 目标和在运依赖边。 - 后台及主站中只服务于旧创作入口的配置、灰度、展示、搜索、启动、追踪和运维门禁。 ### 保留 @@ -25,7 +25,8 @@ - `migration.rs` 中相关表的迁移白名单、表名兼容和字段目录。 - 为历史审计、迁移、资产归属核对所必需的最小只读表定义;不得借兼容读取重新暴露旧创作、发布、公开详情或运行接口。 - 编辑器、项目、账号、钱包、资产、HostBridge、运维和安全等平台公共能力。 -- 新版 `/creation` 创作工具主页、`creation-home` 展示组件与静态资产,以及桌面端“创作 / 项目 / 我的”公共侧边栏;“我的”保留头像 / 昵称编辑、陶泥号复制、钱包与账单、统计、充值、兑换码、玩家社区、反馈、通用设置、开发者 API Key 和法律信息,不恢复旧模板入口、旧作品架或生成队列。 +- 新版 `/creation` 创作工具主页、`/project` 项目入口、稳定的 `/profile` 个人页路由、`creation-home` 展示组件与现役静态资产。桌面端保留“创作 / 项目 / 我的”公共侧边栏,移动端保留同样三项的底部 dock;“我的”保留头像 / 昵称编辑、陶泥号复制、钱包与账单、统计、充值、兑换码、玩家社区、反馈、通用设置、开发者 API Key 和法律信息,不恢复旧模板入口、旧作品架或生成队列。 +- `runtime_setting` 是账号级公共设置事实,不属于旧模板运行态。原表结构和数据不变,继续由鉴权后的 `GET/PUT /api/runtime/settings`、`get_runtime_setting_or_default` 与 `upsert_runtime_setting_and_return` procedure 支撑音乐音量和平台主题读写。 - 旧页面、测试、素材、handler、service、worker、生成 bindings 和纯业务 crate 的源码目录;它们仅用于历史追溯,不属于任何正式入口或编译目标。 ## 编译边界 @@ -38,26 +39,42 @@ - 平台公共 profile 请求与展示模型必须位于 `services/platform-entry/` 和现役 `platform-entry` 文件,不得因为沿用账号、钱包或设置能力而继续 import `services/rpg-entry`、`services/rpg-runtime` 或 `components/rpg-entry`。Vite 对退役模块实行实际 module graph 门禁,命中即中止 dev/build;ESLint restricted imports 作为更早的源码反馈。 - 原 `main.tsx`、`App.tsx`、旧路由、旧标题映射、`PlatformEntryFlowShellImpl.tsx` 与旧入口类型保持原样;正式链路由 `active-main.tsx`、`ActiveApp.tsx`、`activeApp*`、`PlatformEntryActiveFlowShell.tsx` 和 `platformEntryActiveTypes.ts` 承载,只包含新版创作主页、项目、编辑器、账号、设置与钱包公共能力。`retired/legacy-creation-templates/frontend/original/` 另保留逐文件原样快照。 - 退役 CSS 的源码过滤必须在 Tailwind/Vite 转换前执行,产物过滤留在 `generateBundle`;禁止在 `post` transform 中把 Vite 已生成的 JavaScript 样式模块重新交给 PostCSS 解析。 -- `/creation` 保持新版创作工具主页;生产网关对旧子路径返回 404,客户端若收到未知旧路径则回落当前平台公共首页,不再提供旧业务详情页或兼容壳。 +- 顶层退役 module 也必须受编译门禁约束:`src/uiAssets.ts`、`src/types.ts`、`src/types/**`、`src/services/runtimeAudioFeedback.ts`、`src/services/publicWorkCode.ts`、`creationEntryConfigService`、`creationUrlState`、`customWorld*`、`runtimeGuestAuth`、`runtimeRequest`、`input-devices/**`、`useMocapInput`、`wechatMiniProgramSubscribe`、`useCombatFlow` 和 `useStoryOptions` 不得进入 Vite module graph、TypeScript、ESLint 或 Vitest,现役公共品牌资产应从独立公共定义导入。 +- `src/games/**`、`src/data/**`、`src/prompts/**`、旧 `App.tsx` / `main.tsx` / `RpgRuntimeApp.tsx` / `*PlaygroundApp.tsx`、旧 `appRoutes` / `appPageRoutes` 和 `services/ai.ts` 同属退役源码边界;Vite 必须在 pre-transform 阶段拒绝直接请求,不能只依赖现役入口未 import 或构建 tree-shaking。 +- `src/components`、`src/hooks`、`src/persistence`、`src/routing` 和 `src/services` 根级文件是新旧混合区,Vite 与 ESLint 必须使用显式现役白名单。当前只放行正式入口实际依赖的根级公共模块;新增根级公共模块时必须同步登记,未登记文件按退役源码处理。各现役子目录继续按独立目录边界放行。 +- 退役静态资产 `/audio/**`、`/chat.png` 和 `/fusion-pixel.ttf` 不得由 Vite dev server 提供,也不得进入生产产物;旧 pixel / story-tab / 玩法 CSS 仅能在历史源码中存在。 +- 所有同源 `/generated-*` 裸读路径在 Vite、Nginx、Pingora 和 `api-server` 均返回空 `404`;历史对象 key 只允许作为 `legacyPublicPath` 进入 `/api/assets/read-url` 等现役签名读取链,不恢复旧生成资产代理。 +- `/creation`、`/project` 和 `/profile` 是现役稳定路由,刷新及浏览器前进 / 后退必须保持当前页签。生产网关对旧子路径返回 404,客户端若收到未知旧页面路径则回落当前平台公共首页;Vite dev 对旧 `/api/creation*` 与 `/api/public-works*` 直接返回 404,不能回落为 SPA HTML。小程序不再注册旧生成结果订阅授权页。 ### Rust - `api-server` 不声明模板模块,不挂模板路由,不保留模板 worker 启动点。 +- 现役 external generation worker 只领取 `source_module = editor-canvas` 的任务,历史旧玩法 pending / running 行不得被领取或改写。 - `spacetime-client` 不保留模板业务 facade 和 mutation 调用;历史表生成绑定只允许服务必要兼容读取。 - `spacetime-module` 对旧模板只编译历史表结构,不导出旧 reducer、procedure、业务 view 或领域规则。 +- 旧 `public_work_asset_read_grant` view 与十类旧作品授权计算退出 module;匿名资产读取只保留现役 editor showcase 授权。 - `spacetime-module` 与 `spacetime-client` 的 Cargo `lib.path` 固定指向各自的 `src/active.rs`;原 `src/lib.rs` 及旧业务源码继续原位保留,但不再作为 crate 根参与编译。 - 历史表最小定义集中在 `spacetime-module/src/legacy_schema/` 与 `spacetime-module/src/runtime/legacy_schema/`,混合 profile 表的在运数据壳位于 `spacetime-module/src/runtime/active/profile.rs`;这些目录只允许 schema 和必要兼容读取定义。 +- `module-runtime` 仍是账号、钱包、公共设置、追踪和 feature gate 的现役领域 crate;其混合源码中的 `CreationEntry*`、旧公开作品、旧存档 / 浏览历史 / 游玩统计 DTO、command、mapper 和规则必须以编译条件退出,且不再依赖只为旧创作契约存在的 `shared-contracts`。历史 schema 只继续编译 `RuntimeBrowseHistoryThemeMode` 六个变体和完整保序的 `RuntimeProfileWalletLedgerSourceType` 等持久化 ABI,不保留围绕这些类型的旧业务实现。 - 纯模板 crate 和专属运行态 crate 不属于 workspace members、default members 或任何在运 crate 的依赖图;源码目录保持原样。 +- `platform-agent` 及其专属 `langchainrust` 依赖同样退出 workspace 与 `api-server` 依赖图;现役编辑器 Agent 仅需的模型常量收口到 `platform-llm`,不再通过旧拼图 Phase 1 / Creative Agent 执行器 crate 复用。 +- `platform-auth` 不再编译 runtime guest token;`platform-wechat` 不再编译旧生成结果订阅服务,只保留现役认证和支付协议。 ## 验收 - 旧 URL 不再命中旧页面或后端路由。 -- `/creation` 与 `/project` 显示“创作 / 项目 / 我的”公共侧边栏,新创作主页只调用编辑器项目和公开素材接口;顶栏保持现役搜索、公共泥点入口与账号胶囊,不重新拼装平行账号按钮组。 +- `/creation`、`/project` 与 `/profile` 在桌面端显示“创作 / 项目 / 我的”公共侧边栏,在 `390x844` 等移动视口显示同样三项的底部 dock;点击、刷新及浏览器前进 / 后退均保持路由与选中态一致。新创作主页只调用编辑器项目和公开编辑器素材接口;顶栏保持现役搜索、公共泥点入口与账号胶囊,不重新拼装平行账号按钮组。 - “我的”桌面布局按原平台公共资料页全宽展示四个常用入口、两行设置和法律栏;头像、昵称、复制、充值、兑换码、社区、反馈、API Key 等入口可用,但不发起旧模板、旧公开作品或旧运行态请求。 -- `tsc --listFilesOnly` 与 Vite 干净加载均不得出现 `src/components/rpg-entry/**`、`src/services/rpg-entry/**` 或 `src/services/rpg-runtime/**`。 -- Vite 构建产物和依赖图不包含旧前端业务目录。 -- `cargo tree` 中不存在纯模板 crate 或专属运行态 crate。 +- 鉴权访问 `GET/PUT /api/runtime/settings` 不得返回 404,读写必须经 `spacetime-client` 调用现役 settings procedure;未鉴权请求返回 401,不恢复任何旧运行态设置路由。 +- `tsc --listFilesOnly` 与 Vite 干净加载均不得出现旧业务目录、上述顶层退役 module 或小程序旧订阅授权实现。 +- 直接请求代表性的旧 `games` / `data` / `prompts` / 顶层 App 模块必须被 Vite module graph 门禁拒绝;现役 `creation-home`、项目、profile 与 editor 模块仍正常转换。 +- 根级旧组件、hook、persistence、routing 和 service 必须同时被 Vite 拒绝并被 ESLint 忽略;现役根级图片解析、设置、路由和 API client 文件必须继续参与两套门禁。 +- Vite 构建产物和依赖图不包含旧前端业务目录、Fusion Pixel / pixel 业务样式或旧 runtime 声音签名;产物中不存在 `dist/audio/**`、`dist/chat.png` 或 `dist/fusion-pixel.ttf`。 +- 旧生成资产前缀和现役 editor 对象前缀的同源裸读都必须返回空 `404`,不能返回 `index.html` 形成 soft 404;编辑器真实资产读取继续走签名 URL。 +- `cargo tree` 中不存在纯模板 crate、专属运行态 crate、`platform-agent` 或 `langchainrust`。 +- `npm run check:module-runtime-artifact` 对实际 `module_runtime.rlib` 的 object 成员执行负向扫描:旧创作、存档、浏览与游玩符号和字面量必须为零,同时 `RuntimeBrowseHistoryThemeMode`、`RuntimeProfileWalletLedgerSourceType` 与 `RuntimeSettingSnapshot` 等兼容 ABI 必须仍存在。 - `spacetime-module` 编译结果仍包含全部历史表,但不包含任何旧模板 reducer、procedure 和业务 view。 +- `platform_auth.rlib` 不包含 runtime guest token 符号,`platform_wechat.rlib` 不包含订阅消息发送符号;历史旧队列行不满足现役 worker claim 条件。 - `npm run check:spacetime-schema`、定向 Rust 检查、前端类型检查、`npm run check:encoding`、`git diff --check` 通过。 ## 历史记录兼容 diff --git a/docs/【前端架构】ExpoReactNative与Tauri宿主壳方案-2026-06-17.md b/docs/【前端架构】ExpoReactNative与Tauri宿主壳方案-2026-06-17.md index c29d747f5..f15ef8f9f 100644 --- a/docs/【前端架构】ExpoReactNative与Tauri宿主壳方案-2026-06-17.md +++ b/docs/【前端架构】ExpoReactNative与Tauri宿主壳方案-2026-06-17.md @@ -50,7 +50,7 @@ apps/ mobile-shell/ # Expo + React Native App 壳 desktop-shell/ # Tauri 桌面 App 壳 miniprogram/ - host-bridge/ # 微信小程序协议归一、支付 / 订阅 / 分享结果编解码 + host-bridge/ # 微信小程序协议归一、支付 / 分享结果编解码 shell/ # 微信小程序 Page 生命周期、wx.* 容器调用和页面工厂 packages/ shared/ @@ -64,11 +64,13 @@ src/ 已落地:`packages/shared/src/contracts/hostBridge.ts` 保存消息 envelope、method、payload 和错误码,H5、Expo 壳与 Tauri 壳共享同一份协议类型。 -三端宿主桥接层按职责对齐命名:微信小程序页面路由仍保留在 `miniprogram/pages/*`,`miniprogram/host-bridge/protocol.js` 只沉淀微信壳能力、页面 URL、结果 hash / storage key 和分享消息类型等常量,`dispatch.js` 只作为 `protocol`、`webView`、`payment`、`shareGrid`、`subscribeMessage` 的薄索引,真实协议归一、支付 / 订阅 / 分享结果编解码仍分别在 `webView.js`、`payment.js`、`shareGrid.js`、`subscribeMessage.js`,不把微信小程序硬改成 Expo / Tauri 的 request 总线;Page 生命周期、`wx.*` 容器调用、WebView 容器行为和页面工厂统一放在 `miniprogram/shell/webView.js`、`payment.js`、`shareGrid.js`、`subscribeMessage.js`,页面入口只做 `Page(createWechat...Page())` 装配。Expo 移动壳使用 `apps/mobile-shell/src/host-bridge/protocol.ts` 承接 envelope、request 校验、ok / failure 响应和 replay 基础类型,`capabilities.ts` 只引用共享 HostBridge capability profile 并选择 iOS 差异能力,`dispatch.ts` 承接 method 分发和宿主能力调用,`appearance.ts` 承接系统配色读取,`navigation.ts` 承接外链打开、受控 H5 跳转和 WebView 刷新,`network.ts` 承接网络状态查询,`badge.ts` 承接受控角标能力,`clipboard.ts` 承接剪贴板读写与 HostBridge payload / 响应边界,`files.ts` 承接 Expo DocumentPicker / ImagePicker / File / Sharing 系统交互、取消语义、读写编排和 HostBridge 响应包装,`filePayloads.ts` 承接文件 MIME、大小、base64、文件名清洗和 picker 结果到 HostBridge payload 的边界,`share.ts` / `scanner.ts` / `notifications.ts` 分别承接分享、扫码和本地通知能力,`bridge.ts` 只作为 WebView message 入口、request id replay 编排和对外 facade;`apps/mobile-shell/App.tsx` 只装配 `apps/mobile-shell/src/shell/ShellApp.tsx`,由 `apps/mobile-shell/src/shell/*.ts(x)` 承接 WebView 容器、URL、导航、网络、生命周期、安全区、扫码 overlay 和 WebView policy。Tauri 桌面壳使用 `apps/desktop-shell/src-tauri/src/host_bridge/protocol.rs` 承接 envelope、method 白名单、request 校验和 replay 状态,`runtime.rs` 承接桌面 runtime 回包的平台、hostVersion、bridgeVersion 和 capability 清单组装,`appearance.rs` 承接窗口主题读取和 HostBridge 配色归一,`navigation.rs` 承接外链打开、受控 H5 跳转和主窗口刷新,`network.rs` 承接网络状态查询,`badge.rs` 承接受控任务栏角标能力,`clipboard.rs` 承接剪贴板读写与 HostBridge payload / 响应边界,`title.rs` 承接窗口标题 payload / 响应边界,`capabilities.rs` 承接共享桌面 capability profile 的 Rust 运行时镜像,`dispatch.rs` 承接 method 分发和宿主能力调用,`files.rs` 承接系统文件对话框、取消语义和异步读写编排,`file_payloads.rs` 承接文件 MIME、大小、base64、文件名清洗、本地副本读写和 HostBridge payload 边界,`share.rs` / `notifications.rs` 分别承接分享和本地通知能力,`mod.rs` 只保留模块声明、必要 re-export、`host_bridge_request` command facade 和 replay 编排;`apps/desktop-shell/src-tauri/src/shell/runtime.rs`、`url.rs`、`navigation.rs`、`network.rs`、`lifecycle.rs`、`file_drop.rs`、`events.rs`、`deep_link.rs`、`tray.rs`、`window_state.rs` 和 `webview.rs` 分别承接运行态、入口 URL、导航 / 下载、网络、生命周期、拖拽图片、HostBridge 事件注入、深链、托盘、窗口状态持久化和 WebView 门面,`apps/desktop-shell/src-tauri/src/app.rs` 承接 Tauri builder / plugin / window 装配,`main.rs` 只保留薄入口并调用 `app::run()`。 +三端宿主桥接层按职责对齐命名:微信小程序页面路由仍保留在 `miniprogram/pages/*`,`miniprogram/host-bridge/protocol.js` 只沉淀微信壳能力、页面 URL、结果 hash / storage key 和分享消息类型等常量,`dispatch.js` 只作为 `protocol`、`webView`、`payment`、`shareGrid` 的薄索引,真实协议归一、支付 / 分享结果编解码仍分别在 `webView.js`、`payment.js`、`shareGrid.js`,不把微信小程序硬改成 Expo / Tauri 的 request 总线;Page 生命周期、`wx.*` 容器调用、WebView 容器行为和页面工厂统一放在 `miniprogram/shell/webView.js`、`payment.js`、`shareGrid.js`,页面入口只做 `Page(createWechat...Page())` 装配。Expo 移动壳使用 `apps/mobile-shell/src/host-bridge/protocol.ts` 承接 envelope、request 校验、ok / failure 响应和 replay 基础类型,`capabilities.ts` 只引用共享 HostBridge capability profile 并选择 iOS 差异能力,`dispatch.ts` 承接 method 分发和宿主能力调用,`appearance.ts` 承接系统配色读取,`navigation.ts` 承接外链打开、受控 H5 跳转和 WebView 刷新,`network.ts` 承接网络状态查询,`badge.ts` 承接受控角标能力,`clipboard.ts` 承接剪贴板读写与 HostBridge payload / 响应边界,`files.ts` 承接 Expo DocumentPicker / ImagePicker / File / Sharing 系统交互、取消语义、读写编排和 HostBridge 响应包装,`filePayloads.ts` 承接文件 MIME、大小、base64、文件名清洗和 picker 结果到 HostBridge payload 的边界,`share.ts` / `scanner.ts` / `notifications.ts` 分别承接分享、扫码和本地通知能力,`bridge.ts` 只作为 WebView message 入口、request id replay 编排和对外 facade;`apps/mobile-shell/App.tsx` 只装配 `apps/mobile-shell/src/shell/ShellApp.tsx`,由 `apps/mobile-shell/src/shell/*.ts(x)` 承接 WebView 容器、URL、导航、网络、生命周期、安全区、扫码 overlay 和 WebView policy。Tauri 桌面壳使用 `apps/desktop-shell/src-tauri/src/host_bridge/protocol.rs` 承接 envelope、method 白名单、request 校验和 replay 状态,`runtime.rs` 承接桌面 runtime 回包的平台、hostVersion、bridgeVersion 和 capability 清单组装,`appearance.rs` 承接窗口主题读取和 HostBridge 配色归一,`navigation.rs` 承接外链打开、受控 H5 跳转和主窗口刷新,`network.rs` 承接网络状态查询,`badge.rs` 承接受控任务栏角标能力,`clipboard.rs` 承接剪贴板读写与 HostBridge payload / 响应边界,`title.rs` 承接窗口标题 payload / 响应边界,`capabilities.rs` 承接共享桌面 capability profile 的 Rust 运行时镜像,`dispatch.rs` 承接 method 分发和宿主能力调用,`files.rs` 承接系统文件对话框、取消语义和异步读写编排,`file_payloads.rs` 承接文件 MIME、大小、base64、文件名清洗、本地副本读写和 HostBridge payload 边界,`share.rs` / `notifications.rs` 分别承接分享和本地通知能力,`mod.rs` 只保留模块声明、必要 re-export、`host_bridge_request` command facade 和 replay 编排;`apps/desktop-shell/src-tauri/src/shell/runtime.rs`、`url.rs`、`navigation.rs`、`network.rs`、`lifecycle.rs`、`file_drop.rs`、`events.rs`、`deep_link.rs`、`tray.rs`、`window_state.rs` 和 `webview.rs` 分别承接运行态、入口 URL、导航 / 下载、网络、生命周期、拖拽图片、HostBridge 事件注入、深链、托盘、窗口状态持久化和 WebView 门面,`apps/desktop-shell/src-tauri/src/app.rs` 承接 Tauri builder / plugin / window 装配,`main.rs` 只保留薄入口并调用 `app::run()`。 当前 `npm run check:native-shells` 锁定的生产文件清单以本文后续“结构门禁按完整相对路径反查文档和目录”段落为唯一文档口径;不要再维护只含文件名的短清单,避免测试文件、`file_payloads.rs` 或新增宿主脚本登记发生文档漂移。 -根级原生壳检查同时锁定 HostBridge 模块分类:`dispatch` / `protocol` 是微信、移动、桌面三端共同模块;`appearance`、`badge`、`capabilities`、`clipboard`、`file-payloads`、`files`、`navigation`、`network`、`notifications`、`runtime`、`share` 是 Expo / Tauri 原生 App 壳共同模块;移动端专属 `bridge`、`haptics`、`scanner`,桌面端专属 `mod`、`title`,微信端专属 `payment`、`shareGrid`、`subscribeMessage`、`webView`。后续新增或拆分桥接模块不能只改文件清单,必须先说明它属于三端共同、原生 App 共同还是某端专属。 +根级原生壳检查同时锁定 HostBridge 模块分类:`dispatch` / `protocol` 是微信、移动、桌面三端共同模块;`appearance`、`badge`、`capabilities`、`clipboard`、`file-payloads`、`files`、`navigation`、`network`、`notifications`、`runtime`、`share` 是 Expo / Tauri 原生 App 壳共同模块;移动端专属 `bridge`、`haptics`、`scanner`,桌面端专属 `mod`、`title`,微信端专属 `payment`、`shareGrid`、`webView`。后续新增或拆分桥接模块不能只改文件清单,必须先说明它属于三端共同、原生 App 共同还是某端专属。 + +2026-07-18 调整:旧玩法生成结果订阅授权已退役,微信 capability profile 不再声明 `navigation.openNativePage`,`subscribeMessage` host-bridge / shell / page 历史源码移入 `retired/legacy-creation-templates/frontend/miniprogram/`,不再进入小程序包和 `check:native-shells` 现役文件清单。 生产替身词扫描只覆盖上述壳源码、分发配置、共享 HostBridge 契约和已接入真实宿主能力的 H5 调用链;Expo export、Tauri `target/`、Cargo / Metro 缓存和 release 构建产物不进入扫描范围,避免本地或 CI 生成文件污染源码门禁。 @@ -76,7 +78,7 @@ src/ 桌面壳的 `permissions/autogenerated/` 由 Tauri `build.rs` 生成且保持 gitignored。`npm run check:native-shells` 必须先运行桌面 Rust 测试生成权限清单,再执行桌面配置检查,最后执行 release build smoke;不能让干净检出因为静态检查早于生成步骤而失败,也不能把生成权限文件提交进仓库。 -结构门禁按完整相对路径反查文档和目录:微信桥接层为 `miniprogram/host-bridge/dispatch.js`、`miniprogram/host-bridge/payment.js`、`miniprogram/host-bridge/protocol.js`、`miniprogram/host-bridge/shareGrid.js`、`miniprogram/host-bridge/subscribeMessage.js`、`miniprogram/host-bridge/webView.js`;微信 shell 层为 `miniprogram/shell/payment.js`、`miniprogram/shell/shareGrid.js`、`miniprogram/shell/subscribeMessage.js`、`miniprogram/shell/webView.js`;微信页面包装层为 `miniprogram/pages/share-grid/index.js`、`miniprogram/pages/share-grid/index.json`、`miniprogram/pages/share-grid/index.wxml`、`miniprogram/pages/share-grid/index.wxss`、`miniprogram/pages/subscribe-message/index.js`、`miniprogram/pages/subscribe-message/index.json`、`miniprogram/pages/subscribe-message/index.wxml`、`miniprogram/pages/subscribe-message/index.wxss`、`miniprogram/pages/web-view/index.js`、`miniprogram/pages/web-view/index.json`、`miniprogram/pages/web-view/index.wxml`、`miniprogram/pages/web-view/index.wxss`、`miniprogram/pages/wechat-pay/index.js`、`miniprogram/pages/wechat-pay/index.json`、`miniprogram/pages/wechat-pay/index.wxml`、`miniprogram/pages/wechat-pay/index.wxss`;移动源码根为 `apps/mobile-shell/src/env.d.ts`;移动桥接层为 `apps/mobile-shell/src/host-bridge/appearance.test.ts`、`apps/mobile-shell/src/host-bridge/appearance.ts`、`apps/mobile-shell/src/host-bridge/badge.test.ts`、`apps/mobile-shell/src/host-bridge/badge.ts`、`apps/mobile-shell/src/host-bridge/bridge.ts`、`apps/mobile-shell/src/host-bridge/capabilities.test.ts`、`apps/mobile-shell/src/host-bridge/capabilities.ts`、`apps/mobile-shell/src/host-bridge/clipboard.test.ts`、`apps/mobile-shell/src/host-bridge/clipboard.ts`、`apps/mobile-shell/src/host-bridge/dispatch.ts`、`apps/mobile-shell/src/host-bridge/filePayloads.test.ts`、`apps/mobile-shell/src/host-bridge/filePayloads.ts`、`apps/mobile-shell/src/host-bridge/files.test.ts`、`apps/mobile-shell/src/host-bridge/files.ts`、`apps/mobile-shell/src/host-bridge/haptics.test.ts`、`apps/mobile-shell/src/host-bridge/haptics.ts`、`apps/mobile-shell/src/host-bridge/navigation.test.ts`、`apps/mobile-shell/src/host-bridge/navigation.ts`、`apps/mobile-shell/src/host-bridge/network.test.ts`、`apps/mobile-shell/src/host-bridge/network.ts`、`apps/mobile-shell/src/host-bridge/notifications.test.ts`、`apps/mobile-shell/src/host-bridge/notifications.ts`、`apps/mobile-shell/src/host-bridge/protocol.test.ts`、`apps/mobile-shell/src/host-bridge/protocol.ts`、`apps/mobile-shell/src/host-bridge/runtime.test.ts`、`apps/mobile-shell/src/host-bridge/runtime.ts`、`apps/mobile-shell/src/host-bridge/scanner.test.ts`、`apps/mobile-shell/src/host-bridge/scanner.ts`、`apps/mobile-shell/src/host-bridge/share.test.ts`、`apps/mobile-shell/src/host-bridge/share.ts`;移动 shell 层为 `apps/mobile-shell/src/shell/QrScannerOverlay.test.tsx`、`apps/mobile-shell/src/shell/QrScannerOverlay.tsx`、`apps/mobile-shell/src/shell/ShellApp.tsx`、`apps/mobile-shell/src/shell/deepLink.ts`、`apps/mobile-shell/src/shell/lifecycle.ts`、`apps/mobile-shell/src/shell/loadFailure.ts`、`apps/mobile-shell/src/shell/navigation.ts`、`apps/mobile-shell/src/shell/network.ts`、`apps/mobile-shell/src/shell/runtime.ts`、`apps/mobile-shell/src/shell/safeArea.ts`、`apps/mobile-shell/src/shell/url.ts`、`apps/mobile-shell/src/shell/webViewGlobals.d.ts`、`apps/mobile-shell/src/shell/webViewHistory.ts`、`apps/mobile-shell/src/shell/webViewPolicy.ts`;桌面入口为 `apps/desktop-shell/src-tauri/src/app.rs`、`apps/desktop-shell/src-tauri/src/main.rs`;桌面桥接层为 `apps/desktop-shell/src-tauri/src/host_bridge/appearance.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/badge.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/capabilities.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/clipboard.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/dispatch.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/file_payloads.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/files.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/mod.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/navigation.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/network.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/notifications.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/protocol.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/runtime.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/share.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/title.rs`;桌面 shell 层为 `apps/desktop-shell/src-tauri/src/shell/deep_link.rs`、`apps/desktop-shell/src-tauri/src/shell/events.rs`、`apps/desktop-shell/src-tauri/src/shell/file_drop.rs`、`apps/desktop-shell/src-tauri/src/shell/lifecycle.rs`、`apps/desktop-shell/src-tauri/src/shell/mod.rs`、`apps/desktop-shell/src-tauri/src/shell/navigation.rs`、`apps/desktop-shell/src-tauri/src/shell/network.rs`、`apps/desktop-shell/src-tauri/src/shell/runtime.rs`、`apps/desktop-shell/src-tauri/src/shell/tray.rs`、`apps/desktop-shell/src-tauri/src/shell/url.rs`、`apps/desktop-shell/src-tauri/src/shell/webview.rs`、`apps/desktop-shell/src-tauri/src/shell/window_state.rs`。这些目录不得新增未登记子目录或生产入口;移动端和桌面端单端配置检查同样会拒绝未登记生产模块。 +结构门禁按完整相对路径反查文档和目录:微信桥接层为 `miniprogram/host-bridge/dispatch.js`、`miniprogram/host-bridge/payment.js`、`miniprogram/host-bridge/protocol.js`、`miniprogram/host-bridge/shareGrid.js`、`miniprogram/host-bridge/webView.js`;微信 shell 层为 `miniprogram/shell/payment.js`、`miniprogram/shell/shareGrid.js`、`miniprogram/shell/webView.js`;微信页面包装层为 `miniprogram/pages/share-grid/index.js`、`miniprogram/pages/share-grid/index.json`、`miniprogram/pages/share-grid/index.wxml`、`miniprogram/pages/share-grid/index.wxss`、`miniprogram/pages/web-view/index.js`、`miniprogram/pages/web-view/index.json`、`miniprogram/pages/web-view/index.wxml`、`miniprogram/pages/web-view/index.wxss`、`miniprogram/pages/wechat-pay/index.js`、`miniprogram/pages/wechat-pay/index.json`、`miniprogram/pages/wechat-pay/index.wxml`、`miniprogram/pages/wechat-pay/index.wxss`;移动源码根为 `apps/mobile-shell/src/env.d.ts`;移动桥接层为 `apps/mobile-shell/src/host-bridge/appearance.test.ts`、`apps/mobile-shell/src/host-bridge/appearance.ts`、`apps/mobile-shell/src/host-bridge/badge.test.ts`、`apps/mobile-shell/src/host-bridge/badge.ts`、`apps/mobile-shell/src/host-bridge/bridge.ts`、`apps/mobile-shell/src/host-bridge/capabilities.test.ts`、`apps/mobile-shell/src/host-bridge/capabilities.ts`、`apps/mobile-shell/src/host-bridge/clipboard.test.ts`、`apps/mobile-shell/src/host-bridge/clipboard.ts`、`apps/mobile-shell/src/host-bridge/dispatch.ts`、`apps/mobile-shell/src/host-bridge/filePayloads.test.ts`、`apps/mobile-shell/src/host-bridge/filePayloads.ts`、`apps/mobile-shell/src/host-bridge/files.test.ts`、`apps/mobile-shell/src/host-bridge/files.ts`、`apps/mobile-shell/src/host-bridge/haptics.test.ts`、`apps/mobile-shell/src/host-bridge/haptics.ts`、`apps/mobile-shell/src/host-bridge/navigation.test.ts`、`apps/mobile-shell/src/host-bridge/navigation.ts`、`apps/mobile-shell/src/host-bridge/network.test.ts`、`apps/mobile-shell/src/host-bridge/network.ts`、`apps/mobile-shell/src/host-bridge/notifications.test.ts`、`apps/mobile-shell/src/host-bridge/notifications.ts`、`apps/mobile-shell/src/host-bridge/protocol.test.ts`、`apps/mobile-shell/src/host-bridge/protocol.ts`、`apps/mobile-shell/src/host-bridge/runtime.test.ts`、`apps/mobile-shell/src/host-bridge/runtime.ts`、`apps/mobile-shell/src/host-bridge/scanner.test.ts`、`apps/mobile-shell/src/host-bridge/scanner.ts`、`apps/mobile-shell/src/host-bridge/share.test.ts`、`apps/mobile-shell/src/host-bridge/share.ts`;移动 shell 层为 `apps/mobile-shell/src/shell/QrScannerOverlay.test.tsx`、`apps/mobile-shell/src/shell/QrScannerOverlay.tsx`、`apps/mobile-shell/src/shell/ShellApp.tsx`、`apps/mobile-shell/src/shell/deepLink.ts`、`apps/mobile-shell/src/shell/lifecycle.ts`、`apps/mobile-shell/src/shell/loadFailure.ts`、`apps/mobile-shell/src/shell/navigation.ts`、`apps/mobile-shell/src/shell/network.ts`、`apps/mobile-shell/src/shell/runtime.ts`、`apps/mobile-shell/src/shell/safeArea.ts`、`apps/mobile-shell/src/shell/url.ts`、`apps/mobile-shell/src/shell/webViewGlobals.d.ts`、`apps/mobile-shell/src/shell/webViewHistory.ts`、`apps/mobile-shell/src/shell/webViewPolicy.ts`;桌面入口为 `apps/desktop-shell/src-tauri/src/app.rs`、`apps/desktop-shell/src-tauri/src/main.rs`;桌面桥接层为 `apps/desktop-shell/src-tauri/src/host_bridge/appearance.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/badge.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/capabilities.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/clipboard.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/dispatch.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/file_payloads.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/files.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/mod.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/navigation.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/network.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/notifications.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/protocol.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/runtime.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/share.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/title.rs`;桌面 shell 层为 `apps/desktop-shell/src-tauri/src/shell/deep_link.rs`、`apps/desktop-shell/src-tauri/src/shell/events.rs`、`apps/desktop-shell/src-tauri/src/shell/file_drop.rs`、`apps/desktop-shell/src-tauri/src/shell/lifecycle.rs`、`apps/desktop-shell/src-tauri/src/shell/mod.rs`、`apps/desktop-shell/src-tauri/src/shell/navigation.rs`、`apps/desktop-shell/src-tauri/src/shell/network.rs`、`apps/desktop-shell/src-tauri/src/shell/runtime.rs`、`apps/desktop-shell/src-tauri/src/shell/tray.rs`、`apps/desktop-shell/src-tauri/src/shell/url.rs`、`apps/desktop-shell/src-tauri/src/shell/webview.rs`、`apps/desktop-shell/src-tauri/src/shell/window_state.rs`。这些目录不得新增未登记子目录或生产入口;移动端和桌面端单端配置检查同样会拒绝未登记生产模块。 ## HostBridge 消息协议 @@ -273,7 +275,7 @@ GameBridge 禁止: - 每个请求必须有超时;H5 的 React Native WebView transport 和 Tauri `invoke` transport 都必须在前端侧按 `timeoutMs` 释放请求,默认请求超时、最大请求超时和用户交互长操作超时以 `packages/shared/src/contracts/hostBridge.ts` 的 `HOST_BRIDGE_DEFAULT_REQUEST_TIMEOUT_MS` / `HOST_BRIDGE_MAX_REQUEST_TIMEOUT_MS` / `HOST_BRIDGE_USER_INTERACTION_TIMEOUT_MS` 为唯一来源,宿主侧执行超时也只能返回标准 HostBridge 错误。重复 `id` 不得重复执行支付、登录、受控分享动作、文件导入导出、本地通知等宿主副作用;Expo 和 Tauri 壳都必须按 request id 回放首次完成结果,已完成响应缓存上限以共享契约 `HOST_BRIDGE_RESPONSE_CACHE_MAX` 为唯一来源。 - HostBridge 的 capability profile、宿主上下文 query 字段和值、文件 MIME 清单、导入 / 导出体积上限、文件名 fallback / 长度上限、request id 长度、角标上限、剪贴板文本长度、二维码文本长度、本地通知标题 / 正文长度、移动端 Android 本地通知 channel id 和桌面网络探测超时都必须以 `packages/shared/src/contracts/hostBridge.ts` 为声明来源;Expo 移动壳直接导入共享 profile 和契约常量,微信小程序壳和 Tauri 壳分别保留小程序 CommonJS / Rust 运行时代码镜像并由测试和配置门禁反查共享契约。 - 能力按 `capabilities` / `hostCapabilities` 下发,H5 会过滤未知能力,并根据声明结果决定是否展示入口、发起宿主请求或走 fallback;进入 `native_app` 后主 App 会再通过真实 `host.getRuntime` 回读一次宿主 runtime 并缓存能力,用来补齐裁剪壳或旧入口 URL 缺少 `hostCapabilities` 的场景,该回读请求的短超时以共享契约 `HOST_BRIDGE_RUNTIME_REFRESH_TIMEOUT_MS` 为唯一来源。不能只凭 `native_app` 宿主类型假设能力可用。 -- 壳能力声明与三端壳验收必须通过 `npm run check:native-shells` 统一校验;排查单端问题时可再分别运行微信壳测试集合、`npm run mobile-shell:typecheck`、`npm run mobile-shell:test`、`npm run mobile-shell:config`、`npm run mobile-shell:export`、`npm run desktop-shell:typecheck`、`npm run desktop-shell:test` 或 `npm run desktop-shell:build -- --no-bundle`。声明的 capability 必须来自共享 HostBridge profile 并存在于共享白名单,壳 runtime 回包、H5 URL `hostCapabilities`、壳实现、文件载荷边界、微信 WebView / 支付 / 订阅 / 分享桥接行为、微信小程序页面路由、WebView source query、微信请求头运行时标记、H5 runtime parser、H5 路由保留字段、微信壳 H5 / API HTTPS 域名格式、Expo managed config、移动端 production bundle、桌面 release 构建入口和微信 / Expo / Tauri 三端生产源码临时替身词扫描不得漂移。微信小程序壳不使用 Expo / Tauri 式统一 request dispatcher,但每个声明 capability 都必须在根级门禁中映射到真实流程文件、关键 `wx.*` 或页面工厂调用和对应测试清单;Expo 移动壳和 Tauri 桌面壳的关键能力也必须在根级门禁中映射到真实 Expo / React Native / Tauri API、权限或配置片段、宿主分发文件和对应测试清单。 +- 壳能力声明与三端壳验收必须通过 `npm run check:native-shells` 统一校验;排查单端问题时可再分别运行微信壳测试集合、`npm run mobile-shell:typecheck`、`npm run mobile-shell:test`、`npm run mobile-shell:config`、`npm run mobile-shell:export`、`npm run desktop-shell:typecheck`、`npm run desktop-shell:test` 或 `npm run desktop-shell:build -- --no-bundle`。声明的 capability 必须来自共享 HostBridge profile 并存在于共享白名单,壳 runtime 回包、H5 URL `hostCapabilities`、壳实现、文件载荷边界、微信 WebView / 支付 / 分享桥接行为、微信小程序页面路由、WebView source query、微信请求头运行时标记、H5 runtime parser、H5 路由保留字段、微信壳 H5 / API HTTPS 域名格式、Expo managed config、移动端 production bundle、桌面 release 构建入口和微信 / Expo / Tauri 三端生产源码临时替身词扫描不得漂移。微信小程序壳不使用 Expo / Tauri 式统一 request dispatcher,但每个声明 capability 都必须在根级门禁中映射到真实流程文件、关键 `wx.*` 或页面工厂调用和对应测试清单;Expo 移动壳和 Tauri 桌面壳的关键能力也必须在根级门禁中映射到真实 Expo / React Native / Tauri API、权限或配置片段、宿主分发文件和对应测试清单。 - Expo SDK、React Native、`react-native-webview`、Tauri CLI、Tauri Rust crate 和桌面 Cargo 插件版本属于宿主壳行为边界。升级这些依赖前必须同步更新壳配置检查、`package-lock.json` / `Cargo.lock` 解析版本、本文档和对应验证结果,不能只改 package / Cargo 版本让生产壳行为静默漂移。 - 登录和支付能力在真实 SDK、渠道流程、后端契约和失败回退全部落地前不得进入 Expo / Tauri capabilities,也不得写进入口 URL `hostCapabilities`;两端配置检查会拒绝 `auth.requestLogin` 和 `payment.request` 的伪声明。 - 宿主壳不得把长期 token、支付密钥或用户敏感资料回传给 H5。 @@ -298,7 +300,7 @@ GameBridge 禁止: 当前状态:已新增 `src/services/host-bridge/nativeAppHostBridge.ts`,支持 React Native WebView `postMessage` 和 Tauri `invoke('host_bridge_request')` 两种真实 transport。两条 transport 都会按 `timeoutMs` 在 H5 侧释放请求,超时统一抛出 `timeout / host_bridge_timeout`。登录、支付和原生页跳转如果宿主明确返回 `unsupported_method` / `unsupported_capability`,H5 回退到原有路径;生产代码不返回 mock 成功。 -2026-06-19 追加:微信小程序壳当前真实能力完整清单为 `auth.requestLogin`、`payment.request`、`share.setTarget`、`share.open` 和 `navigation.openNativePage`。 +2026-06-19 追加,2026-07-18 收口:微信小程序壳当前真实能力完整清单为 `auth.requestLogin`、`payment.request`、`share.setTarget` 和 `share.open`。旧订阅授权页退役后,微信 profile 不再声明 `navigation.openNativePage`;Expo / Tauri 的同源 H5 受控导航能力不受影响。 ### Phase 2:Expo 移动壳 MVP @@ -542,19 +544,19 @@ GameBridge 禁止: 2026-06-19 追加:H5 HostBridge 真实调用链扫描改为自动发现。根级 `npm run check:native-shells` 会从 `src/` 生产文件里收集直接导入并调用真实宿主能力 facade 的文件,以及 `useHostLifecycleActive`、`useHostNetworkOnline`、`platformProfileHostClipboard` 等薄 wrapper 的消费者;新增 `reloadHostWebView`、`showHostLocalNotification`、`setHostAppBadgeCount`、`importHostTextFile`、`importHostImageFile`、`captureHostImageFile`、`subscribeHostImageDrop`、`readHostClipboardText`、`openHostExternalUrl` 等 H5 调用点时,不再手工维护单个扫描文件清单。登录与支付外链属于敏感跳转路径,`src/services/authService.ts` 和 `src/services/payment/paymentRedirect.ts` 额外列入必扫清单,防止后续绕回裸浏览器跳转却脱离 HostBridge 调用链门禁。H5 业务文件允许正常表单 `placeholder` 属性、业务占位图文案和真实兼容 / 故障语义中的“未实现”“临时”表述,但仍会拒绝 mock / fake / stub / TODO / FIXME / 模拟 / 伪造等替身痕迹。 -2026-06-18 追加:微信壳行为测试进入原生壳统一验收。`npm run check:native-shells` 会运行 `miniprogram/host-bridge/`、`miniprogram/shell/`、`pages/web-view` 样式和 `scripts/miniprogram-web-view-auth.test.ts` 测试,覆盖微信 WebView 入口、登录触发、分享目标、支付结果、订阅消息结果和九宫切图桥接行为;三端桥接层文件结构检查只锁定职责边界,真实行为回归必须由同一门禁中的微信壳测试证明。 +2026-06-18 追加:微信壳行为测试进入原生壳统一验收。`npm run check:native-shells` 会运行 `miniprogram/host-bridge/`、`miniprogram/shell/`、`pages/web-view` 样式和 `scripts/miniprogram-web-view-auth.test.ts` 测试,覆盖微信 WebView 入口、登录触发、分享目标、支付结果和九宫切图桥接行为;三端桥接层文件结构检查只锁定职责边界,真实行为回归必须由同一门禁中的微信壳测试证明。 2026-06-21 追加:微信 `web-view` 壳读取小程序 envVersion 失败时只允许记录 `[web-view] read mini program env failed` 固定标签,不把 `wx.getAccountInfoSync()` 原生异常对象写入生产日志;根级原生壳门禁会拒绝恢复 `console.warn(..., error)`。 2026-06-21 追加:微信九宫切图壳的下载、图片读取、切图导出、保存相册和最终保存失败诊断只允许记录 `[share-grid] ` 固定标签,不把微信原生错误对象或后端细节写入生产日志;页面仍只展示 `九宫切图保存失败。` 稳定文案。 -2026-06-21 追加:微信支付参数解析、虚拟支付失败和订阅消息请求失败诊断只允许记录 `[wechat-pay] ` / `[subscribe-message] ` 固定标签,不把微信原生错误对象写入生产日志;H5 回灌仍只使用稳定支付 / 订阅失败语义。 +2026-06-21 追加,2026-07-18 收口:微信支付参数解析和虚拟支付失败诊断只允许记录 `[wechat-pay] ` 固定标签,不把微信原生错误对象写入生产日志;H5 回灌只使用稳定支付失败语义。旧生成结果订阅消息诊断随该能力退役,不属于现役壳契约。 2026-06-21 追加:微信 `web-view` 认证链路诊断只允许记录 `[web-view] ` 固定标签,不把 `wx.login` 错误、登录 / 绑手机号 HTTP response、手机号授权 detail 或认证异常对象写入生产日志;页面仍只展示稳定登录 / 绑手机号错误文案。 2026-06-21 追加:微信 `web-view` 页面事件诊断只允许记录 `[web-view] ` 固定标签,不把加载成功、加载失败或 H5 message 的 `event.detail` 写入生产日志;分享目标仍从结构化 message payload 解析,但日志不能输出原生事件体。 -2026-06-19 追加:微信小程序壳路由一致性进入原生壳统一验收。`npm run check:native-shells` 会反查 `miniprogram/app.json.pages` 与 `miniprogram/host-bridge/protocol.js` 页面 URL 常量一致,H5 `src/services/host-bridge/hostBridge.ts` 的小程序登录、支付、九宫切图页面常量、H5 `src/services/wechatMiniProgramSubscribe.ts` 的订阅授权页面常量与微信协议常量一致,`miniprogram/host-bridge/webView.js` 的 WebView 分享入口和分享目标消息类型不漂移;同时会校验 `miniprogram/config.js` 的生产 / 开发 H5 入口与 API base URL 都是显式配置的纯 HTTPS 域名,`WEB_VIEW_SOURCE_QUERY` 与共享 `HOST_BRIDGE_WECHAT_MINI_PROGRAM_SOURCE_QUERY` 一致,`miniprogram/shell/webView.js` 请求头从 `WEB_VIEW_SOURCE_QUERY` 读取 `clientType` / `clientRuntime`,H5 runtime parser 读取共享 `HOST_BRIDGE_RUNTIME_CONTEXT_QUERY_KEY`,H5 路由保留字段读取共享 `HOST_BRIDGE_PRESERVED_RUNTIME_CONTEXT_QUERY_KEYS`。运行时对开发域名的生产域名回退只作为异常兜底,不作为配置口径;新增小程序页面、改页面路径、调整来源 query 或切换域名格式时,必须同步协议常量、H5 HostBridge / 订阅服务常量、`app.json`、共享 HostBridge query 契约和这条门禁。 +2026-06-19 追加,2026-07-18 收口:微信小程序壳路由一致性进入原生壳统一验收。`npm run check:native-shells` 会反查 `miniprogram/app.json.pages` 与 `miniprogram/host-bridge/protocol.js` 页面 URL 常量一致,H5 `src/services/host-bridge/hostBridge.ts` 的小程序登录、支付和九宫切图页面常量与微信协议常量一致,并检查 `miniprogram/host-bridge/webView.js` 的 WebView 分享入口和分享目标消息类型不漂移;旧订阅授权页面与 `wechatMiniProgramSubscribe` 不再进入现役扫描。门禁同时校验 `miniprogram/config.js` 的生产 / 开发 H5 入口与 API base URL 都是显式配置的纯 HTTPS 域名,`WEB_VIEW_SOURCE_QUERY` 与共享 `HOST_BRIDGE_WECHAT_MINI_PROGRAM_SOURCE_QUERY` 一致,`miniprogram/shell/webView.js` 请求头从 `WEB_VIEW_SOURCE_QUERY` 读取 `clientType` / `clientRuntime`,H5 runtime parser 读取共享 `HOST_BRIDGE_RUNTIME_CONTEXT_QUERY_KEY`,H5 路由保留字段读取共享 `HOST_BRIDGE_PRESERVED_RUNTIME_CONTEXT_QUERY_KEYS`。运行时对开发域名的生产域名回退只作为异常兜底,不作为配置口径;新增小程序页面、改页面路径、调整来源 query 或切换域名格式时,必须同步协议常量、`app.json`、共享 HostBridge query 契约和这条门禁。 2026-06-18 追加:原生壳本地生成物不作为生产源码门禁输入。Expo `.expo/`、Expo export smoke 临时目录、Tauri `target/`、Tauri schema `gen/`、Tauri 自动生成权限目录和根目录 `build/native/` 都必须保持 gitignored;根级生产壳敏感词扫描只检查可提交的壳源码和配置,避免本机工具输出影响生产门禁。`npm run check:native-shells` 会同时检查这些目录没有被 Git 追踪,并用 `git check-ignore -v` 确认对应 gitignore 规则仍然生效。手写 capability / 权限配置仍需保留在扫描范围内。 @@ -578,7 +580,7 @@ GameBridge 禁止: 2026-06-18 追加:`app.openExternalUrl` 的协议白名单以共享 HostBridge 契约 `HOST_BRIDGE_EXTERNAL_URL_PROTOCOLS` 为唯一来源,当前只允许 `http:`、`https:`、`mailto:`、`tel:`。Expo 壳直接复用共享归一化逻辑,Tauri 壳 Rust 侧用 URL parser 镜像同一清单;`npm run check:native-shells` 会反查共享契约与桌面壳协议清单,防止某一端单独放宽外链协议。 -2026-06-18 追加:微信、移动端和桌面端桥接层文件结构按职责对齐。微信小程序的 `web-view`、支付、九宫切图和订阅消息桥接逻辑统一迁入 `miniprogram/host-bridge/webView.js`、`payment.js`、`shareGrid.js`、`subscribeMessage.js`,页面目录只保留页面生命周期、WXML/WXSS 和装配;移动壳拆成 `apps/mobile-shell/src/host-bridge/protocol.ts`、`capabilities.ts`、`dispatch.ts`、`files.ts`、`filePayloads.ts`、`files.test.ts`、`navigation.test.ts`、`navigation.ts`、`scanner.test.ts`、`scanner.ts`、`share.test.ts`、`share.ts` 和 facade `bridge.ts`,与桌面端 `host_bridge/protocol.rs`、`capabilities.rs`、`dispatch.rs`、`files.rs`、`file_payloads.rs`、`share.rs`、`mod.rs` 对齐,其中移动 `files.ts` 只承接 Expo 系统文件交互和 HostBridge 响应包装,`filePayloads.ts` 承接 MIME、大小、base64、文件名和 picker payload 边界;移动壳根 `App.tsx` 也保持薄入口,只装配 `src/shell/ShellApp.tsx`,WebView 容器、深链、网络、生命周期、安全区、扫码 overlay 和安全策略全部留在 `src/shell/`;桌面壳 Rust 源码拆成 `apps/desktop-shell/src-tauri/src/app.rs`、`host_bridge/*.rs` 与 `shell/*.rs`,其中 `app.rs` 承接 Tauri builder / plugin / window 装配,`runtime.rs`、`url.rs`、`navigation.rs`、`network.rs`、`lifecycle.rs`、`file_drop.rs`、`events.rs`、`deep_link.rs`、`tray.rs`、`window_state.rs` 和 `webview.rs` 分别承接运行态、入口 URL、导航 / 下载、网络、生命周期、拖拽图片、HostBridge 事件注入、深链、托盘、窗口状态持久化和 WebView 门面,薄 `main.rs` 只声明模块并调用 `app::run()`。根级 `npm run check:native-shells` 会锁定三端桥接层目录清单,避免后续把能力逻辑重新散落到页面、移动入口或桌面入口。 +2026-06-18 追加:微信、移动端和桌面端桥接层文件结构按职责对齐。微信小程序的 `web-view`、支付和九宫切图桥接逻辑统一迁入 `miniprogram/host-bridge/webView.js`、`payment.js`、`shareGrid.js`,页面目录只保留页面生命周期、WXML/WXSS 和装配;移动壳拆成 `apps/mobile-shell/src/host-bridge/protocol.ts`、`capabilities.ts`、`dispatch.ts`、`files.ts`、`filePayloads.ts`、`files.test.ts`、`navigation.test.ts`、`navigation.ts`、`scanner.test.ts`、`scanner.ts`、`share.test.ts`、`share.ts` 和 facade `bridge.ts`,与桌面端 `host_bridge/protocol.rs`、`capabilities.rs`、`dispatch.rs`、`files.rs`、`file_payloads.rs`、`share.rs`、`mod.rs` 对齐,其中移动 `files.ts` 只承接 Expo 系统文件交互和 HostBridge 响应包装,`filePayloads.ts` 承接 MIME、大小、base64、文件名和 picker payload 边界;移动壳根 `App.tsx` 也保持薄入口,只装配 `src/shell/ShellApp.tsx`,WebView 容器、深链、网络、生命周期、安全区、扫码 overlay 和安全策略全部留在 `src/shell/`;桌面壳 Rust 源码拆成 `apps/desktop-shell/src-tauri/src/app.rs`、`host_bridge/*.rs` 与 `shell/*.rs`,其中 `app.rs` 承接 Tauri builder / plugin / window 装配,`runtime.rs`、`url.rs`、`navigation.rs`、`network.rs`、`lifecycle.rs`、`file_drop.rs`、`events.rs`、`deep_link.rs`、`tray.rs`、`window_state.rs` 和 `webview.rs` 分别承接运行态、入口 URL、导航 / 下载、网络、生命周期、拖拽图片、HostBridge 事件注入、深链、托盘、窗口状态持久化和 WebView 门面,薄 `main.rs` 只声明模块并调用 `app::run()`。根级 `npm run check:native-shells` 会锁定三端桥接层目录清单,避免后续把能力逻辑重新散落到页面、移动入口或桌面入口。 2026-06-19 追加:HostBridge 载荷边界以共享契约为单一声明来源。`packages/shared/src/contracts/hostBridge.ts` 导出文本 / 图片 / 音频 MIME 清单、导入 / 导出字节上限、导出文件名 fallback 与长度上限,以及 request id、角标、剪贴板和本地通知文本长度边界;Expo 移动壳必须直接导入这些共享常量,不再本地重声明文件大小或 MIME 清单,并且文本 / 音频导入必须在读取内容前通过 picker `size` 或 Expo `File.size` 完成大小门禁,无法拿到可信 byte count 时直接拒绝导入;Tauri 桌面壳的配置检查会反查 Rust 镜像实现,拒绝文件大小、MIME 清单、文件名、通知、剪贴板或 request id 边界与共享契约漂移。新增文件类型或调整体积上限必须先更新共享契约、壳实现和门禁,再进入玩法或 H5 facade。 diff --git a/docs/【前端架构】宿主壳能力统一协议-2026-06-17.md b/docs/【前端架构】宿主壳能力统一协议-2026-06-17.md index fd08f0a67..c0392a802 100644 --- a/docs/【前端架构】宿主壳能力统一协议-2026-06-17.md +++ b/docs/【前端架构】宿主壳能力统一协议-2026-06-17.md @@ -37,11 +37,11 @@ AI H5 sandbox -> parent HostBridge adapter ``` -桥接层文件结构按宿主统一为“协议 / 能力清单 / 分发 / 宿主容器行为”四类职责。微信小程序不硬套 Expo / Tauri 的 request 总线:`miniprogram/host-bridge/protocol.js` 只沉淀微信壳能力、页面 URL、结果 hash / storage key 和分享消息类型等常量,`dispatch.js` 只作为 `protocol`、`webView`、`payment`、`shareGrid`、`subscribeMessage` 的薄索引,真实协议归一、支付 / 订阅 / 分享结果编解码仍分别放在 `webView.js`、`payment.js`、`shareGrid.js`、`subscribeMessage.js`;`miniprogram/shell/webView.js`、`payment.js`、`shareGrid.js`、`subscribeMessage.js` 承接 Page 生命周期、`wx.*` 容器调用、WebView 容器行为、支付页和订阅页装配,页面目录只保留 `Page(createWechat...Page())` 装配。Expo 移动壳使用 `apps/mobile-shell/src/host-bridge/protocol.ts` 承接 envelope、request 校验、ok / failure 响应和 replay 基础类型,`capabilities.ts` 只引用共享 HostBridge capability profile 并选择 iOS 差异能力,`dispatch.ts` 承接 method 分发和宿主能力调用,`appearance.ts` 承接系统配色读取,`navigation.ts` 承接外链打开、受控 H5 跳转和 WebView 刷新,`network.ts` 承接网络状态查询,`badge.ts` 承接受控角标能力,`clipboard.ts` 承接剪贴板读写与 HostBridge payload / 响应边界,`files.ts` 承接 Expo DocumentPicker / ImagePicker / File / Sharing 系统交互、取消语义、读写编排和 HostBridge 响应包装,`filePayloads.ts` 承接文件 MIME、大小、base64、文件名清洗和 picker 结果到 HostBridge payload 的边界,`share.ts` / `scanner.ts` / `notifications.ts` 分别承接分享、扫码和本地通知能力,`bridge.ts` 只作为 WebView message 入口、request id replay 编排和对外 facade;`apps/mobile-shell/App.tsx` 只装配 `apps/mobile-shell/src/shell/ShellApp.tsx`,由 `apps/mobile-shell/src/shell/*.ts(x)` 承接 WebView 容器、URL、导航、网络、生命周期、安全区、扫码 overlay 和 WebView policy。Tauri 桌面壳使用 `apps/desktop-shell/src-tauri/src/host_bridge/protocol.rs` 承接 envelope、method 白名单、request 校验和 replay 状态,`runtime.rs` 承接桌面 runtime 回包的平台、hostVersion、bridgeVersion 和 capability 清单组装,`appearance.rs` 承接窗口主题读取和 HostBridge 配色归一,`navigation.rs` 承接外链打开、受控 H5 跳转和主窗口刷新,`network.rs` 承接网络状态查询,`badge.rs` 承接受控任务栏角标能力,`clipboard.rs` 承接剪贴板读写与 HostBridge payload / 响应边界,`title.rs` 承接窗口标题 payload / 响应边界,`capabilities.rs` 承接共享桌面 capability profile 的 Rust 运行时镜像,`dispatch.rs` 承接 method 分发和宿主能力调用,`files.rs` 承接系统文件对话框、取消语义和异步读写编排,`file_payloads.rs` 承接文件 MIME、大小、base64、文件名清洗、本地副本读写和 HostBridge payload 边界,`share.rs` / `notifications.rs` 分别承接分享和本地通知能力,`mod.rs` 只保留模块声明、必要 re-export、`host_bridge_request` command facade 和 replay 编排;`apps/desktop-shell/src-tauri/src/shell/runtime.rs`、`url.rs`、`navigation.rs`、`network.rs`、`lifecycle.rs`、`file_drop.rs`、`events.rs`、`deep_link.rs`、`tray.rs`、`window_state.rs` 和 `webview.rs` 分别承接运行态、入口 URL、导航 / 下载、网络、生命周期、拖拽图片、HostBridge 事件注入、深链、托盘、窗口状态持久化和 WebView 门面,`apps/desktop-shell/src-tauri/src/app.rs` 承接 Tauri builder / plugin / window 装配,`main.rs` 只保留薄入口并调用 `app::run()`。`npm run check:native-shells` 会检查这些目录清单。 +桥接层文件结构按宿主统一为“协议 / 能力清单 / 分发 / 宿主容器行为”四类职责。微信小程序不硬套 Expo / Tauri 的 request 总线:`miniprogram/host-bridge/protocol.js` 只沉淀微信壳能力、页面 URL、结果 hash / storage key 和分享消息类型等常量,`dispatch.js` 只作为 `protocol`、`webView`、`payment`、`shareGrid` 的薄索引,真实协议归一、支付 / 分享结果编解码仍分别放在 `webView.js`、`payment.js`、`shareGrid.js`;`miniprogram/shell/webView.js`、`payment.js`、`shareGrid.js` 承接 Page 生命周期、`wx.*` 容器调用、WebView 容器行为、支付页装配,页面目录只保留 `Page(createWechat...Page())` 装配。Expo 移动壳使用 `apps/mobile-shell/src/host-bridge/protocol.ts` 承接 envelope、request 校验、ok / failure 响应和 replay 基础类型,`capabilities.ts` 只引用共享 HostBridge capability profile 并选择 iOS 差异能力,`dispatch.ts` 承接 method 分发和宿主能力调用,`appearance.ts` 承接系统配色读取,`navigation.ts` 承接外链打开、受控 H5 跳转和 WebView 刷新,`network.ts` 承接网络状态查询,`badge.ts` 承接受控角标能力,`clipboard.ts` 承接剪贴板读写与 HostBridge payload / 响应边界,`files.ts` 承接 Expo DocumentPicker / ImagePicker / File / Sharing 系统交互、取消语义、读写编排和 HostBridge 响应包装,`filePayloads.ts` 承接文件 MIME、大小、base64、文件名清洗和 picker 结果到 HostBridge payload 的边界,`share.ts` / `scanner.ts` / `notifications.ts` 分别承接分享、扫码和本地通知能力,`bridge.ts` 只作为 WebView message 入口、request id replay 编排和对外 facade;`apps/mobile-shell/App.tsx` 只装配 `apps/mobile-shell/src/shell/ShellApp.tsx`,由 `apps/mobile-shell/src/shell/*.ts(x)` 承接 WebView 容器、URL、导航、网络、生命周期、安全区、扫码 overlay 和 WebView policy。Tauri 桌面壳使用 `apps/desktop-shell/src-tauri/src/host_bridge/protocol.rs` 承接 envelope、method 白名单、request 校验和 replay 状态,`runtime.rs` 承接桌面 runtime 回包的平台、hostVersion、bridgeVersion 和 capability 清单组装,`appearance.rs` 承接窗口主题读取和 HostBridge 配色归一,`navigation.rs` 承接外链打开、受控 H5 跳转和主窗口刷新,`network.rs` 承接网络状态查询,`badge.rs` 承接受控任务栏角标能力,`clipboard.rs` 承接剪贴板读写与 HostBridge payload / 响应边界,`title.rs` 承接窗口标题 payload / 响应边界,`capabilities.rs` 承接共享桌面 capability profile 的 Rust 运行时镜像,`dispatch.rs` 承接 method 分发和宿主能力调用,`files.rs` 承接系统文件对话框、取消语义和异步读写编排,`file_payloads.rs` 承接文件 MIME、大小、base64、文件名清洗、本地副本读写和 HostBridge payload 边界,`share.rs` / `notifications.rs` 分别承接分享和本地通知能力,`mod.rs` 只保留模块声明、必要 re-export、`host_bridge_request` command facade 和 replay 编排;`apps/desktop-shell/src-tauri/src/shell/runtime.rs`、`url.rs`、`navigation.rs`、`network.rs`、`lifecycle.rs`、`file_drop.rs`、`events.rs`、`deep_link.rs`、`tray.rs`、`window_state.rs` 和 `webview.rs` 分别承接运行态、入口 URL、导航 / 下载、网络、生命周期、拖拽图片、HostBridge 事件注入、深链、托盘、窗口状态持久化和 WebView 门面,`apps/desktop-shell/src-tauri/src/app.rs` 承接 Tauri builder / plugin / window 装配,`main.rs` 只保留薄入口并调用 `app::run()`。`npm run check:native-shells` 会检查这些目录清单。 当前 `npm run check:native-shells` 锁定的生产文件清单以本文后续“结构门禁按完整相对路径反查文档和目录”段落为唯一文档口径;不要再维护只含文件名的短清单,避免测试文件、`file_payloads.rs` 或新增宿主脚本登记发生文档漂移。 -`npm run check:native-shells` 还会按桥接模块语义分类三端结构:`dispatch` 和 `protocol` 必须同时存在于微信、移动和桌面壳;`appearance`、`badge`、`capabilities`、`clipboard`、`file-payloads`、`files`、`navigation`、`network`、`notifications`、`runtime`、`share` 是 Expo / Tauri 原生 App 壳共同模块;`bridge`、`haptics`、`scanner` 只属于移动壳,`mod`、`title` 只属于桌面壳,`payment`、`shareGrid`、`subscribeMessage`、`webView` 只属于微信壳。新增、拆分或迁移 HostBridge 模块时必须先在该分类中明确归属,再同步目录清单和能力流证据。 +`npm run check:native-shells` 还会按桥接模块语义分类三端结构:`dispatch` 和 `protocol` 必须同时存在于微信、移动和桌面壳;`appearance`、`badge`、`capabilities`、`clipboard`、`file-payloads`、`files`、`navigation`、`network`、`notifications`、`runtime`、`share` 是 Expo / Tauri 原生 App 壳共同模块;`bridge`、`haptics`、`scanner` 只属于移动壳,`mod`、`title` 只属于桌面壳,`payment`、`shareGrid`、`webView` 只属于微信壳。新增、拆分或迁移 HostBridge 模块时必须先在该分类中明确归属,再同步目录清单和能力流证据。 生产替身词扫描只覆盖上述壳源码、分发配置、共享 HostBridge 契约和已接入真实宿主能力的 H5 调用链;Expo export、Tauri `target/`、Cargo / Metro 缓存和 release 构建产物不进入扫描范围,避免本地或 CI 生成文件污染源码门禁。 @@ -51,7 +51,7 @@ AI H5 sandbox 桌面拖拽图片事件只在 Tauri 主窗口拖入真实有效图片时派发 `file.imageDropped`。目录、文本、损坏图片或没有任何有效图片的拖入不得生成 HostBridge payload,也不得把本地路径暴露给 H5;桌面壳配置检查会反查 `file_drop.rs` 的无效拖入单测。 - 结构门禁按完整相对路径反查文档和目录:微信桥接层为 `miniprogram/host-bridge/dispatch.js`、`miniprogram/host-bridge/payment.js`、`miniprogram/host-bridge/protocol.js`、`miniprogram/host-bridge/shareGrid.js`、`miniprogram/host-bridge/subscribeMessage.js`、`miniprogram/host-bridge/webView.js`;微信 shell 层为 `miniprogram/shell/payment.js`、`miniprogram/shell/shareGrid.js`、`miniprogram/shell/subscribeMessage.js`、`miniprogram/shell/webView.js`;微信页面包装层为 `miniprogram/pages/share-grid/index.js`、`miniprogram/pages/share-grid/index.json`、`miniprogram/pages/share-grid/index.wxml`、`miniprogram/pages/share-grid/index.wxss`、`miniprogram/pages/subscribe-message/index.js`、`miniprogram/pages/subscribe-message/index.json`、`miniprogram/pages/subscribe-message/index.wxml`、`miniprogram/pages/subscribe-message/index.wxss`、`miniprogram/pages/web-view/index.js`、`miniprogram/pages/web-view/index.json`、`miniprogram/pages/web-view/index.wxml`、`miniprogram/pages/web-view/index.wxss`、`miniprogram/pages/wechat-pay/index.js`、`miniprogram/pages/wechat-pay/index.json`、`miniprogram/pages/wechat-pay/index.wxml`、`miniprogram/pages/wechat-pay/index.wxss`;移动源码根为 `apps/mobile-shell/src/env.d.ts`;移动桥接层为 `apps/mobile-shell/src/host-bridge/appearance.test.ts`、`apps/mobile-shell/src/host-bridge/appearance.ts`、`apps/mobile-shell/src/host-bridge/badge.test.ts`、`apps/mobile-shell/src/host-bridge/badge.ts`、`apps/mobile-shell/src/host-bridge/bridge.ts`、`apps/mobile-shell/src/host-bridge/capabilities.test.ts`、`apps/mobile-shell/src/host-bridge/capabilities.ts`、`apps/mobile-shell/src/host-bridge/clipboard.test.ts`、`apps/mobile-shell/src/host-bridge/clipboard.ts`、`apps/mobile-shell/src/host-bridge/dispatch.ts`、`apps/mobile-shell/src/host-bridge/filePayloads.test.ts`、`apps/mobile-shell/src/host-bridge/filePayloads.ts`、`apps/mobile-shell/src/host-bridge/files.test.ts`、`apps/mobile-shell/src/host-bridge/files.ts`、`apps/mobile-shell/src/host-bridge/haptics.test.ts`、`apps/mobile-shell/src/host-bridge/haptics.ts`、`apps/mobile-shell/src/host-bridge/navigation.test.ts`、`apps/mobile-shell/src/host-bridge/navigation.ts`、`apps/mobile-shell/src/host-bridge/network.test.ts`、`apps/mobile-shell/src/host-bridge/network.ts`、`apps/mobile-shell/src/host-bridge/notifications.test.ts`、`apps/mobile-shell/src/host-bridge/notifications.ts`、`apps/mobile-shell/src/host-bridge/protocol.test.ts`、`apps/mobile-shell/src/host-bridge/protocol.ts`、`apps/mobile-shell/src/host-bridge/runtime.test.ts`、`apps/mobile-shell/src/host-bridge/runtime.ts`、`apps/mobile-shell/src/host-bridge/scanner.test.ts`、`apps/mobile-shell/src/host-bridge/scanner.ts`、`apps/mobile-shell/src/host-bridge/share.test.ts`、`apps/mobile-shell/src/host-bridge/share.ts`;移动 shell 层为 `apps/mobile-shell/src/shell/QrScannerOverlay.test.tsx`、`apps/mobile-shell/src/shell/QrScannerOverlay.tsx`、`apps/mobile-shell/src/shell/ShellApp.tsx`、`apps/mobile-shell/src/shell/deepLink.ts`、`apps/mobile-shell/src/shell/lifecycle.ts`、`apps/mobile-shell/src/shell/loadFailure.ts`、`apps/mobile-shell/src/shell/navigation.ts`、`apps/mobile-shell/src/shell/network.ts`、`apps/mobile-shell/src/shell/runtime.ts`、`apps/mobile-shell/src/shell/safeArea.ts`、`apps/mobile-shell/src/shell/url.ts`、`apps/mobile-shell/src/shell/webViewGlobals.d.ts`、`apps/mobile-shell/src/shell/webViewHistory.ts`、`apps/mobile-shell/src/shell/webViewPolicy.ts`;桌面入口为 `apps/desktop-shell/src-tauri/src/app.rs`、`apps/desktop-shell/src-tauri/src/main.rs`;桌面桥接层为 `apps/desktop-shell/src-tauri/src/host_bridge/appearance.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/badge.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/capabilities.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/clipboard.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/dispatch.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/file_payloads.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/files.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/mod.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/navigation.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/network.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/notifications.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/protocol.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/runtime.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/share.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/title.rs`;桌面 shell 层为 `apps/desktop-shell/src-tauri/src/shell/deep_link.rs`、`apps/desktop-shell/src-tauri/src/shell/events.rs`、`apps/desktop-shell/src-tauri/src/shell/file_drop.rs`、`apps/desktop-shell/src-tauri/src/shell/lifecycle.rs`、`apps/desktop-shell/src-tauri/src/shell/mod.rs`、`apps/desktop-shell/src-tauri/src/shell/navigation.rs`、`apps/desktop-shell/src-tauri/src/shell/network.rs`、`apps/desktop-shell/src-tauri/src/shell/runtime.rs`、`apps/desktop-shell/src-tauri/src/shell/tray.rs`、`apps/desktop-shell/src-tauri/src/shell/url.rs`、`apps/desktop-shell/src-tauri/src/shell/webview.rs`、`apps/desktop-shell/src-tauri/src/shell/window_state.rs`。这些目录不得新增未登记子目录或生产入口;移动端和桌面端单端配置检查同样会拒绝未登记生产模块。 + 结构门禁按完整相对路径反查文档和目录:微信桥接层为 `miniprogram/host-bridge/dispatch.js`、`miniprogram/host-bridge/payment.js`、`miniprogram/host-bridge/protocol.js`、`miniprogram/host-bridge/shareGrid.js`、`miniprogram/host-bridge/webView.js`;微信 shell 层为 `miniprogram/shell/payment.js`、`miniprogram/shell/shareGrid.js`、`miniprogram/shell/webView.js`;微信页面包装层为 `miniprogram/pages/share-grid/index.js`、`miniprogram/pages/share-grid/index.json`、`miniprogram/pages/share-grid/index.wxml`、`miniprogram/pages/share-grid/index.wxss`、`miniprogram/pages/web-view/index.js`、`miniprogram/pages/web-view/index.json`、`miniprogram/pages/web-view/index.wxml`、`miniprogram/pages/web-view/index.wxss`、`miniprogram/pages/wechat-pay/index.js`、`miniprogram/pages/wechat-pay/index.json`、`miniprogram/pages/wechat-pay/index.wxml`、`miniprogram/pages/wechat-pay/index.wxss`;移动源码根为 `apps/mobile-shell/src/env.d.ts`;移动桥接层为 `apps/mobile-shell/src/host-bridge/appearance.test.ts`、`apps/mobile-shell/src/host-bridge/appearance.ts`、`apps/mobile-shell/src/host-bridge/badge.test.ts`、`apps/mobile-shell/src/host-bridge/badge.ts`、`apps/mobile-shell/src/host-bridge/bridge.ts`、`apps/mobile-shell/src/host-bridge/capabilities.test.ts`、`apps/mobile-shell/src/host-bridge/capabilities.ts`、`apps/mobile-shell/src/host-bridge/clipboard.test.ts`、`apps/mobile-shell/src/host-bridge/clipboard.ts`、`apps/mobile-shell/src/host-bridge/dispatch.ts`、`apps/mobile-shell/src/host-bridge/filePayloads.test.ts`、`apps/mobile-shell/src/host-bridge/filePayloads.ts`、`apps/mobile-shell/src/host-bridge/files.test.ts`、`apps/mobile-shell/src/host-bridge/files.ts`、`apps/mobile-shell/src/host-bridge/haptics.test.ts`、`apps/mobile-shell/src/host-bridge/haptics.ts`、`apps/mobile-shell/src/host-bridge/navigation.test.ts`、`apps/mobile-shell/src/host-bridge/navigation.ts`、`apps/mobile-shell/src/host-bridge/network.test.ts`、`apps/mobile-shell/src/host-bridge/network.ts`、`apps/mobile-shell/src/host-bridge/notifications.test.ts`、`apps/mobile-shell/src/host-bridge/notifications.ts`、`apps/mobile-shell/src/host-bridge/protocol.test.ts`、`apps/mobile-shell/src/host-bridge/protocol.ts`、`apps/mobile-shell/src/host-bridge/runtime.test.ts`、`apps/mobile-shell/src/host-bridge/runtime.ts`、`apps/mobile-shell/src/host-bridge/scanner.test.ts`、`apps/mobile-shell/src/host-bridge/scanner.ts`、`apps/mobile-shell/src/host-bridge/share.test.ts`、`apps/mobile-shell/src/host-bridge/share.ts`;移动 shell 层为 `apps/mobile-shell/src/shell/QrScannerOverlay.test.tsx`、`apps/mobile-shell/src/shell/QrScannerOverlay.tsx`、`apps/mobile-shell/src/shell/ShellApp.tsx`、`apps/mobile-shell/src/shell/deepLink.ts`、`apps/mobile-shell/src/shell/lifecycle.ts`、`apps/mobile-shell/src/shell/loadFailure.ts`、`apps/mobile-shell/src/shell/navigation.ts`、`apps/mobile-shell/src/shell/network.ts`、`apps/mobile-shell/src/shell/runtime.ts`、`apps/mobile-shell/src/shell/safeArea.ts`、`apps/mobile-shell/src/shell/url.ts`、`apps/mobile-shell/src/shell/webViewGlobals.d.ts`、`apps/mobile-shell/src/shell/webViewHistory.ts`、`apps/mobile-shell/src/shell/webViewPolicy.ts`;桌面入口为 `apps/desktop-shell/src-tauri/src/app.rs`、`apps/desktop-shell/src-tauri/src/main.rs`;桌面桥接层为 `apps/desktop-shell/src-tauri/src/host_bridge/appearance.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/badge.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/capabilities.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/clipboard.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/dispatch.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/file_payloads.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/files.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/mod.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/navigation.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/network.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/notifications.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/protocol.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/runtime.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/share.rs`、`apps/desktop-shell/src-tauri/src/host_bridge/title.rs`;桌面 shell 层为 `apps/desktop-shell/src-tauri/src/shell/deep_link.rs`、`apps/desktop-shell/src-tauri/src/shell/events.rs`、`apps/desktop-shell/src-tauri/src/shell/file_drop.rs`、`apps/desktop-shell/src-tauri/src/shell/lifecycle.rs`、`apps/desktop-shell/src-tauri/src/shell/mod.rs`、`apps/desktop-shell/src-tauri/src/shell/navigation.rs`、`apps/desktop-shell/src-tauri/src/shell/network.rs`、`apps/desktop-shell/src-tauri/src/shell/runtime.rs`、`apps/desktop-shell/src-tauri/src/shell/tray.rs`、`apps/desktop-shell/src-tauri/src/shell/url.rs`、`apps/desktop-shell/src-tauri/src/shell/webview.rs`、`apps/desktop-shell/src-tauri/src/shell/window_state.rs`。这些目录不得新增未登记子目录或生产入口;移动端和桌面端单端配置检查同样会拒绝未登记生产模块。 移动端结构门禁同步覆盖测试文件完整相对路径:`apps/mobile-shell/src/host-bridge/bridge.test.ts`、`apps/mobile-shell/src/host-bridge/dispatch.test.ts`、`apps/mobile-shell/src/shell/ShellApp.test.tsx`、`apps/mobile-shell/src/shell/deepLink.test.ts`、`apps/mobile-shell/src/shell/lifecycle.test.ts`、`apps/mobile-shell/src/shell/loadFailure.test.ts`、`apps/mobile-shell/src/shell/navigation.test.ts`、`apps/mobile-shell/src/shell/network.test.ts`、`apps/mobile-shell/src/shell/runtime.test.ts`、`apps/mobile-shell/src/shell/safeArea.test.ts`、`apps/mobile-shell/src/shell/url.test.ts`、`apps/mobile-shell/src/shell/webViewHistory.test.ts`、`apps/mobile-shell/src/shell/webViewPolicy.test.ts`。 @@ -110,7 +110,7 @@ Tauri 桌面壳的文件能力边界分为两层:`apps/desktop-shell/src-tauri - 微信小程序首点登录仍能打开原生登录页。 - 小程序分享链接仍生成 `/pages/web-view/index?targetPath=/works/detail&work=...`。 - 小程序支付仍跳转 `/pages/wechat-pay/index` 并保留支付结果 hash 回灌确认。 -- 小程序订阅授权仍跳转 `/pages/subscribe-message/index`,且返回不阻断生成主链路。 +- 旧玩法生成结果订阅授权页已退出小程序 `app.json` 和现役 HostBridge 能力清单,历史源码移入退役目录。 - 普通浏览器分享、H5 支付和 Native 二维码支付不受影响。 - 原生壳统一验收入口 `npm run check:native-shells` 通过,能力白名单、微信 / Expo / Tauri 共享 capability profile、HostBridge event 白名单、宿主上下文 query 契约、壳 runtime 回包、URL `hostCapabilities`、H5 fallback、微信小程序 `app.json.pages` 与 `protocol.js` 页面 URL、H5 小程序页面常量、H5 订阅授权页面常量、WebView 分享入口、分享目标消息类型、WebView source query、微信请求头来源标记、H5 路由保留字段、生产 / 开发 H5 与 API HTTPS 域名格式、三端桥接层结构、两端壳实现、Expo managed config、移动端 EAS build profile、移动端 production bundle 主站 URL、桌面 release 构建入口,以及可分发壳与 H5 HostBridge 真实调用链的临时替身词扫描没有漂移;扫描范围包含微信小程序壳生产 `.js`、Tauri `Info.plist`、共享 HostBridge 契约、H5 native transport,并自动覆盖已接入真实宿主能力 facade 的 H5 生产调用链文件。H5 业务文件允许正常表单 `placeholder` 属性、业务占位图文案和真实兼容 / 故障语义中的“未实现”“临时”表述,但不得出现 mock / fake / stub / TODO / FIXME / 模拟 / 伪造等替身痕迹。 diff --git a/docs/【协作规范】Agent工作入口与执行准则-2026-06-22.md b/docs/【协作规范】Agent工作入口与执行准则-2026-06-22.md index d93111563..d3bd16972 100644 --- a/docs/【协作规范】Agent工作入口与执行准则-2026-06-22.md +++ b/docs/【协作规范】Agent工作入口与执行准则-2026-06-22.md @@ -56,7 +56,7 @@ RAG 默认不安装运行时依赖,也不把 LanceDB、Transformers.js 或本 - 移动端优先,同时保证桌面端体验完整。 - 弹出独立面板的交互使用弹窗、抽屉、popover 或页面级 portal,不在当前面板下面追加内容。 - 页面展示以后端返回状态为准,不在前端自行计算结论型业务状态。 -- 创作入口事实源来自 SpacetimeDB,经 `/api/creation-entry/config` 下发;前端只做展示派生。 +- 现役平台入口固定为 `/creation`、`/project`、`/profile`:创作主页只读取图片编辑器项目与公开编辑器素材,个人页只复用账号、钱包和公共设置能力。旧 `/api/creation-entry/config` 及模板工作台、公开作品和专属运行态已经退役,不得因历史表仍在而恢复前端入口或后端接口。 - 优先扩展现有公共组件,例如平台弹窗、图片输入、媒体预览、状态提示和动作按钮,不在业务页复制通用逻辑。 ## 后端与数据真相 diff --git a/docs/【后端架构】server-rs与SpacetimeDB数据契约-2026-05-15.md b/docs/【后端架构】server-rs与SpacetimeDB数据契约-2026-05-15.md index 97a7e4009..a39b51f02 100644 --- a/docs/【后端架构】server-rs与SpacetimeDB数据契约-2026-05-15.md +++ b/docs/【后端架构】server-rs与SpacetimeDB数据契约-2026-05-15.md @@ -1,8 +1,8 @@ # server-rs 与 SpacetimeDB 数据契约 -> 2026-07-17 状态更新:旧创作入口、全部模板业务 API/worker/运行态及 SpacetimeDB 业务逻辑已退役。本文逐玩法路由、流程和 DTO 章节仅作为历史设计记录;相关持久化表仍按原结构作为最小 schema 数据壳编译,当前边界以 `docs/technical/【架构下线】旧创作模板业务退役方案-2026-07-17.md` 为准。 +> 2026-07-18 状态更新:旧创作入口、全部模板业务 API/worker/运行态及 SpacetimeDB 业务逻辑已退役。本文逐玩法路由、流程和 DTO 章节仅作为历史设计记录;相关持久化表仍按原结构作为最小 schema 数据壳编译,当前编译与运行边界以 `server-rs/Cargo.toml`、`server-rs/crates/api-server/src/app.rs` 和 `docs/technical/【架构下线】旧创作模板业务退役方案-2026-07-17.md` 为准。 -更新时间:`2026-07-17` +更新时间:`2026-07-18` ## 后端主线 @@ -22,13 +22,15 @@ SpacetimeDB 版本口径:当前 Rust crate `spacetimedb`、`spacetimedb-sdk` 当前主要 crate: -- HTTP 服务:`api-server`。 -- 领域模块:`module-ai`、`module-assets`、`module-auth`、`module-bark-battle`、`module-big-fish`、`module-combat`、`module-creative-agent`、`module-editor-agent`、`module-custom-world`、`module-inventory`、`module-match3d`、`module-npc`、`module-progression`、`module-puzzle`、`module-quest`、`module-runtime`、`module-runtime-item`、`module-runtime-story`、`module-square-hole`、`module-story`、`module-visual-novel`。 -- 平台副作用:`platform-agent`、`platform-auth`、`platform-image`、`platform-llm`、`platform-matting`、`platform-oss`、`platform-wechat`、`platform-speech`。 +- HTTP 与运维入口:`api-server`、`pingora-gateway`、`server-manager-panel`。 +- 现役领域模块:`module-ai`、`module-assets`、`module-auth`、`module-editor-agent`、`module-runtime`。`module-runtime` 继续承载账号、钱包、公共设置、追踪、功能门禁等现役平台领域能力;该 crate 名称不代表旧玩法 runtime 路由仍在运行。 +- 平台副作用:`platform-agent`、`platform-auth`、`platform-audio`、`platform-hyper3d`、`platform-image`、`platform-llm`、`platform-matting`、`platform-oss`、`platform-speech`、`platform-wechat`。 - 共享层:`shared-contracts`、`shared-kernel`、`shared-logging`。 - SpacetimeDB:`spacetime-client`、`spacetime-module`。 - 测试支撑:`tests-support`。 +`server-rs/Cargo.toml` 的 `exclude` 中所列旧玩法纯业务 crate 仅保留源码,不是 workspace member、default member 或现役依赖。 + ## DDD 边界 1. `module-*` 不直接依赖 Axum、SpacetimeDB table/reducer/procedure、`reqwest`、OSS、LLM、`spacetime-client`、`tokio` 或文件系统。 @@ -37,7 +39,7 @@ SpacetimeDB 版本口径:当前 Rust crate `spacetimedb`、`spacetimedb-sdk` 4. 后端访问 SpacetimeDB 必须经 `spacetime-client` facade。 5. HTTP 鉴权、BFF 聚合、SSE、外部模型编排、OSS 上传和第三方回调在 `api-server`。 6. 前端共享 DTO 通过 `shared-contracts` 和 `packages/shared` 对齐,不在页面内重新发明旧接口;`packages/shared` 还可复用无业务真相的 UI 组件和纯工具,领域规则、后端副作用与正式状态仍留在各自分层。 -7. 微信能力按两层收口:`server-rs/crates/platform-wechat` 承载微信协议 client、订阅消息 `stable_token` / `subscribeMessage.send`、微信支付 V3 / 虚拟支付消息推送的 HTTP header、签名、验签、解密、mock 响应和协议 payload 解析;`server-rs/crates/api-server/src/wechat.rs` 与 `wechat/*` 承载 Axum handler、AppConfig 到平台配置的映射、Genarrative 用户 / 订单 / 钱包 / SSE / 错误 envelope 编排。`platform-auth` 当前仍承载微信 OAuth / 小程序登录 provider 协议,`api-server::wechat::provider` 只作为组合根 adapter,不在业务 handler 内散落 provider 构造。 +7. 微信能力按两层收口:`server-rs/crates/platform-wechat` 承载现役微信支付 V3 / 虚拟支付查单和发货确认的 HTTP header、签名、验签、解密、mock 响应和协议 payload 解析;`server-rs/crates/api-server/src/wechat.rs` 与 `wechat/*` 承载 Axum handler、AppConfig 到平台配置的映射、Genarrative 用户 / 订单 / 钱包 / SSE / 错误 envelope 编排。`platform-auth` 当前仍承载微信 OAuth / 小程序登录 provider 协议,`api-server::wechat::provider` 只作为组合根 adapter,不在业务 handler 内散落 provider 构造。旧玩法生成结果订阅消息服务不再参与编译。 验证: @@ -47,36 +49,26 @@ npm run check:server-rs-ddd ## `spacetime-client` mapper 组织 -`server-rs/crates/spacetime-client/src/mapper.rs` 只作为聚合入口,负责声明 `src/mapper/` 下的领域子模块并 re-export 原有 record / mapper 能力;不要在该文件继续堆叠大段映射实现。 +`spacetime-client` 的 Cargo `lib.path` 指向 `src/active.rs`,现役 mapper 聚合入口是 `src/active/mapper.rs`;原 `src/mapper.rs` 及旧玩法 mapper 源码仅供历史追溯,不参与 crate 编译。 -当前子模块按调用领域拆分:`assets.rs`、`auth.rs`、`runtime.rs`、`runtime_profile.rs`、`custom_world.rs`、`puzzle.rs`、`match3d.rs`、`jump_hop.rs`、`wooden_fish.rs`、`square_hole.rs`、`visual_novel.rs`、`big_fish.rs`、`story.rs`、`ai.rs`、`bark_battle.rs`、`combat.rs`、`inventory.rs`、`npc.rs`,跨领域轻量 helper 和共享 record 统一放在 `common.rs`。该拆分只改变 `spacetime-client` 文件组织,不改变 SpacetimeDB schema、生成绑定、procedure result 契约或外部 DTO;后续新增 mapper 时优先落到对应领域子模块,不得重新引入跨层 JSON 字符串兼容结构。 +当前 mapper 按现役调用领域拆分为 `admin_account.rs`、`admin_dashboard.rs`、`ai.rs`、`assets.rs`、`auth.rs`、`editor_agent.rs`、`editor_project.rs`、`external_api_key.rs`、`external_generation.rs`、`runtime.rs` 和 `runtime_profile.rs`;`story.rs` 只承接必要的历史资产记录兼容映射,不恢复旧故事业务 facade。跨领域轻量 helper 和共享 record 放在 `common.rs`;不得重新引入旧玩法 mutation 或跨层 JSON 兼容结构。 ## API 路由分组 路由树由 `server-rs/crates/api-server/src/app.rs` 统一构造。当前主要分组: -- 健康检查:`GET /healthz`。 -- 后台管理:`/admin/api/*`,包括登录、Dashboard 运营看板、概览、HTTP debug、埋点、表查询、精选审核、素材查询、创作入口开关、作品互动配置、作品可见性、兑换码、邀请码、任务配置、充值商品配置和后台账号管理。环境变量管理员固定作为 owner,持久化 member 每次请求按当前 `enabled`、`token_version` 和一级 Tab 权限实时校验;账号管理仅 owner 可访问,未登记权限映射的新后台路由对 member 默认拒绝。完整权限矩阵见 [`docs/technical/【后台管理】多账号与Tab访问权限方案-2026-07-14.md`](./technical/【后台管理】多账号与Tab访问权限方案-2026-07-14.md),Dashboard 指标口径见 [`docs/technical/【后台管理】Dashboard运营看板方案-2026-06-23.md`](./technical/【后台管理】Dashboard运营看板方案-2026-06-23.md)。 +- 健康检查:`GET /healthz`、`GET /readyz`。 +- 后台管理:`/admin/api/*`,现役路由包括登录与账号管理、Dashboard / 概览、HTTP debug、埋点、表查询、通用 feature gate、编辑器定价与素材 / 精选管理,以及账号侧兑换码、邀请码、任务、钱包、充值与退款管理;不再挂载旧创作入口配置、旧作品互动或旧玩法运营路由。环境变量管理员固定作为 owner,持久化 member 每次请求按当前 `enabled`、`token_version` 和一级 Tab 权限实时校验;账号管理仅 owner 可访问,未登记权限映射的新后台路由对 member 默认拒绝。完整权限矩阵见 [`docs/technical/【后台管理】多账号与Tab访问权限方案-2026-07-14.md`](./technical/【后台管理】多账号与Tab访问权限方案-2026-07-14.md),Dashboard 指标口径见 [`docs/technical/【后台管理】Dashboard运营看板方案-2026-06-23.md`](./technical/【后台管理】Dashboard运营看板方案-2026-06-23.md)。 - 认证与账号:`/api/auth/*`、`/api/profile/me`,包括短信、密码、微信、refresh session、多端会话和登出。 - 个人中心:`/api/profile/*`,包括钱包流水、任务、领奖、充值、反馈、邀请和兑换等账号侧能力。 - 平台基础能力:`/api/llm/*`、`/api/speech/volcengine/*`,只保留通用 LLM 和语音代理。 -- 资产基础能力:`/api/assets/direct-upload-tickets`、`/api/assets/sts-upload-credentials`、`/api/assets/objects/*`、`/api/assets/read-url`、`/api/assets/read-bytes`,负责直传、确认、绑定和读取。两个读取入口共用同一授权函数,并通过受 runtime service identity 限制的 procedure 在同一事务快照内按配置 bucket 与精确 key 权威查询 `asset_object`、计算公开作品或公开精选派生授权;不得把任意连接的订阅 cache miss 或命中解释为当前授权真相。一旦存在 metadata,即使 key 命中 legacy 前缀,也必须按 `PublicRead`、当前登录 owner、同 owner 的公开作品派生授权,或同 owner 且已通过、已展示、返还完成的 `editor_showcase_asset` 精确授权读取;只有同 bucket / key 的权威查询确认未登记时,才允许显式 `legacyPublicPath` 命中 `platform_oss::LEGACY_PUBLIC_PREFIXES` curated 白名单后匿名兼容。已登记资产继续保持 `private`,公开作品和公开精选只获得与正式公开快照生命周期一致的精确派生读授权,不得批量改为 `PublicRead` 或放开 `generated-*` 前缀。任意未登记 `objectKey`、跨 owner 和未获授权的匿名私有读取统一返回不存在,`read-bytes` 不得成为绕过 `read-url` 授权的同源代理;公开派生授权、`PublicRead` 和 legacy 兼容读取签发的 URL 统一限制为最长 600 秒,owner / admin 读取保持原有有效期口径。 +- 资产基础能力:`/api/assets/direct-upload-tickets`、`/api/assets/sts-upload-credentials`、`/api/assets/objects/*`、`/api/assets/read-url`、`/api/assets/read-bytes`,负责直传、确认、绑定和读取。两个读取入口共用同一授权函数,并通过受 runtime service identity 限制的 procedure 在同一事务快照内按配置 bucket 与精确 key 权威查询 `asset_object`、计算现役编辑器精选素材派生授权;不得把任意连接的订阅 cache miss 或命中解释为当前授权真相。一旦存在 metadata,即使 key 命中 legacy 前缀,也必须按 `PublicRead`、当前登录 owner,或同 owner 且已通过、已展示、返还完成的 `editor_showcase_asset` 精确授权读取;旧创作模板作品不再形成资产读取授权。只有同 bucket / key 的权威查询确认未登记时,才允许显式 `legacyPublicPath` 命中 `platform_oss::LEGACY_PUBLIC_PREFIXES` curated 白名单后匿名兼容。已登记资产继续保持 `private`,公开精选只获得与正式展示快照生命周期一致的精确派生读授权,不得批量改为 `PublicRead` 或放开 `generated-*` 前缀。任意未登记 `objectKey`、跨 owner 和未获授权的匿名私有读取统一返回不存在,`read-bytes` 不得成为绕过 `read-url` 授权的同源代理;精选派生授权、`PublicRead` 和 legacy 兼容读取签发的 URL 统一限制为最长 600 秒,owner / admin 读取保持原有有效期口径。 - 外部 OpenAPI:`/api/external/v1/openapi.json`、`/api/external/v1/assets/direct-upload-tickets`、`/api/external/v1/assets/objects/confirm`、`/api/external/v1/assets/read-url`、`/api/external/v1/editor/*`,使用 Bearer API Key 鉴权;API Key 管理仍在登录态 `/api/profile/api-keys`,不进入外部 OpenAPI JSON。主站和 External 的 asset object confirm 都必须从已认证主体派生 owner,不能信任请求体 owner;同 bucket / key 已登记后不得改变 owner。 -- 创作 / 游玩支撑能力:`/api/creation-entry/config`、`/api/ai/tasks*`、`/api/runtime/frontend-config`、`/api/runtime/chat/*`、`/api/runtime/settings`、`/api/runtime/save/snapshot`、`/api/profile/browse-history`、`/api/profile/save-archives*`、`/api/profile/play-stats`、`/api/assets/history`、`/api/assets/character-visual/*`、`/api/assets/character-animation/*`、`/api/assets/character-workflow-cache*`、`/api/assets/hyper3d/*`、`/api/runtime/custom-world/asset-studio/*`、`/api/editor/projects*`、`/api/editor/projects/{projectId}/agent-conversations`、`/api/editor/agent-conversations/{conversationId}*`。`/api/runtime/frontend-config` 由 `api-server` 从运行时环境变量下发非敏感 UI 开关;画板右侧 Agent 入口由 `GENARRATIVE_ENABLE_IMAGE_EDITOR_AGENT_SIDEBAR` 控制,默认关闭,前端不再读取 `VITE_*` 构建期变量决定生产显示。`/api/runtime/custom-world/asset-studio/*` 解析默认角色形象 / 动作提示词时可以在 OSS 缓存不可用或未配置时按无缓存返回默认提示;保存 workflow 缓存和真实素材读写仍必须要求 OSS 正常可用。 -- 后台入口配置:`/admin/api/creation-entry/config`、`/admin/api/creation-entry/config/banners` 和 `/admin/api/creation-entry/config/interactions`。 +- 编辑器与素材生成:`/api/editor/projects*`、`/api/editor/assets*`、`/api/editor/showcase/*`、`/api/editor/*/generations`、`/api/editor/images/*`、`/api/editor/icon-spritesheets/*`、`/api/editor/ui-designs/*`,以及编辑器 Agent 会话路由。通用任务与素材支撑另保留 `/api/ai/tasks*`、`/api/assets/history`、`/api/assets/character-visual/*`、`/api/assets/character-animation/*`、`/api/assets/character-workflow-cache*` 和 `/api/assets/hyper3d/*`。 +- 现役 runtime 前缀公共能力:`GET /api/runtime/frontend-config`、鉴权的 `GET/PUT /api/runtime/settings` 以及鉴权的 `/api/runtime/external-generation/*`。这些分别承载非敏感前端开关、账号级公共设置和外部生成队列观测 / 确认,路径保留 `runtime` 前缀不代表旧玩法运行态恢复。`/api/runtime/frontend-config` 由 `api-server` 从运行时环境变量下发非敏感 UI 开关;画板右侧 Agent 入口由 `GENARRATIVE_ENABLE_IMAGE_EDITOR_AGENT_SIDEBAR` 控制,默认关闭。 +- 公共设置数据链:`GET/PUT /api/runtime/settings` 从 access token 取得 `user_id`,经 `spacetime-client` facade 调用 `get_runtime_setting_or_default` / `upsert_runtime_setting_and_return`,读写现役 `runtime_setting` 表的 `music_volume` 和 `platform_theme`。该表不是历史数据壳,也不得为保留它而恢复任何旧存档、游玩历史或玩法 settings 路由。 - 后台素材查询:`GET /admin/api/editor-assets` 通过 `admin_list_editor_assets_and_return` 后台只读 procedure 读取私有账号级 `editor_asset` 中 `source_type = 'generated'` 的素材,支持 `ownerUserId`、`keyword`、`createdAfter`、`createdBefore`、`cursor` 和 `limit`;`ownerUserId` 接受内部用户 ID 或精确陶泥号,精确 `SY-*` keyword 也会在调用 procedure 前经认证服务解析成内部 `user_id`,未知陶泥号直接返回空列表。带 owner 条件时 procedure 直接走 `by_editor_asset_owner_user_id`,再按任务分组并以最终产物父项分页;响应中每个父项通过 `children` 携带可展开的中间产物,子项各占一行而不单独占分页名额。手动重拆图集保留真实 `editor-atlas-split-*` `task_id`;来源任务只能通过私有 provenance 由服务端生成账号素材的 source resource / asset object / Object Key 推导,再写入 `group_task_id`,不能信任素材库兼容推断值或普通资源创建接口可提交的 `task_id/asset_kind`;procedure 只有当前 editor generation runtime service identity 才能写入归组与完成事实。没有可信来源的现代拆分显式归到自身任务,不进入 legacy 回溯。每个切片同时写入 `group_task_expected_asset_count`,全部预期 asset ID 成功落库并逐行校验后写入不可逆 cohort 完成事实;read model 只让具有完成事实的一个拆分批次并入原图集父项,用户后来删除单片不会改变初始完成状态,部分失败批次与后续重复拆分按真实任务独立分页,避免残缺批次抢占根任务、单组无限增长或丢素材。历史行兼容沿项目资源链回溯,删除项目时只固化直接引用待删资源且尚未固化的历史行,持久化真实来源任务,不把有界展示 ID 反写覆盖来源。父项返回任务生成器和任务总成本,子项返回阶段生成器和阶段成本。provider 原图 / 角色动作预览承载模型生成成本,抠图、逐帧处理、透明图集和切片成本为 0;中间产物使用所属任务真实 `asset_kind`,不再新写 `editor_green_screen_source`,历史旧值只在 read model 中按 Object Key 映射为 `character`、`icon-spritesheet` 或 `character-animation` 并把旧任务成本只读归回 provider 原始产物。游标固定由父任务微秒时间和素材 ID 组成,API 必须同时识别整数微秒、`seconds.microsZ` 与 RFC3339 时间文本;内部时间无法编码时返回服务错误,不得静默返回 `nextCursor = null`。接口只用于查询,不提供分类筛选,也不执行精选审核、返还或展示状态修改,不通过后台 SQL 直查私有表。图片放大、视频和音频预览统一调用仅后台管理员会话可访问的 `GET /admin/api/assets/read-url`;该入口仅为预览允许后台跨 owner 签名,不改变主站 `/api/assets/read-*` 或 External API 的 owner 边界。成功换签后必须写入 `event_key = admin_asset_read_url` 的 `tracking_event`,记录管理员 subject、Object Key / legacy path 和有效期,不记录 signed URL。 -- 自定义世界 / RPG:`/api/runtime/custom-world*`、`/api/story/*`、`/api/runtime/chat/*`。 -- 拼图:`/api/runtime/puzzle/*`。 -- 抓大鹅 Match3D:`/api/creation/match3d/*`、`/api/runtime/match3d/*`。 -- 敲木鱼:`/api/creation/wooden-fish/*`、`/api/runtime/wooden-fish/*`。 -- 方洞挑战:`/api/creation/square-hole/*`、`/api/runtime/square-hole/*`。 -- 视觉小说:`/api/creation/visual-novel/*`、`/api/runtime/visual-novel/*`。 -- 大鱼吃小鱼:`/api/runtime/big-fish/*`。 -- 跳一跳:`/api/creation/jump-hop/*`、`/api/runtime/jump-hop/*`。 -- 汪汪声浪:`/api/runtime/bark-battle/*`。 -- 儿童向创作:`/api/creation/edutainment/*`。 - -需要新增路由时,先确认玩法入口配置和 tracking 分类,不要绕过 `app.rs` 的统一中间件、鉴权和入口开关。涉及创作、生成、作品、公开详情、试玩、正式运行态、运行态库存、运行态设置 / 存档、游玩历史、存档归档、游玩统计、AI task、角色资产工坊或玩法生成支撑资产的路由,不再直接在 `app.rs` 逐玩法 `.merge(...)`,也不挂到 `modules/platform.rs`;必须先进入 `server-rs/crates/api-server/src/modules/play_flow.rs` 的统一玩法流程主干,再由主干注册表分发到各领域 HTTP Adapter 或支撑能力 handler。 +现役路由只以 `app.rs::build_router` 实际 `.merge(...)` 的 module 和支付回调为准。`modules/` 中仍保留但未被 `app.rs` 声明 / 合并的 RPG、拼图、Match3D、敲木鱼、方洞、视觉小说、大鱼、跳一跳、汪汪声浪、儿童向、旧公开作品与 `play_flow` 源码都是历史追溯材料,不得由新的 `.merge(...)`、handler 转发或兼容 router 重新挂载。`/api/creation-entry/config`、`/admin/api/creation-entry/config*`、旧 `/api/creation/*`、旧 `/api/runtime//*`、旧存档 / 游玩历史 / 公开作品路由均不是现役 API。新增公共路由仍必须经 `app.rs` 的统一中间件、鉴权、背压、埋点与可观测边界。 ### 图片画布 Agent 对话 @@ -89,6 +81,8 @@ npm run check:server-rs-ddd ### 创作 / 游玩统一流程主干 +> 历史设计记录:本节所述 `play_flow` 和逐玩法 Adapter 已退役,不代表当前 `app.rs` 路由树。 + `modules/play_flow.rs` 是后端创作与游玩流程的统一入口。现有外部 URL、DTO、错误 envelope、鉴权方式、入口开关语义和 SpacetimeDB schema 默认不变,但路由组织必须遵循: 1. `app.rs` 只合并 `modules::play_flow::router(state)`,不直接合并 RPG、拼图、抓大鹅、跳一跳、敲木鱼、拼消消、汪汪声浪、视觉小说或儿童向创作等逐玩法模块。 @@ -283,6 +277,7 @@ npm run check:server-rs-ddd - Rust 结构体:`ExternalGenerationJob` - 源码:`server-rs/crates/spacetime-module/src/external_generation.rs` +- 现役覆盖:worker claim 只允许 `source_module = editor-canvas`;下述逐玩法生成和写回描述均为退役前历史。历史 pending / running 行继续保留原状态,不得领取、失败收口或改写 payload。 - 用途:外部生成 worker 的内部持久任务队列;`GENARRATIVE_EXTERNAL_GENERATION_MODE=queue` 时,`api-server` HTTP 角色只入队,`external-generation-worker` 角色通过 claim lease 领取、续租、执行,并用 `lease_token` 栅栏回写阶段、完成 / 失败。队列行继续保存 worker 执行、计费与滚动发布兼容所需字段,末尾可选 `phase` 只取 `generating / processing`;claim 写 `generating`,真实进入抠图处理时由受 `job_id + worker_id + lease_token` 保护的 procedure 写 `processing`。phase procedure 以结构化结果区分 `LeaseFencingRejected` 与 `OtherRejected`;`LeaseFencingRejected` 立即终止,`OtherRejected` 以及 SDK 的 `Procedure` / `Runtime` 错误不重试,只有 `Build` / `ConnectDropped` / `Timeout` 在同一个 job attempt 内重试一次。该重试只重新上报 phase,不把任务写回 `pending`,也不重新调用 provider;编辑器 job 入队固定 `max_attempts=1`,第二次传输失败后任务进入 `failed`,不会回到 `pending` 或从 provider 生成起点重跑。用户可见任务列表、价格、状态、阶段、未确认终态数量和通知确认时间的正式读取事实源已经迁到 `external_generation_job_summary`;BFF 不得再为列表 / 详情 / acknowledge 读取该大表。拼图 `compile_puzzle_draft` 的前置 `compile_puzzle_agent_draft`、`generate_puzzle_images` 与 `generate_puzzle_ui_background` 的业务写回也在对应 SpacetimeDB transaction 内校验 `job_id + worker_id + lease_token`、job kind、owner 和 source entity,避免过期 worker 写 session / work profile;图片画布编辑器的 `editor_image_generation`、`editor_image_edit`、`editor_background_removal`、`editor_icon_spritesheet_generation`、`editor_ui_design_asset_extraction`、`editor_character_animation_generation`、`editor_video_generation`、`editor_sound_effect_generation` 和 `editor_background_music_generation` 复用同一队列表,worker 成功后经 `api-server` facade 写入 `editor_project_resource` / `editor_asset` / `editor_canvas.layers_json`,前端只通过 BFF job 状态轮询和项目快照读取恢复完成态。`GENARRATIVE_EXTERNAL_GENERATION_MODE=inline` 时不创建该队列行,三个 external generation guard 字段必须同时为空才允许 api-server 受控同步写回,半空 guard 仍会拒绝。worker 成功写回业务事实后才能 complete job;业务失败态写回成功后才能 fail job,失败态未写回时保留租约等待后续重领。 - 载荷约束:本次先对 `source_module = editor-canvas` 的 `request_payload_json` / `result_payload_json` 实施有限大小合法 JSON、任意层级禁止 `data:` / `blob:` 的双层门禁,只保存 worker 执行必需的普通参数和已登记媒体引用;其它玩法在完成各自参考图资源化之前不由本次门禁静默改变既有请求契约。该主表只供 worker claim / 执行和受控维护读取;正式用户任务列表、单任务状态、队列概览与 acknowledge 不得再返回或解析这两个 payload。 - 非阻断告警:角色形象、图标图集和 UI 素材提取已保存 provider 原图、但透明背景处理最终失败时,以原图唯一主图完成任务;透明图和切片不写入画布。这个 source-only 降级只包住透明背景处理的最终失败,phase 上报、provider 原图持久化、透明处理图持久化或画布写回失败仍按任务错误传播。图标 / UI 透明图集成功但自动拆分降级时仍保留透明图集;通用 `warning` 与 `sliceWarning` 互斥。两类成功降级都以既有 `completed` 状态收口,不新增状态值:source-only 的 inline / external v1 响应使用结构化 `warning.code/reason`,仅拆分失败的 inline / external v1 响应继续使用既有 `sliceWarning.code/reason`,其 `reason` 保留原始诊断;queue worker 才把两者归一为有界的 `result_payload_json.warning`,且通用 `warning` 优先并原样保留完整 `reason`,只有 `sliceWarning.reason` 由 worker 添加“图集已生成,但自动拆分未完成:”前缀。队列结果不保存图片、切片列表或媒体 URL。 @@ -325,14 +320,13 @@ npm run check:server-rs-ddd - Rust 结构体:`AssetObject` - 源码:`server-rs/crates/spacetime-module/src/asset_metadata/objects.rs` -- 说明:对象 metadata 以 bucket / key 标识正式对象及其 owner、访问策略。确认接口的 owner 必须来自登录会话或 External API Key 绑定的认证主体,不接受请求体指定 owner;同 bucket / key 首次登记后,重复 confirm 不得改变 owner。已登记对象默认并继续保持 `private`。API 通过 `get_asset_object_by_location_and_return` / `get_asset_object_by_id_and_return` 在服务端索引上权威查询 private table;资产读取 ACL 使用 `get_asset_read_access_by_location_and_return` 在同一事务快照内同时返回位置查询与公开作品派生授权,procedure 只允许 runtime service identity 调用。授权判断先取得资产 owner,再按各玩法现有 owner 索引定向扫描该作者公开作品,并仅对候选 `asset_object_id` / 精确 `object_key` grant ID 做匹配,不得为每张图片生成全站公开作品 grant 列表。`spacetime-client` 不订阅全量 `asset_object`,也不把公开资产授权 view 的连接级 cache 当成安全判断。位置查询发现重复 bucket / key 时失败关闭,不能任选一条继续授权。只有权威位置查询返回不存在的历史对象才能进入 curated legacy 白名单兼容。 +- 说明:对象 metadata 以 bucket / key 标识正式对象及其 owner、访问策略。确认接口的 owner 必须来自登录会话或 External API Key 绑定的认证主体,不接受请求体指定 owner;同 bucket / key 首次登记后,重复 confirm 不得改变 owner。已登记对象默认并继续保持 `private`。API 通过 `get_asset_object_by_location_and_return` / `get_asset_object_by_id_and_return` 在服务端索引上权威查询 private table;资产读取 ACL 使用 `get_asset_read_access_by_location_and_return` 在同一事务快照内同时返回位置查询与现役 `editor_showcase_asset` 精选素材派生授权,procedure 只允许 runtime service identity 调用。旧创作模板作品授权 view 和逐玩法资产采集器已经退出 module;`spacetime-client` 不订阅全量 `asset_object`,也不把连接级 cache 当成安全判断。位置查询发现重复 bucket / key 时失败关闭,不能任选一条继续授权。只有权威位置查询返回不存在的历史对象才能进入 curated legacy 白名单兼容。 ### SpacetimeDB view:`public_work_asset_read_grant` -- Rust view:`public_work_asset_read_grant` -- 返回类型:`Vec` -- 源码:`server-rs/crates/spacetime-module/src/public_asset_access.rs` -- 说明:匿名公开派生授权投影,仅从 `Published + visible` 作品(`custom-world` 还必须满足未删除)的正式发布快照收集实际使用的已登记资产。每条 grant 都携带作品 owner,读取时必须与 `asset_object.owner_user_id` 一致,并且只能按 `asset_object_id` 或精确 `object_key` 命中;跨 owner、同前缀或相似 key 不构成授权。历史公开作品由 view 现算自动补齐;资产读取 procedure 与 view 复用同一套玩法资产采集器,但安全判断按资产 owner 索引定向计算,不执行全站 view。作品隐藏、删除或取消发布提交后,后续事务立即拒绝授权。已签发的公开 URL 最长保留 600 秒,能力本身不承诺撤销已经签出的 OSS URL。投影明确排除参考图、未选中候选图和 `generationInputs`;Custom World 只扫描角色、地标、营地、章节和 opening CG 等正式根,不递归 legacy payload 未知字段,避免把预览、编辑输入或同会话其他私有资产扩大为公开资产。 +- 状态:已退役,不再注册到 `spacetime-module`,也不再生成客户端绑定。 +- 历史源码:`server-rs/crates/spacetime-module/src/public_asset_access.rs`,仅供追溯,不参与现役 crate 根。 +- 现役替代:资产读取 procedure 只计算 `editor_showcase_asset` 精选素材的精确授权;历史作品表继续作为数据壳保留,但不再导出公开作品资产授权。 ### `auth_identity` @@ -1004,6 +998,10 @@ npm run check:server-rs-ddd ### api-server 长期订阅读模型 +> 现役覆盖:`spacetime-client` 不再把旧创作入口配置、公开作品聚合表或逐玩法 gallery view 作为连接池必需订阅。`REQUIRED_CACHED_READ_MODEL_QUERIES` 当前为空,`user_account` 仅作为认证兼容所需的可选缓存。新版 `/creation` 的公开内容通过 `GET /api/editor/showcase/resources` 读取编辑器精选 read model;旧作品、入口配置和玩法统计表只保留 schema 数据壳,不再形成订阅 cache、BFF 路由或前端契约。 + +#### 退役前历史订阅清单 + `spacetime-client` 建立每个池连接时会等待下列订阅初始同步: - `SELECT * FROM public_work_gallery_entry` @@ -1040,7 +1038,7 @@ private `asset_object` 不进入长期订阅;安全判断通过受限 procedur RPG 创作入口的配置 ID 是 `rpg`,当前 `visible=true`、`open=true`;历史 `custom-world` 路由仍是 RPG 的工程域与运行态源类型。入口熔断把 `/api/runtime/custom-world*`、`/api/story/*` 和 `/api/runtime/chat/*` 统一映射到 `rpg`,不要新增平行 `airp` 路由或用 `airp` 接管当前文字冒险链路。 -结构化创作和 RPG 的 LLM JSON 链路默认不启用 Responses `web_search`;只有在明确需要联网增强时,才通过 `GENARRATIVE_RPG_LLM_WEB_SEARCH_ENABLED` 或 `GENARRATIVE_CREATION_AGENT_LLM_WEB_SEARCH_ENABLED` 显式打开。否则未开通工具的上游会先吐自然语言再返回 `ToolNotOpen`,这类失败要按上游工具不可用处理,不要误判成模型返回结果解析失败。 +旧结构化创作和 RPG 的 LLM JSON 链路及其 Responses `web_search` 配置已退出 api-server 编译目标;不得为历史源码恢复 `GENARRATIVE_RPG_LLM_WEB_SEARCH_ENABLED` 或 `GENARRATIVE_CREATION_AGENT_LLM_WEB_SEARCH_ENABLED`。 统一公开作品 BFF 路由是 `GET /api/public-works` 与 `GET /api/public-works/{publicWorkCode}`,响应契约由 `shared-contracts::public_work` 和 `packages/shared/src/contracts/publicWork.ts` 共同维护。前端首期仍走 BFF HTTP,不直接订阅 SpacetimeDB;后续若允许浏览器直连订阅,也只能订阅 `public_work_gallery_entry` / `public_work_detail_entry` 这类稳定公开 read model,不能订阅 `puzzle_work_profile`、`custom_world_profile` 等源表后自行拼装列表。设计细节见 `docs/technical/【后端架构】统一公开作品ReadModel设计-2026-05-26.md`。 - 字段变更:`visible` 控制是否进入公开列表 / 详情,新作品默认 `false`;旧迁移数据由 `migration.rs` 按历史公开默认补 `true`。 @@ -1063,7 +1061,8 @@ RPG 创作入口的配置 ID 是 `rpg`,当前 `visible=true`、`open=true`; ### `runtime_setting` - Rust 结构体:`RuntimeSetting` -- 源码:`server-rs/crates/spacetime-module/src/runtime/settings.rs` +- 源码:`server-rs/crates/spacetime-module/src/runtime/active/settings.rs` +- 说明:这是现役账号级公共设置表,保存 `music_volume` 与 `platform_theme`,不是旧玩法运行态数据壳。表结构与历史数据保持不变;鉴权后的 `GET/PUT /api/runtime/settings` 只能经 `spacetime-client` facade 调用 `get_runtime_setting_or_default` 与 `upsert_runtime_setting_and_return` procedure 读写,不从连接订阅 cache 或前端本地状态伪造正式设置事实。 ### `runtime_snapshot` diff --git a/docs/【开发运维】本地开发验证与生产运维-2026-05-15.md b/docs/【开发运维】本地开发验证与生产运维-2026-05-15.md index 9903561f0..c9240fd14 100644 --- a/docs/【开发运维】本地开发验证与生产运维-2026-05-15.md +++ b/docs/【开发运维】本地开发验证与生产运维-2026-05-15.md @@ -57,9 +57,9 @@ Windows 本地如果已在 `%LOCALAPPDATA%\Genarrative\ffmpeg\bin` 安装 FFmpeg 开发态 `npm run dev` 与 `npm run dev:api-server` 会默认注入 `GENARRATIVE_DEV_PASSWORD_ENTRY_AUTO_REGISTER_ENABLED=true` 和 `GENARRATIVE_PROCESS_ROLE=all`,因此密码登录在本地开发环境可直接注册未知手机号账号,且本地 `api-server` 会同时监听 HTTP 并消费外部生成队列;显式设置 `GENARRATIVE_PROCESS_ROLE` 时保留显式值。Linux 本地默认 `all` 角色启动前,dev 脚本会停止当前仓库、同一个 SpacetimeDB server / database 下遗留的 `GENARRATIVE_PROCESS_ROLE=external-generation-worker` 进程,避免旧 worker 二进制继续抢同一条队列并在业务写回时制造 procedure 超时;显式拆分 `api` / `external-generation-worker` 做生产式验证时不会触发这项清理。生产环境仍按 `api-server` 配置默认关闭密码自动注册,并由独立 worker 进程消费队列。 -本地排查外部内容生成 worker 队列时,默认同一 Rust 进程同时监听 HTTP 并消费 `external_generation_job` 队列;更接近生产的验证应分别启动 `api`、`external-generation-worker` 和 `external-generation-controller`。生产默认 `GENARRATIVE_PROCESS_ROLE=api`,外部生成任务由独立 `GENARRATIVE_PROCESS_ROLE=external-generation-worker` 进程消费;生产与容器扩缩容验证保持 `queue`。当前进入持久队列的外部生成动作包括:拼图 `compile_puzzle_draft` / `generate_puzzle_images` / `generate_puzzle_ui_background`,跳一跳 `compile-draft` / `regenerate-tiles`,拼消消 `compile-draft` / `regenerate-atlas`,敲木鱼 `compile-draft` / `regenerate-hit-object`,以及图片画布 `editor_image_generation` / `editor_image_edit` / `editor_background_removal` / `editor_icon_spritesheet_generation` / `editor_ui_design_asset_extraction` / `editor_character_animation_generation` / `editor_video_generation` / `editor_sound_effect_generation` / `editor_background_music_generation`。非外部 provider 生成动作继续 inline,不进入队列。显式把本地进程角色设为 `api` 且没有 worker 时,HTTP 只返回 queued/running,不会兜底执行外部 provider。 +本地排查外部内容生成 worker 队列时,默认同一 Rust 进程同时监听 HTTP 并消费 `external_generation_job` 队列;更接近生产的验证应分别启动 `api`、`external-generation-worker` 和 `external-generation-controller`。生产默认 `GENARRATIVE_PROCESS_ROLE=api`,外部生成任务由独立 `GENARRATIVE_PROCESS_ROLE=external-generation-worker` 进程消费;生产与容器扩缩容验证保持 `queue`。当前 worker 只领取 `source_module = editor-canvas` 的图片画布任务,包括 `editor_image_generation`、`editor_image_edit`、`editor_background_removal`、`editor_icon_spritesheet_generation`、`editor_ui_design_asset_extraction`、`editor_character_animation_generation`、`editor_video_generation`、`editor_sound_effect_generation` 和 `editor_background_music_generation`。旧玩法历史任务即使仍为 pending / running 也不领取、不改状态;显式把本地进程角色设为 `api` 且没有 worker 时,现役编辑器生成请求只返回 queued/running,不会兜底执行外部 provider。 -HTTP 角色的 `GENARRATIVE_SPACETIME_POOL_SIZE` 只表示 procedure / reducer 调用池大小;池连接不订阅 read model。HTTP 角色会额外创建 1 条共享缓存读连接,统一保存公开读模型、近期游玩统计、创作入口配置和用户标签等订阅行,因此配置为 `8` 时基础连接拓扑是 8 条调用连接加 1 条缓存读连接。`/readyz` 同时检查调用池与缓存读连接的 required subscriptions,缓存未准备好时不能放量。 +HTTP 角色的 `GENARRATIVE_SPACETIME_POOL_SIZE` 只表示 procedure / reducer 调用池大小;池连接不订阅 read model。HTTP 角色会额外创建 1 条共享缓存读连接,当前只保留可选的 `user_account` 读取;配置为 `8` 时基础连接拓扑是 8 条调用连接加 1 条缓存读连接。`/readyz` 同时检查调用池与缓存读连接,缓存连接未准备好时不能放量。 生产拆分角色时,`external-generation-worker` 和 `external-generation-controller` 的专属 env 示例会把 `GENARRATIVE_SPACETIME_POOL_SIZE` 覆盖为 `1`;非 HTTP 角色不创建 API 缓存读连接,只保留 `external_generation_job` 队列窄订阅作为响应式唤醒信号,实际抢占和扩缩容判断仍走 SpacetimeDB procedure。worker / controller 不执行模型定价 seed,启动时先调用受 runtime writer 鉴权的 queue-stats procedure 做只读预检,身份不匹配时 fail-fast;当前正式 systemd unit 通过共同加载 `/etc/genarrative/api-server.env` 继承同一 `GENARRATIVE_SPACETIME_TOKEN`,专属角色 env 示例不重复配置该 token。`GENARRATIVE_EXTERNAL_GENERATION_WORKER_POLL_INTERVAL_MS` 与 controller poll interval 只作为订阅失效、漏事件和 lease 过期这类时间条件的兜底,不作为正常领取任务的主路径。 @@ -70,7 +70,7 @@ lease 过期后不代表任务一定再次执行:claim transaction 只有在 ` 图片画布角色图、图标素材、UI 素材提取和角色动作逐帧去背景时优先调用 BgFilter;当前全部调用都显式传 `background_mode=flat`,保持单一纯色背景抠图语义。默认 `GENARRATIVE_EDITOR_BGFILTER_REQUEST_TIMEOUT_MS=180000`,该值是所有路径的基准请求超时;角色动作逐帧请求的每一次 HTTP attempt 额外增加 `2000ms × 本次实际帧数`,默认 `32 / 40 / 48` 帧对应 `244000 / 260000 / 276000ms`,角色形象单图、图标、UI 和手动去背景继续使用基准值。该 request timeout 不是整批帧或整项任务超时,首次失败后的重试会重新计时;角色动作整项任务仍受默认 `GENARRATIVE_EXTERNAL_GENERATION_WORKER_LONG_JOB_TIMEOUT_SECONDS=1800` 预算约束,排查时以 `editor_bgfilter_request_start.timeout_ms` 确认实际值。连续失败达到 `GENARRATIVE_EDITOR_BGFILTER_CIRCUIT_FAILURE_THRESHOLD=3` 后熔断 `GENARRATIVE_EDITOR_BGFILTER_CIRCUIT_COOLDOWN_SECONDS=300` 秒。BgFilter 调用失败和熔断期均先走阿里云通用抠图,只有阿里云失败才走本地幕布色去背景兜底。阿里云这层默认 `GENARRATIVE_ALIYUN_MATTING_ENABLED=true`,但必须在 `api-server.env` 填入 `GENARRATIVE_ALIYUN_MATTING_ACCESS_KEY_ID` / `GENARRATIVE_ALIYUN_MATTING_ACCESS_KEY_SECRET`(或标准 SDK 命名 `ALIBABA_CLOUD_ACCESS_KEY_ID` / `ALIBABA_CLOUD_ACCESS_KEY_SECRET`)才会真正启用;AccessKey 缺失时启动日志会打印「阿里云抠图 AccessKey 未配置,跳过抠图客户端初始化」,抠图直接塌成 BgFilter→本地两级,`npm run check:api-server-env` 也会给出对应告警。修改这些变量后需要重启对应 `api-server` / worker 进程;排查时先从 worker 启动日志确认 lease 和 job timeout,再看带 `background_mode=flat` 的 `editor_bgfilter_request_start`、`editor_bgfilter_fallback_to_aliyun_matting`、`editor_bgfilter_circuit_open_fallback_to_aliyun_matting`,以及阿里云失败后的 `editor_aliyun_matting_fallback_to_local_screen_background_removal` 日志。 手动 `POST /api/editor/images/background-removals` 同样调用 BgFilter,但固定传 `background_mode=complex`、`seg_model=birefnet`、`cross_check=off`,不传背景色;首次失败后立即重试 `1` 次,两次都失败则返回最终错误。它不进入只适用于已知纯色背景的阿里云 / 本地键色兜底链,也不改变 flat 路径的熔断状态。标准纯色背景四条链路仍固定传 `background_mode=flat`。两种模式统一使用 `GENARRATIVE_EDITOR_BGFILTER_BASE_URL`、`GENARRATIVE_EDITOR_BGFILTER_TOKEN`、`GENARRATIVE_EDITOR_BGFILTER_REQUEST_TIMEOUT_MS` 和共享 HTTP client;旧 `GENARRATIVE_EDITOR_BACKGROUND_REMOVAL_TOKEN` 只保留为 token 兼容别名。 -`我的` 页签或排障面板展示队列等待时,只读取 BFF 队列接口:`GET /api/runtime/external-generation/queue-overview` 查看当前用户可见队列概览,`GET /api/runtime/external-generation/jobs/{jobId}` 查看单 job 状态。生成页 / 进度页不承接队列概览,只展示当前玩法业务进度;队列接口只提供等待 / 运行 / 失败 / 完成状态补充,最终草稿、作品和结果页仍要轮询对应玩法 session/detail 接口收敛到 ready 或 failed;不要直接查询 `external_generation_job` private table,也不要把 worker 内部 payload 暴露到前端。 +图片编辑器任务侧栏与生成提交工作流只读取 BFF 队列接口:`GET /api/runtime/external-generation/jobs` 列出当前用户任务,`GET /api/runtime/external-generation/jobs/{jobId}` 查看单 job 状态,概览场景可使用 `GET /api/runtime/external-generation/queue-overview`。前端不直接查询 `external_generation_job` private table,也不展示 worker 内部 payload;完成态以编辑器项目和资源接口返回的正式数据为准。 外部生成任务摘要投影与历史 payload 维护使用 `npm run spacetime:external-generation:maintain -- ...`,且只能由已授权 migration operator 的 SpacetimeDB CLI 登录态执行。脚本默认 dry-run、每次只处理一批,绝不自动循环全表;`--apply` 才写入。先发布包含 `external_generation_job_summary` 与 cursor 索引的 SpacetimeDB 模块,在维护模式内对事故时间以前的编辑器终态任务执行小批 dry-run,例如 `npm run spacetime:external-generation:maintain -- --database --server-url --limit 5 --completed-before-micros `;核对 `matched_count`、`before_bytes`、`after_bytes` 和 `inline_media_count` 后,保持本批输入 cursor 不变并追加 `--apply` 重跑同一批,即使最后一批 `has_more = false`,只要 dry-run 仍有 `matched_count` / `selected_count` 也必须 apply;只有 apply 成功后才使用它返回的 `next_cursor_job_id` 继续。B-tree cursor 的选择阶段最多反序列化 `limit + 1` 行,apply 会再按主键逐条读取选中行但不会同时保留整批 payload;如怀疑存在单行异常巨型历史 JSON,先用 `--limit 1`。payload 压缩硬限制 `source_module = editor-canvas`;终态压缩完成后,用 `--backfill-summaries` 先 dry-run、再 `--apply` 分批补齐仍缺失的活动任务或无内联媒体历史任务摘要,直到 `has_more = false`,最后再切换使用 summary procedure 的 api-server。Stdb 构建 artifact 和完整 release 包都必须包含 `scripts/spacetime-maintain-external-generation-jobs.mjs` 与 `scripts/spacetime-migration-common.mjs`。首次上线不得让 Full Build 从 Stdb 自动直落 API:`STDB_API_ROLLOUT_MODE` 默认 fail-closed 为 `pause-after-stdb`,必须填写受限的 `STDB_API_ROLLOUT_APPROVERS`;Stdb Publish 通过 `KEEP_MAINTENANCE_MODE` 保持维护文件并停止旧 API/controller/worker,暂停点最多等待 4 小时,完成上述维护并确认无后续批次后才由指定审批人放行 API。定时构建缺少审批人时必须在发布前失败,不能静默退回 `normal`;也可分开运行 Stdb publish、维护、API deploy 三个受控 Job。任一批次都不得处理 pending / running payload;不要用 runtime writer、bootstrap secret 或匿名 identity 代替 migration operator,也不要在未核对 dry-run 时直接 apply。 @@ -78,7 +78,7 @@ lease 过期后不代表任务一定再次执行:claim transaction 只有在 ` Full Job 通过 `EXIT_MAINTENANCE_MODE_AFTER_COMPLETION` 明确选择完整发布成功后是否退出维护,默认勾选以保持历史行为。Full 对 Stdb Publish 和 API Deploy 两个下游阶段都固定传 `KEEP_MAINTENANCE_MODE=true`,让 maintenance marker 持续覆盖 Stdb → API → Web 整段发布;Web Deploy 成功后才进入独立 `Exit Maintenance` 阶段。取消勾选时跳过最终退出阶段,便于内网验收完成后人工恢复公网。`Genarrative-Api-Deploy` 也单独暴露 `KEEP_MAINTENANCE_MODE` 参数,并转换为随发布包脚本的 `--keep-maintenance-mode`;失败路径仍按既有 current 切换边界保留或退出维护,不受成功态选项覆盖。外部生成 queue 的 `warning` 由 API/worker 固化为可直接展示的完整文案,Web 不再补前缀,因此 API/worker 与 Web 必须在同一维护窗口按同一版本协调发布;分开运行 Job 时先保持维护态完成 API/worker,再发布 Web,二者完成后才能恢复公网,不得在公网可用期间只滚动其中一侧。 -需要验证“更新 API 不停 worker”和“worker 是否持续消费队列”时,优先使用隔离容器 smoke:`npm run container:worker-smoke -- smoke`。该脚本生成 gitignored 的 `deploy/container/worker-smoke/api-server.env`,启动独立 compose project 与独立 SpacetimeDB,发布当前 `spacetime-module` 后写入 `worker_smoke_unsupported` 测试 job;预期 worker claim 后执行 unsupported 失败分支,再执行 API-only recreate 并确认 worker 容器 ID 不变,最后再次入队验证 API 更新后队列仍可消费。`external_generation_job` 是 private table,脚本通过 worker 日志确认 job_id 被消费,不用 CLI SQL 查询私表。该 smoke 不读取 `.env.local`,也不依赖真实 VectorEngine / OSS 密钥;真实生图链路联调再在本地私有 env 中补齐 provider 配置。worker-smoke 默认把本机 `spacetime` CLI 打成轻量 SpacetimeDB 镜像,避免本机首次 smoke 依赖官方大镜像下载。若容器内 Cargo 拉取 crates.io 依赖不稳定,可用 `npm run container:worker-smoke -- smoke --local-binary` 让容器内 Cargo 复用本机 Cargo 缓存构建当前二进制,再打入 Debian bookworm smoke runtime 临时镜像;可用 `GENARRATIVE_WORKER_SMOKE_LOCAL_BASE_IMAGE` 覆盖运行时基础镜像;若隔离端口或库数据需要重建,追加 `--force`。完成 queue 链路验证时,还要用队列概览 BFF 和单 job 状态接口确认 job 从 queued/running 收敛,并用对应玩法 session/detail 接口确认业务状态同步完成。 +需要验证“更新 API 不停 worker”和“worker 是否持续消费队列”时,优先使用隔离容器 smoke:`npm run container:worker-smoke -- smoke`。该脚本生成 gitignored 的 `deploy/container/worker-smoke/api-server.env`,启动独立 compose project 与独立 SpacetimeDB,发布当前 `spacetime-module` 后写入 `source_module = editor-canvas`、`job_kind = worker_smoke_unsupported` 的测试 job;预期 worker claim 后执行 unsupported 失败分支,再执行 API-only recreate 并确认 worker 容器 ID 不变,最后再次入队验证 API 更新后队列仍可消费。`external_generation_job` 是 private table,脚本通过 worker 日志确认 job_id 被消费,不用 CLI SQL 查询私表。该 smoke 不读取 `.env.local`,也不依赖真实 VectorEngine / OSS 密钥;真实生图链路联调再在本地私有 env 中补齐 provider 配置。worker-smoke 默认把本机 `spacetime` CLI 打成轻量 SpacetimeDB 镜像,避免本机首次 smoke 依赖官方大镜像下载。若容器内 Cargo 拉取 crates.io 依赖不稳定,可用 `npm run container:worker-smoke -- smoke --local-binary` 让容器内 Cargo 复用本机 Cargo 缓存构建当前二进制,再打入 Debian bookworm smoke runtime 临时镜像;可用 `GENARRATIVE_WORKER_SMOKE_LOCAL_BASE_IMAGE` 覆盖运行时基础镜像;若隔离端口或库数据需要重建,追加 `--force`。完成 queue 链路验证时,用队列概览 BFF、单 job 状态接口和 worker 日志确认任务从 queued/running 收敛到预期失败态。 本地只做账号/UI smoke 且需要短信登录时,`SMS_AUTH_PROVIDER` 应显式设为 `mock`,并把 `SMS_AUTH_MOCK_VERIFY_CODE` 设为固定值(当前常用 `123456`),再重启 `npm run dev` 或 `npm run dev:api-server`。如果 `.env.local` 还保留 `SMS_AUTH_PROVIDER=aliyun`,`POST /api/auth/phone/login` 用 mock 验证码会稳定报“验证码错误”,不是前端表单问题。真实短信联调再切回 `aliyun` 并重启。 @@ -133,27 +133,27 @@ spacetime sql "SELECT * FROM profile_recharge_refund_bill_checkpoint" 正式落账上线前已经被旧 debug handler 返回成功的退款回调不会因部署新版本自动重放。已知 `out_refund_no` 的历史退款应由具备真实商户凭据的受控服务端操作先调用单笔退款查询,验签后写入同一 observation 事务;未知的商户平台退款等待次日交易账单发现。自动账单按分片补扫微信 API 可查询的近 90 天,超出窗口的历史退款需从商户平台导出核对后逐笔受控查单补录,不能直接把商户平台截图或 CSV 行当作退款终态,也不能开放匿名或普通用户补录 / 退款入口。 -微信小程序订阅消息生成结果通知使用 `WECHAT_MINIPROGRAM_SUBSCRIBE_MESSAGE_ENABLED`、`WECHAT_MINIPROGRAM_GENERATION_RESULT_TEMPLATE_ID` 和 `WECHAT_MINIPROGRAM_SUBSCRIBE_MESSAGE_STATE` 配置。当前模板为 `AI创作生成结果通知`;H5 在生成动作发起前先进入生成进度态并立即继续生成动作,同时非阻塞跳转到小程序原生订阅授权页尝试请求授权,用户接受、拒绝或返回都不能阻塞生成,且原生页不改写上一页 `webViewUrl`,避免返回后丢失 H5 当前进度页状态。后端只在玩法草稿生成成功或失败终态后用微信登录保存的 openid 调用 `subscribeMessage.send`,发送失败只打 warning,不影响生成主链路。模板 `thing1` 字段发送玩法模板名,例如 `拼图`、`敲木鱼`、`抓大鹅`;`number6` 字段发送本次生成结算后的实际泥点扣除,失败退款后固定为 `0`。模板 `time4` 字段固定发送北京时间 `YYYY-MM-DD HH:mm`,不要使用内部微秒时间戳、秒级时间戳或带时区后缀的 RFC3339 字符串,否则微信会返回 `argument invalid! data.time4.value invalid`。当前已接入拼图、敲木鱼、抓大鹅、跳一跳、方洞、视觉小说的草稿生成终态;分槽素材生成或发布动作不得直接复用生成结果通知,避免一次作品生成产生多条订阅消息。 +旧玩法生成结果订阅通知已随创作模板业务退役:小程序不再注册 `pages/subscribe-message`,api-server 不再读取生成结果模板或订阅消息配置,`platform-wechat` 只保留现役登录、普通支付和虚拟支付所需能力。历史部署环境中遗留的同名变量可直接删除。 -如果本地 `GET /api/creation-entry/config` 返回 `No such procedure`,或 `api-server` 日志出现 `no such table: puzzle_gallery_card_view` / `no such table: wooden_fish_gallery_card_view` 这类公开 view 缺失,通常是 `.env.local` 指向的 SpacetimeDB 库还没有发布当前 `spacetime-module`,或当前 CLI 身份无权发布该库。debug 构建的 `api-server` 会临时使用后端默认入口配置兜底,避免创作作品架整块消失;正式修复仍应切换到拥有目标库权限的 SpacetimeDB 身份后重新运行 `npm run dev` 完成发布,或用 gitignored 的 `spacetime.local.json` 指向可发布的本地库。 +如果本地 `GET /api/editor/showcase/resources` 或鉴权后的 `GET /api/runtime/settings` 报告缺少现役 table / procedure,通常是 `.env.local` 指向的 SpacetimeDB 库还没有发布当前 `spacetime-module`,或当前 CLI 身份无权发布该库。切换到可发布的本地库后重新运行 `npm run dev` 完成发布;不要用恢复 `/api/creation-entry/config`、旧 gallery view 或模板默认配置兜底来修复。 本地排查 schema 漂移时,先用当前 dev server 显式查询目标库,例如: ```bash -spacetime sql "SELECT * FROM puzzle_gallery_card_view LIMIT 1" --server http://127.0.0.1:3101 +spacetime sql "SELECT * FROM runtime_setting LIMIT 1" --server http://127.0.0.1:3101 ``` -如果旧 `.env.local` 仍指向缺少当前 view 的库,例如 `xushi-p4wfr`,而当前可发布库已经包含这些 view,可在 gitignored 的 `spacetime.local.json` 写入 `{"database":"genarrative-dev-codex"}` 作为本机覆盖;写入时不要带 UTF-8 BOM,否则 `scripts/dev.mjs` 会忽略该文件。修改后重启 `api-server`,再检查 `/healthz` 和 `/api/runtime/puzzle/gallery`。 +如果旧 `.env.local` 仍指向缺少现役 schema 的库,而当前可发布库已经包含这些 table / procedure,可在 gitignored 的 `spacetime.local.json` 写入 `{"database":"genarrative-dev-codex"}` 作为本机覆盖;写入时不要带 UTF-8 BOM,否则 `scripts/dev.mjs` 会忽略该文件。修改后重启 `api-server`,再检查 `/healthz`、`/api/editor/showcase/resources` 和鉴权后的 `/api/runtime/settings`。 本地 `npm run dev:spacetime` 发布模块时必须显式忽略仓库根目录的 `spacetime.json`,由脚本固定追加 `--no-config` 并使用命令参数里传入的数据库名和 `--server http://127.0.0.1:3101`。否则 CLI 可能把发布目标改写到配置文件里的其他数据库,导致 `dev:spacetime` 启动后又因发布失败自动退出,浏览器随后会在 `ws://127.0.0.1:3101/v1/database/.../subscribe` 看到连接拒绝。 -本地 `spacetime` CLI / standalone 版本必须和 `server-rs/Cargo.toml` 里锁定的 `spacetimedb` 版本一致;当前统一版本为 `2.6.1`。若版本错配,procedure 返回值可能在宿主侧触发 `Failed to BSATN deserialize procedure return value`,api-server 最终表现为敲木鱼等创作动作的 `SpacetimeDB procedure 调用超时`。排障时先运行 `spacetime --version`,再对照 `server-rs/Cargo.toml` 的 `spacetimedb = "..."`;遇到版本不匹配时不要继续深挖业务超时,直接执行 `spacetime version install && spacetime version use `,或在目标就是最新版本时执行 `spacetime version upgrade`,升级后重启 `npm run dev:spacetime` 再重试。当前 `scripts/dev.mjs` 会在启动和复用本地 SpacetimeDB 前写入并校验 `dev-spacetime-tool-version`,避免把旧 standalone 继续带进新一轮创作。2.6.1 修复了 procedure context 中调用者 `Identity` / `ConnectionId` 始终为空的回归,依赖 `ctx.sender` 鉴权时必须同时确认宿主已升级。 +本地 `spacetime` CLI / standalone 版本必须和 `server-rs/Cargo.toml` 里锁定的 `spacetimedb` 版本一致;当前统一版本为 `2.6.1`。若版本错配,procedure 返回值可能在宿主侧触发 `Failed to BSATN deserialize procedure return value`,api-server 最终表现为现役 settings、editor project 或 profile procedure 超时。排障时先运行 `spacetime --version`,再对照 `server-rs/Cargo.toml` 的 `spacetimedb = "..."`;遇到版本不匹配时直接执行 `spacetime version install && spacetime version use `,或在目标就是最新版本时执行 `spacetime version upgrade`,升级后重启 `npm run dev:spacetime` 再重试。当前 `scripts/dev.mjs` 会在启动和复用本地 SpacetimeDB 前写入并校验 `dev-spacetime-tool-version`。2.6.1 修复了 procedure context 中调用者 `Identity` / `ConnectionId` 始终为空的回归,依赖 `ctx.sender` 鉴权时必须同时确认宿主已升级。 -本地 `.env`、`.env.local` 或 `.env.secrets.local` 修改后必须重启 `api-server` 才会生效;若已经通过 `npm run dev` 启动完整联调,可在该终端输入 `rs api-server`。排查 RPG / 拼图 / 抓大鹅等 VectorEngine 生图链路时,确认 `VECTOR_ENGINE_BASE_URL`、`VECTOR_ENGINE_API_KEY` 和 `VECTOR_ENGINE_IMAGE_REQUEST_TIMEOUT_MS` 只在本地或服务器密钥文件中配置,不能写入 Git。VectorEngine `gpt-image-2` 图片协议、URL / base64 响应解析、远端图片下载和 provider 侧结构化日志在 `server-rs/crates/platform-image`;`api-server` 只做配置、玩法编排、OSS / asset 持久化、计费和失败审计落库。`platform-image` 会在 JSON 生成和 multipart 编辑请求发送前,按原比例尽量收敛 `gpt-image-2` 的显式像素尺寸:最大边长不超过 `3840`、宽高均为 `16` 的倍数、长短边比不超过 `3:1`,总像素范围为 `655360` 至 `8294400`。无法满足全部条件时回退为 `1024x1024`;其他模型保留其传入尺寸。开局 CG 故事板、首图、背景和图集都属于长耗时图片请求;后端默认会把 `VECTOR_ENGINE_IMAGE_REQUEST_TIMEOUT_MS` 下限收口到 `1000000`,旧进程仍可能沿用重启前的短超时。若 VectorEngine 在 `send()` 阶段失败且日志显示 `SendRequest`,先看同一 `request_id` 的 provider 日志字段 `source`、`source_chain`、`source_chain_depth`,再查 `external_api_call_failure.metadata_json.errorSource`;当前 multipart `/v1/images/edits` 单独强制 HTTP/1.1。拼图关卡资产按 `level_scene -> ui_spritesheet -> level_background` 顺序生成,日志会带 `slot`、`asset_kind` 和 `elapsed_ms`。 +本地 `.env`、`.env.local` 或 `.env.secrets.local` 修改后必须重启 `api-server` 才会生效;若已经通过 `npm run dev` 启动完整联调,可在该终端输入 `rs api-server`。排查图片编辑器 VectorEngine 生成链路时,确认 `VECTOR_ENGINE_BASE_URL`、`VECTOR_ENGINE_API_KEY` 和 `VECTOR_ENGINE_IMAGE_REQUEST_TIMEOUT_MS` 只在本地或服务器密钥文件中配置,不能写入 Git。VectorEngine `gpt-image-2` 图片协议、URL / base64 响应解析、远端图片下载和 provider 侧结构化日志在 `server-rs/crates/platform-image`;`api-server` 只做编辑器请求编排、OSS / asset 持久化、计费和失败审计落库。`platform-image` 会在 JSON 生成和 multipart 编辑请求发送前归一显式像素尺寸;若请求发送失败,先按同一 `request_id` 查看 provider 日志与 `external_api_call_failure.metadata_json.errorSource`,当前 multipart `/v1/images/edits` 单独强制 HTTP/1.1。 VectorEngine 图片生成 / 编辑在 `request_send` 阶段出现 `timeout`、`connect`、libcurl 35 SSL connect reset、libcurl 56 receive error / `unexpected eof while reading`、recv failure 等临时传输错误,或在 `upstream_status` 阶段收到 408 / 429 / 5xx(例如 Nginx HTML `502 Bad Gateway`)时,`platform-image` 会对同一请求最多发送 5 次;multipart 图片编辑每次重试都会重新构造 form,避免复用已消费的 body。日志中 `VectorEngine 图片请求发送失败,准备重试` 或 `VectorEngine 图片上游状态可重试,准备重试` 表示本次失败已进入下一次尝试;最终仍失败时才会写入 `external_api_call_failure` 并返回 504 / 502。排查生产失败时应同时统计 retry 前的尝试日志和最终 audit,避免把一次用户请求内的多次发送误判成多个用户请求。 -拼图入口直创的 `compile_puzzle_draft` 是长耗时链路:后端会先快速编译草稿并返回 `image_refining` / `generating` 快照,然后在 api-server 后台任务中完成首图、UI 资产、OSS 持久化、作品投影、计费退款和失败态回写。生产排查小程序 `Failed to fetch` 时,若 Nginx access log 里 action POST 是 `499`、`upstream_status=-`,说明客户端或 WebView 先断开;此时不应再把长 POST 是否返回作为生成成败依据,而应继续按实际 `session_id` 查后台任务日志、VectorEngine provider 日志、`external_api_call_failure` 和后续 GET 轮询结果。同一用户可能先轮询旧的 `puzzle-session-*`,随后 POST 新建实际生成 session;必须用 action POST 的 `request_id` 和 `/api/runtime/puzzle/agent/sessions//actions` 路径对齐真实失败请求,避免被前端显示的“来源草稿”误导。 +图片编辑器生成属于持久队列长任务:提交接口返回 job 后,前端通过 `/api/runtime/external-generation/jobs/{jobId}` 与编辑器项目资源状态收敛。生产排查小程序或 WebView `Failed to fetch` 时,若 Nginx access log 为 `499`、`upstream_status=-`,先按提交请求的 `request_id`、job id、worker 日志和 `external_api_call_failure` 对齐真实任务,不把客户端断开直接判定为 provider 失败。 查看本地 Rust / SpacetimeDB 日志: @@ -399,8 +399,8 @@ systemctl is-active spacetimedb.service genarrative-api.service nginx.service curl -fsS --max-time 5 http://127.0.0.1:3101/v1/ping curl -fsS --max-time 5 http://127.0.0.1:8082/healthz curl -fsS --max-time 5 http://127.0.0.1:8082/readyz -curl -fsS --max-time 5 http://127.0.0.1/api/creation-entry/config >/dev/null -curl -fsS --max-time 5 http://127.0.0.1/api/runtime/puzzle/gallery >/dev/null +curl -fsS --max-time 5 http://127.0.0.1/ >/dev/null +curl -fsS --max-time 5 http://127.0.0.1/api/editor/showcase/resources >/dev/null ``` ## 生产运维 @@ -421,7 +421,7 @@ Jenkins 按 web / api / Spacetime module / build / deploy / publish 拆分 - 至少一个 `genarrative-external-generation-worker@*.service` 实例是否 active;如果 controller 存活但 worker 全部退出,巡检直接返回 `CRITICAL`,避免外部生成队列长期无人消费。 - API 直连 `/healthz`、`/readyz`。 - SpacetimeDB 直连 `/v1/ping`。 -- 默认通过本机公网网关入口检查 `/api/creation-entry/config`、`/api/runtime/puzzle/gallery`、`/api/runtime/custom-world-gallery`;如需走正式域名,在 `/etc/genarrative/health-patrol.env` 配置 `GENARRATIVE_HEALTH_PATROL_PUBLIC_BASE_URL=https://<域名>`。若在目标机本机打 `https://127.0.0.1` 或 `http://127.0.0.1`,同时配置 `GENARRATIVE_HEALTH_PATROL_PUBLIC_HOST=<域名>`,确保 public probe 命中正确 vhost / Host 语义。 +- 默认通过本机公网网关入口检查 `/`;需要增加现役公开 API 时,用可重复的 `--public-path` 或对应环境配置显式追加 `/api/editor/showcase/resources`。如需走正式域名,在 `/etc/genarrative/health-patrol.env` 配置 `GENARRATIVE_HEALTH_PATROL_PUBLIC_BASE_URL=https://<域名>`。若在目标机本机打 `https://127.0.0.1` 或 `http://127.0.0.1`,同时配置 `GENARRATIVE_HEALTH_PATROL_PUBLIC_HOST=<域名>`,确保 public probe 命中正确 vhost / Host 语义;不得把已退役模板 API 重新加入健康探针。 - Pingora 影子网关只在同时配置 `GENARRATIVE_HEALTH_PATROL_PINGORA_BASE_URL` 与 `GENARRATIVE_HEALTH_PATROL_PINGORA_PROBE_TOKEN` 时纳入巡检;脚本会访问 `GET /__genarrative_pingora/healthz` 并校验返回 `gateway=pingora-shadow`,未配置时不影响现有生产巡检。 - 最近 15 分钟对应 gateway mode 下 `genarrative-api.service`、`genarrative-external-generation-controller.service`、`genarrative-external-generation-worker@*.service`、`spacetimedb.service` 和 `nginx.service` 或 `genarrative-pingora-gateway.service` 的 `err..alert` 日志。 @@ -475,6 +475,8 @@ Pingora direct 切换门禁按阶段拆分:启用前 preflight、`--dry-run-cu 涉及 Nginx 模板、Pingora 路由、限流分组或路由文档时,必须同步更新 `deploy/pingora/nginx-route-parity.matrix.json`,并运行 `npm run check:pingora-route-parity`;Rust 侧 `cargo test -p pingora-gateway --manifest-path server-rs/Cargo.toml matches_nginx_route_parity_matrix` 会读取同一份矩阵验证 `classify_path` 的路由结果、body limit 和接流保护分组。 +canary 与 access log 对账使用的代表性现役 API 统一为 `/api/editor/showcase/resources`。后续旧段落若仍记录 `/api/creation-entry/config`,只表示当时的历史验收,不得复制到当前命令或巡检配置。 + Pingora canary 入口默认由 Server-Provision 安装但不接入主站配置。`deploy/nginx/snippets/genarrative-pingora-canary.conf` 是前缀 canary,人工 include 后用 `/__genarrative_pingora_canary/` rewrite 到 Pingora shadow;`deploy/nginx/snippets/genarrative-pingora-realpath-canary.conf` 是前缀 canary 之后、direct 直连之前的真实路径 canary,只能在 Nginx `http` 上下文 include,默认监听 `127.0.0.1:18083` 并写独立 `/var/log/nginx/genarrative-pingora-realpath-canary.access.log`,不要 include 到生产 `443` server 内覆盖正式 location。启用前必须运行 `npm run check:nginx-pingora-canary`;目标 agent 有 Nginx 时运行 `node scripts/check-nginx-pingora-canary.mjs --require-nginx`,强制把前缀 location 片段和真实路径 server 片段一起执行 `nginx -t`。本机或 CI 可用 `npm run check:pingora-canary-docker` 启动 Docker Nginx、真实 Pingora 和 mock 上游复现两条 Nginx -> Pingora handoff,并复用 `scripts/check-pingora-canary-access-log-parity.mjs` 按 `request_id` 对账。需要证明 Docker Nginx -> Pingora -> 真实本地服务时,先启动真实 api-server 与 SpacetimeDB,再运行 `node scripts/check-pingora-canary-docker.mjs --require-docker --real-upstreams --api-upstream 127.0.0.1: --spacetime-upstream 127.0.0.1: --web-root dist`;该模式不会启动内置 mock 上游,会先检查真实 `/healthz` 和 `/v1/ping`,随后复用同一组 live smoke 与 access log 对账。真实 SpacetimeDB 对 `GET /v1/identity` 返回 `405 Method Not Allowed` 属于可接受语义,canary live 只把它作为路径路由代表,不要求该 GET 创建 identity。前缀 canary reload 后运行 `GENARRATIVE_PINGORA_CANARY_BASE_URL=http://127.0.0.1 GENARRATIVE_PINGORA_CANARY_HOST=<域名> npm run check:pingora-canary-live`;真实路径 canary 启停统一使用 current release 随包脚本:`/opt/genarrative/current/scripts/deploy/pingora-realpath-canary-enable.sh --apply --probe-token --host <域名> --base-url http://127.0.0.1:18083` 写入 `/etc/nginx/conf.d/zz-genarrative-pingora-realpath-canary.conf` 并执行 `nginx -t`、reload 和 realpath live smoke,`/opt/genarrative/current/scripts/deploy/pingora-realpath-canary-disable.sh --apply` 删除该配置并复核 Nginx;两者失败都会恢复操作前状态。真实路径 canary reload 后运行 `node -- /opt/genarrative/current/scripts/check-pingora-canary-live.mjs --realpath --base-url http://127.0.0.1:18083 --host <域名>`,随后用 `node -- /opt/genarrative/current/scripts/check-pingora-canary-access-log-parity.mjs --realpath --nginx-log-file /var/log/nginx/genarrative-pingora-realpath-canary.access.log --pingora-log-file /var/log/genarrative/pingora-gateway.access.log --path /__genarrative_pingora_realpath_canary/healthz --path /api/creation-entry/config --path /v1/identity --path /assets/app.js` 对账;真实路径模式除 healthz 探针外要求 Nginx path 与 Pingora path 完全一致。canary live 的 base URL、prefix、Host、额外 path、`--timeout-ms` / `GENARRATIVE_PINGORA_CANARY_TIMEOUT_MS` 不能包含换行或 NUL,脚本会在发起请求前失败;canary access log 对账脚本的日志路径、prefix、必需路径和 `--since-lines` / `GENARRATIVE_PINGORA_CANARY_ACCESS_LOG_SINCE_LINES` 也不能包含换行或 NUL,日志行里解析出的 URI / path 含控制字符时必须失败;timeout 和 access log 对账的 `--since-lines` / 对应 env 必须是正整数,非法值直接失败,不静默回默认值。 下方聚合门禁示例以前缀 canary 已启用为前提;如果现场只启用了真实路径 canary,源码 checkout / CI 与目标机 `--release-runtime-only` 都不要传 `--require-live`,改用 `--require-realpath-live --realpath-live-base-url http://127.0.0.1:18083 --realpath-live-host <域名> --realpath-live-nginx-access-log /var/log/nginx/genarrative-pingora-realpath-canary.access.log --realpath-live-pingora-access-log /var/log/genarrative/pingora-gateway.access.log`。只有前缀 canary 和真实路径 canary 都启用时,才同时传两组 live 参数。 @@ -559,30 +561,27 @@ worker 被硬杀或断电后,lease 过期任务只有尚未耗尽 `max_attempt 50 HTTP req/s 首版压测优化口径: - `api-server` 生产模板默认 `GENARRATIVE_API_LISTEN_BACKLOG=1024`、`GENARRATIVE_API_WORKER_THREADS=4`;本地未设置 worker threads 时继续使用 Tokio 默认值。 -- `GENARRATIVE_API_MAX_CONCURRENT_REQUESTS=512` 开启应用内 HTTP 并发背压;`GENARRATIVE_API_GALLERY_MAX_CONCURRENT_REQUESTS=320`、`GENARRATIVE_API_DETAIL_MAX_CONCURRENT_REQUESTS=64`、`GENARRATIVE_API_ADMIN_MAX_CONCURRENT_REQUESTS=16` 分别限制公开列表、公开详情和后台 API 热路径。超过许可时直接返回 `429 Too Many Requests` 和 `Retry-After: 1`,`/healthz` 与 `/readyz` 不受该限制。这些值不是 RPS 限速;如果压测中 429 上升但内存和 p95 收敛,说明背压正在保护进程。直连 `api-server` 的极高 RPS 压测若出现 `connection refused`,通常已经打到 TCP 监听 / accept 层,应同时检查 backlog、Nginx upstream keepalive 和前置限流。 +- `GENARRATIVE_API_MAX_CONCURRENT_REQUESTS=512` 开启通用 HTTP 并发背压,`GENARRATIVE_API_ADMIN_MAX_CONCURRENT_REQUESTS=16` 为后台 API 提供独立热路径保护。超过许可时直接返回 `429 Too Many Requests` 和 `Retry-After: 1`,`/healthz` 与 `/readyz` 不受该限制。这些值不是 RPS 限速;如果压测中 429 上升但内存和 p95 收敛,说明背压正在保护进程。直连 `api-server` 的极高 RPS 压测若出现 `connection refused`,通常已经打到 TCP 监听 / accept 层,应同时检查 backlog、Nginx upstream keepalive 和前置限流。 - `api-server` 正常运行时 `/healthz` 只返回进程存活状态,`/readyz` 会同时检查进程是否仍接收新流量和 SpacetimeDB 连接租约是否健康;收到 `SIGINT` / `SIGTERM` 后会先把 readiness 标记为不可用,再让 Axum 停止接新连接并等待已有 HTTP 请求排空。systemd 仍以 `KillSignal=SIGINT` 停服务,`TimeoutStopSec=90` 作为长请求排空上限。 - SpacetimeDB 健康检查默认使用 `GENARRATIVE_SPACETIME_HEALTH_CHECK_TIMEOUT_SECONDS=2` 的短等待窗口,和业务 procedure 的 `GENARRATIVE_SPACETIME_PROCEDURE_TIMEOUT_SECONDS` 分开。`/readyz` 失败时 `details.spacetime.stage` 会标出当前卡住阶段:`pool_acquire`、`connect_build`、`connect_handshake`、`read_model_subscribe`、`procedure_result`、`reducer_result` 或 `read_cache`;`elapsedMs` / `timeoutMs` 用于确认是否命中健康检查窗口。业务请求日志也会写入 `operation_kind`、`operation_name`、`spacetime_stage` 和 `elapsed_ms`,后续 45 秒超时不再只靠 Nginx `request_time=45s` 推断。 - `genarrative-api.service` 设置 `LimitNOFILE=65535`、`TasksMax=2048`;上线后用 `systemctl show genarrative-api.service -p LimitNOFILE -p TasksMax -p TimeoutStopUSec` 和 `cat /proc/$(pidof api-server)/limits` 核对。 - Server provision 不再通过 Windows helper 下载,也不再通过 Linux build 节点中转 SpacetimeDB / otelcol 工具包;Linux build 节点只负责从内网 Git 源准备 provision 脚本和配置并上传给目标 agent。`Prepare Provision Tools` 在目标 dev / release agent 工作区内先检查 `/usr/local/bin/otelcol-contrib` 与 `${SPACETIME_ROOT}/bin/current`:版本已满足时直接复用目标机现有文件生成 `provision-tools/`,只有缺失或版本不匹配时才使用 `PROVISION_DOWNLOADS_DIR` 里的本地包或从配置的下载源准备 SpacetimeDB `2.6.1` / `otelcol-contrib 0.151.0`;如果目标服务器下载需要代理,在 `PROVISION_DOWNLOAD_PROXY` 配置目标机可访问的 HTTP 代理。 - 除 `Genarrative-Server-Provision` 外,`Genarrative-Stdb-Module-Build`、`Genarrative-Web-Build`、`Genarrative-Api-Build`、`Genarrative-*Deploy`、`Genarrative-Database-Import/Export`、`Genarrative-Full-Build-And-Deploy` 和 `Genarrative-Notify-Email` 的生产流水线现都以 Linux agent 为主,仍按各自 Jenkinsfile 的 checkout 口径执行。Server provision 不使用公网备用 Git 源,目标部署 agent 也不再需要访问源码 Git remote。 - `otelcol-contrib.service` 作为可选系统服务加入 provision,默认监听 `127.0.0.1:4317/4318` 并使用 `deploy/otelcol/genarrative-debug.yaml`。api-server 是否发送 OTLP 仍由 `GENARRATIVE_OTEL_ENABLED` 控制,服务 unit 见 `deploy/systemd/otelcol-contrib.service`。该服务必须存在系统用户 / 组 `otelcol`,并且 `/etc/otelcol/genarrative-debug.yaml` 已安装到目标机;若看到 `status=217/USER` 或 `Failed to determine user credentials`,优先检查 `getent passwd otelcol`,再补齐 `/etc/otelcol` 配置目录并重启服务。 -- Nginx `/api/` 与 `/admin/api/` 通过 `genarrative_api` upstream 代理到 `127.0.0.1:8082`,upstream keepalive 为 64;`limit_conn` 负责连接 / 并发保护,`limit_req` 负责入口 RPS 快拒绝。当前模板把公开 gallery list 单独放到 `genarrative_gallery_rps`,默认 `rate=5000r/s`、`burst=4096`、`limit_conn=320`;公开详情和普通 API 放到 `genarrative_api_rps`,后台 API 放到 `genarrative_admin_rps`。通用 `/api` location 设置 `client_max_body_size 64m` 是反代兜底,防止拼图入口页 / 新增关卡本地参考图 Data URL 或旧兼容请求在到达 `api-server` 前被默认 1 MiB 上限拦截;拼图本地参考图前后端统一限制 6MB,历史图片仍提交 `referenceImageAssetObjectId(s)`。若线上出现 `413 Request Entity Too Large` 且 access log 中 `request_time=0.000`、`upstream_status=-`,说明请求在 Nginx 层被拦截,先用 `nginx -T | grep client_max_body_size` 检查 release 模板是否已渲染并 reload,同时检查前端是否超出 6MB 或错误提交了未压缩大图。`limit_conn_status 429` 和 `limit_req_status 429` 必须在 HTTP 与 HTTPS server 中同时生效;若线上压测看到 `limiting connections by zone "genarrative_api_conn"` 却返回 503,优先检查 `nginx -T` 里 HTTPS server 是否缺少这些状态码,以及 `/api/runtime/puzzle/gallery` 是否误落到通用 `location ~ ^/api` 的 `limit_conn=64`。压测时看 `/var/log/nginx/genarrative.access.log` 中的 `request_time`、`upstream_connect_time`、`upstream_header_time`、`upstream_response_time`、`upstream_status`、`request_id`。 -- 作品列表 K6 脚本一次 iteration 默认请求两个公开接口,因此约 50 HTTP req/s 的目标命令使用 `SCENARIO=spike START_RPS=5 PEAK_RPS=25 HOLD=60s END_RPS=5 DETAIL_RATIO=0 npm run loadtest:k6:works`。 -- 作品列表短期继续由 `api-server` / BFF 订阅 SpacetimeDB 公开 read model 后读本地 cache,不让浏览器前端直接订阅完整列表;未来如新增 `public_work_gallery_entry` 等专用公开作品列表 read model,前端只可订阅稳定、低基数、公开的专用投影,禁止订阅 `puzzle_work_profile`、`custom_world_profile` 等玩法源表后自行 join、聚合或判断权限。前端直订阅落地前必须先补齐权限、字段契约、排序 / 分页、埋点和 BFF 回退策略。 -- 50 HTTP req/s 验收目标为 `http_req_failed < 1%`、`p95 < 2s`、`dropped_iterations = 0`,同时压测窗口内 Nginx 无新增 502。2026-05-19 容器 2C / 2G 连续 10 轮不重启 SpacetimeDB 压测:`PEAK_RPS=2500` 等价约 5000 HTTP req/s,平均实际吞吐约 `4219 HTTP req/s`,10 轮总计 `1,897,357` 个 200、`212,542` 个 429、`0` 个 5xx,200 请求平均 `p95=123ms`、`p99=234ms`;该档会把 SpacetimeDB 容器内存从约 `366MiB` 推到约 `885MiB / 896MiB`,因此当前不要继续抬公开 gallery 入口并发,应优先处理 SpacetimeDB 侧连接 / 订阅 / tracking 写入后的内存高水位。 +- Nginx `/api/` 与 `/admin/api/` 通过 `genarrative_api` upstream 代理到 `127.0.0.1:8082`,upstream keepalive 为 64;通用 API 使用 `genarrative_api_rps`,后台 API 使用 `genarrative_admin_rps`。通用 `/api` location 保留 `client_max_body_size 64m` 作为编辑器图片、视频和文档请求的反代兜底,真实大小仍由路由与业务校验负责。若线上出现 `413 Request Entity Too Large` 且 access log 中 `request_time=0.000`、`upstream_status=-`,说明请求在 Nginx 层被拦截,先核对 release 模板与实际媒体大小。`limit_conn_status 429` 和 `limit_req_status 429` 必须在 HTTP 与 HTTPS server 中同时生效。 +- 旧作品列表 K6 脚本、gallery 专属限流分组和对应容量结论已经退役;源码只作历史记录,不得作为当前发布门禁。新的容量验收必须针对现役编辑器、项目和素材 API 单独建立数据、负载与指标口径。 -容器化压测与隔离部署方案单独放在 `deploy/container/`,用于本机或预发模拟 Linux release + Nginx + OTLP Collector 拓扑,不替换当前生产 `systemd + Nginx + Jenkins` 发布路径。当前容器模拟参数按 `genarrative-release` 采样值收口为 2 vCPU / 2 GiB RAM / `nofile=4096` / `worker_connections=768`,并在 compose 里落实到 `spacetimedb cpus=1.0 mem_limit=896m`、`api-server cpus=2.0 mem_limit=1g`、`external-generation-worker cpus=2.0 mem_limit=1g`、`nginx cpus=0.5 mem_limit=128m`、`otelcol cpus=0.25 mem_limit=128m`、`k6 cpus=1.0 mem_limit=512m`。容器 `api-server` 默认 `GENARRATIVE_API_WORKER_THREADS=4`,只增加 Tokio worker 调度并发,不突破 `api-server cpus=2.0` 的 CPU 配额;容器默认 `GENARRATIVE_EXTERNAL_GENERATION_MODE=queue`,可用 `npm run container:up -- --scale external-generation-worker=N external-generation-worker` 验证外部生成 worker 动态扩缩容,`inline` 模式不参与该验证: +容器化隔离部署方案单独放在 `deploy/container/`,用于本机或预发模拟 Linux release + Nginx + OTLP Collector 拓扑,不替换当前生产 `systemd + Nginx + Jenkins` 发布路径。当前容器模拟参数按 `genarrative-release` 采样值收口为 2 vCPU / 2 GiB RAM / `nofile=4096` / `worker_connections=768`,并在 compose 里落实到 `spacetimedb cpus=1.0 mem_limit=896m`、`api-server cpus=2.0 mem_limit=1g`、`external-generation-worker cpus=2.0 mem_limit=1g`、`nginx cpus=0.5 mem_limit=128m`、`otelcol cpus=0.25 mem_limit=128m`。容器 `api-server` 默认 `GENARRATIVE_API_WORKER_THREADS=4`,只增加 Tokio worker 调度并发,不突破 `api-server cpus=2.0` 的 CPU 配额;容器默认 `GENARRATIVE_EXTERNAL_GENERATION_MODE=queue`,可用 `npm run container:up -- --scale external-generation-worker=N external-generation-worker` 验证现役外部生成 worker 动态扩缩容,`inline` 模式不参与该验证: ```bash npm run container:init npm run container:config npm run container:build npm run container:up -npm run container:k6 npm run container:down ``` -容器方案默认暴露 `http://127.0.0.1:18080`,`api-server` 在容器内监听 `0.0.0.0:8082`,Nginx 通过 `api-server:8082` upstream 反代 `/api/` 和 `/admin/api/`。SpacetimeDB 也纳入 compose,容器内由 `spacetimedb:3101` 提供服务,宿主机通过 `http://127.0.0.1:13101` 进行模块发布;Collector 镜像使用 `otel/opentelemetry-collector-contrib:0.151.0`。生产 provision 侧现在由目标 dev / release agent 自己准备 `provision-tools/otelcol-contrib`,并安装本机 `otelcol-contrib.service`,真实库名、token 和外部服务密钥只写本地 `deploy/container/api-server.env`,不提交 Git。完整拓扑、端口、k6 参数和 OTLP debug exporter 使用方法见 `deploy/container/README.md`。 +容器方案默认暴露 `http://127.0.0.1:18080`,`api-server` 在容器内监听 `0.0.0.0:8082`,Nginx 通过 `api-server:8082` upstream 反代 `/api/` 和 `/admin/api/`。SpacetimeDB 也纳入 compose,容器内由 `spacetimedb:3101` 提供服务,宿主机通过 `http://127.0.0.1:13101` 进行模块发布;Collector 镜像使用 `otel/opentelemetry-collector-contrib:0.151.0`。生产 provision 侧现在由目标 dev / release agent 自己准备 `provision-tools/otelcol-contrib`,并安装本机 `otelcol-contrib.service`,真实库名、token 和外部服务密钥只写本地 `deploy/container/api-server.env`,不提交 Git。旧 gallery K6 profile 已退役;完整现役拓扑、端口和 OTLP debug exporter 使用方法见 `deploy/container/README.md`。 `npm run container:config` 默认只做 quiet 校验,避免把本地 env 中的 token 展开到终端;确需排查完整 compose 时再传 `-- --print`。 隔离验证 worker 队列和 API-only 更新时使用 `npm run container:worker-smoke -- smoke`。该命令不复用 `deploy/container/api-server.env`,会在 `deploy/container/worker-smoke/` 生成本机专用 env 与端口 state,并使用 unsupported job 验证 worker claim / fail 回写,不需要真实外部生成密钥;本机 crates.io 网络不稳时使用 `--local-binary`,由容器内 Cargo 复用本机 Cargo 缓存构建,并把产物放进 Debian bookworm smoke runtime。 @@ -620,7 +619,7 @@ OpenTelemetry 现阶段默认开启 OTLP traces / metrics / logs,但本地日 - `WECHAT_*` - `ALIYUN_OSS_*` -结构化创作 / RPG 的 Responses JSON 链路默认不打开 `web_search`;本地和生产如需联网增强,必须显式配置 `GENARRATIVE_RPG_LLM_WEB_SEARCH_ENABLED=true` 或 `GENARRATIVE_CREATION_AGENT_LLM_WEB_SEARCH_ENABLED=true`。如果上游未开通工具,Responses 可能先吐自然语言再返回 `ToolNotOpen`,这类报错应按工具不可用排查,不要先当成 JSON 解析 bug。 +旧结构化创作 / RPG 的 Responses `web_search` 开关已退出 api-server 配置;部署环境不再保留 `GENARRATIVE_RPG_LLM_WEB_SEARCH_ENABLED` 或 `GENARRATIVE_CREATION_AGENT_LLM_WEB_SEARCH_ENABLED`。 创意 Agent `gpt-5.4-mini` 文本链路已从 APIMart 切到 VectorEngine:`api-server` 读取 `VECTOR_ENGINE_BASE_URL` / `VECTOR_ENGINE_API_KEY` 构造 OpenAI-compatible LLM client,并自动补齐 `/v1` 前缀后请求 `/chat/completions`。通用 `/api/llm/chat/completions` 代理使用 `GENARRATIVE_LLM_PROVIDER=openai-compatible`、`GENARRATIVE_LLM_BASE_URL=https://api.vectorengine.cn/v1`、`GENARRATIVE_LLM_MODEL=gpt-5.4-mini`,未单独配置 `GENARRATIVE_LLM_API_KEY` 时可复用 `VECTOR_ENGINE_API_KEY`。排查或切换密钥后,可在本地运行: diff --git a/docs/【技术方案】微信虚拟支付接入-2026-05-26.md b/docs/【技术方案】微信虚拟支付接入-2026-05-26.md index c389d8114..2edca0208 100644 --- a/docs/【技术方案】微信虚拟支付接入-2026-05-26.md +++ b/docs/【技术方案】微信虚拟支付接入-2026-05-26.md @@ -20,7 +20,6 @@ - API 契约:`packages/shared/src/contracts/runtime.ts`、`server-rs/crates/shared-contracts/src/runtime.rs` - 后端下单与订单编排:`server-rs/crates/api-server/src/runtime_profile.rs`、`server-rs/crates/api-server/src/wechat/pay.rs` - 微信支付 / 虚拟支付协议适配:`server-rs/crates/platform-wechat/src/pay.rs` -- 微信订阅消息协议适配:`server-rs/crates/platform-wechat/src/subscribe_message.rs` - WebView 回流确认:`GET /api/profile/recharge/orders/{orderId}/wechat/events`、`POST /api/profile/recharge/orders/{orderId}/wechat/confirm` - 微信登录态保存:`server-rs/crates/platform-auth/src/lib.rs`、`server-rs/crates/module-auth/src/lib.rs` @@ -38,9 +37,6 @@ WECHAT_MINI_PROGRAM_VIRTUAL_PAYMENT_QUERY_ORDER_ENDPOINT=https://api.weixin.qq.c WECHAT_MINI_PROGRAM_VIRTUAL_PAYMENT_NOTIFY_PROVIDE_GOODS_ENDPOINT=https://api.weixin.qq.com/xpay/notify_provide_goods WECHAT_MINIPROGRAM_MESSAGE_TOKEN=<微信消息推送 Token> WECHAT_MINIPROGRAM_MESSAGE_ENCODING_AES_KEY=<微信消息推送 EncodingAESKey> -WECHAT_MINIPROGRAM_SUBSCRIBE_MESSAGE_ENABLED=true -WECHAT_MINIPROGRAM_GENERATION_RESULT_TEMPLATE_ID=m5z7BkkBhJGbcH0cdDeHaeRU2tViDEguP38XdrRRCdU -WECHAT_MINIPROGRAM_SUBSCRIBE_MESSAGE_STATE=formal WECHAT_MINI_PROGRAM_VIRTUAL_PAYMENT_ENV=0 ``` @@ -187,5 +183,4 @@ npm run spacetime:wechat-virtual-payment:reconcile -- \ - Web 侧在拉起虚拟支付后会短时轮询 `wx_pay_result`,即使小程序 `web-view` 回写 hash 没触发浏览器 `hashchange`,也必须展示回写的微信错误内容。 - WebView 返回但没有拿到 `wx_pay_result` 时,前端必须主动调用订单确认接口,并接入 `/api/profile/recharge/orders/{orderId}/wechat/events` 的 SSE 事件流作为服务端推送兜底;虚拟支付确认接口会使用当前用户后端保存的小程序 `openid` 调用官方 `/xpay/query_order`,查到已支付且契约校验通过后写入订单。后端通过消息推送或查单入账后都会发布订单更新,SSE 先推当前订单快照,再在订单结束时推 `done`。 - Web Native 二维码弹窗也必须在展示后立即订阅同一订单 SSE,收到支付回调入账后的 `paid` 快照时自动关闭二维码、刷新充值中心与全局余额并展示一次成功结果;“我已支付”只作为主动查单兜底,不能是扫码付款后的唯一状态推进入口。SSE 在等待窗口结束或短暂断线时按订单过期时间重连,关闭弹窗时必须取消订阅。 -- 小程序订阅消息用于 AI 创作生成结果通知:H5 在生成动作发起前先把页面切到生成进度态并立即调用生成 action,同时非阻塞跳转到小程序原生订阅授权页尝试请求授权;授权接受、拒绝或页面返回都不得阻塞或取消生成。原生页不得改写上一页 `webViewUrl`,避免返回后丢失 H5 当前进度页状态。通知发送只允许发生在玩法草稿生成成功或失败终态之后,api-server 使用当前用户微信登录保存的 openid 调用微信 `subscribeMessage.send`。发送失败只记录 warning,不阻断作品生成。模板 `thing1` 发送玩法模板名,`number6` 发送本次生成结算后的实际泥点扣除,失败退款后固定为 `0`;模板 `time4` 字段必须是北京时间 `YYYY-MM-DD HH:mm`。`WECHAT_MINIPROGRAM_SUBSCRIBE_MESSAGE_STATE` 支持 `formal` / `trial` / `developer`,应与当前发布环境一致。 - WebView 返回后,在订单状态拉取或 SSE 等待期间展示不可关闭遮罩“正在确认支付”,阻止用户离开或继续操作;只有确认到最终订单状态后才展示一次最终结果弹窗,不能先弹“正在支付/支付已提交”再二次弹成功。 diff --git a/docs/【玩法创作】创作主页与项目入口改版计划-2026-06-18.md b/docs/【玩法创作】创作主页与项目入口改版计划-2026-06-18.md index 2a1a3d336..971f24bc4 100644 --- a/docs/【玩法创作】创作主页与项目入口改版计划-2026-06-18.md +++ b/docs/【玩法创作】创作主页与项目入口改版计划-2026-06-18.md @@ -1,5 +1,7 @@ # 创作主页与项目入口改版计划 +> 2026-07-18 退役覆盖:本文关于旧模板入口、`/creation/`、移动端隐藏“创作 / 项目”和 `/api/creation-entry/config` 的内容均已被后续实现替代,只保留为阶段设计记录。现役口径是桌面侧边栏与移动端底部 dock 都显示“创作 / 项目 / 我的”,稳定路由为 `/creation`、`/project`、`/profile`;旧模板业务只保留历史数据壳。当前实现与验收以 `docs/technical/【架构下线】旧创作模板业务退役方案-2026-07-17.md` 为准。 + 日期:2026-06-18 ## 背景 diff --git a/docs/【玩法创作】平台入口与玩法链路-2026-05-15.md b/docs/【玩法创作】平台入口与玩法链路-2026-05-15.md index 1b613b134..013d80523 100644 --- a/docs/【玩法创作】平台入口与玩法链路-2026-05-15.md +++ b/docs/【玩法创作】平台入口与玩法链路-2026-05-15.md @@ -10,13 +10,16 @@ - `/creation` 展示基于图片编辑器的创作工具主页,只读取编辑器项目与公开编辑器素材。 - `/project` 展示当前账号的图片编辑器项目,项目卡继续进入 `/editor/canvas`。 -- “我的”不新增独立路由,切换后回到 `/`,保留头像与昵称编辑、陶泥号复制、泥点余额与账单、累计统计、泥点充值、兑换码、玩家社区、反馈与建议、通用设置、开发者 API Key 和法律信息等平台公共能力。 +- `/profile` 是“我的”稳定路由,保留头像与昵称编辑、陶泥号复制、泥点余额与账单、累计统计、泥点充值、兑换码、玩家社区、反馈与建议、通用设置、开发者 API Key 和法律信息等平台公共能力。 - 桌面顶栏保留现役项目 / 素材搜索、泥点入口和账号胶囊。搜索只筛选当前编辑器项目与已读取的公开编辑器素材,不恢复旧公开作品号搜索、旧广场、旧作品详情或旧运行态。 +- 桌面端使用公共侧边栏,移动端使用同样包含“创作 / 项目 / 我的”的三项底部 dock;点击、刷新及浏览器前进 / 后退都必须保持 URL、标题和选中态一致。 现役入口和公共资料能力只能依赖 `creation-home`、`project`、`image-editor`、公共组件及 `services/platform-entry` 等现役模块。Vite 模块门禁会拒绝 `components/rpg-entry`、`services/rpg-entry`、旧玩法目录和旧平台业务模块进入依赖图;Tailwind `@source`、TypeScript `include`、ESLint ignore 或 Vite watch ignore 都不能替代这条运行时依赖门禁。 ## 历史平台创作入口 +本节及后续玩法章节保留退役前的设计记录,其中出现的 `/api/creation-entry/config`、`/creation/`、模板工作台、公开作品和专属运行态均不是现役契约,不得用于当前实现或运维验收。 + 创作入口配置事实源在 SpacetimeDB,通过 `GET /api/creation-entry/config` 下发;后台通过 `/admin/api/creation-entry/config` 管理入口开关,通过 `/admin/api/creation-entry/config/interactions` 管理公开作品点赞 / 改造能力矩阵。前端只在展示层派生可见卡片、入口状态和作品详情互动状态,`api-server` 路由熔断也使用同一份配置。不要恢复前端硬编码入口配置文件。 当前点击底部加号进入的创作入口页承载后台公告位、创作入口页签和两列模板卡;页签中只有真实后端作品架摘要存在时才展示“最近创作”,其余为玩法模板分类。点击模板卡后直接进入对应玩法已有的入口创作表单 stage,不再经过空白占位页,也不把旧表单嵌进创作入口页;模板点击的占位 no-op、隐藏模板拦截、未知入口 no-op 和工作台启动目标统一由 `platformCreationLaunchModel.ts` 判定,壳层只执行启动前准备、错误提示和受保护动作。移动端创作入口页顶栏在 `陶泥儿` 品牌同一行显示真实账户泥点数,数据来自 `profileDashboard.walletBalance`,不得再把公告内容或活动奖池当作账号余额展示。创作入口页公告位数据优先读取 `GET /api/creation-entry/config` 的 `eventBanners` 数组,多条配置时前端自动轮播;旧 `eventBanner` 只保留字段回显与旧客户端兼容,不再作为前端公告数组的兜底来源。后台公告配置面向表单:每条公告包含标题和 HTML 内容,后台保存时序列化为后端 `eventBannersJson` 传输字段,由前端空权限沙箱 iframe 展示;旧结构化 banner 字段仅保留回显兼容,不再作为后台公告配置主格式;不得执行 JSX 或把后台代码直接注入 DOM。玩法列表不再套外部边框卡片,移动端需要压缩横向边距和两列间距;玩法卡统一按“上图、左上状态标签(仅非开放态显示)、封面右下显示 `creationTypes[].unifiedCreationSpec.mudPointCost` 经前端格式化后的泥点消耗、下方白底标题/描述”结构展示,旧契约缺少该字段时兜底 `10` 并由前端显示为 `10泥点数`,卡片高度保持紧凑但标题、描述和预估消耗点数都必须可见。创作入口页根容器不再使用 `platform-page-stage` 这类全局内容卡片壳,但继续保留 `platform-remap-surface` 作为主题和输入框样式命中钩子。创作入口页字号需要对齐平台普通 UI 档位:顶栏泥点组件、公告正文、分类 Tab 和玩法卡标题 / 副标题 / 消耗说明优先使用 `11px` 到 `14px`,不使用 `text-lg`、`text-xl` 或更大的展示级字号。草稿 Tab 继续承接作品架;底部加号入口页的“最近创作”只用 7 天内的真实后端作品架摘要判断是否展示,并从摘要里推导最近使用过的模板 ID,页面必须展示“仅显示最近7天内使用过的模板”提示,列表内容必须复用其它页签里的模板卡样式、文案和点击行为,不展示具体作品名称、摘要或生成状态,也不新增独立最近创作卡组件。RPG、RPG 之外的各玩法入口分别落到既有的 `agent-workspace`、`big-fish-agent-workspace`、`match3d-agent-workspace`、`square-hole-agent-workspace`、`jump-hop-workspace`、`wooden-fish-workspace`、`puzzle-agent-workspace`、`bark-battle-workspace`、`visual-novel-agent-workspace`、`baby-object-match-workspace`,这些入口继续承接各玩法自己的表单、草稿恢复和后续编排,不作为创作入口页内容。 diff --git a/miniprogram/app.json b/miniprogram/app.json index e7dca1cee..96b0d8daa 100644 --- a/miniprogram/app.json +++ b/miniprogram/app.json @@ -2,8 +2,7 @@ "pages": [ "pages/web-view/index", "pages/share-grid/index", - "pages/wechat-pay/index", - "pages/subscribe-message/index" + "pages/wechat-pay/index" ], "window": { "navigationBarTitleText": "陶泥儿", diff --git a/miniprogram/config.js b/miniprogram/config.js index 1c339ad26..a0cf0f002 100644 --- a/miniprogram/config.js +++ b/miniprogram/config.js @@ -15,10 +15,6 @@ const MINI_PROGRAM_APP_ID = 'wx3da23ea14ca66b65'; // 中文注释:仅作为运行时环境识别失败时的兜底;正常情况下由 wx.getAccountInfoSync 自动判断。 const MINI_PROGRAM_ENV = 'release'; -// 中文注释:AI 创作生成结果订阅消息模板,需与微信公众平台后台的模板 ID 保持一致。 -const GENERATION_RESULT_SUBSCRIBE_TEMPLATE_ID = - 'm5z7BkkBhJGbcH0cdDeHaeRU2tViDEguP38XdrRRCdU'; - // 中文注释:给 H5 加一个来源标记,用于识别微信小程序 web-view 宿主。 const WEB_VIEW_SOURCE_QUERY = { clientType: 'mini_program', @@ -29,7 +25,6 @@ module.exports = { API_BASE_URL, DEV_API_BASE_URL, DEV_WEB_VIEW_ENTRY_URL, - GENERATION_RESULT_SUBSCRIBE_TEMPLATE_ID, MINI_PROGRAM_APP_ID, MINI_PROGRAM_ENV, WEB_VIEW_ENTRY_URL, diff --git a/miniprogram/host-bridge/dispatch.js b/miniprogram/host-bridge/dispatch.js index 86425a270..e4e191397 100644 --- a/miniprogram/host-bridge/dispatch.js +++ b/miniprogram/host-bridge/dispatch.js @@ -1,13 +1,11 @@ const payment = require('./payment'); const protocol = require('./protocol'); const shareGrid = require('./shareGrid'); -const subscribeMessage = require('./subscribeMessage'); const webView = require('./webView'); module.exports = { payment, protocol, shareGrid, - subscribeMessage, webView, }; diff --git a/miniprogram/host-bridge/protocol.js b/miniprogram/host-bridge/protocol.js index 2786b378c..b0f9c69d3 100644 --- a/miniprogram/host-bridge/protocol.js +++ b/miniprogram/host-bridge/protocol.js @@ -3,7 +3,6 @@ const WECHAT_HOST_CAPABILITIES = [ 'payment.request', 'share.setTarget', 'share.open', - 'navigation.openNativePage', ]; const WECHAT_WEB_VIEW_PAGE_URL = '/pages/web-view/index'; @@ -11,12 +10,8 @@ const WECHAT_AUTH_PAGE_URL = `${WECHAT_WEB_VIEW_PAGE_URL}?authAction=login&returnTo=previous`; const WECHAT_PAY_PAGE_URL = '/pages/wechat-pay/index'; const WECHAT_SHARE_GRID_PAGE_URL = '/pages/share-grid/index'; -const WECHAT_SUBSCRIBE_MESSAGE_PAGE_URL = '/pages/subscribe-message/index'; const WECHAT_PAY_RESULT_HASH_KEY = 'wx_pay_result'; -const WECHAT_SUBSCRIBE_RESULT_HASH_KEY = 'wx_subscribe_result'; const WECHAT_PAY_RESULT_STORAGE_KEY = 'genarrative:wechat-pay-result'; -const WECHAT_SUBSCRIBE_RESULT_STORAGE_KEY = - 'genarrative:wechat-subscribe-result'; const WECHAT_SHARE_TARGET_MESSAGE_TYPE = 'genarrative:share-target'; module.exports = { @@ -27,8 +22,5 @@ module.exports = { WECHAT_PAY_RESULT_STORAGE_KEY, WECHAT_SHARE_GRID_PAGE_URL, WECHAT_SHARE_TARGET_MESSAGE_TYPE, - WECHAT_SUBSCRIBE_MESSAGE_PAGE_URL, - WECHAT_SUBSCRIBE_RESULT_HASH_KEY, - WECHAT_SUBSCRIBE_RESULT_STORAGE_KEY, WECHAT_WEB_VIEW_PAGE_URL, }; diff --git a/miniprogram/host-bridge/protocol.test.js b/miniprogram/host-bridge/protocol.test.js index 6bf38f87e..cad506a7a 100644 --- a/miniprogram/host-bridge/protocol.test.js +++ b/miniprogram/host-bridge/protocol.test.js @@ -21,10 +21,6 @@ const shareGridPath = path.resolve( process.cwd(), 'miniprogram/host-bridge/shareGrid.js', ); -const subscribeMessagePath = path.resolve( - process.cwd(), - 'miniprogram/host-bridge/subscribeMessage.js', -); const webViewPath = path.resolve( process.cwd(), 'miniprogram/host-bridge/webView.js', @@ -42,26 +38,18 @@ describe('wechat mini program host bridge protocol index', () => { ); expect(protocol.WECHAT_PAY_PAGE_URL).toBe('/pages/wechat-pay/index'); expect(protocol.WECHAT_SHARE_GRID_PAGE_URL).toBe('/pages/share-grid/index'); - expect(protocol.WECHAT_SUBSCRIBE_MESSAGE_PAGE_URL).toBe( - '/pages/subscribe-message/index', - ); expect(protocol.WECHAT_PAY_RESULT_HASH_KEY).toBe('wx_pay_result'); - expect(protocol.WECHAT_SUBSCRIBE_RESULT_HASH_KEY).toBe( - 'wx_subscribe_result', - ); }); test('dispatch index exposes current bridge ability modules', () => { const payment = loadCommonJsModule(paymentPath); const protocol = loadCommonJsModule(protocolPath); const shareGrid = loadCommonJsModule(shareGridPath); - const subscribeMessage = loadCommonJsModule(subscribeMessagePath); const webView = loadCommonJsModule(webViewPath); const dispatch = loadCommonJsModule(dispatchPath, { './payment': payment, './protocol': protocol, './shareGrid': shareGrid, - './subscribeMessage': subscribeMessage, './webView': webView, }); @@ -71,8 +59,5 @@ describe('wechat mini program host bridge protocol index', () => { ); expect(typeof dispatch.payment.requestWechatPayment).toBe('function'); expect(typeof dispatch.shareGrid.buildShareGridTilePlan).toBe('function'); - expect(typeof dispatch.subscribeMessage.buildSubscribeResultValue).toBe( - 'function', - ); }); }); diff --git a/package.json b/package.json index 45f0ab297..d9142adc2 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "check:api-server-env": "node scripts/check-api-server-env.mjs", "check:admin-account-procedures": "node scripts/check-admin-account-procedures.mjs", "check:spacetime-runtime-access": "node scripts/check-spacetime-runtime-access.mjs", + "check:module-runtime-artifact": "node scripts/check-module-runtime-artifact.mjs", "deploy:rust:remote": "node scripts/run-bash-script.mjs scripts/deploy-rust-remote.sh", "build:production-release": "node scripts/run-bash-script.mjs scripts/build-production-release.sh", "build:rust:ubuntu": "node scripts/run-bash-script.mjs scripts/deploy-rust-remote.sh", @@ -76,7 +77,7 @@ "spine-export-validator:typecheck": "npm --prefix tools/spine-json-export-validator run typecheck", "spine-export-validator:build": "npm --prefix tools/spine-json-export-validator run build", "check:wechat-miniprogram-auth": "node scripts/check-wechat-miniprogram-auth-smoke.mjs", - "check:server-rs-ddd": "npm run check:spacetime-schema && npm run check:spacetime-runtime-access && node scripts/check-server-rs-ddd-boundaries.mjs", + "check:server-rs-ddd": "npm run check:spacetime-schema && npm run check:spacetime-runtime-access && npm run check:module-runtime-artifact && node scripts/check-server-rs-ddd-boundaries.mjs", "lint:eslint": "eslint . --ext .ts,.tsx,.js,.mjs,.cjs --max-warnings 0", "lint:guardrails": "npm run lint:eslint", "typecheck": "tsc -p tsconfig.typecheck-guardrails.json --noEmit", @@ -94,7 +95,6 @@ "container:logs": "node scripts/container-compose.mjs logs", "container:ps": "node scripts/container-compose.mjs ps", "container:config": "node scripts/container-compose.mjs config", - "container:k6": "node scripts/container-compose.mjs k6", "container:worker-smoke": "node scripts/container-worker-smoke.mjs", "check": "npm run lint && npm run test && npm run build && npm run check:content && npm run check:native-shells", "check:data": "node scripts/run-tsx.cjs scripts/validate-content.ts", diff --git a/packages/shared/src/contracts/auth.ts b/packages/shared/src/contracts/auth.ts index 84eb89ca7..5bb17107b 100644 --- a/packages/shared/src/contracts/auth.ts +++ b/packages/shared/src/contracts/auth.ts @@ -27,13 +27,6 @@ export type PublicUserSearchResponse = { user: PublicUserSummary; }; -export type RuntimeGuestTokenResponse = { - token: string; - expiresAt: string; - subject: string; - scope: string; -}; - export type AuthEntryRequest = { phone: string; password: string; diff --git a/packages/shared/src/contracts/hostBridge.test.ts b/packages/shared/src/contracts/hostBridge.test.ts index b5999566f..eee26782d 100644 --- a/packages/shared/src/contracts/hostBridge.test.ts +++ b/packages/shared/src/contracts/hostBridge.test.ts @@ -244,7 +244,6 @@ describe('HostBridge shared contract helpers', () => { 'payment.request', 'share.setTarget', 'share.open', - 'navigation.openNativePage', ]); for (const nativeAppProfile of [ HOST_BRIDGE_EXPO_MOBILE_BASE_CAPABILITIES, diff --git a/packages/shared/src/contracts/hostBridge.ts b/packages/shared/src/contracts/hostBridge.ts index e4ace5b92..a6aee6328 100644 --- a/packages/shared/src/contracts/hostBridge.ts +++ b/packages/shared/src/contracts/hostBridge.ts @@ -132,7 +132,6 @@ export const HOST_BRIDGE_WECHAT_MINI_PROGRAM_CAPABILITIES: readonly HostBridgeCa 'payment.request', 'share.setTarget', 'share.open', - 'navigation.openNativePage', ]; export const HOST_BRIDGE_EXPO_MOBILE_BASE_CAPABILITIES: readonly HostBridgeCapability[] = [ diff --git a/miniprogram/host-bridge/subscribeMessage.js b/retired/legacy-creation-templates/frontend/miniprogram/host-bridge/subscribeMessage.js similarity index 100% rename from miniprogram/host-bridge/subscribeMessage.js rename to retired/legacy-creation-templates/frontend/miniprogram/host-bridge/subscribeMessage.js diff --git a/miniprogram/host-bridge/subscribeMessage.test.js b/retired/legacy-creation-templates/frontend/miniprogram/host-bridge/subscribeMessage.test.js similarity index 100% rename from miniprogram/host-bridge/subscribeMessage.test.js rename to retired/legacy-creation-templates/frontend/miniprogram/host-bridge/subscribeMessage.test.js diff --git a/miniprogram/pages/subscribe-message/index.js b/retired/legacy-creation-templates/frontend/miniprogram/pages/subscribe-message/index.js similarity index 100% rename from miniprogram/pages/subscribe-message/index.js rename to retired/legacy-creation-templates/frontend/miniprogram/pages/subscribe-message/index.js diff --git a/miniprogram/pages/subscribe-message/index.json b/retired/legacy-creation-templates/frontend/miniprogram/pages/subscribe-message/index.json similarity index 100% rename from miniprogram/pages/subscribe-message/index.json rename to retired/legacy-creation-templates/frontend/miniprogram/pages/subscribe-message/index.json diff --git a/miniprogram/pages/subscribe-message/index.wxml b/retired/legacy-creation-templates/frontend/miniprogram/pages/subscribe-message/index.wxml similarity index 100% rename from miniprogram/pages/subscribe-message/index.wxml rename to retired/legacy-creation-templates/frontend/miniprogram/pages/subscribe-message/index.wxml diff --git a/miniprogram/pages/subscribe-message/index.wxss b/retired/legacy-creation-templates/frontend/miniprogram/pages/subscribe-message/index.wxss similarity index 100% rename from miniprogram/pages/subscribe-message/index.wxss rename to retired/legacy-creation-templates/frontend/miniprogram/pages/subscribe-message/index.wxss diff --git a/miniprogram/shell/subscribeMessage.js b/retired/legacy-creation-templates/frontend/miniprogram/shell/subscribeMessage.js similarity index 100% rename from miniprogram/shell/subscribeMessage.js rename to retired/legacy-creation-templates/frontend/miniprogram/shell/subscribeMessage.js diff --git a/miniprogram/shell/subscribeMessage.test.js b/retired/legacy-creation-templates/frontend/miniprogram/shell/subscribeMessage.test.js similarity index 100% rename from miniprogram/shell/subscribeMessage.test.js rename to retired/legacy-creation-templates/frontend/miniprogram/shell/subscribeMessage.test.js diff --git a/scripts/check-api-server-env.mjs b/scripts/check-api-server-env.mjs index 4b6f87b04..2bd4de810 100644 --- a/scripts/check-api-server-env.mjs +++ b/scripts/check-api-server-env.mjs @@ -31,7 +31,7 @@ console.log('[api-server-env] 认证短信配置检查'); printStatus('SMS_AUTH_ENABLED', env.SMS_AUTH_ENABLED === 'true'); printStatus('SMS_AUTH_PROVIDER', hasValue(env.SMS_AUTH_PROVIDER)); -console.log('[api-server-env] 拼图真实生成配置检查'); +console.log('[api-server-env] 编辑器真实生成配置检查'); for (const key of REQUIRED_FOR_PUZZLE_GENERATION) { const present = hasValue(env[key]); printStatus(key, present); diff --git a/scripts/check-module-runtime-artifact.mjs b/scripts/check-module-runtime-artifact.mjs new file mode 100644 index 000000000..00992cbab --- /dev/null +++ b/scripts/check-module-runtime-artifact.mjs @@ -0,0 +1,367 @@ +import { spawnSync } from 'node:child_process'; +import { existsSync, readFileSync, statSync } from 'node:fs'; +import { dirname, isAbsolute, join } from 'node:path'; +import { fileURLToPath } from 'node:url'; + +const scriptDir = dirname(fileURLToPath(import.meta.url)); +const repoRoot = join(scriptDir, '..'); +const manifestPath = 'server-rs/Cargo.toml'; +const targetName = 'module_runtime'; + +const retiredSymbolSignatures = [ + 'CreationEntryConfigSnapshot', + 'RuntimeBrowseHistorySnapshot', + 'RuntimeProfilePlayedWorldSnapshot', + 'RuntimeProfileSaveArchiveSnapshot', + 'build_runtime_snapshot_record', + 'prepare_runtime_browse_history_entries', + 'resolve_runtime_profile_save_archive_meta', +]; + +const retiredStringSignatures = [ + '/creation-type-references/puzzle.webp', + 'customWorldProfile', + 'storyEngineMemory', +]; + +const requiredAbiSignatures = [ + 'RuntimeBrowseHistoryThemeMode', + 'RuntimeProfileWalletLedgerSourceType', + 'RuntimeSettingSnapshot', +]; + +function cargoDiagnostics(stdout) { + const diagnostics = []; + + for (const line of stdout.split(/\r?\n/u)) { + if (!line.trim()) { + continue; + } + + try { + const message = JSON.parse(line); + if (message.reason === 'compiler-message' && message.message?.rendered) { + diagnostics.push(message.message.rendered.trimEnd()); + } + } catch { + // Cargo may emit a non-JSON line before failing to start rustc. + } + } + + return diagnostics; +} + +function failBuild(result) { + console.error( + 'module-runtime 编译产物门禁失败:无法完成 module-runtime 构建。', + ); + + for (const diagnostic of cargoDiagnostics(result.stdout ?? '')) { + console.error(diagnostic); + } + + if (result.stderr) { + console.error(result.stderr.trimEnd()); + } + + if (result.error) { + console.error(`- 无法执行 Cargo:${result.error.message}`); + } + + process.exit(result.status || 1); +} + +function collectArtifactPaths(stdout, artifactTargetName = targetName) { + const paths = new Set(); + + for (const line of stdout.split(/\r?\n/u)) { + if (!line.trim()) { + continue; + } + + let message; + try { + message = JSON.parse(line); + } catch { + continue; + } + + if ( + message.reason !== 'compiler-artifact' || + message.target?.name !== artifactTargetName || + !message.target?.kind?.includes('lib') + ) { + continue; + } + + for (const fileName of message.filenames ?? []) { + if (!fileName.endsWith('.rlib') && !fileName.endsWith('.rmeta')) { + continue; + } + + const absolutePath = isAbsolute(fileName) + ? fileName + : join(repoRoot, fileName); + if (existsSync(absolutePath)) { + paths.add(absolutePath); + } + } + } + + return [...paths]; +} + +function latestRlib(paths) { + const rlibs = paths.filter((path) => path.endsWith('.rlib')); + return rlibs.sort( + (left, right) => statSync(right).mtimeMs - statSync(left).mtimeMs, + )[0]; +} + +function parseArchiveObjectMembers(artifact) { + const archiveMagic = artifact.subarray(0, 8).toString('ascii'); + if (archiveMagic !== '!\n') { + throw new Error('产物不是可识别的 Unix rlib 归档'); + } + + const objectMembers = []; + let longNameTable = null; + let offset = 8; + + while (offset + 60 <= artifact.length) { + const header = artifact.subarray(offset, offset + 60); + if (header.subarray(58, 60).toString('ascii') !== '`\n') { + throw new Error(`rlib 成员头损坏,偏移量 ${offset}`); + } + + const rawName = header.subarray(0, 16).toString('ascii').trim(); + const sizeText = header.subarray(48, 58).toString('ascii').trim(); + const size = Number.parseInt(sizeText, 10); + if (!Number.isSafeInteger(size) || size < 0) { + throw new Error(`rlib 成员大小无效:${sizeText || ''}`); + } + + let contentStart = offset + 60; + const contentEnd = contentStart + size; + if (contentEnd > artifact.length) { + throw new Error(`rlib 成员越界,偏移量 ${offset}`); + } + + let memberName = rawName.replace(/\/$/u, ''); + if (rawName === '//') { + longNameTable = artifact.subarray(contentStart, contentEnd); + } else if (/^\/\d+$/u.test(rawName) && longNameTable) { + const nameOffset = Number.parseInt(rawName.slice(1), 10); + const nameEnd = longNameTable.indexOf(0x0a, nameOffset); + const resolvedEnd = nameEnd >= 0 ? nameEnd : longNameTable.length; + memberName = longNameTable + .subarray(nameOffset, resolvedEnd) + .toString('utf8') + .replace(/\/$/u, ''); + } else if (rawName.startsWith('#1/')) { + const nameLength = Number.parseInt(rawName.slice(3), 10); + if (!Number.isSafeInteger(nameLength) || nameLength > size) { + throw new Error(`rlib BSD 扩展成员名长度无效:${rawName}`); + } + memberName = artifact + .subarray(contentStart, contentStart + nameLength) + .toString('utf8'); + contentStart += nameLength; + } + + if (memberName.endsWith('.o')) { + objectMembers.push(artifact.subarray(contentStart, contentEnd)); + } + + offset = contentEnd + (size % 2); + } + + if (objectMembers.length === 0) { + throw new Error('rlib 中没有可扫描的 Rust object 成员'); + } + + return objectMembers; +} + +console.log('构建 module-runtime 并检查退役业务签名...'); + +const cargo = process.env.CARGO || 'cargo'; +const buildResult = spawnSync( + cargo, + [ + 'build', + '--manifest-path', + manifestPath, + '--package', + 'module-runtime', + '--all-features', + '--message-format=json-render-diagnostics', + '--color=never', + ], + { + cwd: repoRoot, + encoding: 'utf8', + env: process.env, + maxBuffer: 256 * 1024 * 1024, + stdio: ['ignore', 'pipe', 'pipe'], + }, +); + +if (buildResult.error || buildResult.status !== 0) { + failBuild(buildResult); +} + +const artifactPaths = collectArtifactPaths(buildResult.stdout); +const artifactPath = latestRlib(artifactPaths); + +if (!artifactPath) { + console.error( + 'module-runtime 编译产物门禁失败:Cargo JSON 中没有 module_runtime 的 rlib。', + ); + console.error( + '- rmeta 会保留被 cfg 禁用的源码 token,无法作为退役业务负向扫描依据;请确认执行的是 cargo build 而不是 cargo check。', + ); + process.exit(1); +} + +const artifact = readFileSync(artifactPath); +let objectMembers; +try { + objectMembers = parseArchiveObjectMembers(artifact); +} catch (error) { + console.error(`module-runtime 编译产物门禁失败:${artifactPath}`); + console.error(`- 无法读取 rlib object 成员:${error.message}`); + process.exit(1); +} + +const retiredSymbolMatches = retiredSymbolSignatures.filter((signature) => + objectMembers.some((member) => member.includes(Buffer.from(signature))), +); +const retiredStringMatches = retiredStringSignatures.filter((signature) => + artifact.includes(Buffer.from(signature)), +); +const missingAbiSignatures = requiredAbiSignatures.filter( + (signature) => + !objectMembers.some((member) => member.includes(Buffer.from(signature))), +); + +if ( + retiredSymbolMatches.length > 0 || + retiredStringMatches.length > 0 || + missingAbiSignatures.length > 0 +) { + console.error(`module-runtime 编译产物门禁失败:${artifactPath}`); + + for (const signature of retiredSymbolMatches) { + console.error(`- 退役业务符号仍存在:${signature}`); + } + + for (const signature of retiredStringMatches) { + console.error(`- 退役业务字符串仍存在:${signature}`); + } + + for (const signature of missingAbiSignatures) { + console.error(`- 必须保留的 ABI 签名缺失:${signature}`); + } + + process.exit(1); +} + +console.log( + `module-runtime 编译产物门禁通过:${retiredSymbolSignatures.length} 个退役符号与 ${retiredStringSignatures.length} 个退役字符串均不存在,${requiredAbiSignatures.length} 个兼容 ABI 签名均存在。`, +); +console.log(`已检查产物:${artifactPath}`); + +function checkPlatformRetirementArtifact({ + packageName, + artifactTargetName, + symbolSignatures, + stringSignatures, +}) { + const result = spawnSync( + cargo, + [ + 'build', + '--manifest-path', + manifestPath, + '--package', + packageName, + '--all-features', + '--message-format=json-render-diagnostics', + '--color=never', + ], + { + cwd: repoRoot, + encoding: 'utf8', + env: process.env, + maxBuffer: 256 * 1024 * 1024, + stdio: ['ignore', 'pipe', 'pipe'], + }, + ); + if (result.error || result.status !== 0) { + console.error(`${packageName} 编译产物门禁失败:无法完成构建。`); + for (const diagnostic of cargoDiagnostics(result.stdout ?? '')) { + console.error(diagnostic); + } + if (result.stderr) { + console.error(result.stderr.trimEnd()); + } + process.exit(result.status || 1); + } + + const paths = collectArtifactPaths(result.stdout, artifactTargetName); + const path = latestRlib(paths); + if (!path) { + console.error(`${packageName} 编译产物门禁失败:Cargo JSON 中没有 rlib。`); + process.exit(1); + } + const bytes = readFileSync(path); + let members; + try { + members = parseArchiveObjectMembers(bytes); + } catch (error) { + console.error(`${packageName} 编译产物门禁失败:${error.message}`); + process.exit(1); + } + const symbolMatches = symbolSignatures.filter((signature) => + members.some((member) => member.includes(Buffer.from(signature))), + ); + const stringMatches = stringSignatures.filter((signature) => + bytes.includes(Buffer.from(signature)), + ); + if (symbolMatches.length > 0 || stringMatches.length > 0) { + console.error(`${packageName} 编译产物门禁失败:${path}`); + for (const signature of symbolMatches) { + console.error(`- 退役业务符号仍存在:${signature}`); + } + for (const signature of stringMatches) { + console.error(`- 退役业务字符串仍存在:${signature}`); + } + process.exit(1); + } + console.log( + `${packageName} 编译产物门禁通过:${symbolSignatures.length} 个退役符号与 ${stringSignatures.length} 个退役字符串均不存在。`, + ); + console.log(`已检查产物:${path}`); +} + +checkPlatformRetirementArtifact({ + packageName: 'platform-auth', + artifactTargetName: 'platform_auth', + symbolSignatures: [ + 'RuntimeGuestTokenClaims', + 'sign_runtime_guest_token', + 'verify_runtime_guest_token', + ], + stringSignatures: ['runtime:public-play', 'runtime_guest'], +}); + +checkPlatformRetirementArtifact({ + packageName: 'platform-wechat', + artifactTargetName: 'platform_wechat', + symbolSignatures: ['WechatSubscribeMessageRequest', 'send_subscribe_message'], + stringSignatures: [ + '/cgi-bin/message/subscribe/send', + 'subscribeMessage.send', + ], +}); diff --git a/scripts/check-native-shells.mjs b/scripts/check-native-shells.mjs index 73a68dde8..221417ebd 100644 --- a/scripts/check-native-shells.mjs +++ b/scripts/check-native-shells.mjs @@ -256,32 +256,6 @@ const wechatCapabilityFlowContracts = [ 'miniprogram/shell/shareGrid.test.js', ], }, - { - capability: 'navigation.openNativePage', - files: [ - 'miniprogram/host-bridge/protocol.js', - 'miniprogram/host-bridge/subscribeMessage.js', - 'miniprogram/shell/subscribeMessage.js', - 'miniprogram/pages/subscribe-message/index.js', - 'src/services/wechatMiniProgramSubscribe.ts', - ], - snippets: [ - ['miniprogram/host-bridge/protocol.js', 'WECHAT_SUBSCRIBE_MESSAGE_PAGE_URL'], - ['miniprogram/host-bridge/subscribeMessage.js', 'wx.requestSubscribeMessage'], - ['miniprogram/host-bridge/subscribeMessage.js', 'createSubscribeMessagePageController'], - ['miniprogram/shell/subscribeMessage.js', 'createSubscribeMessagePage'], - ['miniprogram/pages/subscribe-message/index.js', 'GENERATION_RESULT_SUBSCRIBE_TEMPLATE_ID'], - ['src/services/wechatMiniProgramSubscribe.ts', 'requestGenerationResultSubscribePermission'], - ['src/services/wechatMiniProgramSubscribe.ts', 'navigateHostNativePage'], - ['src/services/wechatMiniProgramSubscribe.ts', 'MINI_PROGRAM_SUBSCRIBE_MESSAGE_PAGE_URL'], - ], - tests: [ - 'miniprogram/host-bridge/protocol.test.js', - 'miniprogram/host-bridge/subscribeMessage.test.js', - 'miniprogram/shell/subscribeMessage.test.js', - 'src/services/wechatMiniProgramSubscribe.test.ts', - ], - }, ]; const mobileCapabilityFlowContracts = [ { @@ -1375,8 +1349,6 @@ const expectedWechatHostBridgeFiles = [ 'protocol.test.js', 'shareGrid.js', 'shareGrid.test.js', - 'subscribeMessage.js', - 'subscribeMessage.test.js', 'webView.js', 'webView.test.js', ]; @@ -1385,14 +1357,11 @@ const expectedWechatShellFiles = [ 'payment.test.js', 'shareGrid.js', 'shareGrid.test.js', - 'subscribeMessage.js', - 'subscribeMessage.test.js', 'webView.js', 'webView.test.js', ]; const expectedWechatPageFilesByRoute = { 'share-grid': ['index.js', 'index.json', 'index.wxml', 'index.wxss'], - 'subscribe-message': ['index.js', 'index.json', 'index.wxml', 'index.wxss'], 'web-view': [ 'index.js', 'index.json', @@ -1516,7 +1485,7 @@ const expectedHostBridgeModuleTaxonomy = { ], mobileOnly: ['bridge', 'haptics', 'scanner'], desktopOnly: ['mod', 'title'], - wechatOnly: ['payment', 'shareGrid', 'subscribeMessage', 'webView'], + wechatOnly: ['payment', 'shareGrid', 'webView'], }; const documentedShellLayerGroups = [ { @@ -1677,13 +1646,10 @@ const wechatShellTests = [ 'miniprogram/host-bridge/webView.test.js', 'miniprogram/host-bridge/payment.test.js', 'miniprogram/host-bridge/shareGrid.test.js', - 'miniprogram/host-bridge/subscribeMessage.test.js', 'miniprogram/shell/webView.test.js', 'miniprogram/shell/payment.test.js', 'miniprogram/shell/shareGrid.test.js', - 'miniprogram/shell/subscribeMessage.test.js', 'miniprogram/pages/web-view/index.style.test.js', - 'src/services/wechatMiniProgramSubscribe.test.ts', 'scripts/miniprogram-web-view-auth.test.ts', ]; @@ -3155,18 +3121,12 @@ function assertWechatMiniProgramRouteParity() { 'src/services/host-bridge/hostBridge.ts', 'utf8', ); - const h5SubscribeSource = fs.readFileSync( - 'src/services/wechatMiniProgramSubscribe.ts', - 'utf8', - ); - assertSameList( appConfig.pages ?? [], [ protocol.WECHAT_WEB_VIEW_PAGE_URL, protocol.WECHAT_SHARE_GRID_PAGE_URL, protocol.WECHAT_PAY_PAGE_URL, - protocol.WECHAT_SUBSCRIBE_MESSAGE_PAGE_URL, ].map(pageRouteFromMiniProgramUrl), 'wechat mini program app pages', ); @@ -3185,16 +3145,6 @@ function assertWechatMiniProgramRouteParity() { } } - const h5SubscribePageUrl = extractStringConst( - h5SubscribeSource, - 'MINI_PROGRAM_SUBSCRIBE_MESSAGE_PAGE_URL', - ); - if (h5SubscribePageUrl !== protocol.WECHAT_SUBSCRIBE_MESSAGE_PAGE_URL) { - throw new Error( - `H5 subscribe page URL drifted: expected ${protocol.WECHAT_SUBSCRIBE_MESSAGE_PAGE_URL} but got ${h5SubscribePageUrl}`, - ); - } - if ( extractStringConst(webViewBridgeSource, 'WEB_VIEW_SHARE_PATH') !== protocol.WECHAT_WEB_VIEW_PAGE_URL @@ -3584,45 +3534,6 @@ function assertWechatPaymentResultBoundaries() { } } -function assertWechatSubscribeResultBoundaries() { - const subscribeSource = fs.readFileSync( - 'miniprogram/host-bridge/subscribeMessage.js', - 'utf8', - ); - const subscribeTestSource = fs.readFileSync( - 'miniprogram/host-bridge/subscribeMessage.test.js', - 'utf8', - ); - - for (const snippet of [ - "WECHAT_SUBSCRIBE_UNAVAILABLE_REASON = 'wechat subscribe unavailable'", - 'function logWechatSubscribeFailure(label, _error)', - 'console.error(`[subscribe-message] ${label}`)', - "logWechatSubscribeFailure('request failed', error)", - 'WECHAT_SUBSCRIBE_UNAVAILABLE_REASON', - ]) { - if (!subscribeSource.includes(snippet)) { - throw new Error(`wechat subscribe bridge must include ${snippet}`); - } - } - if ( - subscribeSource.includes("error && error.errMsg ? error.errMsg : 'failed'") || - subscribeSource.includes("console.error('[subscribe-message] request failed', error)") - ) { - throw new Error('wechat subscribe bridge must not expose native subscribe errors to H5'); - } - for (const snippet of [ - 'hides requestSubscribeMessage native failure details from H5 result', - 'wechat%20subscribe%20unavailable', - "expect(console.error).toHaveBeenCalledWith('[subscribe-message] request failed')", - 'expect(console.error.mock.calls.flat()).not.toContain(subscribeError)', - ]) { - if (!subscribeTestSource.includes(snippet)) { - throw new Error(`wechat subscribe bridge test must include ${snippet}`); - } - } -} - function assertWechatAuthFailureBoundaries() { const webViewShellSource = fs.readFileSync( 'miniprogram/shell/webView.js', @@ -4183,9 +4094,6 @@ assertH5NativeAppRouteFlows(); console.log('[check:native-shells] wechat-payment-result-boundaries'); assertWechatPaymentResultBoundaries(); -console.log('[check:native-shells] wechat-subscribe-result-boundaries'); -assertWechatSubscribeResultBoundaries(); - console.log('[check:native-shells] wechat-auth-failure-boundaries'); assertWechatAuthFailureBoundaries(); diff --git a/scripts/check-pingora-canary-docker.mjs b/scripts/check-pingora-canary-docker.mjs index 0dcef71bb..4b4f888ba 100644 --- a/scripts/check-pingora-canary-docker.mjs +++ b/scripts/check-pingora-canary-docker.mjs @@ -141,12 +141,6 @@ async function main() { GENARRATIVE_PINGORA_GATEWAY_ADMIN_API_MAX_CONCURRENT: '16', GENARRATIVE_PINGORA_GATEWAY_ADMIN_API_RATE_PER_SECOND: '100', GENARRATIVE_PINGORA_GATEWAY_ADMIN_API_BURST: '100', - GENARRATIVE_PINGORA_GATEWAY_GALLERY_LIST_MAX_CONCURRENT: '16', - GENARRATIVE_PINGORA_GATEWAY_GALLERY_LIST_RATE_PER_SECOND: '100', - GENARRATIVE_PINGORA_GATEWAY_GALLERY_LIST_BURST: '100', - GENARRATIVE_PINGORA_GATEWAY_GALLERY_DETAIL_MAX_CONCURRENT: '16', - GENARRATIVE_PINGORA_GATEWAY_GALLERY_DETAIL_RATE_PER_SECOND: '100', - GENARRATIVE_PINGORA_GATEWAY_GALLERY_DETAIL_BURST: '100', GENARRATIVE_PINGORA_GATEWAY_SPACETIME_MAX_CONCURRENT: '16', GENARRATIVE_PINGORA_GATEWAY_SPACETIME_RATE_PER_SECOND: '100', GENARRATIVE_PINGORA_GATEWAY_SPACETIME_BURST: '100', diff --git a/scripts/check-pingora-gateway-smoke.mjs b/scripts/check-pingora-gateway-smoke.mjs index f07185d66..a9b69e170 100644 --- a/scripts/check-pingora-gateway-smoke.mjs +++ b/scripts/check-pingora-gateway-smoke.mjs @@ -180,12 +180,6 @@ async function main() { GENARRATIVE_PINGORA_GATEWAY_ADMIN_API_MAX_CONCURRENT: '1', GENARRATIVE_PINGORA_GATEWAY_ADMIN_API_RATE_PER_SECOND: '0', GENARRATIVE_PINGORA_GATEWAY_ADMIN_API_BURST: '0', - GENARRATIVE_PINGORA_GATEWAY_GALLERY_LIST_MAX_CONCURRENT: '16', - GENARRATIVE_PINGORA_GATEWAY_GALLERY_LIST_RATE_PER_SECOND: '100', - GENARRATIVE_PINGORA_GATEWAY_GALLERY_LIST_BURST: '100', - GENARRATIVE_PINGORA_GATEWAY_GALLERY_DETAIL_MAX_CONCURRENT: '16', - GENARRATIVE_PINGORA_GATEWAY_GALLERY_DETAIL_RATE_PER_SECOND: '100', - GENARRATIVE_PINGORA_GATEWAY_GALLERY_DETAIL_BURST: '100', GENARRATIVE_PINGORA_GATEWAY_SPACETIME_MAX_CONCURRENT: '16', GENARRATIVE_PINGORA_GATEWAY_SPACETIME_RATE_PER_SECOND: '100', GENARRATIVE_PINGORA_GATEWAY_SPACETIME_BURST: '100', @@ -593,6 +587,17 @@ async function runSmokeCases( response.headers['cache-control'] === 'no-cache', }, ); + await expectHttp( + baseUrl, + '/profile', + 200, + 'site-shell', + '个人页深链回退 index.html', + { + validate: (response) => + response.headers['cache-control'] === 'no-cache', + }, + ); await expectHttp( baseUrl, '/PROJECT/', diff --git a/scripts/check-pingora-route-parity.mjs b/scripts/check-pingora-route-parity.mjs index 718223ecf..53c3be5d5 100644 --- a/scripts/check-pingora-route-parity.mjs +++ b/scripts/check-pingora-route-parity.mjs @@ -23,8 +23,6 @@ const VALID_STATIC_ROOTS = new Set(['web', 'acme']); const VALID_STATIC_MODES = new Set(['exact', 'spa_fallback']); const VALID_PROTECTION_CLASSES = new Set([ 'admin_api', - 'gallery_list', - 'gallery_detail', 'api', 'spacetime', ]); @@ -44,6 +42,7 @@ const REQUIRED_ROUTE_IDS = [ 'readyz_forbidden', 'generated_assets_forbidden', 'web_spa_fallback', + 'profile_spa_fallback', 'web_spa_case_trailing_slash', 'web_unknown_path_exact', 'creation_unknown_path_exact', diff --git a/scripts/check-production-ops-guardrails.mjs b/scripts/check-production-ops-guardrails.mjs index 49c1dfc79..83790184a 100644 --- a/scripts/check-production-ops-guardrails.mjs +++ b/scripts/check-production-ops-guardrails.mjs @@ -6446,11 +6446,6 @@ const checks = [ includes: 'GENARRATIVE_PINGORA_GATEWAY_API_MAX_CONCURRENT', reason: 'Pingora 网关配置示例必须保留通用 API 并发保护参数。', }, - { - file: 'deploy/pingora/pingora-gateway.env.example', - includes: 'GENARRATIVE_PINGORA_GATEWAY_GALLERY_LIST_RATE_PER_SECOND', - reason: 'Pingora 网关配置示例必须保留公开列表 RPS 保护参数。', - }, { file: 'deploy/pingora/pingora-gateway.env.example', includes: 'GENARRATIVE_PINGORA_GATEWAY_ACCESS_LOG_FILE', diff --git a/scripts/container-compose.mjs b/scripts/container-compose.mjs index 35a4bed99..4ce116223 100644 --- a/scripts/container-compose.mjs +++ b/scripts/container-compose.mjs @@ -11,7 +11,7 @@ const composeFile = path.join('deploy', 'container', 'docker-compose.loadtest.ym const envExamplePath = path.join('deploy', 'container', 'api-server.env.example'); const envPath = path.join('deploy', 'container', 'api-server.env'); -const supportedCommands = new Set(['init', 'build', 'up', 'down', 'logs', 'ps', 'config', 'k6']); +const supportedCommands = new Set(['init', 'build', 'up', 'down', 'logs', 'ps', 'config']); if (command === 'help' || !supportedCommands.has(command)) { printHelp(command !== 'help'); @@ -66,8 +66,6 @@ function buildComposeArgs(selectedCommand, extraArgs) { return [...baseArgs, 'ps', ...extraArgs]; case 'config': return [...baseArgs, 'config', ...(printComposeConfig ? [] : ['--quiet']), ...extraArgs]; - case 'k6': - return [...baseArgs, '--profile', 'loadtest', 'run', '--rm', 'k6', ...extraArgs]; default: throw new Error(`unsupported command: ${selectedCommand}`); } @@ -94,6 +92,5 @@ Commands: container:logs 查看容器日志 container:ps 查看容器状态 container:config 校验 compose 配置,传 -- --print 可展开完整配置 - container:k6 在 compose 网络内运行 k6 `); } diff --git a/scripts/container-worker-smoke.mjs b/scripts/container-worker-smoke.mjs index 689e928fa..3c93cec23 100644 --- a/scripts/container-worker-smoke.mjs +++ b/scripts/container-worker-smoke.mjs @@ -440,8 +440,6 @@ GENARRATIVE_EXTERNAL_GENERATION_WORKER_CONCURRENCY=1 GENARRATIVE_EXTERNAL_GENERATION_WORKER_POLL_INTERVAL_MS=500 GENARRATIVE_EXTERNAL_GENERATION_WORKER_LEASE_SECONDS=60 GENARRATIVE_API_MAX_CONCURRENT_REQUESTS=64 -GENARRATIVE_API_GALLERY_MAX_CONCURRENT_REQUESTS=32 -GENARRATIVE_API_DETAIL_MAX_CONCURRENT_REQUESTS=16 GENARRATIVE_API_ADMIN_MAX_CONCURRENT_REQUESTS=8 GENARRATIVE_TRACKING_OUTBOX_ENABLED=false GENARRATIVE_TRACKING_OUTBOX_DIR=/var/lib/genarrative/tracking-outbox @@ -551,7 +549,7 @@ async function enqueueSmokeJob(options = {}) { dedupe_key: `worker-smoke:${label}:${suffix}`, job_kind: 'worker_smoke_unsupported', owner_user_id: 'worker-smoke-user', - source_module: 'worker-smoke', + source_module: 'editor-canvas', source_entity_id: `worker-smoke-entity-${suffix}`, request_label: `worker-smoke ${label}`, request_payload_json: JSON.stringify({label, suffix}), diff --git a/scripts/loadtest/README.md b/scripts/loadtest/README.md index 2f071e8de..0e1dbb41e 100644 --- a/scripts/loadtest/README.md +++ b/scripts/loadtest/README.md @@ -1,5 +1,7 @@ # Genarrative 作品列表 K6 压测 +> 2026-07-18 退役:本文与本目录只保留旧公开作品 / gallery 压测历史,`container:k6` 和 compose `k6` 运行目标已经下线;不得把这些脚本用于当前容量验收或恢复旧业务接口。 + 本目录用于对“作品列表/公开广场”读接口做本地压测。数据源来自私有 SpacetimeDB migration,但提取脚本只输出作品 profile 白名单表,并对用户、作者、作品号、asset id 等标识做稳定映射。 ## 文件 diff --git a/scripts/vite-retired-css-plugin.test.ts b/scripts/vite-retired-css-plugin.test.ts index 20f482cae..21b8bd5c5 100644 --- a/scripts/vite-retired-css-plugin.test.ts +++ b/scripts/vite-retired-css-plugin.test.ts @@ -1,7 +1,15 @@ +import { readdir } from 'node:fs/promises'; +import path from 'node:path'; + +import { ESLint } from 'eslint'; import type { Plugin } from 'vite'; import { describe, expect, it } from 'vitest'; -import viteConfig from '../vite.config'; +import viteConfig, { + isForbiddenPublicAssetPath, + isRetiredApiPath, + isRetiredFrontendModuleId, +} from '../vite.config'; async function resolveVitePlugin(name: string) { const resolvedConfig = @@ -16,6 +24,31 @@ function resolveRetiredCssPlugin() { return resolveVitePlugin('retired-creation-template-css'); } +function workspacePath(relativePath: string) { + return path.resolve(process.cwd(), relativePath).replaceAll('\\', '/'); +} + +async function readTypeScriptSourceFiles(directory: string): Promise { + const entries = await readdir(directory, { withFileTypes: true }); + const files = await Promise.all( + entries.map(async (entry) => { + const entryPath = path.join(directory, entry.name); + if (entry.isDirectory()) { + return readTypeScriptSourceFiles(entryPath); + } + if ( + !entry.isFile() || + !/\.(?:ts|tsx)$/u.test(entry.name) || + entry.name.endsWith('.d.ts') + ) { + return []; + } + return [entryPath.replaceAll('\\', '/')]; + }), + ); + return files.flat(); +} + describe('retired creation template CSS plugin', () => { it('runs before Tailwind turns source CSS into a Vite JavaScript module', async () => { const plugin = await resolveRetiredCssPlugin(); @@ -35,13 +68,15 @@ describe('retired creation template CSS plugin', () => { const result = await transform.call( {} as never, - "@import 'tailwindcss';\n.creation-landing { color: red; }\n.puzzle-runtime { color: blue; }", + "@import 'tailwindcss';\n.creation-landing { color: red; }\n.puzzle-runtime { color: blue; }\n.pixel-modal-shell { color: black; }\n@font-face { font-family: 'Fusion Pixel'; src: url('/fusion-pixel.ttf'); }", '/workspace/src/index.css', ); const code = typeof result === 'string' ? result : result?.code; expect(code).toContain('.creation-landing'); expect(code).not.toContain('.puzzle-runtime'); + expect(code).not.toContain('.pixel-modal-shell'); + expect(code).not.toContain('fusion-pixel.ttf'); expect(code).toContain('@source "./components/creation-home"'); }); }); @@ -61,16 +96,74 @@ describe('retired creation template module boundary plugin', () => { transform.call( {} as never, 'export {}', - '/workspace/src/components/rpg-entry/RpgEntryHomeView.tsx', + workspacePath('src/components/rpg-entry/RpgEntryHomeView.tsx'), ), ).toThrow(/退役创作模板模块不得进入现役 Vite 依赖图/u); expect(() => transform.call( {} as never, 'export {}', - '/workspace/src/services/rpg-entry/rpgProfileClient.ts?t=1', + workspacePath('src/services/runtimeRequest.ts'), ), ).toThrow(/退役创作模板模块不得进入现役 Vite 依赖图/u); + expect(() => + transform.call( + {} as never, + 'export {}', + workspacePath( + 'src/services/input-devices/runtimeDragInputController.ts', + ), + ), + ).toThrow(/退役创作模板模块不得进入现役 Vite 依赖图/u); + expect(() => + transform.call( + {} as never, + 'export {}', + workspacePath('src/services/runtimeAudioFeedback.ts'), + ), + ).toThrow(/退役创作模板模块不得进入现役 Vite 依赖图/u); + expect(() => + transform.call( + {} as never, + 'export {}', + workspacePath('src/types/game.ts'), + ), + ).toThrow(/退役创作模板模块不得进入现役 Vite 依赖图/u); + expect(() => + transform.call( + {} as never, + 'export {}', + `${workspacePath('src/services/rpg-entry/rpgProfileClient.ts')}?t=1`, + ), + ).toThrow(/退役创作模板模块不得进入现役 Vite 依赖图/u); + }); + + it('rejects retired top-level apps, data, games, prompts, routes, and services', () => { + for (const path of [ + 'src/App.test.tsx', + 'src/App.tsx', + 'src/RpgRuntimeApp.tsx', + 'src/Match3DPlaygroundApp.tsx', + 'src/components/CustomWorldGenerationView.tsx', + 'src/components/InventoryPanel.tsx', + 'src/components/common/PublishShareModal.tsx', + 'src/components/platform-entry/PlatformEntryFlowShellImpl/PuzzleOnboardingView.tsx', + 'src/components/platform-entry/platformMatch3DRuntimeProfile.ts', + 'src/data/customWorldLibrary.ts', + 'src/games/bark-battle/ui/BarkBattleRuntimeShell.tsx', + 'src/hooks/combat/battlePlan.ts', + 'src/hooks/rpg-runtime-story/useRpgRuntimeStory.ts', + 'src/hooks/rpg-session/useRpgRuntimeSession.ts', + 'src/hooks/useNpcInteractionFlow.ts', + 'src/persistence/runtimeSnapshot.ts', + 'src/prompts/customWorldPrompts.ts', + 'src/routing/appRoutes.tsx', + 'src/routing/runtimeNotFoundRecovery.ts', + 'src/services/ai.ts', + 'src/services/puzzleReferenceImage.ts', + ]) { + expect(isRetiredFrontendModuleId(workspacePath(path))).toBe(true); + } }); it('allows active creation, project, and profile modules', async () => { @@ -86,22 +179,131 @@ describe('retired creation template module boundary plugin', () => { transform.call( {} as never, 'export {}', - '/workspace/src/components/creation-home/CreationLandingView.tsx', + workspacePath( + 'src/components/creation-home/CreationLandingView.tsx', + ), ), ).toBeNull(); expect( transform.call( {} as never, 'export {}', - '/workspace/src/components/platform-entry/PlatformActiveProfileView.tsx', + workspacePath( + 'src/components/platform-entry/PlatformActiveProfileView.tsx', + ), ), ).toBeNull(); expect( transform.call( {} as never, 'export {}', - '/workspace/src/services/platform-entry/platformProfileClient.ts', + workspacePath( + 'src/services/platform-entry/platformProfileClient.ts', + ), ), ).toBeNull(); + expect(isRetiredFrontendModuleId(workspacePath('src/ActiveApp.tsx'))).toBe( + false, + ); + expect( + isRetiredFrontendModuleId( + workspacePath('src/services/image-editor/editorProjectClient.ts'), + ), + ).toBe(false); + expect( + isRetiredFrontendModuleId( + workspacePath('src/components/ResolvedAssetImage.tsx'), + ), + ).toBe(false); + for (const path of [ + 'src/hooks/useGameSettings.ts', + 'src/persistence/storage.ts', + 'src/routing/activeAppRoutes.tsx', + 'src/services/apiClient.ts', + ]) { + expect(isRetiredFrontendModuleId(workspacePath(path))).toBe(false); + } + expect( + isRetiredFrontendModuleId( + workspacePath( + 'packages/shared/src/components/PlatformMudPointWalletEntry.tsx', + ), + ), + ).toBe(false); + }); +}); + +describe('retired frontend ESLint boundary', () => { + it('keeps every ESLint-excluded source module outside the Vite graph', async () => { + const eslint = new ESLint({ cwd: process.cwd() }); + const sourceFiles = await readTypeScriptSourceFiles('src'); + const retiredSourceFiles: string[] = []; + for (const sourceFile of sourceFiles) { + if (await eslint.isPathIgnored(sourceFile)) { + retiredSourceFiles.push(sourceFile); + } + } + + expect(retiredSourceFiles.length).toBeGreaterThan(0); + expect( + retiredSourceFiles.filter( + (sourceFile) => + !isRetiredFrontendModuleId(workspacePath(sourceFile)), + ), + ).toEqual([]); + }); + + it('ignores retired root modules while keeping active root modules lintable', async () => { + const eslint = new ESLint({ cwd: process.cwd() }); + for (const path of [ + 'src/components/CustomWorldGenerationView.tsx', + 'src/hooks/useNpcInteractionFlow.ts', + 'src/persistence/runtimeSnapshot.ts', + 'src/routing/runtimeNotFoundRecovery.ts', + 'src/services/puzzleReferenceImage.ts', + ]) { + await expect(eslint.isPathIgnored(path)).resolves.toBe(true); + } + for (const path of [ + 'src/components/ResolvedAssetImage.tsx', + 'src/hooks/useGameSettings.ts', + 'src/persistence/storage.ts', + 'src/routing/activeAppRoutes.tsx', + 'src/services/apiClient.ts', + ]) { + await expect(eslint.isPathIgnored(path)).resolves.toBe(false); + } + }); +}); + +describe('retired creation template API boundary', () => { + it('returns a dev-server 404 boundary for retired API prefixes only', () => { + expect(isRetiredApiPath('/api/creation-entry/config')).toBe(true); + expect(isRetiredApiPath('/api/creation/puzzle/sessions')).toBe(true); + expect(isRetiredApiPath('/api/public-works/PZ-12345678')).toBe(true); + expect(isRetiredApiPath('/api/runtime/settings')).toBe(false); + expect(isRetiredApiPath('/api/editor/showcase/resources')).toBe(false); + }); +}); + +describe('retired creation template asset boundary', () => { + it('returns a dev-server 404 boundary for retired generated asset proxies', () => { + for (const pathname of [ + '/generated-character-drafts/hero/visual/candidate.png', + '/generated-characters/hero/visual/master.png', + '/generated-animations/hero/idle/frame01.png', + '/generated-big-fish-assets/session-1/level/image.png', + '/generated-puzzle-assets/session-1/candidate/image.png', + '/generated-custom-world-scenes/world-1/camp/scene.png', + '/generated-custom-world-covers/world-1/cover.webp', + '/generated-bark-battle-assets/draft/player/image.webp', + '/generated-qwen-sprites/master/candidate-01.png', + ]) { + expect(isForbiddenPublicAssetPath(pathname)).toBe(true); + } + expect( + isForbiddenPublicAssetPath('/generated-editor-images/asset.png'), + ).toBe(true); + expect(isForbiddenPublicAssetPath('/creation-home/logo.png')).toBe(false); }); }); diff --git a/server-rs/Cargo.lock b/server-rs/Cargo.lock index 5be6cd5fd..e29208e5d 100644 --- a/server-rs/Cargo.lock +++ b/server-rs/Cargo.lock @@ -33,15 +33,6 @@ version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" -[[package]] -name = "adobe-cmap-parser" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae8abfa9a4688de8fc9f42b3f013b6fffec18ed8a554f5f113577e0b9b3212a3" -dependencies = [ - "pom", -] - [[package]] name = "aes" version = "0.8.4" @@ -220,7 +211,6 @@ dependencies = [ "module-editor-agent", "module-runtime", "opentelemetry", - "platform-agent", "platform-audio", "platform-auth", "platform-hyper3d", @@ -230,7 +220,7 @@ dependencies = [ "platform-oss", "platform-speech", "platform-wechat", - "reqwest 0.12.28", + "reqwest", "ring", "serde", "serde_json", @@ -239,7 +229,7 @@ dependencies = [ "shared-contracts", "shared-kernel", "shared-logging", - "socket2 0.6.4", + "socket2", "spacetime-client", "time", "tokio", @@ -449,10 +439,10 @@ dependencies = [ "bytes", "form_urlencoded", "futures-util", - "http 1.4.2", - "http-body 1.0.1", + "http", + "http-body", "http-body-util", - "hyper 1.10.1", + "hyper", "hyper-util", "itoa", "matchit", @@ -465,7 +455,7 @@ dependencies = [ "serde_path_to_error", "serde_urlencoded", "sha1", - "sync_wrapper 1.0.2", + "sync_wrapper", "tokio", "tokio-tungstenite 0.29.0", "tower", @@ -482,12 +472,12 @@ checksum = "08c78f31d7b1291f7ee735c1c6780ccde7785daae9a9206026862dab7d8792d1" dependencies = [ "bytes", "futures-core", - "http 1.4.2", - "http-body 1.0.1", + "http", + "http-body", "http-body-util", "mime", "pin-project-lite", - "sync_wrapper 1.0.2", + "sync_wrapper", "tower-layer", "tower-service", "tracing", @@ -526,15 +516,6 @@ version = "1.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2af50177e190e07a26ab74f8b1efbfe2ef87da2116221318cb1c2e82baf7de06" -[[package]] -name = "bincode" -version = "1.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad" -dependencies = [ - "serde", -] - [[package]] name = "bit-set" version = "0.8.0" @@ -844,10 +825,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1aa79e62e7697b8e29b513a68abacf485adcd1fe8284a4316c5ae868e6633327" dependencies = [ "iana-time-zone", - "js-sys", "num-traits", "serde", - "wasm-bindgen", "windows-link", ] @@ -1144,7 +1123,7 @@ dependencies = [ "openssl-probe", "openssl-sys", "schannel", - "socket2 0.6.4", + "socket2", "windows-sys 0.61.2", ] @@ -1588,15 +1567,6 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "34aa73646ffb006b8f5147f3dc182bd4bcb190227ce861fc4a4844bf8e3cb2c0" -[[package]] -name = "encoding_rs" -version = "0.8.35" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3" -dependencies = [ - "cfg-if", -] - [[package]] name = "enum-as-inner" version = "0.6.1" @@ -1684,15 +1654,6 @@ dependencies = [ "serde", ] -[[package]] -name = "euclid" -version = "0.20.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2bb7ef65b3777a325d1eeefefab5b6d4959da54747e33bd6258e789640f307ad" -dependencies = [ - "num-traits", -] - [[package]] name = "fastrand" version = "2.4.1" @@ -2078,25 +2039,6 @@ dependencies = [ "gl_generator", ] -[[package]] -name = "h2" -version = "0.3.27" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0beca50380b1fc32983fc1cb4587bfa4bb9e78fc259aad4a0032d2080309222d" -dependencies = [ - "bytes", - "fnv", - "futures-core", - "futures-sink", - "futures-util", - "http 0.2.12", - "indexmap 2.14.0", - "slab", - "tokio", - "tokio-util", - "tracing", -] - [[package]] name = "h2" version = "0.4.15" @@ -2108,7 +2050,7 @@ dependencies = [ "fnv", "futures-core", "futures-sink", - "http 1.4.2", + "http", "indexmap 2.14.0", "slab", "tokio", @@ -2227,17 +2169,6 @@ dependencies = [ "windows-link", ] -[[package]] -name = "http" -version = "0.2.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "601cbb57e577e2f5ef5be8e7b83f0f63994f25aa94d673e54a92d5c516d101f1" -dependencies = [ - "bytes", - "fnv", - "itoa", -] - [[package]] name = "http" version = "1.4.2" @@ -2248,17 +2179,6 @@ dependencies = [ "itoa", ] -[[package]] -name = "http-body" -version = "0.4.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ceab25649e9960c0311ea418d17bee82c0dcec1bd053b5f9a66e265a693bed2" -dependencies = [ - "bytes", - "http 0.2.12", - "pin-project-lite", -] - [[package]] name = "http-body" version = "1.0.1" @@ -2266,7 +2186,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" dependencies = [ "bytes", - "http 1.4.2", + "http", ] [[package]] @@ -2277,8 +2197,8 @@ checksum = "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a" dependencies = [ "bytes", "futures-core", - "http 1.4.2", - "http-body 1.0.1", + "http", + "http-body", "pin-project-lite", ] @@ -2300,30 +2220,6 @@ version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "135b12329e5e3ce057a9f972339ea52bc954fe1e9358ef27f95e89716fbc5424" -[[package]] -name = "hyper" -version = "0.14.32" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41dfc780fdec9373c01bae43289ea34c972e40ee3c9f6b3c8801a35f35586ce7" -dependencies = [ - "bytes", - "futures-channel", - "futures-core", - "futures-util", - "h2 0.3.27", - "http 0.2.12", - "http-body 0.4.6", - "httparse", - "httpdate", - "itoa", - "pin-project-lite", - "socket2 0.5.10", - "tokio", - "tower-service", - "tracing", - "want", -] - [[package]] name = "hyper" version = "1.10.1" @@ -2334,8 +2230,8 @@ dependencies = [ "bytes", "futures-channel", "futures-core", - "http 1.4.2", - "http-body 1.0.1", + "http", + "http-body", "httparse", "httpdate", "itoa", @@ -2351,8 +2247,8 @@ version = "0.27.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "33ca68d021ef39cf6463ab54c1d0f5daf03377b70561305bb89a8f83aab66e0f" dependencies = [ - "http 1.4.2", - "hyper 1.10.1", + "http", + "hyper", "hyper-util", "rustls", "tokio", @@ -2361,19 +2257,6 @@ dependencies = [ "webpki-roots 1.0.8", ] -[[package]] -name = "hyper-tls" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6183ddfa99b85da61a140bea0efc93fdf56ceaa041b37d553518030827f9905" -dependencies = [ - "bytes", - "hyper 0.14.32", - "native-tls", - "tokio", - "tokio-native-tls", -] - [[package]] name = "hyper-util" version = "0.1.20" @@ -2384,14 +2267,14 @@ dependencies = [ "bytes", "futures-channel", "futures-util", - "http 1.4.2", - "http-body 1.0.1", - "hyper 1.10.1", + "http", + "http-body", + "hyper", "ipnet", "libc", "percent-encoding", "pin-project-lite", - "socket2 0.6.4", + "socket2", "tokio", "tower-service", "tracing", @@ -2758,28 +2641,6 @@ version = "3.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e2db585e1d738fc771bf08a151420d3ed193d9d895a36df7f6f8a9456b911ddc" -[[package]] -name = "langchainrust" -version = "0.2.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac5ddb421c9c0311ee154af906747ba1fb5c3db83d7d71dcb38f40b557eb28e4" -dependencies = [ - "async-trait", - "bincode", - "chrono", - "csv", - "futures-util", - "pdf-extract", - "regex", - "reqwest 0.11.27", - "schemars 0.8.22", - "serde", - "serde_json", - "thiserror 1.0.69", - "tokio", - "uuid", -] - [[package]] name = "lazy_static" version = "1.5.0" @@ -2919,24 +2780,6 @@ version = "0.4.32" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "953f07c43838f8e6f9758cab68bf5bed85465e7587ebe0b823f1bcd81978ad3a" -[[package]] -name = "lopdf" -version = "0.34.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c5c8ecfc6c72051981c0459f75ccc585e7ff67c70829560cda8e647882a9abff" -dependencies = [ - "encoding_rs", - "flate2", - "indexmap 2.14.0", - "itoa", - "log", - "md-5", - "nom", - "rangemap", - "time", - "weezl", -] - [[package]] name = "lru" version = "0.16.4" @@ -2967,16 +2810,6 @@ version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "47e1ffaa40ddd1f3ed91f717a33c8c0ee23fff369e3aa8772b9605cc1d22f4c3" -[[package]] -name = "md-5" -version = "0.10.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d89e7ee0cfbedfc4da3340218492196241d89eefb6dab27de5df917a6d2e78cf" -dependencies = [ - "cfg-if", - "digest", -] - [[package]] name = "memchr" version = "2.8.2" @@ -3067,7 +2900,7 @@ name = "module-assets" version = "0.1.0" dependencies = [ "platform-oss", - "reqwest 0.12.28", + "reqwest", "serde", "shared-kernel", "spacetimedb", @@ -3103,7 +2936,6 @@ version = "0.1.0" dependencies = [ "serde", "serde_json", - "shared-contracts", "shared-kernel", "spacetimedb", "time", @@ -3699,9 +3531,9 @@ checksum = "d7a6d09a73194e6b66df7c8f1b680f156d916a1a942abf2de06823dd02b7855d" dependencies = [ "async-trait", "bytes", - "http 1.4.2", + "http", "opentelemetry", - "reqwest 0.12.28", + "reqwest", ] [[package]] @@ -3710,13 +3542,13 @@ version = "0.31.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1f69cd6acbb9af919df949cd1ec9e5e7fdc2ef15d234b6b795aaa525cc02f71f" dependencies = [ - "http 1.4.2", + "http", "opentelemetry", "opentelemetry-http", "opentelemetry-proto", "opentelemetry_sdk", "prost", - "reqwest 0.12.28", + "reqwest", "thiserror 2.0.18", ] @@ -3831,21 +3663,6 @@ version = "1.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" -[[package]] -name = "pdf-extract" -version = "0.7.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cbb3a5387b94b9053c1e69d8abfd4dd6dae7afda65a5c5279bc1f42ab39df575" -dependencies = [ - "adobe-cmap-parser", - "encoding_rs", - "euclid", - "lopdf", - "postscript", - "type1-encoding-parser", - "unicode-normalization", -] - [[package]] name = "pem" version = "3.0.6" @@ -3936,7 +3753,7 @@ dependencies = [ "cf-rustracing", "cf-rustracing-jaeger", "hex", - "http 1.4.2", + "http", "httparse", "httpdate", "indexmap 1.9.3", @@ -3977,8 +3794,8 @@ dependencies = [ "derivative", "flate2", "futures", - "h2 0.4.15", - "http 1.4.2", + "h2", + "http", "httparse", "httpdate", "libc", @@ -4001,7 +3818,7 @@ dependencies = [ "serde", "serde_yaml", "sfv", - "socket2 0.6.4", + "socket2", "strum 0.26.3", "strum_macros 0.26.4", "tokio", @@ -4045,7 +3862,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "828c0e53e74160cbfe8e67dd3a811eb6a253c36acbaf7a39a01d9aacfb9ac139" dependencies = [ "bytes", - "http 1.4.2", + "http", "httparse", "pingora-error", "pingora-http", @@ -4061,7 +3878,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d553d310a15ec88107b9388a02885f798efc57764d8e9bdaaf32a76722927a10" dependencies = [ "bytes", - "http 1.4.2", + "http", "pingora-error", ] @@ -4085,7 +3902,7 @@ dependencies = [ "derivative", "fnv", "futures", - "http 1.4.2", + "http", "log", "pingora-core", "pingora-error", @@ -4133,8 +3950,8 @@ dependencies = [ "bytes", "clap", "futures", - "h2 0.4.15", - "http 1.4.2", + "h2", + "http", "log", "once_cell", "pingora-cache", @@ -4170,7 +3987,7 @@ dependencies = [ "ring", "rustls", "rustls-native-certs", - "rustls-pemfile 2.2.0", + "rustls-pemfile", "rustls-pki-types", "tokio-rustls", ] @@ -4200,24 +4017,12 @@ version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b4596b6d070b27117e987119b4dac604f3c58cfb0b191112e24771b2faeac1a6" -[[package]] -name = "platform-agent" -version = "0.1.0" -dependencies = [ - "async-trait", - "langchainrust", - "platform-llm", - "serde", - "serde_json", - "tokio", -] - [[package]] name = "platform-audio" version = "0.1.0" dependencies = [ "platform-oss", - "reqwest 0.12.28", + "reqwest", "serde_json", "tokio", "tracing", @@ -4232,7 +4037,7 @@ dependencies = [ "hmac", "jsonwebtoken", "rand_core 0.6.4", - "reqwest 0.12.28", + "reqwest", "serde", "serde_json", "serde_urlencoded", @@ -4250,7 +4055,7 @@ name = "platform-hyper3d" version = "0.1.0" dependencies = [ "base64 0.22.1", - "reqwest 0.12.28", + "reqwest", "serde_json", "shared-contracts", "tokio", @@ -4264,7 +4069,7 @@ dependencies = [ "curl", "image", "platform-oss", - "reqwest 0.12.28", + "reqwest", "serde_json", "tokio", "tracing", @@ -4275,7 +4080,7 @@ name = "platform-llm" version = "0.1.0" dependencies = [ "log", - "reqwest 0.12.28", + "reqwest", "serde", "serde_json", "tokio", @@ -4292,7 +4097,7 @@ dependencies = [ "httpdate", "image", "platform-oss", - "reqwest 0.12.28", + "reqwest", "serde", "serde_json", "serde_urlencoded", @@ -4310,7 +4115,7 @@ version = "0.1.0" dependencies = [ "base64 0.22.1", "hmac", - "reqwest 0.12.28", + "reqwest", "serde", "serde_json", "sha2", @@ -4327,7 +4132,7 @@ dependencies = [ "bytes", "flate2", "futures-util", - "reqwest 0.12.28", + "reqwest", "serde", "serde_json", "tokio", @@ -4346,7 +4151,7 @@ dependencies = [ "flate2", "hex", "openssl", - "reqwest 0.12.28", + "reqwest", "ring", "serde", "serde_json", @@ -4388,12 +4193,6 @@ dependencies = [ "windows-sys 0.61.2", ] -[[package]] -name = "pom" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "60f6ce597ecdcc9a098e7fddacb1065093a3d66446fa16c675e7e71d1b5c28e6" - [[package]] name = "portable-atomic" version = "1.13.1" @@ -4409,12 +4208,6 @@ dependencies = [ "portable-atomic", ] -[[package]] -name = "postscript" -version = "0.14.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78451badbdaebaf17f053fd9152b3ffb33b516104eacb45e7864aaa9c712f306" - [[package]] name = "potential_utf" version = "0.1.5" @@ -4599,7 +4392,7 @@ dependencies = [ "quinn-udp", "rustc-hash 2.1.2", "rustls", - "socket2 0.6.4", + "socket2", "thiserror 2.0.18", "tokio", "tracing", @@ -4636,7 +4429,7 @@ dependencies = [ "cfg_aliases", "libc", "once_cell", - "socket2 0.6.4", + "socket2", "tracing", "windows-sys 0.60.2", ] @@ -4721,12 +4514,6 @@ dependencies = [ "getrandom 0.3.4", ] -[[package]] -name = "rangemap" -version = "1.7.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "973443cf09a9c8656b574a866ab68dfa19f0867d0340648c7d2f6a71b8a8ea68" - [[package]] name = "raw-window-handle" version = "0.6.2" @@ -4835,49 +4622,6 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "19b30a45b0cd0bcca8037f3d0dc3421eaf95327a17cad11964fb8179b4fc4832" -[[package]] -name = "reqwest" -version = "0.11.27" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd67538700a17451e7cba03ac727fb961abb7607553461627b97de0b89cf4a62" -dependencies = [ - "base64 0.21.7", - "bytes", - "encoding_rs", - "futures-core", - "futures-util", - "h2 0.3.27", - "http 0.2.12", - "http-body 0.4.6", - "hyper 0.14.32", - "hyper-tls", - "ipnet", - "js-sys", - "log", - "mime", - "mime_guess", - "native-tls", - "once_cell", - "percent-encoding", - "pin-project-lite", - "rustls-pemfile 1.0.4", - "serde", - "serde_json", - "serde_urlencoded", - "sync_wrapper 0.1.2", - "system-configuration", - "tokio", - "tokio-native-tls", - "tokio-util", - "tower-service", - "url", - "wasm-bindgen", - "wasm-bindgen-futures", - "wasm-streams", - "web-sys", - "winreg", -] - [[package]] name = "reqwest" version = "0.12.28" @@ -4889,10 +4633,10 @@ dependencies = [ "futures-channel", "futures-core", "futures-util", - "http 1.4.2", - "http-body 1.0.1", + "http", + "http-body", "http-body-util", - "hyper 1.10.1", + "hyper", "hyper-rustls", "hyper-util", "js-sys", @@ -4906,7 +4650,7 @@ dependencies = [ "serde", "serde_json", "serde_urlencoded", - "sync_wrapper 1.0.2", + "sync_wrapper", "tokio", "tokio-rustls", "tokio-util", @@ -5049,21 +4793,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e5bfb394eeed242e909609f56089eecfe5fda225042e8b171791b9c95f5931e5" dependencies = [ "openssl-probe", - "rustls-pemfile 2.2.0", + "rustls-pemfile", "rustls-pki-types", "schannel", "security-framework", ] -[[package]] -name = "rustls-pemfile" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c74cae0a4cf6ccbbf5f359f08efdf8ee7e1dc532573bf0db71968cb56b1448c" -dependencies = [ - "base64 0.21.7", -] - [[package]] name = "rustls-pemfile" version = "2.2.0" @@ -5125,18 +4860,6 @@ dependencies = [ "windows-sys 0.61.2", ] -[[package]] -name = "schemars" -version = "0.8.22" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fbf2ae1b8bc8e02df939598064d22402220cd5bbcca1c76f7d6a310974d5615" -dependencies = [ - "dyn-clone", - "schemars_derive", - "serde", - "serde_json", -] - [[package]] name = "schemars" version = "0.9.0" @@ -5161,18 +4884,6 @@ dependencies = [ "serde_json", ] -[[package]] -name = "schemars_derive" -version = "0.8.22" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32e265784ad618884abaea0600a9adf15393368d840e0222d101a072f3f7534d" -dependencies = [ - "proc-macro2", - "quote", - "serde_derive_internals", - "syn 2.0.118", -] - [[package]] name = "scoped-tls" version = "1.0.1" @@ -5250,17 +4961,6 @@ dependencies = [ "syn 2.0.118", ] -[[package]] -name = "serde_derive_internals" -version = "0.29.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "18d26a20a969b9e3fdf2fc2d9f21eda6c40e2de84c9408bb5d3b05d499aae711" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.118", -] - [[package]] name = "serde_json" version = "1.0.150" @@ -5588,16 +5288,6 @@ dependencies = [ "serde", ] -[[package]] -name = "socket2" -version = "0.5.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e22376abed350d73dd1cd119b57ffccad95b4e585a7cda43e286245ce23c0678" -dependencies = [ - "libc", - "windows-sys 0.52.0", -] - [[package]] name = "socket2" version = "0.6.4" @@ -5655,7 +5345,7 @@ dependencies = [ "bytes", "derive_more", "getrandom 0.2.17", - "http 1.4.2", + "http", "log", "rand 0.8.6", "scoped-tls", @@ -5875,7 +5565,7 @@ dependencies = [ "futures", "futures-channel", "home", - "http 1.4.2", + "http", "log", "native-tls", "once_cell", @@ -6013,12 +5703,6 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "sync_wrapper" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160" - [[package]] name = "sync_wrapper" version = "1.0.2" @@ -6039,27 +5723,6 @@ dependencies = [ "syn 2.0.118", ] -[[package]] -name = "system-configuration" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba3a3adc5c275d719af8cb4272ea1c4a6d668a777f37e115f6d11ddbc1c8e0e7" -dependencies = [ - "bitflags 1.3.2", - "core-foundation 0.9.4", - "system-configuration-sys", -] - -[[package]] -name = "system-configuration-sys" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a75fb188eb626b924683e3b95e3a48e63551fcfb51949de2f06a9d91dbee93c9" -dependencies = [ - "core-foundation-sys", - "libc", -] - [[package]] name = "tempfile" version = "3.27.0" @@ -6226,7 +5889,7 @@ dependencies = [ "parking_lot", "pin-project-lite", "signal-hook-registry", - "socket2 0.6.4", + "socket2", "tokio-macros", "windows-sys 0.61.2", ] @@ -6375,12 +6038,12 @@ dependencies = [ "async-trait", "base64 0.22.1", "bytes", - "http 1.4.2", - "http-body 1.0.1", + "http", + "http-body", "http-body-util", "percent-encoding", "pin-project", - "sync_wrapper 1.0.2", + "sync_wrapper", "tokio-stream", "tower-layer", "tower-service", @@ -6407,7 +6070,7 @@ dependencies = [ "futures-core", "futures-util", "pin-project-lite", - "sync_wrapper 1.0.2", + "sync_wrapper", "tokio", "tower-layer", "tower-service", @@ -6423,8 +6086,8 @@ dependencies = [ "bitflags 2.13.0", "bytes", "futures-util", - "http 1.4.2", - "http-body 1.0.1", + "http", + "http-body", "pin-project-lite", "tower", "tower-layer", @@ -6562,7 +6225,7 @@ checksum = "eadc29d668c91fcc564941132e17b28a7ceb2f3ebf0b9dae3e03fd7a6748eb0d" dependencies = [ "bytes", "data-encoding", - "http 1.4.2", + "http", "httparse", "log", "native-tls", @@ -6583,7 +6246,7 @@ checksum = "6c01152af293afb9c7c2a57e4b559c5620b421f6d133261c60dd2d0cdb38e6b8" dependencies = [ "bytes", "data-encoding", - "http 1.4.2", + "http", "httparse", "log", "rand 0.9.4", @@ -6600,15 +6263,6 @@ dependencies = [ "rustc-hash 2.1.2", ] -[[package]] -name = "type1-encoding-parser" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa10c302f5a53b7ad27fd42a3996e23d096ba39b5b8dd6d9e683a05b01bee749" -dependencies = [ - "pom", -] - [[package]] name = "typenum" version = "1.20.1" @@ -6710,7 +6364,6 @@ checksum = "144d6b123cef80b301b8f72a9e2ca4370ddec21950d0a103dd22c437006d2db7" dependencies = [ "getrandom 0.4.2", "js-sys", - "serde_core", "wasm-bindgen", ] @@ -7255,15 +6908,6 @@ dependencies = [ "windows-link", ] -[[package]] -name = "windows-sys" -version = "0.48.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" -dependencies = [ - "windows-targets 0.48.5", -] - [[package]] name = "windows-sys" version = "0.52.0" @@ -7300,21 +6944,6 @@ dependencies = [ "windows-link", ] -[[package]] -name = "windows-targets" -version = "0.48.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" -dependencies = [ - "windows_aarch64_gnullvm 0.48.5", - "windows_aarch64_msvc 0.48.5", - "windows_i686_gnu 0.48.5", - "windows_i686_msvc 0.48.5", - "windows_x86_64_gnu 0.48.5", - "windows_x86_64_gnullvm 0.48.5", - "windows_x86_64_msvc 0.48.5", -] - [[package]] name = "windows-targets" version = "0.52.6" @@ -7348,12 +6977,6 @@ dependencies = [ "windows_x86_64_msvc 0.53.1", ] -[[package]] -name = "windows_aarch64_gnullvm" -version = "0.48.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" - [[package]] name = "windows_aarch64_gnullvm" version = "0.52.6" @@ -7366,12 +6989,6 @@ version = "0.53.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a9d8416fa8b42f5c947f8482c43e7d89e73a173cead56d044f6a56104a6d1b53" -[[package]] -name = "windows_aarch64_msvc" -version = "0.48.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" - [[package]] name = "windows_aarch64_msvc" version = "0.52.6" @@ -7384,12 +7001,6 @@ version = "0.53.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b9d782e804c2f632e395708e99a94275910eb9100b2114651e04744e9b125006" -[[package]] -name = "windows_i686_gnu" -version = "0.48.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" - [[package]] name = "windows_i686_gnu" version = "0.52.6" @@ -7414,12 +7025,6 @@ version = "0.53.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fa7359d10048f68ab8b09fa71c3daccfb0e9b559aed648a8f95469c27057180c" -[[package]] -name = "windows_i686_msvc" -version = "0.48.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" - [[package]] name = "windows_i686_msvc" version = "0.52.6" @@ -7432,12 +7037,6 @@ version = "0.53.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1e7ac75179f18232fe9c285163565a57ef8d3c89254a30685b57d83a38d326c2" -[[package]] -name = "windows_x86_64_gnu" -version = "0.48.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" - [[package]] name = "windows_x86_64_gnu" version = "0.52.6" @@ -7450,12 +7049,6 @@ version = "0.53.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9c3842cdd74a865a8066ab39c8a7a473c0778a3f29370b5fd6b4b9aa7df4a499" -[[package]] -name = "windows_x86_64_gnullvm" -version = "0.48.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" - [[package]] name = "windows_x86_64_gnullvm" version = "0.52.6" @@ -7468,12 +7061,6 @@ version = "0.53.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0ffa179e2d07eee8ad8f57493436566c7cc30ac536a3379fdf008f47f6bb7ae1" -[[package]] -name = "windows_x86_64_msvc" -version = "0.48.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" - [[package]] name = "windows_x86_64_msvc" version = "0.52.6" @@ -7546,16 +7133,6 @@ dependencies = [ "memchr", ] -[[package]] -name = "winreg" -version = "0.50.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "524e57b2c537c0f9b1e69f1965311ec12182b4122e45035b1508cd24d2adadb1" -dependencies = [ - "cfg-if", - "windows-sys 0.48.0", -] - [[package]] name = "wit-bindgen" version = "0.51.0" diff --git a/server-rs/Cargo.toml b/server-rs/Cargo.toml index 464062e14..27d8331fb 100644 --- a/server-rs/Cargo.toml +++ b/server-rs/Cargo.toml @@ -26,6 +26,7 @@ exclude = [ "crates/module-story", "crates/module-visual-novel", "crates/module-wooden-fish", + "crates/platform-agent", ] members = [ "crates/api-server", @@ -43,7 +44,6 @@ members = [ "crates/platform-matting", "crates/platform-wechat", "crates/platform-speech", - "crates/platform-agent", "crates/pingora-gateway", "crates/server-manager-panel", "crates/shared-contracts", @@ -66,7 +66,6 @@ module-assets = { path = "crates/module-assets", default-features = false } module-auth = { path = "crates/module-auth", default-features = false } module-editor-agent = { path = "crates/module-editor-agent", default-features = false } module-runtime = { path = "crates/module-runtime", default-features = false } -platform-agent = { path = "crates/platform-agent", default-features = false } platform-auth = { path = "crates/platform-auth", default-features = false } platform-audio = { path = "crates/platform-audio", default-features = false } platform-hyper3d = { path = "crates/platform-hyper3d", default-features = false } @@ -101,7 +100,6 @@ httpdate = "1" hex = "0.4" image = { version = "0.25", default-features = false } jsonwebtoken = "9" -langchainrust = "0.2.18" log = "0.4" mime_guess = "2.0.5" pingora = { version = "0.8.1", default-features = false, features = ["proxy", "rustls"] } diff --git a/server-rs/crates/api-server/Cargo.toml b/server-rs/crates/api-server/Cargo.toml index 73d77dfce..4f320e905 100644 --- a/server-rs/crates/api-server/Cargo.toml +++ b/server-rs/crates/api-server/Cargo.toml @@ -22,7 +22,6 @@ module-assets = { workspace = true, features = ["server-service"] } module-auth = { workspace = true } module-editor-agent = { workspace = true } module-runtime = { workspace = true } -platform-agent = { workspace = true } platform-audio = { workspace = true } platform-auth = { workspace = true } platform-hyper3d = { workspace = true } diff --git a/server-rs/crates/api-server/src/admin.rs b/server-rs/crates/api-server/src/admin.rs index dbca879d5..f7d444371 100644 --- a/server-rs/crates/api-server/src/admin.rs +++ b/server-rs/crates/api-server/src/admin.rs @@ -1643,7 +1643,7 @@ fn enforce_admin_request_permission( } } -fn admin_permission_requirement(method: &Method, path: &str) -> AdminPermissionRequirement { +fn admin_permission_requirement(_method: &Method, path: &str) -> AdminPermissionRequirement { use AdminPermissionRequirement::{AnyOf, Authenticated, OwnerOnly}; match path { @@ -1658,7 +1658,6 @@ fn admin_permission_requirement(method: &Method, path: &str) -> AdminPermissionR "/admin/api/editor-assets" => AnyOf(&["editor-assets"]), "/admin/api/assets/read-url" => AnyOf(&["editor-assets", "editor-showcase"]), path if path.starts_with("/admin/api/editor-showcase/") => AnyOf(&["editor-showcase"]), - "/admin/api/works/visibility" => AnyOf(&["work-visibility"]), "/admin/api/profile/redeem-codes" | "/admin/api/profile/redeem-codes/disable" => { AnyOf(&["redeem"]) } @@ -1674,14 +1673,7 @@ fn admin_permission_requirement(method: &Method, path: &str) -> AdminPermissionR "recharge-orders", "editor-showcase", "editor-assets", - "work-visibility", ]), - "/admin/api/creation-entry/config/banners" => AnyOf(&["creation-announcement"]), - "/admin/api/creation-entry/config/interactions" => AnyOf(&["creation-entry"]), - "/admin/api/creation-entry/config" if method == Method::GET => { - AnyOf(&["gray-release", "creation-announcement", "creation-entry"]) - } - "/admin/api/creation-entry/config" => AnyOf(&["creation-entry"]), path if path == "/admin/api/database/tables" || path.starts_with("/admin/api/database/tables/") => { @@ -5289,24 +5281,6 @@ mod tests { ) .is_err() ); - assert!( - enforce_admin_request_permission( - "member", - &["creation-announcement".to_string()], - &Method::GET, - "/admin/api/creation-entry/config", - ) - .is_ok() - ); - assert!( - enforce_admin_request_permission( - "member", - &["creation-announcement".to_string()], - &Method::POST, - "/admin/api/creation-entry/config", - ) - .is_err() - ); } #[test] @@ -5347,21 +5321,6 @@ mod tests { "/admin/api/editor-showcase/assets", ), ("editor-assets", Method::GET, "/admin/api/editor-assets"), - ( - "creation-announcement", - Method::POST, - "/admin/api/creation-entry/config/banners", - ), - ( - "creation-entry", - Method::POST, - "/admin/api/creation-entry/config", - ), - ( - "work-visibility", - Method::GET, - "/admin/api/works/visibility", - ), ]; for (permission, method, path) in cases { diff --git a/server-rs/crates/api-server/src/app.rs b/server-rs/crates/api-server/src/app.rs index cfd94d40e..5ae7f642d 100644 --- a/server-rs/crates/api-server/src/app.rs +++ b/server-rs/crates/api-server/src/app.rs @@ -1362,7 +1362,6 @@ mod tests { ("GET", "/api/creation-entry/config"), ("GET", "/api/public-works/PZ-12345678"), ("POST", "/api/auth/runtime-guest-token"), - ("GET", "/api/runtime/settings"), ("GET", "/api/runtime/save/snapshot"), ("GET", "/api/profile/browse-history"), ] { @@ -1383,6 +1382,25 @@ mod tests { } } + #[tokio::test] + async fn platform_runtime_settings_route_remains_mounted() { + let app = build_router(AppState::new(AppConfig::default()).expect("state should build")); + + let response = app + .oneshot( + Request::builder() + .method("GET") + .uri("/api/runtime/settings") + .header("x-genarrative-response-envelope", "v1") + .body(Body::empty()) + .expect("platform runtime settings request should build"), + ) + .await + .expect("platform runtime settings request should be handled"); + + assert_eq!(response.status(), StatusCode::UNAUTHORIZED); + } + #[tokio::test] async fn generated_asset_read_proxy_routes_are_not_mounted() { let app = build_router(AppState::new(AppConfig::default()).expect("state should build")); diff --git a/server-rs/crates/api-server/src/auth.rs b/server-rs/crates/api-server/src/auth.rs index 6a432bc8b..cac3b201d 100644 --- a/server-rs/crates/api-server/src/auth.rs +++ b/server-rs/crates/api-server/src/auth.rs @@ -8,9 +8,7 @@ use axum::{ middleware::Next, response::Response, }; -use platform_auth::{ - AccessTokenClaims, AuthProvider, BindingStatus, read_refresh_session_token, verify_access_token, -}; +use platform_auth::{AccessTokenClaims, read_refresh_session_token, verify_access_token}; #[cfg(any())] use platform_auth::{ RUNTIME_GUEST_SCOPE_PUBLIC_PLAY, RuntimeGuestTokenClaims, RuntimeGuestTokenClaimsInput, @@ -29,9 +27,6 @@ use crate::{ state::AppState, }; -const INTERNAL_AUTH_USER_ID_HEADER: &str = "x-genarrative-authenticated-user-id"; -const INTERNAL_API_SECRET_HEADER: &str = "x-genarrative-internal-api-secret"; - // 统一把已校验的 claims 写入 request extensions,避免后续 handler 再次重复解析 Bearer token。 #[derive(Clone, Debug)] pub struct AuthenticatedAccessToken { @@ -145,10 +140,9 @@ pub async fn require_bearer_auth( mut request: Request, next: Next, ) -> Result { - let path = request.uri().path().to_string(); let headers = request.headers().clone(); let request_id = request_id_from_request(&request); - let Some(authenticated) = authenticate_request(&state, path, headers, request_id).await? else { + let Some(authenticated) = authenticate_request(&state, headers, request_id).await? else { return Err(AppError::from_status(StatusCode::UNAUTHORIZED)); }; request.extensions_mut().insert(authenticated.clone()); @@ -165,11 +159,9 @@ pub async fn require_runtime_principal_auth( mut request: Request, next: Next, ) -> Result { - let path = request.uri().path().to_string(); let headers = request.headers().clone(); let request_id = request_id_from_request(&request); - let Some(principal) = authenticate_runtime_principal(&state, path, headers, request_id).await? - else { + let Some(principal) = authenticate_runtime_principal(&state, headers, request_id).await? else { return Err(AppError::from_status(StatusCode::UNAUTHORIZED)); }; request.extensions_mut().insert(principal.clone()); @@ -183,7 +175,6 @@ pub async fn require_runtime_principal_auth( #[cfg(any())] async fn authenticate_runtime_principal( state: &AppState, - path: String, headers: HeaderMap, request_id: String, ) -> Result, AppError> { @@ -191,7 +182,7 @@ async fn authenticate_runtime_principal( return Ok(None); } - match authenticate_request(state, path, headers.clone(), request_id.clone()).await { + match authenticate_request(state, headers.clone(), request_id.clone()).await { Ok(Some(authenticated)) => Ok(Some(RuntimePrincipal::User(authenticated))), Ok(None) => Ok(None), Err(_) => { @@ -220,25 +211,18 @@ async fn authenticate_runtime_principal( pub async fn optional_access_token_from_headers( state: &AppState, - path: String, + _path: String, headers: HeaderMap, request_id: String, ) -> Result, AppError> { - authenticate_request(state, path, headers, request_id).await + authenticate_request(state, headers, request_id).await } async fn authenticate_request( state: &AppState, - path: String, headers: HeaderMap, request_id: String, ) -> Result, AppError> { - if allows_internal_forwarded_auth(&path) { - if let Some(claims) = try_build_internal_forwarded_claims(state, &headers) { - return Ok(Some(AuthenticatedAccessToken::new(claims))); - } - } - if !headers.contains_key(AUTHORIZATION) { return Ok(None); } @@ -389,63 +373,9 @@ fn extract_bearer_token(headers: &HeaderMap) -> Result { Ok(token.to_string()) } -fn allows_internal_forwarded_auth(path: &str) -> bool { - // Node 代理已经完成平台账号 JWT 校验,Rust 运行时只信任这些明确的内部转发路径。 - path.starts_with("/api/runtime/big-fish/") - || path.starts_with("/api/runtime/chat/") - || path.starts_with("/api/runtime/creative-agent/") - || path.starts_with("/api/runtime/puzzle/") -} - -fn try_build_internal_forwarded_claims( - state: &AppState, - headers: &HeaderMap, -) -> Option { - let expected_secret = state.config.internal_api_secret.as_ref()?.trim(); - if expected_secret.is_empty() { - return None; - } - - let provided_secret = headers - .get(INTERNAL_API_SECRET_HEADER) - .and_then(|value| value.to_str().ok()) - .map(str::trim) - .filter(|value| !value.is_empty())?; - if provided_secret != expected_secret { - return None; - } - - let user_id = headers - .get(INTERNAL_AUTH_USER_ID_HEADER) - .and_then(|value| value.to_str().ok()) - .map(str::trim) - .filter(|value| !value.is_empty())? - .to_string(); - - // 这里的 claims 只服务于经 Node 已鉴权后的本地内部转发链路,避免在开发态复制整套账号仓储。 - AccessTokenClaims::from_input( - platform_auth::AccessTokenClaimsInput { - user_id: user_id.clone(), - session_id: format!("internal-forwarded-{user_id}"), - provider: AuthProvider::Password, - roles: vec!["user".to_string()], - token_version: 0, - phone_verified: false, - binding_status: BindingStatus::Active, - display_name: None, - }, - state.auth_jwt_config(), - OffsetDateTime::now_utc(), - ) - .ok() -} - #[cfg(test)] mod tests { - use super::{ - INTERNAL_API_SECRET_HEADER, INTERNAL_AUTH_USER_ID_HEADER, RefreshSessionToken, - allows_internal_forwarded_auth, extract_bearer_token, try_build_internal_forwarded_claims, - }; + use super::{RefreshSessionToken, extract_bearer_token, optional_access_token_from_headers}; use crate::{config::AppConfig, state::AppState}; use axum::{ http::{HeaderMap, HeaderValue, StatusCode, header::AUTHORIZATION}, @@ -482,40 +412,30 @@ mod tests { assert_eq!(token.token(), "refresh-token-01"); } - #[test] - fn internal_forwarded_auth_allows_node_proxy_runtime_paths() { - assert!(allows_internal_forwarded_auth( - "/api/runtime/big-fish/sessions" - )); - assert!(allows_internal_forwarded_auth( - "/api/runtime/chat/npc/turn/stream" - )); - assert!(allows_internal_forwarded_auth( - "/api/runtime/creative-agent/sessions" - )); - assert!(allows_internal_forwarded_auth("/api/runtime/puzzle/works")); - assert!(!allows_internal_forwarded_auth("/api/auth/me")); - } - - #[test] - fn internal_forwarded_claims_require_matching_secret() { + #[tokio::test] + async fn internal_forwarding_headers_do_not_authenticate_without_bearer_token() { let mut config = AppConfig::default(); config.internal_api_secret = Some("bridge-secret".to_string()); let state = AppState::new(config).expect("state should build"); let mut headers = HeaderMap::new(); headers.insert( - INTERNAL_AUTH_USER_ID_HEADER, + "x-genarrative-authenticated-user-id", HeaderValue::from_static("user_forwarded_01"), ); headers.insert( - INTERNAL_API_SECRET_HEADER, + "x-genarrative-internal-api-secret", HeaderValue::from_static("bridge-secret"), ); - let claims = - try_build_internal_forwarded_claims(&state, &headers).expect("claims should resolve"); + let authenticated = optional_access_token_from_headers( + &state, + "/api/runtime/puzzle/works".to_string(), + headers, + "req-retired-internal-forward".to_string(), + ) + .await + .expect("forwarding headers should be ignored"); - assert_eq!(claims.user_id(), "user_forwarded_01"); - assert_eq!(claims.token_version(), 0); + assert!(authenticated.is_none()); } } diff --git a/server-rs/crates/api-server/src/backpressure.rs b/server-rs/crates/api-server/src/backpressure.rs index 1f6baf7af..7858332b0 100644 --- a/server-rs/crates/api-server/src/backpressure.rs +++ b/server-rs/crates/api-server/src/backpressure.rs @@ -106,43 +106,13 @@ fn should_bypass_backpressure(request: &Request) -> bool { } fn classify_request_permit_pool(path: &str) -> HttpRequestPermitPoolKind { - if is_gallery_list_path(path) { - HttpRequestPermitPoolKind::Gallery - } else if is_gallery_detail_path(path) { - HttpRequestPermitPoolKind::Detail - } else if path.starts_with("/admin/api/") { + if path.starts_with("/admin/api/") { HttpRequestPermitPoolKind::Admin } else { HttpRequestPermitPoolKind::Default } } -fn is_gallery_list_path(path: &str) -> bool { - matches!( - path, - "/api/runtime/puzzle/gallery" | "/api/runtime/custom-world-gallery" - ) -} - -fn is_gallery_detail_path(path: &str) -> bool { - let puzzle_prefix = "/api/runtime/puzzle/gallery/"; - if let Some(profile_id) = path.strip_prefix(puzzle_prefix) { - return !profile_id.is_empty() && !profile_id.contains('/'); - } - - let custom_world_prefix = "/api/runtime/custom-world-gallery/"; - if let Some(remainder) = path.strip_prefix(custom_world_prefix) { - let mut segments = remainder.split('/'); - return matches!( - (segments.next(), segments.next(), segments.next()), - (Some(owner_user_id), Some(profile_id), None) - if !owner_user_id.is_empty() && !profile_id.is_empty() - ); - } - - false -} - #[cfg(test)] mod tests { use std::sync::Arc; @@ -211,30 +181,17 @@ mod tests { fn build_grouped_test_app( default_max_concurrent_requests: usize, - gallery_max_concurrent_requests: usize, admin_max_concurrent_requests: usize, gate: HeldRequestGate, ) -> Router { let mut config = AppConfig::default(); config.max_concurrent_requests = Some(default_max_concurrent_requests); - config.gallery_max_concurrent_requests = Some(gallery_max_concurrent_requests); config.admin_max_concurrent_requests = Some(admin_max_concurrent_requests); let state = AppState::new(config).expect("state should build"); let backpressure_state = BackpressureState::from_ref(&state); Router::new() .route("/held", get(held_request)) - .route("/api/runtime/puzzle/gallery", get(held_request)) - .route("/api/runtime/custom-world-gallery", get(held_request)) - .route("/api/runtime/puzzle/gallery/profile-1", get(held_request)) - .route( - "/api/runtime/puzzle/gallery/profile-1/like", - get(fast_request), - ) - .route( - "/api/runtime/custom-world-gallery/user-1/profile-1", - get(held_request), - ) .route("/admin/api/overview", get(held_request)) .route("/fast", get(fast_request)) .layer(middleware::from_fn_with_state( @@ -344,99 +301,13 @@ mod tests { assert_eq!(accepted_response.status(), StatusCode::OK); } - #[tokio::test] - async fn gallery_pool_rejects_gallery_without_blocking_default_routes() { - let gate = HeldRequestGate { - entered: Arc::new(Notify::new()), - release: Arc::new(Notify::new()), - }; - let app = build_grouped_test_app(2, 1, 1, gate.clone()); - let entered = gate.entered.notified(); - - let held_response = tokio::spawn( - app.clone() - .oneshot(test_request("/api/runtime/puzzle/gallery")), - ); - entered.await; - - let rejected_gallery_response = app - .clone() - .oneshot(test_request("/api/runtime/custom-world-gallery")) - .await - .expect("rejected gallery request should complete"); - assert_eq!( - rejected_gallery_response.status(), - StatusCode::TOO_MANY_REQUESTS - ); - - let accepted_default_response = app - .clone() - .oneshot(test_request("/fast")) - .await - .expect("default request should complete"); - assert_eq!(accepted_default_response.status(), StatusCode::OK); - - gate.release.notify_one(); - let completed_response = held_response - .await - .expect("held request task should join") - .expect("held request should complete"); - assert_eq!(completed_response.status(), StatusCode::OK); - } - - #[tokio::test] - async fn detail_pool_falls_back_to_default_when_unset() { - let gate = HeldRequestGate { - entered: Arc::new(Notify::new()), - release: Arc::new(Notify::new()), - }; - let mut config = AppConfig::default(); - config.max_concurrent_requests = Some(1); - config.detail_max_concurrent_requests = None; - let state = AppState::new(config).expect("state should build"); - let backpressure_state = BackpressureState::from_ref(&state); - let app = Router::new() - .route("/api/runtime/puzzle/gallery/profile-1", get(held_request)) - .route("/fast", get(fast_request)) - .layer(middleware::from_fn_with_state( - backpressure_state, - limit_concurrent_requests, - )) - .layer(Extension(gate.clone())) - .with_state(state); - let entered = gate.entered.notified(); - - let held_response = tokio::spawn( - app.clone() - .oneshot(test_request("/api/runtime/puzzle/gallery/profile-1")), - ); - entered.await; - - let rejected_default_response = app - .clone() - .oneshot(test_request("/fast")) - .await - .expect("default request should complete"); - assert_eq!( - rejected_default_response.status(), - StatusCode::TOO_MANY_REQUESTS - ); - - gate.release.notify_one(); - let completed_response = held_response - .await - .expect("held request task should join") - .expect("held request should complete"); - assert_eq!(completed_response.status(), StatusCode::OK); - } - #[tokio::test] async fn admin_pool_is_isolated_from_default_routes() { let gate = HeldRequestGate { entered: Arc::new(Notify::new()), release: Arc::new(Notify::new()), }; - let app = build_grouped_test_app(2, 1, 1, gate.clone()); + let app = build_grouped_test_app(2, 1, gate.clone()); let entered = gate.entered.notified(); let held_response = tokio::spawn(app.clone().oneshot(test_request("/admin/api/overview"))); @@ -468,22 +339,18 @@ mod tests { } #[test] - fn classifies_only_exact_gallery_detail_paths_as_detail() { + fn classifies_active_api_and_admin_pools() { assert_eq!( - classify_request_permit_pool("/api/runtime/puzzle/gallery/profile-1"), - crate::state::HttpRequestPermitPoolKind::Detail - ); - assert_eq!( - classify_request_permit_pool("/api/runtime/puzzle/gallery/profile-1/like"), + classify_request_permit_pool("/api/editor/showcase/resources"), crate::state::HttpRequestPermitPoolKind::Default ); assert_eq!( - classify_request_permit_pool("/api/runtime/custom-world-gallery/user-1/profile-1"), - crate::state::HttpRequestPermitPoolKind::Detail + classify_request_permit_pool("/api/runtime/settings"), + crate::state::HttpRequestPermitPoolKind::Default ); assert_eq!( - classify_request_permit_pool("/api/runtime/custom-world-gallery/user-1/profile-1/like"), - crate::state::HttpRequestPermitPoolKind::Default + classify_request_permit_pool("/admin/api/overview"), + crate::state::HttpRequestPermitPoolKind::Admin ); } } diff --git a/server-rs/crates/api-server/src/character_animation_assets.rs b/server-rs/crates/api-server/src/character_animation_assets.rs index 1cbd99e7f..8db44c280 100644 --- a/server-rs/crates/api-server/src/character_animation_assets.rs +++ b/server-rs/crates/api-server/src/character_animation_assets.rs @@ -720,7 +720,7 @@ pub(crate) async fn generate_editor_character_animation_for_owner( // 决策失败会让本 future 返回 Err,走 execute_billable 的失败退款,用户不损失泥点。 let screen_background_decision = resolve_editor_screen_background_color( state.llm_client(), - state.creative_agent_gpt5_client(), + state.editor_agent_llm_client(), EditorScreenBackgroundDecisionInput { kind: EditorScreenBackgroundDecisionKind::CharacterAnimation, screen_color: payload.screen_color.clone(), diff --git a/server-rs/crates/api-server/src/config.rs b/server-rs/crates/api-server/src/config.rs index 3ebcc16b8..397366ee8 100644 --- a/server-rs/crates/api-server/src/config.rs +++ b/server-rs/crates/api-server/src/config.rs @@ -47,8 +47,6 @@ pub struct AppConfig { pub external_generation_controller_service_template: String, pub external_generation_controller_dry_run: bool, pub max_concurrent_requests: Option, - pub gallery_max_concurrent_requests: Option, - pub detail_max_concurrent_requests: Option, pub admin_max_concurrent_requests: Option, pub shutdown_outbox_flush_timeout: Duration, pub tracking_outbox_enabled: bool, @@ -145,10 +143,6 @@ pub struct AppConfig { pub wechat_mini_program_virtual_payment_notify_provide_goods_endpoint: String, pub wechat_mini_program_message_token: Option, pub wechat_mini_program_message_encoding_aes_key: Option, - pub wechat_mini_program_subscribe_message_enabled: bool, - pub wechat_mini_program_generation_result_template_id: Option, - pub wechat_mini_program_subscribe_message_endpoint: String, - pub wechat_mini_program_subscribe_message_state: String, pub wechat_mini_program_virtual_payment_env: u8, pub oss_bucket: Option, pub oss_endpoint: Option, @@ -172,8 +166,6 @@ pub struct AppConfig { pub llm_request_timeout_ms: u64, pub llm_max_retries: u32, pub llm_retry_backoff_ms: u64, - pub rpg_llm_web_search_enabled: bool, - pub creation_agent_llm_web_search_enabled: bool, pub dashscope_base_url: String, pub dashscope_api_key: Option, pub dashscope_scene_image_model: String, @@ -291,8 +283,6 @@ impl Default for AppConfig { "genarrative-external-generation-worker@{}.service".to_string(), external_generation_controller_dry_run: false, max_concurrent_requests: None, - gallery_max_concurrent_requests: None, - detail_max_concurrent_requests: None, admin_max_concurrent_requests: None, shutdown_outbox_flush_timeout: Duration::from_millis(5_000), tracking_outbox_enabled: true, @@ -400,13 +390,6 @@ impl Default for AppConfig { "https://api.weixin.qq.com/xpay/notify_provide_goods".to_string(), wechat_mini_program_message_token: None, wechat_mini_program_message_encoding_aes_key: None, - wechat_mini_program_subscribe_message_enabled: true, - wechat_mini_program_generation_result_template_id: Some( - "m5z7BkkBhJGbcH0cdDeHaeRU2tViDEguP38XdrRRCdU".to_string(), - ), - wechat_mini_program_subscribe_message_endpoint: - "https://api.weixin.qq.com/cgi-bin/message/subscribe/send".to_string(), - wechat_mini_program_subscribe_message_state: "formal".to_string(), wechat_mini_program_virtual_payment_env: 0, oss_bucket: None, oss_endpoint: None, @@ -432,11 +415,6 @@ impl Default for AppConfig { llm_request_timeout_ms: DEFAULT_REQUEST_TIMEOUT_MS, llm_max_retries: DEFAULT_MAX_RETRIES, llm_retry_backoff_ms: DEFAULT_RETRY_BACKOFF_MS, - // 中文注释:创作/RPG 的结构化 JSON 链路默认不启用 Responses web_search。 - // 未开通工具的上游会先吐自然语言再返回 ToolNotOpen,容易污染严格 JSON 结果; - // 需要联网增强时由部署环境显式打开对应开关。 - rpg_llm_web_search_enabled: false, - creation_agent_llm_web_search_enabled: false, dashscope_base_url: "https://dashscope.aliyuncs.com/api/v1".to_string(), dashscope_api_key: None, dashscope_scene_image_model: String::new(), @@ -649,16 +627,6 @@ impl AppConfig { { config.max_concurrent_requests = Some(max_concurrent_requests); } - if let Some(max_concurrent_requests) = - read_first_usize_env(&["GENARRATIVE_API_GALLERY_MAX_CONCURRENT_REQUESTS"]) - { - config.gallery_max_concurrent_requests = Some(max_concurrent_requests); - } - if let Some(max_concurrent_requests) = - read_first_usize_env(&["GENARRATIVE_API_DETAIL_MAX_CONCURRENT_REQUESTS"]) - { - config.detail_max_concurrent_requests = Some(max_concurrent_requests); - } if let Some(max_concurrent_requests) = read_first_usize_env(&["GENARRATIVE_API_ADMIN_MAX_CONCURRENT_REQUESTS"]) { @@ -944,26 +912,6 @@ impl AppConfig { read_first_non_empty_env(&["WECHAT_MINIPROGRAM_MESSAGE_TOKEN"]); config.wechat_mini_program_message_encoding_aes_key = read_first_non_empty_env(&["WECHAT_MINIPROGRAM_MESSAGE_ENCODING_AES_KEY"]); - if let Some(enabled) = - read_first_bool_env(&["WECHAT_MINIPROGRAM_SUBSCRIBE_MESSAGE_ENABLED"]) - { - config.wechat_mini_program_subscribe_message_enabled = enabled; - } - if let Some(template_id) = - read_first_non_empty_env(&["WECHAT_MINIPROGRAM_GENERATION_RESULT_TEMPLATE_ID"]) - { - config.wechat_mini_program_generation_result_template_id = Some(template_id); - } - if let Some(endpoint) = - read_first_non_empty_env(&["WECHAT_MINIPROGRAM_SUBSCRIBE_MESSAGE_ENDPOINT"]) - { - config.wechat_mini_program_subscribe_message_endpoint = endpoint; - } - if let Some(state) = - read_first_non_empty_env(&["WECHAT_MINIPROGRAM_SUBSCRIBE_MESSAGE_STATE"]) - { - config.wechat_mini_program_subscribe_message_state = state; - } if let Some(env) = read_first_u8_env(&["WECHAT_MINI_PROGRAM_VIRTUAL_PAYMENT_ENV"]) && env <= 1 { @@ -1089,20 +1037,6 @@ impl AppConfig { config.llm_retry_backoff_ms = llm_retry_backoff_ms; } - if let Some(rpg_llm_web_search_enabled) = read_first_bool_env(&[ - "GENARRATIVE_RPG_LLM_WEB_SEARCH_ENABLED", - "RPG_LLM_WEB_SEARCH_ENABLED", - ]) { - config.rpg_llm_web_search_enabled = rpg_llm_web_search_enabled; - } - - if let Some(creation_agent_llm_web_search_enabled) = read_first_bool_env(&[ - "GENARRATIVE_CREATION_AGENT_LLM_WEB_SEARCH_ENABLED", - "CREATION_AGENT_LLM_WEB_SEARCH_ENABLED", - ]) { - config.creation_agent_llm_web_search_enabled = creation_agent_llm_web_search_enabled; - } - if let Some(dashscope_base_url) = read_first_non_empty_env(&["DASHSCOPE_BASE_URL"]) { config.dashscope_base_url = dashscope_base_url; } @@ -1954,8 +1888,6 @@ mod tests { std::env::remove_var("GENARRATIVE_API_LISTEN_BACKLOG"); std::env::remove_var("GENARRATIVE_API_WORKER_THREADS"); std::env::remove_var("GENARRATIVE_API_MAX_CONCURRENT_REQUESTS"); - std::env::remove_var("GENARRATIVE_API_GALLERY_MAX_CONCURRENT_REQUESTS"); - std::env::remove_var("GENARRATIVE_API_DETAIL_MAX_CONCURRENT_REQUESTS"); std::env::remove_var("GENARRATIVE_API_ADMIN_MAX_CONCURRENT_REQUESTS"); std::env::remove_var("GENARRATIVE_API_SHUTDOWN_OUTBOX_FLUSH_TIMEOUT_MS"); std::env::remove_var("GENARRATIVE_TRACKING_OUTBOX_ENABLED"); @@ -1972,8 +1904,6 @@ mod tests { std::env::set_var("GENARRATIVE_API_LISTEN_BACKLOG", "2048"); std::env::set_var("GENARRATIVE_API_WORKER_THREADS", "6"); std::env::set_var("GENARRATIVE_API_MAX_CONCURRENT_REQUESTS", "128"); - std::env::set_var("GENARRATIVE_API_GALLERY_MAX_CONCURRENT_REQUESTS", "64"); - std::env::set_var("GENARRATIVE_API_DETAIL_MAX_CONCURRENT_REQUESTS", "32"); std::env::set_var("GENARRATIVE_API_ADMIN_MAX_CONCURRENT_REQUESTS", "16"); std::env::set_var("GENARRATIVE_API_SHUTDOWN_OUTBOX_FLUSH_TIMEOUT_MS", "3000"); std::env::set_var("GENARRATIVE_TRACKING_OUTBOX_ENABLED", "false"); @@ -1999,8 +1929,6 @@ mod tests { assert_eq!(config.listen_backlog, 2048); assert_eq!(config.worker_threads, Some(6)); assert_eq!(config.max_concurrent_requests, Some(128)); - assert_eq!(config.gallery_max_concurrent_requests, Some(64)); - assert_eq!(config.detail_max_concurrent_requests, Some(32)); assert_eq!(config.admin_max_concurrent_requests, Some(16)); assert_eq!( config.shutdown_outbox_flush_timeout, @@ -2034,8 +1962,6 @@ mod tests { std::env::remove_var("GENARRATIVE_API_LISTEN_BACKLOG"); std::env::remove_var("GENARRATIVE_API_WORKER_THREADS"); std::env::remove_var("GENARRATIVE_API_MAX_CONCURRENT_REQUESTS"); - std::env::remove_var("GENARRATIVE_API_GALLERY_MAX_CONCURRENT_REQUESTS"); - std::env::remove_var("GENARRATIVE_API_DETAIL_MAX_CONCURRENT_REQUESTS"); std::env::remove_var("GENARRATIVE_API_ADMIN_MAX_CONCURRENT_REQUESTS"); std::env::remove_var("GENARRATIVE_API_SHUTDOWN_OUTBOX_FLUSH_TIMEOUT_MS"); std::env::remove_var("GENARRATIVE_TRACKING_OUTBOX_ENABLED"); @@ -2079,9 +2005,6 @@ mod tests { ); std::env::remove_var("WECHAT_MINIPROGRAM_MESSAGE_TOKEN"); std::env::remove_var("WECHAT_MINIPROGRAM_MESSAGE_ENCODING_AES_KEY"); - std::env::remove_var("WECHAT_MINIPROGRAM_SUBSCRIBE_MESSAGE_ENABLED"); - std::env::remove_var("WECHAT_MINIPROGRAM_GENERATION_RESULT_TEMPLATE_ID"); - std::env::remove_var("WECHAT_MINIPROGRAM_SUBSCRIBE_MESSAGE_STATE"); std::env::remove_var("WECHAT_MINI_PROGRAM_VIRTUAL_PAYMENT_ENV"); std::env::set_var("WECHAT_PAY_ENABLED", "true"); std::env::set_var("WECHAT_PAY_PROVIDER", "real"); @@ -2118,12 +2041,6 @@ mod tests { "WECHAT_MINIPROGRAM_MESSAGE_ENCODING_AES_KEY", "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFG", ); - std::env::set_var("WECHAT_MINIPROGRAM_SUBSCRIBE_MESSAGE_ENABLED", "true"); - std::env::set_var( - "WECHAT_MINIPROGRAM_GENERATION_RESULT_TEMPLATE_ID", - "tmpl-generation-result", - ); - std::env::set_var("WECHAT_MINIPROGRAM_SUBSCRIBE_MESSAGE_STATE", "trial"); std::env::set_var("WECHAT_MINI_PROGRAM_VIRTUAL_PAYMENT_ENV", "1"); } @@ -2176,14 +2093,6 @@ mod tests { .as_deref(), Some("sandbox-app-key-001") ); - assert!(config.wechat_mini_program_subscribe_message_enabled); - assert_eq!( - config - .wechat_mini_program_generation_result_template_id - .as_deref(), - Some("tmpl-generation-result") - ); - assert_eq!(config.wechat_mini_program_subscribe_message_state, "trial"); assert_eq!(config.wechat_mini_program_virtual_payment_env, 1); assert_eq!( config.wechat_mini_program_virtual_payment_query_order_endpoint, @@ -2214,9 +2123,6 @@ mod tests { ); std::env::remove_var("WECHAT_MINIPROGRAM_MESSAGE_TOKEN"); std::env::remove_var("WECHAT_MINIPROGRAM_MESSAGE_ENCODING_AES_KEY"); - std::env::remove_var("WECHAT_MINIPROGRAM_SUBSCRIBE_MESSAGE_ENABLED"); - std::env::remove_var("WECHAT_MINIPROGRAM_GENERATION_RESULT_TEMPLATE_ID"); - std::env::remove_var("WECHAT_MINIPROGRAM_SUBSCRIBE_MESSAGE_STATE"); std::env::remove_var("WECHAT_MINI_PROGRAM_VIRTUAL_PAYMENT_ENV"); } } @@ -2281,54 +2187,6 @@ mod tests { } } - #[test] - fn default_keeps_structured_llm_web_search_disabled() { - let config = AppConfig::default(); - - assert!(!config.rpg_llm_web_search_enabled); - assert!(!config.creation_agent_llm_web_search_enabled); - } - - #[test] - fn from_env_reads_rpg_llm_web_search_switch() { - let _guard = ENV_LOCK - .get_or_init(|| Mutex::new(())) - .lock() - .expect("env lock should not poison"); - - unsafe { - std::env::remove_var("GENARRATIVE_RPG_LLM_WEB_SEARCH_ENABLED"); - std::env::set_var("GENARRATIVE_RPG_LLM_WEB_SEARCH_ENABLED", "true"); - } - - let config = AppConfig::from_env(); - assert!(config.rpg_llm_web_search_enabled); - - unsafe { - std::env::remove_var("GENARRATIVE_RPG_LLM_WEB_SEARCH_ENABLED"); - } - } - - #[test] - fn from_env_reads_creation_agent_llm_web_search_switch() { - let _guard = ENV_LOCK - .get_or_init(|| Mutex::new(())) - .lock() - .expect("env lock should not poison"); - - unsafe { - std::env::remove_var("GENARRATIVE_CREATION_AGENT_LLM_WEB_SEARCH_ENABLED"); - std::env::set_var("GENARRATIVE_CREATION_AGENT_LLM_WEB_SEARCH_ENABLED", "true"); - } - - let config = AppConfig::from_env(); - assert!(config.creation_agent_llm_web_search_enabled); - - unsafe { - std::env::remove_var("GENARRATIVE_CREATION_AGENT_LLM_WEB_SEARCH_ENABLED"); - } - } - #[test] fn from_env_reads_editor_generation_pricing_override_path() { let _guard = ENV_LOCK diff --git a/server-rs/crates/api-server/src/editor_agent.rs b/server-rs/crates/api-server/src/editor_agent.rs index 5d79a37a8..edad714e6 100644 --- a/server-rs/crates/api-server/src/editor_agent.rs +++ b/server-rs/crates/api-server/src/editor_agent.rs @@ -65,7 +65,7 @@ const EDITOR_AGENT_MESSAGES_DOCUMENT_MAX_BYTES: usize = 2 * 1024 * 1024; const EDITOR_AGENT_MESSAGES_READ_EXPIRE_SECONDS: u64 = 60; const EDITOR_AGENT_LLM_ATTACHMENT_URL_EXPIRE_SECONDS: u64 = 300; const EDITOR_AGENT_LLM_MAX_HISTORY_MESSAGES: usize = 12; -const EDITOR_AGENT_LLM_PLANNING_MODEL: &str = platform_agent::CREATIVE_AGENT_GPT5_MODEL; +const EDITOR_AGENT_LLM_PLANNING_MODEL: &str = platform_llm::EDITOR_AGENT_GPT5_MODEL; const EDITOR_AGENT_LLM_MAX_OUTPUT_TOKENS: u32 = 1024; const EDITOR_AGENT_LLM_REQUEST_TIMEOUT_MS: u64 = 60_000; const EDITOR_AGENT_TOOL_CALL_ID_PREFIX: &str = "editor-agent-tool"; @@ -1050,7 +1050,7 @@ async fn plan_editor_agent_turn( user_message: &EditorAgentMessage, latest_generation_reference: Option<&EditorAgentGeneratedImageReference>, ) -> Result { - let Some(llm_client) = state.creative_agent_gpt5_client() else { + let Some(llm_client) = state.editor_agent_llm_client() else { return Err(EditorAgentPlanningError::LlmUnavailable); }; @@ -2621,7 +2621,7 @@ mod tests { assert_eq!(request.protocol, LlmTextProtocol::ChatCompletions); assert_eq!( request.model.as_deref(), - Some(platform_agent::CREATIVE_AGENT_GPT5_MODEL) + Some(platform_llm::EDITOR_AGENT_GPT5_MODEL) ); assert_eq!(request.max_tokens, Some(EDITOR_AGENT_LLM_MAX_OUTPUT_TOKENS)); assert_eq!( diff --git a/server-rs/crates/api-server/src/editor_project.rs b/server-rs/crates/api-server/src/editor_project.rs index 4d5e82c72..2616c1696 100644 --- a/server-rs/crates/api-server/src/editor_project.rs +++ b/server-rs/crates/api-server/src/editor_project.rs @@ -1627,7 +1627,7 @@ pub(crate) async fn generate_editor_image_for_owner( Some( resolve_editor_screen_background_color( state.llm_client(), - state.creative_agent_gpt5_client(), + state.editor_agent_llm_client(), EditorScreenBackgroundDecisionInput { kind: EditorScreenBackgroundDecisionKind::Character, screen_color: requested_screen_color.clone(), @@ -4071,7 +4071,7 @@ pub(crate) async fn generate_editor_icon_spritesheet_for_owner( // 背景色决策:预扣泥点之后才发起(决策失败→future 返回 Err→失败退款)。 let screen_background_decision = resolve_editor_screen_background_color( state.llm_client(), - state.creative_agent_gpt5_client(), + state.editor_agent_llm_client(), EditorScreenBackgroundDecisionInput { kind: EditorScreenBackgroundDecisionKind::IconSpritesheet, screen_color: requested_screen_color.clone(), @@ -4804,7 +4804,7 @@ pub(crate) async fn extract_editor_ui_design_assets_for_owner( // 背景色决策:预扣泥点之后才发起(决策失败→future 返回 Err→失败退款)。 let screen_background_decision = resolve_editor_screen_background_color( state.llm_client(), - state.creative_agent_gpt5_client(), + state.editor_agent_llm_client(), EditorScreenBackgroundDecisionInput { kind: EditorScreenBackgroundDecisionKind::UiDesignAssetExtraction, screen_color: requested_screen_color.clone(), diff --git a/server-rs/crates/api-server/src/editor_screen_background_decision.rs b/server-rs/crates/api-server/src/editor_screen_background_decision.rs index ac38816c9..1d2d872b1 100644 --- a/server-rs/crates/api-server/src/editor_screen_background_decision.rs +++ b/server-rs/crates/api-server/src/editor_screen_background_decision.rs @@ -860,7 +860,7 @@ mod tests { ); } - // 真机联调:按 build_creative_agent_gpt5_client 的方式组 VectorEngine 客户端,直接跑 + // 真机联调:按 build_editor_agent_llm_client 的方式组 VectorEngine 客户端,直接跑 // resolve_editor_screen_background_color 的完整代码路径(无图文本档 + 有图视觉档), // 验证决策请求真的打到 VectorEngine 并被解析成候选色(decision.fallback == false)。 // 凭证从仓库根 .env.local / .env.secrets.local 读,需要真实 VECTOR_ENGINE_* 才有意义。 @@ -900,7 +900,7 @@ mod tests { let base_url = read_live_env("VECTOR_ENGINE_BASE_URL")?; let api_key = read_live_env("VECTOR_ENGINE_API_KEY")?; - // 与 state.rs build_creative_agent_gpt5_client 一致:规整到以 /v1 结尾。 + // 与 state.rs build_editor_agent_llm_client 一致:规整到以 /v1 结尾。 let base_url = if base_url.trim_end_matches('/').ends_with("/v1") { base_url.trim_end_matches('/').to_string() } else { diff --git a/server-rs/crates/api-server/src/main.rs b/server-rs/crates/api-server/src/main.rs index 6fd120ca8..71c705dc6 100644 --- a/server-rs/crates/api-server/src/main.rs +++ b/server-rs/crates/api-server/src/main.rs @@ -62,6 +62,7 @@ mod registration_reward; mod request_context; mod response_headers; mod runtime_profile; +mod runtime_settings; mod session_client; mod state; mod telemetry; diff --git a/server-rs/crates/api-server/src/modules/platform_support.rs b/server-rs/crates/api-server/src/modules/platform_support.rs index 842aa539b..2c7b0f882 100644 --- a/server-rs/crates/api-server/src/modules/platform_support.rs +++ b/server-rs/crates/api-server/src/modules/platform_support.rs @@ -25,6 +25,7 @@ use crate::{ get_hyper3d_downloads, get_hyper3d_task_status, submit_hyper3d_image_to_model, submit_hyper3d_text_to_model, }, + runtime_settings::{get_runtime_settings, put_runtime_settings}, state::AppState, vector_engine_audio_generation::{ generate_editor_background_music, generate_editor_sound_effect, @@ -173,6 +174,15 @@ pub fn router(state: AppState) -> Router { require_bearer_auth, )), ) + .route( + "/api/runtime/settings", + get(get_runtime_settings) + .put(put_runtime_settings) + .route_layer(middleware::from_fn_with_state( + state.clone(), + require_bearer_auth, + )), + ) .route( "/api/assets/hyper3d/text-to-model", post(submit_hyper3d_text_to_model).route_layer(middleware::from_fn_with_state( diff --git a/server-rs/crates/api-server/src/runtime_settings.rs b/server-rs/crates/api-server/src/runtime_settings.rs index 26df7b03d..a274ba01c 100644 --- a/server-rs/crates/api-server/src/runtime_settings.rs +++ b/server-rs/crates/api-server/src/runtime_settings.rs @@ -263,6 +263,35 @@ mod tests { ); } + #[tokio::test] + async fn runtime_settings_rejects_out_of_range_music_volume() { + let (state, user_id) = seed_authenticated_state().await; + let token = issue_access_token(&state, user_id.as_str()); + let app = build_router(state); + + let response = app + .oneshot( + Request::builder() + .method("PUT") + .uri("/api/runtime/settings") + .header("authorization", format!("Bearer {token}")) + .header("content-type", "application/json") + .header("x-genarrative-response-envelope", "v1") + .body(Body::from( + json!({ + "musicVolume": 1.4, + "platformTheme": "dark" + }) + .to_string(), + )) + .expect("request should build"), + ) + .await + .expect("request should succeed"); + + assert_eq!(response.status(), StatusCode::BAD_REQUEST); + } + #[tokio::test] #[ignore = "需要本地 SpacetimeDB xushi-p4wfr 已启动并发布当前 module;验证 PUT/GET settings 主链"] async fn runtime_settings_round_trip_against_local_spacetimedb() { @@ -281,7 +310,7 @@ mod tests { .header("x-genarrative-response-envelope", "v1") .body(Body::from( json!({ - "musicVolume": 1.4, + "musicVolume": 0.73, "platformTheme": "dark" }) .to_string(), @@ -305,7 +334,7 @@ mod tests { put_payload["data"]["platformTheme"], Value::String("dark".to_string()) ); - assert_eq!(put_payload["data"]["musicVolume"], json!(1.0)); + assert_eq!(put_payload["data"]["musicVolume"], json!(0.73)); let get_response = app .oneshot( @@ -334,7 +363,7 @@ mod tests { get_payload["data"]["platformTheme"], Value::String("dark".to_string()) ); - assert_eq!(get_payload["data"]["musicVolume"], json!(1.0)); + assert_eq!(get_payload["data"]["musicVolume"], json!(0.73)); } async fn seed_authenticated_state() -> (AppState, String) { diff --git a/server-rs/crates/api-server/src/state.rs b/server-rs/crates/api-server/src/state.rs index ff49aaa5b..f5c3a3495 100644 --- a/server-rs/crates/api-server/src/state.rs +++ b/server-rs/crates/api-server/src/state.rs @@ -54,8 +54,6 @@ pub type HttpRequestPermitPool = Semaphore; #[derive(Clone, Copy, Debug, Eq, PartialEq)] pub enum HttpRequestPermitPoolKind { Default, - Gallery, - Detail, Admin, } @@ -63,8 +61,6 @@ impl HttpRequestPermitPoolKind { pub fn as_str(self) -> &'static str { match self { Self::Default => "default", - Self::Gallery => "gallery", - Self::Detail => "detail", Self::Admin => "admin", } } @@ -73,8 +69,6 @@ impl HttpRequestPermitPoolKind { #[derive(Clone, Debug)] pub struct HttpRequestPermitPools { default: Option>, - gallery: Option>, - detail: Option>, admin: Option>, } @@ -85,14 +79,6 @@ impl HttpRequestPermitPools { .max_concurrent_requests .map(HttpRequestPermitPool::new) .map(Arc::new), - gallery: config - .gallery_max_concurrent_requests - .map(HttpRequestPermitPool::new) - .map(Arc::new), - detail: config - .detail_max_concurrent_requests - .map(HttpRequestPermitPool::new) - .map(Arc::new), admin: config .admin_max_concurrent_requests .map(HttpRequestPermitPool::new) @@ -106,8 +92,6 @@ impl HttpRequestPermitPools { ) -> Option<(HttpRequestPermitPoolKind, Arc)> { let selected = match kind { HttpRequestPermitPoolKind::Default => self.default.clone(), - HttpRequestPermitPoolKind::Gallery => self.gallery.clone(), - HttpRequestPermitPoolKind::Detail => self.detail.clone(), HttpRequestPermitPoolKind::Admin => self.admin.clone(), }; selected.map(|pool| (kind, pool)).or_else(|| { @@ -272,7 +256,7 @@ pub struct AppStateInner { wallet_refund_outbox: Option>, editor_generation_pricing_store: EditorGenerationPricingStore, llm_client: Option, - creative_agent_gpt5_client: Option, + editor_agent_llm_client: Option, matting_client: Option, editor_bgfilter_http_client: reqwest::Client, #[cfg(any())] @@ -515,7 +499,7 @@ impl AppState { ) .map_err(|error| AppStateInitError::DependencyUnavailable(error.to_string()))?; let llm_client = build_llm_client(&config)?; - let creative_agent_gpt5_client = build_creative_agent_gpt5_client(&config)?; + let editor_agent_llm_client = build_editor_agent_llm_client(&config)?; let matting_client = build_matting_client(&config)?; let editor_bgfilter_http_client = build_editor_bgfilter_http_client(&config)?; let http_request_permit_pools = HttpRequestPermitPools::from_config(&config); @@ -557,7 +541,7 @@ impl AppState { wallet_refund_outbox, editor_generation_pricing_store, llm_client, - creative_agent_gpt5_client, + editor_agent_llm_client, matting_client, editor_bgfilter_http_client, #[cfg(any())] @@ -1264,8 +1248,8 @@ impl AppState { self.llm_client.as_ref() } - pub fn creative_agent_gpt5_client(&self) -> Option<&LlmClient> { - self.creative_agent_gpt5_client.as_ref() + pub fn editor_agent_llm_client(&self) -> Option<&LlmClient> { + self.editor_agent_llm_client.as_ref() } pub fn matting_client(&self) -> Option<&MattingClient> { @@ -2012,9 +1996,6 @@ fn build_wechat_client(config: &AppConfig) -> WechatClient { app_id: config.wechat_mini_program_app_id.clone(), app_secret: config.wechat_mini_program_app_secret.clone(), stable_access_token_endpoint: config.wechat_stable_access_token_endpoint.clone(), - subscribe_message_endpoint: config - .wechat_mini_program_subscribe_message_endpoint - .clone(), virtual_payment_query_order_endpoint: config .wechat_mini_program_virtual_payment_query_order_endpoint .clone(), @@ -2047,7 +2028,7 @@ fn build_llm_client(config: &AppConfig) -> Result, AppStateIni Ok(Some(LlmClient::new(llm_config)?)) } -fn build_creative_agent_gpt5_client( +fn build_editor_agent_llm_client( config: &AppConfig, ) -> Result, AppStateInitError> { // 中文注释:Apimart 已于 2026-06 弃用,LLM 文本调用统一迁移到 VectorEngine。 @@ -2070,7 +2051,7 @@ fn build_creative_agent_gpt5_client( LlmProvider::OpenAiCompatible, base_url, api_key.to_string(), - platform_agent::CREATIVE_AGENT_GPT5_MODEL.to_string(), + platform_llm::EDITOR_AGENT_GPT5_MODEL.to_string(), config.llm_request_timeout_ms, 0, config.llm_retry_backoff_ms, @@ -2308,7 +2289,7 @@ mod tests { let state = AppState::new(AppConfig::default()).expect("state should build"); assert!(state.llm_client().is_none()); - assert!(state.creative_agent_gpt5_client().is_none()); + assert!(state.editor_agent_llm_client().is_none()); } #[test] @@ -2323,7 +2304,7 @@ mod tests { } #[test] - fn app_state_builds_creative_agent_gpt5_client_from_vector_engine_settings() { + fn app_state_builds_editor_agent_llm_client_from_vector_engine_settings() { let mut config = AppConfig::default(); config.llm_api_key = None; config.vector_engine_base_url = "https://api.vectorengine.test".to_string(); @@ -2331,12 +2312,12 @@ mod tests { let state = AppState::new(config).expect("state should build"); let client = state - .creative_agent_gpt5_client() - .expect("creative agent gpt5 client should exist"); + .editor_agent_llm_client() + .expect("editor agent LLM client should exist"); assert_eq!( client.config().model(), - platform_agent::CREATIVE_AGENT_GPT5_MODEL + platform_llm::EDITOR_AGENT_GPT5_MODEL ); assert_eq!( client.config().chat_completions_url(), diff --git a/server-rs/crates/api-server/src/telemetry.rs b/server-rs/crates/api-server/src/telemetry.rs index d985d8996..f46e801b0 100644 --- a/server-rs/crates/api-server/src/telemetry.rs +++ b/server-rs/crates/api-server/src/telemetry.rs @@ -223,8 +223,6 @@ struct ExternalApiMetrics { struct HttpRequestPermitsAvailableGauges { default: Arc, - gallery: Arc, - detail: Arc, admin: Arc, } @@ -232,8 +230,6 @@ impl HttpRequestPermitsAvailableGauges { fn new() -> Self { Self { default: Arc::new(AtomicI64::new(0)), - gallery: Arc::new(AtomicI64::new(0)), - detail: Arc::new(AtomicI64::new(0)), admin: Arc::new(AtomicI64::new(0)), } } @@ -242,8 +238,6 @@ impl HttpRequestPermitsAvailableGauges { let value = available.min(i64::MAX as usize) as i64; match pool { HttpRequestPermitPoolKind::Default => &self.default, - HttpRequestPermitPoolKind::Gallery => &self.gallery, - HttpRequestPermitPoolKind::Detail => &self.detail, HttpRequestPermitPoolKind::Admin => &self.admin, } .store(value, Ordering::Relaxed); @@ -377,8 +371,6 @@ fn register_http_request_permits_available_metric() -> HttpRequestPermitsAvailab let gauges = HttpRequestPermitsAvailableGauges::new(); let meter = global::meter("genarrative-api"); let default_gauge = gauges.default.clone(); - let gallery_gauge = gauges.gallery.clone(); - let detail_gauge = gauges.detail.clone(); let admin_gauge = gauges.admin.clone(); meter .i64_observable_up_down_counter("genarrative.http.server.request_permits.available") @@ -392,20 +384,6 @@ fn register_http_request_permits_available_metric() -> HttpRequestPermitsAvailab HttpRequestPermitPoolKind::Default.as_str(), )], ); - observer.observe( - gallery_gauge.load(Ordering::Relaxed), - &[KeyValue::new( - "pool", - HttpRequestPermitPoolKind::Gallery.as_str(), - )], - ); - observer.observe( - detail_gauge.load(Ordering::Relaxed), - &[KeyValue::new( - "pool", - HttpRequestPermitPoolKind::Detail.as_str(), - )], - ); observer.observe( admin_gauge.load(Ordering::Relaxed), &[KeyValue::new( @@ -473,11 +451,7 @@ fn status_class(status: u16) -> &'static str { } pub(crate) fn observability_route(path: &str) -> String { - if path.starts_with("/api/runtime/puzzle/gallery") { - "/api/runtime/puzzle/gallery".to_string() - } else if path.starts_with("/api/runtime/custom-world-gallery") { - "/api/runtime/custom-world-gallery".to_string() - } else if path.starts_with("/admin/api/") { + if path.starts_with("/admin/api/") { "/admin/api/*".to_string() } else if path.starts_with("/api/") { "/api/*".to_string() @@ -506,13 +480,14 @@ mod tests { #[test] fn observability_route_keeps_metrics_labels_low_cardinality() { assert_eq!( - observability_route("/api/runtime/puzzle/gallery?cursor=abc"), - "/api/runtime/puzzle/gallery" - ); - assert_eq!( - observability_route("/api/runtime/puzzle/runs/run-123/history"), + observability_route("/api/editor/showcase/resources?cursor=abc"), "/api/*" ); + assert_eq!( + observability_route("/api/editor/projects/project-1"), + "/api/*" + ); + assert_eq!(observability_route("/api/runtime/settings"), "/api/*"); assert_eq!(observability_route("/admin/api/debug/http"), "/admin/api/*"); } diff --git a/server-rs/crates/api-server/src/tracking.rs b/server-rs/crates/api-server/src/tracking.rs index 073228eae..962876712 100644 --- a/server-rs/crates/api-server/src/tracking.rs +++ b/server-rs/crates/api-server/src/tracking.rs @@ -141,15 +141,7 @@ pub async fn record_route_tracking_event_after_success( fn resolve_route_tracking_spec(method: &Method, path: &str) -> Option { use RuntimeTrackingScopeKind::{Site, User}; - // 后台、RPG、大鱼吃小鱼、Visual Novel、Story、Combat 明确排除,不走通用用户行为埋点。 - if path.starts_with("/admin/") - || path.contains("/big-fish") - || path.contains("/visual-novel") - || path.contains("/story") - || path.contains("/combat") - || path.contains("/rpg") - || path.starts_with("/api/runtime/chat/") - { + if is_route_tracking_excluded(path) { return None; } @@ -389,14 +381,12 @@ fn resolve_route_tracking_spec(method: &Method, path: &str) -> Option { Some(route_spec("tts_sse_start", "speech", User, "anonymous")) } - #[cfg(any())] ("GET", "/api/runtime/settings") => Some(route_spec( "runtime_settings_view", "runtime", User, "anonymous", )), - #[cfg(any())] ("PUT", "/api/runtime/settings") => Some(route_spec( "runtime_settings_update", "runtime", @@ -460,6 +450,10 @@ fn resolve_route_tracking_spec(method: &Method, path: &str) -> Option bool { + path.starts_with("/admin/") +} + fn route_spec( event_key: &'static str, module_key: &'static str, @@ -551,6 +545,10 @@ fn normalize_route_path(path: &str) -> String { } fn is_dynamic_path_segment(segment: &str) -> bool { + if is_known_static_route_segment(segment) { + return false; + } + let lower = segment.to_ascii_lowercase(); segment.len() >= 8 || segment.chars().any(|ch| ch.is_ascii_digit()) @@ -560,6 +558,76 @@ fn is_dynamic_path_segment(segment: &str) -> bool { || lower.starts_with("session") } +fn is_known_static_route_segment(segment: &str) -> bool { + matches!( + segment, + "ai" | "analytics" + | "api" + | "asr" + | "assets" + | "auth" + | "bidirection" + | "bind-phone" + | "browse-history" + | "cancel" + | "character-animation" + | "character-visual" + | "character-workflow-cache" + | "chat" + | "chunks" + | "claim" + | "complete" + | "completions" + | "config" + | "dashboard" + | "fail" + | "feedback" + | "generate" + | "history" + | "import-video" + | "invite-center" + | "llm" + | "login" + | "login-options" + | "logout" + | "logout-all" + | "me" + | "metric" + | "orders" + | "phone" + | "play-stats" + | "profile" + | "publish" + | "recharge" + | "recharge-center" + | "redeem" + | "redeem-code" + | "redeem-codes" + | "references" + | "referrals" + | "refresh" + | "revoke" + | "runtime" + | "save" + | "save-archives" + | "send-code" + | "sessions" + | "settings" + | "snapshot" + | "speech" + | "sse" + | "stages" + | "start" + | "stream" + | "sts-upload-credentials" + | "tasks" + | "tts" + | "volcengine" + | "wallet-ledger" + | "wechat" + ) +} + #[cfg(not(test))] pub async fn record_daily_login_tracking_event_after_success( state: &AppState, @@ -741,3 +809,58 @@ fn runtime_profile_beijing_day_key(occurred_at_micros: i64) -> i64 { const PROFILE_RUNTIME_DAY_MICROS: i64 = 86_400_000_000; (occurred_at_micros + PROFILE_TASK_BEIJING_OFFSET_MICROS).div_euclid(PROFILE_RUNTIME_DAY_MICROS) } + +#[cfg(test)] +mod tests { + use axum::http::Method; + + use super::{is_route_tracking_excluded, normalize_route_path, resolve_route_tracking_spec}; + + #[test] + fn route_normalization_preserves_static_segments_and_replaces_ids() { + assert_eq!( + normalize_route_path("/api/runtime/settings"), + "/api/runtime/settings" + ); + assert_eq!( + normalize_route_path("/api/profile/dashboard"), + "/api/profile/dashboard" + ); + assert_eq!( + normalize_route_path("/api/auth/sessions/session-01/revoke"), + "/api/auth/sessions/{id}/revoke" + ); + } + + #[test] + fn active_runtime_settings_routes_keep_tracking_specs() { + for (method, event_key) in [ + (Method::GET, "runtime_settings_view"), + (Method::PUT, "runtime_settings_update"), + ] { + let spec = resolve_route_tracking_spec(&method, "/api/runtime/settings") + .expect("active runtime settings route should be tracked"); + assert_eq!(spec.event_key, event_key); + assert_eq!(spec.module_key, "runtime"); + } + } + + #[test] + fn retired_play_paths_are_not_route_tracking_exclusions() { + for path in [ + "/api/runtime/big-fish/runs/run-01", + "/api/runtime/visual-novel/runs/run-01", + "/api/runtime/story/sessions/session-01", + "/api/runtime/combat/state", + "/api/runtime/rpg/state", + "/api/runtime/chat/npc/turn/stream", + ] { + assert!(!is_route_tracking_excluded(path), "{path}"); + } + } + + #[test] + fn admin_routes_remain_excluded_from_user_route_tracking() { + assert!(is_route_tracking_excluded("/admin/api/overview")); + } +} diff --git a/server-rs/crates/module-runtime/Cargo.toml b/server-rs/crates/module-runtime/Cargo.toml index fa54946a6..786ff327a 100644 --- a/server-rs/crates/module-runtime/Cargo.toml +++ b/server-rs/crates/module-runtime/Cargo.toml @@ -11,7 +11,6 @@ spacetime-types = ["dep:spacetimedb"] [dependencies] serde = { workspace = true } serde_json = { workspace = true } -shared-contracts = { workspace = true } shared-kernel = { workspace = true } spacetimedb = { workspace = true, optional = true } time = { workspace = true, features = ["formatting", "parsing"] } diff --git a/server-rs/crates/module-runtime/src/application.rs b/server-rs/crates/module-runtime/src/application.rs index 4daf829ee..0439510b1 100644 --- a/server-rs/crates/module-runtime/src/application.rs +++ b/server-rs/crates/module-runtime/src/application.rs @@ -2,7 +2,9 @@ //! //! 这里只返回运行时快照、个人页投影和领域事件,不直接访问外部 adapter。 +#[cfg(any())] use serde_json::Value; +#[cfg(any())] use shared_kernel::{offset_datetime_to_unix_micros, parse_rfc3339}; use std::collections::{BTreeMap, BTreeSet}; @@ -940,6 +942,7 @@ pub fn build_runtime_setting_record(snapshot: RuntimeSettingSnapshot) -> Runtime } } +#[cfg(any())] pub fn build_runtime_browse_history_record( snapshot: RuntimeBrowseHistorySnapshot, ) -> RuntimeBrowseHistoryRecord { @@ -1759,6 +1762,7 @@ pub fn build_runtime_profile_invite_code_record( } } +#[cfg(any())] pub fn build_runtime_profile_played_world_record( snapshot: RuntimeProfilePlayedWorldSnapshot, ) -> RuntimeProfilePlayedWorldRecord { @@ -1779,6 +1783,7 @@ pub fn build_runtime_profile_played_world_record( } } +#[cfg(any())] pub fn build_runtime_profile_play_stats_record( snapshot: RuntimeProfilePlayStatsSnapshot, ) -> RuntimeProfilePlayStatsRecord { @@ -1795,6 +1800,7 @@ pub fn build_runtime_profile_play_stats_record( } } +#[cfg(any())] pub fn build_runtime_snapshot_record( snapshot: RuntimeSnapshot, ) -> Result { @@ -1820,6 +1826,7 @@ pub fn build_runtime_snapshot_record( }) } +#[cfg(any())] pub fn build_runtime_profile_save_archive_record( snapshot: RuntimeProfileSaveArchiveSnapshot, ) -> Result { @@ -1853,6 +1860,7 @@ pub fn build_runtime_profile_save_archive_record( }) } +#[cfg(any())] pub fn build_runtime_save_checkpoint_update( input: RuntimeSaveCheckpointInput, existing: RuntimeSnapshotRecord, @@ -1883,10 +1891,12 @@ pub fn build_runtime_save_checkpoint_update( }) } +#[cfg(any())] pub fn build_runtime_profile_played_world_id(user_id: &str, world_key: &str) -> String { format!("{}:{}", user_id.trim(), world_key.trim()) } +#[cfg(any())] pub fn build_runtime_profile_snapshot_wallet_ledger_id( user_id: &str, saved_at_micros: i64, @@ -1900,6 +1910,7 @@ pub fn build_runtime_profile_snapshot_wallet_ledger_id( ) } +#[cfg(any())] pub fn build_runtime_profile_save_archive_id(user_id: &str, world_key: &str) -> String { format!("{}:{}", user_id.trim(), world_key.trim()) } @@ -2295,6 +2306,7 @@ pub fn calculate_runtime_profile_wallet_balance( } } +#[cfg(any())] pub fn refresh_runtime_snapshot_play_time(mut game_state: Value, now_micros: i64) -> Value { let Some(game_state_object) = game_state.as_object_mut() else { return game_state; @@ -2338,6 +2350,7 @@ pub fn refresh_runtime_snapshot_play_time(mut game_state: Value, now_micros: i64 game_state } +#[cfg(any())] pub fn is_non_persistent_runtime_snapshot(game_state: &Value) -> bool { let Some(game_state) = game_state.as_object() else { return false; @@ -2357,6 +2370,7 @@ pub fn is_non_persistent_runtime_snapshot(game_state: &Value) -> bool { ) } +#[cfg(any())] pub fn resolve_runtime_profile_world_snapshot_meta( game_state: Option<&serde_json::Map>, ) -> Option { @@ -2414,6 +2428,7 @@ pub fn resolve_runtime_profile_world_snapshot_meta( }) } +#[cfg(any())] pub fn resolve_runtime_profile_save_archive_meta( game_state: &Value, current_story_json: Option<&str>, @@ -2503,6 +2518,7 @@ pub fn resolve_runtime_profile_save_archive_meta( }) } +#[cfg(any())] pub fn read_runtime_json_non_negative_u64(value: Option<&Value>) -> u64 { match value { Some(Value::Number(number)) => { @@ -2525,10 +2541,12 @@ pub fn read_runtime_json_non_negative_u64(value: Option<&Value>) -> u64 { } } +#[cfg(any())] pub fn read_runtime_json_string_field(value: &Value, field: &str) -> Option { read_runtime_json_string_field_from_map(value.as_object()?, field) } +#[cfg(any())] pub fn read_runtime_json_string_field_from_map( value: &serde_json::Map, field: &str, @@ -2541,6 +2559,7 @@ pub fn read_runtime_json_string_field_from_map( .map(ToOwned::to_owned) } +#[cfg(any())] pub fn build_runtime_builtin_world_title(world_type: &str) -> String { match world_type { "WUXIA" => "武侠世界".to_string(), @@ -2549,6 +2568,7 @@ pub fn build_runtime_builtin_world_title(world_type: &str) -> String { } } +#[cfg(any())] fn parse_optional_json_value( raw: Option<&str>, error: RuntimeProfileFieldError, diff --git a/server-rs/crates/module-runtime/src/commands.rs b/server-rs/crates/module-runtime/src/commands.rs index 24f93d4e8..cfcae63ba 100644 --- a/server-rs/crates/module-runtime/src/commands.rs +++ b/server-rs/crates/module-runtime/src/commands.rs @@ -2,15 +2,17 @@ //! //! 用于表达保存快照、更新设置、写入浏览历史、调整钱包和保存存档等输入。 +#[cfg(any())] use std::collections::HashSet; use serde_json::Value; -use shared_kernel::{ - normalize_optional_string, normalize_required_string, parse_rfc3339 as parse_shared_rfc3339, -}; +#[cfg(any())] +use shared_kernel::parse_rfc3339 as parse_shared_rfc3339; +use shared_kernel::{normalize_optional_string, normalize_required_string}; use crate::domain::*; use crate::errors::*; +#[cfg(any())] use crate::format_utc_micros; pub const PROFILE_USER_TAG_MAX_COUNT: usize = 8; @@ -23,6 +25,7 @@ fn normalize_runtime_settings_user_id( normalize_required_string(user_id).ok_or(RuntimeSettingsFieldError::MissingUserId) } +#[cfg(any())] fn normalize_runtime_browse_history_user_id( user_id: String, ) -> Result { @@ -57,6 +60,7 @@ pub fn build_runtime_setting_upsert_input( }) } +#[cfg(any())] pub fn build_runtime_browse_history_list_input( user_id: String, ) -> Result { @@ -986,6 +990,7 @@ pub fn build_runtime_profile_redeem_code_admin_disable_input( }) } +#[cfg(any())] pub fn build_runtime_profile_play_stats_get_input( user_id: String, ) -> Result { @@ -993,6 +998,7 @@ pub fn build_runtime_profile_play_stats_get_input( Ok(RuntimeProfilePlayStatsGetInput { user_id }) } +#[cfg(any())] pub fn build_runtime_snapshot_get_input( user_id: String, ) -> Result { @@ -1000,6 +1006,7 @@ pub fn build_runtime_snapshot_get_input( Ok(RuntimeSnapshotGetInput { user_id }) } +#[cfg(any())] pub fn build_runtime_snapshot_delete_input( user_id: String, ) -> Result { @@ -1007,6 +1014,7 @@ pub fn build_runtime_snapshot_delete_input( Ok(RuntimeSnapshotDeleteInput { user_id }) } +#[cfg(any())] pub fn build_runtime_profile_save_archive_list_input( user_id: String, ) -> Result { @@ -1014,6 +1022,7 @@ pub fn build_runtime_profile_save_archive_list_input( Ok(RuntimeProfileSaveArchiveListInput { user_id }) } +#[cfg(any())] pub fn build_runtime_profile_save_archive_resume_input( user_id: String, world_key: String, @@ -1024,6 +1033,7 @@ pub fn build_runtime_profile_save_archive_resume_input( Ok(RuntimeProfileSaveArchiveResumeInput { user_id, world_key }) } +#[cfg(any())] pub fn build_runtime_save_checkpoint_input( session_id: String, bottom_tab: String, @@ -1043,6 +1053,7 @@ pub fn build_runtime_save_checkpoint_input( }) } +#[cfg(any())] pub fn build_runtime_browse_history_clear_input( user_id: String, ) -> Result { @@ -1050,6 +1061,7 @@ pub fn build_runtime_browse_history_clear_input( Ok(RuntimeBrowseHistoryClearInput { user_id }) } +#[cfg(any())] pub fn build_runtime_snapshot_upsert_input( user_id: String, saved_at_micros: i64, @@ -1075,6 +1087,7 @@ pub fn build_runtime_snapshot_upsert_input( }) } +#[cfg(any())] pub fn build_runtime_browse_history_sync_input( user_id: String, entries: Vec, @@ -1124,6 +1137,7 @@ pub fn build_runtime_browse_history_sync_input( }) } +#[cfg(any())] pub fn prepare_runtime_browse_history_entries( input: RuntimeBrowseHistorySyncInput, ) -> Result, RuntimeBrowseHistoryFieldError> { @@ -1181,6 +1195,7 @@ pub fn prepare_runtime_browse_history_entries( Ok(prepared_entries) } +#[cfg(any())] pub fn build_runtime_browse_history_id( user_id: &str, owner_user_id: &str, @@ -1200,6 +1215,7 @@ pub fn build_runtime_profile_feedback_evidence_id(feedback_id: &str, index: usiz format!("{}:evidence:{:02}", feedback_id.trim(), index + 1) } +#[cfg(any())] fn parse_utc_rfc3339_to_micros(value: &str) -> Option { let trimmed = value.trim(); if trimmed.is_empty() { @@ -1210,6 +1226,7 @@ fn parse_utc_rfc3339_to_micros(value: &str) -> Option { i64::try_from(nanos / 1_000).ok() } +#[cfg(any())] fn normalize_bottom_tab(value: String) -> Option { let trimmed = normalize_required_string(value)?; let normalized = match trimmed.as_str() { @@ -1220,6 +1237,7 @@ fn normalize_bottom_tab(value: String) -> Option { Some(normalized) } +#[cfg(any())] fn normalize_current_story_json( current_story: Option, ) -> Result, RuntimeProfileFieldError> { diff --git a/server-rs/crates/module-runtime/src/domain.rs b/server-rs/crates/module-runtime/src/domain.rs index a7d35ba55..16d6d671d 100644 --- a/server-rs/crates/module-runtime/src/domain.rs +++ b/server-rs/crates/module-runtime/src/domain.rs @@ -4,6 +4,7 @@ //! 纯领域事实与值对象;SpacetimeDB client 与 HTTP response 不进入本文件。 use serde::{Deserialize, Serialize}; +#[cfg(any())] use serde_json::Value; #[cfg(feature = "spacetime-types")] @@ -11,7 +12,9 @@ use spacetimedb::SpacetimeType; pub const DEFAULT_MUSIC_VOLUME: f32 = 0.42; pub const DEFAULT_PLATFORM_THEME: RuntimePlatformTheme = RuntimePlatformTheme::Light; +#[cfg(any())] pub const DEFAULT_BROWSE_HISTORY_AUTHOR_DISPLAY_NAME: &str = "玩家"; +#[cfg(any())] pub const MAX_BROWSE_HISTORY_BATCH_SIZE: usize = 100; pub const PROFILE_WALLET_LEDGER_LIST_LIMIT: usize = 50; pub const PROFILE_NEW_USER_INITIAL_WALLET_POINTS: u64 = 100; @@ -32,7 +35,9 @@ pub const PROFILE_TASK_DEFAULT_TITLE_DAILY_LOGIN: &str = "每日登录"; pub const PROFILE_TASK_DEFAULT_REWARD_POINTS: u64 = 10; pub const PROFILE_TASK_DEFAULT_THRESHOLD: u32 = 1; pub const PROFILE_DAILY_FREE_POINTS_PER_DAY: u64 = 20; +#[cfg(any())] pub const SAVE_SNAPSHOT_VERSION: u32 = 2; +#[cfg(any())] pub const DEFAULT_SAVE_ARCHIVE_SUMMARY_TEXT: &str = "继续推进上一次保存的故事。"; pub const PROFILE_RECHARGE_PAYMENT_CHANNEL_MOCK: &str = "mock"; pub const PROFILE_RECHARGE_PAYMENT_CHANNEL_WECHAT_MINI_PROGRAM: &str = "wechat_mp"; @@ -48,34 +53,53 @@ pub const PROFILE_FEEDBACK_EVIDENCE_MAX_COUNT: usize = 4; pub const PROFILE_FEEDBACK_EVIDENCE_MAX_BYTES: u64 = 1_048_576; pub const PROFILE_FEEDBACK_EVIDENCE_TOTAL_MAX_BYTES: u64 = 4_194_304; +#[cfg(any())] pub const CREATION_ENTRY_CONFIG_GLOBAL_ID: &str = "platform_creation_center"; +#[cfg(any())] pub const DEFAULT_CREATION_ENTRY_START_TITLE: &str = "新建作品"; +#[cfg(any())] pub const DEFAULT_CREATION_ENTRY_START_DESCRIPTION: &str = "选择模板后进入对应的创作表单。"; +#[cfg(any())] pub const DEFAULT_CREATION_ENTRY_START_IDLE_BADGE: &str = "模板 Tab"; +#[cfg(any())] pub const DEFAULT_CREATION_ENTRY_START_BUSY_BADGE: &str = "正在开启"; +#[cfg(any())] pub const DEFAULT_CREATION_ENTRY_MODAL_TITLE: &str = "选择创作类型"; +#[cfg(any())] pub const DEFAULT_CREATION_ENTRY_MODAL_DESCRIPTION: &str = "先选玩法类型,再进入对应创作工作台。"; /// 创作模板分类缺省回退到推荐,不再把真实作品维度的“最近创作”种成模板页签。 +#[cfg(any())] pub const DEFAULT_CREATION_ENTRY_CATEGORY_ID: &str = "recommended"; +#[cfg(any())] pub const DEFAULT_CREATION_ENTRY_CATEGORY_LABEL: &str = "热门推荐"; +#[cfg(any())] pub const DEFAULT_CREATION_ENTRY_EVENT_TITLE: &str = "主题创作赛"; +#[cfg(any())] pub const DEFAULT_CREATION_ENTRY_EVENT_DESCRIPTION: &str = "用温暖的色彩,捏出秋天的故事。"; +#[cfg(any())] pub const DEFAULT_CREATION_ENTRY_EVENT_COVER_IMAGE_SRC: &str = "/creation-type-references/puzzle.webp"; +#[cfg(any())] pub const DEFAULT_CREATION_ENTRY_EVENT_PRIZE_POOL_MUD_POINTS: u64 = 58_000; +#[cfg(any())] pub const DEFAULT_CREATION_ENTRY_EVENT_STARTS_AT_TEXT: &str = "2024.10.20 10:00"; +#[cfg(any())] pub const DEFAULT_CREATION_ENTRY_EVENT_ENDS_AT_TEXT: &str = "2024.11.20 23:59"; /// 后台创作入口公告最多允许配置的轮播条数。 +#[cfg(any())] pub const CREATION_ENTRY_EVENT_BANNERS_MAX_COUNT: usize = 8; /// 单条 HTML 公告的代码大小上限,避免后台误贴超大片段拖慢入口页。 +#[cfg(any())] pub const CREATION_ENTRY_EVENT_BANNER_HTML_CODE_MAX_BYTES: usize = 12_000; /// 公开作品互动配置最多允许覆盖的 sourceType 数量。 +#[cfg(any())] pub const PUBLIC_WORK_INTERACTION_CONFIG_MAX_COUNT: usize = 32; pub const FEATURE_GATE_KEY_MAX_CHARS: usize = 128; pub const FEATURE_GATE_DESCRIPTION_MAX_CHARS: usize = 240; pub const FEATURE_GATE_LIST_MAX_COUNT: usize = 500; pub const FEATURE_GATE_LIST_ITEM_MAX_CHARS: usize = 128; +#[cfg(any())] #[cfg_attr(feature = "spacetime-types", derive(SpacetimeType))] #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] pub struct CreationEntryStartCardSnapshot { @@ -85,6 +109,7 @@ pub struct CreationEntryStartCardSnapshot { pub busy_badge: String, } +#[cfg(any())] #[cfg_attr(feature = "spacetime-types", derive(SpacetimeType))] #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] pub struct CreationEntryTypeModalSnapshot { @@ -93,6 +118,7 @@ pub struct CreationEntryTypeModalSnapshot { } /// 创作入口公告快照,支持 HTML 公告渲染和旧结构化 banner 兼容。 +#[cfg(any())] #[cfg_attr(feature = "spacetime-types", derive(SpacetimeType))] #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] pub struct CreationEntryEventBannerSnapshot { @@ -107,6 +133,7 @@ pub struct CreationEntryEventBannerSnapshot { } /// 单类公开作品互动配置,控制作品详情页点赞 / 改造入口与后端动作熔断。 +#[cfg(any())] #[cfg_attr(feature = "spacetime-types", derive(SpacetimeType))] #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] pub struct PublicWorkInteractionConfigSnapshot { @@ -117,6 +144,7 @@ pub struct PublicWorkInteractionConfigSnapshot { pub remix_disabled_message: String, } +#[cfg(any())] #[cfg_attr(feature = "spacetime-types", derive(SpacetimeType))] #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] pub struct CreationEntryTypeSnapshot { @@ -136,6 +164,7 @@ pub struct CreationEntryTypeSnapshot { } /// 创作入口全局配置快照,供前台入口页和后台配置页共同读取。 +#[cfg(any())] #[cfg_attr(feature = "spacetime-types", derive(SpacetimeType))] #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] pub struct CreationEntryConfigSnapshot { @@ -151,6 +180,7 @@ pub struct CreationEntryConfigSnapshot { pub public_work_interactions_json: Option, } +#[cfg(any())] #[cfg_attr(feature = "spacetime-types", derive(SpacetimeType))] #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] pub struct CreationEntryTypeAdminUpsertInput { @@ -169,6 +199,7 @@ pub struct CreationEntryTypeAdminUpsertInput { } /// 后台保存创作入口多公告表单序列化结果的领域输入。 +#[cfg(any())] #[cfg_attr(feature = "spacetime-types", derive(SpacetimeType))] #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] pub struct CreationEntryEventBannersAdminUpsertInput { @@ -177,6 +208,7 @@ pub struct CreationEntryEventBannersAdminUpsertInput { } /// 后台保存公开作品互动能力表单序列化结果的领域输入。 +#[cfg(any())] #[cfg_attr(feature = "spacetime-types", derive(SpacetimeType))] #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] pub struct PublicWorkInteractionConfigAdminUpsertInput { @@ -184,6 +216,7 @@ pub struct PublicWorkInteractionConfigAdminUpsertInput { pub public_work_interactions_json: String, } +#[cfg(any())] #[cfg_attr(feature = "spacetime-types", derive(SpacetimeType))] #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] pub struct CreationEntryConfigProcedureResult { @@ -236,6 +269,7 @@ pub struct FeatureGateUserContext { /// /// source_type/profile_id 是后台统一操作键;少数玩法的 profile_id 会映射到底层 /// session_id 或 work_id,避免后台了解每个源表的主键差异。 +#[cfg(any())] #[cfg_attr(feature = "spacetime-types", derive(SpacetimeType))] #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] pub struct AdminWorkVisibilitySnapshot { @@ -254,12 +288,14 @@ pub struct AdminWorkVisibilitySnapshot { pub updated_at_micros: i64, } +#[cfg(any())] #[cfg_attr(feature = "spacetime-types", derive(SpacetimeType))] #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] pub struct AdminWorkVisibilityListInput { pub admin_user_id: String, } +#[cfg(any())] #[cfg_attr(feature = "spacetime-types", derive(SpacetimeType))] #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] pub struct AdminWorkVisibilityUpdateInput { @@ -269,6 +305,7 @@ pub struct AdminWorkVisibilityUpdateInput { pub visible: bool, } +#[cfg(any())] #[cfg_attr(feature = "spacetime-types", derive(SpacetimeType))] #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] pub struct AdminWorkVisibilityListProcedureResult { @@ -277,6 +314,7 @@ pub struct AdminWorkVisibilityListProcedureResult { pub error_message: Option, } +#[cfg(any())] #[cfg_attr(feature = "spacetime-types", derive(SpacetimeType))] #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] pub struct AdminWorkVisibilityProcedureResult { @@ -432,6 +470,7 @@ impl RuntimeSettings { } } +#[cfg(any())] #[cfg_attr(feature = "spacetime-types", derive(SpacetimeType))] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RuntimeSnapshot { @@ -445,6 +484,7 @@ pub struct RuntimeSnapshot { pub updated_at_micros: i64, } +#[cfg(any())] #[cfg_attr(feature = "spacetime-types", derive(SpacetimeType))] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RuntimeSnapshotProcedureResult { @@ -453,12 +493,14 @@ pub struct RuntimeSnapshotProcedureResult { pub error_message: Option, } +#[cfg(any())] #[cfg_attr(feature = "spacetime-types", derive(SpacetimeType))] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RuntimeSnapshotGetInput { pub user_id: String, } +#[cfg(any())] #[cfg_attr(feature = "spacetime-types", derive(SpacetimeType))] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RuntimeSnapshotUpsertInput { @@ -470,12 +512,14 @@ pub struct RuntimeSnapshotUpsertInput { pub updated_at_micros: i64, } +#[cfg(any())] #[cfg_attr(feature = "spacetime-types", derive(SpacetimeType))] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RuntimeSnapshotDeleteInput { pub user_id: String, } +#[cfg(any())] #[cfg_attr(feature = "spacetime-types", derive(SpacetimeType))] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RuntimeProfileSaveArchiveSnapshot { @@ -497,6 +541,7 @@ pub struct RuntimeProfileSaveArchiveSnapshot { pub updated_at_micros: i64, } +#[cfg(any())] #[cfg_attr(feature = "spacetime-types", derive(SpacetimeType))] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RuntimeProfileSaveArchiveProcedureResult { @@ -507,12 +552,14 @@ pub struct RuntimeProfileSaveArchiveProcedureResult { pub error_message: Option, } +#[cfg(any())] #[cfg_attr(feature = "spacetime-types", derive(SpacetimeType))] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RuntimeProfileSaveArchiveListInput { pub user_id: String, } +#[cfg(any())] #[cfg_attr(feature = "spacetime-types", derive(SpacetimeType))] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RuntimeProfileSaveArchiveResumeInput { @@ -520,6 +567,7 @@ pub struct RuntimeProfileSaveArchiveResumeInput { pub world_key: String, } +#[cfg(any())] #[derive(Clone, Debug, PartialEq)] pub struct RuntimeSaveCheckpointInput { pub session_id: String, @@ -528,6 +576,7 @@ pub struct RuntimeSaveCheckpointInput { pub updated_at_micros: i64, } +#[cfg(any())] #[derive(Clone, Debug, PartialEq)] pub struct RuntimeSaveCheckpointSnapshotUpdate { pub saved_at_micros: i64, @@ -549,6 +598,7 @@ pub enum RuntimeBrowseHistoryThemeMode { Mythic, } +#[cfg(any())] impl RuntimeBrowseHistoryThemeMode { pub fn as_str(&self) -> &'static str { match self { @@ -607,6 +657,7 @@ pub struct RuntimeSettingUpsertInput { pub updated_at_micros: i64, } +#[cfg(any())] #[cfg_attr(feature = "spacetime-types", derive(SpacetimeType))] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RuntimeBrowseHistorySnapshot { @@ -625,6 +676,7 @@ pub struct RuntimeBrowseHistorySnapshot { pub updated_at_micros: i64, } +#[cfg(any())] #[cfg_attr(feature = "spacetime-types", derive(SpacetimeType))] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RuntimeBrowseHistoryProcedureResult { @@ -633,18 +685,21 @@ pub struct RuntimeBrowseHistoryProcedureResult { pub error_message: Option, } +#[cfg(any())] #[cfg_attr(feature = "spacetime-types", derive(SpacetimeType))] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RuntimeBrowseHistoryListInput { pub user_id: String, } +#[cfg(any())] #[cfg_attr(feature = "spacetime-types", derive(SpacetimeType))] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RuntimeBrowseHistoryClearInput { pub user_id: String, } +#[cfg(any())] #[cfg_attr(feature = "spacetime-types", derive(SpacetimeType))] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RuntimeBrowseHistoryWriteInput { @@ -659,6 +714,7 @@ pub struct RuntimeBrowseHistoryWriteInput { pub visited_at: Option, } +#[cfg(any())] #[cfg_attr(feature = "spacetime-types", derive(SpacetimeType))] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RuntimeBrowseHistorySyncInput { @@ -2164,6 +2220,7 @@ pub struct RuntimeReferralRedeemProcedureResult { pub error_message: Option, } +#[cfg(any())] #[cfg_attr(feature = "spacetime-types", derive(SpacetimeType))] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RuntimeProfilePlayedWorldSnapshot { @@ -2180,6 +2237,7 @@ pub struct RuntimeProfilePlayedWorldSnapshot { pub last_observed_play_time_ms: u64, } +#[cfg(any())] #[cfg_attr(feature = "spacetime-types", derive(SpacetimeType))] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RuntimeProfilePlayStatsSnapshot { @@ -2189,6 +2247,7 @@ pub struct RuntimeProfilePlayStatsSnapshot { pub updated_at_micros: Option, } +#[cfg(any())] #[cfg_attr(feature = "spacetime-types", derive(SpacetimeType))] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RuntimeProfilePlayStatsProcedureResult { @@ -2197,12 +2256,14 @@ pub struct RuntimeProfilePlayStatsProcedureResult { pub error_message: Option, } +#[cfg(any())] #[cfg_attr(feature = "spacetime-types", derive(SpacetimeType))] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RuntimeProfilePlayStatsGetInput { pub user_id: String, } +#[cfg(any())] #[derive(Clone, Debug, PartialEq)] pub struct RuntimeBrowseHistoryPreparedEntry { pub browse_history_id: String, @@ -2219,6 +2280,7 @@ pub struct RuntimeBrowseHistoryPreparedEntry { pub updated_at_micros: i64, } +#[cfg(any())] #[derive(Clone, Debug, PartialEq)] pub struct RuntimeBrowseHistoryRecord { pub browse_history_id: String, @@ -2280,6 +2342,7 @@ pub struct RuntimeProfileWalletLedgerEntryRecord { pub metadata_json: String, } +#[cfg(any())] #[derive(Clone, Debug, PartialEq)] pub struct RuntimeProfilePlayedWorldRecord { pub played_world_id: String, @@ -2297,6 +2360,7 @@ pub struct RuntimeProfilePlayedWorldRecord { pub last_observed_play_time_ms: u64, } +#[cfg(any())] #[derive(Clone, Debug, PartialEq)] pub struct RuntimeProfilePlayStatsRecord { pub user_id: String, @@ -2596,6 +2660,7 @@ pub struct RuntimeReferralRedeemRecord { pub inviter_balance_after: u64, } +#[cfg(any())] #[derive(Clone, Debug, PartialEq)] pub struct RuntimeSnapshotRecord { pub user_id: String, @@ -2611,6 +2676,7 @@ pub struct RuntimeSnapshotRecord { pub updated_at_micros: i64, } +#[cfg(any())] #[derive(Clone, Debug, PartialEq)] pub struct RuntimeProfileSaveArchiveRecord { pub archive_id: String, @@ -2634,6 +2700,7 @@ pub struct RuntimeProfileSaveArchiveRecord { pub updated_at_micros: i64, } +#[cfg(any())] #[derive(Clone, Debug, PartialEq)] pub struct RuntimeProfileWorldSnapshotMeta { pub world_key: String, @@ -2644,6 +2711,7 @@ pub struct RuntimeProfileWorldSnapshotMeta { pub world_subtitle: String, } +#[cfg(any())] #[derive(Clone, Debug, PartialEq)] pub struct RuntimeProfileSaveArchiveMeta { pub world_key: String, diff --git a/server-rs/crates/module-runtime/src/errors.rs b/server-rs/crates/module-runtime/src/errors.rs index 695f7f304..169624297 100644 --- a/server-rs/crates/module-runtime/src/errors.rs +++ b/server-rs/crates/module-runtime/src/errors.rs @@ -2,11 +2,12 @@ //! //! 错误保持运行时业务语义,例如快照版本非法、兑换码不可用或钱包余额不足。 +#[cfg(any())] +use crate::MAX_BROWSE_HISTORY_BATCH_SIZE; use crate::{ - MAX_BROWSE_HISTORY_BATCH_SIZE, PROFILE_FEEDBACK_CONTACT_PHONE_MAX_CHARS, - PROFILE_FEEDBACK_DESCRIPTION_MAX_CHARS, PROFILE_FEEDBACK_DESCRIPTION_MIN_CHARS, - PROFILE_FEEDBACK_EVIDENCE_MAX_BYTES, PROFILE_FEEDBACK_EVIDENCE_MAX_COUNT, - PROFILE_FEEDBACK_EVIDENCE_TOTAL_MAX_BYTES, + PROFILE_FEEDBACK_CONTACT_PHONE_MAX_CHARS, PROFILE_FEEDBACK_DESCRIPTION_MAX_CHARS, + PROFILE_FEEDBACK_DESCRIPTION_MIN_CHARS, PROFILE_FEEDBACK_EVIDENCE_MAX_BYTES, + PROFILE_FEEDBACK_EVIDENCE_MAX_COUNT, PROFILE_FEEDBACK_EVIDENCE_TOTAL_MAX_BYTES, }; #[derive(Clone, Debug, PartialEq, Eq)] @@ -22,12 +23,14 @@ impl std::fmt::Display for RuntimeSettingsFieldError { } } +#[cfg(any())] #[derive(Clone, Debug, PartialEq, Eq)] pub enum RuntimeBrowseHistoryFieldError { MissingUserId, TooManyEntries, } +#[cfg(any())] impl std::fmt::Display for RuntimeBrowseHistoryFieldError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { @@ -87,17 +90,25 @@ pub enum RuntimeProfileFieldError { InvalidRechargeProductKind, InvalidRechargeProductTier, MissingPaymentChannel, + #[cfg(any())] MissingWorldKey, + #[cfg(any())] MissingBottomTab, + #[cfg(any())] MissingCheckpointSessionId, UnknownRechargeProduct, + #[cfg(any())] InvalidGameStateJson, + #[cfg(any())] InvalidCurrentStoryJson, + #[cfg(any())] MissingRuntimeSessionId, + #[cfg(any())] RuntimeSessionMismatch { expected_session_id: String, actual_session_id: String, }, + #[cfg(any())] NonPersistentRuntimeSnapshot, InvalidAnalyticsCalendarDate, MissingFeedbackDescription, @@ -168,22 +179,30 @@ impl std::fmt::Display for RuntimeProfileFieldError { Self::InvalidRechargeProductKind => f.write_str("充值商品类型无效"), Self::InvalidRechargeProductTier => f.write_str("会员商品 tier 无效"), Self::MissingPaymentChannel => f.write_str("recharge.payment_channel 不能为空"), + #[cfg(any())] Self::MissingWorldKey => f.write_str("profile.world_key 不能为空"), + #[cfg(any())] Self::MissingBottomTab => f.write_str("runtime_snapshot.bottom_tab 不能为空"), + #[cfg(any())] Self::MissingCheckpointSessionId => f.write_str("checkpoint.session_id 不能为空"), Self::UnknownRechargeProduct => f.write_str("recharge.product_id 不存在"), + #[cfg(any())] Self::InvalidGameStateJson => { f.write_str("runtime_snapshot.game_state 必须是合法 JSON") } + #[cfg(any())] Self::InvalidCurrentStoryJson => { f.write_str("runtime_snapshot.current_story 必须是合法 JSON object 或 null") } + #[cfg(any())] Self::MissingRuntimeSessionId => { f.write_str("服务端运行时快照缺少 runtimeSessionId,无法创建 checkpoint") } + #[cfg(any())] Self::RuntimeSessionMismatch { .. } => { f.write_str("checkpoint sessionId 与服务端运行时快照不一致") } + #[cfg(any())] Self::NonPersistentRuntimeSnapshot => { f.write_str("预览或测试运行态不能创建正式 checkpoint") } diff --git a/server-rs/crates/module-runtime/src/lib.rs b/server-rs/crates/module-runtime/src/lib.rs index a9fa1f6b0..2c376321b 100644 --- a/server-rs/crates/module-runtime/src/lib.rs +++ b/server-rs/crates/module-runtime/src/lib.rs @@ -658,6 +658,7 @@ mod tests { assert_eq!(error, RuntimeSettingsFieldError::MissingUserId); } + #[cfg(any())] #[test] fn browse_history_theme_from_client_string_falls_back_to_mythic() { assert_eq!( @@ -674,6 +675,7 @@ mod tests { ); } + #[cfg(any())] #[test] fn build_browse_history_sync_input_normalizes_optionals_and_visited_at() { let input = build_runtime_browse_history_sync_input( @@ -712,6 +714,7 @@ mod tests { ); } + #[cfg(any())] #[test] fn prepare_browse_history_entries_sorts_desc_and_dedups_by_owner_profile() { let entries = prepare_runtime_browse_history_entries(RuntimeBrowseHistorySyncInput { @@ -766,6 +769,7 @@ mod tests { assert!(entries[0].visited_at_micros > entries[1].visited_at_micros); } + #[cfg(any())] #[test] fn build_browse_history_sync_input_silently_filters_invalid_entries() { let input = build_runtime_browse_history_sync_input( @@ -827,11 +831,6 @@ mod tests { .expect_err("wallet ledger input should fail"), RuntimeProfileFieldError::MissingUserId ); - assert_eq!( - build_runtime_profile_play_stats_get_input(" ".to_string()) - .expect_err("play stats input should fail"), - RuntimeProfileFieldError::MissingUserId - ); } #[test] @@ -1170,14 +1169,6 @@ mod tests { #[test] fn runtime_profile_identity_helpers_keep_existing_key_shape() { - assert_eq!( - build_runtime_profile_played_world_id(" user-1 ", " custom:world "), - "user-1:custom:world" - ); - assert_eq!( - build_runtime_profile_snapshot_wallet_ledger_id(" user-1 ", 100, 30), - "user-1:100:30" - ); assert_eq!( build_runtime_profile_recharge_wallet_ledger_id("user-1", 200, "points_60"), "user-1:200:points_60" @@ -1601,6 +1592,7 @@ mod tests { ); } + #[cfg(any())] #[test] fn runtime_save_checkpoint_update_rejects_session_mismatch() { let existing = RuntimeSnapshotRecord { diff --git a/server-rs/crates/pingora-gateway/src/main.rs b/server-rs/crates/pingora-gateway/src/main.rs index 589aec4eb..52ed84135 100644 --- a/server-rs/crates/pingora-gateway/src/main.rs +++ b/server-rs/crates/pingora-gateway/src/main.rs @@ -55,7 +55,7 @@ const SHADOW_PROBE_HEADER: &str = "x-genarrative-pingora-probe"; const PAYLOAD_TOO_LARGE_CONTEXT: &str = "genarrative_payload_too_large"; const PROTECTION_STATE_TTL: Duration = Duration::from_secs(600); const PROTECTION_CLEANUP_INTERVAL: Duration = Duration::from_secs(60); -const MAIN_SPA_PATHS: &[&str] = &["/", "/creation", "/editor/canvas", "/project"]; +const MAIN_SPA_PATHS: &[&str] = &["/", "/creation", "/editor/canvas", "/profile", "/project"]; #[derive(Clone, Debug)] struct GatewayConfig { @@ -677,8 +677,6 @@ enum ProxyTarget { #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] enum ProtectionClass { AdminApi, - GalleryList, - GalleryDetail, Api, Spacetime, } @@ -687,8 +685,6 @@ impl ProtectionClass { fn as_str(self) -> &'static str { match self { ProtectionClass::AdminApi => "admin_api", - ProtectionClass::GalleryList => "gallery_list", - ProtectionClass::GalleryDetail => "gallery_detail", ProtectionClass::Api => "api", ProtectionClass::Spacetime => "spacetime", } @@ -728,8 +724,6 @@ struct ProtectionClassConfig { struct ProtectionConfig { enabled: bool, admin_api: ProtectionClassConfig, - gallery_list: ProtectionClassConfig, - gallery_detail: ProtectionClassConfig, api: ProtectionClassConfig, spacetime: ProtectionClassConfig, } @@ -744,18 +738,6 @@ impl ProtectionConfig { 30, 16, )?, - gallery_list: ProtectionClassConfig::from_env( - "GENARRATIVE_PINGORA_GATEWAY_GALLERY_LIST", - 320, - 5000, - 4096, - )?, - gallery_detail: ProtectionClassConfig::from_env( - "GENARRATIVE_PINGORA_GATEWAY_GALLERY_DETAIL", - 32, - 300, - 32, - )?, api: ProtectionClassConfig::from_env("GENARRATIVE_PINGORA_GATEWAY_API", 64, 300, 64)?, spacetime: ProtectionClassConfig::from_env( "GENARRATIVE_PINGORA_GATEWAY_SPACETIME", @@ -769,8 +751,6 @@ impl ProtectionConfig { fn class_config(&self, class: ProtectionClass) -> ProtectionClassConfig { match class { ProtectionClass::AdminApi => self.admin_api, - ProtectionClass::GalleryList => self.gallery_list, - ProtectionClass::GalleryDetail => self.gallery_detail, ProtectionClass::Api => self.api, ProtectionClass::Spacetime => self.spacetime, } @@ -779,8 +759,6 @@ impl ProtectionConfig { fn validate(&self) -> io::Result<()> { for (name, config) in [ ("admin_api", self.admin_api), - ("gallery_list", self.gallery_list), - ("gallery_detail", self.gallery_detail), ("api", self.api), ("spacetime", self.spacetime), ] { @@ -1618,7 +1596,7 @@ fn should_disable_accel_buffering(route: &RouteDecision) -> bool { } fn is_long_upstream_route(path: &str) -> bool { - is_spacetime_subscribe_path(path) || is_gallery_list_path(path) || is_gallery_detail_path(path) + is_spacetime_subscribe_path(path) } fn is_generic_api_proxy_path(path: &str) -> bool { @@ -1631,14 +1609,6 @@ fn protection_class_for_route(route: &RouteDecision, path: &str) -> Option Some(ProtectionClass::AdminApi), - RouteDecision::Proxy { - target: ProxyTarget::Api, - .. - } if is_gallery_list_path(path) => Some(ProtectionClass::GalleryList), - RouteDecision::Proxy { - target: ProxyTarget::Api, - .. - } if is_gallery_detail_path(path) => Some(ProtectionClass::GalleryDetail), RouteDecision::Proxy { target: ProxyTarget::Api, .. @@ -1855,20 +1825,6 @@ fn classify_path(path: &str) -> RouteDecision { }; } - if is_gallery_list_path(path) { - return RouteDecision::Proxy { - target: ProxyTarget::Api, - body_limit: None, - }; - } - - if is_gallery_detail_path(path) { - return RouteDecision::Proxy { - target: ProxyTarget::Api, - body_limit: None, - }; - } - if path == "/api" || path.starts_with("/api/") { return RouteDecision::Proxy { target: ProxyTarget::Api, @@ -1976,14 +1932,6 @@ fn is_payload_too_large_error(error: &pingora::Error) -> bool { .is_some_and(|context| context.as_str() == PAYLOAD_TOO_LARGE_CONTEXT) } -fn is_gallery_list_path(_path: &str) -> bool { - false -} - -fn is_gallery_detail_path(_path: &str) -> bool { - false -} - fn is_spacetime_subscribe_path(path: &str) -> bool { let parts: Vec<_> = path.trim_matches('/').split('/').collect(); matches!(parts.as_slice(), ["v1", "database", _, "subscribe"]) @@ -3237,16 +3185,6 @@ mod tests { rate_per_second: 30, burst: 16, }, - gallery_list: ProtectionClassConfig { - max_concurrent: 320, - rate_per_second: 5000, - burst: 4096, - }, - gallery_detail: ProtectionClassConfig { - max_concurrent: 32, - rate_per_second: 300, - burst: 32, - }, api: ProtectionClassConfig { max_concurrent: 64, rate_per_second: 300, @@ -3904,16 +3842,6 @@ mod tests { rate_per_second: 0, burst: 0, }, - gallery_list: ProtectionClassConfig { - max_concurrent: 0, - rate_per_second: 0, - burst: 0, - }, - gallery_detail: ProtectionClassConfig { - max_concurrent: 0, - rate_per_second: 0, - burst: 0, - }, spacetime: ProtectionClassConfig { max_concurrent: 0, rate_per_second: 0, @@ -3955,16 +3883,6 @@ mod tests { rate_per_second: 0, burst: 0, }, - gallery_list: ProtectionClassConfig { - max_concurrent: 0, - rate_per_second: 0, - burst: 0, - }, - gallery_detail: ProtectionClassConfig { - max_concurrent: 0, - rate_per_second: 0, - burst: 0, - }, spacetime: ProtectionClassConfig { max_concurrent: 0, rate_per_second: 0, diff --git a/server-rs/crates/platform-auth/src/lib.rs b/server-rs/crates/platform-auth/src/lib.rs index cd6dba354..03898a03a 100644 --- a/server-rs/crates/platform-auth/src/lib.rs +++ b/server-rs/crates/platform-auth/src/lib.rs @@ -21,9 +21,6 @@ use url::Url; pub const ACCESS_TOKEN_ALGORITHM: Algorithm = Algorithm::HS256; pub const DEFAULT_ACCESS_TOKEN_TTL_SECONDS: u64 = 2 * 60 * 60; -pub const DEFAULT_RUNTIME_GUEST_TOKEN_TTL_SECONDS: u64 = 15 * 60; -pub const RUNTIME_GUEST_TOKEN_TYPE: &str = "runtime_guest"; -pub const RUNTIME_GUEST_SCOPE_PUBLIC_PLAY: &str = "runtime:public-play"; pub const DEFAULT_REFRESH_COOKIE_NAME: &str = "genarrative_refresh_session"; pub const DEFAULT_REFRESH_COOKIE_PATH: &str = "/api/auth"; pub const DEFAULT_REFRESH_SESSION_TTL_DAYS: u32 = 30; @@ -110,21 +107,6 @@ pub struct AccessTokenClaims { pub exp: u64, } -pub struct RuntimeGuestTokenClaimsInput { - pub subject: String, - pub scope: String, -} - -#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] -pub struct RuntimeGuestTokenClaims { - pub iss: String, - pub sub: String, - pub typ: String, - pub scope: String, - pub iat: u64, - pub exp: u64, -} - // 统一承载 JWT 配置,避免 secret、issuer、ttl 在 api-server 与后续模块里散落。 #[derive(Clone, Debug, PartialEq, Eq)] pub struct JwtConfig { @@ -437,10 +419,6 @@ impl JwtConfig { pub fn access_token_ttl_seconds(&self) -> u64 { self.access_token_ttl_seconds } - - pub fn runtime_guest_token_ttl_seconds(&self) -> u64 { - DEFAULT_RUNTIME_GUEST_TOKEN_TTL_SECONDS - } } impl RefreshCookieSameSite { @@ -1516,82 +1494,6 @@ impl AccessTokenClaims { } } -impl RuntimeGuestTokenClaims { - pub fn from_input( - input: RuntimeGuestTokenClaimsInput, - config: &JwtConfig, - issued_at: OffsetDateTime, - ) -> Result { - let subject = normalize_required_field(input.subject, "runtime guest JWT sub 不能为空")?; - let scope = normalize_required_field(input.scope, "runtime guest JWT scope 不能为空")?; - - let issued_at_unix = issued_at.unix_timestamp(); - if issued_at_unix < 0 { - return Err(JwtError::InvalidClaims( - "runtime guest JWT iat 不能早于 Unix epoch", - )); - } - - let expires_at = issued_at - .checked_add(Duration::seconds( - i64::try_from(config.runtime_guest_token_ttl_seconds()).map_err(|_| { - JwtError::InvalidConfig("runtime guest JWT 过期时间超出 i64 上限") - })?, - )) - .ok_or(JwtError::InvalidConfig( - "runtime guest JWT 过期时间计算溢出", - ))?; - let expires_at_unix = expires_at.unix_timestamp(); - if expires_at_unix <= issued_at_unix { - return Err(JwtError::InvalidClaims( - "runtime guest JWT exp 必须晚于 iat", - )); - } - - let claims = Self { - iss: config.issuer().to_string(), - sub: subject, - typ: RUNTIME_GUEST_TOKEN_TYPE.to_string(), - scope, - iat: issued_at_unix as u64, - exp: expires_at_unix as u64, - }; - claims.validate_for_config(config)?; - Ok(claims) - } - - pub fn subject(&self) -> &str { - &self.sub - } - - pub fn scope(&self) -> &str { - &self.scope - } - - pub fn expires_at_unix(&self) -> u64 { - self.exp - } - - pub fn validate_for_config(&self, config: &JwtConfig) -> Result<(), JwtError> { - if self.iss.trim() != config.issuer() { - return Err(JwtError::InvalidClaims( - "runtime guest JWT iss 与当前配置不一致", - )); - } - normalize_required_field(self.sub.clone(), "runtime guest JWT sub 不能为空")?; - normalize_required_field(self.scope.clone(), "runtime guest JWT scope 不能为空")?; - if self.typ.trim() != RUNTIME_GUEST_TOKEN_TYPE { - return Err(JwtError::InvalidClaims("runtime guest JWT typ 非法")); - } - if self.exp <= self.iat { - return Err(JwtError::InvalidClaims( - "runtime guest JWT exp 必须晚于 iat", - )); - } - Ok(()) - } -} - impl AccessTokenDeviceInfo { pub fn normalize(self) -> Result { Ok(Self { @@ -1644,26 +1546,6 @@ pub fn sign_access_token( .map_err(|error| JwtError::SignFailed(format!("JWT 签发失败:{error}"))) } -pub fn sign_runtime_guest_token( - claims: &RuntimeGuestTokenClaims, - config: &JwtConfig, -) -> Result { - claims.validate_for_config(config)?; - - let header = Header { - alg: ACCESS_TOKEN_ALGORITHM, - typ: Some("JWT".to_string()), - ..Header::default() - }; - - encode( - &header, - claims, - &EncodingKey::from_secret(config.secret.as_bytes()), - ) - .map_err(|error| JwtError::SignFailed(format!("runtime guest JWT 签发失败:{error}"))) -} - pub fn verify_access_token(token: &str, config: &JwtConfig) -> Result { let token = token.trim(); if token.is_empty() { @@ -1690,37 +1572,6 @@ pub fn verify_access_token(token: &str, config: &JwtConfig) -> Result Result { - let token = token.trim(); - if token.is_empty() { - return Err(JwtError::VerifyFailed( - "runtime guest JWT 不能为空".to_string(), - )); - } - - let mut validation = Validation::new(ACCESS_TOKEN_ALGORITHM); - validation.required_spec_claims = HashSet::from([ - "exp".to_string(), - "iat".to_string(), - "iss".to_string(), - "sub".to_string(), - ]); - validation.set_issuer(&[config.issuer()]); - - let decoded = decode::( - token, - &DecodingKey::from_secret(config.secret.as_bytes()), - &validation, - ) - .map_err(map_verify_error)?; - - decoded.claims.validate_for_config(config)?; - Ok(decoded.claims) -} - pub fn read_refresh_session_token( cookie_header: &str, config: &RefreshCookieConfig, @@ -2435,33 +2286,6 @@ mod tests { .expect("real aliyun sms config should be valid") } - #[test] - fn round_trip_sign_and_verify_runtime_guest_token() { - let config = build_jwt_config(); - let issued_at = OffsetDateTime::now_utc(); - let claims = RuntimeGuestTokenClaims::from_input( - RuntimeGuestTokenClaimsInput { - subject: "guest-runtime-123".to_string(), - scope: RUNTIME_GUEST_SCOPE_PUBLIC_PLAY.to_string(), - }, - &config, - issued_at, - ) - .expect("runtime guest claims should build"); - - let token = sign_runtime_guest_token(&claims, &config).expect("token should sign"); - let verified = verify_runtime_guest_token(&token, &config).expect("token should verify"); - - assert_eq!(verified, claims); - assert_eq!(verified.subject(), "guest-runtime-123"); - assert_eq!(verified.scope(), RUNTIME_GUEST_SCOPE_PUBLIC_PLAY); - assert_eq!(verified.typ, RUNTIME_GUEST_TOKEN_TYPE); - assert_eq!( - verified.expires_at_unix() - verified.iat, - DEFAULT_RUNTIME_GUEST_TOKEN_TTL_SECONDS - ); - } - #[test] fn round_trip_sign_and_verify_access_token() { let config = build_jwt_config(); diff --git a/server-rs/crates/platform-llm/src/lib.rs b/server-rs/crates/platform-llm/src/lib.rs index 225d046aa..fa2ab2dbd 100644 --- a/server-rs/crates/platform-llm/src/lib.rs +++ b/server-rs/crates/platform-llm/src/lib.rs @@ -14,6 +14,7 @@ use serde::{Deserialize, Serialize}; use tokio::time::sleep; pub const DEFAULT_ARK_BASE_URL: &str = "https://ark.cn-beijing.volces.com/api/v3"; +pub const EDITOR_AGENT_GPT5_MODEL: &str = "gpt-5.4-mini"; pub const DEFAULT_REQUEST_TIMEOUT_MS: u64 = 30_000; pub const DEFAULT_MAX_RETRIES: u32 = 1; pub const DEFAULT_RETRY_BACKOFF_MS: u64 = 500; diff --git a/server-rs/crates/platform-wechat/src/lib.rs b/server-rs/crates/platform-wechat/src/lib.rs index d2dde23c6..340373c4a 100644 --- a/server-rs/crates/platform-wechat/src/lib.rs +++ b/server-rs/crates/platform-wechat/src/lib.rs @@ -6,9 +6,9 @@ pub use pay::{ WechatPayConfig, WechatPayError, WechatPayNotifyOrder, WechatWebOrderRequest, }; pub use subscribe_message::{ - DEFAULT_WECHAT_STABLE_ACCESS_TOKEN_ENDPOINT, DEFAULT_WECHAT_SUBSCRIBE_MESSAGE_ENDPOINT, + DEFAULT_WECHAT_STABLE_ACCESS_TOKEN_ENDPOINT, DEFAULT_WECHAT_VIRTUAL_PAYMENT_NOTIFY_PROVIDE_GOODS_ENDPOINT, DEFAULT_WECHAT_VIRTUAL_PAYMENT_QUERY_ORDER_ENDPOINT, WechatClient, WechatConfig, WechatError, - WechatErrorKind, WechatSubscribeMessageRequest, WechatVirtualPaymentNotifyProvideGoodsRequest, - WechatVirtualPaymentOrder, WechatVirtualPaymentQueryOrderRequest, + WechatErrorKind, WechatVirtualPaymentNotifyProvideGoodsRequest, WechatVirtualPaymentOrder, + WechatVirtualPaymentQueryOrderRequest, }; diff --git a/server-rs/crates/platform-wechat/src/subscribe_message.rs b/server-rs/crates/platform-wechat/src/subscribe_message.rs index c1b302b1f..79dd2edea 100644 --- a/server-rs/crates/platform-wechat/src/subscribe_message.rs +++ b/server-rs/crates/platform-wechat/src/subscribe_message.rs @@ -1,5 +1,4 @@ use std::{ - collections::BTreeMap, error::Error, fmt, sync::Arc, @@ -16,8 +15,6 @@ use url::Url; pub const DEFAULT_WECHAT_STABLE_ACCESS_TOKEN_ENDPOINT: &str = "https://api.weixin.qq.com/cgi-bin/stable_token"; -pub const DEFAULT_WECHAT_SUBSCRIBE_MESSAGE_ENDPOINT: &str = - "https://api.weixin.qq.com/cgi-bin/message/subscribe/send"; pub const DEFAULT_WECHAT_VIRTUAL_PAYMENT_QUERY_ORDER_ENDPOINT: &str = "https://api.weixin.qq.com/xpay/query_order"; pub const DEFAULT_WECHAT_VIRTUAL_PAYMENT_NOTIFY_PROVIDE_GOODS_ENDPOINT: &str = @@ -31,7 +28,6 @@ pub struct WechatConfig { pub app_id: Option, pub app_secret: Option, pub stable_access_token_endpoint: String, - pub subscribe_message_endpoint: String, pub virtual_payment_query_order_endpoint: String, pub virtual_payment_notify_provide_goods_endpoint: String, } @@ -49,16 +45,6 @@ struct WechatAccessTokenCacheEntry { expires_at: Instant, } -#[derive(Clone, Debug, PartialEq, Eq)] -pub struct WechatSubscribeMessageRequest { - pub touser: String, - pub template_id: String, - pub page: Option, - pub miniprogram_state: Option, - pub lang: Option, - pub data: BTreeMap, -} - #[derive(Clone, Debug, PartialEq, Eq)] pub struct WechatVirtualPaymentQueryOrderRequest { pub openid: String, @@ -108,12 +94,6 @@ struct WechatStableAccessTokenResponse { errmsg: Option, } -#[derive(Debug, Deserialize)] -struct WechatSubscribeMessageResponse { - errcode: i64, - errmsg: Option, -} - #[derive(Debug, Serialize)] struct WechatVirtualPaymentQueryOrderBody<'a> { openid: &'a str, @@ -155,11 +135,6 @@ struct WechatVirtualPaymentQueryOrderPayload { wxpay_order_id: Option, } -#[derive(Debug, Serialize)] -struct WechatTemplateDataValue { - value: String, -} - impl WechatClient { pub fn new(config: WechatConfig) -> Self { Self { @@ -169,62 +144,6 @@ impl WechatClient { } } - pub async fn send_subscribe_message( - &self, - request: WechatSubscribeMessageRequest, - ) -> Result<(), WechatError> { - let app_id = self - .config - .app_id - .as_deref() - .and_then(non_empty) - .ok_or_else(|| WechatError::InvalidConfig("微信小程序 AppID 未配置".to_string()))?; - let app_secret = self - .config - .app_secret - .as_deref() - .and_then(non_empty) - .ok_or_else(|| WechatError::InvalidConfig("微信小程序 AppSecret 未配置".to_string()))?; - - let data = request - .data - .into_iter() - .map(|(key, value)| (key, WechatTemplateDataValue { value })) - .collect::>(); - let payload = json!({ - "touser": request.touser, - "template_id": request.template_id, - "page": request.page, - "miniprogram_state": request.miniprogram_state, - "lang": request.lang.unwrap_or_else(|| "zh_CN".to_string()), - "data": data, - }); - let mut access_token = self.request_access_token(app_id, app_secret, false).await?; - let mut response = self - .send_subscribe_message_with_token(&payload, &access_token) - .await?; - if is_access_token_error(response.errcode) { - access_token = self - .refresh_access_token_after_failure(app_id, app_secret, &access_token) - .await?; - response = self - .send_subscribe_message_with_token(&payload, &access_token) - .await?; - } - - if response.errcode != 0 { - return Err(WechatError::Upstream(format!( - "微信订阅消息发送失败:{}", - response.errmsg.unwrap_or_else(|| format!( - "subscribeMessage.send 返回错误 {}", - response.errcode - )) - ))); - } - - Ok(()) - } - pub async fn query_virtual_payment_order( &self, request: WechatVirtualPaymentQueryOrderRequest, @@ -364,35 +283,6 @@ impl WechatClient { Ok(()) } - async fn send_subscribe_message_with_token( - &self, - payload: &serde_json::Value, - access_token: &str, - ) -> Result { - let mut send_url = - Url::parse(&self.config.subscribe_message_endpoint).map_err(|error| { - WechatError::InvalidConfig(format!("微信订阅消息发送地址非法:{error}")) - })?; - send_url - .query_pairs_mut() - .append_pair("access_token", access_token); - self.client - .post(send_url.as_str()) - .json(payload) - .send() - .await - .map_err(|error| { - warn!(error = %error, "微信订阅消息请求失败"); - WechatError::RequestFailed("微信订阅消息请求失败".to_string()) - })? - .json::() - .await - .map_err(|error| { - warn!(error = %error, "微信订阅消息响应解析失败"); - WechatError::DeserializeFailed("微信订阅消息响应非法".to_string()) - }) - } - async fn query_virtual_payment_order_with_token( &self, body: &str, @@ -706,7 +596,6 @@ mod tests { app_id: Some("wx-app-001".to_string()), app_secret: Some("app-secret-001".to_string()), stable_access_token_endpoint: format!("http://{address}/stable-token"), - subscribe_message_endpoint: format!("http://{address}/subscribe"), virtual_payment_query_order_endpoint: format!("http://{address}/mock/query-order"), virtual_payment_notify_provide_goods_endpoint: format!( "http://{address}/mock/notify-provide-goods" @@ -846,7 +735,6 @@ mod tests { app_id: Some("wx-app-001".to_string()), app_secret: Some("app-secret-001".to_string()), stable_access_token_endpoint: format!("http://{address}/stable-token"), - subscribe_message_endpoint: format!("http://{address}/subscribe"), virtual_payment_query_order_endpoint: format!("http://{address}/mock/query-order"), virtual_payment_notify_provide_goods_endpoint: format!( "http://{address}/mock/notify-provide-goods" diff --git a/server-rs/crates/shared-contracts/src/auth.rs b/server-rs/crates/shared-contracts/src/auth.rs index 038e260c7..a654414ec 100644 --- a/server-rs/crates/shared-contracts/src/auth.rs +++ b/server-rs/crates/shared-contracts/src/auth.rs @@ -44,15 +44,6 @@ pub struct PublicUserSearchResponse { pub user: PublicUserSummaryPayload, } -#[derive(Clone, Debug, Serialize, Deserialize, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RuntimeGuestTokenResponse { - pub token: String, - pub expires_at: String, - pub subject: String, - pub scope: String, -} - #[derive(Clone, Debug, Serialize, Deserialize, PartialEq, Eq)] #[serde(rename_all = "camelCase")] pub struct PasswordEntryRequest { diff --git a/server-rs/crates/shared-contracts/src/runtime.rs b/server-rs/crates/shared-contracts/src/runtime.rs index 4f699e26a..7375b40c8 100644 --- a/server-rs/crates/shared-contracts/src/runtime.rs +++ b/server-rs/crates/shared-contracts/src/runtime.rs @@ -1,8 +1,6 @@ use serde::{Deserialize, Serialize}; -#[cfg(any())] pub const RUNTIME_PLATFORM_THEME_LIGHT: &str = "light"; -#[cfg(any())] pub const RUNTIME_PLATFORM_THEME_DARK: &str = "dark"; #[cfg(any())] pub const SAVE_SNAPSHOT_VERSION: u32 = 2; @@ -69,24 +67,24 @@ pub const CUSTOM_WORLD_VISIBILITY_DRAFT: &str = "draft"; #[cfg(any())] pub const CUSTOM_WORLD_VISIBILITY_PUBLISHED: &str = "published"; +#[derive(Clone, Debug, Serialize, Deserialize, PartialEq)] +#[serde(rename_all = "camelCase")] +pub struct RuntimeSettingsResponse { + pub music_volume: f32, + pub platform_theme: String, +} + +#[derive(Clone, Debug, Serialize, Deserialize, PartialEq)] +#[serde(rename_all = "camelCase")] +pub struct PutRuntimeSettingsRequest { + pub music_volume: f32, + pub platform_theme: String, +} + #[cfg(any())] mod retired_runtime_support_contracts { use super::*; - #[derive(Clone, Debug, Serialize, Deserialize, PartialEq)] - #[serde(rename_all = "camelCase")] - pub struct RuntimeSettingsResponse { - pub music_volume: f32, - pub platform_theme: String, - } - - #[derive(Clone, Debug, Serialize, Deserialize, PartialEq)] - #[serde(rename_all = "camelCase")] - pub struct PutRuntimeSettingsRequest { - pub music_volume: f32, - pub platform_theme: String, - } - #[derive(Clone, Debug, Serialize, Deserialize, PartialEq)] #[serde(rename_all = "camelCase")] pub struct SavedGameSnapshotResponse { diff --git a/server-rs/crates/spacetime-client/src/active.rs b/server-rs/crates/spacetime-client/src/active.rs index 2181fd17f..91859574b 100644 --- a/server-rs/crates/spacetime-client/src/active.rs +++ b/server-rs/crates/spacetime-client/src/active.rs @@ -1079,10 +1079,6 @@ mod tests { #[test] fn asset_acl_truth_is_not_read_from_cached_subscriptions() { - assert!( - !REQUIRED_CACHED_READ_MODEL_QUERIES - .contains(&"SELECT * FROM public_work_asset_read_grant") - ); assert!(!REQUIRED_CACHED_READ_MODEL_QUERIES.contains(&"SELECT * FROM asset_object")); assert!(!OPTIONAL_CACHED_READ_MODEL_QUERIES.contains(&"SELECT * FROM asset_object")); } diff --git a/server-rs/crates/spacetime-client/src/active/mapper.rs b/server-rs/crates/spacetime-client/src/active/mapper.rs index 8899c14d1..140f8fe64 100644 --- a/server-rs/crates/spacetime-client/src/active/mapper.rs +++ b/server-rs/crates/spacetime-client/src/active/mapper.rs @@ -123,9 +123,9 @@ pub(crate) use self::external_generation::{ map_external_generation_queue_stats_result, }; pub(crate) use self::runtime::{ - map_feature_gate_config_procedure_result, map_runtime_tracking_event_batch_procedure_result, - map_runtime_tracking_event_procedure_result, map_runtime_tracking_scope_kind, - map_runtime_tracking_scope_kind_back, + map_feature_gate_config_procedure_result, map_runtime_setting_procedure_result, + map_runtime_tracking_event_batch_procedure_result, map_runtime_tracking_event_procedure_result, + map_runtime_tracking_scope_kind, map_runtime_tracking_scope_kind_back, }; pub(crate) use self::runtime_profile::*; pub(crate) use self::story::map_asset_history_list_result; diff --git a/server-rs/crates/spacetime-client/src/active/mapper/runtime.rs b/server-rs/crates/spacetime-client/src/active/mapper/runtime.rs index 02759b718..5c39b0de0 100644 --- a/server-rs/crates/spacetime-client/src/active/mapper/runtime.rs +++ b/server-rs/crates/spacetime-client/src/active/mapper/runtime.rs @@ -28,6 +28,23 @@ impl From for RuntimeTrackingEventInp } } } +impl From for RuntimeSettingGetInput { + fn from(input: module_runtime::RuntimeSettingGetInput) -> Self { + Self { + user_id: input.user_id, + } + } +} +impl From for RuntimeSettingUpsertInput { + fn from(input: module_runtime::RuntimeSettingUpsertInput) -> Self { + Self { + user_id: input.user_id, + music_volume: input.music_volume, + platform_theme: map_runtime_platform_theme(input.platform_theme), + updated_at_micros: input.updated_at_micros, + } + } +} pub type FeatureGateConfigRecord = module_runtime::FeatureGateConfigSnapshot; pub(crate) fn map_feature_gate_config_procedure_result( result: FeatureGateConfigProcedureResult, @@ -76,6 +93,56 @@ pub(crate) fn map_runtime_tracking_event_batch_procedure_result( Ok(result.accepted_count) } +pub(crate) fn map_runtime_setting_procedure_result( + result: RuntimeSettingProcedureResult, +) -> Result { + if !result.ok { + return Err(SpacetimeClientError::procedure_failed(result.error_message)); + } + + let snapshot = result + .record + .ok_or_else(|| SpacetimeClientError::missing_snapshot("runtime settings 快照"))?; + + Ok(module_runtime::build_runtime_setting_record( + map_runtime_setting_snapshot(snapshot), + )) +} +fn map_runtime_setting_snapshot( + snapshot: RuntimeSettingSnapshot, +) -> module_runtime::RuntimeSettingSnapshot { + module_runtime::RuntimeSettingSnapshot { + user_id: snapshot.user_id, + music_volume: snapshot.music_volume, + platform_theme: map_runtime_platform_theme_back(snapshot.platform_theme), + created_at_micros: snapshot.created_at_micros, + updated_at_micros: snapshot.updated_at_micros, + } +} +fn map_runtime_platform_theme( + value: module_runtime::RuntimePlatformTheme, +) -> crate::module_bindings::RuntimePlatformTheme { + match value { + module_runtime::RuntimePlatformTheme::Light => { + crate::module_bindings::RuntimePlatformTheme::Light + } + module_runtime::RuntimePlatformTheme::Dark => { + crate::module_bindings::RuntimePlatformTheme::Dark + } + } +} +fn map_runtime_platform_theme_back( + value: crate::module_bindings::RuntimePlatformTheme, +) -> module_runtime::RuntimePlatformTheme { + match value { + crate::module_bindings::RuntimePlatformTheme::Light => { + module_runtime::RuntimePlatformTheme::Light + } + crate::module_bindings::RuntimePlatformTheme::Dark => { + module_runtime::RuntimePlatformTheme::Dark + } + } +} pub(crate) fn map_runtime_tracking_scope_kind( value: DomainRuntimeTrackingScopeKind, ) -> crate::module_bindings::RuntimeTrackingScopeKind { diff --git a/server-rs/crates/spacetime-client/src/active/runtime.rs b/server-rs/crates/spacetime-client/src/active/runtime.rs index a02a23479..283a6df26 100644 --- a/server-rs/crates/spacetime-client/src/active/runtime.rs +++ b/server-rs/crates/spacetime-client/src/active/runtime.rs @@ -1,6 +1,63 @@ use super::*; impl SpacetimeClient { + pub async fn get_runtime_settings( + &self, + user_id: String, + ) -> Result { + let procedure_input = module_runtime::build_runtime_setting_get_input(user_id) + .map_err(SpacetimeClientError::validation_failed)? + .into(); + + self.call_after_connect( + "get_runtime_setting_or_default", + move |connection, sender| { + connection.procedures().get_runtime_setting_or_default_then( + procedure_input, + move |_, result| { + let mapped = result + .map_err(SpacetimeClientError::from_sdk_error) + .and_then(map_runtime_setting_procedure_result); + send_once(&sender, mapped); + }, + ); + }, + ) + .await + } + + pub async fn put_runtime_settings( + &self, + user_id: String, + music_volume: f32, + platform_theme: module_runtime::RuntimePlatformTheme, + updated_at_micros: i64, + ) -> Result { + let procedure_input = module_runtime::build_runtime_setting_upsert_input( + user_id, + music_volume, + platform_theme, + updated_at_micros, + ) + .map_err(SpacetimeClientError::validation_failed)? + .into(); + + self.call_after_connect( + "upsert_runtime_setting_and_return", + move |connection, sender| { + connection + .procedures() + .upsert_runtime_setting_and_return_then(procedure_input, move |_, result| { + let mapped = result + .map_err(SpacetimeClientError::from_sdk_error) + .and_then(map_runtime_setting_procedure_result); + send_once(&sender, mapped); + }); + }, + ) + .await + } + pub async fn get_feature_gate_config( &self, ) -> Result, SpacetimeClientError> { diff --git a/server-rs/crates/spacetime-client/src/module_bindings.rs b/server-rs/crates/spacetime-client/src/module_bindings.rs index 239739c70..519269c73 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings.rs @@ -394,6 +394,7 @@ pub mod get_profile_recharge_refund_bill_checkpoint_and_return_procedure; pub mod get_profile_referral_invite_center_procedure; pub mod get_profile_task_center_procedure; pub mod get_recent_editor_project_and_return_procedure; +pub mod get_runtime_setting_or_default_procedure; pub mod grant_new_user_registration_wallet_reward_procedure; pub mod import_database_migration_from_chunks_procedure; pub mod import_database_migration_from_file_procedure; @@ -502,8 +503,6 @@ pub mod profile_wallet_ledger_table; pub mod profile_wallet_ledger_type; pub mod profile_wallet_manual_restriction_table; pub mod profile_wallet_manual_restriction_type; -pub mod public_work_asset_read_grant_table; -pub mod public_work_asset_read_grant_type; pub mod public_work_like_table; pub mod public_work_like_type; pub mod public_work_play_daily_stat_table; @@ -709,8 +708,12 @@ pub mod runtime_referral_invited_user_snapshot_type; pub mod runtime_referral_redeem_input_type; pub mod runtime_referral_redeem_procedure_result_type; pub mod runtime_referral_redeem_snapshot_type; +pub mod runtime_setting_get_input_type; +pub mod runtime_setting_procedure_result_type; +pub mod runtime_setting_snapshot_type; pub mod runtime_setting_table; pub mod runtime_setting_type; +pub mod runtime_setting_upsert_input_type; pub mod runtime_snapshot_row_type; pub mod runtime_snapshot_table; pub mod runtime_tracking_event_batch_procedure_result_type; @@ -757,6 +760,7 @@ pub mod update_external_generation_job_phase_and_return_procedure; pub mod upsert_editor_generation_pricing_config_and_return_procedure; pub mod upsert_editor_showcase_campaign_config_and_return_procedure; pub mod upsert_feature_gate_config_procedure; +pub mod upsert_runtime_setting_and_return_procedure; pub mod user_account_table; pub mod user_account_type; pub mod user_browse_history_table; @@ -1170,6 +1174,7 @@ pub use get_profile_recharge_refund_bill_checkpoint_and_return_procedure::get_pr pub use get_profile_referral_invite_center_procedure::get_profile_referral_invite_center; pub use get_profile_task_center_procedure::get_profile_task_center; pub use get_recent_editor_project_and_return_procedure::get_recent_editor_project_and_return; +pub use get_runtime_setting_or_default_procedure::get_runtime_setting_or_default; pub use grant_new_user_registration_wallet_reward_procedure::grant_new_user_registration_wallet_reward; pub use import_database_migration_from_chunks_procedure::import_database_migration_from_chunks; pub use import_database_migration_from_file_procedure::import_database_migration_from_file; @@ -1278,8 +1283,6 @@ pub use profile_wallet_ledger_table::*; pub use profile_wallet_ledger_type::ProfileWalletLedger; pub use profile_wallet_manual_restriction_table::*; pub use profile_wallet_manual_restriction_type::ProfileWalletManualRestriction; -pub use public_work_asset_read_grant_table::*; -pub use public_work_asset_read_grant_type::PublicWorkAssetReadGrant; pub use public_work_like_table::*; pub use public_work_like_type::PublicWorkLike; pub use public_work_play_daily_stat_table::*; @@ -1485,8 +1488,12 @@ pub use runtime_referral_invited_user_snapshot_type::RuntimeReferralInvitedUserS pub use runtime_referral_redeem_input_type::RuntimeReferralRedeemInput; pub use runtime_referral_redeem_procedure_result_type::RuntimeReferralRedeemProcedureResult; pub use runtime_referral_redeem_snapshot_type::RuntimeReferralRedeemSnapshot; +pub use runtime_setting_get_input_type::RuntimeSettingGetInput; +pub use runtime_setting_procedure_result_type::RuntimeSettingProcedureResult; +pub use runtime_setting_snapshot_type::RuntimeSettingSnapshot; pub use runtime_setting_table::*; pub use runtime_setting_type::RuntimeSetting; +pub use runtime_setting_upsert_input_type::RuntimeSettingUpsertInput; pub use runtime_snapshot_row_type::RuntimeSnapshotRow; pub use runtime_snapshot_table::*; pub use runtime_tracking_event_batch_procedure_result_type::RuntimeTrackingEventBatchProcedureResult; @@ -1533,6 +1540,7 @@ pub use update_external_generation_job_phase_and_return_procedure::update_extern pub use upsert_editor_generation_pricing_config_and_return_procedure::upsert_editor_generation_pricing_config_and_return; pub use upsert_editor_showcase_campaign_config_and_return_procedure::upsert_editor_showcase_campaign_config_and_return; pub use upsert_feature_gate_config_procedure::upsert_feature_gate_config; +pub use upsert_runtime_setting_and_return_procedure::upsert_runtime_setting_and_return; pub use user_account_table::*; pub use user_account_type::UserAccount; pub use user_browse_history_table::*; @@ -1765,7 +1773,6 @@ pub struct DbUpdate { profile_wallet_config: __sdk::TableUpdate, profile_wallet_ledger: __sdk::TableUpdate, profile_wallet_manual_restriction: __sdk::TableUpdate, - public_work_asset_read_grant: __sdk::TableUpdate, public_work_like: __sdk::TableUpdate, public_work_play_daily_stat: __sdk::TableUpdate, puzzle_agent_message: __sdk::TableUpdate, @@ -2143,9 +2150,6 @@ impl TryFrom<__ws::v2::TransactionUpdate> for DbUpdate { profile_wallet_manual_restriction_table::parse_table_update(table_update)?, ) } - "public_work_asset_read_grant" => db_update.public_work_asset_read_grant.append( - public_work_asset_read_grant_table::parse_table_update(table_update)?, - ), "public_work_like" => db_update .public_work_like .append(public_work_like_table::parse_table_update(table_update)?), @@ -2988,12 +2992,6 @@ impl __sdk::DbUpdate for DbUpdate { &self.wooden_fish_work_profile, ) .with_updates_by_pk(|row| &row.profile_id); - diff.public_work_asset_read_grant = cache - .apply_diff_to_table::( - "public_work_asset_read_grant", - &self.public_work_asset_read_grant, - ) - .with_updates_by_pk(|row| &row.grant_id); diff } @@ -3283,9 +3281,6 @@ impl __sdk::DbUpdate for DbUpdate { "profile_wallet_manual_restriction" => db_update .profile_wallet_manual_restriction .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "public_work_asset_read_grant" => db_update - .public_work_asset_read_grant - .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), "public_work_like" => db_update .public_work_like .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), @@ -3698,9 +3693,6 @@ impl __sdk::DbUpdate for DbUpdate { "profile_wallet_manual_restriction" => db_update .profile_wallet_manual_restriction .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "public_work_asset_read_grant" => db_update - .public_work_asset_read_grant - .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), "public_work_like" => db_update .public_work_like .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), @@ -3936,7 +3928,6 @@ pub struct AppliedDiff<'r> { profile_wallet_config: __sdk::TableAppliedDiff<'r, ProfileWalletConfig>, profile_wallet_ledger: __sdk::TableAppliedDiff<'r, ProfileWalletLedger>, profile_wallet_manual_restriction: __sdk::TableAppliedDiff<'r, ProfileWalletManualRestriction>, - public_work_asset_read_grant: __sdk::TableAppliedDiff<'r, PublicWorkAssetReadGrant>, public_work_like: __sdk::TableAppliedDiff<'r, PublicWorkLike>, public_work_play_daily_stat: __sdk::TableAppliedDiff<'r, PublicWorkPlayDailyStat>, puzzle_agent_message: __sdk::TableAppliedDiff<'r, PuzzleAgentMessageRow>, @@ -4448,11 +4439,6 @@ impl<'r> __sdk::AppliedDiff<'r> for AppliedDiff<'r> { &self.profile_wallet_manual_restriction, event, ); - callbacks.invoke_table_row_callbacks::( - "public_work_asset_read_grant", - &self.public_work_asset_read_grant, - event, - ); callbacks.invoke_table_row_callbacks::( "public_work_like", &self.public_work_like, @@ -5394,7 +5380,6 @@ impl __sdk::SpacetimeModule for RemoteModule { profile_wallet_config_table::register_table(client_cache); profile_wallet_ledger_table::register_table(client_cache); profile_wallet_manual_restriction_table::register_table(client_cache); - public_work_asset_read_grant_table::register_table(client_cache); public_work_like_table::register_table(client_cache); public_work_play_daily_stat_table::register_table(client_cache); puzzle_agent_message_table::register_table(client_cache); @@ -5530,7 +5515,6 @@ impl __sdk::SpacetimeModule for RemoteModule { "profile_wallet_config", "profile_wallet_ledger", "profile_wallet_manual_restriction", - "public_work_asset_read_grant", "public_work_like", "public_work_play_daily_stat", "puzzle_agent_message", diff --git a/server-rs/crates/spacetime-client/src/module_bindings/accept_quest_reducer.rs b/server-rs/crates/spacetime-client/src/module_bindings/accept_quest_reducer.rs deleted file mode 100644 index dfebf9039..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/accept_quest_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::quest_record_input_type::QuestRecordInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct AcceptQuestArgs { - pub input: QuestRecordInput, -} - -impl From for super::Reducer { - fn from(args: AcceptQuestArgs) -> Self { - Self::AcceptQuest { input: args.input } - } -} - -impl __sdk::InModule for AcceptQuestArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `accept_quest`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait accept_quest { - /// Request that the remote module invoke the reducer `accept_quest` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`accept_quest:accept_quest_then`] to run a callback after the reducer completes. - fn accept_quest(&self, input: QuestRecordInput) -> __sdk::Result<()> { - self.accept_quest_then(input, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `accept_quest` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn accept_quest_then( - &self, - input: QuestRecordInput, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl accept_quest for super::RemoteReducers { - fn accept_quest_then( - &self, - input: QuestRecordInput, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(AcceptQuestArgs { input }, callback) - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/acknowledge_quest_completion_reducer.rs b/server-rs/crates/spacetime-client/src/module_bindings/acknowledge_quest_completion_reducer.rs deleted file mode 100644 index 6ae2fd100..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/acknowledge_quest_completion_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::quest_completion_ack_input_type::QuestCompletionAckInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct AcknowledgeQuestCompletionArgs { - pub input: QuestCompletionAckInput, -} - -impl From for super::Reducer { - fn from(args: AcknowledgeQuestCompletionArgs) -> Self { - Self::AcknowledgeQuestCompletion { input: args.input } - } -} - -impl __sdk::InModule for AcknowledgeQuestCompletionArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `acknowledge_quest_completion`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait acknowledge_quest_completion { - /// Request that the remote module invoke the reducer `acknowledge_quest_completion` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`acknowledge_quest_completion:acknowledge_quest_completion_then`] to run a callback after the reducer completes. - fn acknowledge_quest_completion(&self, input: QuestCompletionAckInput) -> __sdk::Result<()> { - self.acknowledge_quest_completion_then(input, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `acknowledge_quest_completion` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn acknowledge_quest_completion_then( - &self, - input: QuestCompletionAckInput, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl acknowledge_quest_completion for super::RemoteReducers { - fn acknowledge_quest_completion_then( - &self, - input: QuestCompletionAckInput, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(AcknowledgeQuestCompletionArgs { input }, callback) - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/admin_list_work_visibility_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/admin_list_work_visibility_procedure.rs deleted file mode 100644 index 72028b5e5..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/admin_list_work_visibility_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::admin_work_visibility_list_input_type::AdminWorkVisibilityListInput; -use super::admin_work_visibility_list_procedure_result_type::AdminWorkVisibilityListProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct AdminListWorkVisibilityArgs { - pub input: AdminWorkVisibilityListInput, -} - -impl __sdk::InModule for AdminListWorkVisibilityArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `admin_list_work_visibility`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait admin_list_work_visibility { - fn admin_list_work_visibility(&self, input: AdminWorkVisibilityListInput) { - self.admin_list_work_visibility_then(input, |_, _| {}); - } - - fn admin_list_work_visibility_then( - &self, - input: AdminWorkVisibilityListInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl admin_list_work_visibility for super::RemoteProcedures { - fn admin_list_work_visibility_then( - &self, - input: AdminWorkVisibilityListInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, AdminWorkVisibilityListProcedureResult>( - "admin_list_work_visibility", - AdminListWorkVisibilityArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/admin_update_work_visibility_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/admin_update_work_visibility_procedure.rs deleted file mode 100644 index bbc85a892..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/admin_update_work_visibility_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::admin_work_visibility_procedure_result_type::AdminWorkVisibilityProcedureResult; -use super::admin_work_visibility_update_input_type::AdminWorkVisibilityUpdateInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct AdminUpdateWorkVisibilityArgs { - pub input: AdminWorkVisibilityUpdateInput, -} - -impl __sdk::InModule for AdminUpdateWorkVisibilityArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `admin_update_work_visibility`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait admin_update_work_visibility { - fn admin_update_work_visibility(&self, input: AdminWorkVisibilityUpdateInput) { - self.admin_update_work_visibility_then(input, |_, _| {}); - } - - fn admin_update_work_visibility_then( - &self, - input: AdminWorkVisibilityUpdateInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl admin_update_work_visibility for super::RemoteProcedures { - fn admin_update_work_visibility_then( - &self, - input: AdminWorkVisibilityUpdateInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, AdminWorkVisibilityProcedureResult>( - "admin_update_work_visibility", - AdminUpdateWorkVisibilityArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/admin_work_visibility_list_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/admin_work_visibility_list_input_type.rs deleted file mode 100644 index f7e270c35..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/admin_work_visibility_list_input_type.rs +++ /dev/null @@ -1,15 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct AdminWorkVisibilityListInput { - pub admin_user_id: String, -} - -impl __sdk::InModule for AdminWorkVisibilityListInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/admin_work_visibility_list_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/admin_work_visibility_list_procedure_result_type.rs deleted file mode 100644 index f0a5ff9f2..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/admin_work_visibility_list_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::admin_work_visibility_snapshot_type::AdminWorkVisibilitySnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct AdminWorkVisibilityListProcedureResult { - pub ok: bool, - pub entries: Vec, - pub error_message: Option, -} - -impl __sdk::InModule for AdminWorkVisibilityListProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/admin_work_visibility_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/admin_work_visibility_procedure_result_type.rs deleted file mode 100644 index f5e05c932..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/admin_work_visibility_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::admin_work_visibility_snapshot_type::AdminWorkVisibilitySnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct AdminWorkVisibilityProcedureResult { - pub ok: bool, - pub record: Option, - pub error_message: Option, -} - -impl __sdk::InModule for AdminWorkVisibilityProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/admin_work_visibility_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/admin_work_visibility_snapshot_type.rs deleted file mode 100644 index a1dd39621..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/admin_work_visibility_snapshot_type.rs +++ /dev/null @@ -1,27 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct AdminWorkVisibilitySnapshot { - pub source_type: String, - pub work_id: String, - pub profile_id: String, - pub source_session_id: Option, - pub public_work_code: String, - pub owner_user_id: String, - pub author_display_name: String, - pub title: String, - pub subtitle: String, - pub cover_image_src: Option, - pub visible: bool, - pub published_at_micros: Option, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for AdminWorkVisibilitySnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/admin_work_visibility_update_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/admin_work_visibility_update_input_type.rs deleted file mode 100644 index 77fa284e4..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/admin_work_visibility_update_input_type.rs +++ /dev/null @@ -1,18 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct AdminWorkVisibilityUpdateInput { - pub admin_user_id: String, - pub source_type: String, - pub profile_id: String, - pub visible: bool, -} - -impl __sdk::InModule for AdminWorkVisibilityUpdateInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/advance_puzzle_clear_next_level_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/advance_puzzle_clear_next_level_procedure.rs deleted file mode 100644 index 7ed1e4bc9..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/advance_puzzle_clear_next_level_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_clear_run_next_level_input_type::PuzzleClearRunNextLevelInput; -use super::puzzle_clear_run_procedure_result_type::PuzzleClearRunProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct AdvancePuzzleClearNextLevelArgs { - pub input: PuzzleClearRunNextLevelInput, -} - -impl __sdk::InModule for AdvancePuzzleClearNextLevelArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `advance_puzzle_clear_next_level`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait advance_puzzle_clear_next_level { - fn advance_puzzle_clear_next_level(&self, input: PuzzleClearRunNextLevelInput) { - self.advance_puzzle_clear_next_level_then(input, |_, _| {}); - } - - fn advance_puzzle_clear_next_level_then( - &self, - input: PuzzleClearRunNextLevelInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl advance_puzzle_clear_next_level for super::RemoteProcedures { - fn advance_puzzle_clear_next_level_then( - &self, - input: PuzzleClearRunNextLevelInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleClearRunProcedureResult>( - "advance_puzzle_clear_next_level", - AdvancePuzzleClearNextLevelArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/advance_puzzle_next_level_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/advance_puzzle_next_level_procedure.rs deleted file mode 100644 index 6d3e9f791..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/advance_puzzle_next_level_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_run_next_level_input_type::PuzzleRunNextLevelInput; -use super::puzzle_run_procedure_result_type::PuzzleRunProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct AdvancePuzzleNextLevelArgs { - pub input: PuzzleRunNextLevelInput, -} - -impl __sdk::InModule for AdvancePuzzleNextLevelArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `advance_puzzle_next_level`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait advance_puzzle_next_level { - fn advance_puzzle_next_level(&self, input: PuzzleRunNextLevelInput) { - self.advance_puzzle_next_level_then(input, |_, _| {}); - } - - fn advance_puzzle_next_level_then( - &self, - input: PuzzleRunNextLevelInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl advance_puzzle_next_level for super::RemoteProcedures { - fn advance_puzzle_next_level_then( - &self, - input: PuzzleRunNextLevelInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleRunProcedureResult>( - "advance_puzzle_next_level", - AdvancePuzzleNextLevelArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/append_visual_novel_runtime_history_entry_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/append_visual_novel_runtime_history_entry_procedure.rs deleted file mode 100644 index 4686ba5ca..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/append_visual_novel_runtime_history_entry_procedure.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::visual_novel_history_procedure_result_type::VisualNovelHistoryProcedureResult; -use super::visual_novel_runtime_history_append_input_type::VisualNovelRuntimeHistoryAppendInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct AppendVisualNovelRuntimeHistoryEntryArgs { - pub input: VisualNovelRuntimeHistoryAppendInput, -} - -impl __sdk::InModule for AppendVisualNovelRuntimeHistoryEntryArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `append_visual_novel_runtime_history_entry`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait append_visual_novel_runtime_history_entry { - fn append_visual_novel_runtime_history_entry( - &self, - input: VisualNovelRuntimeHistoryAppendInput, - ) { - self.append_visual_novel_runtime_history_entry_then(input, |_, _| {}); - } - - fn append_visual_novel_runtime_history_entry_then( - &self, - input: VisualNovelRuntimeHistoryAppendInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl append_visual_novel_runtime_history_entry for super::RemoteProcedures { - fn append_visual_novel_runtime_history_entry_then( - &self, - input: VisualNovelRuntimeHistoryAppendInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, VisualNovelHistoryProcedureResult>( - "append_visual_novel_runtime_history_entry", - AppendVisualNovelRuntimeHistoryEntryArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/apply_chapter_progression_ledger_entry_and_return_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/apply_chapter_progression_ledger_entry_and_return_procedure.rs deleted file mode 100644 index bba4c841b..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/apply_chapter_progression_ledger_entry_and_return_procedure.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::chapter_progression_ledger_input_type::ChapterProgressionLedgerInput; -use super::chapter_progression_procedure_result_type::ChapterProgressionProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct ApplyChapterProgressionLedgerEntryAndReturnArgs { - pub input: ChapterProgressionLedgerInput, -} - -impl __sdk::InModule for ApplyChapterProgressionLedgerEntryAndReturnArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `apply_chapter_progression_ledger_entry_and_return`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait apply_chapter_progression_ledger_entry_and_return { - fn apply_chapter_progression_ledger_entry_and_return( - &self, - input: ChapterProgressionLedgerInput, - ) { - self.apply_chapter_progression_ledger_entry_and_return_then(input, |_, _| {}); - } - - fn apply_chapter_progression_ledger_entry_and_return_then( - &self, - input: ChapterProgressionLedgerInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl apply_chapter_progression_ledger_entry_and_return for super::RemoteProcedures { - fn apply_chapter_progression_ledger_entry_and_return_then( - &self, - input: ChapterProgressionLedgerInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, ChapterProgressionProcedureResult>( - "apply_chapter_progression_ledger_entry_and_return", - ApplyChapterProgressionLedgerEntryAndReturnArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/apply_chapter_progression_ledger_entry_reducer.rs b/server-rs/crates/spacetime-client/src/module_bindings/apply_chapter_progression_ledger_entry_reducer.rs deleted file mode 100644 index 98f821ef9..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/apply_chapter_progression_ledger_entry_reducer.rs +++ /dev/null @@ -1,73 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::chapter_progression_ledger_input_type::ChapterProgressionLedgerInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct ApplyChapterProgressionLedgerEntryArgs { - pub input: ChapterProgressionLedgerInput, -} - -impl From for super::Reducer { - fn from(args: ApplyChapterProgressionLedgerEntryArgs) -> Self { - Self::ApplyChapterProgressionLedgerEntry { input: args.input } - } -} - -impl __sdk::InModule for ApplyChapterProgressionLedgerEntryArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `apply_chapter_progression_ledger_entry`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait apply_chapter_progression_ledger_entry { - /// Request that the remote module invoke the reducer `apply_chapter_progression_ledger_entry` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`apply_chapter_progression_ledger_entry:apply_chapter_progression_ledger_entry_then`] to run a callback after the reducer completes. - fn apply_chapter_progression_ledger_entry( - &self, - input: ChapterProgressionLedgerInput, - ) -> __sdk::Result<()> { - self.apply_chapter_progression_ledger_entry_then(input, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `apply_chapter_progression_ledger_entry` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn apply_chapter_progression_ledger_entry_then( - &self, - input: ChapterProgressionLedgerInput, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl apply_chapter_progression_ledger_entry for super::RemoteReducers { - fn apply_chapter_progression_ledger_entry_then( - &self, - input: ChapterProgressionLedgerInput, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback( - ApplyChapterProgressionLedgerEntryArgs { input }, - callback, - ) - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/apply_inventory_mutation_reducer.rs b/server-rs/crates/spacetime-client/src/module_bindings/apply_inventory_mutation_reducer.rs deleted file mode 100644 index 91f7d2c06..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/apply_inventory_mutation_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::inventory_mutation_input_type::InventoryMutationInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct ApplyInventoryMutationArgs { - pub input: InventoryMutationInput, -} - -impl From for super::Reducer { - fn from(args: ApplyInventoryMutationArgs) -> Self { - Self::ApplyInventoryMutation { input: args.input } - } -} - -impl __sdk::InModule for ApplyInventoryMutationArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `apply_inventory_mutation`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait apply_inventory_mutation { - /// Request that the remote module invoke the reducer `apply_inventory_mutation` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`apply_inventory_mutation:apply_inventory_mutation_then`] to run a callback after the reducer completes. - fn apply_inventory_mutation(&self, input: InventoryMutationInput) -> __sdk::Result<()> { - self.apply_inventory_mutation_then(input, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `apply_inventory_mutation` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn apply_inventory_mutation_then( - &self, - input: InventoryMutationInput, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl apply_inventory_mutation for super::RemoteReducers { - fn apply_inventory_mutation_then( - &self, - input: InventoryMutationInput, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(ApplyInventoryMutationArgs { input }, callback) - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/apply_quest_signal_reducer.rs b/server-rs/crates/spacetime-client/src/module_bindings/apply_quest_signal_reducer.rs deleted file mode 100644 index afb452b55..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/apply_quest_signal_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::quest_signal_apply_input_type::QuestSignalApplyInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct ApplyQuestSignalArgs { - pub input: QuestSignalApplyInput, -} - -impl From for super::Reducer { - fn from(args: ApplyQuestSignalArgs) -> Self { - Self::ApplyQuestSignal { input: args.input } - } -} - -impl __sdk::InModule for ApplyQuestSignalArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `apply_quest_signal`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait apply_quest_signal { - /// Request that the remote module invoke the reducer `apply_quest_signal` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`apply_quest_signal:apply_quest_signal_then`] to run a callback after the reducer completes. - fn apply_quest_signal(&self, input: QuestSignalApplyInput) -> __sdk::Result<()> { - self.apply_quest_signal_then(input, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `apply_quest_signal` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn apply_quest_signal_then( - &self, - input: QuestSignalApplyInput, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl apply_quest_signal for super::RemoteReducers { - fn apply_quest_signal_then( - &self, - input: QuestSignalApplyInput, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(ApplyQuestSignalArgs { input }, callback) - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/bark_battle_draft_config_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/bark_battle_draft_config_snapshot_type.rs deleted file mode 100644 index 53a978e68..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/bark_battle_draft_config_snapshot_type.rs +++ /dev/null @@ -1,24 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BarkBattleDraftConfigSnapshot { - pub draft_id: String, - pub owner_user_id: String, - pub work_id: String, - pub config_version: u64, - pub ruleset_version: String, - pub difficulty_preset: String, - pub config_json: String, - pub editor_state_json: String, - pub created_at_micros: i64, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for BarkBattleDraftConfigSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/bark_battle_draft_config_upsert_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/bark_battle_draft_config_upsert_input_type.rs deleted file mode 100644 index 15331a91b..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/bark_battle_draft_config_upsert_input_type.rs +++ /dev/null @@ -1,22 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BarkBattleDraftConfigUpsertInput { - pub draft_id: String, - pub owner_user_id: String, - pub work_id: String, - pub config_version: u64, - pub ruleset_version: String, - pub difficulty_preset: String, - pub config_json: String, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for BarkBattleDraftConfigUpsertInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/bark_battle_draft_create_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/bark_battle_draft_create_input_type.rs deleted file mode 100644 index 017388c80..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/bark_battle_draft_create_input_type.rs +++ /dev/null @@ -1,25 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BarkBattleDraftCreateInput { - pub draft_id: String, - pub owner_user_id: String, - pub work_id: String, - pub title: Option, - pub description: Option, - pub theme_description: String, - pub player_image_description: String, - pub opponent_image_description: String, - pub difficulty_preset: Option, - pub editor_state_json: Option, - pub created_at_micros: i64, -} - -impl __sdk::InModule for BarkBattleDraftCreateInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/bark_battle_gallery_view_row_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/bark_battle_gallery_view_row_type.rs deleted file mode 100644 index 5f459a799..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/bark_battle_gallery_view_row_type.rs +++ /dev/null @@ -1,112 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BarkBattleGalleryViewRow { - pub work_id: String, - pub owner_user_id: String, - pub author_display_name: String, - pub source_draft_id: Option, - pub config_version: u64, - pub ruleset_version: String, - pub difficulty_preset: String, - pub title: String, - pub description: String, - pub theme_description: String, - pub player_image_description: String, - pub opponent_image_description: String, - pub onomatopoeia: Vec, - pub player_character_image_src: Option, - pub opponent_character_image_src: Option, - pub ui_background_image_src: Option, - pub play_count: u64, - pub finish_count: u64, - pub updated_at_micros: i64, - pub published_at_micros: i64, -} - -impl __sdk::InModule for BarkBattleGalleryViewRow { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `BarkBattleGalleryViewRow`. -/// -/// Provides typed access to columns for query building. -pub struct BarkBattleGalleryViewRowCols { - pub work_id: __sdk::__query_builder::Col, - pub owner_user_id: __sdk::__query_builder::Col, - pub author_display_name: __sdk::__query_builder::Col, - pub source_draft_id: __sdk::__query_builder::Col>, - pub config_version: __sdk::__query_builder::Col, - pub ruleset_version: __sdk::__query_builder::Col, - pub difficulty_preset: __sdk::__query_builder::Col, - pub title: __sdk::__query_builder::Col, - pub description: __sdk::__query_builder::Col, - pub theme_description: __sdk::__query_builder::Col, - pub player_image_description: __sdk::__query_builder::Col, - pub opponent_image_description: __sdk::__query_builder::Col, - pub onomatopoeia: __sdk::__query_builder::Col>, - pub player_character_image_src: - __sdk::__query_builder::Col>, - pub opponent_character_image_src: - __sdk::__query_builder::Col>, - pub ui_background_image_src: - __sdk::__query_builder::Col>, - pub play_count: __sdk::__query_builder::Col, - pub finish_count: __sdk::__query_builder::Col, - pub updated_at_micros: __sdk::__query_builder::Col, - pub published_at_micros: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for BarkBattleGalleryViewRow { - type Cols = BarkBattleGalleryViewRowCols; - fn cols(table_name: &'static str) -> Self::Cols { - BarkBattleGalleryViewRowCols { - work_id: __sdk::__query_builder::Col::new(table_name, "work_id"), - owner_user_id: __sdk::__query_builder::Col::new(table_name, "owner_user_id"), - author_display_name: __sdk::__query_builder::Col::new( - table_name, - "author_display_name", - ), - source_draft_id: __sdk::__query_builder::Col::new(table_name, "source_draft_id"), - config_version: __sdk::__query_builder::Col::new(table_name, "config_version"), - ruleset_version: __sdk::__query_builder::Col::new(table_name, "ruleset_version"), - difficulty_preset: __sdk::__query_builder::Col::new(table_name, "difficulty_preset"), - title: __sdk::__query_builder::Col::new(table_name, "title"), - description: __sdk::__query_builder::Col::new(table_name, "description"), - theme_description: __sdk::__query_builder::Col::new(table_name, "theme_description"), - player_image_description: __sdk::__query_builder::Col::new( - table_name, - "player_image_description", - ), - opponent_image_description: __sdk::__query_builder::Col::new( - table_name, - "opponent_image_description", - ), - onomatopoeia: __sdk::__query_builder::Col::new(table_name, "onomatopoeia"), - player_character_image_src: __sdk::__query_builder::Col::new( - table_name, - "player_character_image_src", - ), - opponent_character_image_src: __sdk::__query_builder::Col::new( - table_name, - "opponent_character_image_src", - ), - ui_background_image_src: __sdk::__query_builder::Col::new( - table_name, - "ui_background_image_src", - ), - play_count: __sdk::__query_builder::Col::new(table_name, "play_count"), - finish_count: __sdk::__query_builder::Col::new(table_name, "finish_count"), - updated_at_micros: __sdk::__query_builder::Col::new(table_name, "updated_at_micros"), - published_at_micros: __sdk::__query_builder::Col::new( - table_name, - "published_at_micros", - ), - } - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/bark_battle_gallery_view_table.rs b/server-rs/crates/spacetime-client/src/module_bindings/bark_battle_gallery_view_table.rs deleted file mode 100644 index 7cd139c03..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/bark_battle_gallery_view_table.rs +++ /dev/null @@ -1,114 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::bark_battle_gallery_view_row_type::BarkBattleGalleryViewRow; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `bark_battle_gallery_view`. -/// -/// Obtain a handle from the [`BarkBattleGalleryViewTableAccess::bark_battle_gallery_view`] method on [`super::RemoteTables`], -/// like `ctx.db.bark_battle_gallery_view()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.bark_battle_gallery_view().on_insert(...)`. -pub struct BarkBattleGalleryViewTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `bark_battle_gallery_view`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait BarkBattleGalleryViewTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`BarkBattleGalleryViewTableHandle`], which mediates access to the table `bark_battle_gallery_view`. - fn bark_battle_gallery_view(&self) -> BarkBattleGalleryViewTableHandle<'_>; -} - -impl BarkBattleGalleryViewTableAccess for super::RemoteTables { - fn bark_battle_gallery_view(&self) -> BarkBattleGalleryViewTableHandle<'_> { - BarkBattleGalleryViewTableHandle { - imp: self - .imp - .get_table::("bark_battle_gallery_view"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct BarkBattleGalleryViewInsertCallbackId(__sdk::CallbackId); -pub struct BarkBattleGalleryViewDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::Table for BarkBattleGalleryViewTableHandle<'ctx> { - type Row = BarkBattleGalleryViewRow; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = BarkBattleGalleryViewInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> BarkBattleGalleryViewInsertCallbackId { - BarkBattleGalleryViewInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: BarkBattleGalleryViewInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = BarkBattleGalleryViewDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> BarkBattleGalleryViewDeleteCallbackId { - BarkBattleGalleryViewDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: BarkBattleGalleryViewDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = - client_cache.get_or_make_table::("bark_battle_gallery_view"); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `BarkBattleGalleryViewRow`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait bark_battle_gallery_viewQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `BarkBattleGalleryViewRow`. - fn bark_battle_gallery_view(&self) -> __sdk::__query_builder::Table; -} - -impl bark_battle_gallery_viewQueryTableAccess for __sdk::QueryTableAccessor { - fn bark_battle_gallery_view(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("bark_battle_gallery_view") - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/bark_battle_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/bark_battle_procedure_result_type.rs deleted file mode 100644 index 03e6fe2c5..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/bark_battle_procedure_result_type.rs +++ /dev/null @@ -1,23 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::bark_battle_draft_config_snapshot_type::BarkBattleDraftConfigSnapshot; -use super::bark_battle_run_snapshot_type::BarkBattleRunSnapshot; -use super::bark_battle_runtime_config_snapshot_type::BarkBattleRuntimeConfigSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BarkBattleProcedureResult { - pub ok: bool, - pub draft_config: Option, - pub runtime_config: Option, - pub run: Option, - pub error_message: Option, -} - -impl __sdk::InModule for BarkBattleProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/bark_battle_run_finish_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/bark_battle_run_finish_input_type.rs deleted file mode 100644 index d8ac7dd0d..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/bark_battle_run_finish_input_type.rs +++ /dev/null @@ -1,32 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BarkBattleRunFinishInput { - pub run_id: String, - pub run_token: String, - pub owner_user_id: String, - pub work_id: String, - pub config_version: u64, - pub ruleset_version: String, - pub difficulty_preset: String, - pub client_finished_at_micros: i64, - pub server_finished_at_micros: i64, - pub duration_ms: u64, - pub trigger_count: u64, - pub max_volume_millis: u32, - pub average_volume_millis: u32, - pub final_energy_millis: u32, - pub opponent_final_energy_millis: u32, - pub max_combo: u32, - pub metrics_json: String, - pub derived_metrics_json: String, -} - -impl __sdk::InModule for BarkBattleRunFinishInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/bark_battle_run_get_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/bark_battle_run_get_input_type.rs deleted file mode 100644 index 243bedcab..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/bark_battle_run_get_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BarkBattleRunGetInput { - pub run_id: String, - pub owner_user_id: String, -} - -impl __sdk::InModule for BarkBattleRunGetInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/bark_battle_run_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/bark_battle_run_snapshot_type.rs deleted file mode 100644 index 71bb833db..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/bark_battle_run_snapshot_type.rs +++ /dev/null @@ -1,31 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BarkBattleRunSnapshot { - pub run_id: String, - pub owner_user_id: String, - pub work_id: String, - pub config_version: u64, - pub ruleset_version: String, - pub difficulty_preset: String, - pub status: String, - pub client_started_at_micros: i64, - pub server_started_at_micros: i64, - pub client_finished_at_micros: Option, - pub server_finished_at_micros: Option, - pub metrics_json: String, - pub server_result: Option, - pub validation_status: String, - pub anti_cheat_flags_json: String, - pub leaderboard_score: Option, - pub score_id: Option, -} - -impl __sdk::InModule for BarkBattleRunSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/bark_battle_run_start_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/bark_battle_run_start_input_type.rs deleted file mode 100644 index 3dee4380f..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/bark_battle_run_start_input_type.rs +++ /dev/null @@ -1,23 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BarkBattleRunStartInput { - pub run_id: String, - pub run_token: String, - pub owner_user_id: String, - pub work_id: String, - pub config_version: u64, - pub ruleset_version: String, - pub difficulty_preset: String, - pub client_started_at_micros: i64, - pub server_started_at_micros: i64, -} - -impl __sdk::InModule for BarkBattleRunStartInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/bark_battle_runtime_config_get_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/bark_battle_runtime_config_get_input_type.rs deleted file mode 100644 index 0acef7694..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/bark_battle_runtime_config_get_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BarkBattleRuntimeConfigGetInput { - pub work_id: String, - pub owner_user_id: Option, -} - -impl __sdk::InModule for BarkBattleRuntimeConfigGetInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/bark_battle_runtime_config_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/bark_battle_runtime_config_snapshot_type.rs deleted file mode 100644 index a707ad158..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/bark_battle_runtime_config_snapshot_type.rs +++ /dev/null @@ -1,24 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BarkBattleRuntimeConfigSnapshot { - pub work_id: String, - pub owner_user_id: String, - pub source_draft_id: Option, - pub config_version: u64, - pub ruleset_version: String, - pub difficulty_preset: String, - pub config_json: String, - pub published_snapshot_json: String, - pub published_at_micros: i64, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for BarkBattleRuntimeConfigSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/bark_battle_work_delete_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/bark_battle_work_delete_input_type.rs deleted file mode 100644 index 9250b5841..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/bark_battle_work_delete_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BarkBattleWorkDeleteInput { - pub work_id: String, - pub owner_user_id: String, -} - -impl __sdk::InModule for BarkBattleWorkDeleteInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/bark_battle_work_publish_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/bark_battle_work_publish_input_type.rs deleted file mode 100644 index d3e506947..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/bark_battle_work_publish_input_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BarkBattleWorkPublishInput { - pub draft_id: String, - pub owner_user_id: String, - pub work_id: String, - pub published_snapshot_json: Option, - pub published_at_micros: i64, -} - -impl __sdk::InModule for BarkBattleWorkPublishInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/battle_state_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/battle_state_input_type.rs deleted file mode 100644 index 6a176e2d0..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/battle_state_input_type.rs +++ /dev/null @@ -1,34 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::battle_mode_type::BattleMode; -use super::runtime_item_reward_item_snapshot_type::RuntimeItemRewardItemSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BattleStateInput { - pub battle_state_id: String, - pub story_session_id: String, - pub runtime_session_id: String, - pub actor_user_id: String, - pub chapter_id: Option, - pub target_npc_id: String, - pub target_name: String, - pub battle_mode: BattleMode, - pub player_hp: i32, - pub player_max_hp: i32, - pub player_mana: i32, - pub player_max_mana: i32, - pub target_hp: i32, - pub target_max_hp: i32, - pub experience_reward: u32, - pub reward_items: Vec, - pub created_at_micros: i64, -} - -impl __sdk::InModule for BattleStateInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/battle_state_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/battle_state_procedure_result_type.rs deleted file mode 100644 index e66352ad0..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/battle_state_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::battle_state_snapshot_type::BattleStateSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BattleStateProcedureResult { - pub ok: bool, - pub snapshot: Option, - pub error_message: Option, -} - -impl __sdk::InModule for BattleStateProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/battle_state_query_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/battle_state_query_input_type.rs deleted file mode 100644 index 53053ccad..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/battle_state_query_input_type.rs +++ /dev/null @@ -1,15 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BattleStateQueryInput { - pub battle_state_id: String, -} - -impl __sdk::InModule for BattleStateQueryInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/battle_state_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/battle_state_snapshot_type.rs deleted file mode 100644 index 925d84689..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/battle_state_snapshot_type.rs +++ /dev/null @@ -1,46 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::battle_mode_type::BattleMode; -use super::battle_status_type::BattleStatus; -use super::combat_outcome_type::CombatOutcome; -use super::runtime_item_reward_item_snapshot_type::RuntimeItemRewardItemSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BattleStateSnapshot { - pub battle_state_id: String, - pub story_session_id: String, - pub runtime_session_id: String, - pub actor_user_id: String, - pub chapter_id: Option, - pub target_npc_id: String, - pub target_name: String, - pub battle_mode: BattleMode, - pub status: BattleStatus, - pub player_hp: i32, - pub player_max_hp: i32, - pub player_mana: i32, - pub player_max_mana: i32, - pub target_hp: i32, - pub target_max_hp: i32, - pub experience_reward: u32, - pub reward_items: Vec, - pub turn_index: u32, - pub last_action_function_id: Option, - pub last_action_text: Option, - pub last_result_text: Option, - pub last_damage_dealt: i32, - pub last_damage_taken: i32, - pub last_outcome: CombatOutcome, - pub version: u32, - pub created_at_micros: i64, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for BattleStateSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/begin_story_session_and_return_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/begin_story_session_and_return_procedure.rs deleted file mode 100644 index eef3de0f7..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/begin_story_session_and_return_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::story_session_input_type::StorySessionInput; -use super::story_session_procedure_result_type::StorySessionProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct BeginStorySessionAndReturnArgs { - pub input: StorySessionInput, -} - -impl __sdk::InModule for BeginStorySessionAndReturnArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `begin_story_session_and_return`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait begin_story_session_and_return { - fn begin_story_session_and_return(&self, input: StorySessionInput) { - self.begin_story_session_and_return_then(input, |_, _| {}); - } - - fn begin_story_session_and_return_then( - &self, - input: StorySessionInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl begin_story_session_and_return for super::RemoteProcedures { - fn begin_story_session_and_return_then( - &self, - input: StorySessionInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, StorySessionProcedureResult>( - "begin_story_session_and_return", - BeginStorySessionAndReturnArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/begin_story_session_reducer.rs b/server-rs/crates/spacetime-client/src/module_bindings/begin_story_session_reducer.rs deleted file mode 100644 index 6a082f419..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/begin_story_session_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::story_session_input_type::StorySessionInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct BeginStorySessionArgs { - pub input: StorySessionInput, -} - -impl From for super::Reducer { - fn from(args: BeginStorySessionArgs) -> Self { - Self::BeginStorySession { input: args.input } - } -} - -impl __sdk::InModule for BeginStorySessionArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `begin_story_session`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait begin_story_session { - /// Request that the remote module invoke the reducer `begin_story_session` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`begin_story_session:begin_story_session_then`] to run a callback after the reducer completes. - fn begin_story_session(&self, input: StorySessionInput) -> __sdk::Result<()> { - self.begin_story_session_then(input, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `begin_story_session` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn begin_story_session_then( - &self, - input: StorySessionInput, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl begin_story_session for super::RemoteReducers { - fn begin_story_session_then( - &self, - input: StorySessionInput, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(BeginStorySessionArgs { input }, callback) - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_agent_message_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_agent_message_snapshot_type.rs deleted file mode 100644 index acc31e57d..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_agent_message_snapshot_type.rs +++ /dev/null @@ -1,23 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::big_fish_agent_message_kind_type::BigFishAgentMessageKind; -use super::big_fish_agent_message_role_type::BigFishAgentMessageRole; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BigFishAgentMessageSnapshot { - pub message_id: String, - pub session_id: String, - pub role: BigFishAgentMessageRole, - pub kind: BigFishAgentMessageKind, - pub text: String, - pub created_at_micros: i64, -} - -impl __sdk::InModule for BigFishAgentMessageSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_anchor_item_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_anchor_item_type.rs deleted file mode 100644 index d876588e0..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_anchor_item_type.rs +++ /dev/null @@ -1,20 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::big_fish_anchor_status_type::BigFishAnchorStatus; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BigFishAnchorItem { - pub key: String, - pub label: String, - pub value: String, - pub status: BigFishAnchorStatus, -} - -impl __sdk::InModule for BigFishAnchorItem { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_anchor_pack_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_anchor_pack_type.rs deleted file mode 100644 index 5d93c291c..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_anchor_pack_type.rs +++ /dev/null @@ -1,20 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::big_fish_anchor_item_type::BigFishAnchorItem; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BigFishAnchorPack { - pub gameplay_promise: BigFishAnchorItem, - pub ecology_visual_theme: BigFishAnchorItem, - pub growth_ladder: BigFishAnchorItem, - pub risk_tempo: BigFishAnchorItem, -} - -impl __sdk::InModule for BigFishAnchorPack { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_anchor_status_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_anchor_status_type.rs deleted file mode 100644 index bcfe701e1..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_anchor_status_type.rs +++ /dev/null @@ -1,22 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -#[derive(Copy, Eq, Hash)] -pub enum BigFishAnchorStatus { - Confirmed, - - Inferred, - - Missing, - - Locked, -} - -impl __sdk::InModule for BigFishAnchorStatus { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_asset_coverage_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_asset_coverage_type.rs deleted file mode 100644 index 607a8c39c..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_asset_coverage_type.rs +++ /dev/null @@ -1,20 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BigFishAssetCoverage { - pub level_main_image_ready_count: u32, - pub level_motion_ready_count: u32, - pub background_ready: bool, - pub required_level_count: u32, - pub publish_ready: bool, - pub blockers: Vec, -} - -impl __sdk::InModule for BigFishAssetCoverage { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_asset_generate_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_asset_generate_input_type.rs deleted file mode 100644 index e7589076a..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_asset_generate_input_type.rs +++ /dev/null @@ -1,23 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::big_fish_asset_kind_type::BigFishAssetKind; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BigFishAssetGenerateInput { - pub session_id: String, - pub owner_user_id: String, - pub asset_kind: BigFishAssetKind, - pub level: Option, - pub motion_key: Option, - pub asset_url: Option, - pub generated_at_micros: i64, -} - -impl __sdk::InModule for BigFishAssetGenerateInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_asset_slot_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_asset_slot_snapshot_type.rs deleted file mode 100644 index 200b1a6df..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_asset_slot_snapshot_type.rs +++ /dev/null @@ -1,26 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::big_fish_asset_kind_type::BigFishAssetKind; -use super::big_fish_asset_status_type::BigFishAssetStatus; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BigFishAssetSlotSnapshot { - pub slot_id: String, - pub session_id: String, - pub asset_kind: BigFishAssetKind, - pub level: Option, - pub motion_key: Option, - pub status: BigFishAssetStatus, - pub asset_url: Option, - pub prompt_snapshot: String, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for BigFishAssetSlotSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_background_blueprint_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_background_blueprint_type.rs deleted file mode 100644 index b28e3196a..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_background_blueprint_type.rs +++ /dev/null @@ -1,22 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BigFishBackgroundBlueprint { - pub theme: String, - pub color_mood: String, - pub foreground_hints: String, - pub midground_composition: String, - pub background_depth: String, - pub safe_play_area_hint: String, - pub spawn_edge_hint: String, - pub background_prompt_seed: String, -} - -impl __sdk::InModule for BigFishBackgroundBlueprint { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_draft_compile_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_draft_compile_input_type.rs deleted file mode 100644 index 69076a747..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_draft_compile_input_type.rs +++ /dev/null @@ -1,18 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BigFishDraftCompileInput { - pub session_id: String, - pub owner_user_id: String, - pub draft_json: Option, - pub compiled_at_micros: i64, -} - -impl __sdk::InModule for BigFishDraftCompileInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_gallery_view_table.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_gallery_view_table.rs deleted file mode 100644 index 2d9419c47..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_gallery_view_table.rs +++ /dev/null @@ -1,114 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::big_fish_work_summary_snapshot_type::BigFishWorkSummarySnapshot; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `big_fish_gallery_view`. -/// -/// Obtain a handle from the [`BigFishGalleryViewTableAccess::big_fish_gallery_view`] method on [`super::RemoteTables`], -/// like `ctx.db.big_fish_gallery_view()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.big_fish_gallery_view().on_insert(...)`. -pub struct BigFishGalleryViewTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `big_fish_gallery_view`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait BigFishGalleryViewTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`BigFishGalleryViewTableHandle`], which mediates access to the table `big_fish_gallery_view`. - fn big_fish_gallery_view(&self) -> BigFishGalleryViewTableHandle<'_>; -} - -impl BigFishGalleryViewTableAccess for super::RemoteTables { - fn big_fish_gallery_view(&self) -> BigFishGalleryViewTableHandle<'_> { - BigFishGalleryViewTableHandle { - imp: self - .imp - .get_table::("big_fish_gallery_view"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct BigFishGalleryViewInsertCallbackId(__sdk::CallbackId); -pub struct BigFishGalleryViewDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::Table for BigFishGalleryViewTableHandle<'ctx> { - type Row = BigFishWorkSummarySnapshot; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = BigFishGalleryViewInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> BigFishGalleryViewInsertCallbackId { - BigFishGalleryViewInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: BigFishGalleryViewInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = BigFishGalleryViewDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> BigFishGalleryViewDeleteCallbackId { - BigFishGalleryViewDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: BigFishGalleryViewDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = - client_cache.get_or_make_table::("big_fish_gallery_view"); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `BigFishWorkSummarySnapshot`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait big_fish_gallery_viewQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `BigFishWorkSummarySnapshot`. - fn big_fish_gallery_view(&self) -> __sdk::__query_builder::Table; -} - -impl big_fish_gallery_viewQueryTableAccess for __sdk::QueryTableAccessor { - fn big_fish_gallery_view(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("big_fish_gallery_view") - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_game_draft_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_game_draft_type.rs deleted file mode 100644 index 0c6611765..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_game_draft_type.rs +++ /dev/null @@ -1,25 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::big_fish_background_blueprint_type::BigFishBackgroundBlueprint; -use super::big_fish_level_blueprint_type::BigFishLevelBlueprint; -use super::big_fish_runtime_params_type::BigFishRuntimeParams; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BigFishGameDraft { - pub title: String, - pub subtitle: String, - pub core_fun: String, - pub ecology_theme: String, - pub levels: Vec, - pub background: BigFishBackgroundBlueprint, - pub runtime_params: BigFishRuntimeParams, -} - -impl __sdk::InModule for BigFishGameDraft { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_input_submit_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_input_submit_input_type.rs deleted file mode 100644 index 6792501e6..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_input_submit_input_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BigFishInputSubmitInput { - pub run_id: String, - pub owner_user_id: String, - pub x: f32, - pub y: f32, - pub submitted_at_micros: i64, -} - -impl __sdk::InModule for BigFishInputSubmitInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_level_blueprint_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_level_blueprint_type.rs deleted file mode 100644 index 4bd701914..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_level_blueprint_type.rs +++ /dev/null @@ -1,29 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BigFishLevelBlueprint { - pub level: u32, - pub name: String, - pub one_line_fantasy: String, - pub text_description: String, - pub silhouette_direction: String, - pub size_ratio: f32, - pub visual_description: String, - pub visual_prompt_seed: String, - pub idle_motion_description: String, - pub move_motion_description: String, - pub motion_prompt_seed: String, - pub merge_source_level: Option, - pub prey_window: Vec, - pub threat_window: Vec, - pub is_final_level: bool, -} - -impl __sdk::InModule for BigFishLevelBlueprint { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_message_finalize_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_message_finalize_input_type.rs deleted file mode 100644 index b54c4b6f5..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_message_finalize_input_type.rs +++ /dev/null @@ -1,25 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::big_fish_creation_stage_type::BigFishCreationStage; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BigFishMessageFinalizeInput { - pub session_id: String, - pub owner_user_id: String, - pub assistant_message_id: Option, - pub assistant_reply_text: Option, - pub stage: BigFishCreationStage, - pub progress_percent: u32, - pub anchor_pack_json: String, - pub error_message: Option, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for BigFishMessageFinalizeInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_message_submit_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_message_submit_input_type.rs deleted file mode 100644 index b0e41147d..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_message_submit_input_type.rs +++ /dev/null @@ -1,20 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BigFishMessageSubmitInput { - pub session_id: String, - pub owner_user_id: String, - pub user_message_id: String, - pub user_message_text: String, - pub assistant_message_id: String, - pub submitted_at_micros: i64, -} - -impl __sdk::InModule for BigFishMessageSubmitInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_play_record_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_play_record_input_type.rs deleted file mode 100644 index ac5e37151..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_play_record_input_type.rs +++ /dev/null @@ -1,18 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BigFishPlayRecordInput { - pub session_id: String, - pub user_id: String, - pub elapsed_ms: u64, - pub played_at_micros: i64, -} - -impl __sdk::InModule for BigFishPlayRecordInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_publish_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_publish_input_type.rs deleted file mode 100644 index ec00bf844..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_publish_input_type.rs +++ /dev/null @@ -1,17 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BigFishPublishInput { - pub session_id: String, - pub owner_user_id: String, - pub published_at_micros: i64, -} - -impl __sdk::InModule for BigFishPublishInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_run_get_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_run_get_input_type.rs deleted file mode 100644 index 8e0d0d8dd..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_run_get_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BigFishRunGetInput { - pub run_id: String, - pub owner_user_id: String, -} - -impl __sdk::InModule for BigFishRunGetInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_run_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_run_procedure_result_type.rs deleted file mode 100644 index 86d73fc20..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_run_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::big_fish_runtime_snapshot_type::BigFishRuntimeSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BigFishRunProcedureResult { - pub ok: bool, - pub run: Option, - pub error_message: Option, -} - -impl __sdk::InModule for BigFishRunProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_run_start_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_run_start_input_type.rs deleted file mode 100644 index 944fa6da8..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_run_start_input_type.rs +++ /dev/null @@ -1,18 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BigFishRunStartInput { - pub run_id: String, - pub session_id: String, - pub owner_user_id: String, - pub started_at_micros: i64, -} - -impl __sdk::InModule for BigFishRunStartInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_runtime_entity_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_runtime_entity_snapshot_type.rs deleted file mode 100644 index ce829b70a..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_runtime_entity_snapshot_type.rs +++ /dev/null @@ -1,21 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::big_fish_vector_2_type::BigFishVector2; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BigFishRuntimeEntitySnapshot { - pub entity_id: String, - pub level: u32, - pub position: BigFishVector2, - pub radius: f32, - pub offscreen_seconds: f32, -} - -impl __sdk::InModule for BigFishRuntimeEntitySnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_runtime_params_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_runtime_params_type.rs deleted file mode 100644 index 781173716..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_runtime_params_type.rs +++ /dev/null @@ -1,23 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BigFishRuntimeParams { - pub level_count: u32, - pub merge_count_per_upgrade: u32, - pub spawn_target_count: u32, - pub leader_move_speed: f32, - pub follower_catch_up_speed: f32, - pub offscreen_cull_seconds: f32, - pub prey_spawn_delta_levels: Vec, - pub threat_spawn_delta_levels: Vec, - pub win_level: u32, -} - -impl __sdk::InModule for BigFishRuntimeParams { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_runtime_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_runtime_snapshot_type.rs deleted file mode 100644 index 48f71186e..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_runtime_snapshot_type.rs +++ /dev/null @@ -1,31 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::big_fish_run_status_type::BigFishRunStatus; -use super::big_fish_runtime_entity_snapshot_type::BigFishRuntimeEntitySnapshot; -use super::big_fish_vector_2_type::BigFishVector2; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BigFishRuntimeSnapshot { - pub run_id: String, - pub session_id: String, - pub status: BigFishRunStatus, - pub tick: u64, - pub player_level: u32, - pub win_level: u32, - pub leader_entity_id: Option, - pub owned_entities: Vec, - pub wild_entities: Vec, - pub camera_center: BigFishVector2, - pub last_input: BigFishVector2, - pub event_log: Vec, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for BigFishRuntimeSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_session_create_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_session_create_input_type.rs deleted file mode 100644 index 13533785f..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_session_create_input_type.rs +++ /dev/null @@ -1,20 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BigFishSessionCreateInput { - pub session_id: String, - pub owner_user_id: String, - pub seed_text: String, - pub welcome_message_id: String, - pub welcome_message_text: String, - pub created_at_micros: i64, -} - -impl __sdk::InModule for BigFishSessionCreateInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_session_get_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_session_get_input_type.rs deleted file mode 100644 index 396808f40..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_session_get_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BigFishSessionGetInput { - pub session_id: String, - pub owner_user_id: String, -} - -impl __sdk::InModule for BigFishSessionGetInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_session_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_session_procedure_result_type.rs deleted file mode 100644 index 1f2f7666a..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_session_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::big_fish_session_snapshot_type::BigFishSessionSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BigFishSessionProcedureResult { - pub ok: bool, - pub session: Option, - pub error_message: Option, -} - -impl __sdk::InModule for BigFishSessionProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_session_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_session_snapshot_type.rs deleted file mode 100644 index 11e6a141a..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_session_snapshot_type.rs +++ /dev/null @@ -1,36 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::big_fish_agent_message_snapshot_type::BigFishAgentMessageSnapshot; -use super::big_fish_anchor_pack_type::BigFishAnchorPack; -use super::big_fish_asset_coverage_type::BigFishAssetCoverage; -use super::big_fish_asset_slot_snapshot_type::BigFishAssetSlotSnapshot; -use super::big_fish_creation_stage_type::BigFishCreationStage; -use super::big_fish_game_draft_type::BigFishGameDraft; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BigFishSessionSnapshot { - pub session_id: String, - pub owner_user_id: String, - pub seed_text: String, - pub current_turn: u32, - pub progress_percent: u32, - pub stage: BigFishCreationStage, - pub anchor_pack: BigFishAnchorPack, - pub draft: Option, - pub asset_slots: Vec, - pub asset_coverage: BigFishAssetCoverage, - pub messages: Vec, - pub last_assistant_reply: Option, - pub publish_ready: bool, - pub created_at_micros: i64, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for BigFishSessionSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_vector_2_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_vector_2_type.rs deleted file mode 100644 index 745063ad1..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_vector_2_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BigFishVector2 { - pub x: f32, - pub y: f32, -} - -impl __sdk::InModule for BigFishVector2 { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_work_delete_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_work_delete_input_type.rs deleted file mode 100644 index 3589f8d75..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_work_delete_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BigFishWorkDeleteInput { - pub session_id: String, - pub owner_user_id: String, -} - -impl __sdk::InModule for BigFishWorkDeleteInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_work_like_record_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_work_like_record_input_type.rs deleted file mode 100644 index b48273c92..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_work_like_record_input_type.rs +++ /dev/null @@ -1,17 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BigFishWorkLikeRecordInput { - pub session_id: String, - pub user_id: String, - pub liked_at_micros: i64, -} - -impl __sdk::InModule for BigFishWorkLikeRecordInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_work_remix_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_work_remix_input_type.rs deleted file mode 100644 index dc05718cd..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_work_remix_input_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BigFishWorkRemixInput { - pub source_session_id: String, - pub target_session_id: String, - pub target_owner_user_id: String, - pub welcome_message_id: String, - pub remixed_at_micros: i64, -} - -impl __sdk::InModule for BigFishWorkRemixInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_work_summary_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_work_summary_snapshot_type.rs deleted file mode 100644 index 9bdeeedbc..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_work_summary_snapshot_type.rs +++ /dev/null @@ -1,97 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BigFishWorkSummarySnapshot { - pub work_id: String, - pub source_session_id: String, - pub owner_user_id: String, - pub title: String, - pub subtitle: String, - pub summary: String, - pub cover_image_src: Option, - pub status: String, - pub updated_at_micros: i64, - pub publish_ready: bool, - pub level_count: u32, - pub level_main_image_ready_count: u32, - pub level_motion_ready_count: u32, - pub background_ready: bool, - pub play_count: u32, - pub remix_count: u32, - pub like_count: u32, - pub recent_play_count_7_d: u32, - pub published_at_micros: Option, -} - -impl __sdk::InModule for BigFishWorkSummarySnapshot { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `BigFishWorkSummarySnapshot`. -/// -/// Provides typed access to columns for query building. -pub struct BigFishWorkSummarySnapshotCols { - pub work_id: __sdk::__query_builder::Col, - pub source_session_id: __sdk::__query_builder::Col, - pub owner_user_id: __sdk::__query_builder::Col, - pub title: __sdk::__query_builder::Col, - pub subtitle: __sdk::__query_builder::Col, - pub summary: __sdk::__query_builder::Col, - pub cover_image_src: __sdk::__query_builder::Col>, - pub status: __sdk::__query_builder::Col, - pub updated_at_micros: __sdk::__query_builder::Col, - pub publish_ready: __sdk::__query_builder::Col, - pub level_count: __sdk::__query_builder::Col, - pub level_main_image_ready_count: __sdk::__query_builder::Col, - pub level_motion_ready_count: __sdk::__query_builder::Col, - pub background_ready: __sdk::__query_builder::Col, - pub play_count: __sdk::__query_builder::Col, - pub remix_count: __sdk::__query_builder::Col, - pub like_count: __sdk::__query_builder::Col, - pub recent_play_count_7_d: __sdk::__query_builder::Col, - pub published_at_micros: __sdk::__query_builder::Col>, -} - -impl __sdk::__query_builder::HasCols for BigFishWorkSummarySnapshot { - type Cols = BigFishWorkSummarySnapshotCols; - fn cols(table_name: &'static str) -> Self::Cols { - BigFishWorkSummarySnapshotCols { - work_id: __sdk::__query_builder::Col::new(table_name, "work_id"), - source_session_id: __sdk::__query_builder::Col::new(table_name, "source_session_id"), - owner_user_id: __sdk::__query_builder::Col::new(table_name, "owner_user_id"), - title: __sdk::__query_builder::Col::new(table_name, "title"), - subtitle: __sdk::__query_builder::Col::new(table_name, "subtitle"), - summary: __sdk::__query_builder::Col::new(table_name, "summary"), - cover_image_src: __sdk::__query_builder::Col::new(table_name, "cover_image_src"), - status: __sdk::__query_builder::Col::new(table_name, "status"), - updated_at_micros: __sdk::__query_builder::Col::new(table_name, "updated_at_micros"), - publish_ready: __sdk::__query_builder::Col::new(table_name, "publish_ready"), - level_count: __sdk::__query_builder::Col::new(table_name, "level_count"), - level_main_image_ready_count: __sdk::__query_builder::Col::new( - table_name, - "level_main_image_ready_count", - ), - level_motion_ready_count: __sdk::__query_builder::Col::new( - table_name, - "level_motion_ready_count", - ), - background_ready: __sdk::__query_builder::Col::new(table_name, "background_ready"), - play_count: __sdk::__query_builder::Col::new(table_name, "play_count"), - remix_count: __sdk::__query_builder::Col::new(table_name, "remix_count"), - like_count: __sdk::__query_builder::Col::new(table_name, "like_count"), - recent_play_count_7_d: __sdk::__query_builder::Col::new( - table_name, - "recent_play_count_7_d", - ), - published_at_micros: __sdk::__query_builder::Col::new( - table_name, - "published_at_micros", - ), - } - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_works_list_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_works_list_input_type.rs deleted file mode 100644 index 9b23133a8..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_works_list_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BigFishWorksListInput { - pub owner_user_id: String, - pub published_only: bool, -} - -impl __sdk::InModule for BigFishWorksListInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_works_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_works_procedure_result_type.rs deleted file mode 100644 index ea3cac68b..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_works_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::big_fish_work_summary_snapshot_type::BigFishWorkSummarySnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct BigFishWorksProcedureResult { - pub ok: bool, - pub items: Vec, - pub error_message: Option, -} - -impl __sdk::InModule for BigFishWorksProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/chapter_progression_get_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/chapter_progression_get_input_type.rs deleted file mode 100644 index 927a4b047..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/chapter_progression_get_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct ChapterProgressionGetInput { - pub user_id: String, - pub chapter_id: String, -} - -impl __sdk::InModule for ChapterProgressionGetInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/chapter_progression_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/chapter_progression_input_type.rs deleted file mode 100644 index dae51fa03..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/chapter_progression_input_type.rs +++ /dev/null @@ -1,31 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::chapter_pace_band_type::ChapterPaceBand; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct ChapterProgressionInput { - pub user_id: String, - pub chapter_id: String, - pub chapter_index: u32, - pub total_chapters: u32, - pub entry_pseudo_level_millis: u32, - pub exit_pseudo_level_millis: u32, - pub entry_level: u32, - pub exit_level: u32, - pub planned_total_xp: u32, - pub planned_quest_xp: u32, - pub planned_hostile_xp: u32, - pub expected_hostile_defeat_count: u32, - pub level_at_entry: u32, - pub pace_band: ChapterPaceBand, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for ChapterProgressionInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/chapter_progression_ledger_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/chapter_progression_ledger_input_type.rs deleted file mode 100644 index a599ffc94..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/chapter_progression_ledger_input_type.rs +++ /dev/null @@ -1,21 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct ChapterProgressionLedgerInput { - pub user_id: String, - pub chapter_id: String, - pub granted_quest_xp: u32, - pub granted_hostile_xp: u32, - pub hostile_defeat_increment: u32, - pub level_at_exit: Option, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for ChapterProgressionLedgerInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/chapter_progression_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/chapter_progression_procedure_result_type.rs deleted file mode 100644 index 276b3a264..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/chapter_progression_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::chapter_progression_snapshot_type::ChapterProgressionSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct ChapterProgressionProcedureResult { - pub ok: bool, - pub record: Option, - pub error_message: Option, -} - -impl __sdk::InModule for ChapterProgressionProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/chapter_progression_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/chapter_progression_snapshot_type.rs deleted file mode 100644 index e1fde7fed..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/chapter_progression_snapshot_type.rs +++ /dev/null @@ -1,36 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::chapter_pace_band_type::ChapterPaceBand; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct ChapterProgressionSnapshot { - pub user_id: String, - pub chapter_id: String, - pub chapter_index: u32, - pub total_chapters: u32, - pub entry_pseudo_level_millis: u32, - pub exit_pseudo_level_millis: u32, - pub entry_level: u32, - pub exit_level: u32, - pub planned_total_xp: u32, - pub planned_quest_xp: u32, - pub planned_hostile_xp: u32, - pub actual_quest_xp: u32, - pub actual_hostile_xp: u32, - pub expected_hostile_defeat_count: u32, - pub actual_hostile_defeat_count: u32, - pub level_at_entry: u32, - pub level_at_exit: Option, - pub pace_band: ChapterPaceBand, - pub created_at_micros: i64, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for ChapterProgressionSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/checkpoint_wooden_fish_run_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/checkpoint_wooden_fish_run_procedure.rs deleted file mode 100644 index 51aa864f5..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/checkpoint_wooden_fish_run_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::wooden_fish_run_checkpoint_input_type::WoodenFishRunCheckpointInput; -use super::wooden_fish_run_procedure_result_type::WoodenFishRunProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct CheckpointWoodenFishRunArgs { - pub input: WoodenFishRunCheckpointInput, -} - -impl __sdk::InModule for CheckpointWoodenFishRunArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `checkpoint_wooden_fish_run`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait checkpoint_wooden_fish_run { - fn checkpoint_wooden_fish_run(&self, input: WoodenFishRunCheckpointInput) { - self.checkpoint_wooden_fish_run_then(input, |_, _| {}); - } - - fn checkpoint_wooden_fish_run_then( - &self, - input: WoodenFishRunCheckpointInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl checkpoint_wooden_fish_run for super::RemoteProcedures { - fn checkpoint_wooden_fish_run_then( - &self, - input: WoodenFishRunCheckpointInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, WoodenFishRunProcedureResult>( - "checkpoint_wooden_fish_run", - CheckpointWoodenFishRunArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/claim_puzzle_background_compile_task_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/claim_puzzle_background_compile_task_procedure.rs deleted file mode 100644 index 45b9de6db..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/claim_puzzle_background_compile_task_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_background_compile_task_claim_input_type::PuzzleBackgroundCompileTaskClaimInput; -use super::puzzle_background_compile_task_procedure_result_type::PuzzleBackgroundCompileTaskProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct ClaimPuzzleBackgroundCompileTaskArgs { - pub input: PuzzleBackgroundCompileTaskClaimInput, -} - -impl __sdk::InModule for ClaimPuzzleBackgroundCompileTaskArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `claim_puzzle_background_compile_task`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait claim_puzzle_background_compile_task { - fn claim_puzzle_background_compile_task(&self, input: PuzzleBackgroundCompileTaskClaimInput) { - self.claim_puzzle_background_compile_task_then(input, |_, _| {}); - } - - fn claim_puzzle_background_compile_task_then( - &self, - input: PuzzleBackgroundCompileTaskClaimInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl claim_puzzle_background_compile_task for super::RemoteProcedures { - fn claim_puzzle_background_compile_task_then( - &self, - input: PuzzleBackgroundCompileTaskClaimInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleBackgroundCompileTaskProcedureResult>( - "claim_puzzle_background_compile_task", - ClaimPuzzleBackgroundCompileTaskArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/claim_puzzle_work_point_incentive_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/claim_puzzle_work_point_incentive_procedure.rs deleted file mode 100644 index f7ac8d756..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/claim_puzzle_work_point_incentive_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_work_point_incentive_claim_input_type::PuzzleWorkPointIncentiveClaimInput; -use super::puzzle_work_procedure_result_type::PuzzleWorkProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct ClaimPuzzleWorkPointIncentiveArgs { - pub input: PuzzleWorkPointIncentiveClaimInput, -} - -impl __sdk::InModule for ClaimPuzzleWorkPointIncentiveArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `claim_puzzle_work_point_incentive`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait claim_puzzle_work_point_incentive { - fn claim_puzzle_work_point_incentive(&self, input: PuzzleWorkPointIncentiveClaimInput) { - self.claim_puzzle_work_point_incentive_then(input, |_, _| {}); - } - - fn claim_puzzle_work_point_incentive_then( - &self, - input: PuzzleWorkPointIncentiveClaimInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl claim_puzzle_work_point_incentive for super::RemoteProcedures { - fn claim_puzzle_work_point_incentive_then( - &self, - input: PuzzleWorkPointIncentiveClaimInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleWorkProcedureResult>( - "claim_puzzle_work_point_incentive", - ClaimPuzzleWorkPointIncentiveArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/clear_platform_browse_history_and_return_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/clear_platform_browse_history_and_return_procedure.rs deleted file mode 100644 index 2e6238453..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/clear_platform_browse_history_and_return_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::runtime_browse_history_clear_input_type::RuntimeBrowseHistoryClearInput; -use super::runtime_browse_history_procedure_result_type::RuntimeBrowseHistoryProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct ClearPlatformBrowseHistoryAndReturnArgs { - pub input: RuntimeBrowseHistoryClearInput, -} - -impl __sdk::InModule for ClearPlatformBrowseHistoryAndReturnArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `clear_platform_browse_history_and_return`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait clear_platform_browse_history_and_return { - fn clear_platform_browse_history_and_return(&self, input: RuntimeBrowseHistoryClearInput) { - self.clear_platform_browse_history_and_return_then(input, |_, _| {}); - } - - fn clear_platform_browse_history_and_return_then( - &self, - input: RuntimeBrowseHistoryClearInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl clear_platform_browse_history_and_return for super::RemoteProcedures { - fn clear_platform_browse_history_and_return_then( - &self, - input: RuntimeBrowseHistoryClearInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, RuntimeBrowseHistoryProcedureResult>( - "clear_platform_browse_history_and_return", - ClearPlatformBrowseHistoryAndReturnArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/click_match_3_d_item_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/click_match_3_d_item_procedure.rs deleted file mode 100644 index 6070a62d8..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/click_match_3_d_item_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::match_3_d_click_item_procedure_result_type::Match3DClickItemProcedureResult; -use super::match_3_d_run_click_input_type::Match3DRunClickInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct ClickMatch3DItemArgs { - pub input: Match3DRunClickInput, -} - -impl __sdk::InModule for ClickMatch3DItemArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `click_match_3_d_item`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait click_match_3_d_item { - fn click_match_3_d_item(&self, input: Match3DRunClickInput) { - self.click_match_3_d_item_then(input, |_, _| {}); - } - - fn click_match_3_d_item_then( - &self, - input: Match3DRunClickInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl click_match_3_d_item for super::RemoteProcedures { - fn click_match_3_d_item_then( - &self, - input: Match3DRunClickInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, Match3DClickItemProcedureResult>( - "click_match_3_d_item", - ClickMatch3DItemArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/compile_big_fish_draft_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/compile_big_fish_draft_procedure.rs deleted file mode 100644 index 6eea6571a..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/compile_big_fish_draft_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::big_fish_draft_compile_input_type::BigFishDraftCompileInput; -use super::big_fish_session_procedure_result_type::BigFishSessionProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct CompileBigFishDraftArgs { - pub input: BigFishDraftCompileInput, -} - -impl __sdk::InModule for CompileBigFishDraftArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `compile_big_fish_draft`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait compile_big_fish_draft { - fn compile_big_fish_draft(&self, input: BigFishDraftCompileInput) { - self.compile_big_fish_draft_then(input, |_, _| {}); - } - - fn compile_big_fish_draft_then( - &self, - input: BigFishDraftCompileInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl compile_big_fish_draft for super::RemoteProcedures { - fn compile_big_fish_draft_then( - &self, - input: BigFishDraftCompileInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, BigFishSessionProcedureResult>( - "compile_big_fish_draft", - CompileBigFishDraftArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/compile_custom_world_published_profile_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/compile_custom_world_published_profile_procedure.rs deleted file mode 100644 index aefbe6029..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/compile_custom_world_published_profile_procedure.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_published_profile_compile_input_type::CustomWorldPublishedProfileCompileInput; -use super::custom_world_published_profile_compile_result_type::CustomWorldPublishedProfileCompileResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct CompileCustomWorldPublishedProfileArgs { - pub input: CustomWorldPublishedProfileCompileInput, -} - -impl __sdk::InModule for CompileCustomWorldPublishedProfileArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `compile_custom_world_published_profile`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait compile_custom_world_published_profile { - fn compile_custom_world_published_profile( - &self, - input: CustomWorldPublishedProfileCompileInput, - ) { - self.compile_custom_world_published_profile_then(input, |_, _| {}); - } - - fn compile_custom_world_published_profile_then( - &self, - input: CustomWorldPublishedProfileCompileInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl compile_custom_world_published_profile for super::RemoteProcedures { - fn compile_custom_world_published_profile_then( - &self, - input: CustomWorldPublishedProfileCompileInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, CustomWorldPublishedProfileCompileResult>( - "compile_custom_world_published_profile", - CompileCustomWorldPublishedProfileArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/compile_jump_hop_draft_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/compile_jump_hop_draft_procedure.rs deleted file mode 100644 index fe89daba5..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/compile_jump_hop_draft_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::jump_hop_agent_session_procedure_result_type::JumpHopAgentSessionProcedureResult; -use super::jump_hop_draft_compile_input_type::JumpHopDraftCompileInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct CompileJumpHopDraftArgs { - pub input: JumpHopDraftCompileInput, -} - -impl __sdk::InModule for CompileJumpHopDraftArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `compile_jump_hop_draft`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait compile_jump_hop_draft { - fn compile_jump_hop_draft(&self, input: JumpHopDraftCompileInput) { - self.compile_jump_hop_draft_then(input, |_, _| {}); - } - - fn compile_jump_hop_draft_then( - &self, - input: JumpHopDraftCompileInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl compile_jump_hop_draft for super::RemoteProcedures { - fn compile_jump_hop_draft_then( - &self, - input: JumpHopDraftCompileInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, JumpHopAgentSessionProcedureResult>( - "compile_jump_hop_draft", - CompileJumpHopDraftArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/compile_match_3_d_draft_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/compile_match_3_d_draft_procedure.rs deleted file mode 100644 index d6db07879..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/compile_match_3_d_draft_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::match_3_d_agent_session_procedure_result_type::Match3DAgentSessionProcedureResult; -use super::match_3_d_draft_compile_input_type::Match3DDraftCompileInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct CompileMatch3DDraftArgs { - pub input: Match3DDraftCompileInput, -} - -impl __sdk::InModule for CompileMatch3DDraftArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `compile_match_3_d_draft`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait compile_match_3_d_draft { - fn compile_match_3_d_draft(&self, input: Match3DDraftCompileInput) { - self.compile_match_3_d_draft_then(input, |_, _| {}); - } - - fn compile_match_3_d_draft_then( - &self, - input: Match3DDraftCompileInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl compile_match_3_d_draft for super::RemoteProcedures { - fn compile_match_3_d_draft_then( - &self, - input: Match3DDraftCompileInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, Match3DAgentSessionProcedureResult>( - "compile_match_3_d_draft", - CompileMatch3DDraftArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/compile_puzzle_agent_draft_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/compile_puzzle_agent_draft_procedure.rs deleted file mode 100644 index 7badcdaea..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/compile_puzzle_agent_draft_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_agent_session_procedure_result_type::PuzzleAgentSessionProcedureResult; -use super::puzzle_draft_compile_input_type::PuzzleDraftCompileInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct CompilePuzzleAgentDraftArgs { - pub input: PuzzleDraftCompileInput, -} - -impl __sdk::InModule for CompilePuzzleAgentDraftArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `compile_puzzle_agent_draft`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait compile_puzzle_agent_draft { - fn compile_puzzle_agent_draft(&self, input: PuzzleDraftCompileInput) { - self.compile_puzzle_agent_draft_then(input, |_, _| {}); - } - - fn compile_puzzle_agent_draft_then( - &self, - input: PuzzleDraftCompileInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl compile_puzzle_agent_draft for super::RemoteProcedures { - fn compile_puzzle_agent_draft_then( - &self, - input: PuzzleDraftCompileInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleAgentSessionProcedureResult>( - "compile_puzzle_agent_draft", - CompilePuzzleAgentDraftArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/compile_puzzle_clear_draft_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/compile_puzzle_clear_draft_procedure.rs deleted file mode 100644 index ca73cd1ee..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/compile_puzzle_clear_draft_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_clear_agent_session_procedure_result_type::PuzzleClearAgentSessionProcedureResult; -use super::puzzle_clear_draft_compile_input_type::PuzzleClearDraftCompileInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct CompilePuzzleClearDraftArgs { - pub input: PuzzleClearDraftCompileInput, -} - -impl __sdk::InModule for CompilePuzzleClearDraftArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `compile_puzzle_clear_draft`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait compile_puzzle_clear_draft { - fn compile_puzzle_clear_draft(&self, input: PuzzleClearDraftCompileInput) { - self.compile_puzzle_clear_draft_then(input, |_, _| {}); - } - - fn compile_puzzle_clear_draft_then( - &self, - input: PuzzleClearDraftCompileInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl compile_puzzle_clear_draft for super::RemoteProcedures { - fn compile_puzzle_clear_draft_then( - &self, - input: PuzzleClearDraftCompileInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleClearAgentSessionProcedureResult>( - "compile_puzzle_clear_draft", - CompilePuzzleClearDraftArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/compile_square_hole_draft_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/compile_square_hole_draft_procedure.rs deleted file mode 100644 index ee6766b0b..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/compile_square_hole_draft_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::square_hole_agent_session_procedure_result_type::SquareHoleAgentSessionProcedureResult; -use super::square_hole_draft_compile_input_type::SquareHoleDraftCompileInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct CompileSquareHoleDraftArgs { - pub input: SquareHoleDraftCompileInput, -} - -impl __sdk::InModule for CompileSquareHoleDraftArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `compile_square_hole_draft`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait compile_square_hole_draft { - fn compile_square_hole_draft(&self, input: SquareHoleDraftCompileInput) { - self.compile_square_hole_draft_then(input, |_, _| {}); - } - - fn compile_square_hole_draft_then( - &self, - input: SquareHoleDraftCompileInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl compile_square_hole_draft for super::RemoteProcedures { - fn compile_square_hole_draft_then( - &self, - input: SquareHoleDraftCompileInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, SquareHoleAgentSessionProcedureResult>( - "compile_square_hole_draft", - CompileSquareHoleDraftArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/compile_visual_novel_work_profile_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/compile_visual_novel_work_profile_procedure.rs deleted file mode 100644 index 457f98095..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/compile_visual_novel_work_profile_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::visual_novel_agent_session_procedure_result_type::VisualNovelAgentSessionProcedureResult; -use super::visual_novel_work_compile_input_type::VisualNovelWorkCompileInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct CompileVisualNovelWorkProfileArgs { - pub input: VisualNovelWorkCompileInput, -} - -impl __sdk::InModule for CompileVisualNovelWorkProfileArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `compile_visual_novel_work_profile`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait compile_visual_novel_work_profile { - fn compile_visual_novel_work_profile(&self, input: VisualNovelWorkCompileInput) { - self.compile_visual_novel_work_profile_then(input, |_, _| {}); - } - - fn compile_visual_novel_work_profile_then( - &self, - input: VisualNovelWorkCompileInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl compile_visual_novel_work_profile for super::RemoteProcedures { - fn compile_visual_novel_work_profile_then( - &self, - input: VisualNovelWorkCompileInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, VisualNovelAgentSessionProcedureResult>( - "compile_visual_novel_work_profile", - CompileVisualNovelWorkProfileArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/compile_wooden_fish_draft_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/compile_wooden_fish_draft_procedure.rs deleted file mode 100644 index 99e98ca89..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/compile_wooden_fish_draft_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::wooden_fish_agent_session_procedure_result_type::WoodenFishAgentSessionProcedureResult; -use super::wooden_fish_draft_compile_input_type::WoodenFishDraftCompileInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct CompileWoodenFishDraftArgs { - pub input: WoodenFishDraftCompileInput, -} - -impl __sdk::InModule for CompileWoodenFishDraftArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `compile_wooden_fish_draft`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait compile_wooden_fish_draft { - fn compile_wooden_fish_draft(&self, input: WoodenFishDraftCompileInput) { - self.compile_wooden_fish_draft_then(input, |_, _| {}); - } - - fn compile_wooden_fish_draft_then( - &self, - input: WoodenFishDraftCompileInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl compile_wooden_fish_draft for super::RemoteProcedures { - fn compile_wooden_fish_draft_then( - &self, - input: WoodenFishDraftCompileInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, WoodenFishAgentSessionProcedureResult>( - "compile_wooden_fish_draft", - CompileWoodenFishDraftArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/consume_inventory_item_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/consume_inventory_item_input_type.rs deleted file mode 100644 index 0e867e214..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/consume_inventory_item_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct ConsumeInventoryItemInput { - pub slot_id: String, - pub quantity: u32, -} - -impl __sdk::InModule for ConsumeInventoryItemInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/continue_story_and_return_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/continue_story_and_return_procedure.rs deleted file mode 100644 index 0d58ec1b8..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/continue_story_and_return_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::story_continue_input_type::StoryContinueInput; -use super::story_session_procedure_result_type::StorySessionProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct ContinueStoryAndReturnArgs { - pub input: StoryContinueInput, -} - -impl __sdk::InModule for ContinueStoryAndReturnArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `continue_story_and_return`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait continue_story_and_return { - fn continue_story_and_return(&self, input: StoryContinueInput) { - self.continue_story_and_return_then(input, |_, _| {}); - } - - fn continue_story_and_return_then( - &self, - input: StoryContinueInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl continue_story_and_return for super::RemoteProcedures { - fn continue_story_and_return_then( - &self, - input: StoryContinueInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, StorySessionProcedureResult>( - "continue_story_and_return", - ContinueStoryAndReturnArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/continue_story_reducer.rs b/server-rs/crates/spacetime-client/src/module_bindings/continue_story_reducer.rs deleted file mode 100644 index 4117cfae5..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/continue_story_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::story_continue_input_type::StoryContinueInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct ContinueStoryArgs { - pub input: StoryContinueInput, -} - -impl From for super::Reducer { - fn from(args: ContinueStoryArgs) -> Self { - Self::ContinueStory { input: args.input } - } -} - -impl __sdk::InModule for ContinueStoryArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `continue_story`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait continue_story { - /// Request that the remote module invoke the reducer `continue_story` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`continue_story:continue_story_then`] to run a callback after the reducer completes. - fn continue_story(&self, input: StoryContinueInput) -> __sdk::Result<()> { - self.continue_story_then(input, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `continue_story` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn continue_story_then( - &self, - input: StoryContinueInput, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl continue_story for super::RemoteReducers { - fn continue_story_then( - &self, - input: StoryContinueInput, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(ContinueStoryArgs { input }, callback) - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/create_bark_battle_draft_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/create_bark_battle_draft_procedure.rs deleted file mode 100644 index dbc6f3174..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/create_bark_battle_draft_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::bark_battle_draft_create_input_type::BarkBattleDraftCreateInput; -use super::bark_battle_procedure_result_type::BarkBattleProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct CreateBarkBattleDraftArgs { - pub input: BarkBattleDraftCreateInput, -} - -impl __sdk::InModule for CreateBarkBattleDraftArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `create_bark_battle_draft`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait create_bark_battle_draft { - fn create_bark_battle_draft(&self, input: BarkBattleDraftCreateInput) { - self.create_bark_battle_draft_then(input, |_, _| {}); - } - - fn create_bark_battle_draft_then( - &self, - input: BarkBattleDraftCreateInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl create_bark_battle_draft for super::RemoteProcedures { - fn create_bark_battle_draft_then( - &self, - input: BarkBattleDraftCreateInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, BarkBattleProcedureResult>( - "create_bark_battle_draft", - CreateBarkBattleDraftArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/create_battle_state_and_return_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/create_battle_state_and_return_procedure.rs deleted file mode 100644 index ef11107a8..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/create_battle_state_and_return_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::battle_state_input_type::BattleStateInput; -use super::battle_state_procedure_result_type::BattleStateProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct CreateBattleStateAndReturnArgs { - pub input: BattleStateInput, -} - -impl __sdk::InModule for CreateBattleStateAndReturnArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `create_battle_state_and_return`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait create_battle_state_and_return { - fn create_battle_state_and_return(&self, input: BattleStateInput) { - self.create_battle_state_and_return_then(input, |_, _| {}); - } - - fn create_battle_state_and_return_then( - &self, - input: BattleStateInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl create_battle_state_and_return for super::RemoteProcedures { - fn create_battle_state_and_return_then( - &self, - input: BattleStateInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, BattleStateProcedureResult>( - "create_battle_state_and_return", - CreateBattleStateAndReturnArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/create_battle_state_reducer.rs b/server-rs/crates/spacetime-client/src/module_bindings/create_battle_state_reducer.rs deleted file mode 100644 index 1072f8a53..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/create_battle_state_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::battle_state_input_type::BattleStateInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct CreateBattleStateArgs { - pub input: BattleStateInput, -} - -impl From for super::Reducer { - fn from(args: CreateBattleStateArgs) -> Self { - Self::CreateBattleState { input: args.input } - } -} - -impl __sdk::InModule for CreateBattleStateArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `create_battle_state`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait create_battle_state { - /// Request that the remote module invoke the reducer `create_battle_state` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`create_battle_state:create_battle_state_then`] to run a callback after the reducer completes. - fn create_battle_state(&self, input: BattleStateInput) -> __sdk::Result<()> { - self.create_battle_state_then(input, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `create_battle_state` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn create_battle_state_then( - &self, - input: BattleStateInput, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl create_battle_state for super::RemoteReducers { - fn create_battle_state_then( - &self, - input: BattleStateInput, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(CreateBattleStateArgs { input }, callback) - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/create_big_fish_session_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/create_big_fish_session_procedure.rs deleted file mode 100644 index bc67436e1..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/create_big_fish_session_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::big_fish_session_create_input_type::BigFishSessionCreateInput; -use super::big_fish_session_procedure_result_type::BigFishSessionProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct CreateBigFishSessionArgs { - pub input: BigFishSessionCreateInput, -} - -impl __sdk::InModule for CreateBigFishSessionArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `create_big_fish_session`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait create_big_fish_session { - fn create_big_fish_session(&self, input: BigFishSessionCreateInput) { - self.create_big_fish_session_then(input, |_, _| {}); - } - - fn create_big_fish_session_then( - &self, - input: BigFishSessionCreateInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl create_big_fish_session for super::RemoteProcedures { - fn create_big_fish_session_then( - &self, - input: BigFishSessionCreateInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, BigFishSessionProcedureResult>( - "create_big_fish_session", - CreateBigFishSessionArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/create_custom_world_agent_session_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/create_custom_world_agent_session_procedure.rs deleted file mode 100644 index 6a08bcc7a..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/create_custom_world_agent_session_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_agent_session_create_input_type::CustomWorldAgentSessionCreateInput; -use super::custom_world_agent_session_procedure_result_type::CustomWorldAgentSessionProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct CreateCustomWorldAgentSessionArgs { - pub input: CustomWorldAgentSessionCreateInput, -} - -impl __sdk::InModule for CreateCustomWorldAgentSessionArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `create_custom_world_agent_session`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait create_custom_world_agent_session { - fn create_custom_world_agent_session(&self, input: CustomWorldAgentSessionCreateInput) { - self.create_custom_world_agent_session_then(input, |_, _| {}); - } - - fn create_custom_world_agent_session_then( - &self, - input: CustomWorldAgentSessionCreateInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl create_custom_world_agent_session for super::RemoteProcedures { - fn create_custom_world_agent_session_then( - &self, - input: CustomWorldAgentSessionCreateInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, CustomWorldAgentSessionProcedureResult>( - "create_custom_world_agent_session", - CreateCustomWorldAgentSessionArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/create_jump_hop_agent_session_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/create_jump_hop_agent_session_procedure.rs deleted file mode 100644 index e4eeb9047..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/create_jump_hop_agent_session_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::jump_hop_agent_session_create_input_type::JumpHopAgentSessionCreateInput; -use super::jump_hop_agent_session_procedure_result_type::JumpHopAgentSessionProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct CreateJumpHopAgentSessionArgs { - pub input: JumpHopAgentSessionCreateInput, -} - -impl __sdk::InModule for CreateJumpHopAgentSessionArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `create_jump_hop_agent_session`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait create_jump_hop_agent_session { - fn create_jump_hop_agent_session(&self, input: JumpHopAgentSessionCreateInput) { - self.create_jump_hop_agent_session_then(input, |_, _| {}); - } - - fn create_jump_hop_agent_session_then( - &self, - input: JumpHopAgentSessionCreateInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl create_jump_hop_agent_session for super::RemoteProcedures { - fn create_jump_hop_agent_session_then( - &self, - input: JumpHopAgentSessionCreateInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, JumpHopAgentSessionProcedureResult>( - "create_jump_hop_agent_session", - CreateJumpHopAgentSessionArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/create_match_3_d_agent_session_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/create_match_3_d_agent_session_procedure.rs deleted file mode 100644 index c482c9c6b..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/create_match_3_d_agent_session_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::match_3_d_agent_session_create_input_type::Match3DAgentSessionCreateInput; -use super::match_3_d_agent_session_procedure_result_type::Match3DAgentSessionProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct CreateMatch3DAgentSessionArgs { - pub input: Match3DAgentSessionCreateInput, -} - -impl __sdk::InModule for CreateMatch3DAgentSessionArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `create_match_3_d_agent_session`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait create_match_3_d_agent_session { - fn create_match_3_d_agent_session(&self, input: Match3DAgentSessionCreateInput) { - self.create_match_3_d_agent_session_then(input, |_, _| {}); - } - - fn create_match_3_d_agent_session_then( - &self, - input: Match3DAgentSessionCreateInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl create_match_3_d_agent_session for super::RemoteProcedures { - fn create_match_3_d_agent_session_then( - &self, - input: Match3DAgentSessionCreateInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, Match3DAgentSessionProcedureResult>( - "create_match_3_d_agent_session", - CreateMatch3DAgentSessionArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/create_puzzle_agent_session_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/create_puzzle_agent_session_procedure.rs deleted file mode 100644 index 9460692b7..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/create_puzzle_agent_session_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_agent_session_create_input_type::PuzzleAgentSessionCreateInput; -use super::puzzle_agent_session_procedure_result_type::PuzzleAgentSessionProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct CreatePuzzleAgentSessionArgs { - pub input: PuzzleAgentSessionCreateInput, -} - -impl __sdk::InModule for CreatePuzzleAgentSessionArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `create_puzzle_agent_session`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait create_puzzle_agent_session { - fn create_puzzle_agent_session(&self, input: PuzzleAgentSessionCreateInput) { - self.create_puzzle_agent_session_then(input, |_, _| {}); - } - - fn create_puzzle_agent_session_then( - &self, - input: PuzzleAgentSessionCreateInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl create_puzzle_agent_session for super::RemoteProcedures { - fn create_puzzle_agent_session_then( - &self, - input: PuzzleAgentSessionCreateInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleAgentSessionProcedureResult>( - "create_puzzle_agent_session", - CreatePuzzleAgentSessionArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/create_puzzle_clear_agent_session_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/create_puzzle_clear_agent_session_procedure.rs deleted file mode 100644 index 382822ef4..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/create_puzzle_clear_agent_session_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_clear_agent_session_create_input_type::PuzzleClearAgentSessionCreateInput; -use super::puzzle_clear_agent_session_procedure_result_type::PuzzleClearAgentSessionProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct CreatePuzzleClearAgentSessionArgs { - pub input: PuzzleClearAgentSessionCreateInput, -} - -impl __sdk::InModule for CreatePuzzleClearAgentSessionArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `create_puzzle_clear_agent_session`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait create_puzzle_clear_agent_session { - fn create_puzzle_clear_agent_session(&self, input: PuzzleClearAgentSessionCreateInput) { - self.create_puzzle_clear_agent_session_then(input, |_, _| {}); - } - - fn create_puzzle_clear_agent_session_then( - &self, - input: PuzzleClearAgentSessionCreateInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl create_puzzle_clear_agent_session for super::RemoteProcedures { - fn create_puzzle_clear_agent_session_then( - &self, - input: PuzzleClearAgentSessionCreateInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleClearAgentSessionProcedureResult>( - "create_puzzle_clear_agent_session", - CreatePuzzleClearAgentSessionArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/create_square_hole_agent_session_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/create_square_hole_agent_session_procedure.rs deleted file mode 100644 index cd5403a59..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/create_square_hole_agent_session_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::square_hole_agent_session_create_input_type::SquareHoleAgentSessionCreateInput; -use super::square_hole_agent_session_procedure_result_type::SquareHoleAgentSessionProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct CreateSquareHoleAgentSessionArgs { - pub input: SquareHoleAgentSessionCreateInput, -} - -impl __sdk::InModule for CreateSquareHoleAgentSessionArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `create_square_hole_agent_session`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait create_square_hole_agent_session { - fn create_square_hole_agent_session(&self, input: SquareHoleAgentSessionCreateInput) { - self.create_square_hole_agent_session_then(input, |_, _| {}); - } - - fn create_square_hole_agent_session_then( - &self, - input: SquareHoleAgentSessionCreateInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl create_square_hole_agent_session for super::RemoteProcedures { - fn create_square_hole_agent_session_then( - &self, - input: SquareHoleAgentSessionCreateInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, SquareHoleAgentSessionProcedureResult>( - "create_square_hole_agent_session", - CreateSquareHoleAgentSessionArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/create_visual_novel_agent_session_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/create_visual_novel_agent_session_procedure.rs deleted file mode 100644 index ef82cfc18..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/create_visual_novel_agent_session_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::visual_novel_agent_session_create_input_type::VisualNovelAgentSessionCreateInput; -use super::visual_novel_agent_session_procedure_result_type::VisualNovelAgentSessionProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct CreateVisualNovelAgentSessionArgs { - pub input: VisualNovelAgentSessionCreateInput, -} - -impl __sdk::InModule for CreateVisualNovelAgentSessionArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `create_visual_novel_agent_session`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait create_visual_novel_agent_session { - fn create_visual_novel_agent_session(&self, input: VisualNovelAgentSessionCreateInput) { - self.create_visual_novel_agent_session_then(input, |_, _| {}); - } - - fn create_visual_novel_agent_session_then( - &self, - input: VisualNovelAgentSessionCreateInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl create_visual_novel_agent_session for super::RemoteProcedures { - fn create_visual_novel_agent_session_then( - &self, - input: VisualNovelAgentSessionCreateInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, VisualNovelAgentSessionProcedureResult>( - "create_visual_novel_agent_session", - CreateVisualNovelAgentSessionArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/create_wooden_fish_agent_session_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/create_wooden_fish_agent_session_procedure.rs deleted file mode 100644 index aabcde5c6..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/create_wooden_fish_agent_session_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::wooden_fish_agent_session_create_input_type::WoodenFishAgentSessionCreateInput; -use super::wooden_fish_agent_session_procedure_result_type::WoodenFishAgentSessionProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct CreateWoodenFishAgentSessionArgs { - pub input: WoodenFishAgentSessionCreateInput, -} - -impl __sdk::InModule for CreateWoodenFishAgentSessionArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `create_wooden_fish_agent_session`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait create_wooden_fish_agent_session { - fn create_wooden_fish_agent_session(&self, input: WoodenFishAgentSessionCreateInput) { - self.create_wooden_fish_agent_session_then(input, |_, _| {}); - } - - fn create_wooden_fish_agent_session_then( - &self, - input: WoodenFishAgentSessionCreateInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl create_wooden_fish_agent_session for super::RemoteProcedures { - fn create_wooden_fish_agent_session_then( - &self, - input: WoodenFishAgentSessionCreateInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, WoodenFishAgentSessionProcedureResult>( - "create_wooden_fish_agent_session", - CreateWoodenFishAgentSessionArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/creation_entry_config_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/creation_entry_config_procedure_result_type.rs deleted file mode 100644 index da8cf6cbe..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/creation_entry_config_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::creation_entry_config_snapshot_type::CreationEntryConfigSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreationEntryConfigProcedureResult { - pub ok: bool, - pub record: Option, - pub error_message: Option, -} - -impl __sdk::InModule for CreationEntryConfigProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/creation_entry_config_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/creation_entry_config_snapshot_type.rs deleted file mode 100644 index 572fbc6e7..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/creation_entry_config_snapshot_type.rs +++ /dev/null @@ -1,27 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::creation_entry_event_banner_snapshot_type::CreationEntryEventBannerSnapshot; -use super::creation_entry_start_card_snapshot_type::CreationEntryStartCardSnapshot; -use super::creation_entry_type_modal_snapshot_type::CreationEntryTypeModalSnapshot; -use super::creation_entry_type_snapshot_type::CreationEntryTypeSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreationEntryConfigSnapshot { - pub config_id: String, - pub start_card: CreationEntryStartCardSnapshot, - pub type_modal: CreationEntryTypeModalSnapshot, - pub event_banner: CreationEntryEventBannerSnapshot, - pub event_banners_json: Option, - pub creation_types: Vec, - pub updated_at_micros: i64, - pub public_work_interactions_json: Option, -} - -impl __sdk::InModule for CreationEntryConfigSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/creation_entry_event_banner_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/creation_entry_event_banner_snapshot_type.rs deleted file mode 100644 index fefaa962a..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/creation_entry_event_banner_snapshot_type.rs +++ /dev/null @@ -1,22 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreationEntryEventBannerSnapshot { - pub title: String, - pub description: String, - pub cover_image_src: String, - pub prize_pool_mud_points: u64, - pub starts_at_text: String, - pub ends_at_text: String, - pub render_mode: String, - pub html_code: Option, -} - -impl __sdk::InModule for CreationEntryEventBannerSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/creation_entry_event_banners_admin_upsert_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/creation_entry_event_banners_admin_upsert_input_type.rs deleted file mode 100644 index d16a3a570..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/creation_entry_event_banners_admin_upsert_input_type.rs +++ /dev/null @@ -1,15 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreationEntryEventBannersAdminUpsertInput { - pub event_banners_json: String, -} - -impl __sdk::InModule for CreationEntryEventBannersAdminUpsertInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/creation_entry_start_card_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/creation_entry_start_card_snapshot_type.rs deleted file mode 100644 index 4ab071ad7..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/creation_entry_start_card_snapshot_type.rs +++ /dev/null @@ -1,18 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreationEntryStartCardSnapshot { - pub title: String, - pub description: String, - pub idle_badge: String, - pub busy_badge: String, -} - -impl __sdk::InModule for CreationEntryStartCardSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/creation_entry_type_admin_upsert_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/creation_entry_type_admin_upsert_input_type.rs deleted file mode 100644 index bc53b44ca..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/creation_entry_type_admin_upsert_input_type.rs +++ /dev/null @@ -1,26 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreationEntryTypeAdminUpsertInput { - pub id: String, - pub title: String, - pub subtitle: String, - pub badge: String, - pub image_src: String, - pub visible: bool, - pub open: bool, - pub sort_order: i32, - pub category_id: String, - pub category_label: String, - pub category_sort_order: i32, - pub unified_creation_spec_json: Option, -} - -impl __sdk::InModule for CreationEntryTypeAdminUpsertInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/creation_entry_type_modal_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/creation_entry_type_modal_snapshot_type.rs deleted file mode 100644 index e74cec153..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/creation_entry_type_modal_snapshot_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreationEntryTypeModalSnapshot { - pub title: String, - pub description: String, -} - -impl __sdk::InModule for CreationEntryTypeModalSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/creation_entry_type_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/creation_entry_type_snapshot_type.rs deleted file mode 100644 index 082b43461..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/creation_entry_type_snapshot_type.rs +++ /dev/null @@ -1,27 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CreationEntryTypeSnapshot { - pub id: String, - pub title: String, - pub subtitle: String, - pub badge: String, - pub image_src: String, - pub visible: bool, - pub open: bool, - pub sort_order: i32, - pub category_id: String, - pub category_label: String, - pub category_sort_order: i32, - pub updated_at_micros: i64, - pub unified_creation_spec_json: Option, -} - -impl __sdk::InModule for CreationEntryTypeSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_action_execute_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_action_execute_input_type.rs deleted file mode 100644 index 9663e12d0..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_action_execute_input_type.rs +++ /dev/null @@ -1,20 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CustomWorldAgentActionExecuteInput { - pub session_id: String, - pub owner_user_id: String, - pub operation_id: String, - pub action: String, - pub payload_json: Option, - pub submitted_at_micros: i64, -} - -impl __sdk::InModule for CustomWorldAgentActionExecuteInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_action_execute_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_action_execute_result_type.rs deleted file mode 100644 index 39aeb7e09..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_action_execute_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_agent_operation_snapshot_type::CustomWorldAgentOperationSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CustomWorldAgentActionExecuteResult { - pub ok: bool, - pub operation: Option, - pub error_message: Option, -} - -impl __sdk::InModule for CustomWorldAgentActionExecuteResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_card_detail_get_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_card_detail_get_input_type.rs deleted file mode 100644 index 2b8cde47f..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_card_detail_get_input_type.rs +++ /dev/null @@ -1,17 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CustomWorldAgentCardDetailGetInput { - pub session_id: String, - pub owner_user_id: String, - pub card_id: String, -} - -impl __sdk::InModule for CustomWorldAgentCardDetailGetInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_message_finalize_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_message_finalize_input_type.rs deleted file mode 100644 index 25184d854..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_message_finalize_input_type.rs +++ /dev/null @@ -1,41 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::rpg_agent_operation_status_type::RpgAgentOperationStatus; -use super::rpg_agent_stage_type::RpgAgentStage; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CustomWorldAgentMessageFinalizeInput { - pub session_id: String, - pub owner_user_id: String, - pub operation_id: String, - pub assistant_message_id: Option, - pub assistant_reply_text: Option, - pub phase_label: String, - pub phase_detail: String, - pub operation_status: RpgAgentOperationStatus, - pub operation_progress: u32, - pub stage: RpgAgentStage, - pub progress_percent: u32, - pub focus_card_id: Option, - pub anchor_content_json: String, - pub creator_intent_json: Option, - pub creator_intent_readiness_json: String, - pub anchor_pack_json: Option, - pub draft_profile_json: Option, - pub pending_clarifications_json: String, - pub suggested_actions_json: String, - pub recommended_replies_json: String, - pub quality_findings_json: String, - pub asset_coverage_json: String, - pub error_message: Option, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for CustomWorldAgentMessageFinalizeInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_message_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_message_snapshot_type.rs deleted file mode 100644 index 693682145..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_message_snapshot_type.rs +++ /dev/null @@ -1,24 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::rpg_agent_message_kind_type::RpgAgentMessageKind; -use super::rpg_agent_message_role_type::RpgAgentMessageRole; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CustomWorldAgentMessageSnapshot { - pub message_id: String, - pub session_id: String, - pub role: RpgAgentMessageRole, - pub kind: RpgAgentMessageKind, - pub text: String, - pub related_operation_id: Option, - pub created_at_micros: i64, -} - -impl __sdk::InModule for CustomWorldAgentMessageSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_message_submit_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_message_submit_input_type.rs deleted file mode 100644 index cf3a42301..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_message_submit_input_type.rs +++ /dev/null @@ -1,20 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CustomWorldAgentMessageSubmitInput { - pub session_id: String, - pub owner_user_id: String, - pub user_message_id: String, - pub user_message_text: String, - pub operation_id: String, - pub submitted_at_micros: i64, -} - -impl __sdk::InModule for CustomWorldAgentMessageSubmitInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_operation_get_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_operation_get_input_type.rs deleted file mode 100644 index 1e249edf4..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_operation_get_input_type.rs +++ /dev/null @@ -1,17 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CustomWorldAgentOperationGetInput { - pub session_id: String, - pub owner_user_id: String, - pub operation_id: String, -} - -impl __sdk::InModule for CustomWorldAgentOperationGetInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_operation_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_operation_procedure_result_type.rs deleted file mode 100644 index 39d0e4936..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_operation_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_agent_operation_snapshot_type::CustomWorldAgentOperationSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CustomWorldAgentOperationProcedureResult { - pub ok: bool, - pub operation: Option, - pub error_message: Option, -} - -impl __sdk::InModule for CustomWorldAgentOperationProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_operation_progress_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_operation_progress_input_type.rs deleted file mode 100644 index b5ecb4a04..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_operation_progress_input_type.rs +++ /dev/null @@ -1,27 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::rpg_agent_operation_status_type::RpgAgentOperationStatus; -use super::rpg_agent_operation_type_type::RpgAgentOperationType; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CustomWorldAgentOperationProgressInput { - pub session_id: String, - pub owner_user_id: String, - pub operation_id: String, - pub operation_type: RpgAgentOperationType, - pub operation_status: RpgAgentOperationStatus, - pub phase_label: String, - pub phase_detail: String, - pub operation_progress: u32, - pub error_message: Option, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for CustomWorldAgentOperationProgressInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_operation_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_operation_snapshot_type.rs deleted file mode 100644 index 61e86eb30..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_operation_snapshot_type.rs +++ /dev/null @@ -1,27 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::rpg_agent_operation_status_type::RpgAgentOperationStatus; -use super::rpg_agent_operation_type_type::RpgAgentOperationType; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CustomWorldAgentOperationSnapshot { - pub operation_id: String, - pub session_id: String, - pub operation_type: RpgAgentOperationType, - pub status: RpgAgentOperationStatus, - pub phase_label: String, - pub phase_detail: String, - pub progress: u32, - pub error_message: Option, - pub created_at_micros: i64, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for CustomWorldAgentOperationSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_session_create_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_session_create_input_type.rs deleted file mode 100644 index d2ea6be9c..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_session_create_input_type.rs +++ /dev/null @@ -1,32 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CustomWorldAgentSessionCreateInput { - pub session_id: String, - pub owner_user_id: String, - pub seed_text: String, - pub welcome_message_id: String, - pub welcome_message_text: String, - pub anchor_content_json: String, - pub creator_intent_json: Option, - pub creator_intent_readiness_json: String, - pub anchor_pack_json: Option, - pub lock_state_json: Option, - pub draft_profile_json: Option, - pub pending_clarifications_json: String, - pub suggested_actions_json: String, - pub recommended_replies_json: String, - pub quality_findings_json: String, - pub asset_coverage_json: String, - pub checkpoints_json: String, - pub created_at_micros: i64, -} - -impl __sdk::InModule for CustomWorldAgentSessionCreateInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_session_get_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_session_get_input_type.rs deleted file mode 100644 index 733eaecb6..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_session_get_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CustomWorldAgentSessionGetInput { - pub session_id: String, - pub owner_user_id: String, -} - -impl __sdk::InModule for CustomWorldAgentSessionGetInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_session_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_session_procedure_result_type.rs deleted file mode 100644 index 1ca24f191..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_session_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_agent_session_snapshot_type::CustomWorldAgentSessionSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CustomWorldAgentSessionProcedureResult { - pub ok: bool, - pub session: Option, - pub error_message: Option, -} - -impl __sdk::InModule for CustomWorldAgentSessionProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_session_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_session_snapshot_type.rs deleted file mode 100644 index 6a50455ec..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_session_snapshot_type.rs +++ /dev/null @@ -1,47 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_agent_message_snapshot_type::CustomWorldAgentMessageSnapshot; -use super::custom_world_agent_operation_snapshot_type::CustomWorldAgentOperationSnapshot; -use super::custom_world_draft_card_snapshot_type::CustomWorldDraftCardSnapshot; -use super::rpg_agent_stage_type::RpgAgentStage; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CustomWorldAgentSessionSnapshot { - pub session_id: String, - pub owner_user_id: String, - pub seed_text: String, - pub current_turn: u32, - pub progress_percent: u32, - pub stage: RpgAgentStage, - pub focus_card_id: Option, - pub anchor_content_json: String, - pub creator_intent_json: Option, - pub creator_intent_readiness_json: String, - pub anchor_pack_json: Option, - pub lock_state_json: Option, - pub draft_profile_json: Option, - pub last_assistant_reply: Option, - pub publish_gate_json: Option, - pub result_preview_json: Option, - pub pending_clarifications_json: String, - pub quality_findings_json: String, - pub suggested_actions_json: String, - pub recommended_replies_json: String, - pub asset_coverage_json: String, - pub checkpoints_json: String, - pub supported_actions_json: String, - pub messages: Vec, - pub draft_cards: Vec, - pub operations: Vec, - pub created_at_micros: i64, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for CustomWorldAgentSessionSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_draft_card_detail_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_draft_card_detail_result_type.rs deleted file mode 100644 index ee8f9ba4d..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_draft_card_detail_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_draft_card_detail_snapshot_type::CustomWorldDraftCardDetailSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CustomWorldDraftCardDetailResult { - pub ok: bool, - pub card: Option, - pub error_message: Option, -} - -impl __sdk::InModule for CustomWorldDraftCardDetailResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_draft_card_detail_section_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_draft_card_detail_section_snapshot_type.rs deleted file mode 100644 index b7f30c005..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_draft_card_detail_section_snapshot_type.rs +++ /dev/null @@ -1,17 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CustomWorldDraftCardDetailSectionSnapshot { - pub section_id: String, - pub label: String, - pub value: String, -} - -impl __sdk::InModule for CustomWorldDraftCardDetailSectionSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_draft_card_detail_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_draft_card_detail_snapshot_type.rs deleted file mode 100644 index fab895fef..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_draft_card_detail_snapshot_type.rs +++ /dev/null @@ -1,29 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_draft_card_detail_section_snapshot_type::CustomWorldDraftCardDetailSectionSnapshot; -use super::custom_world_role_asset_status_type::CustomWorldRoleAssetStatus; -use super::rpg_agent_draft_card_kind_type::RpgAgentDraftCardKind; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CustomWorldDraftCardDetailSnapshot { - pub card_id: String, - pub kind: RpgAgentDraftCardKind, - pub title: String, - pub sections: Vec, - pub linked_ids_json: String, - pub locked: bool, - pub editable: bool, - pub editable_section_ids_json: String, - pub warning_messages_json: String, - pub asset_status: Option, - pub asset_status_label: Option, -} - -impl __sdk::InModule for CustomWorldDraftCardDetailSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_draft_card_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_draft_card_snapshot_type.rs deleted file mode 100644 index 84108f6e5..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_draft_card_snapshot_type.rs +++ /dev/null @@ -1,32 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_role_asset_status_type::CustomWorldRoleAssetStatus; -use super::rpg_agent_draft_card_kind_type::RpgAgentDraftCardKind; -use super::rpg_agent_draft_card_status_type::RpgAgentDraftCardStatus; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CustomWorldDraftCardSnapshot { - pub card_id: String, - pub session_id: String, - pub kind: RpgAgentDraftCardKind, - pub status: RpgAgentDraftCardStatus, - pub title: String, - pub subtitle: String, - pub summary: String, - pub linked_ids_json: String, - pub warning_count: u32, - pub asset_status: Option, - pub asset_status_label: Option, - pub detail_payload_json: Option, - pub created_at_micros: i64, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for CustomWorldDraftCardSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_gallery_detail_by_code_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_gallery_detail_by_code_input_type.rs deleted file mode 100644 index 0dd8127ba..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_gallery_detail_by_code_input_type.rs +++ /dev/null @@ -1,15 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CustomWorldGalleryDetailByCodeInput { - pub public_work_code: String, -} - -impl __sdk::InModule for CustomWorldGalleryDetailByCodeInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_gallery_detail_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_gallery_detail_input_type.rs deleted file mode 100644 index 64724446a..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_gallery_detail_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CustomWorldGalleryDetailInput { - pub owner_user_id: String, - pub profile_id: String, -} - -impl __sdk::InModule for CustomWorldGalleryDetailInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_gallery_entry_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_gallery_entry_snapshot_type.rs deleted file mode 100644 index 9a3c13380..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_gallery_entry_snapshot_type.rs +++ /dev/null @@ -1,34 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_theme_mode_type::CustomWorldThemeMode; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CustomWorldGalleryEntrySnapshot { - pub profile_id: String, - pub owner_user_id: String, - pub public_work_code: String, - pub author_public_user_code: String, - pub author_display_name: String, - pub world_name: String, - pub subtitle: String, - pub summary_text: String, - pub cover_image_src: Option, - pub theme_mode: CustomWorldThemeMode, - pub playable_npc_count: u32, - pub landmark_count: u32, - pub play_count: u32, - pub remix_count: u32, - pub like_count: u32, - pub recent_play_count_7_d: u32, - pub published_at_micros: i64, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for CustomWorldGalleryEntrySnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_gallery_list_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_gallery_list_result_type.rs deleted file mode 100644 index bf101ef19..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_gallery_list_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_gallery_entry_snapshot_type::CustomWorldGalleryEntrySnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CustomWorldGalleryListResult { - pub ok: bool, - pub entries: Vec, - pub error_message: Option, -} - -impl __sdk::InModule for CustomWorldGalleryListResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_library_detail_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_library_detail_input_type.rs deleted file mode 100644 index 472c1b803..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_library_detail_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CustomWorldLibraryDetailInput { - pub owner_user_id: String, - pub profile_id: String, -} - -impl __sdk::InModule for CustomWorldLibraryDetailInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_library_mutation_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_library_mutation_result_type.rs deleted file mode 100644 index 3c3bb3b3e..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_library_mutation_result_type.rs +++ /dev/null @@ -1,21 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_gallery_entry_snapshot_type::CustomWorldGalleryEntrySnapshot; -use super::custom_world_profile_snapshot_type::CustomWorldProfileSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CustomWorldLibraryMutationResult { - pub ok: bool, - pub entry: Option, - pub gallery_entry: Option, - pub error_message: Option, -} - -impl __sdk::InModule for CustomWorldLibraryMutationResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_delete_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_delete_input_type.rs deleted file mode 100644 index f9d4a10fc..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_delete_input_type.rs +++ /dev/null @@ -1,17 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CustomWorldProfileDeleteInput { - pub profile_id: String, - pub owner_user_id: String, - pub deleted_at_micros: i64, -} - -impl __sdk::InModule for CustomWorldProfileDeleteInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_like_record_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_like_record_input_type.rs deleted file mode 100644 index feb884fc0..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_like_record_input_type.rs +++ /dev/null @@ -1,18 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CustomWorldProfileLikeRecordInput { - pub owner_user_id: String, - pub profile_id: String, - pub user_id: String, - pub liked_at_micros: i64, -} - -impl __sdk::InModule for CustomWorldProfileLikeRecordInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_list_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_list_input_type.rs deleted file mode 100644 index 53c46830a..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_list_input_type.rs +++ /dev/null @@ -1,15 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CustomWorldProfileListInput { - pub owner_user_id: String, -} - -impl __sdk::InModule for CustomWorldProfileListInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_list_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_list_result_type.rs deleted file mode 100644 index 10db7d0e9..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_list_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_profile_snapshot_type::CustomWorldProfileSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CustomWorldProfileListResult { - pub ok: bool, - pub entries: Vec, - pub error_message: Option, -} - -impl __sdk::InModule for CustomWorldProfileListResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_play_record_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_play_record_input_type.rs deleted file mode 100644 index 6c71b8a38..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_play_record_input_type.rs +++ /dev/null @@ -1,17 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CustomWorldProfilePlayRecordInput { - pub owner_user_id: String, - pub profile_id: String, - pub played_at_micros: i64, -} - -impl __sdk::InModule for CustomWorldProfilePlayRecordInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_publish_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_publish_input_type.rs deleted file mode 100644 index 0190e0152..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_publish_input_type.rs +++ /dev/null @@ -1,20 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CustomWorldProfilePublishInput { - pub profile_id: String, - pub owner_user_id: String, - pub public_work_code: Option, - pub author_public_user_code: String, - pub author_display_name: String, - pub published_at_micros: i64, -} - -impl __sdk::InModule for CustomWorldProfilePublishInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_remix_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_remix_input_type.rs deleted file mode 100644 index f995a4686..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_remix_input_type.rs +++ /dev/null @@ -1,20 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CustomWorldProfileRemixInput { - pub source_owner_user_id: String, - pub source_profile_id: String, - pub target_owner_user_id: String, - pub target_profile_id: String, - pub author_display_name: String, - pub remixed_at_micros: i64, -} - -impl __sdk::InModule for CustomWorldProfileRemixInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_snapshot_type.rs deleted file mode 100644 index f4a433b33..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_snapshot_type.rs +++ /dev/null @@ -1,39 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_publication_status_type::CustomWorldPublicationStatus; -use super::custom_world_theme_mode_type::CustomWorldThemeMode; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CustomWorldProfileSnapshot { - pub profile_id: String, - pub owner_user_id: String, - pub public_work_code: Option, - pub author_public_user_code: Option, - pub source_agent_session_id: Option, - pub publication_status: CustomWorldPublicationStatus, - pub world_name: String, - pub subtitle: String, - pub summary_text: String, - pub theme_mode: CustomWorldThemeMode, - pub cover_image_src: Option, - pub profile_payload_json: String, - pub playable_npc_count: u32, - pub landmark_count: u32, - pub play_count: u32, - pub remix_count: u32, - pub like_count: u32, - pub author_display_name: String, - pub published_at_micros: Option, - pub deleted_at_micros: Option, - pub created_at_micros: i64, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for CustomWorldProfileSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_unpublish_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_unpublish_input_type.rs deleted file mode 100644 index 7d688d963..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_unpublish_input_type.rs +++ /dev/null @@ -1,18 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CustomWorldProfileUnpublishInput { - pub profile_id: String, - pub owner_user_id: String, - pub author_display_name: String, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for CustomWorldProfileUnpublishInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_upsert_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_upsert_input_type.rs deleted file mode 100644 index 323a72f39..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_upsert_input_type.rs +++ /dev/null @@ -1,31 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_theme_mode_type::CustomWorldThemeMode; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CustomWorldProfileUpsertInput { - pub profile_id: String, - pub owner_user_id: String, - pub public_work_code: Option, - pub author_public_user_code: Option, - pub source_agent_session_id: Option, - pub world_name: String, - pub subtitle: String, - pub summary_text: String, - pub theme_mode: CustomWorldThemeMode, - pub cover_image_src: Option, - pub profile_payload_json: String, - pub playable_npc_count: u32, - pub landmark_count: u32, - pub author_display_name: String, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for CustomWorldProfileUpsertInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_publish_world_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_publish_world_input_type.rs deleted file mode 100644 index a95c0561c..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_publish_world_input_type.rs +++ /dev/null @@ -1,24 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CustomWorldPublishWorldInput { - pub session_id: String, - pub profile_id: String, - pub owner_user_id: String, - pub public_work_code: Option, - pub author_public_user_code: String, - pub draft_profile_json: String, - pub legacy_result_profile_json: Option, - pub setting_text: String, - pub author_display_name: String, - pub published_at_micros: i64, -} - -impl __sdk::InModule for CustomWorldPublishWorldInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_publish_world_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_publish_world_result_type.rs deleted file mode 100644 index a44ca2b1a..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_publish_world_result_type.rs +++ /dev/null @@ -1,25 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_gallery_entry_snapshot_type::CustomWorldGalleryEntrySnapshot; -use super::custom_world_profile_snapshot_type::CustomWorldProfileSnapshot; -use super::custom_world_published_profile_compile_snapshot_type::CustomWorldPublishedProfileCompileSnapshot; -use super::rpg_agent_stage_type::RpgAgentStage; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CustomWorldPublishWorldResult { - pub ok: bool, - pub compiled_record: Option, - pub entry: Option, - pub gallery_entry: Option, - pub session_stage: Option, - pub error_message: Option, -} - -impl __sdk::InModule for CustomWorldPublishWorldResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_published_profile_compile_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_published_profile_compile_input_type.rs deleted file mode 100644 index fda3d08b4..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_published_profile_compile_input_type.rs +++ /dev/null @@ -1,22 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CustomWorldPublishedProfileCompileInput { - pub session_id: String, - pub profile_id: String, - pub owner_user_id: String, - pub draft_profile_json: String, - pub legacy_result_profile_json: Option, - pub setting_text: String, - pub author_display_name: String, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for CustomWorldPublishedProfileCompileInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_published_profile_compile_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_published_profile_compile_result_type.rs deleted file mode 100644 index 4783f8891..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_published_profile_compile_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_published_profile_compile_snapshot_type::CustomWorldPublishedProfileCompileSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CustomWorldPublishedProfileCompileResult { - pub ok: bool, - pub record: Option, - pub error_message: Option, -} - -impl __sdk::InModule for CustomWorldPublishedProfileCompileResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_published_profile_compile_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_published_profile_compile_snapshot_type.rs deleted file mode 100644 index 0af4d59e8..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_published_profile_compile_snapshot_type.rs +++ /dev/null @@ -1,28 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_theme_mode_type::CustomWorldThemeMode; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CustomWorldPublishedProfileCompileSnapshot { - pub profile_id: String, - pub owner_user_id: String, - pub world_name: String, - pub subtitle: String, - pub summary_text: String, - pub theme_mode: CustomWorldThemeMode, - pub cover_image_src: Option, - pub playable_npc_count: u32, - pub landmark_count: u32, - pub author_display_name: String, - pub compiled_profile_payload_json: String, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for CustomWorldPublishedProfileCompileSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_work_summary_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_work_summary_snapshot_type.rs deleted file mode 100644 index ed735fc38..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_work_summary_snapshot_type.rs +++ /dev/null @@ -1,40 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::rpg_agent_stage_type::RpgAgentStage; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CustomWorldWorkSummarySnapshot { - pub work_id: String, - pub source_type: String, - pub status: String, - pub title: String, - pub subtitle: String, - pub summary: String, - pub cover_image_src: Option, - pub cover_render_mode: Option, - pub cover_character_image_srcs_json: String, - pub updated_at_micros: i64, - pub published_at_micros: Option, - pub stage: Option, - pub stage_label: Option, - pub playable_npc_count: u32, - pub landmark_count: u32, - pub role_visual_ready_count: Option, - pub role_animation_ready_count: Option, - pub role_asset_summary_label: Option, - pub session_id: Option, - pub profile_id: Option, - pub can_resume: bool, - pub can_enter_world: bool, - pub blocker_count: u32, - pub publish_ready: bool, -} - -impl __sdk::InModule for CustomWorldWorkSummarySnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_works_list_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_works_list_input_type.rs deleted file mode 100644 index a007007b2..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_works_list_input_type.rs +++ /dev/null @@ -1,15 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CustomWorldWorksListInput { - pub owner_user_id: String, -} - -impl __sdk::InModule for CustomWorldWorksListInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_works_list_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_works_list_result_type.rs deleted file mode 100644 index 9296740ed..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_works_list_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_work_summary_snapshot_type::CustomWorldWorkSummarySnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct CustomWorldWorksListResult { - pub ok: bool, - pub items: Vec, - pub error_message: Option, -} - -impl __sdk::InModule for CustomWorldWorksListResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/delete_bark_battle_work_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/delete_bark_battle_work_procedure.rs deleted file mode 100644 index 934e66021..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/delete_bark_battle_work_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::bark_battle_procedure_result_type::BarkBattleProcedureResult; -use super::bark_battle_work_delete_input_type::BarkBattleWorkDeleteInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct DeleteBarkBattleWorkArgs { - pub input: BarkBattleWorkDeleteInput, -} - -impl __sdk::InModule for DeleteBarkBattleWorkArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `delete_bark_battle_work`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait delete_bark_battle_work { - fn delete_bark_battle_work(&self, input: BarkBattleWorkDeleteInput) { - self.delete_bark_battle_work_then(input, |_, _| {}); - } - - fn delete_bark_battle_work_then( - &self, - input: BarkBattleWorkDeleteInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl delete_bark_battle_work for super::RemoteProcedures { - fn delete_bark_battle_work_then( - &self, - input: BarkBattleWorkDeleteInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, BarkBattleProcedureResult>( - "delete_bark_battle_work", - DeleteBarkBattleWorkArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/delete_big_fish_work_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/delete_big_fish_work_procedure.rs deleted file mode 100644 index 51cc224f2..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/delete_big_fish_work_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::big_fish_work_delete_input_type::BigFishWorkDeleteInput; -use super::big_fish_works_procedure_result_type::BigFishWorksProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct DeleteBigFishWorkArgs { - pub input: BigFishWorkDeleteInput, -} - -impl __sdk::InModule for DeleteBigFishWorkArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `delete_big_fish_work`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait delete_big_fish_work { - fn delete_big_fish_work(&self, input: BigFishWorkDeleteInput) { - self.delete_big_fish_work_then(input, |_, _| {}); - } - - fn delete_big_fish_work_then( - &self, - input: BigFishWorkDeleteInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl delete_big_fish_work for super::RemoteProcedures { - fn delete_big_fish_work_then( - &self, - input: BigFishWorkDeleteInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, BigFishWorksProcedureResult>( - "delete_big_fish_work", - DeleteBigFishWorkArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/delete_custom_world_agent_session_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/delete_custom_world_agent_session_procedure.rs deleted file mode 100644 index 27341561e..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/delete_custom_world_agent_session_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_agent_session_get_input_type::CustomWorldAgentSessionGetInput; -use super::custom_world_works_list_result_type::CustomWorldWorksListResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct DeleteCustomWorldAgentSessionArgs { - pub input: CustomWorldAgentSessionGetInput, -} - -impl __sdk::InModule for DeleteCustomWorldAgentSessionArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `delete_custom_world_agent_session`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait delete_custom_world_agent_session { - fn delete_custom_world_agent_session(&self, input: CustomWorldAgentSessionGetInput) { - self.delete_custom_world_agent_session_then(input, |_, _| {}); - } - - fn delete_custom_world_agent_session_then( - &self, - input: CustomWorldAgentSessionGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl delete_custom_world_agent_session for super::RemoteProcedures { - fn delete_custom_world_agent_session_then( - &self, - input: CustomWorldAgentSessionGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, CustomWorldWorksListResult>( - "delete_custom_world_agent_session", - DeleteCustomWorldAgentSessionArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/delete_custom_world_profile_and_return_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/delete_custom_world_profile_and_return_procedure.rs deleted file mode 100644 index 246d4d003..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/delete_custom_world_profile_and_return_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_profile_delete_input_type::CustomWorldProfileDeleteInput; -use super::custom_world_profile_list_result_type::CustomWorldProfileListResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct DeleteCustomWorldProfileAndReturnArgs { - pub input: CustomWorldProfileDeleteInput, -} - -impl __sdk::InModule for DeleteCustomWorldProfileAndReturnArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `delete_custom_world_profile_and_return`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait delete_custom_world_profile_and_return { - fn delete_custom_world_profile_and_return(&self, input: CustomWorldProfileDeleteInput) { - self.delete_custom_world_profile_and_return_then(input, |_, _| {}); - } - - fn delete_custom_world_profile_and_return_then( - &self, - input: CustomWorldProfileDeleteInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl delete_custom_world_profile_and_return for super::RemoteProcedures { - fn delete_custom_world_profile_and_return_then( - &self, - input: CustomWorldProfileDeleteInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, CustomWorldProfileListResult>( - "delete_custom_world_profile_and_return", - DeleteCustomWorldProfileAndReturnArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/delete_jump_hop_work_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/delete_jump_hop_work_procedure.rs deleted file mode 100644 index 9cad50c50..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/delete_jump_hop_work_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::jump_hop_work_delete_input_type::JumpHopWorkDeleteInput; -use super::jump_hop_works_procedure_result_type::JumpHopWorksProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct DeleteJumpHopWorkArgs { - pub input: JumpHopWorkDeleteInput, -} - -impl __sdk::InModule for DeleteJumpHopWorkArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `delete_jump_hop_work`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait delete_jump_hop_work { - fn delete_jump_hop_work(&self, input: JumpHopWorkDeleteInput) { - self.delete_jump_hop_work_then(input, |_, _| {}); - } - - fn delete_jump_hop_work_then( - &self, - input: JumpHopWorkDeleteInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl delete_jump_hop_work for super::RemoteProcedures { - fn delete_jump_hop_work_then( - &self, - input: JumpHopWorkDeleteInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, JumpHopWorksProcedureResult>( - "delete_jump_hop_work", - DeleteJumpHopWorkArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/delete_match_3_d_work_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/delete_match_3_d_work_procedure.rs deleted file mode 100644 index c26b2dc81..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/delete_match_3_d_work_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::match_3_d_work_delete_input_type::Match3DWorkDeleteInput; -use super::match_3_d_works_procedure_result_type::Match3DWorksProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct DeleteMatch3DWorkArgs { - pub input: Match3DWorkDeleteInput, -} - -impl __sdk::InModule for DeleteMatch3DWorkArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `delete_match_3_d_work`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait delete_match_3_d_work { - fn delete_match_3_d_work(&self, input: Match3DWorkDeleteInput) { - self.delete_match_3_d_work_then(input, |_, _| {}); - } - - fn delete_match_3_d_work_then( - &self, - input: Match3DWorkDeleteInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl delete_match_3_d_work for super::RemoteProcedures { - fn delete_match_3_d_work_then( - &self, - input: Match3DWorkDeleteInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, Match3DWorksProcedureResult>( - "delete_match_3_d_work", - DeleteMatch3DWorkArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/delete_puzzle_work_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/delete_puzzle_work_procedure.rs deleted file mode 100644 index 5b7e5375d..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/delete_puzzle_work_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_work_delete_input_type::PuzzleWorkDeleteInput; -use super::puzzle_works_procedure_result_type::PuzzleWorksProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct DeletePuzzleWorkArgs { - pub input: PuzzleWorkDeleteInput, -} - -impl __sdk::InModule for DeletePuzzleWorkArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `delete_puzzle_work`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait delete_puzzle_work { - fn delete_puzzle_work(&self, input: PuzzleWorkDeleteInput) { - self.delete_puzzle_work_then(input, |_, _| {}); - } - - fn delete_puzzle_work_then( - &self, - input: PuzzleWorkDeleteInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl delete_puzzle_work for super::RemoteProcedures { - fn delete_puzzle_work_then( - &self, - input: PuzzleWorkDeleteInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleWorksProcedureResult>( - "delete_puzzle_work", - DeletePuzzleWorkArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/delete_runtime_snapshot_and_return_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/delete_runtime_snapshot_and_return_procedure.rs deleted file mode 100644 index 6373a19b5..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/delete_runtime_snapshot_and_return_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::runtime_snapshot_delete_input_type::RuntimeSnapshotDeleteInput; -use super::runtime_snapshot_procedure_result_type::RuntimeSnapshotProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct DeleteRuntimeSnapshotAndReturnArgs { - pub input: RuntimeSnapshotDeleteInput, -} - -impl __sdk::InModule for DeleteRuntimeSnapshotAndReturnArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `delete_runtime_snapshot_and_return`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait delete_runtime_snapshot_and_return { - fn delete_runtime_snapshot_and_return(&self, input: RuntimeSnapshotDeleteInput) { - self.delete_runtime_snapshot_and_return_then(input, |_, _| {}); - } - - fn delete_runtime_snapshot_and_return_then( - &self, - input: RuntimeSnapshotDeleteInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl delete_runtime_snapshot_and_return for super::RemoteProcedures { - fn delete_runtime_snapshot_and_return_then( - &self, - input: RuntimeSnapshotDeleteInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, RuntimeSnapshotProcedureResult>( - "delete_runtime_snapshot_and_return", - DeleteRuntimeSnapshotAndReturnArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/delete_square_hole_work_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/delete_square_hole_work_procedure.rs deleted file mode 100644 index 3469c3141..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/delete_square_hole_work_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::square_hole_work_delete_input_type::SquareHoleWorkDeleteInput; -use super::square_hole_works_procedure_result_type::SquareHoleWorksProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct DeleteSquareHoleWorkArgs { - pub input: SquareHoleWorkDeleteInput, -} - -impl __sdk::InModule for DeleteSquareHoleWorkArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `delete_square_hole_work`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait delete_square_hole_work { - fn delete_square_hole_work(&self, input: SquareHoleWorkDeleteInput) { - self.delete_square_hole_work_then(input, |_, _| {}); - } - - fn delete_square_hole_work_then( - &self, - input: SquareHoleWorkDeleteInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl delete_square_hole_work for super::RemoteProcedures { - fn delete_square_hole_work_then( - &self, - input: SquareHoleWorkDeleteInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, SquareHoleWorksProcedureResult>( - "delete_square_hole_work", - DeleteSquareHoleWorkArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/delete_visual_novel_work_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/delete_visual_novel_work_procedure.rs deleted file mode 100644 index 61ed99045..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/delete_visual_novel_work_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::visual_novel_work_delete_input_type::VisualNovelWorkDeleteInput; -use super::visual_novel_works_procedure_result_type::VisualNovelWorksProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct DeleteVisualNovelWorkArgs { - pub input: VisualNovelWorkDeleteInput, -} - -impl __sdk::InModule for DeleteVisualNovelWorkArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `delete_visual_novel_work`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait delete_visual_novel_work { - fn delete_visual_novel_work(&self, input: VisualNovelWorkDeleteInput) { - self.delete_visual_novel_work_then(input, |_, _| {}); - } - - fn delete_visual_novel_work_then( - &self, - input: VisualNovelWorkDeleteInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl delete_visual_novel_work for super::RemoteProcedures { - fn delete_visual_novel_work_then( - &self, - input: VisualNovelWorkDeleteInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, VisualNovelWorksProcedureResult>( - "delete_visual_novel_work", - DeleteVisualNovelWorkArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/delete_wooden_fish_work_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/delete_wooden_fish_work_procedure.rs deleted file mode 100644 index c0050f072..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/delete_wooden_fish_work_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::wooden_fish_work_delete_input_type::WoodenFishWorkDeleteInput; -use super::wooden_fish_works_procedure_result_type::WoodenFishWorksProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct DeleteWoodenFishWorkArgs { - pub input: WoodenFishWorkDeleteInput, -} - -impl __sdk::InModule for DeleteWoodenFishWorkArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `delete_wooden_fish_work`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait delete_wooden_fish_work { - fn delete_wooden_fish_work(&self, input: WoodenFishWorkDeleteInput) { - self.delete_wooden_fish_work_then(input, |_, _| {}); - } - - fn delete_wooden_fish_work_then( - &self, - input: WoodenFishWorkDeleteInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl delete_wooden_fish_work for super::RemoteProcedures { - fn delete_wooden_fish_work_then( - &self, - input: WoodenFishWorkDeleteInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, WoodenFishWorksProcedureResult>( - "delete_wooden_fish_work", - DeleteWoodenFishWorkArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/drag_puzzle_piece_or_group_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/drag_puzzle_piece_or_group_procedure.rs deleted file mode 100644 index daad89bd9..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/drag_puzzle_piece_or_group_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_run_drag_input_type::PuzzleRunDragInput; -use super::puzzle_run_procedure_result_type::PuzzleRunProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct DragPuzzlePieceOrGroupArgs { - pub input: PuzzleRunDragInput, -} - -impl __sdk::InModule for DragPuzzlePieceOrGroupArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `drag_puzzle_piece_or_group`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait drag_puzzle_piece_or_group { - fn drag_puzzle_piece_or_group(&self, input: PuzzleRunDragInput) { - self.drag_puzzle_piece_or_group_then(input, |_, _| {}); - } - - fn drag_puzzle_piece_or_group_then( - &self, - input: PuzzleRunDragInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl drag_puzzle_piece_or_group for super::RemoteProcedures { - fn drag_puzzle_piece_or_group_then( - &self, - input: PuzzleRunDragInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleRunProcedureResult>( - "drag_puzzle_piece_or_group", - DragPuzzlePieceOrGroupArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/drop_square_hole_shape_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/drop_square_hole_shape_procedure.rs deleted file mode 100644 index 91d6bb611..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/drop_square_hole_shape_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::square_hole_drop_shape_procedure_result_type::SquareHoleDropShapeProcedureResult; -use super::square_hole_run_drop_input_type::SquareHoleRunDropInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct DropSquareHoleShapeArgs { - pub input: SquareHoleRunDropInput, -} - -impl __sdk::InModule for DropSquareHoleShapeArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `drop_square_hole_shape`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait drop_square_hole_shape { - fn drop_square_hole_shape(&self, input: SquareHoleRunDropInput) { - self.drop_square_hole_shape_then(input, |_, _| {}); - } - - fn drop_square_hole_shape_then( - &self, - input: SquareHoleRunDropInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl drop_square_hole_shape for super::RemoteProcedures { - fn drop_square_hole_shape_then( - &self, - input: SquareHoleRunDropInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, SquareHoleDropShapeProcedureResult>( - "drop_square_hole_shape", - DropSquareHoleShapeArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/equip_inventory_item_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/equip_inventory_item_input_type.rs deleted file mode 100644 index 775ad7fad..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/equip_inventory_item_input_type.rs +++ /dev/null @@ -1,15 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct EquipInventoryItemInput { - pub slot_id: String, -} - -impl __sdk::InModule for EquipInventoryItemInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/execute_custom_world_agent_action_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/execute_custom_world_agent_action_procedure.rs deleted file mode 100644 index e778877c8..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/execute_custom_world_agent_action_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_agent_action_execute_input_type::CustomWorldAgentActionExecuteInput; -use super::custom_world_agent_action_execute_result_type::CustomWorldAgentActionExecuteResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct ExecuteCustomWorldAgentActionArgs { - pub input: CustomWorldAgentActionExecuteInput, -} - -impl __sdk::InModule for ExecuteCustomWorldAgentActionArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `execute_custom_world_agent_action`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait execute_custom_world_agent_action { - fn execute_custom_world_agent_action(&self, input: CustomWorldAgentActionExecuteInput) { - self.execute_custom_world_agent_action_then(input, |_, _| {}); - } - - fn execute_custom_world_agent_action_then( - &self, - input: CustomWorldAgentActionExecuteInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl execute_custom_world_agent_action for super::RemoteProcedures { - fn execute_custom_world_agent_action_then( - &self, - input: CustomWorldAgentActionExecuteInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, CustomWorldAgentActionExecuteResult>( - "execute_custom_world_agent_action", - ExecuteCustomWorldAgentActionArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/finalize_big_fish_agent_message_turn_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/finalize_big_fish_agent_message_turn_procedure.rs deleted file mode 100644 index 9f5c8e7a6..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/finalize_big_fish_agent_message_turn_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::big_fish_message_finalize_input_type::BigFishMessageFinalizeInput; -use super::big_fish_session_procedure_result_type::BigFishSessionProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct FinalizeBigFishAgentMessageTurnArgs { - pub input: BigFishMessageFinalizeInput, -} - -impl __sdk::InModule for FinalizeBigFishAgentMessageTurnArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `finalize_big_fish_agent_message_turn`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait finalize_big_fish_agent_message_turn { - fn finalize_big_fish_agent_message_turn(&self, input: BigFishMessageFinalizeInput) { - self.finalize_big_fish_agent_message_turn_then(input, |_, _| {}); - } - - fn finalize_big_fish_agent_message_turn_then( - &self, - input: BigFishMessageFinalizeInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl finalize_big_fish_agent_message_turn for super::RemoteProcedures { - fn finalize_big_fish_agent_message_turn_then( - &self, - input: BigFishMessageFinalizeInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, BigFishSessionProcedureResult>( - "finalize_big_fish_agent_message_turn", - FinalizeBigFishAgentMessageTurnArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/finalize_custom_world_agent_message_turn_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/finalize_custom_world_agent_message_turn_procedure.rs deleted file mode 100644 index fad75a7be..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/finalize_custom_world_agent_message_turn_procedure.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_agent_message_finalize_input_type::CustomWorldAgentMessageFinalizeInput; -use super::custom_world_agent_operation_procedure_result_type::CustomWorldAgentOperationProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct FinalizeCustomWorldAgentMessageTurnArgs { - pub input: CustomWorldAgentMessageFinalizeInput, -} - -impl __sdk::InModule for FinalizeCustomWorldAgentMessageTurnArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `finalize_custom_world_agent_message_turn`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait finalize_custom_world_agent_message_turn { - fn finalize_custom_world_agent_message_turn( - &self, - input: CustomWorldAgentMessageFinalizeInput, - ) { - self.finalize_custom_world_agent_message_turn_then(input, |_, _| {}); - } - - fn finalize_custom_world_agent_message_turn_then( - &self, - input: CustomWorldAgentMessageFinalizeInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl finalize_custom_world_agent_message_turn for super::RemoteProcedures { - fn finalize_custom_world_agent_message_turn_then( - &self, - input: CustomWorldAgentMessageFinalizeInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, CustomWorldAgentOperationProcedureResult>( - "finalize_custom_world_agent_message_turn", - FinalizeCustomWorldAgentMessageTurnArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/finalize_match_3_d_agent_message_turn_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/finalize_match_3_d_agent_message_turn_procedure.rs deleted file mode 100644 index 9d51ab95d..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/finalize_match_3_d_agent_message_turn_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::match_3_d_agent_message_finalize_input_type::Match3DAgentMessageFinalizeInput; -use super::match_3_d_agent_session_procedure_result_type::Match3DAgentSessionProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct FinalizeMatch3DAgentMessageTurnArgs { - pub input: Match3DAgentMessageFinalizeInput, -} - -impl __sdk::InModule for FinalizeMatch3DAgentMessageTurnArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `finalize_match_3_d_agent_message_turn`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait finalize_match_3_d_agent_message_turn { - fn finalize_match_3_d_agent_message_turn(&self, input: Match3DAgentMessageFinalizeInput) { - self.finalize_match_3_d_agent_message_turn_then(input, |_, _| {}); - } - - fn finalize_match_3_d_agent_message_turn_then( - &self, - input: Match3DAgentMessageFinalizeInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl finalize_match_3_d_agent_message_turn for super::RemoteProcedures { - fn finalize_match_3_d_agent_message_turn_then( - &self, - input: Match3DAgentMessageFinalizeInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, Match3DAgentSessionProcedureResult>( - "finalize_match_3_d_agent_message_turn", - FinalizeMatch3DAgentMessageTurnArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/finalize_puzzle_agent_message_turn_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/finalize_puzzle_agent_message_turn_procedure.rs deleted file mode 100644 index 0014d3943..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/finalize_puzzle_agent_message_turn_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_agent_message_finalize_input_type::PuzzleAgentMessageFinalizeInput; -use super::puzzle_agent_session_procedure_result_type::PuzzleAgentSessionProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct FinalizePuzzleAgentMessageTurnArgs { - pub input: PuzzleAgentMessageFinalizeInput, -} - -impl __sdk::InModule for FinalizePuzzleAgentMessageTurnArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `finalize_puzzle_agent_message_turn`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait finalize_puzzle_agent_message_turn { - fn finalize_puzzle_agent_message_turn(&self, input: PuzzleAgentMessageFinalizeInput) { - self.finalize_puzzle_agent_message_turn_then(input, |_, _| {}); - } - - fn finalize_puzzle_agent_message_turn_then( - &self, - input: PuzzleAgentMessageFinalizeInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl finalize_puzzle_agent_message_turn for super::RemoteProcedures { - fn finalize_puzzle_agent_message_turn_then( - &self, - input: PuzzleAgentMessageFinalizeInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleAgentSessionProcedureResult>( - "finalize_puzzle_agent_message_turn", - FinalizePuzzleAgentMessageTurnArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/finalize_square_hole_agent_message_turn_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/finalize_square_hole_agent_message_turn_procedure.rs deleted file mode 100644 index 75808f109..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/finalize_square_hole_agent_message_turn_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::square_hole_agent_message_finalize_input_type::SquareHoleAgentMessageFinalizeInput; -use super::square_hole_agent_session_procedure_result_type::SquareHoleAgentSessionProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct FinalizeSquareHoleAgentMessageTurnArgs { - pub input: SquareHoleAgentMessageFinalizeInput, -} - -impl __sdk::InModule for FinalizeSquareHoleAgentMessageTurnArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `finalize_square_hole_agent_message_turn`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait finalize_square_hole_agent_message_turn { - fn finalize_square_hole_agent_message_turn(&self, input: SquareHoleAgentMessageFinalizeInput) { - self.finalize_square_hole_agent_message_turn_then(input, |_, _| {}); - } - - fn finalize_square_hole_agent_message_turn_then( - &self, - input: SquareHoleAgentMessageFinalizeInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl finalize_square_hole_agent_message_turn for super::RemoteProcedures { - fn finalize_square_hole_agent_message_turn_then( - &self, - input: SquareHoleAgentMessageFinalizeInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, SquareHoleAgentSessionProcedureResult>( - "finalize_square_hole_agent_message_turn", - FinalizeSquareHoleAgentMessageTurnArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/finalize_visual_novel_agent_message_turn_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/finalize_visual_novel_agent_message_turn_procedure.rs deleted file mode 100644 index 5305f8e8b..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/finalize_visual_novel_agent_message_turn_procedure.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::visual_novel_agent_message_finalize_input_type::VisualNovelAgentMessageFinalizeInput; -use super::visual_novel_agent_session_procedure_result_type::VisualNovelAgentSessionProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct FinalizeVisualNovelAgentMessageTurnArgs { - pub input: VisualNovelAgentMessageFinalizeInput, -} - -impl __sdk::InModule for FinalizeVisualNovelAgentMessageTurnArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `finalize_visual_novel_agent_message_turn`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait finalize_visual_novel_agent_message_turn { - fn finalize_visual_novel_agent_message_turn( - &self, - input: VisualNovelAgentMessageFinalizeInput, - ) { - self.finalize_visual_novel_agent_message_turn_then(input, |_, _| {}); - } - - fn finalize_visual_novel_agent_message_turn_then( - &self, - input: VisualNovelAgentMessageFinalizeInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl finalize_visual_novel_agent_message_turn for super::RemoteProcedures { - fn finalize_visual_novel_agent_message_turn_then( - &self, - input: VisualNovelAgentMessageFinalizeInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, VisualNovelAgentSessionProcedureResult>( - "finalize_visual_novel_agent_message_turn", - FinalizeVisualNovelAgentMessageTurnArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/finish_bark_battle_run_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/finish_bark_battle_run_procedure.rs deleted file mode 100644 index 8eeaf0c11..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/finish_bark_battle_run_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::bark_battle_procedure_result_type::BarkBattleProcedureResult; -use super::bark_battle_run_finish_input_type::BarkBattleRunFinishInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct FinishBarkBattleRunArgs { - pub input: BarkBattleRunFinishInput, -} - -impl __sdk::InModule for FinishBarkBattleRunArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `finish_bark_battle_run`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait finish_bark_battle_run { - fn finish_bark_battle_run(&self, input: BarkBattleRunFinishInput) { - self.finish_bark_battle_run_then(input, |_, _| {}); - } - - fn finish_bark_battle_run_then( - &self, - input: BarkBattleRunFinishInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl finish_bark_battle_run for super::RemoteProcedures { - fn finish_bark_battle_run_then( - &self, - input: BarkBattleRunFinishInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, BarkBattleProcedureResult>( - "finish_bark_battle_run", - FinishBarkBattleRunArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/finish_match_3_d_time_up_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/finish_match_3_d_time_up_procedure.rs deleted file mode 100644 index 0d68dbd95..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/finish_match_3_d_time_up_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::match_3_d_run_procedure_result_type::Match3DRunProcedureResult; -use super::match_3_d_run_time_up_input_type::Match3DRunTimeUpInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct FinishMatch3DTimeUpArgs { - pub input: Match3DRunTimeUpInput, -} - -impl __sdk::InModule for FinishMatch3DTimeUpArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `finish_match_3_d_time_up`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait finish_match_3_d_time_up { - fn finish_match_3_d_time_up(&self, input: Match3DRunTimeUpInput) { - self.finish_match_3_d_time_up_then(input, |_, _| {}); - } - - fn finish_match_3_d_time_up_then( - &self, - input: Match3DRunTimeUpInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl finish_match_3_d_time_up for super::RemoteProcedures { - fn finish_match_3_d_time_up_then( - &self, - input: Match3DRunTimeUpInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, Match3DRunProcedureResult>( - "finish_match_3_d_time_up", - FinishMatch3DTimeUpArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/finish_square_hole_time_up_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/finish_square_hole_time_up_procedure.rs deleted file mode 100644 index f3b5ffc32..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/finish_square_hole_time_up_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::square_hole_run_procedure_result_type::SquareHoleRunProcedureResult; -use super::square_hole_run_time_up_input_type::SquareHoleRunTimeUpInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct FinishSquareHoleTimeUpArgs { - pub input: SquareHoleRunTimeUpInput, -} - -impl __sdk::InModule for FinishSquareHoleTimeUpArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `finish_square_hole_time_up`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait finish_square_hole_time_up { - fn finish_square_hole_time_up(&self, input: SquareHoleRunTimeUpInput) { - self.finish_square_hole_time_up_then(input, |_, _| {}); - } - - fn finish_square_hole_time_up_then( - &self, - input: SquareHoleRunTimeUpInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl finish_square_hole_time_up for super::RemoteProcedures { - fn finish_square_hole_time_up_then( - &self, - input: SquareHoleRunTimeUpInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, SquareHoleRunProcedureResult>( - "finish_square_hole_time_up", - FinishSquareHoleTimeUpArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/finish_wooden_fish_run_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/finish_wooden_fish_run_procedure.rs deleted file mode 100644 index 240541fb7..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/finish_wooden_fish_run_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::wooden_fish_run_finish_input_type::WoodenFishRunFinishInput; -use super::wooden_fish_run_procedure_result_type::WoodenFishRunProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct FinishWoodenFishRunArgs { - pub input: WoodenFishRunFinishInput, -} - -impl __sdk::InModule for FinishWoodenFishRunArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `finish_wooden_fish_run`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait finish_wooden_fish_run { - fn finish_wooden_fish_run(&self, input: WoodenFishRunFinishInput) { - self.finish_wooden_fish_run_then(input, |_, _| {}); - } - - fn finish_wooden_fish_run_then( - &self, - input: WoodenFishRunFinishInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl finish_wooden_fish_run for super::RemoteProcedures { - fn finish_wooden_fish_run_then( - &self, - input: WoodenFishRunFinishInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, WoodenFishRunProcedureResult>( - "finish_wooden_fish_run", - FinishWoodenFishRunArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/generate_big_fish_asset_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/generate_big_fish_asset_procedure.rs deleted file mode 100644 index 1a87c951d..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/generate_big_fish_asset_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::big_fish_asset_generate_input_type::BigFishAssetGenerateInput; -use super::big_fish_session_procedure_result_type::BigFishSessionProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct GenerateBigFishAssetArgs { - pub input: BigFishAssetGenerateInput, -} - -impl __sdk::InModule for GenerateBigFishAssetArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `generate_big_fish_asset`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait generate_big_fish_asset { - fn generate_big_fish_asset(&self, input: BigFishAssetGenerateInput) { - self.generate_big_fish_asset_then(input, |_, _| {}); - } - - fn generate_big_fish_asset_then( - &self, - input: BigFishAssetGenerateInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl generate_big_fish_asset for super::RemoteProcedures { - fn generate_big_fish_asset_then( - &self, - input: BigFishAssetGenerateInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, BigFishSessionProcedureResult>( - "generate_big_fish_asset", - GenerateBigFishAssetArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/get_bark_battle_run_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_bark_battle_run_procedure.rs deleted file mode 100644 index 87c3f82ad..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_bark_battle_run_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::bark_battle_procedure_result_type::BarkBattleProcedureResult; -use super::bark_battle_run_get_input_type::BarkBattleRunGetInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct GetBarkBattleRunArgs { - pub input: BarkBattleRunGetInput, -} - -impl __sdk::InModule for GetBarkBattleRunArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `get_bark_battle_run`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait get_bark_battle_run { - fn get_bark_battle_run(&self, input: BarkBattleRunGetInput) { - self.get_bark_battle_run_then(input, |_, _| {}); - } - - fn get_bark_battle_run_then( - &self, - input: BarkBattleRunGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl get_bark_battle_run for super::RemoteProcedures { - fn get_bark_battle_run_then( - &self, - input: BarkBattleRunGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, BarkBattleProcedureResult>( - "get_bark_battle_run", - GetBarkBattleRunArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/get_bark_battle_runtime_config_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_bark_battle_runtime_config_procedure.rs deleted file mode 100644 index f163d3b39..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_bark_battle_runtime_config_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::bark_battle_procedure_result_type::BarkBattleProcedureResult; -use super::bark_battle_runtime_config_get_input_type::BarkBattleRuntimeConfigGetInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct GetBarkBattleRuntimeConfigArgs { - pub input: BarkBattleRuntimeConfigGetInput, -} - -impl __sdk::InModule for GetBarkBattleRuntimeConfigArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `get_bark_battle_runtime_config`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait get_bark_battle_runtime_config { - fn get_bark_battle_runtime_config(&self, input: BarkBattleRuntimeConfigGetInput) { - self.get_bark_battle_runtime_config_then(input, |_, _| {}); - } - - fn get_bark_battle_runtime_config_then( - &self, - input: BarkBattleRuntimeConfigGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl get_bark_battle_runtime_config for super::RemoteProcedures { - fn get_bark_battle_runtime_config_then( - &self, - input: BarkBattleRuntimeConfigGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, BarkBattleProcedureResult>( - "get_bark_battle_runtime_config", - GetBarkBattleRuntimeConfigArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/get_battle_state_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_battle_state_procedure.rs deleted file mode 100644 index a737fbdf0..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_battle_state_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::battle_state_procedure_result_type::BattleStateProcedureResult; -use super::battle_state_query_input_type::BattleStateQueryInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct GetBattleStateArgs { - pub input: BattleStateQueryInput, -} - -impl __sdk::InModule for GetBattleStateArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `get_battle_state`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait get_battle_state { - fn get_battle_state(&self, input: BattleStateQueryInput) { - self.get_battle_state_then(input, |_, _| {}); - } - - fn get_battle_state_then( - &self, - input: BattleStateQueryInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl get_battle_state for super::RemoteProcedures { - fn get_battle_state_then( - &self, - input: BattleStateQueryInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, BattleStateProcedureResult>( - "get_battle_state", - GetBattleStateArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/get_big_fish_run_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_big_fish_run_procedure.rs deleted file mode 100644 index 867a6759b..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_big_fish_run_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::big_fish_run_get_input_type::BigFishRunGetInput; -use super::big_fish_run_procedure_result_type::BigFishRunProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct GetBigFishRunArgs { - pub input: BigFishRunGetInput, -} - -impl __sdk::InModule for GetBigFishRunArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `get_big_fish_run`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait get_big_fish_run { - fn get_big_fish_run(&self, input: BigFishRunGetInput) { - self.get_big_fish_run_then(input, |_, _| {}); - } - - fn get_big_fish_run_then( - &self, - input: BigFishRunGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl get_big_fish_run for super::RemoteProcedures { - fn get_big_fish_run_then( - &self, - input: BigFishRunGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, BigFishRunProcedureResult>( - "get_big_fish_run", - GetBigFishRunArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/get_big_fish_session_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_big_fish_session_procedure.rs deleted file mode 100644 index 0b0d78f1d..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_big_fish_session_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::big_fish_session_get_input_type::BigFishSessionGetInput; -use super::big_fish_session_procedure_result_type::BigFishSessionProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct GetBigFishSessionArgs { - pub input: BigFishSessionGetInput, -} - -impl __sdk::InModule for GetBigFishSessionArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `get_big_fish_session`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait get_big_fish_session { - fn get_big_fish_session(&self, input: BigFishSessionGetInput) { - self.get_big_fish_session_then(input, |_, _| {}); - } - - fn get_big_fish_session_then( - &self, - input: BigFishSessionGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl get_big_fish_session for super::RemoteProcedures { - fn get_big_fish_session_then( - &self, - input: BigFishSessionGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, BigFishSessionProcedureResult>( - "get_big_fish_session", - GetBigFishSessionArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/get_chapter_progression_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_chapter_progression_procedure.rs deleted file mode 100644 index eef158dce..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_chapter_progression_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::chapter_progression_get_input_type::ChapterProgressionGetInput; -use super::chapter_progression_procedure_result_type::ChapterProgressionProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct GetChapterProgressionArgs { - pub input: ChapterProgressionGetInput, -} - -impl __sdk::InModule for GetChapterProgressionArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `get_chapter_progression`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait get_chapter_progression { - fn get_chapter_progression(&self, input: ChapterProgressionGetInput) { - self.get_chapter_progression_then(input, |_, _| {}); - } - - fn get_chapter_progression_then( - &self, - input: ChapterProgressionGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl get_chapter_progression for super::RemoteProcedures { - fn get_chapter_progression_then( - &self, - input: ChapterProgressionGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, ChapterProgressionProcedureResult>( - "get_chapter_progression", - GetChapterProgressionArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/get_creation_entry_config_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_creation_entry_config_procedure.rs deleted file mode 100644 index eb840cdcb..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_creation_entry_config_procedure.rs +++ /dev/null @@ -1,54 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::creation_entry_config_procedure_result_type::CreationEntryConfigProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct GetCreationEntryConfigArgs {} - -impl __sdk::InModule for GetCreationEntryConfigArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `get_creation_entry_config`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait get_creation_entry_config { - fn get_creation_entry_config(&self) { - self.get_creation_entry_config_then(|_, _| {}); - } - - fn get_creation_entry_config_then( - &self, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl get_creation_entry_config for super::RemoteProcedures { - fn get_creation_entry_config_then( - &self, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, CreationEntryConfigProcedureResult>( - "get_creation_entry_config", - GetCreationEntryConfigArgs {}, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/get_custom_world_agent_card_detail_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_custom_world_agent_card_detail_procedure.rs deleted file mode 100644 index 11a903298..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_custom_world_agent_card_detail_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_agent_card_detail_get_input_type::CustomWorldAgentCardDetailGetInput; -use super::custom_world_draft_card_detail_result_type::CustomWorldDraftCardDetailResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct GetCustomWorldAgentCardDetailArgs { - pub input: CustomWorldAgentCardDetailGetInput, -} - -impl __sdk::InModule for GetCustomWorldAgentCardDetailArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `get_custom_world_agent_card_detail`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait get_custom_world_agent_card_detail { - fn get_custom_world_agent_card_detail(&self, input: CustomWorldAgentCardDetailGetInput) { - self.get_custom_world_agent_card_detail_then(input, |_, _| {}); - } - - fn get_custom_world_agent_card_detail_then( - &self, - input: CustomWorldAgentCardDetailGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl get_custom_world_agent_card_detail for super::RemoteProcedures { - fn get_custom_world_agent_card_detail_then( - &self, - input: CustomWorldAgentCardDetailGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, CustomWorldDraftCardDetailResult>( - "get_custom_world_agent_card_detail", - GetCustomWorldAgentCardDetailArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/get_custom_world_agent_operation_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_custom_world_agent_operation_procedure.rs deleted file mode 100644 index 1c4ffd6af..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_custom_world_agent_operation_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_agent_operation_get_input_type::CustomWorldAgentOperationGetInput; -use super::custom_world_agent_operation_procedure_result_type::CustomWorldAgentOperationProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct GetCustomWorldAgentOperationArgs { - pub input: CustomWorldAgentOperationGetInput, -} - -impl __sdk::InModule for GetCustomWorldAgentOperationArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `get_custom_world_agent_operation`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait get_custom_world_agent_operation { - fn get_custom_world_agent_operation(&self, input: CustomWorldAgentOperationGetInput) { - self.get_custom_world_agent_operation_then(input, |_, _| {}); - } - - fn get_custom_world_agent_operation_then( - &self, - input: CustomWorldAgentOperationGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl get_custom_world_agent_operation for super::RemoteProcedures { - fn get_custom_world_agent_operation_then( - &self, - input: CustomWorldAgentOperationGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, CustomWorldAgentOperationProcedureResult>( - "get_custom_world_agent_operation", - GetCustomWorldAgentOperationArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/get_custom_world_agent_session_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_custom_world_agent_session_procedure.rs deleted file mode 100644 index 212987e41..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_custom_world_agent_session_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_agent_session_get_input_type::CustomWorldAgentSessionGetInput; -use super::custom_world_agent_session_procedure_result_type::CustomWorldAgentSessionProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct GetCustomWorldAgentSessionArgs { - pub input: CustomWorldAgentSessionGetInput, -} - -impl __sdk::InModule for GetCustomWorldAgentSessionArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `get_custom_world_agent_session`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait get_custom_world_agent_session { - fn get_custom_world_agent_session(&self, input: CustomWorldAgentSessionGetInput) { - self.get_custom_world_agent_session_then(input, |_, _| {}); - } - - fn get_custom_world_agent_session_then( - &self, - input: CustomWorldAgentSessionGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl get_custom_world_agent_session for super::RemoteProcedures { - fn get_custom_world_agent_session_then( - &self, - input: CustomWorldAgentSessionGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, CustomWorldAgentSessionProcedureResult>( - "get_custom_world_agent_session", - GetCustomWorldAgentSessionArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/get_custom_world_gallery_detail_by_code_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_custom_world_gallery_detail_by_code_procedure.rs deleted file mode 100644 index 24768c431..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_custom_world_gallery_detail_by_code_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_gallery_detail_by_code_input_type::CustomWorldGalleryDetailByCodeInput; -use super::custom_world_library_mutation_result_type::CustomWorldLibraryMutationResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct GetCustomWorldGalleryDetailByCodeArgs { - pub input: CustomWorldGalleryDetailByCodeInput, -} - -impl __sdk::InModule for GetCustomWorldGalleryDetailByCodeArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `get_custom_world_gallery_detail_by_code`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait get_custom_world_gallery_detail_by_code { - fn get_custom_world_gallery_detail_by_code(&self, input: CustomWorldGalleryDetailByCodeInput) { - self.get_custom_world_gallery_detail_by_code_then(input, |_, _| {}); - } - - fn get_custom_world_gallery_detail_by_code_then( - &self, - input: CustomWorldGalleryDetailByCodeInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl get_custom_world_gallery_detail_by_code for super::RemoteProcedures { - fn get_custom_world_gallery_detail_by_code_then( - &self, - input: CustomWorldGalleryDetailByCodeInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, CustomWorldLibraryMutationResult>( - "get_custom_world_gallery_detail_by_code", - GetCustomWorldGalleryDetailByCodeArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/get_custom_world_gallery_detail_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_custom_world_gallery_detail_procedure.rs deleted file mode 100644 index f5127dcfa..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_custom_world_gallery_detail_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_gallery_detail_input_type::CustomWorldGalleryDetailInput; -use super::custom_world_library_mutation_result_type::CustomWorldLibraryMutationResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct GetCustomWorldGalleryDetailArgs { - pub input: CustomWorldGalleryDetailInput, -} - -impl __sdk::InModule for GetCustomWorldGalleryDetailArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `get_custom_world_gallery_detail`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait get_custom_world_gallery_detail { - fn get_custom_world_gallery_detail(&self, input: CustomWorldGalleryDetailInput) { - self.get_custom_world_gallery_detail_then(input, |_, _| {}); - } - - fn get_custom_world_gallery_detail_then( - &self, - input: CustomWorldGalleryDetailInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl get_custom_world_gallery_detail for super::RemoteProcedures { - fn get_custom_world_gallery_detail_then( - &self, - input: CustomWorldGalleryDetailInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, CustomWorldLibraryMutationResult>( - "get_custom_world_gallery_detail", - GetCustomWorldGalleryDetailArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/get_custom_world_library_detail_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_custom_world_library_detail_procedure.rs deleted file mode 100644 index ab99274ae..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_custom_world_library_detail_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_library_detail_input_type::CustomWorldLibraryDetailInput; -use super::custom_world_library_mutation_result_type::CustomWorldLibraryMutationResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct GetCustomWorldLibraryDetailArgs { - pub input: CustomWorldLibraryDetailInput, -} - -impl __sdk::InModule for GetCustomWorldLibraryDetailArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `get_custom_world_library_detail`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait get_custom_world_library_detail { - fn get_custom_world_library_detail(&self, input: CustomWorldLibraryDetailInput) { - self.get_custom_world_library_detail_then(input, |_, _| {}); - } - - fn get_custom_world_library_detail_then( - &self, - input: CustomWorldLibraryDetailInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl get_custom_world_library_detail for super::RemoteProcedures { - fn get_custom_world_library_detail_then( - &self, - input: CustomWorldLibraryDetailInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, CustomWorldLibraryMutationResult>( - "get_custom_world_library_detail", - GetCustomWorldLibraryDetailArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/get_jump_hop_agent_session_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_jump_hop_agent_session_procedure.rs deleted file mode 100644 index fde5cf939..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_jump_hop_agent_session_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::jump_hop_agent_session_get_input_type::JumpHopAgentSessionGetInput; -use super::jump_hop_agent_session_procedure_result_type::JumpHopAgentSessionProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct GetJumpHopAgentSessionArgs { - pub input: JumpHopAgentSessionGetInput, -} - -impl __sdk::InModule for GetJumpHopAgentSessionArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `get_jump_hop_agent_session`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait get_jump_hop_agent_session { - fn get_jump_hop_agent_session(&self, input: JumpHopAgentSessionGetInput) { - self.get_jump_hop_agent_session_then(input, |_, _| {}); - } - - fn get_jump_hop_agent_session_then( - &self, - input: JumpHopAgentSessionGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl get_jump_hop_agent_session for super::RemoteProcedures { - fn get_jump_hop_agent_session_then( - &self, - input: JumpHopAgentSessionGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, JumpHopAgentSessionProcedureResult>( - "get_jump_hop_agent_session", - GetJumpHopAgentSessionArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/get_jump_hop_leaderboard_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_jump_hop_leaderboard_procedure.rs deleted file mode 100644 index 93176d49a..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_jump_hop_leaderboard_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::jump_hop_leaderboard_get_input_type::JumpHopLeaderboardGetInput; -use super::jump_hop_leaderboard_procedure_result_type::JumpHopLeaderboardProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct GetJumpHopLeaderboardArgs { - pub input: JumpHopLeaderboardGetInput, -} - -impl __sdk::InModule for GetJumpHopLeaderboardArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `get_jump_hop_leaderboard`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait get_jump_hop_leaderboard { - fn get_jump_hop_leaderboard(&self, input: JumpHopLeaderboardGetInput) { - self.get_jump_hop_leaderboard_then(input, |_, _| {}); - } - - fn get_jump_hop_leaderboard_then( - &self, - input: JumpHopLeaderboardGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl get_jump_hop_leaderboard for super::RemoteProcedures { - fn get_jump_hop_leaderboard_then( - &self, - input: JumpHopLeaderboardGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, JumpHopLeaderboardProcedureResult>( - "get_jump_hop_leaderboard", - GetJumpHopLeaderboardArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/get_jump_hop_run_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_jump_hop_run_procedure.rs deleted file mode 100644 index 9f641d0fc..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_jump_hop_run_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::jump_hop_run_get_input_type::JumpHopRunGetInput; -use super::jump_hop_run_procedure_result_type::JumpHopRunProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct GetJumpHopRunArgs { - pub input: JumpHopRunGetInput, -} - -impl __sdk::InModule for GetJumpHopRunArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `get_jump_hop_run`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait get_jump_hop_run { - fn get_jump_hop_run(&self, input: JumpHopRunGetInput) { - self.get_jump_hop_run_then(input, |_, _| {}); - } - - fn get_jump_hop_run_then( - &self, - input: JumpHopRunGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl get_jump_hop_run for super::RemoteProcedures { - fn get_jump_hop_run_then( - &self, - input: JumpHopRunGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, JumpHopRunProcedureResult>( - "get_jump_hop_run", - GetJumpHopRunArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/get_jump_hop_work_profile_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_jump_hop_work_profile_procedure.rs deleted file mode 100644 index 62515a287..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_jump_hop_work_profile_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::jump_hop_work_get_input_type::JumpHopWorkGetInput; -use super::jump_hop_work_procedure_result_type::JumpHopWorkProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct GetJumpHopWorkProfileArgs { - pub input: JumpHopWorkGetInput, -} - -impl __sdk::InModule for GetJumpHopWorkProfileArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `get_jump_hop_work_profile`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait get_jump_hop_work_profile { - fn get_jump_hop_work_profile(&self, input: JumpHopWorkGetInput) { - self.get_jump_hop_work_profile_then(input, |_, _| {}); - } - - fn get_jump_hop_work_profile_then( - &self, - input: JumpHopWorkGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl get_jump_hop_work_profile for super::RemoteProcedures { - fn get_jump_hop_work_profile_then( - &self, - input: JumpHopWorkGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, JumpHopWorkProcedureResult>( - "get_jump_hop_work_profile", - GetJumpHopWorkProfileArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/get_match_3_d_agent_session_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_match_3_d_agent_session_procedure.rs deleted file mode 100644 index 62d093b5d..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_match_3_d_agent_session_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::match_3_d_agent_session_get_input_type::Match3DAgentSessionGetInput; -use super::match_3_d_agent_session_procedure_result_type::Match3DAgentSessionProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct GetMatch3DAgentSessionArgs { - pub input: Match3DAgentSessionGetInput, -} - -impl __sdk::InModule for GetMatch3DAgentSessionArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `get_match_3_d_agent_session`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait get_match_3_d_agent_session { - fn get_match_3_d_agent_session(&self, input: Match3DAgentSessionGetInput) { - self.get_match_3_d_agent_session_then(input, |_, _| {}); - } - - fn get_match_3_d_agent_session_then( - &self, - input: Match3DAgentSessionGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl get_match_3_d_agent_session for super::RemoteProcedures { - fn get_match_3_d_agent_session_then( - &self, - input: Match3DAgentSessionGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, Match3DAgentSessionProcedureResult>( - "get_match_3_d_agent_session", - GetMatch3DAgentSessionArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/get_match_3_d_run_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_match_3_d_run_procedure.rs deleted file mode 100644 index 033e620c9..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_match_3_d_run_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::match_3_d_run_get_input_type::Match3DRunGetInput; -use super::match_3_d_run_procedure_result_type::Match3DRunProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct GetMatch3DRunArgs { - pub input: Match3DRunGetInput, -} - -impl __sdk::InModule for GetMatch3DRunArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `get_match_3_d_run`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait get_match_3_d_run { - fn get_match_3_d_run(&self, input: Match3DRunGetInput) { - self.get_match_3_d_run_then(input, |_, _| {}); - } - - fn get_match_3_d_run_then( - &self, - input: Match3DRunGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl get_match_3_d_run for super::RemoteProcedures { - fn get_match_3_d_run_then( - &self, - input: Match3DRunGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, Match3DRunProcedureResult>( - "get_match_3_d_run", - GetMatch3DRunArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/get_match_3_d_work_detail_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_match_3_d_work_detail_procedure.rs deleted file mode 100644 index 5a74982b4..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_match_3_d_work_detail_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::match_3_d_work_get_input_type::Match3DWorkGetInput; -use super::match_3_d_work_procedure_result_type::Match3DWorkProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct GetMatch3DWorkDetailArgs { - pub input: Match3DWorkGetInput, -} - -impl __sdk::InModule for GetMatch3DWorkDetailArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `get_match_3_d_work_detail`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait get_match_3_d_work_detail { - fn get_match_3_d_work_detail(&self, input: Match3DWorkGetInput) { - self.get_match_3_d_work_detail_then(input, |_, _| {}); - } - - fn get_match_3_d_work_detail_then( - &self, - input: Match3DWorkGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl get_match_3_d_work_detail for super::RemoteProcedures { - fn get_match_3_d_work_detail_then( - &self, - input: Match3DWorkGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, Match3DWorkProcedureResult>( - "get_match_3_d_work_detail", - GetMatch3DWorkDetailArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/get_player_progression_or_default_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_player_progression_or_default_procedure.rs deleted file mode 100644 index 97c139fbf..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_player_progression_or_default_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::player_progression_get_input_type::PlayerProgressionGetInput; -use super::player_progression_procedure_result_type::PlayerProgressionProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct GetPlayerProgressionOrDefaultArgs { - pub input: PlayerProgressionGetInput, -} - -impl __sdk::InModule for GetPlayerProgressionOrDefaultArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `get_player_progression_or_default`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait get_player_progression_or_default { - fn get_player_progression_or_default(&self, input: PlayerProgressionGetInput) { - self.get_player_progression_or_default_then(input, |_, _| {}); - } - - fn get_player_progression_or_default_then( - &self, - input: PlayerProgressionGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl get_player_progression_or_default for super::RemoteProcedures { - fn get_player_progression_or_default_then( - &self, - input: PlayerProgressionGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PlayerProgressionProcedureResult>( - "get_player_progression_or_default", - GetPlayerProgressionOrDefaultArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/get_profile_play_stats_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_profile_play_stats_procedure.rs deleted file mode 100644 index 2ad47ed23..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_profile_play_stats_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::runtime_profile_play_stats_get_input_type::RuntimeProfilePlayStatsGetInput; -use super::runtime_profile_play_stats_procedure_result_type::RuntimeProfilePlayStatsProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct GetProfilePlayStatsArgs { - pub input: RuntimeProfilePlayStatsGetInput, -} - -impl __sdk::InModule for GetProfilePlayStatsArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `get_profile_play_stats`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait get_profile_play_stats { - fn get_profile_play_stats(&self, input: RuntimeProfilePlayStatsGetInput) { - self.get_profile_play_stats_then(input, |_, _| {}); - } - - fn get_profile_play_stats_then( - &self, - input: RuntimeProfilePlayStatsGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl get_profile_play_stats for super::RemoteProcedures { - fn get_profile_play_stats_then( - &self, - input: RuntimeProfilePlayStatsGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, RuntimeProfilePlayStatsProcedureResult>( - "get_profile_play_stats", - GetProfilePlayStatsArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/get_puzzle_agent_session_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_puzzle_agent_session_procedure.rs deleted file mode 100644 index 979293827..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_puzzle_agent_session_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_agent_session_get_input_type::PuzzleAgentSessionGetInput; -use super::puzzle_agent_session_procedure_result_type::PuzzleAgentSessionProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct GetPuzzleAgentSessionArgs { - pub input: PuzzleAgentSessionGetInput, -} - -impl __sdk::InModule for GetPuzzleAgentSessionArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `get_puzzle_agent_session`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait get_puzzle_agent_session { - fn get_puzzle_agent_session(&self, input: PuzzleAgentSessionGetInput) { - self.get_puzzle_agent_session_then(input, |_, _| {}); - } - - fn get_puzzle_agent_session_then( - &self, - input: PuzzleAgentSessionGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl get_puzzle_agent_session for super::RemoteProcedures { - fn get_puzzle_agent_session_then( - &self, - input: PuzzleAgentSessionGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleAgentSessionProcedureResult>( - "get_puzzle_agent_session", - GetPuzzleAgentSessionArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/get_puzzle_clear_agent_session_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_puzzle_clear_agent_session_procedure.rs deleted file mode 100644 index a4d8c2549..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_puzzle_clear_agent_session_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_clear_agent_session_get_input_type::PuzzleClearAgentSessionGetInput; -use super::puzzle_clear_agent_session_procedure_result_type::PuzzleClearAgentSessionProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct GetPuzzleClearAgentSessionArgs { - pub input: PuzzleClearAgentSessionGetInput, -} - -impl __sdk::InModule for GetPuzzleClearAgentSessionArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `get_puzzle_clear_agent_session`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait get_puzzle_clear_agent_session { - fn get_puzzle_clear_agent_session(&self, input: PuzzleClearAgentSessionGetInput) { - self.get_puzzle_clear_agent_session_then(input, |_, _| {}); - } - - fn get_puzzle_clear_agent_session_then( - &self, - input: PuzzleClearAgentSessionGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl get_puzzle_clear_agent_session for super::RemoteProcedures { - fn get_puzzle_clear_agent_session_then( - &self, - input: PuzzleClearAgentSessionGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleClearAgentSessionProcedureResult>( - "get_puzzle_clear_agent_session", - GetPuzzleClearAgentSessionArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/get_puzzle_clear_runtime_run_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_puzzle_clear_runtime_run_procedure.rs deleted file mode 100644 index 7ab18b5fe..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_puzzle_clear_runtime_run_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_clear_run_get_input_type::PuzzleClearRunGetInput; -use super::puzzle_clear_run_procedure_result_type::PuzzleClearRunProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct GetPuzzleClearRuntimeRunArgs { - pub input: PuzzleClearRunGetInput, -} - -impl __sdk::InModule for GetPuzzleClearRuntimeRunArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `get_puzzle_clear_runtime_run`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait get_puzzle_clear_runtime_run { - fn get_puzzle_clear_runtime_run(&self, input: PuzzleClearRunGetInput) { - self.get_puzzle_clear_runtime_run_then(input, |_, _| {}); - } - - fn get_puzzle_clear_runtime_run_then( - &self, - input: PuzzleClearRunGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl get_puzzle_clear_runtime_run for super::RemoteProcedures { - fn get_puzzle_clear_runtime_run_then( - &self, - input: PuzzleClearRunGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleClearRunProcedureResult>( - "get_puzzle_clear_runtime_run", - GetPuzzleClearRuntimeRunArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/get_puzzle_clear_work_profile_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_puzzle_clear_work_profile_procedure.rs deleted file mode 100644 index 8e3921ab4..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_puzzle_clear_work_profile_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_clear_work_get_input_type::PuzzleClearWorkGetInput; -use super::puzzle_clear_work_procedure_result_type::PuzzleClearWorkProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct GetPuzzleClearWorkProfileArgs { - pub input: PuzzleClearWorkGetInput, -} - -impl __sdk::InModule for GetPuzzleClearWorkProfileArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `get_puzzle_clear_work_profile`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait get_puzzle_clear_work_profile { - fn get_puzzle_clear_work_profile(&self, input: PuzzleClearWorkGetInput) { - self.get_puzzle_clear_work_profile_then(input, |_, _| {}); - } - - fn get_puzzle_clear_work_profile_then( - &self, - input: PuzzleClearWorkGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl get_puzzle_clear_work_profile for super::RemoteProcedures { - fn get_puzzle_clear_work_profile_then( - &self, - input: PuzzleClearWorkGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleClearWorkProcedureResult>( - "get_puzzle_clear_work_profile", - GetPuzzleClearWorkProfileArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/get_puzzle_gallery_detail_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_puzzle_gallery_detail_procedure.rs deleted file mode 100644 index a1471eb32..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_puzzle_gallery_detail_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_work_get_input_type::PuzzleWorkGetInput; -use super::puzzle_work_procedure_result_type::PuzzleWorkProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct GetPuzzleGalleryDetailArgs { - pub input: PuzzleWorkGetInput, -} - -impl __sdk::InModule for GetPuzzleGalleryDetailArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `get_puzzle_gallery_detail`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait get_puzzle_gallery_detail { - fn get_puzzle_gallery_detail(&self, input: PuzzleWorkGetInput) { - self.get_puzzle_gallery_detail_then(input, |_, _| {}); - } - - fn get_puzzle_gallery_detail_then( - &self, - input: PuzzleWorkGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl get_puzzle_gallery_detail for super::RemoteProcedures { - fn get_puzzle_gallery_detail_then( - &self, - input: PuzzleWorkGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleWorkProcedureResult>( - "get_puzzle_gallery_detail", - GetPuzzleGalleryDetailArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/get_puzzle_run_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_puzzle_run_procedure.rs deleted file mode 100644 index 2db5ab66a..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_puzzle_run_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_run_get_input_type::PuzzleRunGetInput; -use super::puzzle_run_procedure_result_type::PuzzleRunProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct GetPuzzleRunArgs { - pub input: PuzzleRunGetInput, -} - -impl __sdk::InModule for GetPuzzleRunArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `get_puzzle_run`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait get_puzzle_run { - fn get_puzzle_run(&self, input: PuzzleRunGetInput) { - self.get_puzzle_run_then(input, |_, _| {}); - } - - fn get_puzzle_run_then( - &self, - input: PuzzleRunGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl get_puzzle_run for super::RemoteProcedures { - fn get_puzzle_run_then( - &self, - input: PuzzleRunGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleRunProcedureResult>( - "get_puzzle_run", - GetPuzzleRunArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/get_puzzle_work_detail_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_puzzle_work_detail_procedure.rs deleted file mode 100644 index d36c74171..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_puzzle_work_detail_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_work_get_input_type::PuzzleWorkGetInput; -use super::puzzle_work_procedure_result_type::PuzzleWorkProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct GetPuzzleWorkDetailArgs { - pub input: PuzzleWorkGetInput, -} - -impl __sdk::InModule for GetPuzzleWorkDetailArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `get_puzzle_work_detail`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait get_puzzle_work_detail { - fn get_puzzle_work_detail(&self, input: PuzzleWorkGetInput) { - self.get_puzzle_work_detail_then(input, |_, _| {}); - } - - fn get_puzzle_work_detail_then( - &self, - input: PuzzleWorkGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl get_puzzle_work_detail for super::RemoteProcedures { - fn get_puzzle_work_detail_then( - &self, - input: PuzzleWorkGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleWorkProcedureResult>( - "get_puzzle_work_detail", - GetPuzzleWorkDetailArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/get_runtime_inventory_state_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_runtime_inventory_state_procedure.rs deleted file mode 100644 index abbf4f20a..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_runtime_inventory_state_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::runtime_inventory_state_procedure_result_type::RuntimeInventoryStateProcedureResult; -use super::runtime_inventory_state_query_input_type::RuntimeInventoryStateQueryInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct GetRuntimeInventoryStateArgs { - pub input: RuntimeInventoryStateQueryInput, -} - -impl __sdk::InModule for GetRuntimeInventoryStateArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `get_runtime_inventory_state`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait get_runtime_inventory_state { - fn get_runtime_inventory_state(&self, input: RuntimeInventoryStateQueryInput) { - self.get_runtime_inventory_state_then(input, |_, _| {}); - } - - fn get_runtime_inventory_state_then( - &self, - input: RuntimeInventoryStateQueryInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl get_runtime_inventory_state for super::RemoteProcedures { - fn get_runtime_inventory_state_then( - &self, - input: RuntimeInventoryStateQueryInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, RuntimeInventoryStateProcedureResult>( - "get_runtime_inventory_state", - GetRuntimeInventoryStateArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/get_runtime_snapshot_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_runtime_snapshot_procedure.rs deleted file mode 100644 index 989fa40e0..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_runtime_snapshot_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::runtime_snapshot_get_input_type::RuntimeSnapshotGetInput; -use super::runtime_snapshot_procedure_result_type::RuntimeSnapshotProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct GetRuntimeSnapshotArgs { - pub input: RuntimeSnapshotGetInput, -} - -impl __sdk::InModule for GetRuntimeSnapshotArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `get_runtime_snapshot`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait get_runtime_snapshot { - fn get_runtime_snapshot(&self, input: RuntimeSnapshotGetInput) { - self.get_runtime_snapshot_then(input, |_, _| {}); - } - - fn get_runtime_snapshot_then( - &self, - input: RuntimeSnapshotGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl get_runtime_snapshot for super::RemoteProcedures { - fn get_runtime_snapshot_then( - &self, - input: RuntimeSnapshotGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, RuntimeSnapshotProcedureResult>( - "get_runtime_snapshot", - GetRuntimeSnapshotArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/get_square_hole_agent_session_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_square_hole_agent_session_procedure.rs deleted file mode 100644 index 46a172805..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_square_hole_agent_session_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::square_hole_agent_session_get_input_type::SquareHoleAgentSessionGetInput; -use super::square_hole_agent_session_procedure_result_type::SquareHoleAgentSessionProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct GetSquareHoleAgentSessionArgs { - pub input: SquareHoleAgentSessionGetInput, -} - -impl __sdk::InModule for GetSquareHoleAgentSessionArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `get_square_hole_agent_session`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait get_square_hole_agent_session { - fn get_square_hole_agent_session(&self, input: SquareHoleAgentSessionGetInput) { - self.get_square_hole_agent_session_then(input, |_, _| {}); - } - - fn get_square_hole_agent_session_then( - &self, - input: SquareHoleAgentSessionGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl get_square_hole_agent_session for super::RemoteProcedures { - fn get_square_hole_agent_session_then( - &self, - input: SquareHoleAgentSessionGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, SquareHoleAgentSessionProcedureResult>( - "get_square_hole_agent_session", - GetSquareHoleAgentSessionArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/get_square_hole_run_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_square_hole_run_procedure.rs deleted file mode 100644 index 6dabdb923..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_square_hole_run_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::square_hole_run_get_input_type::SquareHoleRunGetInput; -use super::square_hole_run_procedure_result_type::SquareHoleRunProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct GetSquareHoleRunArgs { - pub input: SquareHoleRunGetInput, -} - -impl __sdk::InModule for GetSquareHoleRunArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `get_square_hole_run`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait get_square_hole_run { - fn get_square_hole_run(&self, input: SquareHoleRunGetInput) { - self.get_square_hole_run_then(input, |_, _| {}); - } - - fn get_square_hole_run_then( - &self, - input: SquareHoleRunGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl get_square_hole_run for super::RemoteProcedures { - fn get_square_hole_run_then( - &self, - input: SquareHoleRunGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, SquareHoleRunProcedureResult>( - "get_square_hole_run", - GetSquareHoleRunArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/get_square_hole_work_detail_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_square_hole_work_detail_procedure.rs deleted file mode 100644 index 78812cf70..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_square_hole_work_detail_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::square_hole_work_get_input_type::SquareHoleWorkGetInput; -use super::square_hole_work_procedure_result_type::SquareHoleWorkProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct GetSquareHoleWorkDetailArgs { - pub input: SquareHoleWorkGetInput, -} - -impl __sdk::InModule for GetSquareHoleWorkDetailArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `get_square_hole_work_detail`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait get_square_hole_work_detail { - fn get_square_hole_work_detail(&self, input: SquareHoleWorkGetInput) { - self.get_square_hole_work_detail_then(input, |_, _| {}); - } - - fn get_square_hole_work_detail_then( - &self, - input: SquareHoleWorkGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl get_square_hole_work_detail for super::RemoteProcedures { - fn get_square_hole_work_detail_then( - &self, - input: SquareHoleWorkGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, SquareHoleWorkProcedureResult>( - "get_square_hole_work_detail", - GetSquareHoleWorkDetailArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/get_story_session_state_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_story_session_state_procedure.rs deleted file mode 100644 index 7e566dc98..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_story_session_state_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::story_session_state_input_type::StorySessionStateInput; -use super::story_session_state_procedure_result_type::StorySessionStateProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct GetStorySessionStateArgs { - pub input: StorySessionStateInput, -} - -impl __sdk::InModule for GetStorySessionStateArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `get_story_session_state`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait get_story_session_state { - fn get_story_session_state(&self, input: StorySessionStateInput) { - self.get_story_session_state_then(input, |_, _| {}); - } - - fn get_story_session_state_then( - &self, - input: StorySessionStateInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl get_story_session_state for super::RemoteProcedures { - fn get_story_session_state_then( - &self, - input: StorySessionStateInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, StorySessionStateProcedureResult>( - "get_story_session_state", - GetStorySessionStateArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/get_visual_novel_agent_session_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_visual_novel_agent_session_procedure.rs deleted file mode 100644 index 7b50fd298..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_visual_novel_agent_session_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::visual_novel_agent_session_get_input_type::VisualNovelAgentSessionGetInput; -use super::visual_novel_agent_session_procedure_result_type::VisualNovelAgentSessionProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct GetVisualNovelAgentSessionArgs { - pub input: VisualNovelAgentSessionGetInput, -} - -impl __sdk::InModule for GetVisualNovelAgentSessionArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `get_visual_novel_agent_session`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait get_visual_novel_agent_session { - fn get_visual_novel_agent_session(&self, input: VisualNovelAgentSessionGetInput) { - self.get_visual_novel_agent_session_then(input, |_, _| {}); - } - - fn get_visual_novel_agent_session_then( - &self, - input: VisualNovelAgentSessionGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl get_visual_novel_agent_session for super::RemoteProcedures { - fn get_visual_novel_agent_session_then( - &self, - input: VisualNovelAgentSessionGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, VisualNovelAgentSessionProcedureResult>( - "get_visual_novel_agent_session", - GetVisualNovelAgentSessionArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/get_visual_novel_run_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_visual_novel_run_procedure.rs deleted file mode 100644 index 702737fdc..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_visual_novel_run_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::visual_novel_run_get_input_type::VisualNovelRunGetInput; -use super::visual_novel_run_procedure_result_type::VisualNovelRunProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct GetVisualNovelRunArgs { - pub input: VisualNovelRunGetInput, -} - -impl __sdk::InModule for GetVisualNovelRunArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `get_visual_novel_run`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait get_visual_novel_run { - fn get_visual_novel_run(&self, input: VisualNovelRunGetInput) { - self.get_visual_novel_run_then(input, |_, _| {}); - } - - fn get_visual_novel_run_then( - &self, - input: VisualNovelRunGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl get_visual_novel_run for super::RemoteProcedures { - fn get_visual_novel_run_then( - &self, - input: VisualNovelRunGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, VisualNovelRunProcedureResult>( - "get_visual_novel_run", - GetVisualNovelRunArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/get_visual_novel_work_detail_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_visual_novel_work_detail_procedure.rs deleted file mode 100644 index 373121fcc..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_visual_novel_work_detail_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::visual_novel_work_get_input_type::VisualNovelWorkGetInput; -use super::visual_novel_work_procedure_result_type::VisualNovelWorkProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct GetVisualNovelWorkDetailArgs { - pub input: VisualNovelWorkGetInput, -} - -impl __sdk::InModule for GetVisualNovelWorkDetailArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `get_visual_novel_work_detail`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait get_visual_novel_work_detail { - fn get_visual_novel_work_detail(&self, input: VisualNovelWorkGetInput) { - self.get_visual_novel_work_detail_then(input, |_, _| {}); - } - - fn get_visual_novel_work_detail_then( - &self, - input: VisualNovelWorkGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl get_visual_novel_work_detail for super::RemoteProcedures { - fn get_visual_novel_work_detail_then( - &self, - input: VisualNovelWorkGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, VisualNovelWorkProcedureResult>( - "get_visual_novel_work_detail", - GetVisualNovelWorkDetailArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/get_wooden_fish_agent_session_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_wooden_fish_agent_session_procedure.rs deleted file mode 100644 index 8d1983530..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_wooden_fish_agent_session_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::wooden_fish_agent_session_get_input_type::WoodenFishAgentSessionGetInput; -use super::wooden_fish_agent_session_procedure_result_type::WoodenFishAgentSessionProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct GetWoodenFishAgentSessionArgs { - pub input: WoodenFishAgentSessionGetInput, -} - -impl __sdk::InModule for GetWoodenFishAgentSessionArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `get_wooden_fish_agent_session`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait get_wooden_fish_agent_session { - fn get_wooden_fish_agent_session(&self, input: WoodenFishAgentSessionGetInput) { - self.get_wooden_fish_agent_session_then(input, |_, _| {}); - } - - fn get_wooden_fish_agent_session_then( - &self, - input: WoodenFishAgentSessionGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl get_wooden_fish_agent_session for super::RemoteProcedures { - fn get_wooden_fish_agent_session_then( - &self, - input: WoodenFishAgentSessionGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, WoodenFishAgentSessionProcedureResult>( - "get_wooden_fish_agent_session", - GetWoodenFishAgentSessionArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/get_wooden_fish_run_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_wooden_fish_run_procedure.rs deleted file mode 100644 index bb381e482..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_wooden_fish_run_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::wooden_fish_run_get_input_type::WoodenFishRunGetInput; -use super::wooden_fish_run_procedure_result_type::WoodenFishRunProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct GetWoodenFishRunArgs { - pub input: WoodenFishRunGetInput, -} - -impl __sdk::InModule for GetWoodenFishRunArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `get_wooden_fish_run`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait get_wooden_fish_run { - fn get_wooden_fish_run(&self, input: WoodenFishRunGetInput) { - self.get_wooden_fish_run_then(input, |_, _| {}); - } - - fn get_wooden_fish_run_then( - &self, - input: WoodenFishRunGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl get_wooden_fish_run for super::RemoteProcedures { - fn get_wooden_fish_run_then( - &self, - input: WoodenFishRunGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, WoodenFishRunProcedureResult>( - "get_wooden_fish_run", - GetWoodenFishRunArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/get_wooden_fish_work_profile_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_wooden_fish_work_profile_procedure.rs deleted file mode 100644 index 1621290a7..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_wooden_fish_work_profile_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::wooden_fish_work_get_input_type::WoodenFishWorkGetInput; -use super::wooden_fish_work_procedure_result_type::WoodenFishWorkProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct GetWoodenFishWorkProfileArgs { - pub input: WoodenFishWorkGetInput, -} - -impl __sdk::InModule for GetWoodenFishWorkProfileArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `get_wooden_fish_work_profile`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait get_wooden_fish_work_profile { - fn get_wooden_fish_work_profile(&self, input: WoodenFishWorkGetInput) { - self.get_wooden_fish_work_profile_then(input, |_, _| {}); - } - - fn get_wooden_fish_work_profile_then( - &self, - input: WoodenFishWorkGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl get_wooden_fish_work_profile for super::RemoteProcedures { - fn get_wooden_fish_work_profile_then( - &self, - input: WoodenFishWorkGetInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, WoodenFishWorkProcedureResult>( - "get_wooden_fish_work_profile", - GetWoodenFishWorkProfileArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/grant_inventory_item_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/grant_inventory_item_input_type.rs deleted file mode 100644 index 553aff65b..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/grant_inventory_item_input_type.rs +++ /dev/null @@ -1,18 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::inventory_item_snapshot_type::InventoryItemSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct GrantInventoryItemInput { - pub slot_id: String, - pub item: InventoryItemSnapshot, -} - -impl __sdk::InModule for GrantInventoryItemInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/grant_player_progression_experience_and_return_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/grant_player_progression_experience_and_return_procedure.rs deleted file mode 100644 index 4c67da630..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/grant_player_progression_experience_and_return_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::player_progression_grant_input_type::PlayerProgressionGrantInput; -use super::player_progression_procedure_result_type::PlayerProgressionProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct GrantPlayerProgressionExperienceAndReturnArgs { - pub input: PlayerProgressionGrantInput, -} - -impl __sdk::InModule for GrantPlayerProgressionExperienceAndReturnArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `grant_player_progression_experience_and_return`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait grant_player_progression_experience_and_return { - fn grant_player_progression_experience_and_return(&self, input: PlayerProgressionGrantInput) { - self.grant_player_progression_experience_and_return_then(input, |_, _| {}); - } - - fn grant_player_progression_experience_and_return_then( - &self, - input: PlayerProgressionGrantInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl grant_player_progression_experience_and_return for super::RemoteProcedures { - fn grant_player_progression_experience_and_return_then( - &self, - input: PlayerProgressionGrantInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PlayerProgressionProcedureResult>( - "grant_player_progression_experience_and_return", - GrantPlayerProgressionExperienceAndReturnArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/grant_player_progression_experience_reducer.rs b/server-rs/crates/spacetime-client/src/module_bindings/grant_player_progression_experience_reducer.rs deleted file mode 100644 index 83b48cf76..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/grant_player_progression_experience_reducer.rs +++ /dev/null @@ -1,71 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::player_progression_grant_input_type::PlayerProgressionGrantInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct GrantPlayerProgressionExperienceArgs { - pub input: PlayerProgressionGrantInput, -} - -impl From for super::Reducer { - fn from(args: GrantPlayerProgressionExperienceArgs) -> Self { - Self::GrantPlayerProgressionExperience { input: args.input } - } -} - -impl __sdk::InModule for GrantPlayerProgressionExperienceArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `grant_player_progression_experience`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait grant_player_progression_experience { - /// Request that the remote module invoke the reducer `grant_player_progression_experience` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`grant_player_progression_experience:grant_player_progression_experience_then`] to run a callback after the reducer completes. - fn grant_player_progression_experience( - &self, - input: PlayerProgressionGrantInput, - ) -> __sdk::Result<()> { - self.grant_player_progression_experience_then(input, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `grant_player_progression_experience` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn grant_player_progression_experience_then( - &self, - input: PlayerProgressionGrantInput, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl grant_player_progression_experience for super::RemoteReducers { - fn grant_player_progression_experience_then( - &self, - input: PlayerProgressionGrantInput, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(GrantPlayerProgressionExperienceArgs { input }, callback) - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/inventory_item_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/inventory_item_snapshot_type.rs deleted file mode 100644 index 3769735eb..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/inventory_item_snapshot_type.rs +++ /dev/null @@ -1,30 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::inventory_equipment_slot_type::InventoryEquipmentSlot; -use super::inventory_item_rarity_type::InventoryItemRarity; -use super::inventory_item_source_kind_type::InventoryItemSourceKind; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct InventoryItemSnapshot { - pub item_id: String, - pub category: String, - pub name: String, - pub description: Option, - pub quantity: u32, - pub rarity: InventoryItemRarity, - pub tags: Vec, - pub stackable: bool, - pub stack_key: String, - pub equipment_slot_id: Option, - pub source_kind: InventoryItemSourceKind, - pub source_reference_id: Option, -} - -impl __sdk::InModule for InventoryItemSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/inventory_mutation_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/inventory_mutation_input_type.rs deleted file mode 100644 index 3540ad3b1..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/inventory_mutation_input_type.rs +++ /dev/null @@ -1,22 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::inventory_mutation_type::InventoryMutation; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct InventoryMutationInput { - pub mutation_id: String, - pub runtime_session_id: String, - pub story_session_id: Option, - pub actor_user_id: String, - pub mutation: InventoryMutation, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for InventoryMutationInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/inventory_mutation_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/inventory_mutation_type.rs deleted file mode 100644 index 3d0d0e4fd..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/inventory_mutation_type.rs +++ /dev/null @@ -1,26 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::consume_inventory_item_input_type::ConsumeInventoryItemInput; -use super::equip_inventory_item_input_type::EquipInventoryItemInput; -use super::grant_inventory_item_input_type::GrantInventoryItemInput; -use super::unequip_inventory_item_input_type::UnequipInventoryItemInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub enum InventoryMutation { - GrantItem(GrantInventoryItemInput), - - ConsumeItem(ConsumeInventoryItemInput), - - EquipItem(EquipInventoryItemInput), - - UnequipItem(UnequipInventoryItemInput), -} - -impl __sdk::InModule for InventoryMutation { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/inventory_slot_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/inventory_slot_snapshot_type.rs deleted file mode 100644 index f20e54518..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/inventory_slot_snapshot_type.rs +++ /dev/null @@ -1,39 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::inventory_container_kind_type::InventoryContainerKind; -use super::inventory_equipment_slot_type::InventoryEquipmentSlot; -use super::inventory_item_rarity_type::InventoryItemRarity; -use super::inventory_item_source_kind_type::InventoryItemSourceKind; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct InventorySlotSnapshot { - pub slot_id: String, - pub runtime_session_id: String, - pub story_session_id: Option, - pub actor_user_id: String, - pub container_kind: InventoryContainerKind, - pub slot_key: String, - pub item_id: String, - pub category: String, - pub name: String, - pub description: Option, - pub quantity: u32, - pub rarity: InventoryItemRarity, - pub tags: Vec, - pub stackable: bool, - pub stack_key: String, - pub equipment_slot_id: Option, - pub source_kind: InventoryItemSourceKind, - pub source_reference_id: Option, - pub created_at_micros: i64, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for InventorySlotSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_agent_session_create_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_agent_session_create_input_type.rs deleted file mode 100644 index 14e2f410f..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_agent_session_create_input_type.rs +++ /dev/null @@ -1,23 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct JumpHopAgentSessionCreateInput { - pub session_id: String, - pub owner_user_id: String, - pub seed_text: String, - pub work_title: String, - pub work_description: String, - pub theme_tags_json: Option, - pub welcome_message_text: String, - pub config_json: Option, - pub created_at_micros: i64, -} - -impl __sdk::InModule for JumpHopAgentSessionCreateInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_agent_session_get_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_agent_session_get_input_type.rs deleted file mode 100644 index cf6b9b5da..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_agent_session_get_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct JumpHopAgentSessionGetInput { - pub session_id: String, - pub owner_user_id: String, -} - -impl __sdk::InModule for JumpHopAgentSessionGetInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_agent_session_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_agent_session_procedure_result_type.rs deleted file mode 100644 index 1d833be00..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_agent_session_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::jump_hop_agent_session_snapshot_type::JumpHopAgentSessionSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct JumpHopAgentSessionProcedureResult { - pub ok: bool, - pub session: Option, - pub error_message: Option, -} - -impl __sdk::InModule for JumpHopAgentSessionProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_agent_session_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_agent_session_snapshot_type.rs deleted file mode 100644 index aaaacacc5..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_agent_session_snapshot_type.rs +++ /dev/null @@ -1,29 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::jump_hop_creator_config_snapshot_type::JumpHopCreatorConfigSnapshot; -use super::jump_hop_draft_snapshot_type::JumpHopDraftSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct JumpHopAgentSessionSnapshot { - pub session_id: String, - pub owner_user_id: String, - pub seed_text: String, - pub current_turn: u32, - pub progress_percent: u32, - pub stage: String, - pub config: JumpHopCreatorConfigSnapshot, - pub draft: Option, - pub last_assistant_reply: String, - pub published_profile_id: Option, - pub created_at_micros: i64, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for JumpHopAgentSessionSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_character_asset_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_character_asset_snapshot_type.rs deleted file mode 100644 index e562198fb..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_character_asset_snapshot_type.rs +++ /dev/null @@ -1,22 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct JumpHopCharacterAssetSnapshot { - pub asset_id: String, - pub image_src: String, - pub image_object_key: String, - pub asset_object_id: String, - pub generation_provider: String, - pub prompt: String, - pub width: u32, - pub height: u32, -} - -impl __sdk::InModule for JumpHopCharacterAssetSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_creator_config_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_creator_config_snapshot_type.rs deleted file mode 100644 index 6d0f3738f..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_creator_config_snapshot_type.rs +++ /dev/null @@ -1,20 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct JumpHopCreatorConfigSnapshot { - pub theme_text: String, - pub difficulty: String, - pub style_preset: String, - pub character_prompt: String, - pub tile_prompt: String, - pub end_mood_prompt: String, -} - -impl __sdk::InModule for JumpHopCreatorConfigSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_difficulty_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_difficulty_type.rs deleted file mode 100644 index 4e89783cb..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_difficulty_type.rs +++ /dev/null @@ -1,22 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -#[derive(Copy, Eq, Hash)] -pub enum JumpHopDifficulty { - Easy, - - Standard, - - Advanced, - - Challenge, -} - -impl __sdk::InModule for JumpHopDifficulty { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_draft_compile_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_draft_compile_input_type.rs deleted file mode 100644 index df9575f0b..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_draft_compile_input_type.rs +++ /dev/null @@ -1,35 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct JumpHopDraftCompileInput { - pub session_id: String, - pub owner_user_id: String, - pub profile_id: String, - pub author_display_name: String, - pub seed_text: String, - pub work_title: String, - pub work_description: String, - pub theme_tags_json: Option, - pub theme_text: Option, - pub difficulty: Option, - pub style_preset: Option, - pub character_prompt: Option, - pub tile_prompt: Option, - pub end_mood_prompt: Option, - pub character_asset_json: Option, - pub tile_atlas_asset_json: Option, - pub tile_assets_json: Option, - pub cover_composite: Option, - pub back_button_asset_json: Option, - pub generation_status: Option, - pub compiled_at_micros: i64, -} - -impl __sdk::InModule for JumpHopDraftCompileInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_draft_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_draft_snapshot_type.rs deleted file mode 100644 index adfeae68b..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_draft_snapshot_type.rs +++ /dev/null @@ -1,37 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::jump_hop_character_asset_snapshot_type::JumpHopCharacterAssetSnapshot; -use super::jump_hop_path_type::JumpHopPath; -use super::jump_hop_tile_asset_snapshot_type::JumpHopTileAssetSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct JumpHopDraftSnapshot { - pub template_id: String, - pub template_name: String, - pub profile_id: Option, - pub theme_text: String, - pub work_title: String, - pub work_description: String, - pub theme_tags: Vec, - pub difficulty: String, - pub style_preset: String, - pub character_prompt: String, - pub tile_prompt: String, - pub end_mood_prompt: Option, - pub character_asset: Option, - pub tile_atlas_asset: Option, - pub tile_assets: Vec, - pub path: Option, - pub cover_composite: Option, - pub back_button_asset: Option, - pub generation_status: String, -} - -impl __sdk::InModule for JumpHopDraftSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_gallery_card_view_row_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_gallery_card_view_row_type.rs deleted file mode 100644 index 011228e14..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_gallery_card_view_row_type.rs +++ /dev/null @@ -1,85 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct JumpHopGalleryCardViewRow { - pub public_work_code: String, - pub work_id: String, - pub profile_id: String, - pub owner_user_id: String, - pub author_display_name: String, - pub theme_text: String, - pub work_title: String, - pub work_description: String, - pub theme_tags: Vec, - pub difficulty: String, - pub style_preset: String, - pub cover_image_src: String, - pub publication_status: String, - pub play_count: u32, - pub updated_at_micros: i64, - pub published_at_micros: Option, - pub generation_status: String, -} - -impl __sdk::InModule for JumpHopGalleryCardViewRow { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `JumpHopGalleryCardViewRow`. -/// -/// Provides typed access to columns for query building. -pub struct JumpHopGalleryCardViewRowCols { - pub public_work_code: __sdk::__query_builder::Col, - pub work_id: __sdk::__query_builder::Col, - pub profile_id: __sdk::__query_builder::Col, - pub owner_user_id: __sdk::__query_builder::Col, - pub author_display_name: __sdk::__query_builder::Col, - pub theme_text: __sdk::__query_builder::Col, - pub work_title: __sdk::__query_builder::Col, - pub work_description: __sdk::__query_builder::Col, - pub theme_tags: __sdk::__query_builder::Col>, - pub difficulty: __sdk::__query_builder::Col, - pub style_preset: __sdk::__query_builder::Col, - pub cover_image_src: __sdk::__query_builder::Col, - pub publication_status: __sdk::__query_builder::Col, - pub play_count: __sdk::__query_builder::Col, - pub updated_at_micros: __sdk::__query_builder::Col, - pub published_at_micros: __sdk::__query_builder::Col>, - pub generation_status: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for JumpHopGalleryCardViewRow { - type Cols = JumpHopGalleryCardViewRowCols; - fn cols(table_name: &'static str) -> Self::Cols { - JumpHopGalleryCardViewRowCols { - public_work_code: __sdk::__query_builder::Col::new(table_name, "public_work_code"), - work_id: __sdk::__query_builder::Col::new(table_name, "work_id"), - profile_id: __sdk::__query_builder::Col::new(table_name, "profile_id"), - owner_user_id: __sdk::__query_builder::Col::new(table_name, "owner_user_id"), - author_display_name: __sdk::__query_builder::Col::new( - table_name, - "author_display_name", - ), - theme_text: __sdk::__query_builder::Col::new(table_name, "theme_text"), - work_title: __sdk::__query_builder::Col::new(table_name, "work_title"), - work_description: __sdk::__query_builder::Col::new(table_name, "work_description"), - theme_tags: __sdk::__query_builder::Col::new(table_name, "theme_tags"), - difficulty: __sdk::__query_builder::Col::new(table_name, "difficulty"), - style_preset: __sdk::__query_builder::Col::new(table_name, "style_preset"), - cover_image_src: __sdk::__query_builder::Col::new(table_name, "cover_image_src"), - publication_status: __sdk::__query_builder::Col::new(table_name, "publication_status"), - play_count: __sdk::__query_builder::Col::new(table_name, "play_count"), - updated_at_micros: __sdk::__query_builder::Col::new(table_name, "updated_at_micros"), - published_at_micros: __sdk::__query_builder::Col::new( - table_name, - "published_at_micros", - ), - generation_status: __sdk::__query_builder::Col::new(table_name, "generation_status"), - } - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_gallery_card_view_table.rs b/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_gallery_card_view_table.rs deleted file mode 100644 index 719ad4772..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_gallery_card_view_table.rs +++ /dev/null @@ -1,118 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::jump_hop_gallery_card_view_row_type::JumpHopGalleryCardViewRow; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `jump_hop_gallery_card_view`. -/// -/// Obtain a handle from the [`JumpHopGalleryCardViewTableAccess::jump_hop_gallery_card_view`] method on [`super::RemoteTables`], -/// like `ctx.db.jump_hop_gallery_card_view()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.jump_hop_gallery_card_view().on_insert(...)`. -pub struct JumpHopGalleryCardViewTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `jump_hop_gallery_card_view`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait JumpHopGalleryCardViewTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`JumpHopGalleryCardViewTableHandle`], which mediates access to the table `jump_hop_gallery_card_view`. - fn jump_hop_gallery_card_view(&self) -> JumpHopGalleryCardViewTableHandle<'_>; -} - -impl JumpHopGalleryCardViewTableAccess for super::RemoteTables { - fn jump_hop_gallery_card_view(&self) -> JumpHopGalleryCardViewTableHandle<'_> { - JumpHopGalleryCardViewTableHandle { - imp: self - .imp - .get_table::("jump_hop_gallery_card_view"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct JumpHopGalleryCardViewInsertCallbackId(__sdk::CallbackId); -pub struct JumpHopGalleryCardViewDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::Table for JumpHopGalleryCardViewTableHandle<'ctx> { - type Row = JumpHopGalleryCardViewRow; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = JumpHopGalleryCardViewInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> JumpHopGalleryCardViewInsertCallbackId { - JumpHopGalleryCardViewInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: JumpHopGalleryCardViewInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = JumpHopGalleryCardViewDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> JumpHopGalleryCardViewDeleteCallbackId { - JumpHopGalleryCardViewDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: JumpHopGalleryCardViewDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = - client_cache.get_or_make_table::("jump_hop_gallery_card_view"); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `JumpHopGalleryCardViewRow`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait jump_hop_gallery_card_viewQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `JumpHopGalleryCardViewRow`. - fn jump_hop_gallery_card_view( - &self, - ) -> __sdk::__query_builder::Table; -} - -impl jump_hop_gallery_card_viewQueryTableAccess for __sdk::QueryTableAccessor { - fn jump_hop_gallery_card_view( - &self, - ) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("jump_hop_gallery_card_view") - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_gallery_view_row_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_gallery_view_row_type.rs deleted file mode 100644 index cadb77268..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_gallery_view_row_type.rs +++ /dev/null @@ -1,119 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::jump_hop_character_asset_snapshot_type::JumpHopCharacterAssetSnapshot; -use super::jump_hop_path_type::JumpHopPath; -use super::jump_hop_tile_asset_snapshot_type::JumpHopTileAssetSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct JumpHopGalleryViewRow { - pub work_id: String, - pub profile_id: String, - pub owner_user_id: String, - pub source_session_id: String, - pub author_display_name: String, - pub theme_text: String, - pub work_title: String, - pub work_description: String, - pub theme_tags: Vec, - pub difficulty: String, - pub style_preset: String, - pub character_prompt: String, - pub tile_prompt: String, - pub end_mood_prompt: Option, - pub character_asset: Option, - pub tile_atlas_asset: Option, - pub tile_assets: Vec, - pub path: JumpHopPath, - pub cover_image_src: String, - pub cover_composite: Option, - pub publication_status: String, - pub publish_ready: bool, - pub play_count: u32, - pub generation_status: String, - pub updated_at_micros: i64, - pub published_at_micros: Option, -} - -impl __sdk::InModule for JumpHopGalleryViewRow { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `JumpHopGalleryViewRow`. -/// -/// Provides typed access to columns for query building. -pub struct JumpHopGalleryViewRowCols { - pub work_id: __sdk::__query_builder::Col, - pub profile_id: __sdk::__query_builder::Col, - pub owner_user_id: __sdk::__query_builder::Col, - pub source_session_id: __sdk::__query_builder::Col, - pub author_display_name: __sdk::__query_builder::Col, - pub theme_text: __sdk::__query_builder::Col, - pub work_title: __sdk::__query_builder::Col, - pub work_description: __sdk::__query_builder::Col, - pub theme_tags: __sdk::__query_builder::Col>, - pub difficulty: __sdk::__query_builder::Col, - pub style_preset: __sdk::__query_builder::Col, - pub character_prompt: __sdk::__query_builder::Col, - pub tile_prompt: __sdk::__query_builder::Col, - pub end_mood_prompt: __sdk::__query_builder::Col>, - pub character_asset: - __sdk::__query_builder::Col>, - pub tile_atlas_asset: - __sdk::__query_builder::Col>, - pub tile_assets: - __sdk::__query_builder::Col>, - pub path: __sdk::__query_builder::Col, - pub cover_image_src: __sdk::__query_builder::Col, - pub cover_composite: __sdk::__query_builder::Col>, - pub publication_status: __sdk::__query_builder::Col, - pub publish_ready: __sdk::__query_builder::Col, - pub play_count: __sdk::__query_builder::Col, - pub generation_status: __sdk::__query_builder::Col, - pub updated_at_micros: __sdk::__query_builder::Col, - pub published_at_micros: __sdk::__query_builder::Col>, -} - -impl __sdk::__query_builder::HasCols for JumpHopGalleryViewRow { - type Cols = JumpHopGalleryViewRowCols; - fn cols(table_name: &'static str) -> Self::Cols { - JumpHopGalleryViewRowCols { - work_id: __sdk::__query_builder::Col::new(table_name, "work_id"), - profile_id: __sdk::__query_builder::Col::new(table_name, "profile_id"), - owner_user_id: __sdk::__query_builder::Col::new(table_name, "owner_user_id"), - source_session_id: __sdk::__query_builder::Col::new(table_name, "source_session_id"), - author_display_name: __sdk::__query_builder::Col::new( - table_name, - "author_display_name", - ), - theme_text: __sdk::__query_builder::Col::new(table_name, "theme_text"), - work_title: __sdk::__query_builder::Col::new(table_name, "work_title"), - work_description: __sdk::__query_builder::Col::new(table_name, "work_description"), - theme_tags: __sdk::__query_builder::Col::new(table_name, "theme_tags"), - difficulty: __sdk::__query_builder::Col::new(table_name, "difficulty"), - style_preset: __sdk::__query_builder::Col::new(table_name, "style_preset"), - character_prompt: __sdk::__query_builder::Col::new(table_name, "character_prompt"), - tile_prompt: __sdk::__query_builder::Col::new(table_name, "tile_prompt"), - end_mood_prompt: __sdk::__query_builder::Col::new(table_name, "end_mood_prompt"), - character_asset: __sdk::__query_builder::Col::new(table_name, "character_asset"), - tile_atlas_asset: __sdk::__query_builder::Col::new(table_name, "tile_atlas_asset"), - tile_assets: __sdk::__query_builder::Col::new(table_name, "tile_assets"), - path: __sdk::__query_builder::Col::new(table_name, "path"), - cover_image_src: __sdk::__query_builder::Col::new(table_name, "cover_image_src"), - cover_composite: __sdk::__query_builder::Col::new(table_name, "cover_composite"), - publication_status: __sdk::__query_builder::Col::new(table_name, "publication_status"), - publish_ready: __sdk::__query_builder::Col::new(table_name, "publish_ready"), - play_count: __sdk::__query_builder::Col::new(table_name, "play_count"), - generation_status: __sdk::__query_builder::Col::new(table_name, "generation_status"), - updated_at_micros: __sdk::__query_builder::Col::new(table_name, "updated_at_micros"), - published_at_micros: __sdk::__query_builder::Col::new( - table_name, - "published_at_micros", - ), - } - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_gallery_view_table.rs b/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_gallery_view_table.rs deleted file mode 100644 index c55683d1c..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_gallery_view_table.rs +++ /dev/null @@ -1,116 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::jump_hop_character_asset_snapshot_type::JumpHopCharacterAssetSnapshot; -use super::jump_hop_gallery_view_row_type::JumpHopGalleryViewRow; -use super::jump_hop_path_type::JumpHopPath; -use super::jump_hop_tile_asset_snapshot_type::JumpHopTileAssetSnapshot; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `jump_hop_gallery_view`. -/// -/// Obtain a handle from the [`JumpHopGalleryViewTableAccess::jump_hop_gallery_view`] method on [`super::RemoteTables`], -/// like `ctx.db.jump_hop_gallery_view()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.jump_hop_gallery_view().on_insert(...)`. -pub struct JumpHopGalleryViewTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `jump_hop_gallery_view`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait JumpHopGalleryViewTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`JumpHopGalleryViewTableHandle`], which mediates access to the table `jump_hop_gallery_view`. - fn jump_hop_gallery_view(&self) -> JumpHopGalleryViewTableHandle<'_>; -} - -impl JumpHopGalleryViewTableAccess for super::RemoteTables { - fn jump_hop_gallery_view(&self) -> JumpHopGalleryViewTableHandle<'_> { - JumpHopGalleryViewTableHandle { - imp: self - .imp - .get_table::("jump_hop_gallery_view"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct JumpHopGalleryViewInsertCallbackId(__sdk::CallbackId); -pub struct JumpHopGalleryViewDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::Table for JumpHopGalleryViewTableHandle<'ctx> { - type Row = JumpHopGalleryViewRow; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = JumpHopGalleryViewInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> JumpHopGalleryViewInsertCallbackId { - JumpHopGalleryViewInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: JumpHopGalleryViewInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = JumpHopGalleryViewDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> JumpHopGalleryViewDeleteCallbackId { - JumpHopGalleryViewDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: JumpHopGalleryViewDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("jump_hop_gallery_view"); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `JumpHopGalleryViewRow`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait jump_hop_gallery_viewQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `JumpHopGalleryViewRow`. - fn jump_hop_gallery_view(&self) -> __sdk::__query_builder::Table; -} - -impl jump_hop_gallery_viewQueryTableAccess for __sdk::QueryTableAccessor { - fn jump_hop_gallery_view(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("jump_hop_gallery_view") - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_jump_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_jump_procedure.rs deleted file mode 100644 index 19cfbec94..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_jump_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::jump_hop_run_jump_input_type::JumpHopRunJumpInput; -use super::jump_hop_run_procedure_result_type::JumpHopRunProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct JumpHopJumpArgs { - pub input: JumpHopRunJumpInput, -} - -impl __sdk::InModule for JumpHopJumpArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `jump_hop_jump`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait jump_hop_jump { - fn jump_hop_jump(&self, input: JumpHopRunJumpInput) { - self.jump_hop_jump_then(input, |_, _| {}); - } - - fn jump_hop_jump_then( - &self, - input: JumpHopRunJumpInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl jump_hop_jump for super::RemoteProcedures { - fn jump_hop_jump_then( - &self, - input: JumpHopRunJumpInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, JumpHopRunProcedureResult>( - "jump_hop_jump", - JumpHopJumpArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_jump_result_kind_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_jump_result_kind_type.rs deleted file mode 100644 index 6db87bac1..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_jump_result_kind_type.rs +++ /dev/null @@ -1,22 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -#[derive(Copy, Eq, Hash)] -pub enum JumpHopJumpResultKind { - Miss, - - Hit, - - Perfect, - - Finish, -} - -impl __sdk::InModule for JumpHopJumpResultKind { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_last_jump_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_last_jump_type.rs deleted file mode 100644 index 5d8ef5bdb..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_last_jump_type.rs +++ /dev/null @@ -1,22 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::jump_hop_jump_result_kind_type::JumpHopJumpResultKind; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct JumpHopLastJump { - pub charge_ms: u32, - pub jump_distance: f32, - pub target_platform_index: u32, - pub landed_x: f32, - pub landed_y: f32, - pub result: JumpHopJumpResultKind, -} - -impl __sdk::InModule for JumpHopLastJump { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_leaderboard_entry_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_leaderboard_entry_snapshot_type.rs deleted file mode 100644 index f8269a171..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_leaderboard_entry_snapshot_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct JumpHopLeaderboardEntrySnapshot { - pub rank: u32, - pub player_id: String, - pub successful_jump_count: u32, - pub duration_ms: u64, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for JumpHopLeaderboardEntrySnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_leaderboard_get_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_leaderboard_get_input_type.rs deleted file mode 100644 index 0c66a38bb..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_leaderboard_get_input_type.rs +++ /dev/null @@ -1,17 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct JumpHopLeaderboardGetInput { - pub profile_id: String, - pub viewer_player_id: String, - pub limit: u32, -} - -impl __sdk::InModule for JumpHopLeaderboardGetInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_leaderboard_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_leaderboard_procedure_result_type.rs deleted file mode 100644 index b1ff0a339..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_leaderboard_procedure_result_type.rs +++ /dev/null @@ -1,21 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::jump_hop_leaderboard_entry_snapshot_type::JumpHopLeaderboardEntrySnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct JumpHopLeaderboardProcedureResult { - pub ok: bool, - pub profile_id: String, - pub items: Vec, - pub viewer_best: Option, - pub error_message: Option, -} - -impl __sdk::InModule for JumpHopLeaderboardProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_path_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_path_type.rs deleted file mode 100644 index b0ebd1f72..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_path_type.rs +++ /dev/null @@ -1,24 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::jump_hop_difficulty_type::JumpHopDifficulty; -use super::jump_hop_platform_type::JumpHopPlatform; -use super::jump_hop_scoring_type::JumpHopScoring; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct JumpHopPath { - pub seed: String, - pub difficulty: JumpHopDifficulty, - pub platforms: Vec, - pub finish_index: u32, - pub camera_preset: String, - pub scoring: JumpHopScoring, -} - -impl __sdk::InModule for JumpHopPath { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_platform_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_platform_type.rs deleted file mode 100644 index 1aa60925c..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_platform_type.rs +++ /dev/null @@ -1,25 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::jump_hop_tile_type_type::JumpHopTileType; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct JumpHopPlatform { - pub platform_id: String, - pub tile_type: JumpHopTileType, - pub x: f32, - pub y: f32, - pub width: f32, - pub height: f32, - pub landing_radius: f32, - pub perfect_radius: f32, - pub score_value: u32, -} - -impl __sdk::InModule for JumpHopPlatform { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_run_get_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_run_get_input_type.rs deleted file mode 100644 index 7600f6224..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_run_get_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct JumpHopRunGetInput { - pub run_id: String, - pub owner_user_id: String, -} - -impl __sdk::InModule for JumpHopRunGetInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_run_jump_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_run_jump_input_type.rs deleted file mode 100644 index 090fbea8d..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_run_jump_input_type.rs +++ /dev/null @@ -1,21 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct JumpHopRunJumpInput { - pub run_id: String, - pub owner_user_id: String, - pub drag_distance: f32, - pub drag_vector_x: Option, - pub drag_vector_y: Option, - pub client_event_id: String, - pub jumped_at_ms: i64, -} - -impl __sdk::InModule for JumpHopRunJumpInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_run_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_run_procedure_result_type.rs deleted file mode 100644 index c963bbbf1..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_run_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::jump_hop_run_snapshot_type::JumpHopRunSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct JumpHopRunProcedureResult { - pub ok: bool, - pub run: Option, - pub error_message: Option, -} - -impl __sdk::InModule for JumpHopRunProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_run_restart_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_run_restart_input_type.rs deleted file mode 100644 index dde3900f3..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_run_restart_input_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct JumpHopRunRestartInput { - pub source_run_id: String, - pub next_run_id: String, - pub owner_user_id: String, - pub client_action_id: String, - pub restarted_at_ms: i64, -} - -impl __sdk::InModule for JumpHopRunRestartInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_run_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_run_snapshot_type.rs deleted file mode 100644 index e14024580..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_run_snapshot_type.rs +++ /dev/null @@ -1,29 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::jump_hop_last_jump_type::JumpHopLastJump; -use super::jump_hop_path_type::JumpHopPath; -use super::jump_hop_run_status_type::JumpHopRunStatus; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct JumpHopRunSnapshot { - pub run_id: String, - pub profile_id: String, - pub owner_user_id: String, - pub status: JumpHopRunStatus, - pub current_platform_index: u32, - pub score: u32, - pub combo: u32, - pub last_jump: Option, - pub started_at_ms: u64, - pub finished_at_ms: Option, - pub path: JumpHopPath, -} - -impl __sdk::InModule for JumpHopRunSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_run_start_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_run_start_input_type.rs deleted file mode 100644 index d5c00ddfe..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_run_start_input_type.rs +++ /dev/null @@ -1,20 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct JumpHopRunStartInput { - pub run_id: String, - pub owner_user_id: String, - pub profile_id: String, - pub runtime_mode: String, - pub client_event_id: String, - pub started_at_ms: i64, -} - -impl __sdk::InModule for JumpHopRunStartInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_run_status_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_run_status_type.rs deleted file mode 100644 index 46993265a..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_run_status_type.rs +++ /dev/null @@ -1,20 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -#[derive(Copy, Eq, Hash)] -pub enum JumpHopRunStatus { - Playing, - - Failed, - - Cleared, -} - -impl __sdk::InModule for JumpHopRunStatus { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_scoring_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_scoring_type.rs deleted file mode 100644 index a33355b07..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_scoring_type.rs +++ /dev/null @@ -1,18 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct JumpHopScoring { - pub charge_to_distance_ratio: f32, - pub max_charge_ms: u32, - pub hit_bonus: u32, - pub perfect_bonus: u32, -} - -impl __sdk::InModule for JumpHopScoring { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_tile_asset_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_tile_asset_snapshot_type.rs deleted file mode 100644 index 5223f15ae..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_tile_asset_snapshot_type.rs +++ /dev/null @@ -1,29 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::jump_hop_tile_face_assets_snapshot_type::JumpHopTileFaceAssetsSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct JumpHopTileAssetSnapshot { - pub tile_type: String, - pub tile_id: Option, - pub image_src: String, - pub image_object_key: String, - pub asset_object_id: String, - pub source_atlas_cell: String, - pub atlas_row: Option, - pub atlas_col: Option, - pub visual_width: u32, - pub visual_height: u32, - pub top_surface_radius: f32, - pub landing_radius: f32, - pub face_assets: Option, -} - -impl __sdk::InModule for JumpHopTileAssetSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_tile_face_asset_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_tile_face_asset_snapshot_type.rs deleted file mode 100644 index b2b271961..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_tile_face_asset_snapshot_type.rs +++ /dev/null @@ -1,24 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct JumpHopTileFaceAssetSnapshot { - pub face: String, - pub asset_id: String, - pub image_src: String, - pub image_object_key: String, - pub asset_object_id: String, - pub generation_provider: String, - pub prompt: String, - pub width: u32, - pub height: u32, - pub source_atlas_cell: String, -} - -impl __sdk::InModule for JumpHopTileFaceAssetSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_tile_face_assets_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_tile_face_assets_snapshot_type.rs deleted file mode 100644 index 7625d48fa..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_tile_face_assets_snapshot_type.rs +++ /dev/null @@ -1,22 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::jump_hop_tile_face_asset_snapshot_type::JumpHopTileFaceAssetSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct JumpHopTileFaceAssetsSnapshot { - pub top: JumpHopTileFaceAssetSnapshot, - pub front: JumpHopTileFaceAssetSnapshot, - pub right: JumpHopTileFaceAssetSnapshot, - pub back: JumpHopTileFaceAssetSnapshot, - pub left: JumpHopTileFaceAssetSnapshot, - pub bottom: JumpHopTileFaceAssetSnapshot, -} - -impl __sdk::InModule for JumpHopTileFaceAssetsSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_tile_type_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_tile_type_type.rs deleted file mode 100644 index f417ad5f1..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_tile_type_type.rs +++ /dev/null @@ -1,26 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -#[derive(Copy, Eq, Hash)] -pub enum JumpHopTileType { - Start, - - Normal, - - Target, - - Finish, - - Bonus, - - Accent, -} - -impl __sdk::InModule for JumpHopTileType { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_work_delete_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_work_delete_input_type.rs deleted file mode 100644 index d59969332..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_work_delete_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct JumpHopWorkDeleteInput { - pub profile_id: String, - pub owner_user_id: String, -} - -impl __sdk::InModule for JumpHopWorkDeleteInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_work_get_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_work_get_input_type.rs deleted file mode 100644 index 1e9fd0eb0..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_work_get_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct JumpHopWorkGetInput { - pub profile_id: String, - pub owner_user_id: String, -} - -impl __sdk::InModule for JumpHopWorkGetInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_work_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_work_procedure_result_type.rs deleted file mode 100644 index 138ee818a..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_work_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::jump_hop_work_snapshot_type::JumpHopWorkSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct JumpHopWorkProcedureResult { - pub ok: bool, - pub work: Option, - pub error_message: Option, -} - -impl __sdk::InModule for JumpHopWorkProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_work_publish_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_work_publish_input_type.rs deleted file mode 100644 index dc24525d7..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_work_publish_input_type.rs +++ /dev/null @@ -1,17 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct JumpHopWorkPublishInput { - pub profile_id: String, - pub owner_user_id: String, - pub published_at_micros: i64, -} - -impl __sdk::InModule for JumpHopWorkPublishInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_work_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_work_snapshot_type.rs deleted file mode 100644 index 969a42978..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_work_snapshot_type.rs +++ /dev/null @@ -1,45 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::jump_hop_character_asset_snapshot_type::JumpHopCharacterAssetSnapshot; -use super::jump_hop_path_type::JumpHopPath; -use super::jump_hop_tile_asset_snapshot_type::JumpHopTileAssetSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct JumpHopWorkSnapshot { - pub work_id: String, - pub profile_id: String, - pub owner_user_id: String, - pub source_session_id: String, - pub author_display_name: String, - pub theme_text: String, - pub work_title: String, - pub work_description: String, - pub theme_tags: Vec, - pub difficulty: String, - pub style_preset: String, - pub character_prompt: String, - pub tile_prompt: String, - pub end_mood_prompt: Option, - pub character_asset: Option, - pub tile_atlas_asset: Option, - pub tile_assets: Vec, - pub path: JumpHopPath, - pub cover_image_src: String, - pub cover_composite: Option, - pub back_button_asset: Option, - pub publication_status: String, - pub publish_ready: bool, - pub play_count: u32, - pub generation_status: String, - pub updated_at_micros: i64, - pub published_at_micros: Option, -} - -impl __sdk::InModule for JumpHopWorkSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_work_update_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_work_update_input_type.rs deleted file mode 100644 index 6e587c2bc..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_work_update_input_type.rs +++ /dev/null @@ -1,24 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct JumpHopWorkUpdateInput { - pub profile_id: String, - pub owner_user_id: String, - pub work_title: String, - pub work_description: String, - pub theme_tags_json: String, - pub difficulty: Option, - pub style_preset: Option, - pub cover_image_src: Option, - pub cover_composite: Option, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for JumpHopWorkUpdateInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_works_list_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_works_list_input_type.rs deleted file mode 100644 index c447cb67b..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_works_list_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct JumpHopWorksListInput { - pub owner_user_id: String, - pub published_only: bool, -} - -impl __sdk::InModule for JumpHopWorksListInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_works_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_works_procedure_result_type.rs deleted file mode 100644 index 88d0daa97..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/jump_hop_works_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::jump_hop_work_snapshot_type::JumpHopWorkSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct JumpHopWorksProcedureResult { - pub ok: bool, - pub items: Vec, - pub error_message: Option, -} - -impl __sdk::InModule for JumpHopWorksProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/list_big_fish_works_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/list_big_fish_works_procedure.rs deleted file mode 100644 index 8e4c21ba6..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/list_big_fish_works_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::big_fish_works_list_input_type::BigFishWorksListInput; -use super::big_fish_works_procedure_result_type::BigFishWorksProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct ListBigFishWorksArgs { - pub input: BigFishWorksListInput, -} - -impl __sdk::InModule for ListBigFishWorksArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `list_big_fish_works`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait list_big_fish_works { - fn list_big_fish_works(&self, input: BigFishWorksListInput) { - self.list_big_fish_works_then(input, |_, _| {}); - } - - fn list_big_fish_works_then( - &self, - input: BigFishWorksListInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl list_big_fish_works for super::RemoteProcedures { - fn list_big_fish_works_then( - &self, - input: BigFishWorksListInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, BigFishWorksProcedureResult>( - "list_big_fish_works", - ListBigFishWorksArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/list_custom_world_gallery_entries_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/list_custom_world_gallery_entries_procedure.rs deleted file mode 100644 index 63ee059f5..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/list_custom_world_gallery_entries_procedure.rs +++ /dev/null @@ -1,54 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_gallery_list_result_type::CustomWorldGalleryListResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct ListCustomWorldGalleryEntriesArgs {} - -impl __sdk::InModule for ListCustomWorldGalleryEntriesArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `list_custom_world_gallery_entries`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait list_custom_world_gallery_entries { - fn list_custom_world_gallery_entries(&self) { - self.list_custom_world_gallery_entries_then(|_, _| {}); - } - - fn list_custom_world_gallery_entries_then( - &self, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl list_custom_world_gallery_entries for super::RemoteProcedures { - fn list_custom_world_gallery_entries_then( - &self, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, CustomWorldGalleryListResult>( - "list_custom_world_gallery_entries", - ListCustomWorldGalleryEntriesArgs {}, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/list_custom_world_profiles_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/list_custom_world_profiles_procedure.rs deleted file mode 100644 index f8834945d..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/list_custom_world_profiles_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_profile_list_input_type::CustomWorldProfileListInput; -use super::custom_world_profile_list_result_type::CustomWorldProfileListResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct ListCustomWorldProfilesArgs { - pub input: CustomWorldProfileListInput, -} - -impl __sdk::InModule for ListCustomWorldProfilesArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `list_custom_world_profiles`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait list_custom_world_profiles { - fn list_custom_world_profiles(&self, input: CustomWorldProfileListInput) { - self.list_custom_world_profiles_then(input, |_, _| {}); - } - - fn list_custom_world_profiles_then( - &self, - input: CustomWorldProfileListInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl list_custom_world_profiles for super::RemoteProcedures { - fn list_custom_world_profiles_then( - &self, - input: CustomWorldProfileListInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, CustomWorldProfileListResult>( - "list_custom_world_profiles", - ListCustomWorldProfilesArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/list_custom_world_works_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/list_custom_world_works_procedure.rs deleted file mode 100644 index d469f660c..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/list_custom_world_works_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_works_list_input_type::CustomWorldWorksListInput; -use super::custom_world_works_list_result_type::CustomWorldWorksListResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct ListCustomWorldWorksArgs { - pub input: CustomWorldWorksListInput, -} - -impl __sdk::InModule for ListCustomWorldWorksArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `list_custom_world_works`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait list_custom_world_works { - fn list_custom_world_works(&self, input: CustomWorldWorksListInput) { - self.list_custom_world_works_then(input, |_, _| {}); - } - - fn list_custom_world_works_then( - &self, - input: CustomWorldWorksListInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl list_custom_world_works for super::RemoteProcedures { - fn list_custom_world_works_then( - &self, - input: CustomWorldWorksListInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, CustomWorldWorksListResult>( - "list_custom_world_works", - ListCustomWorldWorksArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/list_jump_hop_works_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/list_jump_hop_works_procedure.rs deleted file mode 100644 index 96d931c3e..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/list_jump_hop_works_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::jump_hop_works_list_input_type::JumpHopWorksListInput; -use super::jump_hop_works_procedure_result_type::JumpHopWorksProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct ListJumpHopWorksArgs { - pub input: JumpHopWorksListInput, -} - -impl __sdk::InModule for ListJumpHopWorksArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `list_jump_hop_works`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait list_jump_hop_works { - fn list_jump_hop_works(&self, input: JumpHopWorksListInput) { - self.list_jump_hop_works_then(input, |_, _| {}); - } - - fn list_jump_hop_works_then( - &self, - input: JumpHopWorksListInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl list_jump_hop_works for super::RemoteProcedures { - fn list_jump_hop_works_then( - &self, - input: JumpHopWorksListInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, JumpHopWorksProcedureResult>( - "list_jump_hop_works", - ListJumpHopWorksArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/list_match_3_d_works_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/list_match_3_d_works_procedure.rs deleted file mode 100644 index b1477034e..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/list_match_3_d_works_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::match_3_d_works_list_input_type::Match3DWorksListInput; -use super::match_3_d_works_procedure_result_type::Match3DWorksProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct ListMatch3DWorksArgs { - pub input: Match3DWorksListInput, -} - -impl __sdk::InModule for ListMatch3DWorksArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `list_match_3_d_works`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait list_match_3_d_works { - fn list_match_3_d_works(&self, input: Match3DWorksListInput) { - self.list_match_3_d_works_then(input, |_, _| {}); - } - - fn list_match_3_d_works_then( - &self, - input: Match3DWorksListInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl list_match_3_d_works for super::RemoteProcedures { - fn list_match_3_d_works_then( - &self, - input: Match3DWorksListInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, Match3DWorksProcedureResult>( - "list_match_3_d_works", - ListMatch3DWorksArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/list_platform_browse_history_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/list_platform_browse_history_procedure.rs deleted file mode 100644 index 0d368a995..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/list_platform_browse_history_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::runtime_browse_history_list_input_type::RuntimeBrowseHistoryListInput; -use super::runtime_browse_history_procedure_result_type::RuntimeBrowseHistoryProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct ListPlatformBrowseHistoryArgs { - pub input: RuntimeBrowseHistoryListInput, -} - -impl __sdk::InModule for ListPlatformBrowseHistoryArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `list_platform_browse_history`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait list_platform_browse_history { - fn list_platform_browse_history(&self, input: RuntimeBrowseHistoryListInput) { - self.list_platform_browse_history_then(input, |_, _| {}); - } - - fn list_platform_browse_history_then( - &self, - input: RuntimeBrowseHistoryListInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl list_platform_browse_history for super::RemoteProcedures { - fn list_platform_browse_history_then( - &self, - input: RuntimeBrowseHistoryListInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, RuntimeBrowseHistoryProcedureResult>( - "list_platform_browse_history", - ListPlatformBrowseHistoryArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/list_profile_save_archives_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/list_profile_save_archives_procedure.rs deleted file mode 100644 index 31c214bb0..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/list_profile_save_archives_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::runtime_profile_save_archive_list_input_type::RuntimeProfileSaveArchiveListInput; -use super::runtime_profile_save_archive_procedure_result_type::RuntimeProfileSaveArchiveProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct ListProfileSaveArchivesArgs { - pub input: RuntimeProfileSaveArchiveListInput, -} - -impl __sdk::InModule for ListProfileSaveArchivesArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `list_profile_save_archives`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait list_profile_save_archives { - fn list_profile_save_archives(&self, input: RuntimeProfileSaveArchiveListInput) { - self.list_profile_save_archives_then(input, |_, _| {}); - } - - fn list_profile_save_archives_then( - &self, - input: RuntimeProfileSaveArchiveListInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl list_profile_save_archives for super::RemoteProcedures { - fn list_profile_save_archives_then( - &self, - input: RuntimeProfileSaveArchiveListInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, RuntimeProfileSaveArchiveProcedureResult>( - "list_profile_save_archives", - ListProfileSaveArchivesArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/list_puzzle_clear_works_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/list_puzzle_clear_works_procedure.rs deleted file mode 100644 index c57ebfe45..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/list_puzzle_clear_works_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_clear_works_list_input_type::PuzzleClearWorksListInput; -use super::puzzle_clear_works_procedure_result_type::PuzzleClearWorksProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct ListPuzzleClearWorksArgs { - pub input: PuzzleClearWorksListInput, -} - -impl __sdk::InModule for ListPuzzleClearWorksArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `list_puzzle_clear_works`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait list_puzzle_clear_works { - fn list_puzzle_clear_works(&self, input: PuzzleClearWorksListInput) { - self.list_puzzle_clear_works_then(input, |_, _| {}); - } - - fn list_puzzle_clear_works_then( - &self, - input: PuzzleClearWorksListInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl list_puzzle_clear_works for super::RemoteProcedures { - fn list_puzzle_clear_works_then( - &self, - input: PuzzleClearWorksListInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleClearWorksProcedureResult>( - "list_puzzle_clear_works", - ListPuzzleClearWorksArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/list_puzzle_gallery_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/list_puzzle_gallery_procedure.rs deleted file mode 100644 index 553b8e087..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/list_puzzle_gallery_procedure.rs +++ /dev/null @@ -1,54 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_works_procedure_result_type::PuzzleWorksProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct ListPuzzleGalleryArgs {} - -impl __sdk::InModule for ListPuzzleGalleryArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `list_puzzle_gallery`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait list_puzzle_gallery { - fn list_puzzle_gallery(&self) { - self.list_puzzle_gallery_then(|_, _| {}); - } - - fn list_puzzle_gallery_then( - &self, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl list_puzzle_gallery for super::RemoteProcedures { - fn list_puzzle_gallery_then( - &self, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleWorksProcedureResult>( - "list_puzzle_gallery", - ListPuzzleGalleryArgs {}, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/list_puzzle_works_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/list_puzzle_works_procedure.rs deleted file mode 100644 index 844d16dfe..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/list_puzzle_works_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_works_list_input_type::PuzzleWorksListInput; -use super::puzzle_works_procedure_result_type::PuzzleWorksProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct ListPuzzleWorksArgs { - pub input: PuzzleWorksListInput, -} - -impl __sdk::InModule for ListPuzzleWorksArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `list_puzzle_works`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait list_puzzle_works { - fn list_puzzle_works(&self, input: PuzzleWorksListInput) { - self.list_puzzle_works_then(input, |_, _| {}); - } - - fn list_puzzle_works_then( - &self, - input: PuzzleWorksListInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl list_puzzle_works for super::RemoteProcedures { - fn list_puzzle_works_then( - &self, - input: PuzzleWorksListInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleWorksProcedureResult>( - "list_puzzle_works", - ListPuzzleWorksArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/list_square_hole_works_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/list_square_hole_works_procedure.rs deleted file mode 100644 index 0052c502c..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/list_square_hole_works_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::square_hole_works_list_input_type::SquareHoleWorksListInput; -use super::square_hole_works_procedure_result_type::SquareHoleWorksProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct ListSquareHoleWorksArgs { - pub input: SquareHoleWorksListInput, -} - -impl __sdk::InModule for ListSquareHoleWorksArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `list_square_hole_works`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait list_square_hole_works { - fn list_square_hole_works(&self, input: SquareHoleWorksListInput) { - self.list_square_hole_works_then(input, |_, _| {}); - } - - fn list_square_hole_works_then( - &self, - input: SquareHoleWorksListInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl list_square_hole_works for super::RemoteProcedures { - fn list_square_hole_works_then( - &self, - input: SquareHoleWorksListInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, SquareHoleWorksProcedureResult>( - "list_square_hole_works", - ListSquareHoleWorksArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/list_visual_novel_runtime_history_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/list_visual_novel_runtime_history_procedure.rs deleted file mode 100644 index 680a8455c..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/list_visual_novel_runtime_history_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::visual_novel_history_procedure_result_type::VisualNovelHistoryProcedureResult; -use super::visual_novel_runtime_history_list_input_type::VisualNovelRuntimeHistoryListInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct ListVisualNovelRuntimeHistoryArgs { - pub input: VisualNovelRuntimeHistoryListInput, -} - -impl __sdk::InModule for ListVisualNovelRuntimeHistoryArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `list_visual_novel_runtime_history`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait list_visual_novel_runtime_history { - fn list_visual_novel_runtime_history(&self, input: VisualNovelRuntimeHistoryListInput) { - self.list_visual_novel_runtime_history_then(input, |_, _| {}); - } - - fn list_visual_novel_runtime_history_then( - &self, - input: VisualNovelRuntimeHistoryListInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl list_visual_novel_runtime_history for super::RemoteProcedures { - fn list_visual_novel_runtime_history_then( - &self, - input: VisualNovelRuntimeHistoryListInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, VisualNovelHistoryProcedureResult>( - "list_visual_novel_runtime_history", - ListVisualNovelRuntimeHistoryArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/list_visual_novel_works_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/list_visual_novel_works_procedure.rs deleted file mode 100644 index be9b9a294..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/list_visual_novel_works_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::visual_novel_works_list_input_type::VisualNovelWorksListInput; -use super::visual_novel_works_procedure_result_type::VisualNovelWorksProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct ListVisualNovelWorksArgs { - pub input: VisualNovelWorksListInput, -} - -impl __sdk::InModule for ListVisualNovelWorksArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `list_visual_novel_works`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait list_visual_novel_works { - fn list_visual_novel_works(&self, input: VisualNovelWorksListInput) { - self.list_visual_novel_works_then(input, |_, _| {}); - } - - fn list_visual_novel_works_then( - &self, - input: VisualNovelWorksListInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl list_visual_novel_works for super::RemoteProcedures { - fn list_visual_novel_works_then( - &self, - input: VisualNovelWorksListInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, VisualNovelWorksProcedureResult>( - "list_visual_novel_works", - ListVisualNovelWorksArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/list_wooden_fish_works_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/list_wooden_fish_works_procedure.rs deleted file mode 100644 index 87695a8e7..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/list_wooden_fish_works_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::wooden_fish_works_list_input_type::WoodenFishWorksListInput; -use super::wooden_fish_works_procedure_result_type::WoodenFishWorksProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct ListWoodenFishWorksArgs { - pub input: WoodenFishWorksListInput, -} - -impl __sdk::InModule for ListWoodenFishWorksArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `list_wooden_fish_works`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait list_wooden_fish_works { - fn list_wooden_fish_works(&self, input: WoodenFishWorksListInput) { - self.list_wooden_fish_works_then(input, |_, _| {}); - } - - fn list_wooden_fish_works_then( - &self, - input: WoodenFishWorksListInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl list_wooden_fish_works for super::RemoteProcedures { - fn list_wooden_fish_works_then( - &self, - input: WoodenFishWorksListInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, WoodenFishWorksProcedureResult>( - "list_wooden_fish_works", - ListWoodenFishWorksArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/mark_puzzle_clear_level_time_up_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/mark_puzzle_clear_level_time_up_procedure.rs deleted file mode 100644 index 97042b075..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/mark_puzzle_clear_level_time_up_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_clear_run_procedure_result_type::PuzzleClearRunProcedureResult; -use super::puzzle_clear_run_time_up_input_type::PuzzleClearRunTimeUpInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct MarkPuzzleClearLevelTimeUpArgs { - pub input: PuzzleClearRunTimeUpInput, -} - -impl __sdk::InModule for MarkPuzzleClearLevelTimeUpArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `mark_puzzle_clear_level_time_up`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait mark_puzzle_clear_level_time_up { - fn mark_puzzle_clear_level_time_up(&self, input: PuzzleClearRunTimeUpInput) { - self.mark_puzzle_clear_level_time_up_then(input, |_, _| {}); - } - - fn mark_puzzle_clear_level_time_up_then( - &self, - input: PuzzleClearRunTimeUpInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl mark_puzzle_clear_level_time_up for super::RemoteProcedures { - fn mark_puzzle_clear_level_time_up_then( - &self, - input: PuzzleClearRunTimeUpInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleClearRunProcedureResult>( - "mark_puzzle_clear_level_time_up", - MarkPuzzleClearLevelTimeUpArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/mark_puzzle_draft_generation_failed_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/mark_puzzle_draft_generation_failed_procedure.rs deleted file mode 100644 index 954b7ddc0..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/mark_puzzle_draft_generation_failed_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_agent_session_procedure_result_type::PuzzleAgentSessionProcedureResult; -use super::puzzle_draft_compile_failure_input_type::PuzzleDraftCompileFailureInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct MarkPuzzleDraftGenerationFailedArgs { - pub input: PuzzleDraftCompileFailureInput, -} - -impl __sdk::InModule for MarkPuzzleDraftGenerationFailedArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `mark_puzzle_draft_generation_failed`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait mark_puzzle_draft_generation_failed { - fn mark_puzzle_draft_generation_failed(&self, input: PuzzleDraftCompileFailureInput) { - self.mark_puzzle_draft_generation_failed_then(input, |_, _| {}); - } - - fn mark_puzzle_draft_generation_failed_then( - &self, - input: PuzzleDraftCompileFailureInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl mark_puzzle_draft_generation_failed for super::RemoteProcedures { - fn mark_puzzle_draft_generation_failed_then( - &self, - input: PuzzleDraftCompileFailureInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleAgentSessionProcedureResult>( - "mark_puzzle_draft_generation_failed", - MarkPuzzleDraftGenerationFailedArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/mark_puzzle_level_generation_failed_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/mark_puzzle_level_generation_failed_procedure.rs deleted file mode 100644 index 1906e8d89..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/mark_puzzle_level_generation_failed_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_agent_session_procedure_result_type::PuzzleAgentSessionProcedureResult; -use super::puzzle_level_generation_failure_input_type::PuzzleLevelGenerationFailureInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct MarkPuzzleLevelGenerationFailedArgs { - pub input: PuzzleLevelGenerationFailureInput, -} - -impl __sdk::InModule for MarkPuzzleLevelGenerationFailedArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `mark_puzzle_level_generation_failed`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait mark_puzzle_level_generation_failed { - fn mark_puzzle_level_generation_failed(&self, input: PuzzleLevelGenerationFailureInput) { - self.mark_puzzle_level_generation_failed_then(input, |_, _| {}); - } - - fn mark_puzzle_level_generation_failed_then( - &self, - input: PuzzleLevelGenerationFailureInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl mark_puzzle_level_generation_failed for super::RemoteProcedures { - fn mark_puzzle_level_generation_failed_then( - &self, - input: PuzzleLevelGenerationFailureInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleAgentSessionProcedureResult>( - "mark_puzzle_level_generation_failed", - MarkPuzzleLevelGenerationFailedArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_agent_message_finalize_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_agent_message_finalize_input_type.rs deleted file mode 100644 index 0680d93b1..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_agent_message_finalize_input_type.rs +++ /dev/null @@ -1,23 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct Match3DAgentMessageFinalizeInput { - pub session_id: String, - pub owner_user_id: String, - pub assistant_message_id: Option, - pub assistant_reply_text: Option, - pub config_json: Option, - pub progress_percent: u32, - pub stage: String, - pub updated_at_micros: i64, - pub error_message: Option, -} - -impl __sdk::InModule for Match3DAgentMessageFinalizeInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_agent_message_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_agent_message_snapshot_type.rs deleted file mode 100644 index b157584ff..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_agent_message_snapshot_type.rs +++ /dev/null @@ -1,20 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct Match3DAgentMessageSnapshot { - pub message_id: String, - pub session_id: String, - pub role: String, - pub kind: String, - pub text: String, - pub created_at_micros: i64, -} - -impl __sdk::InModule for Match3DAgentMessageSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_agent_message_submit_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_agent_message_submit_input_type.rs deleted file mode 100644 index cfadc2072..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_agent_message_submit_input_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct Match3DAgentMessageSubmitInput { - pub session_id: String, - pub owner_user_id: String, - pub user_message_id: String, - pub user_message_text: String, - pub submitted_at_micros: i64, -} - -impl __sdk::InModule for Match3DAgentMessageSubmitInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_agent_session_create_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_agent_session_create_input_type.rs deleted file mode 100644 index fec575474..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_agent_session_create_input_type.rs +++ /dev/null @@ -1,21 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct Match3DAgentSessionCreateInput { - pub session_id: String, - pub owner_user_id: String, - pub seed_text: String, - pub welcome_message_id: String, - pub welcome_message_text: String, - pub config_json: Option, - pub created_at_micros: i64, -} - -impl __sdk::InModule for Match3DAgentSessionCreateInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_agent_session_get_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_agent_session_get_input_type.rs deleted file mode 100644 index 4a19d565e..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_agent_session_get_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct Match3DAgentSessionGetInput { - pub session_id: String, - pub owner_user_id: String, -} - -impl __sdk::InModule for Match3DAgentSessionGetInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_agent_session_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_agent_session_procedure_result_type.rs deleted file mode 100644 index ca860890a..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_agent_session_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::match_3_d_agent_session_snapshot_type::Match3DAgentSessionSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct Match3DAgentSessionProcedureResult { - pub ok: bool, - pub session: Option, - pub error_message: Option, -} - -impl __sdk::InModule for Match3DAgentSessionProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_agent_session_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_agent_session_snapshot_type.rs deleted file mode 100644 index f0ea685a8..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_agent_session_snapshot_type.rs +++ /dev/null @@ -1,31 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::match_3_d_agent_message_snapshot_type::Match3DAgentMessageSnapshot; -use super::match_3_d_creator_config_snapshot_type::Match3DCreatorConfigSnapshot; -use super::match_3_d_draft_snapshot_type::Match3DDraftSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct Match3DAgentSessionSnapshot { - pub session_id: String, - pub owner_user_id: String, - pub seed_text: String, - pub current_turn: u32, - pub progress_percent: u32, - pub stage: String, - pub config: Match3DCreatorConfigSnapshot, - pub draft: Option, - pub messages: Vec, - pub last_assistant_reply: String, - pub published_profile_id: Option, - pub created_at_micros: i64, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for Match3DAgentSessionSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_click_item_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_click_item_procedure_result_type.rs deleted file mode 100644 index c8a585103..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_click_item_procedure_result_type.rs +++ /dev/null @@ -1,23 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::match_3_d_run_snapshot_type::Match3DRunSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct Match3DClickItemProcedureResult { - pub ok: bool, - pub status: String, - pub run: Option, - pub accepted_item_instance_id: Option, - pub cleared_item_instance_ids: Vec, - pub failure_reason: Option, - pub error_message: Option, -} - -impl __sdk::InModule for Match3DClickItemProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_creator_config_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_creator_config_snapshot_type.rs deleted file mode 100644 index a0fd2d619..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_creator_config_snapshot_type.rs +++ /dev/null @@ -1,22 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct Match3DCreatorConfigSnapshot { - pub theme_text: String, - pub reference_image_src: Option, - pub clear_count: u32, - pub difficulty: u32, - pub asset_style_id: Option, - pub asset_style_label: Option, - pub asset_style_prompt: Option, - pub generate_click_sound: bool, -} - -impl __sdk::InModule for Match3DCreatorConfigSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_draft_compile_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_draft_compile_input_type.rs deleted file mode 100644 index 0d0568475..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_draft_compile_input_type.rs +++ /dev/null @@ -1,25 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct Match3DDraftCompileInput { - pub session_id: String, - pub owner_user_id: String, - pub profile_id: String, - pub author_display_name: String, - pub game_name: Option, - pub summary_text: Option, - pub tags_json: Option, - pub cover_image_src: Option, - pub cover_asset_id: Option, - pub compiled_at_micros: i64, - pub generated_item_assets_json: Option, -} - -impl __sdk::InModule for Match3DDraftCompileInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_draft_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_draft_snapshot_type.rs deleted file mode 100644 index 32a67c83f..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_draft_snapshot_type.rs +++ /dev/null @@ -1,22 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct Match3DDraftSnapshot { - pub profile_id: String, - pub game_name: String, - pub theme_text: String, - pub summary_text: String, - pub tags: Vec, - pub clear_count: u32, - pub difficulty: u32, - pub generated_item_assets_json: Option, -} - -impl __sdk::InModule for Match3DDraftSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_gallery_view_row_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_gallery_view_row_type.rs deleted file mode 100644 index 03b768d31..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_gallery_view_row_type.rs +++ /dev/null @@ -1,98 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct Match3DGalleryViewRow { - pub profile_id: String, - pub owner_user_id: String, - pub source_session_id: String, - pub author_display_name: String, - pub game_name: String, - pub theme_text: String, - pub summary_text: String, - pub tags: Vec, - pub cover_image_src: String, - pub cover_asset_id: String, - pub reference_image_src: Option, - pub clear_count: u32, - pub difficulty: u32, - pub publication_status: String, - pub publish_ready: bool, - pub play_count: u32, - pub updated_at_micros: i64, - pub published_at_micros: Option, - pub generated_item_assets_json: Option, -} - -impl __sdk::InModule for Match3DGalleryViewRow { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `Match3DGalleryViewRow`. -/// -/// Provides typed access to columns for query building. -pub struct Match3DGalleryViewRowCols { - pub profile_id: __sdk::__query_builder::Col, - pub owner_user_id: __sdk::__query_builder::Col, - pub source_session_id: __sdk::__query_builder::Col, - pub author_display_name: __sdk::__query_builder::Col, - pub game_name: __sdk::__query_builder::Col, - pub theme_text: __sdk::__query_builder::Col, - pub summary_text: __sdk::__query_builder::Col, - pub tags: __sdk::__query_builder::Col>, - pub cover_image_src: __sdk::__query_builder::Col, - pub cover_asset_id: __sdk::__query_builder::Col, - pub reference_image_src: __sdk::__query_builder::Col>, - pub clear_count: __sdk::__query_builder::Col, - pub difficulty: __sdk::__query_builder::Col, - pub publication_status: __sdk::__query_builder::Col, - pub publish_ready: __sdk::__query_builder::Col, - pub play_count: __sdk::__query_builder::Col, - pub updated_at_micros: __sdk::__query_builder::Col, - pub published_at_micros: __sdk::__query_builder::Col>, - pub generated_item_assets_json: - __sdk::__query_builder::Col>, -} - -impl __sdk::__query_builder::HasCols for Match3DGalleryViewRow { - type Cols = Match3DGalleryViewRowCols; - fn cols(table_name: &'static str) -> Self::Cols { - Match3DGalleryViewRowCols { - profile_id: __sdk::__query_builder::Col::new(table_name, "profile_id"), - owner_user_id: __sdk::__query_builder::Col::new(table_name, "owner_user_id"), - source_session_id: __sdk::__query_builder::Col::new(table_name, "source_session_id"), - author_display_name: __sdk::__query_builder::Col::new( - table_name, - "author_display_name", - ), - game_name: __sdk::__query_builder::Col::new(table_name, "game_name"), - theme_text: __sdk::__query_builder::Col::new(table_name, "theme_text"), - summary_text: __sdk::__query_builder::Col::new(table_name, "summary_text"), - tags: __sdk::__query_builder::Col::new(table_name, "tags"), - cover_image_src: __sdk::__query_builder::Col::new(table_name, "cover_image_src"), - cover_asset_id: __sdk::__query_builder::Col::new(table_name, "cover_asset_id"), - reference_image_src: __sdk::__query_builder::Col::new( - table_name, - "reference_image_src", - ), - clear_count: __sdk::__query_builder::Col::new(table_name, "clear_count"), - difficulty: __sdk::__query_builder::Col::new(table_name, "difficulty"), - publication_status: __sdk::__query_builder::Col::new(table_name, "publication_status"), - publish_ready: __sdk::__query_builder::Col::new(table_name, "publish_ready"), - play_count: __sdk::__query_builder::Col::new(table_name, "play_count"), - updated_at_micros: __sdk::__query_builder::Col::new(table_name, "updated_at_micros"), - published_at_micros: __sdk::__query_builder::Col::new( - table_name, - "published_at_micros", - ), - generated_item_assets_json: __sdk::__query_builder::Col::new( - table_name, - "generated_item_assets_json", - ), - } - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_gallery_view_table.rs b/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_gallery_view_table.rs deleted file mode 100644 index b47d62a32..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_gallery_view_table.rs +++ /dev/null @@ -1,113 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::match_3_d_gallery_view_row_type::Match3DGalleryViewRow; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `match_3_d_gallery_view`. -/// -/// Obtain a handle from the [`Match3DGalleryViewTableAccess::match_3_d_gallery_view`] method on [`super::RemoteTables`], -/// like `ctx.db.match_3_d_gallery_view()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.match_3_d_gallery_view().on_insert(...)`. -pub struct Match3DGalleryViewTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `match_3_d_gallery_view`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait Match3DGalleryViewTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`Match3DGalleryViewTableHandle`], which mediates access to the table `match_3_d_gallery_view`. - fn match_3_d_gallery_view(&self) -> Match3DGalleryViewTableHandle<'_>; -} - -impl Match3DGalleryViewTableAccess for super::RemoteTables { - fn match_3_d_gallery_view(&self) -> Match3DGalleryViewTableHandle<'_> { - Match3DGalleryViewTableHandle { - imp: self - .imp - .get_table::("match_3_d_gallery_view"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct Match3DGalleryViewInsertCallbackId(__sdk::CallbackId); -pub struct Match3DGalleryViewDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::Table for Match3DGalleryViewTableHandle<'ctx> { - type Row = Match3DGalleryViewRow; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = Match3DGalleryViewInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> Match3DGalleryViewInsertCallbackId { - Match3DGalleryViewInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: Match3DGalleryViewInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = Match3DGalleryViewDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> Match3DGalleryViewDeleteCallbackId { - Match3DGalleryViewDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: Match3DGalleryViewDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("match_3_d_gallery_view"); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `Match3DGalleryViewRow`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait match_3_d_gallery_viewQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `Match3DGalleryViewRow`. - fn match_3_d_gallery_view(&self) -> __sdk::__query_builder::Table; -} - -impl match_3_d_gallery_viewQueryTableAccess for __sdk::QueryTableAccessor { - fn match_3_d_gallery_view(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("match_3_d_gallery_view") - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_item_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_item_snapshot_type.rs deleted file mode 100644 index fefdd1847..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_item_snapshot_type.rs +++ /dev/null @@ -1,23 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct Match3DItemSnapshot { - pub item_instance_id: String, - pub item_type_id: String, - pub visual_key: String, - pub x: f32, - pub y: f32, - pub radius: f32, - pub layer: u32, - pub state: String, - pub clickable: bool, -} - -impl __sdk::InModule for Match3DItemSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_run_click_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_run_click_input_type.rs deleted file mode 100644 index 97236799f..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_run_click_input_type.rs +++ /dev/null @@ -1,20 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct Match3DRunClickInput { - pub run_id: String, - pub owner_user_id: String, - pub item_instance_id: String, - pub client_snapshot_version: u32, - pub client_event_id: String, - pub clicked_at_ms: i64, -} - -impl __sdk::InModule for Match3DRunClickInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_run_get_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_run_get_input_type.rs deleted file mode 100644 index 4f10213b4..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_run_get_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct Match3DRunGetInput { - pub run_id: String, - pub owner_user_id: String, -} - -impl __sdk::InModule for Match3DRunGetInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_run_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_run_procedure_result_type.rs deleted file mode 100644 index 56da83e69..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_run_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::match_3_d_run_snapshot_type::Match3DRunSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct Match3DRunProcedureResult { - pub ok: bool, - pub run: Option, - pub error_message: Option, -} - -impl __sdk::InModule for Match3DRunProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_run_restart_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_run_restart_input_type.rs deleted file mode 100644 index b75f4e11c..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_run_restart_input_type.rs +++ /dev/null @@ -1,18 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct Match3DRunRestartInput { - pub source_run_id: String, - pub next_run_id: String, - pub owner_user_id: String, - pub restarted_at_ms: i64, -} - -impl __sdk::InModule for Match3DRunRestartInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_run_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_run_snapshot_type.rs deleted file mode 100644 index 3165a4713..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_run_snapshot_type.rs +++ /dev/null @@ -1,31 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::match_3_d_item_snapshot_type::Match3DItemSnapshot; -use super::match_3_d_tray_slot_snapshot_type::Match3DTraySlotSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct Match3DRunSnapshot { - pub run_id: String, - pub profile_id: String, - pub status: String, - pub snapshot_version: u32, - pub started_at_ms: i64, - pub duration_limit_ms: i64, - pub server_now_ms: i64, - pub remaining_ms: i64, - pub clear_count: u32, - pub total_item_count: u32, - pub cleared_item_count: u32, - pub tray_slots: Vec, - pub items: Vec, - pub failure_reason: Option, -} - -impl __sdk::InModule for Match3DRunSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_run_start_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_run_start_input_type.rs deleted file mode 100644 index 54e9b3729..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_run_start_input_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct Match3DRunStartInput { - pub run_id: String, - pub owner_user_id: String, - pub profile_id: String, - pub started_at_ms: i64, - pub item_type_count_override: u32, -} - -impl __sdk::InModule for Match3DRunStartInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_run_stop_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_run_stop_input_type.rs deleted file mode 100644 index f905d7cae..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_run_stop_input_type.rs +++ /dev/null @@ -1,17 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct Match3DRunStopInput { - pub run_id: String, - pub owner_user_id: String, - pub stopped_at_ms: i64, -} - -impl __sdk::InModule for Match3DRunStopInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_run_time_up_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_run_time_up_input_type.rs deleted file mode 100644 index 77fc4ca24..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_run_time_up_input_type.rs +++ /dev/null @@ -1,17 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct Match3DRunTimeUpInput { - pub run_id: String, - pub owner_user_id: String, - pub finished_at_ms: i64, -} - -impl __sdk::InModule for Match3DRunTimeUpInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_tray_slot_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_tray_slot_snapshot_type.rs deleted file mode 100644 index 823cff0c4..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_tray_slot_snapshot_type.rs +++ /dev/null @@ -1,18 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct Match3DTraySlotSnapshot { - pub slot_index: u32, - pub item_instance_id: Option, - pub item_type_id: Option, - pub visual_key: Option, -} - -impl __sdk::InModule for Match3DTraySlotSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_work_delete_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_work_delete_input_type.rs deleted file mode 100644 index 93c4e39f2..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_work_delete_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct Match3DWorkDeleteInput { - pub profile_id: String, - pub owner_user_id: String, -} - -impl __sdk::InModule for Match3DWorkDeleteInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_work_get_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_work_get_input_type.rs deleted file mode 100644 index 0bb641ce9..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_work_get_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct Match3DWorkGetInput { - pub profile_id: String, - pub owner_user_id: String, -} - -impl __sdk::InModule for Match3DWorkGetInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_work_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_work_procedure_result_type.rs deleted file mode 100644 index d4d589f1d..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_work_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::match_3_d_work_snapshot_type::Match3DWorkSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct Match3DWorkProcedureResult { - pub ok: bool, - pub work: Option, - pub error_message: Option, -} - -impl __sdk::InModule for Match3DWorkProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_work_publish_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_work_publish_input_type.rs deleted file mode 100644 index f13b38b9c..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_work_publish_input_type.rs +++ /dev/null @@ -1,17 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct Match3DWorkPublishInput { - pub profile_id: String, - pub owner_user_id: String, - pub published_at_micros: i64, -} - -impl __sdk::InModule for Match3DWorkPublishInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_work_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_work_snapshot_type.rs deleted file mode 100644 index fc1a862fa..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_work_snapshot_type.rs +++ /dev/null @@ -1,35 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::match_3_d_creator_config_snapshot_type::Match3DCreatorConfigSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct Match3DWorkSnapshot { - pub profile_id: String, - pub owner_user_id: String, - pub source_session_id: String, - pub author_display_name: String, - pub game_name: String, - pub theme_text: String, - pub summary_text: String, - pub tags: Vec, - pub cover_image_src: String, - pub cover_asset_id: String, - pub clear_count: u32, - pub difficulty: u32, - pub config: Match3DCreatorConfigSnapshot, - pub publication_status: String, - pub publish_ready: bool, - pub play_count: u32, - pub updated_at_micros: i64, - pub published_at_micros: Option, - pub generated_item_assets_json: Option, -} - -impl __sdk::InModule for Match3DWorkSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_work_update_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_work_update_input_type.rs deleted file mode 100644 index 5f01c7f33..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_work_update_input_type.rs +++ /dev/null @@ -1,25 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct Match3DWorkUpdateInput { - pub profile_id: String, - pub owner_user_id: String, - pub game_name: String, - pub theme_text: String, - pub summary_text: String, - pub tags_json: String, - pub cover_image_src: String, - pub cover_asset_id: String, - pub clear_count: u32, - pub difficulty: u32, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for Match3DWorkUpdateInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_works_list_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_works_list_input_type.rs deleted file mode 100644 index a74dfca43..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_works_list_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct Match3DWorksListInput { - pub owner_user_id: String, - pub published_only: bool, -} - -impl __sdk::InModule for Match3DWorksListInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_works_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_works_procedure_result_type.rs deleted file mode 100644 index 0bc07ad4d..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/match_3_d_works_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::match_3_d_work_snapshot_type::Match3DWorkSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct Match3DWorksProcedureResult { - pub ok: bool, - pub items: Vec, - pub error_message: Option, -} - -impl __sdk::InModule for Match3DWorksProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/npc_battle_interaction_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/npc_battle_interaction_procedure_result_type.rs deleted file mode 100644 index d5f16a3f0..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/npc_battle_interaction_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::npc_battle_interaction_result_type::NpcBattleInteractionResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct NpcBattleInteractionProcedureResult { - pub ok: bool, - pub result: Option, - pub error_message: Option, -} - -impl __sdk::InModule for NpcBattleInteractionProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/npc_battle_interaction_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/npc_battle_interaction_result_type.rs deleted file mode 100644 index c276f9698..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/npc_battle_interaction_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::battle_state_snapshot_type::BattleStateSnapshot; -use super::npc_interaction_result_type::NpcInteractionResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct NpcBattleInteractionResult { - pub interaction: NpcInteractionResult, - pub battle_state: BattleStateSnapshot, -} - -impl __sdk::InModule for NpcBattleInteractionResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/npc_interaction_battle_mode_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/npc_interaction_battle_mode_type.rs deleted file mode 100644 index dc8e88191..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/npc_interaction_battle_mode_type.rs +++ /dev/null @@ -1,18 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -#[derive(Copy, Eq, Hash)] -pub enum NpcInteractionBattleMode { - Fight, - - Spar, -} - -impl __sdk::InModule for NpcInteractionBattleMode { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/npc_interaction_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/npc_interaction_procedure_result_type.rs deleted file mode 100644 index 383dce2a3..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/npc_interaction_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::npc_interaction_result_type::NpcInteractionResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct NpcInteractionProcedureResult { - pub ok: bool, - pub result: Option, - pub error_message: Option, -} - -impl __sdk::InModule for NpcInteractionProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/npc_interaction_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/npc_interaction_result_type.rs deleted file mode 100644 index 836248072..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/npc_interaction_result_type.rs +++ /dev/null @@ -1,28 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::npc_interaction_battle_mode_type::NpcInteractionBattleMode; -use super::npc_interaction_status_type::NpcInteractionStatus; -use super::npc_state_snapshot_type::NpcStateSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct NpcInteractionResult { - pub npc_state: NpcStateSnapshot, - pub interaction_status: NpcInteractionStatus, - pub action_text: String, - pub result_text: String, - pub story_text: Option, - pub battle_mode: Option, - pub encounter_closed: bool, - pub affinity_changed: bool, - pub previous_affinity: i32, - pub next_affinity: i32, -} - -impl __sdk::InModule for NpcInteractionResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/npc_interaction_status_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/npc_interaction_status_type.rs deleted file mode 100644 index 8032abf92..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/npc_interaction_status_type.rs +++ /dev/null @@ -1,26 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -#[derive(Copy, Eq, Hash)] -pub enum NpcInteractionStatus { - Previewed, - - Dialogue, - - Resolved, - - Recruited, - - BattlePending, - - Left, -} - -impl __sdk::InModule for NpcInteractionStatus { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/npc_social_action_kind_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/npc_social_action_kind_type.rs deleted file mode 100644 index 9c6d2c1ec..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/npc_social_action_kind_type.rs +++ /dev/null @@ -1,24 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -#[derive(Copy, Eq, Hash)] -pub enum NpcSocialActionKind { - Chat, - - Help, - - Gift, - - Recruit, - - QuestAccept, -} - -impl __sdk::InModule for NpcSocialActionKind { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/npc_state_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/npc_state_procedure_result_type.rs deleted file mode 100644 index c4e60beff..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/npc_state_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::npc_state_snapshot_type::NpcStateSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct NpcStateProcedureResult { - pub ok: bool, - pub record: Option, - pub error_message: Option, -} - -impl __sdk::InModule for NpcStateProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/npc_state_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/npc_state_snapshot_type.rs deleted file mode 100644 index 351b45aea..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/npc_state_snapshot_type.rs +++ /dev/null @@ -1,35 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::npc_relation_state_type::NpcRelationState; -use super::npc_stance_profile_type::NpcStanceProfile; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct NpcStateSnapshot { - pub npc_state_id: String, - pub runtime_session_id: String, - pub npc_id: String, - pub npc_name: String, - pub affinity: i32, - pub relation_state: NpcRelationState, - pub help_used: bool, - pub chatted_count: u32, - pub gifts_given: u32, - pub recruited: bool, - pub trade_stock_signature: Option, - pub revealed_facts: Vec, - pub known_attribute_rumors: Vec, - pub first_meaningful_contact_resolved: bool, - pub seen_backstory_chapter_ids: Vec, - pub stance_profile: NpcStanceProfile, - pub created_at_micros: i64, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for NpcStateSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/npc_state_upsert_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/npc_state_upsert_input_type.rs deleted file mode 100644 index c31346e79..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/npc_state_upsert_input_type.rs +++ /dev/null @@ -1,31 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::npc_stance_profile_type::NpcStanceProfile; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct NpcStateUpsertInput { - pub runtime_session_id: String, - pub npc_id: String, - pub npc_name: String, - pub affinity: i32, - pub help_used: bool, - pub chatted_count: u32, - pub gifts_given: u32, - pub recruited: bool, - pub trade_stock_signature: Option, - pub revealed_facts: Vec, - pub known_attribute_rumors: Vec, - pub first_meaningful_contact_resolved: bool, - pub seen_backstory_chapter_ids: Vec, - pub stance_profile: Option, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for NpcStateUpsertInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/player_progression_get_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/player_progression_get_input_type.rs deleted file mode 100644 index a4dd27f54..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/player_progression_get_input_type.rs +++ /dev/null @@ -1,15 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PlayerProgressionGetInput { - pub user_id: String, -} - -impl __sdk::InModule for PlayerProgressionGetInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/player_progression_grant_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/player_progression_grant_input_type.rs deleted file mode 100644 index b57617530..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/player_progression_grant_input_type.rs +++ /dev/null @@ -1,20 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::player_progression_grant_source_type::PlayerProgressionGrantSource; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PlayerProgressionGrantInput { - pub user_id: String, - pub amount: u32, - pub source: PlayerProgressionGrantSource, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for PlayerProgressionGrantInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/player_progression_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/player_progression_procedure_result_type.rs deleted file mode 100644 index 413c12089..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/player_progression_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::player_progression_snapshot_type::PlayerProgressionSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PlayerProgressionProcedureResult { - pub ok: bool, - pub record: Option, - pub error_message: Option, -} - -impl __sdk::InModule for PlayerProgressionProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/player_progression_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/player_progression_snapshot_type.rs deleted file mode 100644 index 1361178ee..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/player_progression_snapshot_type.rs +++ /dev/null @@ -1,25 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::player_progression_grant_source_type::PlayerProgressionGrantSource; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PlayerProgressionSnapshot { - pub user_id: String, - pub level: u32, - pub current_level_xp: u32, - pub total_xp: u32, - pub xp_to_next_level: u32, - pub pending_level_ups: u32, - pub last_granted_source: Option, - pub created_at_micros: i64, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for PlayerProgressionSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/public_work_asset_read_grant_table.rs b/server-rs/crates/spacetime-client/src/module_bindings/public_work_asset_read_grant_table.rs deleted file mode 100644 index d35245795..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/public_work_asset_read_grant_table.rs +++ /dev/null @@ -1,166 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::public_work_asset_read_grant_type::PublicWorkAssetReadGrant; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `public_work_asset_read_grant`. -/// -/// Obtain a handle from the [`PublicWorkAssetReadGrantTableAccess::public_work_asset_read_grant`] method on [`super::RemoteTables`], -/// like `ctx.db.public_work_asset_read_grant()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.public_work_asset_read_grant().on_insert(...)`. -pub struct PublicWorkAssetReadGrantTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `public_work_asset_read_grant`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait PublicWorkAssetReadGrantTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`PublicWorkAssetReadGrantTableHandle`], which mediates access to the table `public_work_asset_read_grant`. - fn public_work_asset_read_grant(&self) -> PublicWorkAssetReadGrantTableHandle<'_>; -} - -impl PublicWorkAssetReadGrantTableAccess for super::RemoteTables { - fn public_work_asset_read_grant(&self) -> PublicWorkAssetReadGrantTableHandle<'_> { - PublicWorkAssetReadGrantTableHandle { - imp: self - .imp - .get_table::("public_work_asset_read_grant"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct PublicWorkAssetReadGrantInsertCallbackId(__sdk::CallbackId); -pub struct PublicWorkAssetReadGrantDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::Table for PublicWorkAssetReadGrantTableHandle<'ctx> { - type Row = PublicWorkAssetReadGrant; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = PublicWorkAssetReadGrantInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> PublicWorkAssetReadGrantInsertCallbackId { - PublicWorkAssetReadGrantInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: PublicWorkAssetReadGrantInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = PublicWorkAssetReadGrantDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> PublicWorkAssetReadGrantDeleteCallbackId { - PublicWorkAssetReadGrantDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: PublicWorkAssetReadGrantDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct PublicWorkAssetReadGrantUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for PublicWorkAssetReadGrantTableHandle<'ctx> { - type UpdateCallbackId = PublicWorkAssetReadGrantUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> PublicWorkAssetReadGrantUpdateCallbackId { - PublicWorkAssetReadGrantUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: PublicWorkAssetReadGrantUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `grant_id` unique index on the table `public_work_asset_read_grant`, -/// which allows point queries on the field of the same name -/// via the [`PublicWorkAssetReadGrantGrantIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.public_work_asset_read_grant().grant_id().find(...)`. -pub struct PublicWorkAssetReadGrantGrantIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> PublicWorkAssetReadGrantTableHandle<'ctx> { - /// Get a handle on the `grant_id` unique index on the table `public_work_asset_read_grant`. - pub fn grant_id(&self) -> PublicWorkAssetReadGrantGrantIdUnique<'ctx> { - PublicWorkAssetReadGrantGrantIdUnique { - imp: self.imp.get_unique_constraint::("grant_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> PublicWorkAssetReadGrantGrantIdUnique<'ctx> { - /// Find the subscribed row whose `grant_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &String) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = - client_cache.get_or_make_table::("public_work_asset_read_grant"); - _table.add_unique_constraint::("grant_id", |row| &row.grant_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `PublicWorkAssetReadGrant`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait public_work_asset_read_grantQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `PublicWorkAssetReadGrant`. - fn public_work_asset_read_grant( - &self, - ) -> __sdk::__query_builder::Table; -} - -impl public_work_asset_read_grantQueryTableAccess for __sdk::QueryTableAccessor { - fn public_work_asset_read_grant( - &self, - ) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("public_work_asset_read_grant") - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/public_work_asset_read_grant_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/public_work_asset_read_grant_type.rs deleted file mode 100644 index 73710250f..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/public_work_asset_read_grant_type.rs +++ /dev/null @@ -1,46 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PublicWorkAssetReadGrant { - pub grant_id: String, - pub source_type: String, - pub profile_id: String, - pub owner_user_id: String, - pub asset_object_id: Option, - pub object_key: Option, -} - -impl __sdk::InModule for PublicWorkAssetReadGrant { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `PublicWorkAssetReadGrant`. -/// -/// Provides typed access to columns for query building. -pub struct PublicWorkAssetReadGrantCols { - pub grant_id: __sdk::__query_builder::Col, - pub source_type: __sdk::__query_builder::Col, - pub profile_id: __sdk::__query_builder::Col, - pub owner_user_id: __sdk::__query_builder::Col, - pub asset_object_id: __sdk::__query_builder::Col>, - pub object_key: __sdk::__query_builder::Col>, -} - -impl __sdk::__query_builder::HasCols for PublicWorkAssetReadGrant { - type Cols = PublicWorkAssetReadGrantCols; - fn cols(table_name: &'static str) -> Self::Cols { - PublicWorkAssetReadGrantCols { - grant_id: __sdk::__query_builder::Col::new(table_name, "grant_id"), - source_type: __sdk::__query_builder::Col::new(table_name, "source_type"), - profile_id: __sdk::__query_builder::Col::new(table_name, "profile_id"), - owner_user_id: __sdk::__query_builder::Col::new(table_name, "owner_user_id"), - asset_object_id: __sdk::__query_builder::Col::new(table_name, "asset_object_id"), - object_key: __sdk::__query_builder::Col::new(table_name, "object_key"), - } - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/public_work_detail_entry_table.rs b/server-rs/crates/spacetime-client/src/module_bindings/public_work_detail_entry_table.rs deleted file mode 100644 index 7d2e44083..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/public_work_detail_entry_table.rs +++ /dev/null @@ -1,114 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::public_work_detail_entry_type::PublicWorkDetailEntry; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `public_work_detail_entry`. -/// -/// Obtain a handle from the [`PublicWorkDetailEntryTableAccess::public_work_detail_entry`] method on [`super::RemoteTables`], -/// like `ctx.db.public_work_detail_entry()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.public_work_detail_entry().on_insert(...)`. -pub struct PublicWorkDetailEntryTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `public_work_detail_entry`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait PublicWorkDetailEntryTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`PublicWorkDetailEntryTableHandle`], which mediates access to the table `public_work_detail_entry`. - fn public_work_detail_entry(&self) -> PublicWorkDetailEntryTableHandle<'_>; -} - -impl PublicWorkDetailEntryTableAccess for super::RemoteTables { - fn public_work_detail_entry(&self) -> PublicWorkDetailEntryTableHandle<'_> { - PublicWorkDetailEntryTableHandle { - imp: self - .imp - .get_table::("public_work_detail_entry"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct PublicWorkDetailEntryInsertCallbackId(__sdk::CallbackId); -pub struct PublicWorkDetailEntryDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::Table for PublicWorkDetailEntryTableHandle<'ctx> { - type Row = PublicWorkDetailEntry; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = PublicWorkDetailEntryInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> PublicWorkDetailEntryInsertCallbackId { - PublicWorkDetailEntryInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: PublicWorkDetailEntryInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = PublicWorkDetailEntryDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> PublicWorkDetailEntryDeleteCallbackId { - PublicWorkDetailEntryDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: PublicWorkDetailEntryDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = - client_cache.get_or_make_table::("public_work_detail_entry"); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `PublicWorkDetailEntry`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait public_work_detail_entryQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `PublicWorkDetailEntry`. - fn public_work_detail_entry(&self) -> __sdk::__query_builder::Table; -} - -impl public_work_detail_entryQueryTableAccess for __sdk::QueryTableAccessor { - fn public_work_detail_entry(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("public_work_detail_entry") - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/public_work_detail_entry_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/public_work_detail_entry_type.rs deleted file mode 100644 index d738ee0d8..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/public_work_detail_entry_type.rs +++ /dev/null @@ -1,97 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PublicWorkDetailEntry { - pub source_type: String, - pub work_id: String, - pub profile_id: String, - pub source_session_id: Option, - pub public_work_code: String, - pub owner_user_id: String, - pub author_display_name: String, - pub world_name: String, - pub subtitle: String, - pub summary_text: String, - pub cover_image_src: Option, - pub cover_asset_id: Option, - pub theme_tags: Vec, - pub play_count: u32, - pub remix_count: u32, - pub like_count: u32, - pub published_at_micros: Option, - pub updated_at_micros: i64, - pub sort_time_micros: i64, - pub detail_payload_json: String, -} - -impl __sdk::InModule for PublicWorkDetailEntry { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `PublicWorkDetailEntry`. -/// -/// Provides typed access to columns for query building. -pub struct PublicWorkDetailEntryCols { - pub source_type: __sdk::__query_builder::Col, - pub work_id: __sdk::__query_builder::Col, - pub profile_id: __sdk::__query_builder::Col, - pub source_session_id: __sdk::__query_builder::Col>, - pub public_work_code: __sdk::__query_builder::Col, - pub owner_user_id: __sdk::__query_builder::Col, - pub author_display_name: __sdk::__query_builder::Col, - pub world_name: __sdk::__query_builder::Col, - pub subtitle: __sdk::__query_builder::Col, - pub summary_text: __sdk::__query_builder::Col, - pub cover_image_src: __sdk::__query_builder::Col>, - pub cover_asset_id: __sdk::__query_builder::Col>, - pub theme_tags: __sdk::__query_builder::Col>, - pub play_count: __sdk::__query_builder::Col, - pub remix_count: __sdk::__query_builder::Col, - pub like_count: __sdk::__query_builder::Col, - pub published_at_micros: __sdk::__query_builder::Col>, - pub updated_at_micros: __sdk::__query_builder::Col, - pub sort_time_micros: __sdk::__query_builder::Col, - pub detail_payload_json: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for PublicWorkDetailEntry { - type Cols = PublicWorkDetailEntryCols; - fn cols(table_name: &'static str) -> Self::Cols { - PublicWorkDetailEntryCols { - source_type: __sdk::__query_builder::Col::new(table_name, "source_type"), - work_id: __sdk::__query_builder::Col::new(table_name, "work_id"), - profile_id: __sdk::__query_builder::Col::new(table_name, "profile_id"), - source_session_id: __sdk::__query_builder::Col::new(table_name, "source_session_id"), - public_work_code: __sdk::__query_builder::Col::new(table_name, "public_work_code"), - owner_user_id: __sdk::__query_builder::Col::new(table_name, "owner_user_id"), - author_display_name: __sdk::__query_builder::Col::new( - table_name, - "author_display_name", - ), - world_name: __sdk::__query_builder::Col::new(table_name, "world_name"), - subtitle: __sdk::__query_builder::Col::new(table_name, "subtitle"), - summary_text: __sdk::__query_builder::Col::new(table_name, "summary_text"), - cover_image_src: __sdk::__query_builder::Col::new(table_name, "cover_image_src"), - cover_asset_id: __sdk::__query_builder::Col::new(table_name, "cover_asset_id"), - theme_tags: __sdk::__query_builder::Col::new(table_name, "theme_tags"), - play_count: __sdk::__query_builder::Col::new(table_name, "play_count"), - remix_count: __sdk::__query_builder::Col::new(table_name, "remix_count"), - like_count: __sdk::__query_builder::Col::new(table_name, "like_count"), - published_at_micros: __sdk::__query_builder::Col::new( - table_name, - "published_at_micros", - ), - updated_at_micros: __sdk::__query_builder::Col::new(table_name, "updated_at_micros"), - sort_time_micros: __sdk::__query_builder::Col::new(table_name, "sort_time_micros"), - detail_payload_json: __sdk::__query_builder::Col::new( - table_name, - "detail_payload_json", - ), - } - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/public_work_gallery_entry_table.rs b/server-rs/crates/spacetime-client/src/module_bindings/public_work_gallery_entry_table.rs deleted file mode 100644 index c8e119056..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/public_work_gallery_entry_table.rs +++ /dev/null @@ -1,114 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::public_work_gallery_entry_type::PublicWorkGalleryEntry; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `public_work_gallery_entry`. -/// -/// Obtain a handle from the [`PublicWorkGalleryEntryTableAccess::public_work_gallery_entry`] method on [`super::RemoteTables`], -/// like `ctx.db.public_work_gallery_entry()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.public_work_gallery_entry().on_insert(...)`. -pub struct PublicWorkGalleryEntryTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `public_work_gallery_entry`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait PublicWorkGalleryEntryTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`PublicWorkGalleryEntryTableHandle`], which mediates access to the table `public_work_gallery_entry`. - fn public_work_gallery_entry(&self) -> PublicWorkGalleryEntryTableHandle<'_>; -} - -impl PublicWorkGalleryEntryTableAccess for super::RemoteTables { - fn public_work_gallery_entry(&self) -> PublicWorkGalleryEntryTableHandle<'_> { - PublicWorkGalleryEntryTableHandle { - imp: self - .imp - .get_table::("public_work_gallery_entry"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct PublicWorkGalleryEntryInsertCallbackId(__sdk::CallbackId); -pub struct PublicWorkGalleryEntryDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::Table for PublicWorkGalleryEntryTableHandle<'ctx> { - type Row = PublicWorkGalleryEntry; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = PublicWorkGalleryEntryInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> PublicWorkGalleryEntryInsertCallbackId { - PublicWorkGalleryEntryInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: PublicWorkGalleryEntryInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = PublicWorkGalleryEntryDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> PublicWorkGalleryEntryDeleteCallbackId { - PublicWorkGalleryEntryDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: PublicWorkGalleryEntryDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = - client_cache.get_or_make_table::("public_work_gallery_entry"); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `PublicWorkGalleryEntry`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait public_work_gallery_entryQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `PublicWorkGalleryEntry`. - fn public_work_gallery_entry(&self) -> __sdk::__query_builder::Table; -} - -impl public_work_gallery_entryQueryTableAccess for __sdk::QueryTableAccessor { - fn public_work_gallery_entry(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("public_work_gallery_entry") - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/public_work_gallery_entry_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/public_work_gallery_entry_type.rs deleted file mode 100644 index 33c8d2b70..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/public_work_gallery_entry_type.rs +++ /dev/null @@ -1,91 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PublicWorkGalleryEntry { - pub source_type: String, - pub work_id: String, - pub profile_id: String, - pub source_session_id: Option, - pub public_work_code: String, - pub owner_user_id: String, - pub author_display_name: String, - pub world_name: String, - pub subtitle: String, - pub summary_text: String, - pub cover_image_src: Option, - pub cover_asset_id: Option, - pub theme_tags: Vec, - pub play_count: u32, - pub remix_count: u32, - pub like_count: u32, - pub published_at_micros: Option, - pub updated_at_micros: i64, - pub sort_time_micros: i64, -} - -impl __sdk::InModule for PublicWorkGalleryEntry { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `PublicWorkGalleryEntry`. -/// -/// Provides typed access to columns for query building. -pub struct PublicWorkGalleryEntryCols { - pub source_type: __sdk::__query_builder::Col, - pub work_id: __sdk::__query_builder::Col, - pub profile_id: __sdk::__query_builder::Col, - pub source_session_id: __sdk::__query_builder::Col>, - pub public_work_code: __sdk::__query_builder::Col, - pub owner_user_id: __sdk::__query_builder::Col, - pub author_display_name: __sdk::__query_builder::Col, - pub world_name: __sdk::__query_builder::Col, - pub subtitle: __sdk::__query_builder::Col, - pub summary_text: __sdk::__query_builder::Col, - pub cover_image_src: __sdk::__query_builder::Col>, - pub cover_asset_id: __sdk::__query_builder::Col>, - pub theme_tags: __sdk::__query_builder::Col>, - pub play_count: __sdk::__query_builder::Col, - pub remix_count: __sdk::__query_builder::Col, - pub like_count: __sdk::__query_builder::Col, - pub published_at_micros: __sdk::__query_builder::Col>, - pub updated_at_micros: __sdk::__query_builder::Col, - pub sort_time_micros: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for PublicWorkGalleryEntry { - type Cols = PublicWorkGalleryEntryCols; - fn cols(table_name: &'static str) -> Self::Cols { - PublicWorkGalleryEntryCols { - source_type: __sdk::__query_builder::Col::new(table_name, "source_type"), - work_id: __sdk::__query_builder::Col::new(table_name, "work_id"), - profile_id: __sdk::__query_builder::Col::new(table_name, "profile_id"), - source_session_id: __sdk::__query_builder::Col::new(table_name, "source_session_id"), - public_work_code: __sdk::__query_builder::Col::new(table_name, "public_work_code"), - owner_user_id: __sdk::__query_builder::Col::new(table_name, "owner_user_id"), - author_display_name: __sdk::__query_builder::Col::new( - table_name, - "author_display_name", - ), - world_name: __sdk::__query_builder::Col::new(table_name, "world_name"), - subtitle: __sdk::__query_builder::Col::new(table_name, "subtitle"), - summary_text: __sdk::__query_builder::Col::new(table_name, "summary_text"), - cover_image_src: __sdk::__query_builder::Col::new(table_name, "cover_image_src"), - cover_asset_id: __sdk::__query_builder::Col::new(table_name, "cover_asset_id"), - theme_tags: __sdk::__query_builder::Col::new(table_name, "theme_tags"), - play_count: __sdk::__query_builder::Col::new(table_name, "play_count"), - remix_count: __sdk::__query_builder::Col::new(table_name, "remix_count"), - like_count: __sdk::__query_builder::Col::new(table_name, "like_count"), - published_at_micros: __sdk::__query_builder::Col::new( - table_name, - "published_at_micros", - ), - updated_at_micros: __sdk::__query_builder::Col::new(table_name, "updated_at_micros"), - sort_time_micros: __sdk::__query_builder::Col::new(table_name, "sort_time_micros"), - } - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/public_work_interaction_config_admin_upsert_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/public_work_interaction_config_admin_upsert_input_type.rs deleted file mode 100644 index 3f76cc6b8..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/public_work_interaction_config_admin_upsert_input_type.rs +++ /dev/null @@ -1,15 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PublicWorkInteractionConfigAdminUpsertInput { - pub public_work_interactions_json: String, -} - -impl __sdk::InModule for PublicWorkInteractionConfigAdminUpsertInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/publish_bark_battle_work_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/publish_bark_battle_work_procedure.rs deleted file mode 100644 index 9ea9f0db8..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/publish_bark_battle_work_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::bark_battle_procedure_result_type::BarkBattleProcedureResult; -use super::bark_battle_work_publish_input_type::BarkBattleWorkPublishInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct PublishBarkBattleWorkArgs { - pub input: BarkBattleWorkPublishInput, -} - -impl __sdk::InModule for PublishBarkBattleWorkArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `publish_bark_battle_work`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait publish_bark_battle_work { - fn publish_bark_battle_work(&self, input: BarkBattleWorkPublishInput) { - self.publish_bark_battle_work_then(input, |_, _| {}); - } - - fn publish_bark_battle_work_then( - &self, - input: BarkBattleWorkPublishInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl publish_bark_battle_work for super::RemoteProcedures { - fn publish_bark_battle_work_then( - &self, - input: BarkBattleWorkPublishInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, BarkBattleProcedureResult>( - "publish_bark_battle_work", - PublishBarkBattleWorkArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/publish_big_fish_game_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/publish_big_fish_game_procedure.rs deleted file mode 100644 index e8007288d..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/publish_big_fish_game_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::big_fish_publish_input_type::BigFishPublishInput; -use super::big_fish_session_procedure_result_type::BigFishSessionProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct PublishBigFishGameArgs { - pub input: BigFishPublishInput, -} - -impl __sdk::InModule for PublishBigFishGameArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `publish_big_fish_game`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait publish_big_fish_game { - fn publish_big_fish_game(&self, input: BigFishPublishInput) { - self.publish_big_fish_game_then(input, |_, _| {}); - } - - fn publish_big_fish_game_then( - &self, - input: BigFishPublishInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl publish_big_fish_game for super::RemoteProcedures { - fn publish_big_fish_game_then( - &self, - input: BigFishPublishInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, BigFishSessionProcedureResult>( - "publish_big_fish_game", - PublishBigFishGameArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/publish_custom_world_profile_and_return_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/publish_custom_world_profile_and_return_procedure.rs deleted file mode 100644 index e5434acad..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/publish_custom_world_profile_and_return_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_library_mutation_result_type::CustomWorldLibraryMutationResult; -use super::custom_world_profile_publish_input_type::CustomWorldProfilePublishInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct PublishCustomWorldProfileAndReturnArgs { - pub input: CustomWorldProfilePublishInput, -} - -impl __sdk::InModule for PublishCustomWorldProfileAndReturnArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `publish_custom_world_profile_and_return`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait publish_custom_world_profile_and_return { - fn publish_custom_world_profile_and_return(&self, input: CustomWorldProfilePublishInput) { - self.publish_custom_world_profile_and_return_then(input, |_, _| {}); - } - - fn publish_custom_world_profile_and_return_then( - &self, - input: CustomWorldProfilePublishInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl publish_custom_world_profile_and_return for super::RemoteProcedures { - fn publish_custom_world_profile_and_return_then( - &self, - input: CustomWorldProfilePublishInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, CustomWorldLibraryMutationResult>( - "publish_custom_world_profile_and_return", - PublishCustomWorldProfileAndReturnArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/publish_custom_world_profile_reducer.rs b/server-rs/crates/spacetime-client/src/module_bindings/publish_custom_world_profile_reducer.rs deleted file mode 100644 index 84e6b339f..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/publish_custom_world_profile_reducer.rs +++ /dev/null @@ -1,71 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_profile_publish_input_type::CustomWorldProfilePublishInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct PublishCustomWorldProfileArgs { - pub input: CustomWorldProfilePublishInput, -} - -impl From for super::Reducer { - fn from(args: PublishCustomWorldProfileArgs) -> Self { - Self::PublishCustomWorldProfile { input: args.input } - } -} - -impl __sdk::InModule for PublishCustomWorldProfileArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `publish_custom_world_profile`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait publish_custom_world_profile { - /// Request that the remote module invoke the reducer `publish_custom_world_profile` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`publish_custom_world_profile:publish_custom_world_profile_then`] to run a callback after the reducer completes. - fn publish_custom_world_profile( - &self, - input: CustomWorldProfilePublishInput, - ) -> __sdk::Result<()> { - self.publish_custom_world_profile_then(input, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `publish_custom_world_profile` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn publish_custom_world_profile_then( - &self, - input: CustomWorldProfilePublishInput, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl publish_custom_world_profile for super::RemoteReducers { - fn publish_custom_world_profile_then( - &self, - input: CustomWorldProfilePublishInput, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(PublishCustomWorldProfileArgs { input }, callback) - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/publish_custom_world_world_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/publish_custom_world_world_procedure.rs deleted file mode 100644 index 1eb935a23..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/publish_custom_world_world_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_publish_world_input_type::CustomWorldPublishWorldInput; -use super::custom_world_publish_world_result_type::CustomWorldPublishWorldResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct PublishCustomWorldWorldArgs { - pub input: CustomWorldPublishWorldInput, -} - -impl __sdk::InModule for PublishCustomWorldWorldArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `publish_custom_world_world`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait publish_custom_world_world { - fn publish_custom_world_world(&self, input: CustomWorldPublishWorldInput) { - self.publish_custom_world_world_then(input, |_, _| {}); - } - - fn publish_custom_world_world_then( - &self, - input: CustomWorldPublishWorldInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl publish_custom_world_world for super::RemoteProcedures { - fn publish_custom_world_world_then( - &self, - input: CustomWorldPublishWorldInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, CustomWorldPublishWorldResult>( - "publish_custom_world_world", - PublishCustomWorldWorldArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/publish_jump_hop_work_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/publish_jump_hop_work_procedure.rs deleted file mode 100644 index a87bb2784..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/publish_jump_hop_work_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::jump_hop_work_procedure_result_type::JumpHopWorkProcedureResult; -use super::jump_hop_work_publish_input_type::JumpHopWorkPublishInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct PublishJumpHopWorkArgs { - pub input: JumpHopWorkPublishInput, -} - -impl __sdk::InModule for PublishJumpHopWorkArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `publish_jump_hop_work`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait publish_jump_hop_work { - fn publish_jump_hop_work(&self, input: JumpHopWorkPublishInput) { - self.publish_jump_hop_work_then(input, |_, _| {}); - } - - fn publish_jump_hop_work_then( - &self, - input: JumpHopWorkPublishInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl publish_jump_hop_work for super::RemoteProcedures { - fn publish_jump_hop_work_then( - &self, - input: JumpHopWorkPublishInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, JumpHopWorkProcedureResult>( - "publish_jump_hop_work", - PublishJumpHopWorkArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/publish_match_3_d_work_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/publish_match_3_d_work_procedure.rs deleted file mode 100644 index 65bd160e5..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/publish_match_3_d_work_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::match_3_d_work_procedure_result_type::Match3DWorkProcedureResult; -use super::match_3_d_work_publish_input_type::Match3DWorkPublishInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct PublishMatch3DWorkArgs { - pub input: Match3DWorkPublishInput, -} - -impl __sdk::InModule for PublishMatch3DWorkArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `publish_match_3_d_work`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait publish_match_3_d_work { - fn publish_match_3_d_work(&self, input: Match3DWorkPublishInput) { - self.publish_match_3_d_work_then(input, |_, _| {}); - } - - fn publish_match_3_d_work_then( - &self, - input: Match3DWorkPublishInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl publish_match_3_d_work for super::RemoteProcedures { - fn publish_match_3_d_work_then( - &self, - input: Match3DWorkPublishInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, Match3DWorkProcedureResult>( - "publish_match_3_d_work", - PublishMatch3DWorkArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/publish_puzzle_clear_work_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/publish_puzzle_clear_work_procedure.rs deleted file mode 100644 index c5e2ea820..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/publish_puzzle_clear_work_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_clear_work_procedure_result_type::PuzzleClearWorkProcedureResult; -use super::puzzle_clear_work_publish_input_type::PuzzleClearWorkPublishInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct PublishPuzzleClearWorkArgs { - pub input: PuzzleClearWorkPublishInput, -} - -impl __sdk::InModule for PublishPuzzleClearWorkArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `publish_puzzle_clear_work`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait publish_puzzle_clear_work { - fn publish_puzzle_clear_work(&self, input: PuzzleClearWorkPublishInput) { - self.publish_puzzle_clear_work_then(input, |_, _| {}); - } - - fn publish_puzzle_clear_work_then( - &self, - input: PuzzleClearWorkPublishInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl publish_puzzle_clear_work for super::RemoteProcedures { - fn publish_puzzle_clear_work_then( - &self, - input: PuzzleClearWorkPublishInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleClearWorkProcedureResult>( - "publish_puzzle_clear_work", - PublishPuzzleClearWorkArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/publish_puzzle_work_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/publish_puzzle_work_procedure.rs deleted file mode 100644 index 288b44a51..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/publish_puzzle_work_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_publish_input_type::PuzzlePublishInput; -use super::puzzle_work_procedure_result_type::PuzzleWorkProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct PublishPuzzleWorkArgs { - pub input: PuzzlePublishInput, -} - -impl __sdk::InModule for PublishPuzzleWorkArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `publish_puzzle_work`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait publish_puzzle_work { - fn publish_puzzle_work(&self, input: PuzzlePublishInput) { - self.publish_puzzle_work_then(input, |_, _| {}); - } - - fn publish_puzzle_work_then( - &self, - input: PuzzlePublishInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl publish_puzzle_work for super::RemoteProcedures { - fn publish_puzzle_work_then( - &self, - input: PuzzlePublishInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleWorkProcedureResult>( - "publish_puzzle_work", - PublishPuzzleWorkArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/publish_square_hole_work_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/publish_square_hole_work_procedure.rs deleted file mode 100644 index f0c2be486..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/publish_square_hole_work_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::square_hole_work_procedure_result_type::SquareHoleWorkProcedureResult; -use super::square_hole_work_publish_input_type::SquareHoleWorkPublishInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct PublishSquareHoleWorkArgs { - pub input: SquareHoleWorkPublishInput, -} - -impl __sdk::InModule for PublishSquareHoleWorkArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `publish_square_hole_work`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait publish_square_hole_work { - fn publish_square_hole_work(&self, input: SquareHoleWorkPublishInput) { - self.publish_square_hole_work_then(input, |_, _| {}); - } - - fn publish_square_hole_work_then( - &self, - input: SquareHoleWorkPublishInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl publish_square_hole_work for super::RemoteProcedures { - fn publish_square_hole_work_then( - &self, - input: SquareHoleWorkPublishInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, SquareHoleWorkProcedureResult>( - "publish_square_hole_work", - PublishSquareHoleWorkArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/publish_visual_novel_work_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/publish_visual_novel_work_procedure.rs deleted file mode 100644 index 7ddf731bc..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/publish_visual_novel_work_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::visual_novel_work_procedure_result_type::VisualNovelWorkProcedureResult; -use super::visual_novel_work_publish_input_type::VisualNovelWorkPublishInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct PublishVisualNovelWorkArgs { - pub input: VisualNovelWorkPublishInput, -} - -impl __sdk::InModule for PublishVisualNovelWorkArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `publish_visual_novel_work`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait publish_visual_novel_work { - fn publish_visual_novel_work(&self, input: VisualNovelWorkPublishInput) { - self.publish_visual_novel_work_then(input, |_, _| {}); - } - - fn publish_visual_novel_work_then( - &self, - input: VisualNovelWorkPublishInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl publish_visual_novel_work for super::RemoteProcedures { - fn publish_visual_novel_work_then( - &self, - input: VisualNovelWorkPublishInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, VisualNovelWorkProcedureResult>( - "publish_visual_novel_work", - PublishVisualNovelWorkArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/publish_wooden_fish_work_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/publish_wooden_fish_work_procedure.rs deleted file mode 100644 index 5dd6555ce..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/publish_wooden_fish_work_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::wooden_fish_work_procedure_result_type::WoodenFishWorkProcedureResult; -use super::wooden_fish_work_publish_input_type::WoodenFishWorkPublishInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct PublishWoodenFishWorkArgs { - pub input: WoodenFishWorkPublishInput, -} - -impl __sdk::InModule for PublishWoodenFishWorkArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `publish_wooden_fish_work`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait publish_wooden_fish_work { - fn publish_wooden_fish_work(&self, input: WoodenFishWorkPublishInput) { - self.publish_wooden_fish_work_then(input, |_, _| {}); - } - - fn publish_wooden_fish_work_then( - &self, - input: WoodenFishWorkPublishInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl publish_wooden_fish_work for super::RemoteProcedures { - fn publish_wooden_fish_work_then( - &self, - input: WoodenFishWorkPublishInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, WoodenFishWorkProcedureResult>( - "publish_wooden_fish_work", - PublishWoodenFishWorkArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_message_finalize_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_message_finalize_input_type.rs deleted file mode 100644 index 486919f22..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_message_finalize_input_type.rs +++ /dev/null @@ -1,25 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_agent_stage_type::PuzzleAgentStage; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleAgentMessageFinalizeInput { - pub session_id: String, - pub owner_user_id: String, - pub assistant_message_id: Option, - pub assistant_reply_text: Option, - pub stage: PuzzleAgentStage, - pub progress_percent: u32, - pub anchor_pack_json: String, - pub error_message: Option, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for PuzzleAgentMessageFinalizeInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_message_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_message_snapshot_type.rs deleted file mode 100644 index 00dbec45f..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_message_snapshot_type.rs +++ /dev/null @@ -1,23 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_agent_message_kind_type::PuzzleAgentMessageKind; -use super::puzzle_agent_message_role_type::PuzzleAgentMessageRole; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleAgentMessageSnapshot { - pub message_id: String, - pub session_id: String, - pub role: PuzzleAgentMessageRole, - pub kind: PuzzleAgentMessageKind, - pub text: String, - pub created_at_micros: i64, -} - -impl __sdk::InModule for PuzzleAgentMessageSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_message_submit_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_message_submit_input_type.rs deleted file mode 100644 index 930866431..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_message_submit_input_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleAgentMessageSubmitInput { - pub session_id: String, - pub owner_user_id: String, - pub user_message_id: String, - pub user_message_text: String, - pub submitted_at_micros: i64, -} - -impl __sdk::InModule for PuzzleAgentMessageSubmitInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_session_create_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_session_create_input_type.rs deleted file mode 100644 index c3ccc7d2c..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_session_create_input_type.rs +++ /dev/null @@ -1,20 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleAgentSessionCreateInput { - pub session_id: String, - pub owner_user_id: String, - pub seed_text: String, - pub welcome_message_id: String, - pub welcome_message_text: String, - pub created_at_micros: i64, -} - -impl __sdk::InModule for PuzzleAgentSessionCreateInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_session_get_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_session_get_input_type.rs deleted file mode 100644 index af4159c62..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_session_get_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleAgentSessionGetInput { - pub session_id: String, - pub owner_user_id: String, -} - -impl __sdk::InModule for PuzzleAgentSessionGetInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_session_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_session_procedure_result_type.rs deleted file mode 100644 index 00de9f76d..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_session_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_agent_session_snapshot_type::PuzzleAgentSessionSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleAgentSessionProcedureResult { - pub ok: bool, - pub session: Option, - pub error_message: Option, -} - -impl __sdk::InModule for PuzzleAgentSessionProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_session_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_session_snapshot_type.rs deleted file mode 100644 index d099e6ac7..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_session_snapshot_type.rs +++ /dev/null @@ -1,36 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_agent_message_snapshot_type::PuzzleAgentMessageSnapshot; -use super::puzzle_agent_stage_type::PuzzleAgentStage; -use super::puzzle_agent_suggested_action_type::PuzzleAgentSuggestedAction; -use super::puzzle_anchor_pack_type::PuzzleAnchorPack; -use super::puzzle_result_draft_type::PuzzleResultDraft; -use super::puzzle_result_preview_envelope_type::PuzzleResultPreviewEnvelope; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleAgentSessionSnapshot { - pub session_id: String, - pub owner_user_id: String, - pub seed_text: String, - pub current_turn: u32, - pub progress_percent: u32, - pub stage: PuzzleAgentStage, - pub anchor_pack: PuzzleAnchorPack, - pub draft: Option, - pub messages: Vec, - pub last_assistant_reply: Option, - pub published_profile_id: Option, - pub suggested_actions: Vec, - pub result_preview: Option, - pub created_at_micros: i64, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for PuzzleAgentSessionSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_suggested_action_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_suggested_action_type.rs deleted file mode 100644 index 56593222f..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_suggested_action_type.rs +++ /dev/null @@ -1,17 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleAgentSuggestedAction { - pub id: String, - pub action_type: String, - pub label: String, -} - -impl __sdk::InModule for PuzzleAgentSuggestedAction { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_anchor_item_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_anchor_item_type.rs deleted file mode 100644 index 1280d719e..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_anchor_item_type.rs +++ /dev/null @@ -1,20 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_anchor_status_type::PuzzleAnchorStatus; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleAnchorItem { - pub key: String, - pub label: String, - pub value: String, - pub status: PuzzleAnchorStatus, -} - -impl __sdk::InModule for PuzzleAnchorItem { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_anchor_pack_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_anchor_pack_type.rs deleted file mode 100644 index db0066094..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_anchor_pack_type.rs +++ /dev/null @@ -1,21 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_anchor_item_type::PuzzleAnchorItem; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleAnchorPack { - pub theme_promise: PuzzleAnchorItem, - pub visual_subject: PuzzleAnchorItem, - pub visual_mood: PuzzleAnchorItem, - pub composition_hooks: PuzzleAnchorItem, - pub tags_and_forbidden: PuzzleAnchorItem, -} - -impl __sdk::InModule for PuzzleAnchorPack { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_anchor_status_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_anchor_status_type.rs deleted file mode 100644 index feb7a6508..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_anchor_status_type.rs +++ /dev/null @@ -1,22 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -#[derive(Copy, Eq, Hash)] -pub enum PuzzleAnchorStatus { - Missing, - - Inferred, - - Confirmed, - - Locked, -} - -impl __sdk::InModule for PuzzleAnchorStatus { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_audio_asset_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_audio_asset_type.rs deleted file mode 100644 index e430a9c90..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_audio_asset_type.rs +++ /dev/null @@ -1,22 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleAudioAsset { - pub task_id: String, - pub provider: String, - pub asset_object_id: Option, - pub asset_kind: Option, - pub audio_src: String, - pub prompt: Option, - pub title: Option, - pub updated_at: Option, -} - -impl __sdk::InModule for PuzzleAudioAsset { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_background_compile_task_claim_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_background_compile_task_claim_input_type.rs deleted file mode 100644 index f721ad91f..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_background_compile_task_claim_input_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleBackgroundCompileTaskClaimInput { - pub task_id: String, - pub claim_id: String, - pub session_id: String, - pub owner_user_id: String, - pub claimed_at_micros: i64, -} - -impl __sdk::InModule for PuzzleBackgroundCompileTaskClaimInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_background_compile_task_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_background_compile_task_procedure_result_type.rs deleted file mode 100644 index 8c85082e1..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_background_compile_task_procedure_result_type.rs +++ /dev/null @@ -1,17 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleBackgroundCompileTaskProcedureResult { - pub ok: bool, - pub claimed: bool, - pub error_message: Option, -} - -impl __sdk::InModule for PuzzleBackgroundCompileTaskProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_background_compile_task_release_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_background_compile_task_release_input_type.rs deleted file mode 100644 index f4d983fa1..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_background_compile_task_release_input_type.rs +++ /dev/null @@ -1,18 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleBackgroundCompileTaskReleaseInput { - pub task_id: String, - pub claim_id: String, - pub session_id: String, - pub owner_user_id: String, -} - -impl __sdk::InModule for PuzzleBackgroundCompileTaskReleaseInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_board_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_board_snapshot_type.rs deleted file mode 100644 index 2408ef0c1..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_board_snapshot_type.rs +++ /dev/null @@ -1,23 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_merged_group_state_type::PuzzleMergedGroupState; -use super::puzzle_piece_state_type::PuzzlePieceState; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleBoardSnapshot { - pub rows: u32, - pub cols: u32, - pub pieces: Vec, - pub merged_groups: Vec, - pub selected_piece_id: Option, - pub all_tiles_resolved: bool, -} - -impl __sdk::InModule for PuzzleBoardSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_cell_position_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_cell_position_type.rs deleted file mode 100644 index 929427997..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_cell_position_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleCellPosition { - pub row: u32, - pub col: u32, -} - -impl __sdk::InModule for PuzzleCellPosition { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_agent_session_create_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_agent_session_create_input_type.rs deleted file mode 100644 index 9403c1381..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_agent_session_create_input_type.rs +++ /dev/null @@ -1,23 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleClearAgentSessionCreateInput { - pub session_id: String, - pub owner_user_id: String, - pub work_title: String, - pub work_description: String, - pub theme_prompt: String, - pub generate_board_background: bool, - pub board_background_asset_json: Option, - pub board_background_prompt: String, - pub created_at_micros: i64, -} - -impl __sdk::InModule for PuzzleClearAgentSessionCreateInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_agent_session_get_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_agent_session_get_input_type.rs deleted file mode 100644 index 3b88ac38b..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_agent_session_get_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleClearAgentSessionGetInput { - pub session_id: String, - pub owner_user_id: String, -} - -impl __sdk::InModule for PuzzleClearAgentSessionGetInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_agent_session_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_agent_session_procedure_result_type.rs deleted file mode 100644 index ac1a377f3..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_agent_session_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_clear_agent_session_snapshot_type::PuzzleClearAgentSessionSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleClearAgentSessionProcedureResult { - pub ok: bool, - pub session: Option, - pub error_message: Option, -} - -impl __sdk::InModule for PuzzleClearAgentSessionProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_agent_session_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_agent_session_snapshot_type.rs deleted file mode 100644 index 4c31e3747..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_agent_session_snapshot_type.rs +++ /dev/null @@ -1,23 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_clear_draft_snapshot_type::PuzzleClearDraftSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleClearAgentSessionSnapshot { - pub session_id: String, - pub owner_user_id: String, - pub status: String, - pub draft: Option, - pub published_profile_id: Option, - pub created_at_micros: i64, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for PuzzleClearAgentSessionSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_board_cell_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_board_cell_snapshot_type.rs deleted file mode 100644 index 6fe05368b..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_board_cell_snapshot_type.rs +++ /dev/null @@ -1,20 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_clear_card_asset_snapshot_type::PuzzleClearCardAssetSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleClearBoardCellSnapshot { - pub row: u32, - pub col: u32, - pub card: Option, - pub locked_group_id: Option, -} - -impl __sdk::InModule for PuzzleClearBoardCellSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_board_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_board_snapshot_type.rs deleted file mode 100644 index fd1626e9d..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_board_snapshot_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_clear_board_cell_snapshot_type::PuzzleClearBoardCellSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleClearBoardSnapshot { - pub rows: u32, - pub cols: u32, - pub cells: Vec, -} - -impl __sdk::InModule for PuzzleClearBoardSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_card_asset_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_card_asset_snapshot_type.rs deleted file mode 100644 index 8b40818e5..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_card_asset_snapshot_type.rs +++ /dev/null @@ -1,24 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleClearCardAssetSnapshot { - pub card_id: String, - pub group_id: String, - pub shape: String, - pub orientation: String, - pub part_x: u32, - pub part_y: u32, - pub image_src: String, - pub image_object_key: String, - pub asset_object_id: String, - pub source_atlas_cell: String, -} - -impl __sdk::InModule for PuzzleClearCardAssetSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_draft_compile_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_draft_compile_input_type.rs deleted file mode 100644 index c04959eb4..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_draft_compile_input_type.rs +++ /dev/null @@ -1,29 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleClearDraftCompileInput { - pub session_id: String, - pub owner_user_id: String, - pub profile_id: String, - pub author_display_name: String, - pub work_title: String, - pub work_description: String, - pub theme_prompt: String, - pub generate_board_background: bool, - pub board_background_asset_json: Option, - pub board_background_prompt: String, - pub atlas_asset_json: Option, - pub pattern_groups_json: Option, - pub card_assets_json: Option, - pub generation_status: Option, - pub compiled_at_micros: i64, -} - -impl __sdk::InModule for PuzzleClearDraftCompileInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_draft_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_draft_snapshot_type.rs deleted file mode 100644 index 75055777d..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_draft_snapshot_type.rs +++ /dev/null @@ -1,32 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_clear_card_asset_snapshot_type::PuzzleClearCardAssetSnapshot; -use super::puzzle_clear_image_asset_snapshot_type::PuzzleClearImageAssetSnapshot; -use super::puzzle_clear_pattern_group_snapshot_type::PuzzleClearPatternGroupSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleClearDraftSnapshot { - pub template_id: String, - pub template_name: String, - pub profile_id: Option, - pub work_title: String, - pub work_description: String, - pub theme_prompt: String, - pub generate_board_background: bool, - pub board_background_asset: Option, - pub board_background_prompt: String, - pub card_back_image_src: Option, - pub atlas_asset: Option, - pub pattern_groups: Vec, - pub card_assets: Vec, - pub generation_status: String, -} - -impl __sdk::InModule for PuzzleClearDraftSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_gallery_card_view_row_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_gallery_card_view_row_type.rs deleted file mode 100644 index 575c7f92a..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_gallery_card_view_row_type.rs +++ /dev/null @@ -1,77 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleClearGalleryCardViewRow { - pub public_work_code: String, - pub work_id: String, - pub profile_id: String, - pub owner_user_id: String, - pub author_display_name: String, - pub work_title: String, - pub work_description: String, - pub theme_prompt: String, - pub cover_image_src: Option, - pub publication_status: String, - pub play_count: u32, - pub updated_at_micros: i64, - pub published_at_micros: Option, - pub generation_status: String, -} - -impl __sdk::InModule for PuzzleClearGalleryCardViewRow { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `PuzzleClearGalleryCardViewRow`. -/// -/// Provides typed access to columns for query building. -pub struct PuzzleClearGalleryCardViewRowCols { - pub public_work_code: __sdk::__query_builder::Col, - pub work_id: __sdk::__query_builder::Col, - pub profile_id: __sdk::__query_builder::Col, - pub owner_user_id: __sdk::__query_builder::Col, - pub author_display_name: __sdk::__query_builder::Col, - pub work_title: __sdk::__query_builder::Col, - pub work_description: __sdk::__query_builder::Col, - pub theme_prompt: __sdk::__query_builder::Col, - pub cover_image_src: __sdk::__query_builder::Col>, - pub publication_status: __sdk::__query_builder::Col, - pub play_count: __sdk::__query_builder::Col, - pub updated_at_micros: __sdk::__query_builder::Col, - pub published_at_micros: - __sdk::__query_builder::Col>, - pub generation_status: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for PuzzleClearGalleryCardViewRow { - type Cols = PuzzleClearGalleryCardViewRowCols; - fn cols(table_name: &'static str) -> Self::Cols { - PuzzleClearGalleryCardViewRowCols { - public_work_code: __sdk::__query_builder::Col::new(table_name, "public_work_code"), - work_id: __sdk::__query_builder::Col::new(table_name, "work_id"), - profile_id: __sdk::__query_builder::Col::new(table_name, "profile_id"), - owner_user_id: __sdk::__query_builder::Col::new(table_name, "owner_user_id"), - author_display_name: __sdk::__query_builder::Col::new( - table_name, - "author_display_name", - ), - work_title: __sdk::__query_builder::Col::new(table_name, "work_title"), - work_description: __sdk::__query_builder::Col::new(table_name, "work_description"), - theme_prompt: __sdk::__query_builder::Col::new(table_name, "theme_prompt"), - cover_image_src: __sdk::__query_builder::Col::new(table_name, "cover_image_src"), - publication_status: __sdk::__query_builder::Col::new(table_name, "publication_status"), - play_count: __sdk::__query_builder::Col::new(table_name, "play_count"), - updated_at_micros: __sdk::__query_builder::Col::new(table_name, "updated_at_micros"), - published_at_micros: __sdk::__query_builder::Col::new( - table_name, - "published_at_micros", - ), - generation_status: __sdk::__query_builder::Col::new(table_name, "generation_status"), - } - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_gallery_card_view_table.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_gallery_card_view_table.rs deleted file mode 100644 index 1c78182bb..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_gallery_card_view_table.rs +++ /dev/null @@ -1,121 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::puzzle_clear_gallery_card_view_row_type::PuzzleClearGalleryCardViewRow; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `puzzle_clear_gallery_card_view`. -/// -/// Obtain a handle from the [`PuzzleClearGalleryCardViewTableAccess::puzzle_clear_gallery_card_view`] method on [`super::RemoteTables`], -/// like `ctx.db.puzzle_clear_gallery_card_view()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.puzzle_clear_gallery_card_view().on_insert(...)`. -pub struct PuzzleClearGalleryCardViewTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `puzzle_clear_gallery_card_view`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait PuzzleClearGalleryCardViewTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`PuzzleClearGalleryCardViewTableHandle`], which mediates access to the table `puzzle_clear_gallery_card_view`. - fn puzzle_clear_gallery_card_view(&self) -> PuzzleClearGalleryCardViewTableHandle<'_>; -} - -impl PuzzleClearGalleryCardViewTableAccess for super::RemoteTables { - fn puzzle_clear_gallery_card_view(&self) -> PuzzleClearGalleryCardViewTableHandle<'_> { - PuzzleClearGalleryCardViewTableHandle { - imp: self - .imp - .get_table::("puzzle_clear_gallery_card_view"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct PuzzleClearGalleryCardViewInsertCallbackId(__sdk::CallbackId); -pub struct PuzzleClearGalleryCardViewDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::Table for PuzzleClearGalleryCardViewTableHandle<'ctx> { - type Row = PuzzleClearGalleryCardViewRow; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = PuzzleClearGalleryCardViewInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> PuzzleClearGalleryCardViewInsertCallbackId { - PuzzleClearGalleryCardViewInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: PuzzleClearGalleryCardViewInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = PuzzleClearGalleryCardViewDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> PuzzleClearGalleryCardViewDeleteCallbackId { - PuzzleClearGalleryCardViewDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: PuzzleClearGalleryCardViewDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache - .get_or_make_table::("puzzle_clear_gallery_card_view"); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse( - "TableUpdate", - "TableUpdate", - ) - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `PuzzleClearGalleryCardViewRow`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait puzzle_clear_gallery_card_viewQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `PuzzleClearGalleryCardViewRow`. - fn puzzle_clear_gallery_card_view( - &self, - ) -> __sdk::__query_builder::Table; -} - -impl puzzle_clear_gallery_card_viewQueryTableAccess for __sdk::QueryTableAccessor { - fn puzzle_clear_gallery_card_view( - &self, - ) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("puzzle_clear_gallery_card_view") - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_gallery_view_row_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_gallery_view_row_type.rs deleted file mode 100644 index 884558a7f..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_gallery_view_row_type.rs +++ /dev/null @@ -1,124 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_clear_card_asset_snapshot_type::PuzzleClearCardAssetSnapshot; -use super::puzzle_clear_image_asset_snapshot_type::PuzzleClearImageAssetSnapshot; -use super::puzzle_clear_pattern_group_snapshot_type::PuzzleClearPatternGroupSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleClearGalleryViewRow { - pub work_id: String, - pub profile_id: String, - pub owner_user_id: String, - pub source_session_id: String, - pub author_display_name: String, - pub work_title: String, - pub work_description: String, - pub theme_prompt: String, - pub generate_board_background: bool, - pub board_background_asset: Option, - pub board_background_prompt: String, - pub card_back_image_src: Option, - pub atlas_asset: PuzzleClearImageAssetSnapshot, - pub pattern_groups: Vec, - pub card_assets: Vec, - pub cover_image_src: Option, - pub publication_status: String, - pub publish_ready: bool, - pub play_count: u32, - pub generation_status: String, - pub updated_at_micros: i64, - pub published_at_micros: Option, -} - -impl __sdk::InModule for PuzzleClearGalleryViewRow { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `PuzzleClearGalleryViewRow`. -/// -/// Provides typed access to columns for query building. -pub struct PuzzleClearGalleryViewRowCols { - pub work_id: __sdk::__query_builder::Col, - pub profile_id: __sdk::__query_builder::Col, - pub owner_user_id: __sdk::__query_builder::Col, - pub source_session_id: __sdk::__query_builder::Col, - pub author_display_name: __sdk::__query_builder::Col, - pub work_title: __sdk::__query_builder::Col, - pub work_description: __sdk::__query_builder::Col, - pub theme_prompt: __sdk::__query_builder::Col, - pub generate_board_background: __sdk::__query_builder::Col, - pub board_background_asset: __sdk::__query_builder::Col< - PuzzleClearGalleryViewRow, - Option, - >, - pub board_background_prompt: __sdk::__query_builder::Col, - pub card_back_image_src: __sdk::__query_builder::Col>, - pub atlas_asset: - __sdk::__query_builder::Col, - pub pattern_groups: __sdk::__query_builder::Col< - PuzzleClearGalleryViewRow, - Vec, - >, - pub card_assets: - __sdk::__query_builder::Col>, - pub cover_image_src: __sdk::__query_builder::Col>, - pub publication_status: __sdk::__query_builder::Col, - pub publish_ready: __sdk::__query_builder::Col, - pub play_count: __sdk::__query_builder::Col, - pub generation_status: __sdk::__query_builder::Col, - pub updated_at_micros: __sdk::__query_builder::Col, - pub published_at_micros: __sdk::__query_builder::Col>, -} - -impl __sdk::__query_builder::HasCols for PuzzleClearGalleryViewRow { - type Cols = PuzzleClearGalleryViewRowCols; - fn cols(table_name: &'static str) -> Self::Cols { - PuzzleClearGalleryViewRowCols { - work_id: __sdk::__query_builder::Col::new(table_name, "work_id"), - profile_id: __sdk::__query_builder::Col::new(table_name, "profile_id"), - owner_user_id: __sdk::__query_builder::Col::new(table_name, "owner_user_id"), - source_session_id: __sdk::__query_builder::Col::new(table_name, "source_session_id"), - author_display_name: __sdk::__query_builder::Col::new( - table_name, - "author_display_name", - ), - work_title: __sdk::__query_builder::Col::new(table_name, "work_title"), - work_description: __sdk::__query_builder::Col::new(table_name, "work_description"), - theme_prompt: __sdk::__query_builder::Col::new(table_name, "theme_prompt"), - generate_board_background: __sdk::__query_builder::Col::new( - table_name, - "generate_board_background", - ), - board_background_asset: __sdk::__query_builder::Col::new( - table_name, - "board_background_asset", - ), - board_background_prompt: __sdk::__query_builder::Col::new( - table_name, - "board_background_prompt", - ), - card_back_image_src: __sdk::__query_builder::Col::new( - table_name, - "card_back_image_src", - ), - atlas_asset: __sdk::__query_builder::Col::new(table_name, "atlas_asset"), - pattern_groups: __sdk::__query_builder::Col::new(table_name, "pattern_groups"), - card_assets: __sdk::__query_builder::Col::new(table_name, "card_assets"), - cover_image_src: __sdk::__query_builder::Col::new(table_name, "cover_image_src"), - publication_status: __sdk::__query_builder::Col::new(table_name, "publication_status"), - publish_ready: __sdk::__query_builder::Col::new(table_name, "publish_ready"), - play_count: __sdk::__query_builder::Col::new(table_name, "play_count"), - generation_status: __sdk::__query_builder::Col::new(table_name, "generation_status"), - updated_at_micros: __sdk::__query_builder::Col::new(table_name, "updated_at_micros"), - published_at_micros: __sdk::__query_builder::Col::new( - table_name, - "published_at_micros", - ), - } - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_gallery_view_table.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_gallery_view_table.rs deleted file mode 100644 index a5999e301..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_gallery_view_table.rs +++ /dev/null @@ -1,120 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::puzzle_clear_card_asset_snapshot_type::PuzzleClearCardAssetSnapshot; -use super::puzzle_clear_gallery_view_row_type::PuzzleClearGalleryViewRow; -use super::puzzle_clear_image_asset_snapshot_type::PuzzleClearImageAssetSnapshot; -use super::puzzle_clear_pattern_group_snapshot_type::PuzzleClearPatternGroupSnapshot; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `puzzle_clear_gallery_view`. -/// -/// Obtain a handle from the [`PuzzleClearGalleryViewTableAccess::puzzle_clear_gallery_view`] method on [`super::RemoteTables`], -/// like `ctx.db.puzzle_clear_gallery_view()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.puzzle_clear_gallery_view().on_insert(...)`. -pub struct PuzzleClearGalleryViewTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `puzzle_clear_gallery_view`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait PuzzleClearGalleryViewTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`PuzzleClearGalleryViewTableHandle`], which mediates access to the table `puzzle_clear_gallery_view`. - fn puzzle_clear_gallery_view(&self) -> PuzzleClearGalleryViewTableHandle<'_>; -} - -impl PuzzleClearGalleryViewTableAccess for super::RemoteTables { - fn puzzle_clear_gallery_view(&self) -> PuzzleClearGalleryViewTableHandle<'_> { - PuzzleClearGalleryViewTableHandle { - imp: self - .imp - .get_table::("puzzle_clear_gallery_view"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct PuzzleClearGalleryViewInsertCallbackId(__sdk::CallbackId); -pub struct PuzzleClearGalleryViewDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::Table for PuzzleClearGalleryViewTableHandle<'ctx> { - type Row = PuzzleClearGalleryViewRow; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = PuzzleClearGalleryViewInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> PuzzleClearGalleryViewInsertCallbackId { - PuzzleClearGalleryViewInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: PuzzleClearGalleryViewInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = PuzzleClearGalleryViewDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> PuzzleClearGalleryViewDeleteCallbackId { - PuzzleClearGalleryViewDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: PuzzleClearGalleryViewDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = - client_cache.get_or_make_table::("puzzle_clear_gallery_view"); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `PuzzleClearGalleryViewRow`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait puzzle_clear_gallery_viewQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `PuzzleClearGalleryViewRow`. - fn puzzle_clear_gallery_view(&self) - -> __sdk::__query_builder::Table; -} - -impl puzzle_clear_gallery_viewQueryTableAccess for __sdk::QueryTableAccessor { - fn puzzle_clear_gallery_view( - &self, - ) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("puzzle_clear_gallery_view") - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_image_asset_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_image_asset_snapshot_type.rs deleted file mode 100644 index b9cf55a56..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_image_asset_snapshot_type.rs +++ /dev/null @@ -1,22 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleClearImageAssetSnapshot { - pub asset_id: String, - pub image_src: String, - pub image_object_key: String, - pub asset_object_id: String, - pub generation_provider: String, - pub prompt: String, - pub width: u32, - pub height: u32, -} - -impl __sdk::InModule for PuzzleClearImageAssetSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_pattern_group_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_pattern_group_snapshot_type.rs deleted file mode 100644 index dfebc41ae..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_pattern_group_snapshot_type.rs +++ /dev/null @@ -1,22 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleClearPatternGroupSnapshot { - pub group_id: String, - pub shape: String, - pub width: u32, - pub height: u32, - pub atlas_x: u32, - pub atlas_y: u32, - pub atlas_width: u32, - pub atlas_height: u32, -} - -impl __sdk::InModule for PuzzleClearPatternGroupSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_run_get_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_run_get_input_type.rs deleted file mode 100644 index 3a45f25b1..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_run_get_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleClearRunGetInput { - pub run_id: String, - pub owner_user_id: String, -} - -impl __sdk::InModule for PuzzleClearRunGetInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_run_next_level_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_run_next_level_input_type.rs deleted file mode 100644 index 92fc2bfb6..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_run_next_level_input_type.rs +++ /dev/null @@ -1,18 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleClearRunNextLevelInput { - pub run_id: String, - pub owner_user_id: String, - pub client_action_id: String, - pub started_at_ms: i64, -} - -impl __sdk::InModule for PuzzleClearRunNextLevelInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_run_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_run_procedure_result_type.rs deleted file mode 100644 index c9ed733cb..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_run_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_clear_runtime_snapshot_type::PuzzleClearRuntimeSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleClearRunProcedureResult { - pub ok: bool, - pub run: Option, - pub error_message: Option, -} - -impl __sdk::InModule for PuzzleClearRunProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_run_retry_level_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_run_retry_level_input_type.rs deleted file mode 100644 index 1509038e5..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_run_retry_level_input_type.rs +++ /dev/null @@ -1,18 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleClearRunRetryLevelInput { - pub run_id: String, - pub owner_user_id: String, - pub client_action_id: String, - pub restarted_at_ms: i64, -} - -impl __sdk::InModule for PuzzleClearRunRetryLevelInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_run_start_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_run_start_input_type.rs deleted file mode 100644 index 8366824cf..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_run_start_input_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleClearRunStartInput { - pub run_id: String, - pub owner_user_id: String, - pub profile_id: String, - pub client_event_id: String, - pub started_at_ms: i64, -} - -impl __sdk::InModule for PuzzleClearRunStartInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_run_swap_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_run_swap_input_type.rs deleted file mode 100644 index 119031fbd..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_run_swap_input_type.rs +++ /dev/null @@ -1,22 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleClearRunSwapInput { - pub run_id: String, - pub owner_user_id: String, - pub from_row: u32, - pub from_col: u32, - pub to_row: u32, - pub to_col: u32, - pub client_action_id: String, - pub swapped_at_ms: i64, -} - -impl __sdk::InModule for PuzzleClearRunSwapInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_run_time_up_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_run_time_up_input_type.rs deleted file mode 100644 index 4f3d2a509..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_run_time_up_input_type.rs +++ /dev/null @@ -1,18 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleClearRunTimeUpInput { - pub run_id: String, - pub owner_user_id: String, - pub client_action_id: String, - pub occurred_at_ms: i64, -} - -impl __sdk::InModule for PuzzleClearRunTimeUpInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_runtime_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_runtime_snapshot_type.rs deleted file mode 100644 index 1ae78997f..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_runtime_snapshot_type.rs +++ /dev/null @@ -1,30 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_clear_board_snapshot_type::PuzzleClearBoardSnapshot; -use super::puzzle_clear_card_asset_snapshot_type::PuzzleClearCardAssetSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleClearRuntimeSnapshot { - pub run_id: String, - pub profile_id: String, - pub owner_user_id: String, - pub status: String, - pub level_index: u32, - pub clears_done: u32, - pub target_clears: u32, - pub level_duration_seconds: u32, - pub level_started_at_ms: u64, - pub board: PuzzleClearBoardSnapshot, - pub ready_columns: Vec>, - pub started_at_ms: u64, - pub finished_at_ms: Option, -} - -impl __sdk::InModule for PuzzleClearRuntimeSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_work_get_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_work_get_input_type.rs deleted file mode 100644 index 474a325f8..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_work_get_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleClearWorkGetInput { - pub profile_id: String, - pub owner_user_id: String, -} - -impl __sdk::InModule for PuzzleClearWorkGetInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_work_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_work_procedure_result_type.rs deleted file mode 100644 index 451180a5f..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_work_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_clear_work_snapshot_type::PuzzleClearWorkSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleClearWorkProcedureResult { - pub ok: bool, - pub work: Option, - pub error_message: Option, -} - -impl __sdk::InModule for PuzzleClearWorkProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_work_publish_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_work_publish_input_type.rs deleted file mode 100644 index 27863d67a..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_work_publish_input_type.rs +++ /dev/null @@ -1,17 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleClearWorkPublishInput { - pub profile_id: String, - pub owner_user_id: String, - pub published_at_micros: i64, -} - -impl __sdk::InModule for PuzzleClearWorkPublishInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_work_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_work_snapshot_type.rs deleted file mode 100644 index 56df20291..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_work_snapshot_type.rs +++ /dev/null @@ -1,40 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_clear_card_asset_snapshot_type::PuzzleClearCardAssetSnapshot; -use super::puzzle_clear_image_asset_snapshot_type::PuzzleClearImageAssetSnapshot; -use super::puzzle_clear_pattern_group_snapshot_type::PuzzleClearPatternGroupSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleClearWorkSnapshot { - pub work_id: String, - pub profile_id: String, - pub owner_user_id: String, - pub source_session_id: String, - pub author_display_name: String, - pub work_title: String, - pub work_description: String, - pub theme_prompt: String, - pub generate_board_background: bool, - pub board_background_asset: Option, - pub board_background_prompt: String, - pub card_back_image_src: Option, - pub atlas_asset: PuzzleClearImageAssetSnapshot, - pub pattern_groups: Vec, - pub card_assets: Vec, - pub cover_image_src: Option, - pub publication_status: String, - pub publish_ready: bool, - pub play_count: u32, - pub generation_status: String, - pub updated_at_micros: i64, - pub published_at_micros: Option, -} - -impl __sdk::InModule for PuzzleClearWorkSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_work_update_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_work_update_input_type.rs deleted file mode 100644 index 6ba0d466a..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_work_update_input_type.rs +++ /dev/null @@ -1,23 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleClearWorkUpdateInput { - pub profile_id: String, - pub owner_user_id: String, - pub work_title: String, - pub work_description: String, - pub theme_prompt: String, - pub generate_board_background: bool, - pub board_background_asset_json: Option, - pub board_background_prompt: String, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for PuzzleClearWorkUpdateInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_works_list_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_works_list_input_type.rs deleted file mode 100644 index 9fc783b06..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_works_list_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleClearWorksListInput { - pub owner_user_id: String, - pub published_only: bool, -} - -impl __sdk::InModule for PuzzleClearWorksListInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_works_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_works_procedure_result_type.rs deleted file mode 100644 index 44260189d..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_clear_works_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_clear_work_snapshot_type::PuzzleClearWorkSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleClearWorksProcedureResult { - pub ok: bool, - pub items: Vec, - pub error_message: Option, -} - -impl __sdk::InModule for PuzzleClearWorksProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_creator_intent_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_creator_intent_type.rs deleted file mode 100644 index 9d1cff854..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_creator_intent_type.rs +++ /dev/null @@ -1,22 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleCreatorIntent { - pub source_mode: String, - pub raw_messages_summary: String, - pub theme_promise: String, - pub visual_subject: String, - pub visual_mood: Vec, - pub composition_hooks: Vec, - pub theme_tags: Vec, - pub forbidden_directives: Vec, -} - -impl __sdk::InModule for PuzzleCreatorIntent { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_draft_compile_failure_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_draft_compile_failure_input_type.rs deleted file mode 100644 index cfa6818b7..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_draft_compile_failure_input_type.rs +++ /dev/null @@ -1,21 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleDraftCompileFailureInput { - pub session_id: String, - pub owner_user_id: String, - pub error_message: String, - pub failed_at_micros: i64, - pub external_generation_job_id: Option, - pub external_generation_worker_id: Option, - pub external_generation_lease_token: Option, -} - -impl __sdk::InModule for PuzzleDraftCompileFailureInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_draft_compile_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_draft_compile_input_type.rs deleted file mode 100644 index 138277251..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_draft_compile_input_type.rs +++ /dev/null @@ -1,20 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleDraftCompileInput { - pub session_id: String, - pub owner_user_id: String, - pub compiled_at_micros: i64, - pub external_generation_job_id: Option, - pub external_generation_worker_id: Option, - pub external_generation_lease_token: Option, -} - -impl __sdk::InModule for PuzzleDraftCompileInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_draft_level_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_draft_level_type.rs deleted file mode 100644 index d2b446067..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_draft_level_type.rs +++ /dev/null @@ -1,36 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_audio_asset_type::PuzzleAudioAsset; -use super::puzzle_generated_image_candidate_type::PuzzleGeneratedImageCandidate; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleDraftLevel { - pub level_id: String, - pub level_name: String, - pub picture_description: String, - pub picture_reference: Option, - pub ui_background_prompt: Option, - pub ui_background_image_src: Option, - pub ui_background_image_object_key: Option, - pub level_scene_image_src: Option, - pub level_scene_image_object_key: Option, - pub ui_spritesheet_image_src: Option, - pub ui_spritesheet_image_object_key: Option, - pub level_background_image_src: Option, - pub level_background_image_object_key: Option, - pub background_music: Option, - pub candidates: Vec, - pub selected_candidate_id: Option, - pub cover_image_src: Option, - pub cover_asset_id: Option, - pub generation_status: String, -} - -impl __sdk::InModule for PuzzleDraftLevel { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_form_draft_save_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_form_draft_save_input_type.rs deleted file mode 100644 index cbb69d06c..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_form_draft_save_input_type.rs +++ /dev/null @@ -1,18 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleFormDraftSaveInput { - pub session_id: String, - pub owner_user_id: String, - pub seed_text: String, - pub saved_at_micros: i64, -} - -impl __sdk::InModule for PuzzleFormDraftSaveInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_form_draft_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_form_draft_type.rs deleted file mode 100644 index c949aae19..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_form_draft_type.rs +++ /dev/null @@ -1,17 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleFormDraft { - pub work_title: Option, - pub work_description: Option, - pub picture_description: Option, -} - -impl __sdk::InModule for PuzzleFormDraft { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_gallery_card_view_row_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_gallery_card_view_row_type.rs deleted file mode 100644 index 3828a2c2c..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_gallery_card_view_row_type.rs +++ /dev/null @@ -1,110 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_publication_status_type::PuzzlePublicationStatus; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleGalleryCardViewRow { - pub work_id: String, - pub profile_id: String, - pub owner_user_id: String, - pub source_session_id: Option, - pub author_display_name: String, - pub work_title: String, - pub work_description: String, - pub level_name: String, - pub summary: String, - pub theme_tags: Vec, - pub cover_image_src: Option, - pub cover_asset_id: Option, - pub publication_status: PuzzlePublicationStatus, - pub updated_at_micros: i64, - pub published_at_micros: Option, - pub play_count: u32, - pub remix_count: u32, - pub like_count: u32, - pub point_incentive_total_half_points: u64, - pub point_incentive_claimed_points: u64, - pub publish_ready: bool, - pub generation_status: Option, -} - -impl __sdk::InModule for PuzzleGalleryCardViewRow { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `PuzzleGalleryCardViewRow`. -/// -/// Provides typed access to columns for query building. -pub struct PuzzleGalleryCardViewRowCols { - pub work_id: __sdk::__query_builder::Col, - pub profile_id: __sdk::__query_builder::Col, - pub owner_user_id: __sdk::__query_builder::Col, - pub source_session_id: __sdk::__query_builder::Col>, - pub author_display_name: __sdk::__query_builder::Col, - pub work_title: __sdk::__query_builder::Col, - pub work_description: __sdk::__query_builder::Col, - pub level_name: __sdk::__query_builder::Col, - pub summary: __sdk::__query_builder::Col, - pub theme_tags: __sdk::__query_builder::Col>, - pub cover_image_src: __sdk::__query_builder::Col>, - pub cover_asset_id: __sdk::__query_builder::Col>, - pub publication_status: - __sdk::__query_builder::Col, - pub updated_at_micros: __sdk::__query_builder::Col, - pub published_at_micros: __sdk::__query_builder::Col>, - pub play_count: __sdk::__query_builder::Col, - pub remix_count: __sdk::__query_builder::Col, - pub like_count: __sdk::__query_builder::Col, - pub point_incentive_total_half_points: - __sdk::__query_builder::Col, - pub point_incentive_claimed_points: __sdk::__query_builder::Col, - pub publish_ready: __sdk::__query_builder::Col, - pub generation_status: __sdk::__query_builder::Col>, -} - -impl __sdk::__query_builder::HasCols for PuzzleGalleryCardViewRow { - type Cols = PuzzleGalleryCardViewRowCols; - fn cols(table_name: &'static str) -> Self::Cols { - PuzzleGalleryCardViewRowCols { - work_id: __sdk::__query_builder::Col::new(table_name, "work_id"), - profile_id: __sdk::__query_builder::Col::new(table_name, "profile_id"), - owner_user_id: __sdk::__query_builder::Col::new(table_name, "owner_user_id"), - source_session_id: __sdk::__query_builder::Col::new(table_name, "source_session_id"), - author_display_name: __sdk::__query_builder::Col::new( - table_name, - "author_display_name", - ), - work_title: __sdk::__query_builder::Col::new(table_name, "work_title"), - work_description: __sdk::__query_builder::Col::new(table_name, "work_description"), - level_name: __sdk::__query_builder::Col::new(table_name, "level_name"), - summary: __sdk::__query_builder::Col::new(table_name, "summary"), - theme_tags: __sdk::__query_builder::Col::new(table_name, "theme_tags"), - cover_image_src: __sdk::__query_builder::Col::new(table_name, "cover_image_src"), - cover_asset_id: __sdk::__query_builder::Col::new(table_name, "cover_asset_id"), - publication_status: __sdk::__query_builder::Col::new(table_name, "publication_status"), - updated_at_micros: __sdk::__query_builder::Col::new(table_name, "updated_at_micros"), - published_at_micros: __sdk::__query_builder::Col::new( - table_name, - "published_at_micros", - ), - play_count: __sdk::__query_builder::Col::new(table_name, "play_count"), - remix_count: __sdk::__query_builder::Col::new(table_name, "remix_count"), - like_count: __sdk::__query_builder::Col::new(table_name, "like_count"), - point_incentive_total_half_points: __sdk::__query_builder::Col::new( - table_name, - "point_incentive_total_half_points", - ), - point_incentive_claimed_points: __sdk::__query_builder::Col::new( - table_name, - "point_incentive_claimed_points", - ), - publish_ready: __sdk::__query_builder::Col::new(table_name, "publish_ready"), - generation_status: __sdk::__query_builder::Col::new(table_name, "generation_status"), - } - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_gallery_card_view_table.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_gallery_card_view_table.rs deleted file mode 100644 index 58c1659b3..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_gallery_card_view_table.rs +++ /dev/null @@ -1,115 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::puzzle_gallery_card_view_row_type::PuzzleGalleryCardViewRow; -use super::puzzle_publication_status_type::PuzzlePublicationStatus; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `puzzle_gallery_card_view`. -/// -/// Obtain a handle from the [`PuzzleGalleryCardViewTableAccess::puzzle_gallery_card_view`] method on [`super::RemoteTables`], -/// like `ctx.db.puzzle_gallery_card_view()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.puzzle_gallery_card_view().on_insert(...)`. -pub struct PuzzleGalleryCardViewTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `puzzle_gallery_card_view`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait PuzzleGalleryCardViewTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`PuzzleGalleryCardViewTableHandle`], which mediates access to the table `puzzle_gallery_card_view`. - fn puzzle_gallery_card_view(&self) -> PuzzleGalleryCardViewTableHandle<'_>; -} - -impl PuzzleGalleryCardViewTableAccess for super::RemoteTables { - fn puzzle_gallery_card_view(&self) -> PuzzleGalleryCardViewTableHandle<'_> { - PuzzleGalleryCardViewTableHandle { - imp: self - .imp - .get_table::("puzzle_gallery_card_view"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct PuzzleGalleryCardViewInsertCallbackId(__sdk::CallbackId); -pub struct PuzzleGalleryCardViewDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::Table for PuzzleGalleryCardViewTableHandle<'ctx> { - type Row = PuzzleGalleryCardViewRow; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = PuzzleGalleryCardViewInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> PuzzleGalleryCardViewInsertCallbackId { - PuzzleGalleryCardViewInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: PuzzleGalleryCardViewInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = PuzzleGalleryCardViewDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> PuzzleGalleryCardViewDeleteCallbackId { - PuzzleGalleryCardViewDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: PuzzleGalleryCardViewDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = - client_cache.get_or_make_table::("puzzle_gallery_card_view"); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `PuzzleGalleryCardViewRow`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait puzzle_gallery_card_viewQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `PuzzleGalleryCardViewRow`. - fn puzzle_gallery_card_view(&self) -> __sdk::__query_builder::Table; -} - -impl puzzle_gallery_card_viewQueryTableAccess for __sdk::QueryTableAccessor { - fn puzzle_gallery_card_view(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("puzzle_gallery_card_view") - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_gallery_view_table.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_gallery_view_table.rs deleted file mode 100644 index 24857ceeb..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_gallery_view_table.rs +++ /dev/null @@ -1,116 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::puzzle_anchor_pack_type::PuzzleAnchorPack; -use super::puzzle_draft_level_type::PuzzleDraftLevel; -use super::puzzle_publication_status_type::PuzzlePublicationStatus; -use super::puzzle_work_profile_type::PuzzleWorkProfile; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `puzzle_gallery_view`. -/// -/// Obtain a handle from the [`PuzzleGalleryViewTableAccess::puzzle_gallery_view`] method on [`super::RemoteTables`], -/// like `ctx.db.puzzle_gallery_view()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.puzzle_gallery_view().on_insert(...)`. -pub struct PuzzleGalleryViewTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `puzzle_gallery_view`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait PuzzleGalleryViewTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`PuzzleGalleryViewTableHandle`], which mediates access to the table `puzzle_gallery_view`. - fn puzzle_gallery_view(&self) -> PuzzleGalleryViewTableHandle<'_>; -} - -impl PuzzleGalleryViewTableAccess for super::RemoteTables { - fn puzzle_gallery_view(&self) -> PuzzleGalleryViewTableHandle<'_> { - PuzzleGalleryViewTableHandle { - imp: self - .imp - .get_table::("puzzle_gallery_view"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct PuzzleGalleryViewInsertCallbackId(__sdk::CallbackId); -pub struct PuzzleGalleryViewDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::Table for PuzzleGalleryViewTableHandle<'ctx> { - type Row = PuzzleWorkProfile; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = PuzzleGalleryViewInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> PuzzleGalleryViewInsertCallbackId { - PuzzleGalleryViewInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: PuzzleGalleryViewInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = PuzzleGalleryViewDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> PuzzleGalleryViewDeleteCallbackId { - PuzzleGalleryViewDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: PuzzleGalleryViewDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("puzzle_gallery_view"); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `PuzzleWorkProfile`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait puzzle_gallery_viewQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `PuzzleWorkProfile`. - fn puzzle_gallery_view(&self) -> __sdk::__query_builder::Table; -} - -impl puzzle_gallery_viewQueryTableAccess for __sdk::QueryTableAccessor { - fn puzzle_gallery_view(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("puzzle_gallery_view") - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_generated_image_candidate_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_generated_image_candidate_type.rs deleted file mode 100644 index 6dd003d78..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_generated_image_candidate_type.rs +++ /dev/null @@ -1,21 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleGeneratedImageCandidate { - pub candidate_id: String, - pub image_src: String, - pub asset_id: String, - pub prompt: String, - pub actual_prompt: Option, - pub source_type: String, - pub selected: bool, -} - -impl __sdk::InModule for PuzzleGeneratedImageCandidate { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_generated_images_save_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_generated_images_save_input_type.rs deleted file mode 100644 index d246f74a9..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_generated_images_save_input_type.rs +++ /dev/null @@ -1,23 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleGeneratedImagesSaveInput { - pub session_id: String, - pub owner_user_id: String, - pub level_id: Option, - pub levels_json: Option, - pub candidates_json: String, - pub saved_at_micros: i64, - pub external_generation_job_id: Option, - pub external_generation_worker_id: Option, - pub external_generation_lease_token: Option, -} - -impl __sdk::InModule for PuzzleGeneratedImagesSaveInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_leaderboard_entry_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_leaderboard_entry_type.rs deleted file mode 100644 index 474c7ffa9..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_leaderboard_entry_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleLeaderboardEntry { - pub rank: u32, - pub nickname: String, - pub elapsed_ms: u64, - pub visible_tags: Vec, - pub is_current_player: bool, -} - -impl __sdk::InModule for PuzzleLeaderboardEntry { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_leaderboard_submit_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_leaderboard_submit_input_type.rs deleted file mode 100644 index daad92b87..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_leaderboard_submit_input_type.rs +++ /dev/null @@ -1,21 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleLeaderboardSubmitInput { - pub run_id: String, - pub owner_user_id: String, - pub profile_id: String, - pub grid_size: u32, - pub elapsed_ms: u64, - pub nickname: String, - pub submitted_at_micros: i64, -} - -impl __sdk::InModule for PuzzleLeaderboardSubmitInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_level_generation_failure_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_level_generation_failure_input_type.rs deleted file mode 100644 index 6d96e4807..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_level_generation_failure_input_type.rs +++ /dev/null @@ -1,23 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleLevelGenerationFailureInput { - pub session_id: String, - pub owner_user_id: String, - pub level_id: Option, - pub levels_json: Option, - pub error_message: String, - pub failed_at_micros: i64, - pub external_generation_job_id: Option, - pub external_generation_worker_id: Option, - pub external_generation_lease_token: Option, -} - -impl __sdk::InModule for PuzzleLevelGenerationFailureInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_merged_group_state_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_merged_group_state_type.rs deleted file mode 100644 index b6cba30cd..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_merged_group_state_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_cell_position_type::PuzzleCellPosition; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleMergedGroupState { - pub group_id: String, - pub piece_ids: Vec, - pub occupied_cells: Vec, -} - -impl __sdk::InModule for PuzzleMergedGroupState { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_piece_state_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_piece_state_type.rs deleted file mode 100644 index 7cb0ef6d6..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_piece_state_type.rs +++ /dev/null @@ -1,20 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzlePieceState { - pub piece_id: String, - pub correct_row: u32, - pub correct_col: u32, - pub current_row: u32, - pub current_col: u32, - pub merged_group_id: Option, -} - -impl __sdk::InModule for PuzzlePieceState { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_publish_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_publish_input_type.rs deleted file mode 100644 index 2e41a72e1..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_publish_input_type.rs +++ /dev/null @@ -1,26 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzlePublishInput { - pub session_id: String, - pub owner_user_id: String, - pub work_id: String, - pub profile_id: String, - pub author_display_name: String, - pub work_title: Option, - pub work_description: Option, - pub level_name: Option, - pub summary: Option, - pub theme_tags: Option>, - pub levels_json: Option, - pub published_at_micros: i64, -} - -impl __sdk::InModule for PuzzlePublishInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_recommended_next_work_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_recommended_next_work_type.rs deleted file mode 100644 index 69d26ad1c..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_recommended_next_work_type.rs +++ /dev/null @@ -1,20 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleRecommendedNextWork { - pub profile_id: String, - pub level_name: String, - pub author_display_name: String, - pub theme_tags: Vec, - pub cover_image_src: Option, - pub similarity_score: f32, -} - -impl __sdk::InModule for PuzzleRecommendedNextWork { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_result_draft_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_result_draft_type.rs deleted file mode 100644 index adb2dff40..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_result_draft_type.rs +++ /dev/null @@ -1,35 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_anchor_pack_type::PuzzleAnchorPack; -use super::puzzle_creator_intent_type::PuzzleCreatorIntent; -use super::puzzle_draft_level_type::PuzzleDraftLevel; -use super::puzzle_form_draft_type::PuzzleFormDraft; -use super::puzzle_generated_image_candidate_type::PuzzleGeneratedImageCandidate; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleResultDraft { - pub work_title: String, - pub work_description: String, - pub level_name: String, - pub summary: String, - pub theme_tags: Vec, - pub forbidden_directives: Vec, - pub creator_intent: Option, - pub anchor_pack: PuzzleAnchorPack, - pub candidates: Vec, - pub selected_candidate_id: Option, - pub cover_image_src: Option, - pub cover_asset_id: Option, - pub generation_status: String, - pub levels: Vec, - pub form_draft: Option, -} - -impl __sdk::InModule for PuzzleResultDraft { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_result_preview_blocker_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_result_preview_blocker_type.rs deleted file mode 100644 index e604eb40f..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_result_preview_blocker_type.rs +++ /dev/null @@ -1,17 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleResultPreviewBlocker { - pub id: String, - pub code: String, - pub message: String, -} - -impl __sdk::InModule for PuzzleResultPreviewBlocker { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_result_preview_envelope_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_result_preview_envelope_type.rs deleted file mode 100644 index 4e09e6133..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_result_preview_envelope_type.rs +++ /dev/null @@ -1,22 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_result_draft_type::PuzzleResultDraft; -use super::puzzle_result_preview_blocker_type::PuzzleResultPreviewBlocker; -use super::puzzle_result_preview_finding_type::PuzzleResultPreviewFinding; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleResultPreviewEnvelope { - pub draft: PuzzleResultDraft, - pub blockers: Vec, - pub quality_findings: Vec, - pub publish_ready: bool, -} - -impl __sdk::InModule for PuzzleResultPreviewEnvelope { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_result_preview_finding_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_result_preview_finding_type.rs deleted file mode 100644 index a43c4a16f..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_result_preview_finding_type.rs +++ /dev/null @@ -1,18 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleResultPreviewFinding { - pub id: String, - pub severity: String, - pub code: String, - pub message: String, -} - -impl __sdk::InModule for PuzzleResultPreviewFinding { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_run_drag_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_run_drag_input_type.rs deleted file mode 100644 index b50361179..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_run_drag_input_type.rs +++ /dev/null @@ -1,20 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleRunDragInput { - pub run_id: String, - pub owner_user_id: String, - pub piece_id: String, - pub target_row: u32, - pub target_col: u32, - pub dragged_at_micros: i64, -} - -impl __sdk::InModule for PuzzleRunDragInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_run_get_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_run_get_input_type.rs deleted file mode 100644 index b3961e578..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_run_get_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleRunGetInput { - pub run_id: String, - pub owner_user_id: String, -} - -impl __sdk::InModule for PuzzleRunGetInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_run_next_level_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_run_next_level_input_type.rs deleted file mode 100644 index 0dd5721c7..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_run_next_level_input_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleRunNextLevelInput { - pub run_id: String, - pub owner_user_id: String, - pub target_profile_id: Option, - pub prefer_similar_work: bool, - pub advanced_at_micros: i64, -} - -impl __sdk::InModule for PuzzleRunNextLevelInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_run_pause_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_run_pause_input_type.rs deleted file mode 100644 index 33a34776d..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_run_pause_input_type.rs +++ /dev/null @@ -1,18 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleRunPauseInput { - pub run_id: String, - pub owner_user_id: String, - pub paused: bool, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for PuzzleRunPauseInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_run_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_run_procedure_result_type.rs deleted file mode 100644 index 5b1a430c6..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_run_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_run_snapshot_type::PuzzleRunSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleRunProcedureResult { - pub ok: bool, - pub run: Option, - pub error_message: Option, -} - -impl __sdk::InModule for PuzzleRunProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_run_prop_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_run_prop_input_type.rs deleted file mode 100644 index 1d8ddb25d..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_run_prop_input_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleRunPropInput { - pub run_id: String, - pub owner_user_id: String, - pub prop_kind: String, - pub used_at_micros: i64, - pub spent_points: u64, -} - -impl __sdk::InModule for PuzzleRunPropInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_run_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_run_snapshot_type.rs deleted file mode 100644 index b32fe5d06..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_run_snapshot_type.rs +++ /dev/null @@ -1,32 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_leaderboard_entry_type::PuzzleLeaderboardEntry; -use super::puzzle_recommended_next_work_type::PuzzleRecommendedNextWork; -use super::puzzle_runtime_level_snapshot_type::PuzzleRuntimeLevelSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleRunSnapshot { - pub run_id: String, - pub entry_profile_id: String, - pub cleared_level_count: u32, - pub current_level_index: u32, - pub current_grid_size: u32, - pub played_profile_ids: Vec, - pub previous_level_tags: Vec, - pub current_level: Option, - pub recommended_next_profile_id: Option, - pub next_level_mode: String, - pub next_level_profile_id: Option, - pub next_level_id: Option, - pub recommended_next_works: Vec, - pub leaderboard_entries: Vec, -} - -impl __sdk::InModule for PuzzleRunSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_run_start_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_run_start_input_type.rs deleted file mode 100644 index 8e1734e4c..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_run_start_input_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleRunStartInput { - pub run_id: String, - pub owner_user_id: String, - pub profile_id: String, - pub level_id: Option, - pub started_at_micros: i64, -} - -impl __sdk::InModule for PuzzleRunStartInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_run_swap_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_run_swap_input_type.rs deleted file mode 100644 index e92ca7111..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_run_swap_input_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleRunSwapInput { - pub run_id: String, - pub owner_user_id: String, - pub first_piece_id: String, - pub second_piece_id: String, - pub swapped_at_micros: i64, -} - -impl __sdk::InModule for PuzzleRunSwapInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_runtime_level_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_runtime_level_snapshot_type.rs deleted file mode 100644 index bce6df257..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_runtime_level_snapshot_type.rs +++ /dev/null @@ -1,48 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_audio_asset_type::PuzzleAudioAsset; -use super::puzzle_board_snapshot_type::PuzzleBoardSnapshot; -use super::puzzle_leaderboard_entry_type::PuzzleLeaderboardEntry; -use super::puzzle_runtime_level_status_type::PuzzleRuntimeLevelStatus; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleRuntimeLevelSnapshot { - pub run_id: String, - pub level_index: u32, - pub level_id: Option, - pub grid_size: u32, - pub profile_id: String, - pub level_name: String, - pub author_display_name: String, - pub theme_tags: Vec, - pub cover_image_src: Option, - pub ui_background_image_src: Option, - pub ui_background_image_object_key: Option, - pub level_background_image_src: Option, - pub level_background_image_object_key: Option, - pub ui_spritesheet_image_src: Option, - pub ui_spritesheet_image_object_key: Option, - pub background_music: Option, - pub board: PuzzleBoardSnapshot, - pub status: PuzzleRuntimeLevelStatus, - pub started_at_ms: u64, - pub cleared_at_ms: Option, - pub elapsed_ms: Option, - pub time_limit_ms: u64, - pub remaining_ms: u64, - pub paused_accumulated_ms: u64, - pub pause_started_at_ms: Option, - pub freeze_accumulated_ms: u64, - pub freeze_started_at_ms: Option, - pub freeze_until_ms: Option, - pub leaderboard_entries: Vec, -} - -impl __sdk::InModule for PuzzleRuntimeLevelSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_runtime_level_status_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_runtime_level_status_type.rs deleted file mode 100644 index dd491ccf9..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_runtime_level_status_type.rs +++ /dev/null @@ -1,20 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -#[derive(Copy, Eq, Hash)] -pub enum PuzzleRuntimeLevelStatus { - Playing, - - Cleared, - - Failed, -} - -impl __sdk::InModule for PuzzleRuntimeLevelStatus { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_select_cover_image_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_select_cover_image_input_type.rs deleted file mode 100644 index f051f8a49..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_select_cover_image_input_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleSelectCoverImageInput { - pub session_id: String, - pub owner_user_id: String, - pub level_id: Option, - pub candidate_id: String, - pub selected_at_micros: i64, -} - -impl __sdk::InModule for PuzzleSelectCoverImageInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_ui_background_save_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_ui_background_save_input_type.rs deleted file mode 100644 index ebdeea950..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_ui_background_save_input_type.rs +++ /dev/null @@ -1,25 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleUiBackgroundSaveInput { - pub session_id: String, - pub owner_user_id: String, - pub level_id: Option, - pub levels_json: Option, - pub prompt: String, - pub image_src: String, - pub image_object_key: Option, - pub saved_at_micros: i64, - pub external_generation_job_id: Option, - pub external_generation_worker_id: Option, - pub external_generation_lease_token: Option, -} - -impl __sdk::InModule for PuzzleUiBackgroundSaveInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_work_delete_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_work_delete_input_type.rs deleted file mode 100644 index e71d6d3ab..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_work_delete_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleWorkDeleteInput { - pub profile_id: String, - pub owner_user_id: String, -} - -impl __sdk::InModule for PuzzleWorkDeleteInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_work_get_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_work_get_input_type.rs deleted file mode 100644 index 5f37e13fe..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_work_get_input_type.rs +++ /dev/null @@ -1,15 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleWorkGetInput { - pub profile_id: String, -} - -impl __sdk::InModule for PuzzleWorkGetInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_work_like_record_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_work_like_record_input_type.rs deleted file mode 100644 index 5574ae3fe..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_work_like_record_input_type.rs +++ /dev/null @@ -1,17 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleWorkLikeRecordInput { - pub profile_id: String, - pub user_id: String, - pub liked_at_micros: i64, -} - -impl __sdk::InModule for PuzzleWorkLikeRecordInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_work_point_incentive_claim_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_work_point_incentive_claim_input_type.rs deleted file mode 100644 index c73ecb26a..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_work_point_incentive_claim_input_type.rs +++ /dev/null @@ -1,17 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleWorkPointIncentiveClaimInput { - pub profile_id: String, - pub owner_user_id: String, - pub claimed_at_micros: i64, -} - -impl __sdk::InModule for PuzzleWorkPointIncentiveClaimInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_work_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_work_procedure_result_type.rs deleted file mode 100644 index 019c8f946..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_work_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_work_profile_type::PuzzleWorkProfile; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleWorkProcedureResult { - pub ok: bool, - pub item: Option, - pub error_message: Option, -} - -impl __sdk::InModule for PuzzleWorkProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_work_profile_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_work_profile_type.rs deleted file mode 100644 index 6b41228ec..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_work_profile_type.rs +++ /dev/null @@ -1,119 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_anchor_pack_type::PuzzleAnchorPack; -use super::puzzle_draft_level_type::PuzzleDraftLevel; -use super::puzzle_publication_status_type::PuzzlePublicationStatus; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleWorkProfile { - pub work_id: String, - pub profile_id: String, - pub owner_user_id: String, - pub source_session_id: Option, - pub author_display_name: String, - pub work_title: String, - pub work_description: String, - pub level_name: String, - pub summary: String, - pub theme_tags: Vec, - pub cover_image_src: Option, - pub cover_asset_id: Option, - pub levels: Vec, - pub publication_status: PuzzlePublicationStatus, - pub updated_at_micros: i64, - pub published_at_micros: Option, - pub play_count: u32, - pub remix_count: u32, - pub like_count: u32, - pub recent_play_count_7_d: u32, - pub point_incentive_total_half_points: u64, - pub point_incentive_claimed_points: u64, - pub publish_ready: bool, - pub anchor_pack: PuzzleAnchorPack, -} - -impl __sdk::InModule for PuzzleWorkProfile { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `PuzzleWorkProfile`. -/// -/// Provides typed access to columns for query building. -pub struct PuzzleWorkProfileCols { - pub work_id: __sdk::__query_builder::Col, - pub profile_id: __sdk::__query_builder::Col, - pub owner_user_id: __sdk::__query_builder::Col, - pub source_session_id: __sdk::__query_builder::Col>, - pub author_display_name: __sdk::__query_builder::Col, - pub work_title: __sdk::__query_builder::Col, - pub work_description: __sdk::__query_builder::Col, - pub level_name: __sdk::__query_builder::Col, - pub summary: __sdk::__query_builder::Col, - pub theme_tags: __sdk::__query_builder::Col>, - pub cover_image_src: __sdk::__query_builder::Col>, - pub cover_asset_id: __sdk::__query_builder::Col>, - pub levels: __sdk::__query_builder::Col>, - pub publication_status: __sdk::__query_builder::Col, - pub updated_at_micros: __sdk::__query_builder::Col, - pub published_at_micros: __sdk::__query_builder::Col>, - pub play_count: __sdk::__query_builder::Col, - pub remix_count: __sdk::__query_builder::Col, - pub like_count: __sdk::__query_builder::Col, - pub recent_play_count_7_d: __sdk::__query_builder::Col, - pub point_incentive_total_half_points: __sdk::__query_builder::Col, - pub point_incentive_claimed_points: __sdk::__query_builder::Col, - pub publish_ready: __sdk::__query_builder::Col, - pub anchor_pack: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for PuzzleWorkProfile { - type Cols = PuzzleWorkProfileCols; - fn cols(table_name: &'static str) -> Self::Cols { - PuzzleWorkProfileCols { - work_id: __sdk::__query_builder::Col::new(table_name, "work_id"), - profile_id: __sdk::__query_builder::Col::new(table_name, "profile_id"), - owner_user_id: __sdk::__query_builder::Col::new(table_name, "owner_user_id"), - source_session_id: __sdk::__query_builder::Col::new(table_name, "source_session_id"), - author_display_name: __sdk::__query_builder::Col::new( - table_name, - "author_display_name", - ), - work_title: __sdk::__query_builder::Col::new(table_name, "work_title"), - work_description: __sdk::__query_builder::Col::new(table_name, "work_description"), - level_name: __sdk::__query_builder::Col::new(table_name, "level_name"), - summary: __sdk::__query_builder::Col::new(table_name, "summary"), - theme_tags: __sdk::__query_builder::Col::new(table_name, "theme_tags"), - cover_image_src: __sdk::__query_builder::Col::new(table_name, "cover_image_src"), - cover_asset_id: __sdk::__query_builder::Col::new(table_name, "cover_asset_id"), - levels: __sdk::__query_builder::Col::new(table_name, "levels"), - publication_status: __sdk::__query_builder::Col::new(table_name, "publication_status"), - updated_at_micros: __sdk::__query_builder::Col::new(table_name, "updated_at_micros"), - published_at_micros: __sdk::__query_builder::Col::new( - table_name, - "published_at_micros", - ), - play_count: __sdk::__query_builder::Col::new(table_name, "play_count"), - remix_count: __sdk::__query_builder::Col::new(table_name, "remix_count"), - like_count: __sdk::__query_builder::Col::new(table_name, "like_count"), - recent_play_count_7_d: __sdk::__query_builder::Col::new( - table_name, - "recent_play_count_7_d", - ), - point_incentive_total_half_points: __sdk::__query_builder::Col::new( - table_name, - "point_incentive_total_half_points", - ), - point_incentive_claimed_points: __sdk::__query_builder::Col::new( - table_name, - "point_incentive_claimed_points", - ), - publish_ready: __sdk::__query_builder::Col::new(table_name, "publish_ready"), - anchor_pack: __sdk::__query_builder::Col::new(table_name, "anchor_pack"), - } - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_work_remix_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_work_remix_input_type.rs deleted file mode 100644 index c66a5feff..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_work_remix_input_type.rs +++ /dev/null @@ -1,22 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleWorkRemixInput { - pub source_profile_id: String, - pub target_owner_user_id: String, - pub target_session_id: String, - pub target_profile_id: String, - pub target_work_id: String, - pub author_display_name: String, - pub welcome_message_id: String, - pub remixed_at_micros: i64, -} - -impl __sdk::InModule for PuzzleWorkRemixInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_work_upsert_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_work_upsert_input_type.rs deleted file mode 100644 index cff80418e..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_work_upsert_input_type.rs +++ /dev/null @@ -1,25 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleWorkUpsertInput { - pub profile_id: String, - pub owner_user_id: String, - pub work_title: String, - pub work_description: String, - pub level_name: String, - pub summary: String, - pub theme_tags: Vec, - pub cover_image_src: Option, - pub cover_asset_id: Option, - pub levels_json: Option, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for PuzzleWorkUpsertInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_works_list_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_works_list_input_type.rs deleted file mode 100644 index 4ad5ef5b3..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_works_list_input_type.rs +++ /dev/null @@ -1,15 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleWorksListInput { - pub owner_user_id: String, -} - -impl __sdk::InModule for PuzzleWorksListInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_works_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_works_procedure_result_type.rs deleted file mode 100644 index 53204197e..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_works_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_work_profile_type::PuzzleWorkProfile; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct PuzzleWorksProcedureResult { - pub ok: bool, - pub items: Vec, - pub error_message: Option, -} - -impl __sdk::InModule for PuzzleWorksProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/quest_completion_ack_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/quest_completion_ack_input_type.rs deleted file mode 100644 index 678ec0327..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/quest_completion_ack_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct QuestCompletionAckInput { - pub quest_id: String, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for QuestCompletionAckInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/quest_record_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/quest_record_input_type.rs deleted file mode 100644 index d07da423f..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/quest_record_input_type.rs +++ /dev/null @@ -1,46 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::quest_narrative_binding_snapshot_type::QuestNarrativeBindingSnapshot; -use super::quest_reward_snapshot_type::QuestRewardSnapshot; -use super::quest_status_type::QuestStatus; -use super::quest_step_snapshot_type::QuestStepSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct QuestRecordInput { - pub quest_id: String, - pub runtime_session_id: String, - pub story_session_id: Option, - pub actor_user_id: String, - pub issuer_npc_id: String, - pub issuer_npc_name: String, - pub scene_id: Option, - pub chapter_id: Option, - pub act_id: Option, - pub thread_id: Option, - pub contract_id: Option, - pub title: String, - pub description: String, - pub summary: String, - pub status: QuestStatus, - pub completion_notified: bool, - pub reward: QuestRewardSnapshot, - pub reward_text: String, - pub narrative_binding: QuestNarrativeBindingSnapshot, - pub steps: Vec, - pub active_step_id: Option, - pub visible_stage: u32, - pub hidden_flags: Vec, - pub discovered_fact_ids: Vec, - pub related_carrier_ids: Vec, - pub consequence_ids: Vec, - pub created_at_micros: i64, -} - -impl __sdk::InModule for QuestRecordInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/quest_signal_apply_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/quest_signal_apply_input_type.rs deleted file mode 100644 index d93ff9282..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/quest_signal_apply_input_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::quest_progress_signal_type::QuestProgressSignal; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct QuestSignalApplyInput { - pub quest_id: String, - pub signal: QuestProgressSignal, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for QuestSignalApplyInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/quest_turn_in_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/quest_turn_in_input_type.rs deleted file mode 100644 index 4f48a44a5..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/quest_turn_in_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct QuestTurnInInput { - pub quest_id: String, - pub turned_in_at_micros: i64, -} - -impl __sdk::InModule for QuestTurnInInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/record_big_fish_like_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/record_big_fish_like_procedure.rs deleted file mode 100644 index 0429a9f71..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/record_big_fish_like_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::big_fish_work_like_record_input_type::BigFishWorkLikeRecordInput; -use super::big_fish_works_procedure_result_type::BigFishWorksProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct RecordBigFishLikeArgs { - pub input: BigFishWorkLikeRecordInput, -} - -impl __sdk::InModule for RecordBigFishLikeArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `record_big_fish_like`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait record_big_fish_like { - fn record_big_fish_like(&self, input: BigFishWorkLikeRecordInput) { - self.record_big_fish_like_then(input, |_, _| {}); - } - - fn record_big_fish_like_then( - &self, - input: BigFishWorkLikeRecordInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl record_big_fish_like for super::RemoteProcedures { - fn record_big_fish_like_then( - &self, - input: BigFishWorkLikeRecordInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, BigFishWorksProcedureResult>( - "record_big_fish_like", - RecordBigFishLikeArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/record_big_fish_play_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/record_big_fish_play_procedure.rs deleted file mode 100644 index f4cfaa6b0..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/record_big_fish_play_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::big_fish_play_record_input_type::BigFishPlayRecordInput; -use super::big_fish_works_procedure_result_type::BigFishWorksProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct RecordBigFishPlayArgs { - pub input: BigFishPlayRecordInput, -} - -impl __sdk::InModule for RecordBigFishPlayArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `record_big_fish_play`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait record_big_fish_play { - fn record_big_fish_play(&self, input: BigFishPlayRecordInput) { - self.record_big_fish_play_then(input, |_, _| {}); - } - - fn record_big_fish_play_then( - &self, - input: BigFishPlayRecordInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl record_big_fish_play for super::RemoteProcedures { - fn record_big_fish_play_then( - &self, - input: BigFishPlayRecordInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, BigFishWorksProcedureResult>( - "record_big_fish_play", - RecordBigFishPlayArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/record_custom_world_profile_like_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/record_custom_world_profile_like_procedure.rs deleted file mode 100644 index 6ac81dd96..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/record_custom_world_profile_like_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_library_mutation_result_type::CustomWorldLibraryMutationResult; -use super::custom_world_profile_like_record_input_type::CustomWorldProfileLikeRecordInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct RecordCustomWorldProfileLikeArgs { - pub input: CustomWorldProfileLikeRecordInput, -} - -impl __sdk::InModule for RecordCustomWorldProfileLikeArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `record_custom_world_profile_like`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait record_custom_world_profile_like { - fn record_custom_world_profile_like(&self, input: CustomWorldProfileLikeRecordInput) { - self.record_custom_world_profile_like_then(input, |_, _| {}); - } - - fn record_custom_world_profile_like_then( - &self, - input: CustomWorldProfileLikeRecordInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl record_custom_world_profile_like for super::RemoteProcedures { - fn record_custom_world_profile_like_then( - &self, - input: CustomWorldProfileLikeRecordInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, CustomWorldLibraryMutationResult>( - "record_custom_world_profile_like", - RecordCustomWorldProfileLikeArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/record_custom_world_profile_play_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/record_custom_world_profile_play_procedure.rs deleted file mode 100644 index f803e277e..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/record_custom_world_profile_play_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_library_mutation_result_type::CustomWorldLibraryMutationResult; -use super::custom_world_profile_play_record_input_type::CustomWorldProfilePlayRecordInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct RecordCustomWorldProfilePlayArgs { - pub input: CustomWorldProfilePlayRecordInput, -} - -impl __sdk::InModule for RecordCustomWorldProfilePlayArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `record_custom_world_profile_play`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait record_custom_world_profile_play { - fn record_custom_world_profile_play(&self, input: CustomWorldProfilePlayRecordInput) { - self.record_custom_world_profile_play_then(input, |_, _| {}); - } - - fn record_custom_world_profile_play_then( - &self, - input: CustomWorldProfilePlayRecordInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl record_custom_world_profile_play for super::RemoteProcedures { - fn record_custom_world_profile_play_then( - &self, - input: CustomWorldProfilePlayRecordInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, CustomWorldLibraryMutationResult>( - "record_custom_world_profile_play", - RecordCustomWorldProfilePlayArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/record_puzzle_work_like_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/record_puzzle_work_like_procedure.rs deleted file mode 100644 index 78dce7f84..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/record_puzzle_work_like_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_work_like_record_input_type::PuzzleWorkLikeRecordInput; -use super::puzzle_work_procedure_result_type::PuzzleWorkProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct RecordPuzzleWorkLikeArgs { - pub input: PuzzleWorkLikeRecordInput, -} - -impl __sdk::InModule for RecordPuzzleWorkLikeArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `record_puzzle_work_like`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait record_puzzle_work_like { - fn record_puzzle_work_like(&self, input: PuzzleWorkLikeRecordInput) { - self.record_puzzle_work_like_then(input, |_, _| {}); - } - - fn record_puzzle_work_like_then( - &self, - input: PuzzleWorkLikeRecordInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl record_puzzle_work_like for super::RemoteProcedures { - fn record_puzzle_work_like_then( - &self, - input: PuzzleWorkLikeRecordInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleWorkProcedureResult>( - "record_puzzle_work_like", - RecordPuzzleWorkLikeArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/record_visual_novel_runtime_event_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/record_visual_novel_runtime_event_procedure.rs deleted file mode 100644 index 8c8db759f..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/record_visual_novel_runtime_event_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::visual_novel_runtime_event_procedure_result_type::VisualNovelRuntimeEventProcedureResult; -use super::visual_novel_runtime_event_record_input_type::VisualNovelRuntimeEventRecordInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct RecordVisualNovelRuntimeEventArgs { - pub input: VisualNovelRuntimeEventRecordInput, -} - -impl __sdk::InModule for RecordVisualNovelRuntimeEventArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `record_visual_novel_runtime_event`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait record_visual_novel_runtime_event { - fn record_visual_novel_runtime_event(&self, input: VisualNovelRuntimeEventRecordInput) { - self.record_visual_novel_runtime_event_then(input, |_, _| {}); - } - - fn record_visual_novel_runtime_event_then( - &self, - input: VisualNovelRuntimeEventRecordInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl record_visual_novel_runtime_event for super::RemoteProcedures { - fn record_visual_novel_runtime_event_then( - &self, - input: VisualNovelRuntimeEventRecordInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, VisualNovelRuntimeEventProcedureResult>( - "record_visual_novel_runtime_event", - RecordVisualNovelRuntimeEventArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/release_puzzle_background_compile_task_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/release_puzzle_background_compile_task_procedure.rs deleted file mode 100644 index 3b85afae8..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/release_puzzle_background_compile_task_procedure.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_background_compile_task_procedure_result_type::PuzzleBackgroundCompileTaskProcedureResult; -use super::puzzle_background_compile_task_release_input_type::PuzzleBackgroundCompileTaskReleaseInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct ReleasePuzzleBackgroundCompileTaskArgs { - pub input: PuzzleBackgroundCompileTaskReleaseInput, -} - -impl __sdk::InModule for ReleasePuzzleBackgroundCompileTaskArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `release_puzzle_background_compile_task`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait release_puzzle_background_compile_task { - fn release_puzzle_background_compile_task( - &self, - input: PuzzleBackgroundCompileTaskReleaseInput, - ) { - self.release_puzzle_background_compile_task_then(input, |_, _| {}); - } - - fn release_puzzle_background_compile_task_then( - &self, - input: PuzzleBackgroundCompileTaskReleaseInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl release_puzzle_background_compile_task for super::RemoteProcedures { - fn release_puzzle_background_compile_task_then( - &self, - input: PuzzleBackgroundCompileTaskReleaseInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleBackgroundCompileTaskProcedureResult>( - "release_puzzle_background_compile_task", - ReleasePuzzleBackgroundCompileTaskArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/remix_big_fish_work_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/remix_big_fish_work_procedure.rs deleted file mode 100644 index 7f58adb35..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/remix_big_fish_work_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::big_fish_session_procedure_result_type::BigFishSessionProcedureResult; -use super::big_fish_work_remix_input_type::BigFishWorkRemixInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct RemixBigFishWorkArgs { - pub input: BigFishWorkRemixInput, -} - -impl __sdk::InModule for RemixBigFishWorkArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `remix_big_fish_work`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait remix_big_fish_work { - fn remix_big_fish_work(&self, input: BigFishWorkRemixInput) { - self.remix_big_fish_work_then(input, |_, _| {}); - } - - fn remix_big_fish_work_then( - &self, - input: BigFishWorkRemixInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl remix_big_fish_work for super::RemoteProcedures { - fn remix_big_fish_work_then( - &self, - input: BigFishWorkRemixInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, BigFishSessionProcedureResult>( - "remix_big_fish_work", - RemixBigFishWorkArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/remix_custom_world_profile_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/remix_custom_world_profile_procedure.rs deleted file mode 100644 index 93f743837..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/remix_custom_world_profile_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_library_mutation_result_type::CustomWorldLibraryMutationResult; -use super::custom_world_profile_remix_input_type::CustomWorldProfileRemixInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct RemixCustomWorldProfileArgs { - pub input: CustomWorldProfileRemixInput, -} - -impl __sdk::InModule for RemixCustomWorldProfileArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `remix_custom_world_profile`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait remix_custom_world_profile { - fn remix_custom_world_profile(&self, input: CustomWorldProfileRemixInput) { - self.remix_custom_world_profile_then(input, |_, _| {}); - } - - fn remix_custom_world_profile_then( - &self, - input: CustomWorldProfileRemixInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl remix_custom_world_profile for super::RemoteProcedures { - fn remix_custom_world_profile_then( - &self, - input: CustomWorldProfileRemixInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, CustomWorldLibraryMutationResult>( - "remix_custom_world_profile", - RemixCustomWorldProfileArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/remix_puzzle_work_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/remix_puzzle_work_procedure.rs deleted file mode 100644 index da91b3345..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/remix_puzzle_work_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_agent_session_procedure_result_type::PuzzleAgentSessionProcedureResult; -use super::puzzle_work_remix_input_type::PuzzleWorkRemixInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct RemixPuzzleWorkArgs { - pub input: PuzzleWorkRemixInput, -} - -impl __sdk::InModule for RemixPuzzleWorkArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `remix_puzzle_work`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait remix_puzzle_work { - fn remix_puzzle_work(&self, input: PuzzleWorkRemixInput) { - self.remix_puzzle_work_then(input, |_, _| {}); - } - - fn remix_puzzle_work_then( - &self, - input: PuzzleWorkRemixInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl remix_puzzle_work for super::RemoteProcedures { - fn remix_puzzle_work_then( - &self, - input: PuzzleWorkRemixInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleAgentSessionProcedureResult>( - "remix_puzzle_work", - RemixPuzzleWorkArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/resolve_combat_action_and_return_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/resolve_combat_action_and_return_procedure.rs deleted file mode 100644 index ac8aa07d8..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/resolve_combat_action_and_return_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::resolve_combat_action_input_type::ResolveCombatActionInput; -use super::resolve_combat_action_procedure_result_type::ResolveCombatActionProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct ResolveCombatActionAndReturnArgs { - pub input: ResolveCombatActionInput, -} - -impl __sdk::InModule for ResolveCombatActionAndReturnArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `resolve_combat_action_and_return`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait resolve_combat_action_and_return { - fn resolve_combat_action_and_return(&self, input: ResolveCombatActionInput) { - self.resolve_combat_action_and_return_then(input, |_, _| {}); - } - - fn resolve_combat_action_and_return_then( - &self, - input: ResolveCombatActionInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl resolve_combat_action_and_return for super::RemoteProcedures { - fn resolve_combat_action_and_return_then( - &self, - input: ResolveCombatActionInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, ResolveCombatActionProcedureResult>( - "resolve_combat_action_and_return", - ResolveCombatActionAndReturnArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/resolve_combat_action_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/resolve_combat_action_input_type.rs deleted file mode 100644 index 7dea1c21a..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/resolve_combat_action_input_type.rs +++ /dev/null @@ -1,23 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct ResolveCombatActionInput { - pub battle_state_id: String, - pub function_id: String, - pub action_text: String, - pub base_damage: i32, - pub mana_cost: i32, - pub heal: i32, - pub mana_restore: i32, - pub counter_multiplier_basis_points: u32, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for ResolveCombatActionInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/resolve_combat_action_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/resolve_combat_action_procedure_result_type.rs deleted file mode 100644 index c7a13f858..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/resolve_combat_action_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::resolve_combat_action_result_type::ResolveCombatActionResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct ResolveCombatActionProcedureResult { - pub ok: bool, - pub result: Option, - pub error_message: Option, -} - -impl __sdk::InModule for ResolveCombatActionProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/resolve_combat_action_reducer.rs b/server-rs/crates/spacetime-client/src/module_bindings/resolve_combat_action_reducer.rs deleted file mode 100644 index 41340e2f1..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/resolve_combat_action_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::resolve_combat_action_input_type::ResolveCombatActionInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct ResolveCombatActionArgs { - pub input: ResolveCombatActionInput, -} - -impl From for super::Reducer { - fn from(args: ResolveCombatActionArgs) -> Self { - Self::ResolveCombatAction { input: args.input } - } -} - -impl __sdk::InModule for ResolveCombatActionArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `resolve_combat_action`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait resolve_combat_action { - /// Request that the remote module invoke the reducer `resolve_combat_action` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`resolve_combat_action:resolve_combat_action_then`] to run a callback after the reducer completes. - fn resolve_combat_action(&self, input: ResolveCombatActionInput) -> __sdk::Result<()> { - self.resolve_combat_action_then(input, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `resolve_combat_action` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn resolve_combat_action_then( - &self, - input: ResolveCombatActionInput, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl resolve_combat_action for super::RemoteReducers { - fn resolve_combat_action_then( - &self, - input: ResolveCombatActionInput, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(ResolveCombatActionArgs { input }, callback) - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/resolve_combat_action_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/resolve_combat_action_result_type.rs deleted file mode 100644 index b47e088c1..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/resolve_combat_action_result_type.rs +++ /dev/null @@ -1,21 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::battle_state_snapshot_type::BattleStateSnapshot; -use super::combat_outcome_type::CombatOutcome; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct ResolveCombatActionResult { - pub snapshot: BattleStateSnapshot, - pub damage_dealt: i32, - pub damage_taken: i32, - pub outcome: CombatOutcome, -} - -impl __sdk::InModule for ResolveCombatActionResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/resolve_npc_battle_interaction_and_return_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/resolve_npc_battle_interaction_and_return_procedure.rs deleted file mode 100644 index ff4cca292..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/resolve_npc_battle_interaction_and_return_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::npc_battle_interaction_procedure_result_type::NpcBattleInteractionProcedureResult; -use super::resolve_npc_battle_interaction_input_type::ResolveNpcBattleInteractionInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct ResolveNpcBattleInteractionAndReturnArgs { - pub input: ResolveNpcBattleInteractionInput, -} - -impl __sdk::InModule for ResolveNpcBattleInteractionAndReturnArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `resolve_npc_battle_interaction_and_return`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait resolve_npc_battle_interaction_and_return { - fn resolve_npc_battle_interaction_and_return(&self, input: ResolveNpcBattleInteractionInput) { - self.resolve_npc_battle_interaction_and_return_then(input, |_, _| {}); - } - - fn resolve_npc_battle_interaction_and_return_then( - &self, - input: ResolveNpcBattleInteractionInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl resolve_npc_battle_interaction_and_return for super::RemoteProcedures { - fn resolve_npc_battle_interaction_and_return_then( - &self, - input: ResolveNpcBattleInteractionInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, NpcBattleInteractionProcedureResult>( - "resolve_npc_battle_interaction_and_return", - ResolveNpcBattleInteractionAndReturnArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/resolve_npc_battle_interaction_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/resolve_npc_battle_interaction_input_type.rs deleted file mode 100644 index e8eba7a6b..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/resolve_npc_battle_interaction_input_type.rs +++ /dev/null @@ -1,29 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::resolve_npc_interaction_input_type::ResolveNpcInteractionInput; -use super::runtime_item_reward_item_snapshot_type::RuntimeItemRewardItemSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct ResolveNpcBattleInteractionInput { - pub npc_interaction: ResolveNpcInteractionInput, - pub story_session_id: String, - pub actor_user_id: String, - pub battle_state_id: Option, - pub player_hp: i32, - pub player_max_hp: i32, - pub player_mana: i32, - pub player_max_mana: i32, - pub target_hp: i32, - pub target_max_hp: i32, - pub experience_reward: u32, - pub reward_items: Vec, -} - -impl __sdk::InModule for ResolveNpcBattleInteractionInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/resolve_npc_interaction_and_return_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/resolve_npc_interaction_and_return_procedure.rs deleted file mode 100644 index aaba3d9cb..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/resolve_npc_interaction_and_return_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::npc_interaction_procedure_result_type::NpcInteractionProcedureResult; -use super::resolve_npc_interaction_input_type::ResolveNpcInteractionInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct ResolveNpcInteractionAndReturnArgs { - pub input: ResolveNpcInteractionInput, -} - -impl __sdk::InModule for ResolveNpcInteractionAndReturnArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `resolve_npc_interaction_and_return`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait resolve_npc_interaction_and_return { - fn resolve_npc_interaction_and_return(&self, input: ResolveNpcInteractionInput) { - self.resolve_npc_interaction_and_return_then(input, |_, _| {}); - } - - fn resolve_npc_interaction_and_return_then( - &self, - input: ResolveNpcInteractionInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl resolve_npc_interaction_and_return for super::RemoteProcedures { - fn resolve_npc_interaction_and_return_then( - &self, - input: ResolveNpcInteractionInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, NpcInteractionProcedureResult>( - "resolve_npc_interaction_and_return", - ResolveNpcInteractionAndReturnArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/resolve_npc_interaction_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/resolve_npc_interaction_input_type.rs deleted file mode 100644 index 9a4439ce6..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/resolve_npc_interaction_input_type.rs +++ /dev/null @@ -1,20 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct ResolveNpcInteractionInput { - pub runtime_session_id: String, - pub npc_id: String, - pub npc_name: String, - pub interaction_function_id: String, - pub release_npc_id: Option, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for ResolveNpcInteractionInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/resolve_npc_interaction_reducer.rs b/server-rs/crates/spacetime-client/src/module_bindings/resolve_npc_interaction_reducer.rs deleted file mode 100644 index 52d213b54..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/resolve_npc_interaction_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::resolve_npc_interaction_input_type::ResolveNpcInteractionInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct ResolveNpcInteractionArgs { - pub input: ResolveNpcInteractionInput, -} - -impl From for super::Reducer { - fn from(args: ResolveNpcInteractionArgs) -> Self { - Self::ResolveNpcInteraction { input: args.input } - } -} - -impl __sdk::InModule for ResolveNpcInteractionArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `resolve_npc_interaction`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait resolve_npc_interaction { - /// Request that the remote module invoke the reducer `resolve_npc_interaction` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`resolve_npc_interaction:resolve_npc_interaction_then`] to run a callback after the reducer completes. - fn resolve_npc_interaction(&self, input: ResolveNpcInteractionInput) -> __sdk::Result<()> { - self.resolve_npc_interaction_then(input, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `resolve_npc_interaction` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn resolve_npc_interaction_then( - &self, - input: ResolveNpcInteractionInput, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl resolve_npc_interaction for super::RemoteReducers { - fn resolve_npc_interaction_then( - &self, - input: ResolveNpcInteractionInput, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(ResolveNpcInteractionArgs { input }, callback) - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/resolve_npc_social_action_and_return_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/resolve_npc_social_action_and_return_procedure.rs deleted file mode 100644 index c14256495..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/resolve_npc_social_action_and_return_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::npc_state_procedure_result_type::NpcStateProcedureResult; -use super::resolve_npc_social_action_input_type::ResolveNpcSocialActionInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct ResolveNpcSocialActionAndReturnArgs { - pub input: ResolveNpcSocialActionInput, -} - -impl __sdk::InModule for ResolveNpcSocialActionAndReturnArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `resolve_npc_social_action_and_return`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait resolve_npc_social_action_and_return { - fn resolve_npc_social_action_and_return(&self, input: ResolveNpcSocialActionInput) { - self.resolve_npc_social_action_and_return_then(input, |_, _| {}); - } - - fn resolve_npc_social_action_and_return_then( - &self, - input: ResolveNpcSocialActionInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl resolve_npc_social_action_and_return for super::RemoteProcedures { - fn resolve_npc_social_action_and_return_then( - &self, - input: ResolveNpcSocialActionInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, NpcStateProcedureResult>( - "resolve_npc_social_action_and_return", - ResolveNpcSocialActionAndReturnArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/resolve_npc_social_action_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/resolve_npc_social_action_input_type.rs deleted file mode 100644 index 29487297f..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/resolve_npc_social_action_input_type.rs +++ /dev/null @@ -1,23 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::npc_social_action_kind_type::NpcSocialActionKind; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct ResolveNpcSocialActionInput { - pub runtime_session_id: String, - pub npc_id: String, - pub npc_name: String, - pub action_kind: NpcSocialActionKind, - pub affinity_gain_override: Option, - pub note: Option, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for ResolveNpcSocialActionInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/resolve_npc_social_action_reducer.rs b/server-rs/crates/spacetime-client/src/module_bindings/resolve_npc_social_action_reducer.rs deleted file mode 100644 index 28e5ce36a..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/resolve_npc_social_action_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::resolve_npc_social_action_input_type::ResolveNpcSocialActionInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct ResolveNpcSocialActionArgs { - pub input: ResolveNpcSocialActionInput, -} - -impl From for super::Reducer { - fn from(args: ResolveNpcSocialActionArgs) -> Self { - Self::ResolveNpcSocialAction { input: args.input } - } -} - -impl __sdk::InModule for ResolveNpcSocialActionArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `resolve_npc_social_action`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait resolve_npc_social_action { - /// Request that the remote module invoke the reducer `resolve_npc_social_action` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`resolve_npc_social_action:resolve_npc_social_action_then`] to run a callback after the reducer completes. - fn resolve_npc_social_action(&self, input: ResolveNpcSocialActionInput) -> __sdk::Result<()> { - self.resolve_npc_social_action_then(input, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `resolve_npc_social_action` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn resolve_npc_social_action_then( - &self, - input: ResolveNpcSocialActionInput, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl resolve_npc_social_action for super::RemoteReducers { - fn resolve_npc_social_action_then( - &self, - input: ResolveNpcSocialActionInput, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(ResolveNpcSocialActionArgs { input }, callback) - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/resolve_treasure_interaction_and_return_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/resolve_treasure_interaction_and_return_procedure.rs deleted file mode 100644 index a224c122d..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/resolve_treasure_interaction_and_return_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::treasure_record_procedure_result_type::TreasureRecordProcedureResult; -use super::treasure_resolve_input_type::TreasureResolveInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct ResolveTreasureInteractionAndReturnArgs { - pub input: TreasureResolveInput, -} - -impl __sdk::InModule for ResolveTreasureInteractionAndReturnArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `resolve_treasure_interaction_and_return`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait resolve_treasure_interaction_and_return { - fn resolve_treasure_interaction_and_return(&self, input: TreasureResolveInput) { - self.resolve_treasure_interaction_and_return_then(input, |_, _| {}); - } - - fn resolve_treasure_interaction_and_return_then( - &self, - input: TreasureResolveInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl resolve_treasure_interaction_and_return for super::RemoteProcedures { - fn resolve_treasure_interaction_and_return_then( - &self, - input: TreasureResolveInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, TreasureRecordProcedureResult>( - "resolve_treasure_interaction_and_return", - ResolveTreasureInteractionAndReturnArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/resolve_treasure_interaction_reducer.rs b/server-rs/crates/spacetime-client/src/module_bindings/resolve_treasure_interaction_reducer.rs deleted file mode 100644 index 942b377a0..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/resolve_treasure_interaction_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::treasure_resolve_input_type::TreasureResolveInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct ResolveTreasureInteractionArgs { - pub input: TreasureResolveInput, -} - -impl From for super::Reducer { - fn from(args: ResolveTreasureInteractionArgs) -> Self { - Self::ResolveTreasureInteraction { input: args.input } - } -} - -impl __sdk::InModule for ResolveTreasureInteractionArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `resolve_treasure_interaction`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait resolve_treasure_interaction { - /// Request that the remote module invoke the reducer `resolve_treasure_interaction` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`resolve_treasure_interaction:resolve_treasure_interaction_then`] to run a callback after the reducer completes. - fn resolve_treasure_interaction(&self, input: TreasureResolveInput) -> __sdk::Result<()> { - self.resolve_treasure_interaction_then(input, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `resolve_treasure_interaction` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn resolve_treasure_interaction_then( - &self, - input: TreasureResolveInput, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl resolve_treasure_interaction for super::RemoteReducers { - fn resolve_treasure_interaction_then( - &self, - input: TreasureResolveInput, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(ResolveTreasureInteractionArgs { input }, callback) - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/restart_jump_hop_run_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/restart_jump_hop_run_procedure.rs deleted file mode 100644 index f88b059cd..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/restart_jump_hop_run_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::jump_hop_run_procedure_result_type::JumpHopRunProcedureResult; -use super::jump_hop_run_restart_input_type::JumpHopRunRestartInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct RestartJumpHopRunArgs { - pub input: JumpHopRunRestartInput, -} - -impl __sdk::InModule for RestartJumpHopRunArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `restart_jump_hop_run`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait restart_jump_hop_run { - fn restart_jump_hop_run(&self, input: JumpHopRunRestartInput) { - self.restart_jump_hop_run_then(input, |_, _| {}); - } - - fn restart_jump_hop_run_then( - &self, - input: JumpHopRunRestartInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl restart_jump_hop_run for super::RemoteProcedures { - fn restart_jump_hop_run_then( - &self, - input: JumpHopRunRestartInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, JumpHopRunProcedureResult>( - "restart_jump_hop_run", - RestartJumpHopRunArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/restart_match_3_d_run_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/restart_match_3_d_run_procedure.rs deleted file mode 100644 index add954d43..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/restart_match_3_d_run_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::match_3_d_run_procedure_result_type::Match3DRunProcedureResult; -use super::match_3_d_run_restart_input_type::Match3DRunRestartInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct RestartMatch3DRunArgs { - pub input: Match3DRunRestartInput, -} - -impl __sdk::InModule for RestartMatch3DRunArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `restart_match_3_d_run`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait restart_match_3_d_run { - fn restart_match_3_d_run(&self, input: Match3DRunRestartInput) { - self.restart_match_3_d_run_then(input, |_, _| {}); - } - - fn restart_match_3_d_run_then( - &self, - input: Match3DRunRestartInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl restart_match_3_d_run for super::RemoteProcedures { - fn restart_match_3_d_run_then( - &self, - input: Match3DRunRestartInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, Match3DRunProcedureResult>( - "restart_match_3_d_run", - RestartMatch3DRunArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/restart_square_hole_run_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/restart_square_hole_run_procedure.rs deleted file mode 100644 index fe07f1477..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/restart_square_hole_run_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::square_hole_run_procedure_result_type::SquareHoleRunProcedureResult; -use super::square_hole_run_restart_input_type::SquareHoleRunRestartInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct RestartSquareHoleRunArgs { - pub input: SquareHoleRunRestartInput, -} - -impl __sdk::InModule for RestartSquareHoleRunArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `restart_square_hole_run`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait restart_square_hole_run { - fn restart_square_hole_run(&self, input: SquareHoleRunRestartInput) { - self.restart_square_hole_run_then(input, |_, _| {}); - } - - fn restart_square_hole_run_then( - &self, - input: SquareHoleRunRestartInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl restart_square_hole_run for super::RemoteProcedures { - fn restart_square_hole_run_then( - &self, - input: SquareHoleRunRestartInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, SquareHoleRunProcedureResult>( - "restart_square_hole_run", - RestartSquareHoleRunArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/resume_profile_save_archive_and_return_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/resume_profile_save_archive_and_return_procedure.rs deleted file mode 100644 index 957c105fa..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/resume_profile_save_archive_and_return_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::runtime_profile_save_archive_procedure_result_type::RuntimeProfileSaveArchiveProcedureResult; -use super::runtime_profile_save_archive_resume_input_type::RuntimeProfileSaveArchiveResumeInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct ResumeProfileSaveArchiveAndReturnArgs { - pub input: RuntimeProfileSaveArchiveResumeInput, -} - -impl __sdk::InModule for ResumeProfileSaveArchiveAndReturnArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `resume_profile_save_archive_and_return`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait resume_profile_save_archive_and_return { - fn resume_profile_save_archive_and_return(&self, input: RuntimeProfileSaveArchiveResumeInput) { - self.resume_profile_save_archive_and_return_then(input, |_, _| {}); - } - - fn resume_profile_save_archive_and_return_then( - &self, - input: RuntimeProfileSaveArchiveResumeInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl resume_profile_save_archive_and_return for super::RemoteProcedures { - fn resume_profile_save_archive_and_return_then( - &self, - input: RuntimeProfileSaveArchiveResumeInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, RuntimeProfileSaveArchiveProcedureResult>( - "resume_profile_save_archive_and_return", - ResumeProfileSaveArchiveAndReturnArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/retry_puzzle_clear_level_run_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/retry_puzzle_clear_level_run_procedure.rs deleted file mode 100644 index b2b816bb7..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/retry_puzzle_clear_level_run_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_clear_run_procedure_result_type::PuzzleClearRunProcedureResult; -use super::puzzle_clear_run_retry_level_input_type::PuzzleClearRunRetryLevelInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct RetryPuzzleClearLevelRunArgs { - pub input: PuzzleClearRunRetryLevelInput, -} - -impl __sdk::InModule for RetryPuzzleClearLevelRunArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `retry_puzzle_clear_level_run`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait retry_puzzle_clear_level_run { - fn retry_puzzle_clear_level_run(&self, input: PuzzleClearRunRetryLevelInput) { - self.retry_puzzle_clear_level_run_then(input, |_, _| {}); - } - - fn retry_puzzle_clear_level_run_then( - &self, - input: PuzzleClearRunRetryLevelInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl retry_puzzle_clear_level_run for super::RemoteProcedures { - fn retry_puzzle_clear_level_run_then( - &self, - input: PuzzleClearRunRetryLevelInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleClearRunProcedureResult>( - "retry_puzzle_clear_level_run", - RetryPuzzleClearLevelRunArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_browse_history_clear_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_browse_history_clear_input_type.rs deleted file mode 100644 index e5bc78f09..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_browse_history_clear_input_type.rs +++ /dev/null @@ -1,15 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct RuntimeBrowseHistoryClearInput { - pub user_id: String, -} - -impl __sdk::InModule for RuntimeBrowseHistoryClearInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_browse_history_list_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_browse_history_list_input_type.rs deleted file mode 100644 index cdc316413..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_browse_history_list_input_type.rs +++ /dev/null @@ -1,15 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct RuntimeBrowseHistoryListInput { - pub user_id: String, -} - -impl __sdk::InModule for RuntimeBrowseHistoryListInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_browse_history_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_browse_history_procedure_result_type.rs deleted file mode 100644 index 3721358f3..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_browse_history_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::runtime_browse_history_snapshot_type::RuntimeBrowseHistorySnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct RuntimeBrowseHistoryProcedureResult { - pub ok: bool, - pub entries: Vec, - pub error_message: Option, -} - -impl __sdk::InModule for RuntimeBrowseHistoryProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_browse_history_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_browse_history_snapshot_type.rs deleted file mode 100644 index 9222eaed5..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_browse_history_snapshot_type.rs +++ /dev/null @@ -1,29 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::runtime_browse_history_theme_mode_type::RuntimeBrowseHistoryThemeMode; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct RuntimeBrowseHistorySnapshot { - pub browse_history_id: String, - pub user_id: String, - pub owner_user_id: String, - pub profile_id: String, - pub world_name: String, - pub subtitle: String, - pub summary_text: String, - pub cover_image_src: Option, - pub theme_mode: RuntimeBrowseHistoryThemeMode, - pub author_display_name: String, - pub visited_at_micros: i64, - pub created_at_micros: i64, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for RuntimeBrowseHistorySnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_browse_history_sync_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_browse_history_sync_input_type.rs deleted file mode 100644 index 0996e66e9..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_browse_history_sync_input_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::runtime_browse_history_write_input_type::RuntimeBrowseHistoryWriteInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct RuntimeBrowseHistorySyncInput { - pub user_id: String, - pub entries: Vec, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for RuntimeBrowseHistorySyncInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_browse_history_write_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_browse_history_write_input_type.rs deleted file mode 100644 index 9a54bd817..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_browse_history_write_input_type.rs +++ /dev/null @@ -1,23 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct RuntimeBrowseHistoryWriteInput { - pub owner_user_id: String, - pub profile_id: String, - pub world_name: String, - pub subtitle: Option, - pub summary_text: Option, - pub cover_image_src: Option, - pub theme_mode: Option, - pub author_display_name: Option, - pub visited_at: Option, -} - -impl __sdk::InModule for RuntimeBrowseHistoryWriteInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_inventory_state_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_inventory_state_procedure_result_type.rs deleted file mode 100644 index bf0e31033..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_inventory_state_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::runtime_inventory_state_snapshot_type::RuntimeInventoryStateSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct RuntimeInventoryStateProcedureResult { - pub ok: bool, - pub snapshot: Option, - pub error_message: Option, -} - -impl __sdk::InModule for RuntimeInventoryStateProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_inventory_state_query_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_inventory_state_query_input_type.rs deleted file mode 100644 index e6b02ed31..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_inventory_state_query_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct RuntimeInventoryStateQueryInput { - pub runtime_session_id: String, - pub actor_user_id: String, -} - -impl __sdk::InModule for RuntimeInventoryStateQueryInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_inventory_state_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_inventory_state_snapshot_type.rs deleted file mode 100644 index 624e66c6d..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_inventory_state_snapshot_type.rs +++ /dev/null @@ -1,20 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::inventory_slot_snapshot_type::InventorySlotSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct RuntimeInventoryStateSnapshot { - pub runtime_session_id: String, - pub actor_user_id: String, - pub backpack_items: Vec, - pub equipment_items: Vec, -} - -impl __sdk::InModule for RuntimeInventoryStateSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_play_stats_get_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_play_stats_get_input_type.rs deleted file mode 100644 index 825a67078..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_play_stats_get_input_type.rs +++ /dev/null @@ -1,15 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct RuntimeProfilePlayStatsGetInput { - pub user_id: String, -} - -impl __sdk::InModule for RuntimeProfilePlayStatsGetInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_play_stats_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_play_stats_procedure_result_type.rs deleted file mode 100644 index 5572f4381..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_play_stats_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::runtime_profile_play_stats_snapshot_type::RuntimeProfilePlayStatsSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct RuntimeProfilePlayStatsProcedureResult { - pub ok: bool, - pub record: Option, - pub error_message: Option, -} - -impl __sdk::InModule for RuntimeProfilePlayStatsProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_play_stats_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_play_stats_snapshot_type.rs deleted file mode 100644 index 472a99c0b..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_play_stats_snapshot_type.rs +++ /dev/null @@ -1,20 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::runtime_profile_played_world_snapshot_type::RuntimeProfilePlayedWorldSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct RuntimeProfilePlayStatsSnapshot { - pub user_id: String, - pub total_play_time_ms: u64, - pub played_works: Vec, - pub updated_at_micros: Option, -} - -impl __sdk::InModule for RuntimeProfilePlayStatsSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_played_world_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_played_world_snapshot_type.rs deleted file mode 100644 index fa6c1d2c0..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_played_world_snapshot_type.rs +++ /dev/null @@ -1,25 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct RuntimeProfilePlayedWorldSnapshot { - pub played_world_id: String, - pub user_id: String, - pub world_key: String, - pub owner_user_id: Option, - pub profile_id: Option, - pub world_type: Option, - pub world_title: String, - pub world_subtitle: String, - pub first_played_at_micros: i64, - pub last_played_at_micros: i64, - pub last_observed_play_time_ms: u64, -} - -impl __sdk::InModule for RuntimeProfilePlayedWorldSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_save_archive_list_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_save_archive_list_input_type.rs deleted file mode 100644 index 29eea52ef..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_save_archive_list_input_type.rs +++ /dev/null @@ -1,15 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct RuntimeProfileSaveArchiveListInput { - pub user_id: String, -} - -impl __sdk::InModule for RuntimeProfileSaveArchiveListInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_save_archive_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_save_archive_procedure_result_type.rs deleted file mode 100644 index 4f4d5c0ce..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_save_archive_procedure_result_type.rs +++ /dev/null @@ -1,22 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::runtime_profile_save_archive_snapshot_type::RuntimeProfileSaveArchiveSnapshot; -use super::runtime_snapshot_type::RuntimeSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct RuntimeProfileSaveArchiveProcedureResult { - pub ok: bool, - pub entries: Vec, - pub record: Option, - pub current_snapshot: Option, - pub error_message: Option, -} - -impl __sdk::InModule for RuntimeProfileSaveArchiveProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_save_archive_resume_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_save_archive_resume_input_type.rs deleted file mode 100644 index 186de3e06..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_save_archive_resume_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct RuntimeProfileSaveArchiveResumeInput { - pub user_id: String, - pub world_key: String, -} - -impl __sdk::InModule for RuntimeProfileSaveArchiveResumeInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_save_archive_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_save_archive_snapshot_type.rs deleted file mode 100644 index 9843ec8c8..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_save_archive_snapshot_type.rs +++ /dev/null @@ -1,30 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct RuntimeProfileSaveArchiveSnapshot { - pub archive_id: String, - pub user_id: String, - pub world_key: String, - pub owner_user_id: Option, - pub profile_id: Option, - pub world_type: Option, - pub world_name: String, - pub subtitle: String, - pub summary_text: String, - pub cover_image_src: Option, - pub saved_at_micros: i64, - pub bottom_tab: String, - pub game_state_json: String, - pub current_story_json: Option, - pub created_at_micros: i64, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for RuntimeProfileSaveArchiveSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_snapshot_delete_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_snapshot_delete_input_type.rs deleted file mode 100644 index 53bb194c9..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_snapshot_delete_input_type.rs +++ /dev/null @@ -1,15 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct RuntimeSnapshotDeleteInput { - pub user_id: String, -} - -impl __sdk::InModule for RuntimeSnapshotDeleteInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_snapshot_get_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_snapshot_get_input_type.rs deleted file mode 100644 index c19034c69..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_snapshot_get_input_type.rs +++ /dev/null @@ -1,15 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct RuntimeSnapshotGetInput { - pub user_id: String, -} - -impl __sdk::InModule for RuntimeSnapshotGetInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_snapshot_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_snapshot_procedure_result_type.rs deleted file mode 100644 index 4066d915d..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_snapshot_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::runtime_snapshot_type::RuntimeSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct RuntimeSnapshotProcedureResult { - pub ok: bool, - pub record: Option, - pub error_message: Option, -} - -impl __sdk::InModule for RuntimeSnapshotProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_snapshot_type.rs deleted file mode 100644 index 1e9e14ad0..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_snapshot_type.rs +++ /dev/null @@ -1,22 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct RuntimeSnapshot { - pub user_id: String, - pub version: u32, - pub saved_at_micros: i64, - pub bottom_tab: String, - pub game_state_json: String, - pub current_story_json: Option, - pub created_at_micros: i64, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for RuntimeSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_snapshot_upsert_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_snapshot_upsert_input_type.rs deleted file mode 100644 index 9b3c75df1..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_snapshot_upsert_input_type.rs +++ /dev/null @@ -1,20 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct RuntimeSnapshotUpsertInput { - pub user_id: String, - pub saved_at_micros: i64, - pub bottom_tab: String, - pub game_state_json: String, - pub current_story_json: Option, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for RuntimeSnapshotUpsertInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/save_puzzle_form_draft_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/save_puzzle_form_draft_procedure.rs deleted file mode 100644 index bd13cb5f6..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/save_puzzle_form_draft_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_agent_session_procedure_result_type::PuzzleAgentSessionProcedureResult; -use super::puzzle_form_draft_save_input_type::PuzzleFormDraftSaveInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct SavePuzzleFormDraftArgs { - pub input: PuzzleFormDraftSaveInput, -} - -impl __sdk::InModule for SavePuzzleFormDraftArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `save_puzzle_form_draft`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait save_puzzle_form_draft { - fn save_puzzle_form_draft(&self, input: PuzzleFormDraftSaveInput) { - self.save_puzzle_form_draft_then(input, |_, _| {}); - } - - fn save_puzzle_form_draft_then( - &self, - input: PuzzleFormDraftSaveInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl save_puzzle_form_draft for super::RemoteProcedures { - fn save_puzzle_form_draft_then( - &self, - input: PuzzleFormDraftSaveInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleAgentSessionProcedureResult>( - "save_puzzle_form_draft", - SavePuzzleFormDraftArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/save_puzzle_generated_images_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/save_puzzle_generated_images_procedure.rs deleted file mode 100644 index 85d174569..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/save_puzzle_generated_images_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_agent_session_procedure_result_type::PuzzleAgentSessionProcedureResult; -use super::puzzle_generated_images_save_input_type::PuzzleGeneratedImagesSaveInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct SavePuzzleGeneratedImagesArgs { - pub input: PuzzleGeneratedImagesSaveInput, -} - -impl __sdk::InModule for SavePuzzleGeneratedImagesArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `save_puzzle_generated_images`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait save_puzzle_generated_images { - fn save_puzzle_generated_images(&self, input: PuzzleGeneratedImagesSaveInput) { - self.save_puzzle_generated_images_then(input, |_, _| {}); - } - - fn save_puzzle_generated_images_then( - &self, - input: PuzzleGeneratedImagesSaveInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl save_puzzle_generated_images for super::RemoteProcedures { - fn save_puzzle_generated_images_then( - &self, - input: PuzzleGeneratedImagesSaveInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleAgentSessionProcedureResult>( - "save_puzzle_generated_images", - SavePuzzleGeneratedImagesArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/save_puzzle_ui_background_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/save_puzzle_ui_background_procedure.rs deleted file mode 100644 index 80fa6304b..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/save_puzzle_ui_background_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_agent_session_procedure_result_type::PuzzleAgentSessionProcedureResult; -use super::puzzle_ui_background_save_input_type::PuzzleUiBackgroundSaveInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct SavePuzzleUiBackgroundArgs { - pub input: PuzzleUiBackgroundSaveInput, -} - -impl __sdk::InModule for SavePuzzleUiBackgroundArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `save_puzzle_ui_background`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait save_puzzle_ui_background { - fn save_puzzle_ui_background(&self, input: PuzzleUiBackgroundSaveInput) { - self.save_puzzle_ui_background_then(input, |_, _| {}); - } - - fn save_puzzle_ui_background_then( - &self, - input: PuzzleUiBackgroundSaveInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl save_puzzle_ui_background for super::RemoteProcedures { - fn save_puzzle_ui_background_then( - &self, - input: PuzzleUiBackgroundSaveInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleAgentSessionProcedureResult>( - "save_puzzle_ui_background", - SavePuzzleUiBackgroundArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/select_puzzle_cover_image_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/select_puzzle_cover_image_procedure.rs deleted file mode 100644 index 9dde8aaab..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/select_puzzle_cover_image_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_agent_session_procedure_result_type::PuzzleAgentSessionProcedureResult; -use super::puzzle_select_cover_image_input_type::PuzzleSelectCoverImageInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct SelectPuzzleCoverImageArgs { - pub input: PuzzleSelectCoverImageInput, -} - -impl __sdk::InModule for SelectPuzzleCoverImageArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `select_puzzle_cover_image`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait select_puzzle_cover_image { - fn select_puzzle_cover_image(&self, input: PuzzleSelectCoverImageInput) { - self.select_puzzle_cover_image_then(input, |_, _| {}); - } - - fn select_puzzle_cover_image_then( - &self, - input: PuzzleSelectCoverImageInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl select_puzzle_cover_image for super::RemoteProcedures { - fn select_puzzle_cover_image_then( - &self, - input: PuzzleSelectCoverImageInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleAgentSessionProcedureResult>( - "select_puzzle_cover_image", - SelectPuzzleCoverImageArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_agent_message_finalize_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/square_hole_agent_message_finalize_input_type.rs deleted file mode 100644 index 4edaf2bea..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_agent_message_finalize_input_type.rs +++ /dev/null @@ -1,23 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct SquareHoleAgentMessageFinalizeInput { - pub session_id: String, - pub owner_user_id: String, - pub assistant_message_id: Option, - pub assistant_reply_text: Option, - pub config_json: Option, - pub progress_percent: u32, - pub stage: String, - pub updated_at_micros: i64, - pub error_message: Option, -} - -impl __sdk::InModule for SquareHoleAgentMessageFinalizeInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_agent_message_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/square_hole_agent_message_snapshot_type.rs deleted file mode 100644 index 8af09de87..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_agent_message_snapshot_type.rs +++ /dev/null @@ -1,20 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct SquareHoleAgentMessageSnapshot { - pub message_id: String, - pub session_id: String, - pub role: String, - pub kind: String, - pub text: String, - pub created_at_micros: i64, -} - -impl __sdk::InModule for SquareHoleAgentMessageSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_agent_message_submit_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/square_hole_agent_message_submit_input_type.rs deleted file mode 100644 index 101149399..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_agent_message_submit_input_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct SquareHoleAgentMessageSubmitInput { - pub session_id: String, - pub owner_user_id: String, - pub user_message_id: String, - pub user_message_text: String, - pub submitted_at_micros: i64, -} - -impl __sdk::InModule for SquareHoleAgentMessageSubmitInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_agent_session_create_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/square_hole_agent_session_create_input_type.rs deleted file mode 100644 index 92a48217c..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_agent_session_create_input_type.rs +++ /dev/null @@ -1,21 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct SquareHoleAgentSessionCreateInput { - pub session_id: String, - pub owner_user_id: String, - pub seed_text: String, - pub welcome_message_id: String, - pub welcome_message_text: String, - pub config_json: Option, - pub created_at_micros: i64, -} - -impl __sdk::InModule for SquareHoleAgentSessionCreateInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_agent_session_get_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/square_hole_agent_session_get_input_type.rs deleted file mode 100644 index fb1324c2d..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_agent_session_get_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct SquareHoleAgentSessionGetInput { - pub session_id: String, - pub owner_user_id: String, -} - -impl __sdk::InModule for SquareHoleAgentSessionGetInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_agent_session_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/square_hole_agent_session_procedure_result_type.rs deleted file mode 100644 index 0b7384a74..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_agent_session_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::square_hole_agent_session_snapshot_type::SquareHoleAgentSessionSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct SquareHoleAgentSessionProcedureResult { - pub ok: bool, - pub session: Option, - pub error_message: Option, -} - -impl __sdk::InModule for SquareHoleAgentSessionProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_agent_session_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/square_hole_agent_session_snapshot_type.rs deleted file mode 100644 index 47130393b..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_agent_session_snapshot_type.rs +++ /dev/null @@ -1,31 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::square_hole_agent_message_snapshot_type::SquareHoleAgentMessageSnapshot; -use super::square_hole_creator_config_snapshot_type::SquareHoleCreatorConfigSnapshot; -use super::square_hole_draft_snapshot_type::SquareHoleDraftSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct SquareHoleAgentSessionSnapshot { - pub session_id: String, - pub owner_user_id: String, - pub seed_text: String, - pub current_turn: u32, - pub progress_percent: u32, - pub stage: String, - pub config: SquareHoleCreatorConfigSnapshot, - pub draft: Option, - pub messages: Vec, - pub last_assistant_reply: String, - pub published_profile_id: Option, - pub created_at_micros: i64, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for SquareHoleAgentSessionSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_creator_config_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/square_hole_creator_config_snapshot_type.rs deleted file mode 100644 index b10dd3e9b..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_creator_config_snapshot_type.rs +++ /dev/null @@ -1,26 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::square_hole_hole_option_snapshot_type::SquareHoleHoleOptionSnapshot; -use super::square_hole_shape_option_snapshot_type::SquareHoleShapeOptionSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct SquareHoleCreatorConfigSnapshot { - pub theme_text: String, - pub twist_rule: String, - pub shape_count: u32, - pub difficulty: u32, - pub shape_options: Vec, - pub hole_options: Vec, - pub background_prompt: String, - pub cover_image_src: String, - pub background_image_src: String, -} - -impl __sdk::InModule for SquareHoleCreatorConfigSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_draft_compile_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/square_hole_draft_compile_input_type.rs deleted file mode 100644 index 15b4af320..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_draft_compile_input_type.rs +++ /dev/null @@ -1,23 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct SquareHoleDraftCompileInput { - pub session_id: String, - pub owner_user_id: String, - pub profile_id: String, - pub author_display_name: String, - pub game_name: Option, - pub summary_text: Option, - pub tags_json: Option, - pub cover_image_src: Option, - pub compiled_at_micros: i64, -} - -impl __sdk::InModule for SquareHoleDraftCompileInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_draft_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/square_hole_draft_snapshot_type.rs deleted file mode 100644 index 810103eab..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_draft_snapshot_type.rs +++ /dev/null @@ -1,30 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::square_hole_hole_option_snapshot_type::SquareHoleHoleOptionSnapshot; -use super::square_hole_shape_option_snapshot_type::SquareHoleShapeOptionSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct SquareHoleDraftSnapshot { - pub profile_id: String, - pub game_name: String, - pub theme_text: String, - pub twist_rule: String, - pub summary_text: String, - pub tags: Vec, - pub cover_image_src: String, - pub background_prompt: String, - pub background_image_src: String, - pub shape_options: Vec, - pub hole_options: Vec, - pub shape_count: u32, - pub difficulty: u32, -} - -impl __sdk::InModule for SquareHoleDraftSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_drop_feedback_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/square_hole_drop_feedback_snapshot_type.rs deleted file mode 100644 index 3ff256003..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_drop_feedback_snapshot_type.rs +++ /dev/null @@ -1,17 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct SquareHoleDropFeedbackSnapshot { - pub accepted: bool, - pub reject_reason: Option, - pub message: String, -} - -impl __sdk::InModule for SquareHoleDropFeedbackSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_drop_shape_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/square_hole_drop_shape_procedure_result_type.rs deleted file mode 100644 index 0d2b66656..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_drop_shape_procedure_result_type.rs +++ /dev/null @@ -1,23 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::square_hole_drop_feedback_snapshot_type::SquareHoleDropFeedbackSnapshot; -use super::square_hole_run_snapshot_type::SquareHoleRunSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct SquareHoleDropShapeProcedureResult { - pub ok: bool, - pub status: String, - pub run: Option, - pub feedback: Option, - pub failure_reason: Option, - pub error_message: Option, -} - -impl __sdk::InModule for SquareHoleDropShapeProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_gallery_view_row_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/square_hole_gallery_view_row_type.rs deleted file mode 100644 index 997f82d88..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_gallery_view_row_type.rs +++ /dev/null @@ -1,108 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::square_hole_hole_option_snapshot_type::SquareHoleHoleOptionSnapshot; -use super::square_hole_shape_option_snapshot_type::SquareHoleShapeOptionSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct SquareHoleGalleryViewRow { - pub work_id: String, - pub profile_id: String, - pub owner_user_id: String, - pub source_session_id: String, - pub author_display_name: String, - pub game_name: String, - pub theme_text: String, - pub twist_rule: String, - pub summary_text: String, - pub tags: Vec, - pub cover_image_src: String, - pub background_prompt: String, - pub background_image_src: String, - pub shape_options: Vec, - pub hole_options: Vec, - pub shape_count: u32, - pub difficulty: u32, - pub publication_status: String, - pub publish_ready: bool, - pub play_count: u32, - pub updated_at_micros: i64, - pub published_at_micros: Option, -} - -impl __sdk::InModule for SquareHoleGalleryViewRow { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `SquareHoleGalleryViewRow`. -/// -/// Provides typed access to columns for query building. -pub struct SquareHoleGalleryViewRowCols { - pub work_id: __sdk::__query_builder::Col, - pub profile_id: __sdk::__query_builder::Col, - pub owner_user_id: __sdk::__query_builder::Col, - pub source_session_id: __sdk::__query_builder::Col, - pub author_display_name: __sdk::__query_builder::Col, - pub game_name: __sdk::__query_builder::Col, - pub theme_text: __sdk::__query_builder::Col, - pub twist_rule: __sdk::__query_builder::Col, - pub summary_text: __sdk::__query_builder::Col, - pub tags: __sdk::__query_builder::Col>, - pub cover_image_src: __sdk::__query_builder::Col, - pub background_prompt: __sdk::__query_builder::Col, - pub background_image_src: __sdk::__query_builder::Col, - pub shape_options: - __sdk::__query_builder::Col>, - pub hole_options: - __sdk::__query_builder::Col>, - pub shape_count: __sdk::__query_builder::Col, - pub difficulty: __sdk::__query_builder::Col, - pub publication_status: __sdk::__query_builder::Col, - pub publish_ready: __sdk::__query_builder::Col, - pub play_count: __sdk::__query_builder::Col, - pub updated_at_micros: __sdk::__query_builder::Col, - pub published_at_micros: __sdk::__query_builder::Col>, -} - -impl __sdk::__query_builder::HasCols for SquareHoleGalleryViewRow { - type Cols = SquareHoleGalleryViewRowCols; - fn cols(table_name: &'static str) -> Self::Cols { - SquareHoleGalleryViewRowCols { - work_id: __sdk::__query_builder::Col::new(table_name, "work_id"), - profile_id: __sdk::__query_builder::Col::new(table_name, "profile_id"), - owner_user_id: __sdk::__query_builder::Col::new(table_name, "owner_user_id"), - source_session_id: __sdk::__query_builder::Col::new(table_name, "source_session_id"), - author_display_name: __sdk::__query_builder::Col::new( - table_name, - "author_display_name", - ), - game_name: __sdk::__query_builder::Col::new(table_name, "game_name"), - theme_text: __sdk::__query_builder::Col::new(table_name, "theme_text"), - twist_rule: __sdk::__query_builder::Col::new(table_name, "twist_rule"), - summary_text: __sdk::__query_builder::Col::new(table_name, "summary_text"), - tags: __sdk::__query_builder::Col::new(table_name, "tags"), - cover_image_src: __sdk::__query_builder::Col::new(table_name, "cover_image_src"), - background_prompt: __sdk::__query_builder::Col::new(table_name, "background_prompt"), - background_image_src: __sdk::__query_builder::Col::new( - table_name, - "background_image_src", - ), - shape_options: __sdk::__query_builder::Col::new(table_name, "shape_options"), - hole_options: __sdk::__query_builder::Col::new(table_name, "hole_options"), - shape_count: __sdk::__query_builder::Col::new(table_name, "shape_count"), - difficulty: __sdk::__query_builder::Col::new(table_name, "difficulty"), - publication_status: __sdk::__query_builder::Col::new(table_name, "publication_status"), - publish_ready: __sdk::__query_builder::Col::new(table_name, "publish_ready"), - play_count: __sdk::__query_builder::Col::new(table_name, "play_count"), - updated_at_micros: __sdk::__query_builder::Col::new(table_name, "updated_at_micros"), - published_at_micros: __sdk::__query_builder::Col::new( - table_name, - "published_at_micros", - ), - } - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_gallery_view_table.rs b/server-rs/crates/spacetime-client/src/module_bindings/square_hole_gallery_view_table.rs deleted file mode 100644 index 62f4b4b24..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_gallery_view_table.rs +++ /dev/null @@ -1,116 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::square_hole_gallery_view_row_type::SquareHoleGalleryViewRow; -use super::square_hole_hole_option_snapshot_type::SquareHoleHoleOptionSnapshot; -use super::square_hole_shape_option_snapshot_type::SquareHoleShapeOptionSnapshot; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `square_hole_gallery_view`. -/// -/// Obtain a handle from the [`SquareHoleGalleryViewTableAccess::square_hole_gallery_view`] method on [`super::RemoteTables`], -/// like `ctx.db.square_hole_gallery_view()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.square_hole_gallery_view().on_insert(...)`. -pub struct SquareHoleGalleryViewTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `square_hole_gallery_view`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait SquareHoleGalleryViewTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`SquareHoleGalleryViewTableHandle`], which mediates access to the table `square_hole_gallery_view`. - fn square_hole_gallery_view(&self) -> SquareHoleGalleryViewTableHandle<'_>; -} - -impl SquareHoleGalleryViewTableAccess for super::RemoteTables { - fn square_hole_gallery_view(&self) -> SquareHoleGalleryViewTableHandle<'_> { - SquareHoleGalleryViewTableHandle { - imp: self - .imp - .get_table::("square_hole_gallery_view"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct SquareHoleGalleryViewInsertCallbackId(__sdk::CallbackId); -pub struct SquareHoleGalleryViewDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::Table for SquareHoleGalleryViewTableHandle<'ctx> { - type Row = SquareHoleGalleryViewRow; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = SquareHoleGalleryViewInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> SquareHoleGalleryViewInsertCallbackId { - SquareHoleGalleryViewInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: SquareHoleGalleryViewInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = SquareHoleGalleryViewDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> SquareHoleGalleryViewDeleteCallbackId { - SquareHoleGalleryViewDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: SquareHoleGalleryViewDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = - client_cache.get_or_make_table::("square_hole_gallery_view"); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `SquareHoleGalleryViewRow`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait square_hole_gallery_viewQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `SquareHoleGalleryViewRow`. - fn square_hole_gallery_view(&self) -> __sdk::__query_builder::Table; -} - -impl square_hole_gallery_viewQueryTableAccess for __sdk::QueryTableAccessor { - fn square_hole_gallery_view(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("square_hole_gallery_view") - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_hole_option_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/square_hole_hole_option_snapshot_type.rs deleted file mode 100644 index e0251660b..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_hole_option_snapshot_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct SquareHoleHoleOptionSnapshot { - pub hole_id: String, - pub hole_kind: String, - pub label: String, - pub image_prompt: String, - pub image_src: String, -} - -impl __sdk::InModule for SquareHoleHoleOptionSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_hole_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/square_hole_hole_snapshot_type.rs deleted file mode 100644 index 5663a23f7..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_hole_snapshot_type.rs +++ /dev/null @@ -1,20 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct SquareHoleHoleSnapshot { - pub hole_id: String, - pub hole_kind: String, - pub label: String, - pub x: f32, - pub y: f32, - pub image_src: String, -} - -impl __sdk::InModule for SquareHoleHoleSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_run_drop_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/square_hole_run_drop_input_type.rs deleted file mode 100644 index 1d65ffe71..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_run_drop_input_type.rs +++ /dev/null @@ -1,20 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct SquareHoleRunDropInput { - pub run_id: String, - pub owner_user_id: String, - pub hole_id: String, - pub client_snapshot_version: u64, - pub client_event_id: String, - pub dropped_at_ms: i64, -} - -impl __sdk::InModule for SquareHoleRunDropInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_run_get_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/square_hole_run_get_input_type.rs deleted file mode 100644 index d4424c81e..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_run_get_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct SquareHoleRunGetInput { - pub run_id: String, - pub owner_user_id: String, -} - -impl __sdk::InModule for SquareHoleRunGetInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_run_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/square_hole_run_procedure_result_type.rs deleted file mode 100644 index ab11a2f4f..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_run_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::square_hole_run_snapshot_type::SquareHoleRunSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct SquareHoleRunProcedureResult { - pub ok: bool, - pub run: Option, - pub error_message: Option, -} - -impl __sdk::InModule for SquareHoleRunProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_run_restart_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/square_hole_run_restart_input_type.rs deleted file mode 100644 index 2b2a5e5f5..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_run_restart_input_type.rs +++ /dev/null @@ -1,18 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct SquareHoleRunRestartInput { - pub source_run_id: String, - pub next_run_id: String, - pub owner_user_id: String, - pub restarted_at_ms: i64, -} - -impl __sdk::InModule for SquareHoleRunRestartInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_run_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/square_hole_run_snapshot_type.rs deleted file mode 100644 index a8d1e8b0c..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_run_snapshot_type.rs +++ /dev/null @@ -1,39 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::square_hole_drop_feedback_snapshot_type::SquareHoleDropFeedbackSnapshot; -use super::square_hole_hole_snapshot_type::SquareHoleHoleSnapshot; -use super::square_hole_shape_option_snapshot_type::SquareHoleShapeOptionSnapshot; -use super::square_hole_shape_snapshot_type::SquareHoleShapeSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct SquareHoleRunSnapshot { - pub run_id: String, - pub profile_id: String, - pub owner_user_id: String, - pub status: String, - pub snapshot_version: u64, - pub started_at_ms: i64, - pub duration_limit_ms: i64, - pub server_now_ms: i64, - pub remaining_ms: i64, - pub total_shape_count: u32, - pub completed_shape_count: u32, - pub combo: u32, - pub best_combo: u32, - pub score: u32, - pub rule_label: String, - pub background_image_src: String, - pub shape_options: Vec, - pub current_shape: Option, - pub holes: Vec, - pub last_feedback: Option, -} - -impl __sdk::InModule for SquareHoleRunSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_run_start_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/square_hole_run_start_input_type.rs deleted file mode 100644 index f8abbe7de..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_run_start_input_type.rs +++ /dev/null @@ -1,18 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct SquareHoleRunStartInput { - pub run_id: String, - pub owner_user_id: String, - pub profile_id: String, - pub started_at_ms: i64, -} - -impl __sdk::InModule for SquareHoleRunStartInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_run_stop_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/square_hole_run_stop_input_type.rs deleted file mode 100644 index d0b1b7e47..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_run_stop_input_type.rs +++ /dev/null @@ -1,17 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct SquareHoleRunStopInput { - pub run_id: String, - pub owner_user_id: String, - pub stopped_at_ms: i64, -} - -impl __sdk::InModule for SquareHoleRunStopInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_run_time_up_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/square_hole_run_time_up_input_type.rs deleted file mode 100644 index 1e2f0adc6..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_run_time_up_input_type.rs +++ /dev/null @@ -1,17 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct SquareHoleRunTimeUpInput { - pub run_id: String, - pub owner_user_id: String, - pub finished_at_ms: i64, -} - -impl __sdk::InModule for SquareHoleRunTimeUpInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_shape_option_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/square_hole_shape_option_snapshot_type.rs deleted file mode 100644 index 8a0d062ed..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_shape_option_snapshot_type.rs +++ /dev/null @@ -1,20 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct SquareHoleShapeOptionSnapshot { - pub option_id: String, - pub shape_kind: String, - pub label: String, - pub target_hole_id: String, - pub image_prompt: String, - pub image_src: String, -} - -impl __sdk::InModule for SquareHoleShapeOptionSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_shape_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/square_hole_shape_snapshot_type.rs deleted file mode 100644 index 2c16b1c9a..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_shape_snapshot_type.rs +++ /dev/null @@ -1,20 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct SquareHoleShapeSnapshot { - pub shape_id: String, - pub shape_kind: String, - pub label: String, - pub target_hole_id: String, - pub color: String, - pub image_src: String, -} - -impl __sdk::InModule for SquareHoleShapeSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_work_delete_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/square_hole_work_delete_input_type.rs deleted file mode 100644 index 7d9fb2e4c..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_work_delete_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct SquareHoleWorkDeleteInput { - pub profile_id: String, - pub owner_user_id: String, -} - -impl __sdk::InModule for SquareHoleWorkDeleteInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_work_get_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/square_hole_work_get_input_type.rs deleted file mode 100644 index 854b8205d..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_work_get_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct SquareHoleWorkGetInput { - pub profile_id: String, - pub owner_user_id: String, -} - -impl __sdk::InModule for SquareHoleWorkGetInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_work_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/square_hole_work_procedure_result_type.rs deleted file mode 100644 index a3682071e..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_work_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::square_hole_work_snapshot_type::SquareHoleWorkSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct SquareHoleWorkProcedureResult { - pub ok: bool, - pub work: Option, - pub error_message: Option, -} - -impl __sdk::InModule for SquareHoleWorkProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_work_publish_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/square_hole_work_publish_input_type.rs deleted file mode 100644 index f8a180b50..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_work_publish_input_type.rs +++ /dev/null @@ -1,17 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct SquareHoleWorkPublishInput { - pub profile_id: String, - pub owner_user_id: String, - pub published_at_micros: i64, -} - -impl __sdk::InModule for SquareHoleWorkPublishInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_work_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/square_hole_work_snapshot_type.rs deleted file mode 100644 index 54786576d..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_work_snapshot_type.rs +++ /dev/null @@ -1,41 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::square_hole_creator_config_snapshot_type::SquareHoleCreatorConfigSnapshot; -use super::square_hole_hole_option_snapshot_type::SquareHoleHoleOptionSnapshot; -use super::square_hole_shape_option_snapshot_type::SquareHoleShapeOptionSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct SquareHoleWorkSnapshot { - pub work_id: String, - pub profile_id: String, - pub owner_user_id: String, - pub source_session_id: String, - pub author_display_name: String, - pub game_name: String, - pub theme_text: String, - pub twist_rule: String, - pub summary_text: String, - pub tags: Vec, - pub cover_image_src: String, - pub background_prompt: String, - pub background_image_src: String, - pub shape_options: Vec, - pub hole_options: Vec, - pub shape_count: u32, - pub difficulty: u32, - pub config: SquareHoleCreatorConfigSnapshot, - pub publication_status: String, - pub publish_ready: bool, - pub play_count: u32, - pub updated_at_micros: i64, - pub published_at_micros: Option, -} - -impl __sdk::InModule for SquareHoleWorkSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_work_update_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/square_hole_work_update_input_type.rs deleted file mode 100644 index dd20e4b61..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_work_update_input_type.rs +++ /dev/null @@ -1,29 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct SquareHoleWorkUpdateInput { - pub profile_id: String, - pub owner_user_id: String, - pub game_name: String, - pub theme_text: String, - pub twist_rule: String, - pub summary_text: String, - pub tags_json: String, - pub cover_image_src: String, - pub background_prompt: String, - pub background_image_src: String, - pub shape_options_json: String, - pub hole_options_json: String, - pub shape_count: u32, - pub difficulty: u32, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for SquareHoleWorkUpdateInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_works_list_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/square_hole_works_list_input_type.rs deleted file mode 100644 index 20e01cfae..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_works_list_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct SquareHoleWorksListInput { - pub owner_user_id: String, - pub published_only: bool, -} - -impl __sdk::InModule for SquareHoleWorksListInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_works_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/square_hole_works_procedure_result_type.rs deleted file mode 100644 index 09faad0f3..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/square_hole_works_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::square_hole_work_snapshot_type::SquareHoleWorkSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct SquareHoleWorksProcedureResult { - pub ok: bool, - pub items: Vec, - pub error_message: Option, -} - -impl __sdk::InModule for SquareHoleWorksProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/start_bark_battle_run_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/start_bark_battle_run_procedure.rs deleted file mode 100644 index a29ff5e9e..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/start_bark_battle_run_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::bark_battle_procedure_result_type::BarkBattleProcedureResult; -use super::bark_battle_run_start_input_type::BarkBattleRunStartInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct StartBarkBattleRunArgs { - pub input: BarkBattleRunStartInput, -} - -impl __sdk::InModule for StartBarkBattleRunArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `start_bark_battle_run`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait start_bark_battle_run { - fn start_bark_battle_run(&self, input: BarkBattleRunStartInput) { - self.start_bark_battle_run_then(input, |_, _| {}); - } - - fn start_bark_battle_run_then( - &self, - input: BarkBattleRunStartInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl start_bark_battle_run for super::RemoteProcedures { - fn start_bark_battle_run_then( - &self, - input: BarkBattleRunStartInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, BarkBattleProcedureResult>( - "start_bark_battle_run", - StartBarkBattleRunArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/start_big_fish_run_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/start_big_fish_run_procedure.rs deleted file mode 100644 index 7f3713ab3..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/start_big_fish_run_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::big_fish_run_procedure_result_type::BigFishRunProcedureResult; -use super::big_fish_run_start_input_type::BigFishRunStartInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct StartBigFishRunArgs { - pub input: BigFishRunStartInput, -} - -impl __sdk::InModule for StartBigFishRunArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `start_big_fish_run`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait start_big_fish_run { - fn start_big_fish_run(&self, input: BigFishRunStartInput) { - self.start_big_fish_run_then(input, |_, _| {}); - } - - fn start_big_fish_run_then( - &self, - input: BigFishRunStartInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl start_big_fish_run for super::RemoteProcedures { - fn start_big_fish_run_then( - &self, - input: BigFishRunStartInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, BigFishRunProcedureResult>( - "start_big_fish_run", - StartBigFishRunArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/start_jump_hop_run_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/start_jump_hop_run_procedure.rs deleted file mode 100644 index c5da32982..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/start_jump_hop_run_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::jump_hop_run_procedure_result_type::JumpHopRunProcedureResult; -use super::jump_hop_run_start_input_type::JumpHopRunStartInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct StartJumpHopRunArgs { - pub input: JumpHopRunStartInput, -} - -impl __sdk::InModule for StartJumpHopRunArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `start_jump_hop_run`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait start_jump_hop_run { - fn start_jump_hop_run(&self, input: JumpHopRunStartInput) { - self.start_jump_hop_run_then(input, |_, _| {}); - } - - fn start_jump_hop_run_then( - &self, - input: JumpHopRunStartInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl start_jump_hop_run for super::RemoteProcedures { - fn start_jump_hop_run_then( - &self, - input: JumpHopRunStartInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, JumpHopRunProcedureResult>( - "start_jump_hop_run", - StartJumpHopRunArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/start_match_3_d_run_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/start_match_3_d_run_procedure.rs deleted file mode 100644 index d4126af9b..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/start_match_3_d_run_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::match_3_d_run_procedure_result_type::Match3DRunProcedureResult; -use super::match_3_d_run_start_input_type::Match3DRunStartInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct StartMatch3DRunArgs { - pub input: Match3DRunStartInput, -} - -impl __sdk::InModule for StartMatch3DRunArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `start_match_3_d_run`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait start_match_3_d_run { - fn start_match_3_d_run(&self, input: Match3DRunStartInput) { - self.start_match_3_d_run_then(input, |_, _| {}); - } - - fn start_match_3_d_run_then( - &self, - input: Match3DRunStartInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl start_match_3_d_run for super::RemoteProcedures { - fn start_match_3_d_run_then( - &self, - input: Match3DRunStartInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, Match3DRunProcedureResult>( - "start_match_3_d_run", - StartMatch3DRunArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/start_puzzle_clear_runtime_run_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/start_puzzle_clear_runtime_run_procedure.rs deleted file mode 100644 index 069b523c6..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/start_puzzle_clear_runtime_run_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_clear_run_procedure_result_type::PuzzleClearRunProcedureResult; -use super::puzzle_clear_run_start_input_type::PuzzleClearRunStartInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct StartPuzzleClearRuntimeRunArgs { - pub input: PuzzleClearRunStartInput, -} - -impl __sdk::InModule for StartPuzzleClearRuntimeRunArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `start_puzzle_clear_runtime_run`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait start_puzzle_clear_runtime_run { - fn start_puzzle_clear_runtime_run(&self, input: PuzzleClearRunStartInput) { - self.start_puzzle_clear_runtime_run_then(input, |_, _| {}); - } - - fn start_puzzle_clear_runtime_run_then( - &self, - input: PuzzleClearRunStartInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl start_puzzle_clear_runtime_run for super::RemoteProcedures { - fn start_puzzle_clear_runtime_run_then( - &self, - input: PuzzleClearRunStartInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleClearRunProcedureResult>( - "start_puzzle_clear_runtime_run", - StartPuzzleClearRuntimeRunArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/start_puzzle_run_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/start_puzzle_run_procedure.rs deleted file mode 100644 index b6baeb838..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/start_puzzle_run_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_run_procedure_result_type::PuzzleRunProcedureResult; -use super::puzzle_run_start_input_type::PuzzleRunStartInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct StartPuzzleRunArgs { - pub input: PuzzleRunStartInput, -} - -impl __sdk::InModule for StartPuzzleRunArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `start_puzzle_run`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait start_puzzle_run { - fn start_puzzle_run(&self, input: PuzzleRunStartInput) { - self.start_puzzle_run_then(input, |_, _| {}); - } - - fn start_puzzle_run_then( - &self, - input: PuzzleRunStartInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl start_puzzle_run for super::RemoteProcedures { - fn start_puzzle_run_then( - &self, - input: PuzzleRunStartInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleRunProcedureResult>( - "start_puzzle_run", - StartPuzzleRunArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/start_square_hole_run_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/start_square_hole_run_procedure.rs deleted file mode 100644 index d85e730b0..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/start_square_hole_run_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::square_hole_run_procedure_result_type::SquareHoleRunProcedureResult; -use super::square_hole_run_start_input_type::SquareHoleRunStartInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct StartSquareHoleRunArgs { - pub input: SquareHoleRunStartInput, -} - -impl __sdk::InModule for StartSquareHoleRunArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `start_square_hole_run`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait start_square_hole_run { - fn start_square_hole_run(&self, input: SquareHoleRunStartInput) { - self.start_square_hole_run_then(input, |_, _| {}); - } - - fn start_square_hole_run_then( - &self, - input: SquareHoleRunStartInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl start_square_hole_run for super::RemoteProcedures { - fn start_square_hole_run_then( - &self, - input: SquareHoleRunStartInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, SquareHoleRunProcedureResult>( - "start_square_hole_run", - StartSquareHoleRunArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/start_visual_novel_run_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/start_visual_novel_run_procedure.rs deleted file mode 100644 index 98f9cfa03..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/start_visual_novel_run_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::visual_novel_run_procedure_result_type::VisualNovelRunProcedureResult; -use super::visual_novel_run_start_input_type::VisualNovelRunStartInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct StartVisualNovelRunArgs { - pub input: VisualNovelRunStartInput, -} - -impl __sdk::InModule for StartVisualNovelRunArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `start_visual_novel_run`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait start_visual_novel_run { - fn start_visual_novel_run(&self, input: VisualNovelRunStartInput) { - self.start_visual_novel_run_then(input, |_, _| {}); - } - - fn start_visual_novel_run_then( - &self, - input: VisualNovelRunStartInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl start_visual_novel_run for super::RemoteProcedures { - fn start_visual_novel_run_then( - &self, - input: VisualNovelRunStartInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, VisualNovelRunProcedureResult>( - "start_visual_novel_run", - StartVisualNovelRunArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/start_wooden_fish_run_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/start_wooden_fish_run_procedure.rs deleted file mode 100644 index 65fa87c2e..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/start_wooden_fish_run_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::wooden_fish_run_procedure_result_type::WoodenFishRunProcedureResult; -use super::wooden_fish_run_start_input_type::WoodenFishRunStartInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct StartWoodenFishRunArgs { - pub input: WoodenFishRunStartInput, -} - -impl __sdk::InModule for StartWoodenFishRunArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `start_wooden_fish_run`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait start_wooden_fish_run { - fn start_wooden_fish_run(&self, input: WoodenFishRunStartInput) { - self.start_wooden_fish_run_then(input, |_, _| {}); - } - - fn start_wooden_fish_run_then( - &self, - input: WoodenFishRunStartInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl start_wooden_fish_run for super::RemoteProcedures { - fn start_wooden_fish_run_then( - &self, - input: WoodenFishRunStartInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, WoodenFishRunProcedureResult>( - "start_wooden_fish_run", - StartWoodenFishRunArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/stop_match_3_d_run_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/stop_match_3_d_run_procedure.rs deleted file mode 100644 index f87a63d50..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/stop_match_3_d_run_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::match_3_d_run_procedure_result_type::Match3DRunProcedureResult; -use super::match_3_d_run_stop_input_type::Match3DRunStopInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct StopMatch3DRunArgs { - pub input: Match3DRunStopInput, -} - -impl __sdk::InModule for StopMatch3DRunArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `stop_match_3_d_run`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait stop_match_3_d_run { - fn stop_match_3_d_run(&self, input: Match3DRunStopInput) { - self.stop_match_3_d_run_then(input, |_, _| {}); - } - - fn stop_match_3_d_run_then( - &self, - input: Match3DRunStopInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl stop_match_3_d_run for super::RemoteProcedures { - fn stop_match_3_d_run_then( - &self, - input: Match3DRunStopInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, Match3DRunProcedureResult>( - "stop_match_3_d_run", - StopMatch3DRunArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/stop_square_hole_run_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/stop_square_hole_run_procedure.rs deleted file mode 100644 index 076a3af89..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/stop_square_hole_run_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::square_hole_run_procedure_result_type::SquareHoleRunProcedureResult; -use super::square_hole_run_stop_input_type::SquareHoleRunStopInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct StopSquareHoleRunArgs { - pub input: SquareHoleRunStopInput, -} - -impl __sdk::InModule for StopSquareHoleRunArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `stop_square_hole_run`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait stop_square_hole_run { - fn stop_square_hole_run(&self, input: SquareHoleRunStopInput) { - self.stop_square_hole_run_then(input, |_, _| {}); - } - - fn stop_square_hole_run_then( - &self, - input: SquareHoleRunStopInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl stop_square_hole_run for super::RemoteProcedures { - fn stop_square_hole_run_then( - &self, - input: SquareHoleRunStopInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, SquareHoleRunProcedureResult>( - "stop_square_hole_run", - StopSquareHoleRunArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/story_continue_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/story_continue_input_type.rs deleted file mode 100644 index e0b3f7308..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/story_continue_input_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct StoryContinueInput { - pub story_session_id: String, - pub event_id: String, - pub narrative_text: String, - pub choice_function_id: Option, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for StoryContinueInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/story_event_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/story_event_snapshot_type.rs deleted file mode 100644 index 881799d5f..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/story_event_snapshot_type.rs +++ /dev/null @@ -1,22 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::story_event_kind_type::StoryEventKind; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct StoryEventSnapshot { - pub event_id: String, - pub story_session_id: String, - pub event_kind: StoryEventKind, - pub narrative_text: String, - pub choice_function_id: Option, - pub created_at_micros: i64, -} - -impl __sdk::InModule for StoryEventSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/story_session_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/story_session_input_type.rs deleted file mode 100644 index bebf3267c..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/story_session_input_type.rs +++ /dev/null @@ -1,21 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct StorySessionInput { - pub story_session_id: String, - pub runtime_session_id: String, - pub actor_user_id: String, - pub world_profile_id: String, - pub initial_prompt: String, - pub opening_summary: Option, - pub created_at_micros: i64, -} - -impl __sdk::InModule for StorySessionInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/story_session_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/story_session_procedure_result_type.rs deleted file mode 100644 index 4548d9cc7..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/story_session_procedure_result_type.rs +++ /dev/null @@ -1,21 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::story_event_snapshot_type::StoryEventSnapshot; -use super::story_session_snapshot_type::StorySessionSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct StorySessionProcedureResult { - pub ok: bool, - pub session: Option, - pub event: Option, - pub error_message: Option, -} - -impl __sdk::InModule for StorySessionProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/story_session_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/story_session_snapshot_type.rs deleted file mode 100644 index b8d2daf69..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/story_session_snapshot_type.rs +++ /dev/null @@ -1,28 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::story_session_status_type::StorySessionStatus; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct StorySessionSnapshot { - pub story_session_id: String, - pub runtime_session_id: String, - pub actor_user_id: String, - pub world_profile_id: String, - pub initial_prompt: String, - pub opening_summary: Option, - pub latest_narrative_text: String, - pub latest_choice_function_id: Option, - pub status: StorySessionStatus, - pub version: u32, - pub created_at_micros: i64, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for StorySessionSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/story_session_state_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/story_session_state_input_type.rs deleted file mode 100644 index d860b7db9..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/story_session_state_input_type.rs +++ /dev/null @@ -1,15 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct StorySessionStateInput { - pub story_session_id: String, -} - -impl __sdk::InModule for StorySessionStateInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/story_session_state_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/story_session_state_procedure_result_type.rs deleted file mode 100644 index cf2148d63..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/story_session_state_procedure_result_type.rs +++ /dev/null @@ -1,21 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::story_event_snapshot_type::StoryEventSnapshot; -use super::story_session_snapshot_type::StorySessionSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct StorySessionStateProcedureResult { - pub ok: bool, - pub session: Option, - pub events: Vec, - pub error_message: Option, -} - -impl __sdk::InModule for StorySessionStateProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/submit_big_fish_input_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/submit_big_fish_input_procedure.rs deleted file mode 100644 index 8ef444c53..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/submit_big_fish_input_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::big_fish_input_submit_input_type::BigFishInputSubmitInput; -use super::big_fish_run_procedure_result_type::BigFishRunProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct SubmitBigFishInputArgs { - pub input: BigFishInputSubmitInput, -} - -impl __sdk::InModule for SubmitBigFishInputArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `submit_big_fish_input`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait submit_big_fish_input { - fn submit_big_fish_input(&self, input: BigFishInputSubmitInput) { - self.submit_big_fish_input_then(input, |_, _| {}); - } - - fn submit_big_fish_input_then( - &self, - input: BigFishInputSubmitInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl submit_big_fish_input for super::RemoteProcedures { - fn submit_big_fish_input_then( - &self, - input: BigFishInputSubmitInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, BigFishRunProcedureResult>( - "submit_big_fish_input", - SubmitBigFishInputArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/submit_big_fish_message_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/submit_big_fish_message_procedure.rs deleted file mode 100644 index 0dbc01181..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/submit_big_fish_message_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::big_fish_message_submit_input_type::BigFishMessageSubmitInput; -use super::big_fish_session_procedure_result_type::BigFishSessionProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct SubmitBigFishMessageArgs { - pub input: BigFishMessageSubmitInput, -} - -impl __sdk::InModule for SubmitBigFishMessageArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `submit_big_fish_message`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait submit_big_fish_message { - fn submit_big_fish_message(&self, input: BigFishMessageSubmitInput) { - self.submit_big_fish_message_then(input, |_, _| {}); - } - - fn submit_big_fish_message_then( - &self, - input: BigFishMessageSubmitInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl submit_big_fish_message for super::RemoteProcedures { - fn submit_big_fish_message_then( - &self, - input: BigFishMessageSubmitInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, BigFishSessionProcedureResult>( - "submit_big_fish_message", - SubmitBigFishMessageArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/submit_custom_world_agent_message_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/submit_custom_world_agent_message_procedure.rs deleted file mode 100644 index c5e8def19..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/submit_custom_world_agent_message_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_agent_message_submit_input_type::CustomWorldAgentMessageSubmitInput; -use super::custom_world_agent_operation_procedure_result_type::CustomWorldAgentOperationProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct SubmitCustomWorldAgentMessageArgs { - pub input: CustomWorldAgentMessageSubmitInput, -} - -impl __sdk::InModule for SubmitCustomWorldAgentMessageArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `submit_custom_world_agent_message`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait submit_custom_world_agent_message { - fn submit_custom_world_agent_message(&self, input: CustomWorldAgentMessageSubmitInput) { - self.submit_custom_world_agent_message_then(input, |_, _| {}); - } - - fn submit_custom_world_agent_message_then( - &self, - input: CustomWorldAgentMessageSubmitInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl submit_custom_world_agent_message for super::RemoteProcedures { - fn submit_custom_world_agent_message_then( - &self, - input: CustomWorldAgentMessageSubmitInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, CustomWorldAgentOperationProcedureResult>( - "submit_custom_world_agent_message", - SubmitCustomWorldAgentMessageArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/submit_match_3_d_agent_message_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/submit_match_3_d_agent_message_procedure.rs deleted file mode 100644 index 1ceceaf5d..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/submit_match_3_d_agent_message_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::match_3_d_agent_message_submit_input_type::Match3DAgentMessageSubmitInput; -use super::match_3_d_agent_session_procedure_result_type::Match3DAgentSessionProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct SubmitMatch3DAgentMessageArgs { - pub input: Match3DAgentMessageSubmitInput, -} - -impl __sdk::InModule for SubmitMatch3DAgentMessageArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `submit_match_3_d_agent_message`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait submit_match_3_d_agent_message { - fn submit_match_3_d_agent_message(&self, input: Match3DAgentMessageSubmitInput) { - self.submit_match_3_d_agent_message_then(input, |_, _| {}); - } - - fn submit_match_3_d_agent_message_then( - &self, - input: Match3DAgentMessageSubmitInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl submit_match_3_d_agent_message for super::RemoteProcedures { - fn submit_match_3_d_agent_message_then( - &self, - input: Match3DAgentMessageSubmitInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, Match3DAgentSessionProcedureResult>( - "submit_match_3_d_agent_message", - SubmitMatch3DAgentMessageArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/submit_puzzle_agent_message_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/submit_puzzle_agent_message_procedure.rs deleted file mode 100644 index b5b2b0903..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/submit_puzzle_agent_message_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_agent_message_submit_input_type::PuzzleAgentMessageSubmitInput; -use super::puzzle_agent_session_procedure_result_type::PuzzleAgentSessionProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct SubmitPuzzleAgentMessageArgs { - pub input: PuzzleAgentMessageSubmitInput, -} - -impl __sdk::InModule for SubmitPuzzleAgentMessageArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `submit_puzzle_agent_message`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait submit_puzzle_agent_message { - fn submit_puzzle_agent_message(&self, input: PuzzleAgentMessageSubmitInput) { - self.submit_puzzle_agent_message_then(input, |_, _| {}); - } - - fn submit_puzzle_agent_message_then( - &self, - input: PuzzleAgentMessageSubmitInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl submit_puzzle_agent_message for super::RemoteProcedures { - fn submit_puzzle_agent_message_then( - &self, - input: PuzzleAgentMessageSubmitInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleAgentSessionProcedureResult>( - "submit_puzzle_agent_message", - SubmitPuzzleAgentMessageArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/submit_puzzle_leaderboard_entry_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/submit_puzzle_leaderboard_entry_procedure.rs deleted file mode 100644 index 7df245643..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/submit_puzzle_leaderboard_entry_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_leaderboard_submit_input_type::PuzzleLeaderboardSubmitInput; -use super::puzzle_run_procedure_result_type::PuzzleRunProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct SubmitPuzzleLeaderboardEntryArgs { - pub input: PuzzleLeaderboardSubmitInput, -} - -impl __sdk::InModule for SubmitPuzzleLeaderboardEntryArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `submit_puzzle_leaderboard_entry`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait submit_puzzle_leaderboard_entry { - fn submit_puzzle_leaderboard_entry(&self, input: PuzzleLeaderboardSubmitInput) { - self.submit_puzzle_leaderboard_entry_then(input, |_, _| {}); - } - - fn submit_puzzle_leaderboard_entry_then( - &self, - input: PuzzleLeaderboardSubmitInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl submit_puzzle_leaderboard_entry for super::RemoteProcedures { - fn submit_puzzle_leaderboard_entry_then( - &self, - input: PuzzleLeaderboardSubmitInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleRunProcedureResult>( - "submit_puzzle_leaderboard_entry", - SubmitPuzzleLeaderboardEntryArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/submit_square_hole_agent_message_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/submit_square_hole_agent_message_procedure.rs deleted file mode 100644 index e740fe61b..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/submit_square_hole_agent_message_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::square_hole_agent_message_submit_input_type::SquareHoleAgentMessageSubmitInput; -use super::square_hole_agent_session_procedure_result_type::SquareHoleAgentSessionProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct SubmitSquareHoleAgentMessageArgs { - pub input: SquareHoleAgentMessageSubmitInput, -} - -impl __sdk::InModule for SubmitSquareHoleAgentMessageArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `submit_square_hole_agent_message`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait submit_square_hole_agent_message { - fn submit_square_hole_agent_message(&self, input: SquareHoleAgentMessageSubmitInput) { - self.submit_square_hole_agent_message_then(input, |_, _| {}); - } - - fn submit_square_hole_agent_message_then( - &self, - input: SquareHoleAgentMessageSubmitInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl submit_square_hole_agent_message for super::RemoteProcedures { - fn submit_square_hole_agent_message_then( - &self, - input: SquareHoleAgentMessageSubmitInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, SquareHoleAgentSessionProcedureResult>( - "submit_square_hole_agent_message", - SubmitSquareHoleAgentMessageArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/submit_visual_novel_agent_message_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/submit_visual_novel_agent_message_procedure.rs deleted file mode 100644 index 0df949bd7..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/submit_visual_novel_agent_message_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::visual_novel_agent_message_submit_input_type::VisualNovelAgentMessageSubmitInput; -use super::visual_novel_agent_session_procedure_result_type::VisualNovelAgentSessionProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct SubmitVisualNovelAgentMessageArgs { - pub input: VisualNovelAgentMessageSubmitInput, -} - -impl __sdk::InModule for SubmitVisualNovelAgentMessageArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `submit_visual_novel_agent_message`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait submit_visual_novel_agent_message { - fn submit_visual_novel_agent_message(&self, input: VisualNovelAgentMessageSubmitInput) { - self.submit_visual_novel_agent_message_then(input, |_, _| {}); - } - - fn submit_visual_novel_agent_message_then( - &self, - input: VisualNovelAgentMessageSubmitInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl submit_visual_novel_agent_message for super::RemoteProcedures { - fn submit_visual_novel_agent_message_then( - &self, - input: VisualNovelAgentMessageSubmitInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, VisualNovelAgentSessionProcedureResult>( - "submit_visual_novel_agent_message", - SubmitVisualNovelAgentMessageArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/swap_puzzle_clear_cards_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/swap_puzzle_clear_cards_procedure.rs deleted file mode 100644 index fef0c0379..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/swap_puzzle_clear_cards_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_clear_run_procedure_result_type::PuzzleClearRunProcedureResult; -use super::puzzle_clear_run_swap_input_type::PuzzleClearRunSwapInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct SwapPuzzleClearCardsArgs { - pub input: PuzzleClearRunSwapInput, -} - -impl __sdk::InModule for SwapPuzzleClearCardsArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `swap_puzzle_clear_cards`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait swap_puzzle_clear_cards { - fn swap_puzzle_clear_cards(&self, input: PuzzleClearRunSwapInput) { - self.swap_puzzle_clear_cards_then(input, |_, _| {}); - } - - fn swap_puzzle_clear_cards_then( - &self, - input: PuzzleClearRunSwapInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl swap_puzzle_clear_cards for super::RemoteProcedures { - fn swap_puzzle_clear_cards_then( - &self, - input: PuzzleClearRunSwapInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleClearRunProcedureResult>( - "swap_puzzle_clear_cards", - SwapPuzzleClearCardsArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/swap_puzzle_pieces_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/swap_puzzle_pieces_procedure.rs deleted file mode 100644 index 9c6a13378..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/swap_puzzle_pieces_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_run_procedure_result_type::PuzzleRunProcedureResult; -use super::puzzle_run_swap_input_type::PuzzleRunSwapInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct SwapPuzzlePiecesArgs { - pub input: PuzzleRunSwapInput, -} - -impl __sdk::InModule for SwapPuzzlePiecesArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `swap_puzzle_pieces`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait swap_puzzle_pieces { - fn swap_puzzle_pieces(&self, input: PuzzleRunSwapInput) { - self.swap_puzzle_pieces_then(input, |_, _| {}); - } - - fn swap_puzzle_pieces_then( - &self, - input: PuzzleRunSwapInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl swap_puzzle_pieces for super::RemoteProcedures { - fn swap_puzzle_pieces_then( - &self, - input: PuzzleRunSwapInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleRunProcedureResult>( - "swap_puzzle_pieces", - SwapPuzzlePiecesArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/treasure_record_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/treasure_record_procedure_result_type.rs deleted file mode 100644 index d0ac01751..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/treasure_record_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::treasure_record_snapshot_type::TreasureRecordSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct TreasureRecordProcedureResult { - pub ok: bool, - pub record: Option, - pub error_message: Option, -} - -impl __sdk::InModule for TreasureRecordProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/treasure_record_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/treasure_record_snapshot_type.rs deleted file mode 100644 index 8d69d10e3..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/treasure_record_snapshot_type.rs +++ /dev/null @@ -1,33 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::runtime_item_reward_item_snapshot_type::RuntimeItemRewardItemSnapshot; -use super::treasure_interaction_action_type::TreasureInteractionAction; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct TreasureRecordSnapshot { - pub treasure_record_id: String, - pub runtime_session_id: String, - pub story_session_id: String, - pub actor_user_id: String, - pub encounter_id: String, - pub encounter_name: String, - pub scene_id: Option, - pub scene_name: Option, - pub action: TreasureInteractionAction, - pub reward_items: Vec, - pub reward_hp: u32, - pub reward_mana: u32, - pub reward_currency: u32, - pub story_hint: Option, - pub created_at_micros: i64, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for TreasureRecordSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/treasure_resolve_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/treasure_resolve_input_type.rs deleted file mode 100644 index ef1083df8..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/treasure_resolve_input_type.rs +++ /dev/null @@ -1,33 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::runtime_item_reward_item_snapshot_type::RuntimeItemRewardItemSnapshot; -use super::treasure_interaction_action_type::TreasureInteractionAction; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct TreasureResolveInput { - pub treasure_record_id: String, - pub runtime_session_id: String, - pub story_session_id: String, - pub actor_user_id: String, - pub encounter_id: String, - pub encounter_name: String, - pub scene_id: Option, - pub scene_name: Option, - pub action: TreasureInteractionAction, - pub reward_items: Vec, - pub reward_hp: u32, - pub reward_mana: u32, - pub reward_currency: u32, - pub story_hint: Option, - pub created_at_micros: i64, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for TreasureResolveInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/turn_in_quest_reducer.rs b/server-rs/crates/spacetime-client/src/module_bindings/turn_in_quest_reducer.rs deleted file mode 100644 index 4306a47f1..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/turn_in_quest_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::quest_turn_in_input_type::QuestTurnInInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct TurnInQuestArgs { - pub input: QuestTurnInInput, -} - -impl From for super::Reducer { - fn from(args: TurnInQuestArgs) -> Self { - Self::TurnInQuest { input: args.input } - } -} - -impl __sdk::InModule for TurnInQuestArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `turn_in_quest`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait turn_in_quest { - /// Request that the remote module invoke the reducer `turn_in_quest` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`turn_in_quest:turn_in_quest_then`] to run a callback after the reducer completes. - fn turn_in_quest(&self, input: QuestTurnInInput) -> __sdk::Result<()> { - self.turn_in_quest_then(input, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `turn_in_quest` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn turn_in_quest_then( - &self, - input: QuestTurnInInput, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl turn_in_quest for super::RemoteReducers { - fn turn_in_quest_then( - &self, - input: QuestTurnInInput, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(TurnInQuestArgs { input }, callback) - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/unequip_inventory_item_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/unequip_inventory_item_input_type.rs deleted file mode 100644 index 227f40ecf..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/unequip_inventory_item_input_type.rs +++ /dev/null @@ -1,15 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct UnequipInventoryItemInput { - pub slot_id: String, -} - -impl __sdk::InModule for UnequipInventoryItemInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/unpublish_custom_world_profile_and_return_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/unpublish_custom_world_profile_and_return_procedure.rs deleted file mode 100644 index b87880a7e..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/unpublish_custom_world_profile_and_return_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_library_mutation_result_type::CustomWorldLibraryMutationResult; -use super::custom_world_profile_unpublish_input_type::CustomWorldProfileUnpublishInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct UnpublishCustomWorldProfileAndReturnArgs { - pub input: CustomWorldProfileUnpublishInput, -} - -impl __sdk::InModule for UnpublishCustomWorldProfileAndReturnArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `unpublish_custom_world_profile_and_return`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait unpublish_custom_world_profile_and_return { - fn unpublish_custom_world_profile_and_return(&self, input: CustomWorldProfileUnpublishInput) { - self.unpublish_custom_world_profile_and_return_then(input, |_, _| {}); - } - - fn unpublish_custom_world_profile_and_return_then( - &self, - input: CustomWorldProfileUnpublishInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl unpublish_custom_world_profile_and_return for super::RemoteProcedures { - fn unpublish_custom_world_profile_and_return_then( - &self, - input: CustomWorldProfileUnpublishInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, CustomWorldLibraryMutationResult>( - "unpublish_custom_world_profile_and_return", - UnpublishCustomWorldProfileAndReturnArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/unpublish_custom_world_profile_reducer.rs b/server-rs/crates/spacetime-client/src/module_bindings/unpublish_custom_world_profile_reducer.rs deleted file mode 100644 index 05274f62d..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/unpublish_custom_world_profile_reducer.rs +++ /dev/null @@ -1,71 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_profile_unpublish_input_type::CustomWorldProfileUnpublishInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct UnpublishCustomWorldProfileArgs { - pub input: CustomWorldProfileUnpublishInput, -} - -impl From for super::Reducer { - fn from(args: UnpublishCustomWorldProfileArgs) -> Self { - Self::UnpublishCustomWorldProfile { input: args.input } - } -} - -impl __sdk::InModule for UnpublishCustomWorldProfileArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `unpublish_custom_world_profile`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait unpublish_custom_world_profile { - /// Request that the remote module invoke the reducer `unpublish_custom_world_profile` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`unpublish_custom_world_profile:unpublish_custom_world_profile_then`] to run a callback after the reducer completes. - fn unpublish_custom_world_profile( - &self, - input: CustomWorldProfileUnpublishInput, - ) -> __sdk::Result<()> { - self.unpublish_custom_world_profile_then(input, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `unpublish_custom_world_profile` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn unpublish_custom_world_profile_then( - &self, - input: CustomWorldProfileUnpublishInput, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl unpublish_custom_world_profile for super::RemoteReducers { - fn unpublish_custom_world_profile_then( - &self, - input: CustomWorldProfileUnpublishInput, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(UnpublishCustomWorldProfileArgs { input }, callback) - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/update_bark_battle_draft_config_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/update_bark_battle_draft_config_procedure.rs deleted file mode 100644 index 545ca3f8c..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/update_bark_battle_draft_config_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::bark_battle_draft_config_upsert_input_type::BarkBattleDraftConfigUpsertInput; -use super::bark_battle_procedure_result_type::BarkBattleProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct UpdateBarkBattleDraftConfigArgs { - pub input: BarkBattleDraftConfigUpsertInput, -} - -impl __sdk::InModule for UpdateBarkBattleDraftConfigArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `update_bark_battle_draft_config`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait update_bark_battle_draft_config { - fn update_bark_battle_draft_config(&self, input: BarkBattleDraftConfigUpsertInput) { - self.update_bark_battle_draft_config_then(input, |_, _| {}); - } - - fn update_bark_battle_draft_config_then( - &self, - input: BarkBattleDraftConfigUpsertInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl update_bark_battle_draft_config for super::RemoteProcedures { - fn update_bark_battle_draft_config_then( - &self, - input: BarkBattleDraftConfigUpsertInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, BarkBattleProcedureResult>( - "update_bark_battle_draft_config", - UpdateBarkBattleDraftConfigArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/update_jump_hop_work_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/update_jump_hop_work_procedure.rs deleted file mode 100644 index c5f246bf4..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/update_jump_hop_work_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::jump_hop_work_procedure_result_type::JumpHopWorkProcedureResult; -use super::jump_hop_work_update_input_type::JumpHopWorkUpdateInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct UpdateJumpHopWorkArgs { - pub input: JumpHopWorkUpdateInput, -} - -impl __sdk::InModule for UpdateJumpHopWorkArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `update_jump_hop_work`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait update_jump_hop_work { - fn update_jump_hop_work(&self, input: JumpHopWorkUpdateInput) { - self.update_jump_hop_work_then(input, |_, _| {}); - } - - fn update_jump_hop_work_then( - &self, - input: JumpHopWorkUpdateInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl update_jump_hop_work for super::RemoteProcedures { - fn update_jump_hop_work_then( - &self, - input: JumpHopWorkUpdateInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, JumpHopWorkProcedureResult>( - "update_jump_hop_work", - UpdateJumpHopWorkArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/update_match_3_d_work_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/update_match_3_d_work_procedure.rs deleted file mode 100644 index ea2ee9b43..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/update_match_3_d_work_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::match_3_d_work_procedure_result_type::Match3DWorkProcedureResult; -use super::match_3_d_work_update_input_type::Match3DWorkUpdateInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct UpdateMatch3DWorkArgs { - pub input: Match3DWorkUpdateInput, -} - -impl __sdk::InModule for UpdateMatch3DWorkArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `update_match_3_d_work`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait update_match_3_d_work { - fn update_match_3_d_work(&self, input: Match3DWorkUpdateInput) { - self.update_match_3_d_work_then(input, |_, _| {}); - } - - fn update_match_3_d_work_then( - &self, - input: Match3DWorkUpdateInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl update_match_3_d_work for super::RemoteProcedures { - fn update_match_3_d_work_then( - &self, - input: Match3DWorkUpdateInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, Match3DWorkProcedureResult>( - "update_match_3_d_work", - UpdateMatch3DWorkArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/update_puzzle_clear_work_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/update_puzzle_clear_work_procedure.rs deleted file mode 100644 index 2bc286f57..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/update_puzzle_clear_work_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_clear_work_procedure_result_type::PuzzleClearWorkProcedureResult; -use super::puzzle_clear_work_update_input_type::PuzzleClearWorkUpdateInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct UpdatePuzzleClearWorkArgs { - pub input: PuzzleClearWorkUpdateInput, -} - -impl __sdk::InModule for UpdatePuzzleClearWorkArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `update_puzzle_clear_work`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait update_puzzle_clear_work { - fn update_puzzle_clear_work(&self, input: PuzzleClearWorkUpdateInput) { - self.update_puzzle_clear_work_then(input, |_, _| {}); - } - - fn update_puzzle_clear_work_then( - &self, - input: PuzzleClearWorkUpdateInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl update_puzzle_clear_work for super::RemoteProcedures { - fn update_puzzle_clear_work_then( - &self, - input: PuzzleClearWorkUpdateInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleClearWorkProcedureResult>( - "update_puzzle_clear_work", - UpdatePuzzleClearWorkArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/update_puzzle_run_pause_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/update_puzzle_run_pause_procedure.rs deleted file mode 100644 index 1679b5eca..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/update_puzzle_run_pause_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_run_pause_input_type::PuzzleRunPauseInput; -use super::puzzle_run_procedure_result_type::PuzzleRunProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct UpdatePuzzleRunPauseArgs { - pub input: PuzzleRunPauseInput, -} - -impl __sdk::InModule for UpdatePuzzleRunPauseArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `update_puzzle_run_pause`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait update_puzzle_run_pause { - fn update_puzzle_run_pause(&self, input: PuzzleRunPauseInput) { - self.update_puzzle_run_pause_then(input, |_, _| {}); - } - - fn update_puzzle_run_pause_then( - &self, - input: PuzzleRunPauseInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl update_puzzle_run_pause for super::RemoteProcedures { - fn update_puzzle_run_pause_then( - &self, - input: PuzzleRunPauseInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleRunProcedureResult>( - "update_puzzle_run_pause", - UpdatePuzzleRunPauseArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/update_puzzle_work_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/update_puzzle_work_procedure.rs deleted file mode 100644 index 6710b4da4..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/update_puzzle_work_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_work_procedure_result_type::PuzzleWorkProcedureResult; -use super::puzzle_work_upsert_input_type::PuzzleWorkUpsertInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct UpdatePuzzleWorkArgs { - pub input: PuzzleWorkUpsertInput, -} - -impl __sdk::InModule for UpdatePuzzleWorkArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `update_puzzle_work`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait update_puzzle_work { - fn update_puzzle_work(&self, input: PuzzleWorkUpsertInput) { - self.update_puzzle_work_then(input, |_, _| {}); - } - - fn update_puzzle_work_then( - &self, - input: PuzzleWorkUpsertInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl update_puzzle_work for super::RemoteProcedures { - fn update_puzzle_work_then( - &self, - input: PuzzleWorkUpsertInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleWorkProcedureResult>( - "update_puzzle_work", - UpdatePuzzleWorkArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/update_square_hole_work_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/update_square_hole_work_procedure.rs deleted file mode 100644 index 167865275..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/update_square_hole_work_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::square_hole_work_procedure_result_type::SquareHoleWorkProcedureResult; -use super::square_hole_work_update_input_type::SquareHoleWorkUpdateInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct UpdateSquareHoleWorkArgs { - pub input: SquareHoleWorkUpdateInput, -} - -impl __sdk::InModule for UpdateSquareHoleWorkArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `update_square_hole_work`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait update_square_hole_work { - fn update_square_hole_work(&self, input: SquareHoleWorkUpdateInput) { - self.update_square_hole_work_then(input, |_, _| {}); - } - - fn update_square_hole_work_then( - &self, - input: SquareHoleWorkUpdateInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl update_square_hole_work for super::RemoteProcedures { - fn update_square_hole_work_then( - &self, - input: SquareHoleWorkUpdateInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, SquareHoleWorkProcedureResult>( - "update_square_hole_work", - UpdateSquareHoleWorkArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/update_visual_novel_work_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/update_visual_novel_work_procedure.rs deleted file mode 100644 index b6e61e332..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/update_visual_novel_work_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::visual_novel_work_procedure_result_type::VisualNovelWorkProcedureResult; -use super::visual_novel_work_update_input_type::VisualNovelWorkUpdateInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct UpdateVisualNovelWorkArgs { - pub input: VisualNovelWorkUpdateInput, -} - -impl __sdk::InModule for UpdateVisualNovelWorkArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `update_visual_novel_work`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait update_visual_novel_work { - fn update_visual_novel_work(&self, input: VisualNovelWorkUpdateInput) { - self.update_visual_novel_work_then(input, |_, _| {}); - } - - fn update_visual_novel_work_then( - &self, - input: VisualNovelWorkUpdateInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl update_visual_novel_work for super::RemoteProcedures { - fn update_visual_novel_work_then( - &self, - input: VisualNovelWorkUpdateInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, VisualNovelWorkProcedureResult>( - "update_visual_novel_work", - UpdateVisualNovelWorkArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/update_wooden_fish_work_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/update_wooden_fish_work_procedure.rs deleted file mode 100644 index 6b7c03d83..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/update_wooden_fish_work_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::wooden_fish_work_procedure_result_type::WoodenFishWorkProcedureResult; -use super::wooden_fish_work_update_input_type::WoodenFishWorkUpdateInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct UpdateWoodenFishWorkArgs { - pub input: WoodenFishWorkUpdateInput, -} - -impl __sdk::InModule for UpdateWoodenFishWorkArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `update_wooden_fish_work`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait update_wooden_fish_work { - fn update_wooden_fish_work(&self, input: WoodenFishWorkUpdateInput) { - self.update_wooden_fish_work_then(input, |_, _| {}); - } - - fn update_wooden_fish_work_then( - &self, - input: WoodenFishWorkUpdateInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl update_wooden_fish_work for super::RemoteProcedures { - fn update_wooden_fish_work_then( - &self, - input: WoodenFishWorkUpdateInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, WoodenFishWorkProcedureResult>( - "update_wooden_fish_work", - UpdateWoodenFishWorkArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/upsert_chapter_progression_and_return_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/upsert_chapter_progression_and_return_procedure.rs deleted file mode 100644 index abc39bfe3..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/upsert_chapter_progression_and_return_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::chapter_progression_input_type::ChapterProgressionInput; -use super::chapter_progression_procedure_result_type::ChapterProgressionProcedureResult; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct UpsertChapterProgressionAndReturnArgs { - pub input: ChapterProgressionInput, -} - -impl __sdk::InModule for UpsertChapterProgressionAndReturnArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `upsert_chapter_progression_and_return`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait upsert_chapter_progression_and_return { - fn upsert_chapter_progression_and_return(&self, input: ChapterProgressionInput) { - self.upsert_chapter_progression_and_return_then(input, |_, _| {}); - } - - fn upsert_chapter_progression_and_return_then( - &self, - input: ChapterProgressionInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl upsert_chapter_progression_and_return for super::RemoteProcedures { - fn upsert_chapter_progression_and_return_then( - &self, - input: ChapterProgressionInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, ChapterProgressionProcedureResult>( - "upsert_chapter_progression_and_return", - UpsertChapterProgressionAndReturnArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/upsert_chapter_progression_reducer.rs b/server-rs/crates/spacetime-client/src/module_bindings/upsert_chapter_progression_reducer.rs deleted file mode 100644 index 0cb4bb7ac..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/upsert_chapter_progression_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::chapter_progression_input_type::ChapterProgressionInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct UpsertChapterProgressionArgs { - pub input: ChapterProgressionInput, -} - -impl From for super::Reducer { - fn from(args: UpsertChapterProgressionArgs) -> Self { - Self::UpsertChapterProgression { input: args.input } - } -} - -impl __sdk::InModule for UpsertChapterProgressionArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `upsert_chapter_progression`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait upsert_chapter_progression { - /// Request that the remote module invoke the reducer `upsert_chapter_progression` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`upsert_chapter_progression:upsert_chapter_progression_then`] to run a callback after the reducer completes. - fn upsert_chapter_progression(&self, input: ChapterProgressionInput) -> __sdk::Result<()> { - self.upsert_chapter_progression_then(input, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `upsert_chapter_progression` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn upsert_chapter_progression_then( - &self, - input: ChapterProgressionInput, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl upsert_chapter_progression for super::RemoteReducers { - fn upsert_chapter_progression_then( - &self, - input: ChapterProgressionInput, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(UpsertChapterProgressionArgs { input }, callback) - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/upsert_creation_entry_event_banners_config_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/upsert_creation_entry_event_banners_config_procedure.rs deleted file mode 100644 index aea3d28e5..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/upsert_creation_entry_event_banners_config_procedure.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::creation_entry_config_procedure_result_type::CreationEntryConfigProcedureResult; -use super::creation_entry_event_banners_admin_upsert_input_type::CreationEntryEventBannersAdminUpsertInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct UpsertCreationEntryEventBannersConfigArgs { - pub input: CreationEntryEventBannersAdminUpsertInput, -} - -impl __sdk::InModule for UpsertCreationEntryEventBannersConfigArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `upsert_creation_entry_event_banners_config`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait upsert_creation_entry_event_banners_config { - fn upsert_creation_entry_event_banners_config( - &self, - input: CreationEntryEventBannersAdminUpsertInput, - ) { - self.upsert_creation_entry_event_banners_config_then(input, |_, _| {}); - } - - fn upsert_creation_entry_event_banners_config_then( - &self, - input: CreationEntryEventBannersAdminUpsertInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl upsert_creation_entry_event_banners_config for super::RemoteProcedures { - fn upsert_creation_entry_event_banners_config_then( - &self, - input: CreationEntryEventBannersAdminUpsertInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, CreationEntryConfigProcedureResult>( - "upsert_creation_entry_event_banners_config", - UpsertCreationEntryEventBannersConfigArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/upsert_creation_entry_type_config_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/upsert_creation_entry_type_config_procedure.rs deleted file mode 100644 index 32df13cb2..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/upsert_creation_entry_type_config_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::creation_entry_config_procedure_result_type::CreationEntryConfigProcedureResult; -use super::creation_entry_type_admin_upsert_input_type::CreationEntryTypeAdminUpsertInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct UpsertCreationEntryTypeConfigArgs { - pub input: CreationEntryTypeAdminUpsertInput, -} - -impl __sdk::InModule for UpsertCreationEntryTypeConfigArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `upsert_creation_entry_type_config`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait upsert_creation_entry_type_config { - fn upsert_creation_entry_type_config(&self, input: CreationEntryTypeAdminUpsertInput) { - self.upsert_creation_entry_type_config_then(input, |_, _| {}); - } - - fn upsert_creation_entry_type_config_then( - &self, - input: CreationEntryTypeAdminUpsertInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl upsert_creation_entry_type_config for super::RemoteProcedures { - fn upsert_creation_entry_type_config_then( - &self, - input: CreationEntryTypeAdminUpsertInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, CreationEntryConfigProcedureResult>( - "upsert_creation_entry_type_config", - UpsertCreationEntryTypeConfigArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/upsert_custom_world_agent_operation_progress_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/upsert_custom_world_agent_operation_progress_procedure.rs deleted file mode 100644 index 554b95b20..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/upsert_custom_world_agent_operation_progress_procedure.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_agent_operation_procedure_result_type::CustomWorldAgentOperationProcedureResult; -use super::custom_world_agent_operation_progress_input_type::CustomWorldAgentOperationProgressInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct UpsertCustomWorldAgentOperationProgressArgs { - pub input: CustomWorldAgentOperationProgressInput, -} - -impl __sdk::InModule for UpsertCustomWorldAgentOperationProgressArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `upsert_custom_world_agent_operation_progress`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait upsert_custom_world_agent_operation_progress { - fn upsert_custom_world_agent_operation_progress( - &self, - input: CustomWorldAgentOperationProgressInput, - ) { - self.upsert_custom_world_agent_operation_progress_then(input, |_, _| {}); - } - - fn upsert_custom_world_agent_operation_progress_then( - &self, - input: CustomWorldAgentOperationProgressInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl upsert_custom_world_agent_operation_progress for super::RemoteProcedures { - fn upsert_custom_world_agent_operation_progress_then( - &self, - input: CustomWorldAgentOperationProgressInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, CustomWorldAgentOperationProcedureResult>( - "upsert_custom_world_agent_operation_progress", - UpsertCustomWorldAgentOperationProgressArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/upsert_custom_world_profile_and_return_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/upsert_custom_world_profile_and_return_procedure.rs deleted file mode 100644 index 343e1807f..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/upsert_custom_world_profile_and_return_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_library_mutation_result_type::CustomWorldLibraryMutationResult; -use super::custom_world_profile_upsert_input_type::CustomWorldProfileUpsertInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct UpsertCustomWorldProfileAndReturnArgs { - pub input: CustomWorldProfileUpsertInput, -} - -impl __sdk::InModule for UpsertCustomWorldProfileAndReturnArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `upsert_custom_world_profile_and_return`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait upsert_custom_world_profile_and_return { - fn upsert_custom_world_profile_and_return(&self, input: CustomWorldProfileUpsertInput) { - self.upsert_custom_world_profile_and_return_then(input, |_, _| {}); - } - - fn upsert_custom_world_profile_and_return_then( - &self, - input: CustomWorldProfileUpsertInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl upsert_custom_world_profile_and_return for super::RemoteProcedures { - fn upsert_custom_world_profile_and_return_then( - &self, - input: CustomWorldProfileUpsertInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, CustomWorldLibraryMutationResult>( - "upsert_custom_world_profile_and_return", - UpsertCustomWorldProfileAndReturnArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/upsert_custom_world_profile_reducer.rs b/server-rs/crates/spacetime-client/src/module_bindings/upsert_custom_world_profile_reducer.rs deleted file mode 100644 index e343b491d..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/upsert_custom_world_profile_reducer.rs +++ /dev/null @@ -1,71 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::custom_world_profile_upsert_input_type::CustomWorldProfileUpsertInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct UpsertCustomWorldProfileArgs { - pub input: CustomWorldProfileUpsertInput, -} - -impl From for super::Reducer { - fn from(args: UpsertCustomWorldProfileArgs) -> Self { - Self::UpsertCustomWorldProfile { input: args.input } - } -} - -impl __sdk::InModule for UpsertCustomWorldProfileArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `upsert_custom_world_profile`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait upsert_custom_world_profile { - /// Request that the remote module invoke the reducer `upsert_custom_world_profile` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`upsert_custom_world_profile:upsert_custom_world_profile_then`] to run a callback after the reducer completes. - fn upsert_custom_world_profile( - &self, - input: CustomWorldProfileUpsertInput, - ) -> __sdk::Result<()> { - self.upsert_custom_world_profile_then(input, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `upsert_custom_world_profile` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn upsert_custom_world_profile_then( - &self, - input: CustomWorldProfileUpsertInput, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl upsert_custom_world_profile for super::RemoteReducers { - fn upsert_custom_world_profile_then( - &self, - input: CustomWorldProfileUpsertInput, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(UpsertCustomWorldProfileArgs { input }, callback) - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/upsert_npc_state_and_return_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/upsert_npc_state_and_return_procedure.rs deleted file mode 100644 index b7f3a28d4..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/upsert_npc_state_and_return_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::npc_state_procedure_result_type::NpcStateProcedureResult; -use super::npc_state_upsert_input_type::NpcStateUpsertInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct UpsertNpcStateAndReturnArgs { - pub input: NpcStateUpsertInput, -} - -impl __sdk::InModule for UpsertNpcStateAndReturnArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `upsert_npc_state_and_return`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait upsert_npc_state_and_return { - fn upsert_npc_state_and_return(&self, input: NpcStateUpsertInput) { - self.upsert_npc_state_and_return_then(input, |_, _| {}); - } - - fn upsert_npc_state_and_return_then( - &self, - input: NpcStateUpsertInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl upsert_npc_state_and_return for super::RemoteProcedures { - fn upsert_npc_state_and_return_then( - &self, - input: NpcStateUpsertInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, NpcStateProcedureResult>( - "upsert_npc_state_and_return", - UpsertNpcStateAndReturnArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/upsert_npc_state_reducer.rs b/server-rs/crates/spacetime-client/src/module_bindings/upsert_npc_state_reducer.rs deleted file mode 100644 index f363770d4..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/upsert_npc_state_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::npc_state_upsert_input_type::NpcStateUpsertInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct UpsertNpcStateArgs { - pub input: NpcStateUpsertInput, -} - -impl From for super::Reducer { - fn from(args: UpsertNpcStateArgs) -> Self { - Self::UpsertNpcState { input: args.input } - } -} - -impl __sdk::InModule for UpsertNpcStateArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `upsert_npc_state`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait upsert_npc_state { - /// Request that the remote module invoke the reducer `upsert_npc_state` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`upsert_npc_state:upsert_npc_state_then`] to run a callback after the reducer completes. - fn upsert_npc_state(&self, input: NpcStateUpsertInput) -> __sdk::Result<()> { - self.upsert_npc_state_then(input, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `upsert_npc_state` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn upsert_npc_state_then( - &self, - input: NpcStateUpsertInput, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl upsert_npc_state for super::RemoteReducers { - fn upsert_npc_state_then( - &self, - input: NpcStateUpsertInput, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(UpsertNpcStateArgs { input }, callback) - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/upsert_platform_browse_history_and_return_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/upsert_platform_browse_history_and_return_procedure.rs deleted file mode 100644 index 614a6d055..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/upsert_platform_browse_history_and_return_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::runtime_browse_history_procedure_result_type::RuntimeBrowseHistoryProcedureResult; -use super::runtime_browse_history_sync_input_type::RuntimeBrowseHistorySyncInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct UpsertPlatformBrowseHistoryAndReturnArgs { - pub input: RuntimeBrowseHistorySyncInput, -} - -impl __sdk::InModule for UpsertPlatformBrowseHistoryAndReturnArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `upsert_platform_browse_history_and_return`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait upsert_platform_browse_history_and_return { - fn upsert_platform_browse_history_and_return(&self, input: RuntimeBrowseHistorySyncInput) { - self.upsert_platform_browse_history_and_return_then(input, |_, _| {}); - } - - fn upsert_platform_browse_history_and_return_then( - &self, - input: RuntimeBrowseHistorySyncInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl upsert_platform_browse_history_and_return for super::RemoteProcedures { - fn upsert_platform_browse_history_and_return_then( - &self, - input: RuntimeBrowseHistorySyncInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, RuntimeBrowseHistoryProcedureResult>( - "upsert_platform_browse_history_and_return", - UpsertPlatformBrowseHistoryAndReturnArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/upsert_public_work_interaction_config_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/upsert_public_work_interaction_config_procedure.rs deleted file mode 100644 index 88e88d690..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/upsert_public_work_interaction_config_procedure.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::creation_entry_config_procedure_result_type::CreationEntryConfigProcedureResult; -use super::public_work_interaction_config_admin_upsert_input_type::PublicWorkInteractionConfigAdminUpsertInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct UpsertPublicWorkInteractionConfigArgs { - pub input: PublicWorkInteractionConfigAdminUpsertInput, -} - -impl __sdk::InModule for UpsertPublicWorkInteractionConfigArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `upsert_public_work_interaction_config`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait upsert_public_work_interaction_config { - fn upsert_public_work_interaction_config( - &self, - input: PublicWorkInteractionConfigAdminUpsertInput, - ) { - self.upsert_public_work_interaction_config_then(input, |_, _| {}); - } - - fn upsert_public_work_interaction_config_then( - &self, - input: PublicWorkInteractionConfigAdminUpsertInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl upsert_public_work_interaction_config for super::RemoteProcedures { - fn upsert_public_work_interaction_config_then( - &self, - input: PublicWorkInteractionConfigAdminUpsertInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, CreationEntryConfigProcedureResult>( - "upsert_public_work_interaction_config", - UpsertPublicWorkInteractionConfigArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/upsert_runtime_snapshot_and_return_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/upsert_runtime_snapshot_and_return_procedure.rs deleted file mode 100644 index eceae785b..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/upsert_runtime_snapshot_and_return_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::runtime_snapshot_procedure_result_type::RuntimeSnapshotProcedureResult; -use super::runtime_snapshot_upsert_input_type::RuntimeSnapshotUpsertInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct UpsertRuntimeSnapshotAndReturnArgs { - pub input: RuntimeSnapshotUpsertInput, -} - -impl __sdk::InModule for UpsertRuntimeSnapshotAndReturnArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `upsert_runtime_snapshot_and_return`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait upsert_runtime_snapshot_and_return { - fn upsert_runtime_snapshot_and_return(&self, input: RuntimeSnapshotUpsertInput) { - self.upsert_runtime_snapshot_and_return_then(input, |_, _| {}); - } - - fn upsert_runtime_snapshot_and_return_then( - &self, - input: RuntimeSnapshotUpsertInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl upsert_runtime_snapshot_and_return for super::RemoteProcedures { - fn upsert_runtime_snapshot_and_return_then( - &self, - input: RuntimeSnapshotUpsertInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, RuntimeSnapshotProcedureResult>( - "upsert_runtime_snapshot_and_return", - UpsertRuntimeSnapshotAndReturnArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/upsert_visual_novel_run_snapshot_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/upsert_visual_novel_run_snapshot_procedure.rs deleted file mode 100644 index 35722b1e4..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/upsert_visual_novel_run_snapshot_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::visual_novel_run_procedure_result_type::VisualNovelRunProcedureResult; -use super::visual_novel_run_snapshot_upsert_input_type::VisualNovelRunSnapshotUpsertInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct UpsertVisualNovelRunSnapshotArgs { - pub input: VisualNovelRunSnapshotUpsertInput, -} - -impl __sdk::InModule for UpsertVisualNovelRunSnapshotArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `upsert_visual_novel_run_snapshot`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait upsert_visual_novel_run_snapshot { - fn upsert_visual_novel_run_snapshot(&self, input: VisualNovelRunSnapshotUpsertInput) { - self.upsert_visual_novel_run_snapshot_then(input, |_, _| {}); - } - - fn upsert_visual_novel_run_snapshot_then( - &self, - input: VisualNovelRunSnapshotUpsertInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl upsert_visual_novel_run_snapshot for super::RemoteProcedures { - fn upsert_visual_novel_run_snapshot_then( - &self, - input: VisualNovelRunSnapshotUpsertInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, VisualNovelRunProcedureResult>( - "upsert_visual_novel_run_snapshot", - UpsertVisualNovelRunSnapshotArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/use_puzzle_runtime_prop_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/use_puzzle_runtime_prop_procedure.rs deleted file mode 100644 index 45bd3a730..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/use_puzzle_runtime_prop_procedure.rs +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::puzzle_run_procedure_result_type::PuzzleRunProcedureResult; -use super::puzzle_run_prop_input_type::PuzzleRunPropInput; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct UsePuzzleRuntimePropArgs { - pub input: PuzzleRunPropInput, -} - -impl __sdk::InModule for UsePuzzleRuntimePropArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `use_puzzle_runtime_prop`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait use_puzzle_runtime_prop { - fn use_puzzle_runtime_prop(&self, input: PuzzleRunPropInput) { - self.use_puzzle_runtime_prop_then(input, |_, _| {}); - } - - fn use_puzzle_runtime_prop_then( - &self, - input: PuzzleRunPropInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ); -} - -impl use_puzzle_runtime_prop for super::RemoteProcedures { - fn use_puzzle_runtime_prop_then( - &self, - input: PuzzleRunPropInput, - - __callback: impl FnOnce( - &super::ProcedureEventContext, - Result, - ) + Send - + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, PuzzleRunProcedureResult>( - "use_puzzle_runtime_prop", - UsePuzzleRuntimePropArgs { input }, - __callback, - ); - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_agent_message_finalize_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_agent_message_finalize_input_type.rs deleted file mode 100644 index 8385b7ed8..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_agent_message_finalize_input_type.rs +++ /dev/null @@ -1,24 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct VisualNovelAgentMessageFinalizeInput { - pub session_id: String, - pub owner_user_id: String, - pub assistant_message_id: Option, - pub assistant_reply_text: Option, - pub draft_json: Option, - pub pending_action_json: Option, - pub status: String, - pub progress_percent: u32, - pub updated_at_micros: i64, - pub error_message: Option, -} - -impl __sdk::InModule for VisualNovelAgentMessageFinalizeInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_agent_message_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_agent_message_snapshot_type.rs deleted file mode 100644 index a337915a1..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_agent_message_snapshot_type.rs +++ /dev/null @@ -1,20 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct VisualNovelAgentMessageSnapshot { - pub message_id: String, - pub session_id: String, - pub role: String, - pub kind: String, - pub text: String, - pub created_at_micros: i64, -} - -impl __sdk::InModule for VisualNovelAgentMessageSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_agent_message_submit_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_agent_message_submit_input_type.rs deleted file mode 100644 index ded701b23..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_agent_message_submit_input_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct VisualNovelAgentMessageSubmitInput { - pub session_id: String, - pub owner_user_id: String, - pub user_message_id: String, - pub user_message_text: String, - pub submitted_at_micros: i64, -} - -impl __sdk::InModule for VisualNovelAgentMessageSubmitInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_agent_session_create_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_agent_session_create_input_type.rs deleted file mode 100644 index e0e62441e..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_agent_session_create_input_type.rs +++ /dev/null @@ -1,23 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct VisualNovelAgentSessionCreateInput { - pub session_id: String, - pub owner_user_id: String, - pub source_mode: String, - pub seed_text: String, - pub source_asset_ids_json: String, - pub welcome_message_id: String, - pub welcome_message_text: String, - pub draft_json: Option, - pub created_at_micros: i64, -} - -impl __sdk::InModule for VisualNovelAgentSessionCreateInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_agent_session_get_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_agent_session_get_input_type.rs deleted file mode 100644 index c257b6fbc..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_agent_session_get_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct VisualNovelAgentSessionGetInput { - pub session_id: String, - pub owner_user_id: String, -} - -impl __sdk::InModule for VisualNovelAgentSessionGetInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_agent_session_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_agent_session_procedure_result_type.rs deleted file mode 100644 index 7ed448336..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_agent_session_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::visual_novel_agent_session_snapshot_type::VisualNovelAgentSessionSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct VisualNovelAgentSessionProcedureResult { - pub ok: bool, - pub session: Option, - pub error_message: Option, -} - -impl __sdk::InModule for VisualNovelAgentSessionProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_agent_session_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_agent_session_snapshot_type.rs deleted file mode 100644 index 623a380e3..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_agent_session_snapshot_type.rs +++ /dev/null @@ -1,32 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::visual_novel_agent_message_snapshot_type::VisualNovelAgentMessageSnapshot; -use super::visual_novel_json_value_type::VisualNovelJsonValue; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct VisualNovelAgentSessionSnapshot { - pub session_id: String, - pub owner_user_id: String, - pub source_mode: String, - pub status: String, - pub seed_text: String, - pub source_asset_ids: Vec, - pub current_turn: u32, - pub progress_percent: u32, - pub messages: Vec, - pub draft: Option, - pub pending_action: Option, - pub last_assistant_reply: Option, - pub published_profile_id: Option, - pub created_at_micros: i64, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for VisualNovelAgentSessionSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_gallery_view_row_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_gallery_view_row_type.rs deleted file mode 100644 index e0199208e..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_gallery_view_row_type.rs +++ /dev/null @@ -1,82 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct VisualNovelGalleryViewRow { - pub work_id: String, - pub profile_id: String, - pub owner_user_id: String, - pub source_session_id: Option, - pub author_display_name: String, - pub work_title: String, - pub work_description: String, - pub tags: Vec, - pub cover_image_src: Option, - pub source_asset_ids: Vec, - pub publication_status: String, - pub publish_ready: bool, - pub play_count: u32, - pub created_at_micros: i64, - pub updated_at_micros: i64, - pub published_at_micros: Option, -} - -impl __sdk::InModule for VisualNovelGalleryViewRow { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `VisualNovelGalleryViewRow`. -/// -/// Provides typed access to columns for query building. -pub struct VisualNovelGalleryViewRowCols { - pub work_id: __sdk::__query_builder::Col, - pub profile_id: __sdk::__query_builder::Col, - pub owner_user_id: __sdk::__query_builder::Col, - pub source_session_id: __sdk::__query_builder::Col>, - pub author_display_name: __sdk::__query_builder::Col, - pub work_title: __sdk::__query_builder::Col, - pub work_description: __sdk::__query_builder::Col, - pub tags: __sdk::__query_builder::Col>, - pub cover_image_src: __sdk::__query_builder::Col>, - pub source_asset_ids: __sdk::__query_builder::Col>, - pub publication_status: __sdk::__query_builder::Col, - pub publish_ready: __sdk::__query_builder::Col, - pub play_count: __sdk::__query_builder::Col, - pub created_at_micros: __sdk::__query_builder::Col, - pub updated_at_micros: __sdk::__query_builder::Col, - pub published_at_micros: __sdk::__query_builder::Col>, -} - -impl __sdk::__query_builder::HasCols for VisualNovelGalleryViewRow { - type Cols = VisualNovelGalleryViewRowCols; - fn cols(table_name: &'static str) -> Self::Cols { - VisualNovelGalleryViewRowCols { - work_id: __sdk::__query_builder::Col::new(table_name, "work_id"), - profile_id: __sdk::__query_builder::Col::new(table_name, "profile_id"), - owner_user_id: __sdk::__query_builder::Col::new(table_name, "owner_user_id"), - source_session_id: __sdk::__query_builder::Col::new(table_name, "source_session_id"), - author_display_name: __sdk::__query_builder::Col::new( - table_name, - "author_display_name", - ), - work_title: __sdk::__query_builder::Col::new(table_name, "work_title"), - work_description: __sdk::__query_builder::Col::new(table_name, "work_description"), - tags: __sdk::__query_builder::Col::new(table_name, "tags"), - cover_image_src: __sdk::__query_builder::Col::new(table_name, "cover_image_src"), - source_asset_ids: __sdk::__query_builder::Col::new(table_name, "source_asset_ids"), - publication_status: __sdk::__query_builder::Col::new(table_name, "publication_status"), - publish_ready: __sdk::__query_builder::Col::new(table_name, "publish_ready"), - play_count: __sdk::__query_builder::Col::new(table_name, "play_count"), - created_at_micros: __sdk::__query_builder::Col::new(table_name, "created_at_micros"), - updated_at_micros: __sdk::__query_builder::Col::new(table_name, "updated_at_micros"), - published_at_micros: __sdk::__query_builder::Col::new( - table_name, - "published_at_micros", - ), - } - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_gallery_view_table.rs b/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_gallery_view_table.rs deleted file mode 100644 index 1b3931275..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_gallery_view_table.rs +++ /dev/null @@ -1,117 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::visual_novel_gallery_view_row_type::VisualNovelGalleryViewRow; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `visual_novel_gallery_view`. -/// -/// Obtain a handle from the [`VisualNovelGalleryViewTableAccess::visual_novel_gallery_view`] method on [`super::RemoteTables`], -/// like `ctx.db.visual_novel_gallery_view()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.visual_novel_gallery_view().on_insert(...)`. -pub struct VisualNovelGalleryViewTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `visual_novel_gallery_view`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait VisualNovelGalleryViewTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`VisualNovelGalleryViewTableHandle`], which mediates access to the table `visual_novel_gallery_view`. - fn visual_novel_gallery_view(&self) -> VisualNovelGalleryViewTableHandle<'_>; -} - -impl VisualNovelGalleryViewTableAccess for super::RemoteTables { - fn visual_novel_gallery_view(&self) -> VisualNovelGalleryViewTableHandle<'_> { - VisualNovelGalleryViewTableHandle { - imp: self - .imp - .get_table::("visual_novel_gallery_view"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct VisualNovelGalleryViewInsertCallbackId(__sdk::CallbackId); -pub struct VisualNovelGalleryViewDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::Table for VisualNovelGalleryViewTableHandle<'ctx> { - type Row = VisualNovelGalleryViewRow; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = VisualNovelGalleryViewInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> VisualNovelGalleryViewInsertCallbackId { - VisualNovelGalleryViewInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: VisualNovelGalleryViewInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = VisualNovelGalleryViewDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> VisualNovelGalleryViewDeleteCallbackId { - VisualNovelGalleryViewDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: VisualNovelGalleryViewDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = - client_cache.get_or_make_table::("visual_novel_gallery_view"); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `VisualNovelGalleryViewRow`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait visual_novel_gallery_viewQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `VisualNovelGalleryViewRow`. - fn visual_novel_gallery_view(&self) - -> __sdk::__query_builder::Table; -} - -impl visual_novel_gallery_viewQueryTableAccess for __sdk::QueryTableAccessor { - fn visual_novel_gallery_view( - &self, - ) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("visual_novel_gallery_view") - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_history_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_history_procedure_result_type.rs deleted file mode 100644 index f0a3e7cdf..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_history_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::visual_novel_runtime_history_entry_snapshot_type::VisualNovelRuntimeHistoryEntrySnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct VisualNovelHistoryProcedureResult { - pub ok: bool, - pub items: Vec, - pub error_message: Option, -} - -impl __sdk::InModule for VisualNovelHistoryProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_json_field_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_json_field_type.rs deleted file mode 100644 index d0789512c..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_json_field_type.rs +++ /dev/null @@ -1,18 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::visual_novel_json_value_type::VisualNovelJsonValue; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct VisualNovelJsonField { - pub key: String, - pub value: VisualNovelJsonValue, -} - -impl __sdk::InModule for VisualNovelJsonField { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_json_value_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_json_value_type.rs deleted file mode 100644 index 31bb6ffb1..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_json_value_type.rs +++ /dev/null @@ -1,27 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::visual_novel_json_field_type::VisualNovelJsonField; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub enum VisualNovelJsonValue { - Null, - - Bool(bool), - - Number(f64), - - String(String), - - Array(Vec), - - Object(Vec), -} - -impl __sdk::InModule for VisualNovelJsonValue { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_run_get_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_run_get_input_type.rs deleted file mode 100644 index addd7dea5..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_run_get_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct VisualNovelRunGetInput { - pub run_id: String, - pub owner_user_id: String, -} - -impl __sdk::InModule for VisualNovelRunGetInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_run_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_run_procedure_result_type.rs deleted file mode 100644 index b9bdde614..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_run_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::visual_novel_run_snapshot_type::VisualNovelRunSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct VisualNovelRunProcedureResult { - pub ok: bool, - pub run: Option, - pub error_message: Option, -} - -impl __sdk::InModule for VisualNovelRunProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_run_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_run_snapshot_type.rs deleted file mode 100644 index a4ea47f6b..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_run_snapshot_type.rs +++ /dev/null @@ -1,32 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::visual_novel_json_value_type::VisualNovelJsonValue; -use super::visual_novel_runtime_history_entry_snapshot_type::VisualNovelRuntimeHistoryEntrySnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct VisualNovelRunSnapshot { - pub run_id: String, - pub owner_user_id: String, - pub profile_id: String, - pub mode: String, - pub status: String, - pub current_scene_id: Option, - pub current_phase_id: Option, - pub visible_character_ids: Vec, - pub flags: VisualNovelJsonValue, - pub metrics: VisualNovelJsonValue, - pub history: Vec, - pub available_choices: VisualNovelJsonValue, - pub text_mode_enabled: bool, - pub created_at_micros: i64, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for VisualNovelRunSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_run_snapshot_upsert_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_run_snapshot_upsert_input_type.rs deleted file mode 100644 index af4c72c8f..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_run_snapshot_upsert_input_type.rs +++ /dev/null @@ -1,26 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct VisualNovelRunSnapshotUpsertInput { - pub run_id: String, - pub owner_user_id: String, - pub status: String, - pub current_scene_id: Option, - pub current_phase_id: Option, - pub visible_character_ids_json: String, - pub flags_json: String, - pub metrics_json: String, - pub available_choices_json: String, - pub text_mode_enabled: bool, - pub snapshot_json: Option, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for VisualNovelRunSnapshotUpsertInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_run_start_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_run_start_input_type.rs deleted file mode 100644 index d17a2f13d..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_run_start_input_type.rs +++ /dev/null @@ -1,20 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct VisualNovelRunStartInput { - pub run_id: String, - pub owner_user_id: String, - pub profile_id: String, - pub mode: String, - pub snapshot_json: Option, - pub started_at_micros: i64, -} - -impl __sdk::InModule for VisualNovelRunStartInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_runtime_event_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_runtime_event_procedure_result_type.rs deleted file mode 100644 index ccabc4be9..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_runtime_event_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::visual_novel_runtime_event_snapshot_type::VisualNovelRuntimeEventSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct VisualNovelRuntimeEventProcedureResult { - pub ok: bool, - pub event: Option, - pub error_message: Option, -} - -impl __sdk::InModule for VisualNovelRuntimeEventProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_runtime_event_record_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_runtime_event_record_input_type.rs deleted file mode 100644 index 18807e2d3..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_runtime_event_record_input_type.rs +++ /dev/null @@ -1,23 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct VisualNovelRuntimeEventRecordInput { - pub event_id: String, - pub run_id: String, - pub owner_user_id: String, - pub profile_id: Option, - pub event_kind: String, - pub client_event_id: Option, - pub history_entry_id: Option, - pub payload_json: String, - pub occurred_at_micros: i64, -} - -impl __sdk::InModule for VisualNovelRuntimeEventRecordInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_runtime_event_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_runtime_event_snapshot_type.rs deleted file mode 100644 index 8749eb5cf..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_runtime_event_snapshot_type.rs +++ /dev/null @@ -1,25 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::visual_novel_json_value_type::VisualNovelJsonValue; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct VisualNovelRuntimeEventSnapshot { - pub event_id: String, - pub run_id: Option, - pub owner_user_id: String, - pub profile_id: Option, - pub event_kind: String, - pub client_event_id: Option, - pub history_entry_id: Option, - pub payload: VisualNovelJsonValue, - pub occurred_at_micros: i64, -} - -impl __sdk::InModule for VisualNovelRuntimeEventSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_runtime_history_append_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_runtime_history_append_input_type.rs deleted file mode 100644 index efb7033cc..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_runtime_history_append_input_type.rs +++ /dev/null @@ -1,24 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct VisualNovelRuntimeHistoryAppendInput { - pub entry_id: String, - pub run_id: String, - pub owner_user_id: String, - pub turn_index: u32, - pub source: String, - pub action_text: Option, - pub steps_json: String, - pub snapshot_before_hash: Option, - pub snapshot_after_hash: Option, - pub created_at_micros: i64, -} - -impl __sdk::InModule for VisualNovelRuntimeHistoryAppendInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_runtime_history_entry_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_runtime_history_entry_snapshot_type.rs deleted file mode 100644 index af62143ed..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_runtime_history_entry_snapshot_type.rs +++ /dev/null @@ -1,27 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::visual_novel_json_value_type::VisualNovelJsonValue; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct VisualNovelRuntimeHistoryEntrySnapshot { - pub entry_id: String, - pub run_id: String, - pub owner_user_id: String, - pub profile_id: String, - pub turn_index: u32, - pub source: String, - pub action_text: Option, - pub steps: VisualNovelJsonValue, - pub snapshot_before_hash: Option, - pub snapshot_after_hash: Option, - pub created_at_micros: i64, -} - -impl __sdk::InModule for VisualNovelRuntimeHistoryEntrySnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_runtime_history_list_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_runtime_history_list_input_type.rs deleted file mode 100644 index 6aba8b860..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_runtime_history_list_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct VisualNovelRuntimeHistoryListInput { - pub run_id: String, - pub owner_user_id: String, -} - -impl __sdk::InModule for VisualNovelRuntimeHistoryListInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_work_compile_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_work_compile_input_type.rs deleted file mode 100644 index 0e92f9e25..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_work_compile_input_type.rs +++ /dev/null @@ -1,24 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct VisualNovelWorkCompileInput { - pub session_id: String, - pub owner_user_id: String, - pub profile_id: String, - pub work_id: Option, - pub author_display_name: String, - pub work_title: Option, - pub work_description: Option, - pub tags_json: Option, - pub cover_image_src: Option, - pub compiled_at_micros: i64, -} - -impl __sdk::InModule for VisualNovelWorkCompileInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_work_delete_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_work_delete_input_type.rs deleted file mode 100644 index 792d8386e..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_work_delete_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct VisualNovelWorkDeleteInput { - pub profile_id: String, - pub owner_user_id: String, -} - -impl __sdk::InModule for VisualNovelWorkDeleteInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_work_get_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_work_get_input_type.rs deleted file mode 100644 index 40a1b54ca..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_work_get_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct VisualNovelWorkGetInput { - pub profile_id: String, - pub owner_user_id: String, -} - -impl __sdk::InModule for VisualNovelWorkGetInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_work_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_work_procedure_result_type.rs deleted file mode 100644 index 725359828..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_work_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::visual_novel_work_snapshot_type::VisualNovelWorkSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct VisualNovelWorkProcedureResult { - pub ok: bool, - pub work: Option, - pub error_message: Option, -} - -impl __sdk::InModule for VisualNovelWorkProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_work_publish_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_work_publish_input_type.rs deleted file mode 100644 index b2fb68b64..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_work_publish_input_type.rs +++ /dev/null @@ -1,17 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct VisualNovelWorkPublishInput { - pub profile_id: String, - pub owner_user_id: String, - pub published_at_micros: i64, -} - -impl __sdk::InModule for VisualNovelWorkPublishInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_work_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_work_snapshot_type.rs deleted file mode 100644 index 46b8180f6..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_work_snapshot_type.rs +++ /dev/null @@ -1,33 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::visual_novel_json_value_type::VisualNovelJsonValue; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct VisualNovelWorkSnapshot { - pub work_id: String, - pub profile_id: String, - pub owner_user_id: String, - pub source_session_id: Option, - pub author_display_name: String, - pub work_title: String, - pub work_description: String, - pub tags: Vec, - pub cover_image_src: Option, - pub source_asset_ids: Vec, - pub draft: VisualNovelJsonValue, - pub publication_status: String, - pub publish_ready: bool, - pub play_count: u32, - pub created_at_micros: i64, - pub updated_at_micros: i64, - pub published_at_micros: Option, -} - -impl __sdk::InModule for VisualNovelWorkSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_work_update_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_work_update_input_type.rs deleted file mode 100644 index b3ddc31d1..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_work_update_input_type.rs +++ /dev/null @@ -1,24 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct VisualNovelWorkUpdateInput { - pub profile_id: String, - pub owner_user_id: String, - pub work_title: String, - pub work_description: String, - pub tags_json: String, - pub cover_image_src: Option, - pub source_asset_ids_json: String, - pub draft_json: String, - pub publish_ready: bool, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for VisualNovelWorkUpdateInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_works_list_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_works_list_input_type.rs deleted file mode 100644 index fabed4c96..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_works_list_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct VisualNovelWorksListInput { - pub owner_user_id: String, - pub published_only: bool, -} - -impl __sdk::InModule for VisualNovelWorksListInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_works_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_works_procedure_result_type.rs deleted file mode 100644 index d6c89c1cd..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/visual_novel_works_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::visual_novel_work_snapshot_type::VisualNovelWorkSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct VisualNovelWorksProcedureResult { - pub ok: bool, - pub items: Vec, - pub error_message: Option, -} - -impl __sdk::InModule for VisualNovelWorksProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_agent_session_create_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_agent_session_create_input_type.rs deleted file mode 100644 index 1ad698a2a..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_agent_session_create_input_type.rs +++ /dev/null @@ -1,22 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct WoodenFishAgentSessionCreateInput { - pub session_id: String, - pub owner_user_id: String, - pub work_title: String, - pub work_description: String, - pub theme_tags_json: Option, - pub config_json: Option, - pub draft_json: Option, - pub created_at_micros: i64, -} - -impl __sdk::InModule for WoodenFishAgentSessionCreateInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_agent_session_get_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_agent_session_get_input_type.rs deleted file mode 100644 index 62f4469b8..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_agent_session_get_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct WoodenFishAgentSessionGetInput { - pub session_id: String, - pub owner_user_id: String, -} - -impl __sdk::InModule for WoodenFishAgentSessionGetInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_agent_session_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_agent_session_procedure_result_type.rs deleted file mode 100644 index e89fc3a61..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_agent_session_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::wooden_fish_agent_session_snapshot_type::WoodenFishAgentSessionSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct WoodenFishAgentSessionProcedureResult { - pub ok: bool, - pub session: Option, - pub error_message: Option, -} - -impl __sdk::InModule for WoodenFishAgentSessionProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_agent_session_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_agent_session_snapshot_type.rs deleted file mode 100644 index f45264839..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_agent_session_snapshot_type.rs +++ /dev/null @@ -1,27 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::wooden_fish_creator_config_snapshot_type::WoodenFishCreatorConfigSnapshot; -use super::wooden_fish_draft_snapshot_type::WoodenFishDraftSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct WoodenFishAgentSessionSnapshot { - pub session_id: String, - pub owner_user_id: String, - pub current_turn: u32, - pub progress_percent: u32, - pub stage: String, - pub config: WoodenFishCreatorConfigSnapshot, - pub draft: Option, - pub published_profile_id: Option, - pub created_at_micros: i64, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for WoodenFishAgentSessionSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_audio_asset_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_audio_asset_snapshot_type.rs deleted file mode 100644 index 9fb39b2df..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_audio_asset_snapshot_type.rs +++ /dev/null @@ -1,21 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct WoodenFishAudioAssetSnapshot { - pub asset_id: String, - pub audio_src: String, - pub audio_object_key: String, - pub asset_object_id: String, - pub source: String, - pub prompt: Option, - pub duration_ms: Option, -} - -impl __sdk::InModule for WoodenFishAudioAssetSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_creator_config_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_creator_config_snapshot_type.rs deleted file mode 100644 index e54b4b3a2..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_creator_config_snapshot_type.rs +++ /dev/null @@ -1,21 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct WoodenFishCreatorConfigSnapshot { - pub work_title: String, - pub work_description: String, - pub theme_tags: Vec, - pub hit_object_prompt: String, - pub hit_object_reference_image_src: Option, - pub hit_sound_prompt: Option, - pub floating_words: Vec, -} - -impl __sdk::InModule for WoodenFishCreatorConfigSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_draft_compile_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_draft_compile_input_type.rs deleted file mode 100644 index 2e1060b4f..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_draft_compile_input_type.rs +++ /dev/null @@ -1,32 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct WoodenFishDraftCompileInput { - pub session_id: String, - pub owner_user_id: String, - pub profile_id: String, - pub author_display_name: String, - pub work_title: String, - pub work_description: String, - pub theme_tags_json: Option, - pub hit_object_prompt: String, - pub hit_object_reference_image_src: Option, - pub hit_sound_prompt: Option, - pub hit_object_asset_json: Option, - pub background_asset_json: Option, - pub hit_sound_asset_json: Option, - pub back_button_asset_json: Option, - pub floating_words_json: Option, - pub cover_image_src: Option, - pub generation_status: Option, - pub compiled_at_micros: i64, -} - -impl __sdk::InModule for WoodenFishDraftCompileInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_draft_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_draft_snapshot_type.rs deleted file mode 100644 index e2beff33d..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_draft_snapshot_type.rs +++ /dev/null @@ -1,33 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::wooden_fish_audio_asset_snapshot_type::WoodenFishAudioAssetSnapshot; -use super::wooden_fish_image_asset_snapshot_type::WoodenFishImageAssetSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct WoodenFishDraftSnapshot { - pub template_id: String, - pub template_name: String, - pub profile_id: Option, - pub work_title: String, - pub work_description: String, - pub theme_tags: Vec, - pub hit_object_prompt: String, - pub hit_object_reference_image_src: Option, - pub hit_sound_prompt: Option, - pub floating_words: Vec, - pub hit_object_asset: Option, - pub background_asset: Option, - pub back_button_asset: Option, - pub hit_sound_asset: Option, - pub cover_image_src: Option, - pub generation_status: String, -} - -impl __sdk::InModule for WoodenFishDraftSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_gallery_card_view_row_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_gallery_card_view_row_type.rs deleted file mode 100644 index a11abdbb5..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_gallery_card_view_row_type.rs +++ /dev/null @@ -1,76 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct WoodenFishGalleryCardViewRow { - pub public_work_code: String, - pub work_id: String, - pub profile_id: String, - pub owner_user_id: String, - pub author_display_name: String, - pub work_title: String, - pub work_description: String, - pub cover_image_src: String, - pub theme_tags: Vec, - pub publication_status: String, - pub play_count: u32, - pub updated_at_micros: i64, - pub published_at_micros: Option, - pub generation_status: String, -} - -impl __sdk::InModule for WoodenFishGalleryCardViewRow { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `WoodenFishGalleryCardViewRow`. -/// -/// Provides typed access to columns for query building. -pub struct WoodenFishGalleryCardViewRowCols { - pub public_work_code: __sdk::__query_builder::Col, - pub work_id: __sdk::__query_builder::Col, - pub profile_id: __sdk::__query_builder::Col, - pub owner_user_id: __sdk::__query_builder::Col, - pub author_display_name: __sdk::__query_builder::Col, - pub work_title: __sdk::__query_builder::Col, - pub work_description: __sdk::__query_builder::Col, - pub cover_image_src: __sdk::__query_builder::Col, - pub theme_tags: __sdk::__query_builder::Col>, - pub publication_status: __sdk::__query_builder::Col, - pub play_count: __sdk::__query_builder::Col, - pub updated_at_micros: __sdk::__query_builder::Col, - pub published_at_micros: __sdk::__query_builder::Col>, - pub generation_status: __sdk::__query_builder::Col, -} - -impl __sdk::__query_builder::HasCols for WoodenFishGalleryCardViewRow { - type Cols = WoodenFishGalleryCardViewRowCols; - fn cols(table_name: &'static str) -> Self::Cols { - WoodenFishGalleryCardViewRowCols { - public_work_code: __sdk::__query_builder::Col::new(table_name, "public_work_code"), - work_id: __sdk::__query_builder::Col::new(table_name, "work_id"), - profile_id: __sdk::__query_builder::Col::new(table_name, "profile_id"), - owner_user_id: __sdk::__query_builder::Col::new(table_name, "owner_user_id"), - author_display_name: __sdk::__query_builder::Col::new( - table_name, - "author_display_name", - ), - work_title: __sdk::__query_builder::Col::new(table_name, "work_title"), - work_description: __sdk::__query_builder::Col::new(table_name, "work_description"), - cover_image_src: __sdk::__query_builder::Col::new(table_name, "cover_image_src"), - theme_tags: __sdk::__query_builder::Col::new(table_name, "theme_tags"), - publication_status: __sdk::__query_builder::Col::new(table_name, "publication_status"), - play_count: __sdk::__query_builder::Col::new(table_name, "play_count"), - updated_at_micros: __sdk::__query_builder::Col::new(table_name, "updated_at_micros"), - published_at_micros: __sdk::__query_builder::Col::new( - table_name, - "published_at_micros", - ), - generation_status: __sdk::__query_builder::Col::new(table_name, "generation_status"), - } - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_gallery_card_view_table.rs b/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_gallery_card_view_table.rs deleted file mode 100644 index d64eab808..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_gallery_card_view_table.rs +++ /dev/null @@ -1,121 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::wooden_fish_gallery_card_view_row_type::WoodenFishGalleryCardViewRow; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `wooden_fish_gallery_card_view`. -/// -/// Obtain a handle from the [`WoodenFishGalleryCardViewTableAccess::wooden_fish_gallery_card_view`] method on [`super::RemoteTables`], -/// like `ctx.db.wooden_fish_gallery_card_view()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.wooden_fish_gallery_card_view().on_insert(...)`. -pub struct WoodenFishGalleryCardViewTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `wooden_fish_gallery_card_view`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait WoodenFishGalleryCardViewTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`WoodenFishGalleryCardViewTableHandle`], which mediates access to the table `wooden_fish_gallery_card_view`. - fn wooden_fish_gallery_card_view(&self) -> WoodenFishGalleryCardViewTableHandle<'_>; -} - -impl WoodenFishGalleryCardViewTableAccess for super::RemoteTables { - fn wooden_fish_gallery_card_view(&self) -> WoodenFishGalleryCardViewTableHandle<'_> { - WoodenFishGalleryCardViewTableHandle { - imp: self - .imp - .get_table::("wooden_fish_gallery_card_view"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct WoodenFishGalleryCardViewInsertCallbackId(__sdk::CallbackId); -pub struct WoodenFishGalleryCardViewDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::Table for WoodenFishGalleryCardViewTableHandle<'ctx> { - type Row = WoodenFishGalleryCardViewRow; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = WoodenFishGalleryCardViewInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> WoodenFishGalleryCardViewInsertCallbackId { - WoodenFishGalleryCardViewInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: WoodenFishGalleryCardViewInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = WoodenFishGalleryCardViewDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> WoodenFishGalleryCardViewDeleteCallbackId { - WoodenFishGalleryCardViewDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: WoodenFishGalleryCardViewDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache - .get_or_make_table::("wooden_fish_gallery_card_view"); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse( - "TableUpdate", - "TableUpdate", - ) - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `WoodenFishGalleryCardViewRow`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait wooden_fish_gallery_card_viewQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `WoodenFishGalleryCardViewRow`. - fn wooden_fish_gallery_card_view( - &self, - ) -> __sdk::__query_builder::Table; -} - -impl wooden_fish_gallery_card_viewQueryTableAccess for __sdk::QueryTableAccessor { - fn wooden_fish_gallery_card_view( - &self, - ) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("wooden_fish_gallery_card_view") - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_gallery_view_row_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_gallery_view_row_type.rs deleted file mode 100644 index 1139a878d..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_gallery_view_row_type.rs +++ /dev/null @@ -1,117 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::wooden_fish_audio_asset_snapshot_type::WoodenFishAudioAssetSnapshot; -use super::wooden_fish_image_asset_snapshot_type::WoodenFishImageAssetSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct WoodenFishGalleryViewRow { - pub public_work_code: String, - pub work_id: String, - pub profile_id: String, - pub owner_user_id: String, - pub source_session_id: String, - pub author_display_name: String, - pub work_title: String, - pub work_description: String, - pub theme_tags: Vec, - pub hit_object_prompt: String, - pub hit_object_reference_image_src: Option, - pub hit_sound_prompt: Option, - pub hit_object_asset: Option, - pub background_asset: Option, - pub back_button_asset: Option, - pub hit_sound_asset: Option, - pub floating_words: Vec, - pub cover_image_src: String, - pub publication_status: String, - pub publish_ready: bool, - pub play_count: u32, - pub generation_status: String, - pub updated_at_micros: i64, - pub published_at_micros: Option, -} - -impl __sdk::InModule for WoodenFishGalleryViewRow { - type Module = super::RemoteModule; -} - -/// Column accessor struct for the table `WoodenFishGalleryViewRow`. -/// -/// Provides typed access to columns for query building. -pub struct WoodenFishGalleryViewRowCols { - pub public_work_code: __sdk::__query_builder::Col, - pub work_id: __sdk::__query_builder::Col, - pub profile_id: __sdk::__query_builder::Col, - pub owner_user_id: __sdk::__query_builder::Col, - pub source_session_id: __sdk::__query_builder::Col, - pub author_display_name: __sdk::__query_builder::Col, - pub work_title: __sdk::__query_builder::Col, - pub work_description: __sdk::__query_builder::Col, - pub theme_tags: __sdk::__query_builder::Col>, - pub hit_object_prompt: __sdk::__query_builder::Col, - pub hit_object_reference_image_src: - __sdk::__query_builder::Col>, - pub hit_sound_prompt: __sdk::__query_builder::Col>, - pub hit_object_asset: - __sdk::__query_builder::Col>, - pub background_asset: - __sdk::__query_builder::Col>, - pub back_button_asset: - __sdk::__query_builder::Col>, - pub hit_sound_asset: - __sdk::__query_builder::Col>, - pub floating_words: __sdk::__query_builder::Col>, - pub cover_image_src: __sdk::__query_builder::Col, - pub publication_status: __sdk::__query_builder::Col, - pub publish_ready: __sdk::__query_builder::Col, - pub play_count: __sdk::__query_builder::Col, - pub generation_status: __sdk::__query_builder::Col, - pub updated_at_micros: __sdk::__query_builder::Col, - pub published_at_micros: __sdk::__query_builder::Col>, -} - -impl __sdk::__query_builder::HasCols for WoodenFishGalleryViewRow { - type Cols = WoodenFishGalleryViewRowCols; - fn cols(table_name: &'static str) -> Self::Cols { - WoodenFishGalleryViewRowCols { - public_work_code: __sdk::__query_builder::Col::new(table_name, "public_work_code"), - work_id: __sdk::__query_builder::Col::new(table_name, "work_id"), - profile_id: __sdk::__query_builder::Col::new(table_name, "profile_id"), - owner_user_id: __sdk::__query_builder::Col::new(table_name, "owner_user_id"), - source_session_id: __sdk::__query_builder::Col::new(table_name, "source_session_id"), - author_display_name: __sdk::__query_builder::Col::new( - table_name, - "author_display_name", - ), - work_title: __sdk::__query_builder::Col::new(table_name, "work_title"), - work_description: __sdk::__query_builder::Col::new(table_name, "work_description"), - theme_tags: __sdk::__query_builder::Col::new(table_name, "theme_tags"), - hit_object_prompt: __sdk::__query_builder::Col::new(table_name, "hit_object_prompt"), - hit_object_reference_image_src: __sdk::__query_builder::Col::new( - table_name, - "hit_object_reference_image_src", - ), - hit_sound_prompt: __sdk::__query_builder::Col::new(table_name, "hit_sound_prompt"), - hit_object_asset: __sdk::__query_builder::Col::new(table_name, "hit_object_asset"), - background_asset: __sdk::__query_builder::Col::new(table_name, "background_asset"), - back_button_asset: __sdk::__query_builder::Col::new(table_name, "back_button_asset"), - hit_sound_asset: __sdk::__query_builder::Col::new(table_name, "hit_sound_asset"), - floating_words: __sdk::__query_builder::Col::new(table_name, "floating_words"), - cover_image_src: __sdk::__query_builder::Col::new(table_name, "cover_image_src"), - publication_status: __sdk::__query_builder::Col::new(table_name, "publication_status"), - publish_ready: __sdk::__query_builder::Col::new(table_name, "publish_ready"), - play_count: __sdk::__query_builder::Col::new(table_name, "play_count"), - generation_status: __sdk::__query_builder::Col::new(table_name, "generation_status"), - updated_at_micros: __sdk::__query_builder::Col::new(table_name, "updated_at_micros"), - published_at_micros: __sdk::__query_builder::Col::new( - table_name, - "published_at_micros", - ), - } - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_gallery_view_table.rs b/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_gallery_view_table.rs deleted file mode 100644 index e4a916297..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_gallery_view_table.rs +++ /dev/null @@ -1,116 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::wooden_fish_audio_asset_snapshot_type::WoodenFishAudioAssetSnapshot; -use super::wooden_fish_gallery_view_row_type::WoodenFishGalleryViewRow; -use super::wooden_fish_image_asset_snapshot_type::WoodenFishImageAssetSnapshot; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `wooden_fish_gallery_view`. -/// -/// Obtain a handle from the [`WoodenFishGalleryViewTableAccess::wooden_fish_gallery_view`] method on [`super::RemoteTables`], -/// like `ctx.db.wooden_fish_gallery_view()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.wooden_fish_gallery_view().on_insert(...)`. -pub struct WoodenFishGalleryViewTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `wooden_fish_gallery_view`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait WoodenFishGalleryViewTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`WoodenFishGalleryViewTableHandle`], which mediates access to the table `wooden_fish_gallery_view`. - fn wooden_fish_gallery_view(&self) -> WoodenFishGalleryViewTableHandle<'_>; -} - -impl WoodenFishGalleryViewTableAccess for super::RemoteTables { - fn wooden_fish_gallery_view(&self) -> WoodenFishGalleryViewTableHandle<'_> { - WoodenFishGalleryViewTableHandle { - imp: self - .imp - .get_table::("wooden_fish_gallery_view"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct WoodenFishGalleryViewInsertCallbackId(__sdk::CallbackId); -pub struct WoodenFishGalleryViewDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::Table for WoodenFishGalleryViewTableHandle<'ctx> { - type Row = WoodenFishGalleryViewRow; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = WoodenFishGalleryViewInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> WoodenFishGalleryViewInsertCallbackId { - WoodenFishGalleryViewInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: WoodenFishGalleryViewInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = WoodenFishGalleryViewDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> WoodenFishGalleryViewDeleteCallbackId { - WoodenFishGalleryViewDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: WoodenFishGalleryViewDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = - client_cache.get_or_make_table::("wooden_fish_gallery_view"); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `WoodenFishGalleryViewRow`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait wooden_fish_gallery_viewQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `WoodenFishGalleryViewRow`. - fn wooden_fish_gallery_view(&self) -> __sdk::__query_builder::Table; -} - -impl wooden_fish_gallery_viewQueryTableAccess for __sdk::QueryTableAccessor { - fn wooden_fish_gallery_view(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("wooden_fish_gallery_view") - } -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_image_asset_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_image_asset_snapshot_type.rs deleted file mode 100644 index 52f28559d..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_image_asset_snapshot_type.rs +++ /dev/null @@ -1,22 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct WoodenFishImageAssetSnapshot { - pub asset_id: String, - pub image_src: String, - pub image_object_key: String, - pub asset_object_id: String, - pub generation_provider: String, - pub prompt: String, - pub width: u32, - pub height: u32, -} - -impl __sdk::InModule for WoodenFishImageAssetSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_run_checkpoint_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_run_checkpoint_input_type.rs deleted file mode 100644 index 0a3f0a16e..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_run_checkpoint_input_type.rs +++ /dev/null @@ -1,20 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct WoodenFishRunCheckpointInput { - pub run_id: String, - pub owner_user_id: String, - pub total_tap_count: u32, - pub word_counters_json: String, - pub client_event_id: String, - pub checkpoint_at_ms: i64, -} - -impl __sdk::InModule for WoodenFishRunCheckpointInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_run_finish_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_run_finish_input_type.rs deleted file mode 100644 index a968b5ce8..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_run_finish_input_type.rs +++ /dev/null @@ -1,20 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct WoodenFishRunFinishInput { - pub run_id: String, - pub owner_user_id: String, - pub total_tap_count: u32, - pub word_counters_json: String, - pub client_event_id: String, - pub finished_at_ms: i64, -} - -impl __sdk::InModule for WoodenFishRunFinishInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_run_get_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_run_get_input_type.rs deleted file mode 100644 index 0b20556e2..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_run_get_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct WoodenFishRunGetInput { - pub run_id: String, - pub owner_user_id: String, -} - -impl __sdk::InModule for WoodenFishRunGetInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_run_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_run_procedure_result_type.rs deleted file mode 100644 index 21212b17c..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_run_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::wooden_fish_run_snapshot_type::WoodenFishRunSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct WoodenFishRunProcedureResult { - pub ok: bool, - pub run: Option, - pub error_message: Option, -} - -impl __sdk::InModule for WoodenFishRunProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_run_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_run_snapshot_type.rs deleted file mode 100644 index dfd085aca..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_run_snapshot_type.rs +++ /dev/null @@ -1,26 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::wooden_fish_run_status_type::WoodenFishRunStatus; -use super::wooden_fish_word_counter_type::WoodenFishWordCounter; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct WoodenFishRunSnapshot { - pub run_id: String, - pub profile_id: String, - pub owner_user_id: String, - pub status: WoodenFishRunStatus, - pub total_tap_count: u32, - pub word_counters: Vec, - pub started_at_ms: u64, - pub updated_at_ms: u64, - pub finished_at_ms: Option, -} - -impl __sdk::InModule for WoodenFishRunSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_run_start_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_run_start_input_type.rs deleted file mode 100644 index c9f553214..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_run_start_input_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct WoodenFishRunStartInput { - pub run_id: String, - pub owner_user_id: String, - pub profile_id: String, - pub client_event_id: String, - pub started_at_ms: i64, -} - -impl __sdk::InModule for WoodenFishRunStartInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_run_status_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_run_status_type.rs deleted file mode 100644 index 1b48ba397..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_run_status_type.rs +++ /dev/null @@ -1,18 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -#[derive(Copy, Eq, Hash)] -pub enum WoodenFishRunStatus { - Playing, - - Finished, -} - -impl __sdk::InModule for WoodenFishRunStatus { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_word_counter_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_word_counter_type.rs deleted file mode 100644 index 217899f10..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_word_counter_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct WoodenFishWordCounter { - pub text: String, - pub count: u32, -} - -impl __sdk::InModule for WoodenFishWordCounter { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_work_delete_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_work_delete_input_type.rs deleted file mode 100644 index 7aebaec66..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_work_delete_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct WoodenFishWorkDeleteInput { - pub profile_id: String, - pub owner_user_id: String, -} - -impl __sdk::InModule for WoodenFishWorkDeleteInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_work_get_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_work_get_input_type.rs deleted file mode 100644 index 9867cb792..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_work_get_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct WoodenFishWorkGetInput { - pub profile_id: String, - pub owner_user_id: String, -} - -impl __sdk::InModule for WoodenFishWorkGetInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_work_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_work_procedure_result_type.rs deleted file mode 100644 index bebf287c7..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_work_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::wooden_fish_work_snapshot_type::WoodenFishWorkSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct WoodenFishWorkProcedureResult { - pub ok: bool, - pub work: Option, - pub error_message: Option, -} - -impl __sdk::InModule for WoodenFishWorkProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_work_publish_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_work_publish_input_type.rs deleted file mode 100644 index f9920f384..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_work_publish_input_type.rs +++ /dev/null @@ -1,17 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct WoodenFishWorkPublishInput { - pub profile_id: String, - pub owner_user_id: String, - pub published_at_micros: i64, -} - -impl __sdk::InModule for WoodenFishWorkPublishInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_work_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_work_snapshot_type.rs deleted file mode 100644 index 3a15b12bd..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_work_snapshot_type.rs +++ /dev/null @@ -1,40 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::wooden_fish_audio_asset_snapshot_type::WoodenFishAudioAssetSnapshot; -use super::wooden_fish_image_asset_snapshot_type::WoodenFishImageAssetSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct WoodenFishWorkSnapshot { - pub work_id: String, - pub profile_id: String, - pub owner_user_id: String, - pub source_session_id: String, - pub author_display_name: String, - pub work_title: String, - pub work_description: String, - pub theme_tags: Vec, - pub hit_object_prompt: String, - pub hit_object_reference_image_src: Option, - pub hit_sound_prompt: Option, - pub hit_object_asset: Option, - pub background_asset: Option, - pub back_button_asset: Option, - pub hit_sound_asset: Option, - pub floating_words: Vec, - pub cover_image_src: String, - pub publication_status: String, - pub publish_ready: bool, - pub play_count: u32, - pub generation_status: String, - pub updated_at_micros: i64, - pub published_at_micros: Option, -} - -impl __sdk::InModule for WoodenFishWorkSnapshot { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_work_update_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_work_update_input_type.rs deleted file mode 100644 index ac4f2977b..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_work_update_input_type.rs +++ /dev/null @@ -1,30 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct WoodenFishWorkUpdateInput { - pub profile_id: String, - pub owner_user_id: String, - pub work_title: String, - pub work_description: String, - pub theme_tags_json: String, - pub hit_object_prompt: Option, - pub hit_object_reference_image_src: Option, - pub hit_sound_prompt: Option, - pub hit_object_asset_json: Option, - pub background_asset_json: Option, - pub hit_sound_asset_json: Option, - pub back_button_asset_json: Option, - pub floating_words_json: Option, - pub cover_image_src: Option, - pub generation_status: Option, - pub updated_at_micros: i64, -} - -impl __sdk::InModule for WoodenFishWorkUpdateInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_works_list_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_works_list_input_type.rs deleted file mode 100644 index 0571854ee..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_works_list_input_type.rs +++ /dev/null @@ -1,16 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct WoodenFishWorksListInput { - pub owner_user_id: String, - pub published_only: bool, -} - -impl __sdk::InModule for WoodenFishWorksListInput { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_works_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_works_procedure_result_type.rs deleted file mode 100644 index bb2a84988..000000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/wooden_fish_works_procedure_result_type.rs +++ /dev/null @@ -1,19 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::wooden_fish_work_snapshot_type::WoodenFishWorkSnapshot; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub struct WoodenFishWorksProcedureResult { - pub ok: bool, - pub items: Vec, - pub error_message: Option, -} - -impl __sdk::InModule for WoodenFishWorksProcedureResult { - type Module = super::RemoteModule; -} diff --git a/server-rs/crates/spacetime-module/src/active.rs b/server-rs/crates/spacetime-module/src/active.rs index 49b825fe1..b05114f2f 100644 --- a/server-rs/crates/spacetime-module/src/active.rs +++ b/server-rs/crates/spacetime-module/src/active.rs @@ -32,7 +32,6 @@ mod jump_hop; #[path = "legacy_schema/match3d.rs"] mod match3d; mod migration; -mod public_asset_access; #[path = "legacy_schema/puzzle.rs"] mod puzzle; #[path = "legacy_schema/puzzle_clear.rs"] @@ -61,7 +60,6 @@ pub use gameplay::*; pub use jump_hop::*; pub use match3d::*; pub use migration::*; -pub use public_asset_access::*; pub use puzzle_clear::*; pub use runtime::*; pub use square_hole::*; diff --git a/server-rs/crates/spacetime-module/src/asset_metadata/objects.rs b/server-rs/crates/spacetime-module/src/asset_metadata/objects.rs index e4fae51d8..7c27ade6a 100644 --- a/server-rs/crates/spacetime-module/src/asset_metadata/objects.rs +++ b/server-rs/crates/spacetime-module/src/asset_metadata/objects.rs @@ -135,11 +135,10 @@ pub fn get_asset_read_access_by_location_and_return( )?; let record = find_asset_object_by_location(tx, &input)?; let public_work_granted = record.as_ref().is_some_and(|asset_object| { - crate::public_asset_access::asset_object_has_public_work_read_grant(tx, asset_object) - || crate::editor_project_storage::asset_object_has_public_showcase_read_grant( - tx, - asset_object, - ) + crate::editor_project_storage::asset_object_has_public_showcase_read_grant( + tx, + asset_object, + ) }); Ok((record, public_work_granted)) }) { diff --git a/server-rs/crates/spacetime-module/src/external_generation.rs b/server-rs/crates/spacetime-module/src/external_generation.rs index 3fadd9c7a..7349c3754 100644 --- a/server-rs/crates/spacetime-module/src/external_generation.rs +++ b/server-rs/crates/spacetime-module/src/external_generation.rs @@ -781,14 +781,14 @@ fn claim_external_generation_jobs_tx( .external_generation_job() .by_external_generation_job_status_available() .filter(&EXTERNAL_GENERATION_STATUS_PENDING.to_string()) - .filter(|row| is_external_generation_job_claimable(row, claim_time)), + .filter(|row| is_external_generation_job_worker_claimable(row, claim_time)), ); candidates.extend( ctx.db .external_generation_job() .by_external_generation_job_status_available() .filter(&EXTERNAL_GENERATION_STATUS_RUNNING.to_string()) - .filter(|row| is_external_generation_job_claimable(row, claim_time)), + .filter(|row| is_external_generation_job_worker_claimable(row, claim_time)), ); candidates.sort_by(|left, right| { @@ -2366,6 +2366,14 @@ fn is_external_generation_editor_source(source_module: &str) -> bool { source_module.trim() == EXTERNAL_GENERATION_EDITOR_SOURCE_MODULE } +fn is_external_generation_job_worker_claimable( + row: &ExternalGenerationJob, + now: Timestamp, +) -> bool { + is_external_generation_editor_source(&row.source_module) + && is_external_generation_job_claimable(row, now) +} + fn validate_external_generation_payload_json(field: &str, value: &str) -> Result { let normalized = value.trim(); if normalized.is_empty() { @@ -2670,6 +2678,23 @@ mod tests { assert!(is_external_generation_job_claimable(&row, micros(1_000))); } + #[test] + fn worker_claims_only_editor_jobs_and_leaves_legacy_rows_untouched() { + let mut row = external_generation_job_fixture(EXTERNAL_GENERATION_STATUS_PENDING); + row.available_at = micros(1_000); + + assert!(!is_external_generation_job_worker_claimable( + &row, + micros(1_000) + )); + + row.source_module = EXTERNAL_GENERATION_EDITOR_SOURCE_MODULE.to_string(); + assert!(is_external_generation_job_worker_claimable( + &row, + micros(1_000) + )); + } + #[test] fn running_job_is_claimable_only_after_lease_expires() { let mut row = external_generation_job_fixture(EXTERNAL_GENERATION_STATUS_RUNNING); diff --git a/server-rs/crates/spacetime-module/src/runtime.rs b/server-rs/crates/spacetime-module/src/runtime.rs index 7044963be..16b1f7186 100644 --- a/server-rs/crates/spacetime-module/src/runtime.rs +++ b/server-rs/crates/spacetime-module/src/runtime.rs @@ -6,8 +6,10 @@ pub mod creation_entry_config; pub mod feature_gate_config; #[path = "runtime/active/profile.rs"] mod profile; -#[path = "runtime/legacy_schema/settings.rs"] +#[path = "runtime/active/settings.rs"] mod settings; +#[path = "runtime/legacy_schema/settings.rs"] +mod settings_schema; #[path = "runtime/legacy_schema/snapshots.rs"] mod snapshots; @@ -17,4 +19,5 @@ pub use creation_entry_config::*; pub use feature_gate_config::*; pub use profile::*; pub use settings::*; +pub use settings_schema::*; pub use snapshots::*; diff --git a/server-rs/crates/spacetime-module/src/runtime/active/settings.rs b/server-rs/crates/spacetime-module/src/runtime/active/settings.rs new file mode 100644 index 000000000..7fce73ccf --- /dev/null +++ b/server-rs/crates/spacetime-module/src/runtime/active/settings.rs @@ -0,0 +1,129 @@ +use crate::*; + +#[spacetimedb::procedure] +pub fn get_runtime_setting_or_default( + ctx: &mut ProcedureContext, + input: RuntimeSettingGetInput, +) -> RuntimeSettingProcedureResult { + match ctx.try_with_tx(|tx| get_runtime_setting_snapshot(tx, input.clone())) { + Ok(record) => RuntimeSettingProcedureResult { + ok: true, + record: Some(record), + error_message: None, + }, + Err(message) => RuntimeSettingProcedureResult { + ok: false, + record: None, + error_message: Some(message), + }, + } +} + +#[spacetimedb::procedure] +pub fn upsert_runtime_setting_and_return( + ctx: &mut ProcedureContext, + input: RuntimeSettingUpsertInput, +) -> RuntimeSettingProcedureResult { + match ctx.try_with_tx(|tx| upsert_runtime_setting(tx, input.clone())) { + Ok(record) => RuntimeSettingProcedureResult { + ok: true, + record: Some(record), + error_message: None, + }, + Err(message) => RuntimeSettingProcedureResult { + ok: false, + record: None, + error_message: Some(message), + }, + } +} + +fn get_runtime_setting_snapshot( + ctx: &ReducerContext, + input: RuntimeSettingGetInput, +) -> Result { + let validated_input = + build_runtime_setting_get_input(input.user_id).map_err(|error| error.to_string())?; + + if let Some(existing) = ctx + .db + .runtime_setting() + .user_id() + .find(&validated_input.user_id) + { + return Ok(RuntimeSettingSnapshot { + user_id: existing.user_id, + music_volume: existing.music_volume, + platform_theme: existing.platform_theme, + created_at_micros: existing.created_at.to_micros_since_unix_epoch(), + updated_at_micros: existing.updated_at.to_micros_since_unix_epoch(), + }); + } + + Ok(RuntimeSettingSnapshot { + user_id: validated_input.user_id, + music_volume: DEFAULT_MUSIC_VOLUME, + platform_theme: DEFAULT_PLATFORM_THEME, + created_at_micros: 0, + updated_at_micros: 0, + }) +} + +fn upsert_runtime_setting( + ctx: &ReducerContext, + input: RuntimeSettingUpsertInput, +) -> Result { + let validated_input = build_runtime_setting_upsert_input( + input.user_id, + input.music_volume, + input.platform_theme, + input.updated_at_micros, + ) + .map_err(|error| error.to_string())?; + let updated_at = Timestamp::from_micros_since_unix_epoch(validated_input.updated_at_micros); + + let snapshot = match ctx + .db + .runtime_setting() + .user_id() + .find(&validated_input.user_id) + { + Some(existing) => { + ctx.db.runtime_setting().user_id().delete(&existing.user_id); + ctx.db.runtime_setting().insert(RuntimeSetting { + user_id: existing.user_id.clone(), + music_volume: validated_input.music_volume, + platform_theme: validated_input.platform_theme, + created_at: existing.created_at, + updated_at, + }); + + RuntimeSettingSnapshot { + user_id: existing.user_id, + music_volume: validated_input.music_volume, + platform_theme: validated_input.platform_theme, + created_at_micros: existing.created_at.to_micros_since_unix_epoch(), + updated_at_micros: validated_input.updated_at_micros, + } + } + None => { + ctx.db.runtime_setting().insert(RuntimeSetting { + user_id: validated_input.user_id.clone(), + music_volume: validated_input.music_volume, + platform_theme: validated_input.platform_theme, + created_at: updated_at, + updated_at, + }); + + RuntimeSettingSnapshot { + user_id: validated_input.user_id, + music_volume: validated_input.music_volume, + platform_theme: validated_input.platform_theme, + created_at_micros: validated_input.updated_at_micros, + updated_at_micros: validated_input.updated_at_micros, + } + } + }; + + Ok(snapshot) +} diff --git a/src/components/auth/BindPhoneScreen.test.tsx b/src/components/auth/BindPhoneScreen.test.tsx index c5989c9d9..15a7b159a 100644 --- a/src/components/auth/BindPhoneScreen.test.tsx +++ b/src/components/auth/BindPhoneScreen.test.tsx @@ -44,12 +44,12 @@ test('绑定手机号表单展示当前身份并提交手机号验证码', async expect(screen.getByText('手机号')).toBeTruthy(); expect(screen.getByText('当前登录身份:微信旅人')).toBeTruthy(); + expect(screen.getByText('AI 美术创作平台')).toBeTruthy(); + expect(screen.queryByText('视觉叙事 RPG')).toBeNull(); await user.type(phoneInput, '13800000000'); await user.type(codeInput, '123456'); - await user.click( - screen.getByRole('button', { name: '绑定手机号并进入游戏' }), - ); + await user.click(screen.getByRole('button', { name: '绑定手机号并继续' })); expect(onSubmit).toHaveBeenCalledWith('13800000000', '123456'); }); diff --git a/src/components/auth/BindPhoneScreen.tsx b/src/components/auth/BindPhoneScreen.tsx index b5a0e7449..149d13fbf 100644 --- a/src/components/auth/BindPhoneScreen.tsx +++ b/src/components/auth/BindPhoneScreen.tsx @@ -1,9 +1,12 @@ import { useEffect, useState } from 'react'; import type { PlatformTheme } from '../../../packages/shared/src/contracts/runtime'; -import type { AuthCaptchaChallenge, AuthUser } from '../../services/authService'; -import { BRAND_ASSETS } from '../../uiAssets'; +import type { + AuthCaptchaChallenge, + AuthUser, +} from '../../services/authService'; import { PlatformActionButton } from '../common/PlatformActionButton'; +import { PLATFORM_BRAND_ASSETS } from '../common/platformBrandAssets'; import { PlatformFieldLabel } from '../common/PlatformFieldLabel'; import { PlatformStatusMessage } from '../common/PlatformStatusMessage'; import { PlatformSubpanel } from '../common/PlatformSubpanel'; @@ -63,14 +66,16 @@ export function BindPhoneScreen({ }, [cooldownSeconds]); return ( -
+
陶泥儿
-
视觉叙事 RPG
+
+ AI 美术创作平台 +

账号激活 @@ -87,7 +94,7 @@ export function BindPhoneScreen({ 绑定手机号

- 微信身份已建立,还差最后一步。绑定手机号后,你的账号才会正式激活,并同步到后端存档体系。 + 微信身份已建立,还差最后一步。绑定手机号后,你的账号才会正式激活,并同步账号资料。

- {binding ? '正在绑定...' : '绑定手机号并进入游戏'} + {binding ? '正在绑定...' : '绑定手机号并继续'}