From f8ea3b704f7af18b697a212a4b00df5b8193c719 Mon Sep 17 00:00:00 2001 From: kdletters Date: Sun, 26 Apr 2026 20:41:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=90=86spacetimedb=E7=BB=91=E5=AE=9A?= =?UTF-8?q?=E7=94=9F=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ERNAL_GENERATION_RUNTIME_FIX_2026-04-23.md | 2 +- ...T_OBJECT_CONFIRM_CALL_DESIGN_2026-04-21.md | 2 +- ...E_STORY_SPACETIMEDB_BASELINE_2026-04-21.md | 4 +- ...NTIME_MINIMAL_IMPLEMENTATION_2026-04-22.md | 2 +- ...ND_REMOTE_DEPLOYMENT_SCRIPTS_2026-04-22.md | 20 +- ...AND_AGENT_LLM_FAILURE_POLICY_2026-04-23.md | 2 +- ..._AGENT_SESSION_STAGE6_DESIGN_2026-04-22.md | 9 +- package.json | 1 + scripts/dev-rust-stack.sh | 10 +- scripts/generate-spacetime-bindings.mjs | 207 + server-rs/crates/spacetime-client/README.md | 10 +- .../module_bindings/accept_quest_reducer.rs | 22 +- .../acknowledge_quest_completion_reducer.rs | 22 +- .../advance_puzzle_next_level_procedure.rs | 39 +- .../ai_result_reference_input_type.rs | 11 +- .../ai_result_reference_kind_type.rs | 11 +- .../ai_result_reference_snapshot_type.rs | 11 +- .../ai_result_reference_type.rs | 26 +- .../ai_stage_completion_input_type.rs | 15 +- .../ai_task_cancel_input_type.rs | 10 +- .../ai_task_create_input_type.rs | 15 +- .../ai_task_failure_input_type.rs | 10 +- .../ai_task_finish_input_type.rs | 10 +- .../src/module_bindings/ai_task_kind_type.rs | 11 +- .../ai_task_procedure_result_type.rs | 15 +- .../module_bindings/ai_task_snapshot_type.rs | 33 +- .../ai_task_stage_blueprint_type.rs | 9 +- .../ai_task_stage_kind_type.rs | 11 +- .../ai_task_stage_snapshot_type.rs | 19 +- .../ai_task_stage_start_input_type.rs | 9 +- .../ai_task_stage_status_type.rs | 11 +- .../src/module_bindings/ai_task_stage_type.rs | 37 +- .../ai_task_start_input_type.rs | 10 +- .../module_bindings/ai_task_status_type.rs | 11 +- .../src/module_bindings/ai_task_type.rs | 50 +- .../ai_text_chunk_append_input_type.rs | 9 +- .../ai_text_chunk_snapshot_type.rs | 9 +- .../src/module_bindings/ai_text_chunk_type.rs | 12 +- ...pend_ai_text_chunk_and_return_procedure.rs | 41 +- ...ssion_ledger_entry_and_return_procedure.rs | 42 +- ...hapter_progression_ledger_entry_reducer.rs | 27 +- .../apply_inventory_mutation_reducer.rs | 22 +- .../apply_quest_signal_reducer.rs | 22 +- .../asset_entity_binding_input_type.rs | 14 +- ...et_entity_binding_procedure_result_type.rs | 13 +- .../asset_entity_binding_snapshot_type.rs | 14 +- .../asset_entity_binding_type.rs | 21 +- .../asset_object_access_policy_type.rs | 11 +- .../asset_object_procedure_result_type.rs | 13 +- .../src/module_bindings/asset_object_type.rs | 36 +- .../asset_object_upsert_input_type.rs | 21 +- .../asset_object_upsert_snapshot_type.rs | 21 +- ...i_result_reference_and_return_procedure.rs | 41 +- .../src/module_bindings/auth_identity_type.rs | 29 +- ...e_snapshot_import_procedure_result_type.rs | 13 +- .../auth_store_snapshot_import_record_type.rs | 10 +- ...th_store_snapshot_procedure_result_type.rs | 13 +- .../auth_store_snapshot_record_type.rs | 14 +- .../auth_store_snapshot_type.rs | 13 +- .../auth_store_snapshot_upsert_input_type.rs | 10 +- .../src/module_bindings/battle_mode_type.rs | 11 +- .../battle_state_input_type.rs | 13 +- .../battle_state_procedure_result_type.rs | 13 +- .../battle_state_query_input_type.rs | 10 +- .../battle_state_snapshot_type.rs | 21 +- .../src/module_bindings/battle_state_type.rs | 44 +- .../src/module_bindings/battle_status_type.rs | 11 +- ...egin_story_session_and_return_procedure.rs | 39 +- .../begin_story_session_reducer.rs | 22 +- .../big_fish_agent_message_kind_type.rs | 11 +- .../big_fish_agent_message_role_type.rs | 11 +- .../big_fish_agent_message_snapshot_type.rs | 11 +- .../big_fish_agent_message_type.rs | 14 +- .../big_fish_anchor_item_type.rs | 9 +- .../big_fish_anchor_pack_type.rs | 9 +- .../big_fish_anchor_status_type.rs | 11 +- .../big_fish_asset_coverage_type.rs | 12 +- .../big_fish_asset_generate_input_type.rs | 15 +- .../big_fish_asset_kind_type.rs | 11 +- .../big_fish_asset_slot_snapshot_type.rs | 15 +- .../big_fish_asset_slot_type.rs | 24 +- .../big_fish_asset_status_type.rs | 11 +- .../big_fish_background_blueprint_type.rs | 10 +- .../big_fish_creation_session_type.rs | 30 +- .../big_fish_creation_stage_type.rs | 11 +- .../big_fish_draft_compile_input_type.rs | 10 +- .../big_fish_game_draft_type.rs | 13 +- .../big_fish_level_blueprint_type.rs | 16 +- .../big_fish_message_finalize_input_type.rs | 15 +- .../big_fish_message_submit_input_type.rs | 10 +- .../big_fish_publish_input_type.rs | 10 +- .../big_fish_run_get_input_type.rs | 10 +- .../big_fish_run_input_submit_input_type.rs | 10 +- .../big_fish_run_procedure_result_type.rs | 13 +- .../big_fish_run_start_input_type.rs | 10 +- .../big_fish_run_status_type.rs | 11 +- .../big_fish_runtime_entity_type.rs | 9 +- .../big_fish_runtime_params_type.rs | 14 +- .../big_fish_runtime_run_type.rs | 12 +- .../big_fish_runtime_snapshot_type.rs | 17 +- .../big_fish_session_create_input_type.rs | 10 +- .../big_fish_session_get_input_type.rs | 10 +- .../big_fish_session_procedure_result_type.rs | 13 +- .../big_fish_session_snapshot_type.rs | 27 +- .../module_bindings/big_fish_vector_2_type.rs | 10 +- .../big_fish_work_delete_input_type.rs | 10 +- .../big_fish_works_list_input_type.rs | 10 +- .../big_fish_works_procedure_result_type.rs | 14 +- ...t_object_to_entity_and_return_procedure.rs | 39 +- .../bind_asset_object_to_entity_reducer.rs | 22 +- .../cancel_ai_task_and_return_procedure.rs | 41 +- .../module_bindings/chapter_pace_band_type.rs | 11 +- .../chapter_progression_get_input_type.rs | 10 +- .../chapter_progression_input_type.rs | 9 +- .../chapter_progression_ledger_input_type.rs | 12 +- ...apter_progression_procedure_result_type.rs | 13 +- .../chapter_progression_snapshot_type.rs | 11 +- .../chapter_progression_type.rs | 46 +- ...orm_browse_history_and_return_procedure.rs | 39 +- .../module_bindings/combat_outcome_type.rs | 11 +- .../compile_big_fish_draft_procedure.rs | 39 +- ...ustom_world_published_profile_procedure.rs | 42 +- .../compile_puzzle_agent_draft_procedure.rs | 41 +- .../complete_ai_stage_and_return_procedure.rs | 41 +- .../complete_ai_task_and_return_procedure.rs | 41 +- ...nfirm_asset_object_and_return_procedure.rs | 41 +- .../confirm_asset_object_reducer.rs | 22 +- .../consume_inventory_item_input_type.rs | 10 +- .../continue_story_and_return_procedure.rs | 41 +- .../module_bindings/continue_story_reducer.rs | 22 +- .../create_ai_task_and_return_procedure.rs | 41 +- .../module_bindings/create_ai_task_reducer.rs | 22 +- ...reate_battle_state_and_return_procedure.rs | 39 +- .../create_battle_state_reducer.rs | 22 +- .../create_big_fish_session_procedure.rs | 41 +- ...te_custom_world_agent_session_procedure.rs | 39 +- ...ile_recharge_order_and_return_procedure.rs | 44 +- .../create_puzzle_agent_session_procedure.rs | 41 +- ...m_world_agent_action_execute_input_type.rs | 12 +- ..._world_agent_action_execute_result_type.rs | 13 +- ..._world_agent_card_detail_get_input_type.rs | 10 +- ...world_agent_message_finalize_input_type.rs | 25 +- ...ustom_world_agent_message_snapshot_type.rs | 13 +- ...m_world_agent_message_submit_input_type.rs | 10 +- .../custom_world_agent_message_type.rs | 23 +- ...om_world_agent_operation_get_input_type.rs | 10 +- ...d_agent_operation_procedure_result_type.rs | 13 +- ...rld_agent_operation_progress_input_type.rs | 13 +- ...tom_world_agent_operation_snapshot_type.rs | 13 +- .../custom_world_agent_operation_type.rs | 21 +- ...m_world_agent_session_create_input_type.rs | 18 +- ...stom_world_agent_session_get_input_type.rs | 10 +- ...rld_agent_session_procedure_result_type.rs | 13 +- ...ustom_world_agent_session_snapshot_type.rs | 35 +- .../custom_world_agent_session_type.rs | 94 +- ...tom_world_draft_card_detail_result_type.rs | 13 +- ...draft_card_detail_section_snapshot_type.rs | 10 +- ...m_world_draft_card_detail_snapshot_type.rs | 19 +- .../custom_world_draft_card_snapshot_type.rs | 17 +- .../custom_world_draft_card_type.rs | 32 +- ...world_gallery_detail_by_code_input_type.rs | 10 +- .../custom_world_gallery_detail_input_type.rs | 10 +- ...ustom_world_gallery_entry_snapshot_type.rs | 11 +- .../custom_world_gallery_entry_table.rs | 113 +- .../custom_world_gallery_entry_type.rs | 26 +- .../custom_world_gallery_list_result_type.rs | 13 +- .../custom_world_generation_mode_type.rs | 11 +- .../custom_world_library_detail_input_type.rs | 10 +- ...stom_world_library_mutation_result_type.rs | 17 +- .../custom_world_profile_delete_input_type.rs | 10 +- .../custom_world_profile_list_input_type.rs | 10 +- .../custom_world_profile_list_result_type.rs | 13 +- ...custom_world_profile_publish_input_type.rs | 12 +- .../custom_world_profile_snapshot_type.rs | 23 +- .../custom_world_profile_type.rs | 69 +- ...stom_world_profile_unpublish_input_type.rs | 10 +- .../custom_world_profile_upsert_input_type.rs | 17 +- .../custom_world_publication_status_type.rs | 11 +- .../custom_world_publish_world_input_type.rs | 14 +- .../custom_world_publish_world_result_type.rs | 23 +- ...ld_published_profile_compile_input_type.rs | 12 +- ...d_published_profile_compile_result_type.rs | 13 +- ...published_profile_compile_snapshot_type.rs | 11 +- .../custom_world_role_asset_status_type.rs | 11 +- .../custom_world_session_status_type.rs | 11 +- .../custom_world_session_type.rs | 39 +- .../custom_world_theme_mode_type.rs | 11 +- ...custom_world_work_summary_snapshot_type.rs | 29 +- .../custom_world_works_list_input_type.rs | 10 +- .../custom_world_works_list_result_type.rs | 13 +- .../delete_big_fish_work_procedure.rs | 39 +- ...te_custom_world_agent_session_procedure.rs | 39 +- ...stom_world_profile_and_return_procedure.rs | 39 +- .../delete_puzzle_work_procedure.rs | 39 +- ...e_runtime_snapshot_and_return_procedure.rs | 39 +- .../drag_puzzle_piece_or_group_procedure.rs | 41 +- .../equip_inventory_item_input_type.rs | 10 +- ...ute_custom_world_agent_action_procedure.rs | 39 +- ...th_store_snapshot_from_tables_procedure.rs | 43 +- .../fail_ai_task_and_return_procedure.rs | 41 +- ...e_big_fish_agent_message_turn_procedure.rs | 41 +- ...stom_world_agent_message_turn_procedure.rs | 42 +- ...ize_puzzle_agent_message_turn_procedure.rs | 41 +- .../generate_big_fish_asset_procedure.rs | 41 +- .../get_auth_store_snapshot_procedure.rs | 43 +- .../get_battle_state_procedure.rs | 39 +- .../get_big_fish_run_procedure.rs | 39 +- .../get_big_fish_session_procedure.rs | 41 +- .../get_chapter_progression_procedure.rs | 41 +- ...ustom_world_agent_card_detail_procedure.rs | 39 +- ..._custom_world_agent_operation_procedure.rs | 41 +- ...et_custom_world_agent_session_procedure.rs | 41 +- ..._world_gallery_detail_by_code_procedure.rs | 41 +- ...t_custom_world_gallery_detail_procedure.rs | 39 +- ...t_custom_world_library_detail_procedure.rs | 41 +- ...player_progression_or_default_procedure.rs | 39 +- .../get_profile_dashboard_procedure.rs | 39 +- .../get_profile_play_stats_procedure.rs | 39 +- .../get_profile_recharge_center_procedure.rs | 41 +- ...rofile_referral_invite_center_procedure.rs | 39 +- .../get_puzzle_agent_session_procedure.rs | 41 +- .../get_puzzle_gallery_detail_procedure.rs | 39 +- .../get_puzzle_run_procedure.rs | 41 +- .../get_puzzle_work_detail_procedure.rs | 39 +- .../get_runtime_inventory_state_procedure.rs | 41 +- ...et_runtime_setting_or_default_procedure.rs | 39 +- .../get_runtime_snapshot_procedure.rs | 41 +- .../get_story_session_state_procedure.rs | 39 +- .../grant_inventory_item_input_type.rs | 9 +- ...ression_experience_and_return_procedure.rs | 41 +- ...t_player_progression_experience_reducer.rs | 25 +- .../import_auth_store_snapshot_procedure.rs | 43 +- .../inventory_container_kind_type.rs | 11 +- .../inventory_equipment_slot_type.rs | 11 +- .../inventory_item_rarity_type.rs | 11 +- .../inventory_item_snapshot_type.rs | 19 +- .../inventory_item_source_kind_type.rs | 11 +- .../inventory_mutation_input_type.rs | 11 +- .../inventory_mutation_type.rs | 13 +- .../inventory_slot_snapshot_type.rs | 25 +- .../module_bindings/inventory_slot_type.rs | 49 +- .../list_big_fish_works_procedure.rs | 41 +- ..._custom_world_gallery_entries_procedure.rs | 43 +- .../list_custom_world_profiles_procedure.rs | 41 +- .../list_custom_world_works_procedure.rs | 41 +- .../list_platform_browse_history_procedure.rs | 41 +- .../list_profile_save_archives_procedure.rs | 39 +- .../list_profile_wallet_ledger_procedure.rs | 39 +- .../list_puzzle_gallery_procedure.rs | 43 +- .../list_puzzle_works_procedure.rs | 41 +- .../src/module_bindings/mod.rs | 1286 ++---- ...attle_interaction_procedure_result_type.rs | 13 +- .../npc_battle_interaction_result_type.rs | 9 +- .../npc_interaction_battle_mode_type.rs | 11 +- .../npc_interaction_procedure_result_type.rs | 13 +- .../npc_interaction_result_type.rs | 17 +- .../npc_interaction_status_type.rs | 11 +- .../npc_relation_stance_type.rs | 11 +- .../npc_relation_state_type.rs | 9 +- .../npc_social_action_kind_type.rs | 11 +- .../npc_stance_profile_type.rs | 16 +- .../npc_state_procedure_result_type.rs | 13 +- .../npc_state_snapshot_type.rs | 17 +- .../src/module_bindings/npc_state_type.rs | 53 +- .../npc_state_upsert_input_type.rs | 19 +- .../player_progression_get_input_type.rs | 10 +- .../player_progression_grant_input_type.rs | 9 +- .../player_progression_grant_source_type.rs | 11 +- ...layer_progression_procedure_result_type.rs | 13 +- .../player_progression_snapshot_type.rs | 11 +- .../player_progression_type.rs | 22 +- .../profile_dashboard_state_type.rs | 13 +- .../profile_invite_code_table.rs | 194 - .../profile_invite_code_type.rs | 13 +- .../profile_membership_table.rs | 165 - .../profile_membership_type.rs | 12 +- .../profile_played_world_type.rs | 30 +- .../profile_recharge_order_table.rs | 165 - .../profile_recharge_order_type.rs | 27 +- .../profile_referral_relation_table.rs | 163 - .../profile_referral_relation_type.rs | 23 +- .../profile_save_archive_type.rs | 33 +- .../profile_wallet_ledger_type.rs | 15 +- .../publish_big_fish_game_procedure.rs | 41 +- ...stom_world_profile_and_return_procedure.rs | 39 +- .../publish_custom_world_profile_reducer.rs | 25 +- .../publish_custom_world_world_procedure.rs | 39 +- .../publish_puzzle_work_procedure.rs | 41 +- ...uzzle_agent_message_finalize_input_type.rs | 15 +- .../puzzle_agent_message_kind_type.rs | 11 +- .../puzzle_agent_message_role_type.rs | 11 +- .../puzzle_agent_message_row_type.rs | 14 +- .../puzzle_agent_message_submit_input_type.rs | 10 +- .../puzzle_agent_session_create_input_type.rs | 10 +- .../puzzle_agent_session_get_input_type.rs | 10 +- ...zle_agent_session_procedure_result_type.rs | 14 +- .../puzzle_agent_session_row_type.rs | 34 +- .../puzzle_agent_stage_type.rs | 11 +- .../puzzle_draft_compile_input_type.rs | 10 +- ...puzzle_generated_images_save_input_type.rs | 10 +- .../puzzle_publication_status_type.rs | 11 +- .../puzzle_publish_input_type.rs | 16 +- .../puzzle_run_drag_input_type.rs | 10 +- .../puzzle_run_get_input_type.rs | 10 +- .../puzzle_run_next_level_input_type.rs | 10 +- .../puzzle_run_procedure_result_type.rs | 14 +- .../puzzle_run_start_input_type.rs | 10 +- .../puzzle_run_swap_input_type.rs | 10 +- .../puzzle_runtime_run_row_type.rs | 33 +- .../puzzle_select_cover_image_input_type.rs | 10 +- .../puzzle_work_delete_input_type.rs | 10 +- .../puzzle_work_get_input_type.rs | 10 +- .../puzzle_work_procedure_result_type.rs | 14 +- .../puzzle_work_profile_row_type.rs | 44 +- .../puzzle_work_upsert_input_type.rs | 16 +- .../puzzle_works_list_input_type.rs | 10 +- .../puzzle_works_procedure_result_type.rs | 14 +- .../quest_completion_ack_input_type.rs | 10 +- .../quest_hostile_npc_defeated_signal_type.rs | 12 +- .../quest_item_delivered_signal_type.rs | 10 +- .../quest_log_event_kind_type.rs | 11 +- .../src/module_bindings/quest_log_type.rs | 37 +- .../quest_narrative_binding_snapshot_type.rs | 11 +- .../quest_narrative_origin_type.rs | 11 +- .../quest_narrative_type_type.rs | 11 +- .../quest_npc_spar_completed_signal_type.rs | 10 +- .../quest_npc_talk_completed_signal_type.rs | 10 +- .../quest_objective_kind_type.rs | 11 +- .../quest_objective_snapshot_type.rs | 17 +- .../quest_progress_signal_type.rs | 15 +- .../quest_record_input_type.rs | 37 +- .../src/module_bindings/quest_record_type.rs | 94 +- .../quest_reward_equipment_slot_type.rs | 11 +- .../quest_reward_intel_type.rs | 12 +- .../quest_reward_item_rarity_type.rs | 11 +- .../module_bindings/quest_reward_item_type.rs | 17 +- .../quest_reward_snapshot_type.rs | 19 +- .../quest_scene_reached_signal_type.rs | 10 +- .../quest_signal_apply_input_type.rs | 9 +- .../module_bindings/quest_signal_kind_type.rs | 11 +- .../src/module_bindings/quest_status_type.rs | 11 +- .../quest_step_snapshot_type.rs | 17 +- .../quest_treasure_inspected_signal_type.rs | 12 +- .../quest_turn_in_input_type.rs | 10 +- ..._profile_referral_invite_code_procedure.rs | 39 +- .../module_bindings/refresh_session_type.rs | 22 +- ...olve_combat_action_and_return_procedure.rs | 39 +- .../resolve_combat_action_input_type.rs | 10 +- ...lve_combat_action_procedure_result_type.rs | 13 +- .../resolve_combat_action_reducer.rs | 22 +- .../resolve_combat_action_result_type.rs | 11 +- ...battle_interaction_and_return_procedure.rs | 41 +- ...solve_npc_battle_interaction_input_type.rs | 15 +- ...ve_npc_interaction_and_return_procedure.rs | 41 +- .../resolve_npc_interaction_input_type.rs | 12 +- .../resolve_npc_interaction_reducer.rs | 22 +- ..._npc_social_action_and_return_procedure.rs | 41 +- .../resolve_npc_social_action_input_type.rs | 13 +- .../resolve_npc_social_action_reducer.rs | 22 +- ...easure_interaction_and_return_procedure.rs | 41 +- .../resolve_treasure_interaction_reducer.rs | 22 +- ...ofile_save_archive_and_return_procedure.rs | 39 +- .../rpg_agent_draft_card_kind_type.rs | 11 +- .../rpg_agent_draft_card_status_type.rs | 11 +- .../rpg_agent_message_kind_type.rs | 11 +- .../rpg_agent_message_role_type.rs | 11 +- .../rpg_agent_operation_status_type.rs | 11 +- .../rpg_agent_operation_type_type.rs | 11 +- .../module_bindings/rpg_agent_stage_type.rs | 11 +- ...runtime_browse_history_clear_input_type.rs | 10 +- .../runtime_browse_history_list_input_type.rs | 10 +- ...me_browse_history_procedure_result_type.rs | 13 +- .../runtime_browse_history_snapshot_type.rs | 11 +- .../runtime_browse_history_sync_input_type.rs | 11 +- .../runtime_browse_history_theme_mode_type.rs | 11 +- ...runtime_browse_history_write_input_type.rs | 22 +- ...e_inventory_state_procedure_result_type.rs | 13 +- ...untime_inventory_state_query_input_type.rs | 10 +- .../runtime_inventory_state_snapshot_type.rs | 13 +- .../runtime_item_equipment_slot_type.rs | 11 +- .../runtime_item_reward_item_rarity_type.rs | 11 +- .../runtime_item_reward_item_snapshot_type.rs | 17 +- .../runtime_platform_theme_type.rs | 11 +- ...untime_profile_dashboard_get_input_type.rs | 10 +- ...profile_dashboard_procedure_result_type.rs | 13 +- ...runtime_profile_dashboard_snapshot_type.rs | 12 +- ...rofile_membership_benefit_snapshot_type.rs | 10 +- ...untime_profile_membership_snapshot_type.rs | 15 +- .../runtime_profile_membership_status_type.rs | 11 +- .../runtime_profile_membership_tier_type.rs | 11 +- ...ntime_profile_play_stats_get_input_type.rs | 10 +- ...rofile_play_stats_procedure_result_type.rs | 13 +- ...untime_profile_play_stats_snapshot_type.rs | 13 +- ...time_profile_played_world_snapshot_type.rs | 16 +- ..._profile_recharge_center_get_input_type.rs | 10 +- ...e_recharge_center_procedure_result_type.rs | 15 +- ...e_profile_recharge_center_snapshot_type.rs | 21 +- ...rofile_recharge_order_create_input_type.rs | 10 +- ...me_profile_recharge_order_snapshot_type.rs | 13 +- ...time_profile_recharge_order_status_type.rs | 11 +- ...time_profile_recharge_product_kind_type.rs | 11 +- ..._profile_recharge_product_snapshot_type.rs | 9 +- ...me_profile_save_archive_list_input_type.rs | 10 +- ...file_save_archive_procedure_result_type.rs | 19 +- ..._profile_save_archive_resume_input_type.rs | 10 +- ...time_profile_save_archive_snapshot_type.rs | 20 +- ...ofile_wallet_ledger_entry_snapshot_type.rs | 9 +- ...e_profile_wallet_ledger_list_input_type.rs | 10 +- ...ile_wallet_ledger_procedure_result_type.rs | 13 +- ..._profile_wallet_ledger_source_type_type.rs | 11 +- ...e_referral_invite_center_get_input_type.rs | 10 +- ...ral_invite_center_procedure_result_type.rs | 13 +- ...me_referral_invite_center_snapshot_type.rs | 14 +- .../runtime_referral_redeem_input_type.rs | 10 +- ...e_referral_redeem_procedure_result_type.rs | 13 +- .../runtime_referral_redeem_snapshot_type.rs | 9 +- .../runtime_setting_get_input_type.rs | 10 +- .../runtime_setting_procedure_result_type.rs | 13 +- .../runtime_setting_snapshot_type.rs | 9 +- .../module_bindings/runtime_setting_type.rs | 12 +- .../runtime_setting_upsert_input_type.rs | 9 +- .../runtime_snapshot_delete_input_type.rs | 10 +- .../runtime_snapshot_get_input_type.rs | 10 +- .../runtime_snapshot_procedure_result_type.rs | 13 +- .../runtime_snapshot_row_type.rs | 17 +- .../module_bindings/runtime_snapshot_type.rs | 12 +- .../runtime_snapshot_upsert_input_type.rs | 12 +- .../save_puzzle_generated_images_procedure.rs | 39 +- .../select_puzzle_cover_image_procedure.rs | 39 +- .../module_bindings/start_ai_task_reducer.rs | 22 +- .../start_ai_task_stage_reducer.rs | 22 +- .../start_big_fish_run_procedure.rs | 39 +- .../start_puzzle_run_procedure.rs | 39 +- .../story_continue_input_type.rs | 12 +- .../module_bindings/story_event_kind_type.rs | 11 +- .../story_event_snapshot_type.rs | 11 +- .../src/module_bindings/story_event_type.rs | 16 +- .../story_session_input_type.rs | 12 +- .../story_session_procedure_result_type.rs | 17 +- .../story_session_snapshot_type.rs | 13 +- .../story_session_state_input_type.rs | 10 +- ...ory_session_state_procedure_result_type.rs | 17 +- .../story_session_status_type.rs | 11 +- .../src/module_bindings/story_session_type.rs | 35 +- .../submit_big_fish_input_procedure.rs | 41 +- .../submit_big_fish_message_procedure.rs | 41 +- ...it_custom_world_agent_message_procedure.rs | 41 +- .../submit_puzzle_agent_message_procedure.rs | 41 +- .../swap_puzzle_pieces_procedure.rs | 39 +- .../treasure_interaction_action_type.rs | 11 +- .../treasure_record_procedure_result_type.rs | 13 +- .../treasure_record_snapshot_type.rs | 17 +- .../module_bindings/treasure_record_type.rs | 39 +- .../treasure_resolve_input_type.rs | 17 +- .../module_bindings/turn_in_quest_reducer.rs | 22 +- .../unequip_inventory_item_input_type.rs | 10 +- ...stom_world_profile_and_return_procedure.rs | 39 +- .../unpublish_custom_world_profile_reducer.rs | 25 +- .../update_puzzle_work_procedure.rs | 39 +- .../upsert_auth_store_snapshot_procedure.rs | 39 +- ...hapter_progression_and_return_procedure.rs | 41 +- .../upsert_chapter_progression_reducer.rs | 22 +- ...orld_agent_operation_progress_procedure.rs | 42 +- ...stom_world_profile_and_return_procedure.rs | 39 +- .../upsert_custom_world_profile_reducer.rs | 25 +- .../upsert_npc_state_and_return_procedure.rs | 39 +- .../upsert_npc_state_reducer.rs | 22 +- ...orm_browse_history_and_return_procedure.rs | 39 +- ...rt_runtime_setting_and_return_procedure.rs | 39 +- ...t_runtime_snapshot_and_return_procedure.rs | 39 +- .../src/module_bindings/user_account_type.rs | 31 +- .../user_browse_history_type.rs | 21 +- spacetime.json | 12 +- .../generated/accept_quest_reducer.ts | 21 - .../acknowledge_quest_completion_reducer.ts | 21 - .../advance_puzzle_next_level_procedure.ts | 23 - .../generated/ai_result_reference_table.ts | 27 - .../generated/ai_task_stage_table.ts | 35 - src/spacetime/generated/ai_task_table.ts | 39 - .../generated/ai_text_chunk_table.ts | 27 - ...pend_ai_text_chunk_and_return_procedure.ts | 23 - ...ssion_ledger_entry_and_return_procedure.ts | 23 - ...hapter_progression_ledger_entry_reducer.ts | 21 - .../apply_inventory_mutation_reducer.ts | 21 - .../generated/apply_quest_signal_reducer.ts | 21 - .../generated/asset_entity_binding_table.ts | 24 - src/spacetime/generated/asset_object_table.ts | 35 - ...i_result_reference_and_return_procedure.ts | 23 - .../generated/auth_identity_table.ts | 22 - .../generated/auth_store_snapshot_table.ts | 17 - src/spacetime/generated/battle_state_table.ts | 56 - ...egin_story_session_and_return_procedure.ts | 23 - .../generated/begin_story_session_reducer.ts | 21 - .../generated/big_fish_agent_message_table.ts | 29 - .../generated/big_fish_asset_slot_table.ts | 32 - .../big_fish_creation_session_table.ts | 33 - .../generated/big_fish_runtime_run_table.ts | 30 - ...t_object_to_entity_and_return_procedure.ts | 23 - .../bind_asset_object_to_entity_reducer.ts | 21 - .../cancel_ai_task_and_return_procedure.ts | 23 - .../generated/chapter_progression_table.ts | 41 - ...orm_browse_history_and_return_procedure.ts | 23 - .../compile_big_fish_draft_procedure.ts | 23 - ...ustom_world_published_profile_procedure.ts | 23 - .../compile_puzzle_agent_draft_procedure.ts | 23 - .../complete_ai_stage_and_return_procedure.ts | 23 - .../complete_ai_task_and_return_procedure.ts | 23 - ...nfirm_asset_object_and_return_procedure.ts | 23 - .../generated/confirm_asset_object_reducer.ts | 21 - .../continue_story_and_return_procedure.ts | 23 - .../generated/continue_story_reducer.ts | 21 - .../create_ai_task_and_return_procedure.ts | 23 - .../generated/create_ai_task_reducer.ts | 21 - ...reate_battle_state_and_return_procedure.ts | 23 - .../generated/create_battle_state_reducer.ts | 21 - .../create_big_fish_session_procedure.ts | 23 - ...te_custom_world_agent_session_procedure.ts | 23 - ...ile_recharge_order_and_return_procedure.ts | 23 - .../create_puzzle_agent_session_procedure.ts | 23 - .../custom_world_agent_message_table.ts | 30 - .../custom_world_agent_operation_table.ts | 33 - .../custom_world_agent_session_table.ts | 44 - .../custom_world_draft_card_table.ts | 40 - .../custom_world_gallery_entry_table.ts | 34 - .../generated/custom_world_profile_table.ts | 42 - .../generated/custom_world_session_table.ts | 34 - .../delete_big_fish_work_procedure.ts | 23 - ...te_custom_world_agent_session_procedure.ts | 23 - ...stom_world_profile_and_return_procedure.ts | 23 - .../generated/delete_puzzle_work_procedure.ts | 23 - ...e_runtime_snapshot_and_return_procedure.ts | 23 - .../drag_puzzle_piece_or_group_procedure.ts | 23 - ...ute_custom_world_agent_action_procedure.ts | 23 - ...th_store_snapshot_from_tables_procedure.ts | 19 - .../fail_ai_task_and_return_procedure.ts | 23 - ...e_big_fish_agent_message_turn_procedure.ts | 23 - ...stom_world_agent_message_turn_procedure.ts | 23 - ...ize_puzzle_agent_message_turn_procedure.ts | 23 - .../generate_big_fish_asset_procedure.ts | 23 - .../get_auth_store_snapshot_procedure.ts | 19 - .../generated/get_battle_state_procedure.ts | 23 - .../generated/get_big_fish_run_procedure.ts | 23 - .../get_big_fish_session_procedure.ts | 23 - .../get_chapter_progression_procedure.ts | 23 - ...ustom_world_agent_card_detail_procedure.ts | 23 - ..._custom_world_agent_operation_procedure.ts | 23 - ...et_custom_world_agent_session_procedure.ts | 23 - ..._world_gallery_detail_by_code_procedure.ts | 23 - ...t_custom_world_gallery_detail_procedure.ts | 23 - ...t_custom_world_library_detail_procedure.ts | 23 - ...player_progression_or_default_procedure.ts | 23 - .../get_profile_dashboard_procedure.ts | 23 - .../get_profile_play_stats_procedure.ts | 23 - .../get_profile_recharge_center_procedure.ts | 23 - ...rofile_referral_invite_center_procedure.ts | 23 - .../get_puzzle_agent_session_procedure.ts | 23 - .../get_puzzle_gallery_detail_procedure.ts | 23 - .../generated/get_puzzle_run_procedure.ts | 23 - .../get_puzzle_work_detail_procedure.ts | 23 - .../get_runtime_inventory_state_procedure.ts | 23 - ...et_runtime_setting_or_default_procedure.ts | 23 - .../get_runtime_snapshot_procedure.ts | 23 - .../get_story_session_state_procedure.ts | 23 - ...ression_experience_and_return_procedure.ts | 23 - ...t_player_progression_experience_reducer.ts | 21 - .../import_auth_store_snapshot_procedure.ts | 19 - src/spacetime/generated/index.ts | 1166 ----- .../generated/inventory_slot_table.ts | 49 - .../list_big_fish_works_procedure.ts | 23 - ..._custom_world_gallery_entries_procedure.ts | 19 - .../list_custom_world_profiles_procedure.ts | 23 - .../list_custom_world_works_procedure.ts | 23 - .../list_platform_browse_history_procedure.ts | 23 - .../list_profile_save_archives_procedure.ts | 23 - .../list_profile_wallet_ledger_procedure.ts | 23 - .../list_puzzle_gallery_procedure.ts | 19 - .../generated/list_puzzle_works_procedure.ts | 23 - src/spacetime/generated/npc_state_table.ts | 41 - .../generated/player_progression_table.ts | 29 - .../profile_dashboard_state_table.ts | 19 - .../generated/profile_invite_code_table.ts | 18 - .../generated/profile_membership_table.ts | 29 - .../generated/profile_played_world_table.ts | 25 - .../generated/profile_recharge_order_table.ts | 35 - .../profile_referral_relation_table.ts | 20 - .../generated/profile_save_archive_table.ts | 30 - .../generated/profile_wallet_ledger_table.ts | 26 - .../publish_big_fish_game_procedure.ts | 23 - ...stom_world_profile_and_return_procedure.ts | 23 - .../publish_custom_world_profile_reducer.ts | 21 - .../publish_custom_world_world_procedure.ts | 23 - .../publish_puzzle_work_procedure.ts | 23 - .../generated/puzzle_agent_message_table.ts | 29 - .../generated/puzzle_agent_session_table.ts | 32 - .../generated/puzzle_runtime_run_table.ts | 26 - .../generated/puzzle_work_profile_table.ts | 37 - src/spacetime/generated/quest_log_table.ts | 40 - src/spacetime/generated/quest_record_table.ts | 64 - ..._profile_referral_invite_code_procedure.ts | 23 - .../generated/refresh_session_table.ts | 24 - ...olve_combat_action_and_return_procedure.ts | 23 - .../resolve_combat_action_reducer.ts | 21 - ...battle_interaction_and_return_procedure.ts | 23 - ...ve_npc_interaction_and_return_procedure.ts | 23 - .../resolve_npc_interaction_reducer.ts | 21 - ..._npc_social_action_and_return_procedure.ts | 23 - .../resolve_npc_social_action_reducer.ts | 21 - ...easure_interaction_and_return_procedure.ts | 23 - .../resolve_treasure_interaction_reducer.ts | 21 - ...ofile_save_archive_and_return_procedure.ts | 23 - .../generated/runtime_setting_table.ts | 25 - .../generated/runtime_snapshot_table.ts | 22 - .../save_puzzle_generated_images_procedure.ts | 23 - .../select_puzzle_cover_image_procedure.ts | 23 - .../generated/start_ai_task_reducer.ts | 21 - .../generated/start_ai_task_stage_reducer.ts | 21 - .../generated/start_big_fish_run_procedure.ts | 23 - .../generated/start_puzzle_run_procedure.ts | 23 - src/spacetime/generated/story_event_table.ts | 26 - .../generated/story_session_table.ts | 32 - .../submit_big_fish_input_procedure.ts | 23 - .../submit_big_fish_message_procedure.ts | 23 - ...it_custom_world_agent_message_procedure.ts | 23 - .../submit_puzzle_agent_message_procedure.ts | 23 - .../generated/swap_puzzle_pieces_procedure.ts | 23 - .../generated/treasure_record_table.ts | 39 - .../generated/turn_in_quest_reducer.ts | 21 - src/spacetime/generated/types.ts | 4087 ----------------- src/spacetime/generated/types/procedures.ts | 307 -- src/spacetime/generated/types/reducers.ts | 58 - ...stom_world_profile_and_return_procedure.ts | 23 - .../unpublish_custom_world_profile_reducer.ts | 21 - .../generated/update_puzzle_work_procedure.ts | 23 - .../upsert_auth_store_snapshot_procedure.ts | 23 - ...hapter_progression_and_return_procedure.ts | 23 - .../upsert_chapter_progression_reducer.ts | 21 - ...orld_agent_operation_progress_procedure.ts | 23 - ...stom_world_profile_and_return_procedure.ts | 23 - .../upsert_custom_world_profile_reducer.ts | 21 - .../upsert_npc_state_and_return_procedure.ts | 23 - .../generated/upsert_npc_state_reducer.ts | 21 - ...orm_browse_history_and_return_procedure.ts | 23 - ...rt_runtime_setting_and_return_procedure.ts | 23 - ...t_runtime_snapshot_and_return_procedure.ts | 23 - src/spacetime/generated/user_account_table.ts | 26 - .../generated/user_browse_history_table.ts | 33 - 646 files changed, 4230 insertions(+), 17557 deletions(-) create mode 100644 scripts/generate-spacetime-bindings.mjs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/profile_invite_code_table.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/profile_membership_table.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/profile_recharge_order_table.rs delete mode 100644 server-rs/crates/spacetime-client/src/module_bindings/profile_referral_relation_table.rs delete mode 100644 src/spacetime/generated/accept_quest_reducer.ts delete mode 100644 src/spacetime/generated/acknowledge_quest_completion_reducer.ts delete mode 100644 src/spacetime/generated/advance_puzzle_next_level_procedure.ts delete mode 100644 src/spacetime/generated/ai_result_reference_table.ts delete mode 100644 src/spacetime/generated/ai_task_stage_table.ts delete mode 100644 src/spacetime/generated/ai_task_table.ts delete mode 100644 src/spacetime/generated/ai_text_chunk_table.ts delete mode 100644 src/spacetime/generated/append_ai_text_chunk_and_return_procedure.ts delete mode 100644 src/spacetime/generated/apply_chapter_progression_ledger_entry_and_return_procedure.ts delete mode 100644 src/spacetime/generated/apply_chapter_progression_ledger_entry_reducer.ts delete mode 100644 src/spacetime/generated/apply_inventory_mutation_reducer.ts delete mode 100644 src/spacetime/generated/apply_quest_signal_reducer.ts delete mode 100644 src/spacetime/generated/asset_entity_binding_table.ts delete mode 100644 src/spacetime/generated/asset_object_table.ts delete mode 100644 src/spacetime/generated/attach_ai_result_reference_and_return_procedure.ts delete mode 100644 src/spacetime/generated/auth_identity_table.ts delete mode 100644 src/spacetime/generated/auth_store_snapshot_table.ts delete mode 100644 src/spacetime/generated/battle_state_table.ts delete mode 100644 src/spacetime/generated/begin_story_session_and_return_procedure.ts delete mode 100644 src/spacetime/generated/begin_story_session_reducer.ts delete mode 100644 src/spacetime/generated/big_fish_agent_message_table.ts delete mode 100644 src/spacetime/generated/big_fish_asset_slot_table.ts delete mode 100644 src/spacetime/generated/big_fish_creation_session_table.ts delete mode 100644 src/spacetime/generated/big_fish_runtime_run_table.ts delete mode 100644 src/spacetime/generated/bind_asset_object_to_entity_and_return_procedure.ts delete mode 100644 src/spacetime/generated/bind_asset_object_to_entity_reducer.ts delete mode 100644 src/spacetime/generated/cancel_ai_task_and_return_procedure.ts delete mode 100644 src/spacetime/generated/chapter_progression_table.ts delete mode 100644 src/spacetime/generated/clear_platform_browse_history_and_return_procedure.ts delete mode 100644 src/spacetime/generated/compile_big_fish_draft_procedure.ts delete mode 100644 src/spacetime/generated/compile_custom_world_published_profile_procedure.ts delete mode 100644 src/spacetime/generated/compile_puzzle_agent_draft_procedure.ts delete mode 100644 src/spacetime/generated/complete_ai_stage_and_return_procedure.ts delete mode 100644 src/spacetime/generated/complete_ai_task_and_return_procedure.ts delete mode 100644 src/spacetime/generated/confirm_asset_object_and_return_procedure.ts delete mode 100644 src/spacetime/generated/confirm_asset_object_reducer.ts delete mode 100644 src/spacetime/generated/continue_story_and_return_procedure.ts delete mode 100644 src/spacetime/generated/continue_story_reducer.ts delete mode 100644 src/spacetime/generated/create_ai_task_and_return_procedure.ts delete mode 100644 src/spacetime/generated/create_ai_task_reducer.ts delete mode 100644 src/spacetime/generated/create_battle_state_and_return_procedure.ts delete mode 100644 src/spacetime/generated/create_battle_state_reducer.ts delete mode 100644 src/spacetime/generated/create_big_fish_session_procedure.ts delete mode 100644 src/spacetime/generated/create_custom_world_agent_session_procedure.ts delete mode 100644 src/spacetime/generated/create_profile_recharge_order_and_return_procedure.ts delete mode 100644 src/spacetime/generated/create_puzzle_agent_session_procedure.ts delete mode 100644 src/spacetime/generated/custom_world_agent_message_table.ts delete mode 100644 src/spacetime/generated/custom_world_agent_operation_table.ts delete mode 100644 src/spacetime/generated/custom_world_agent_session_table.ts delete mode 100644 src/spacetime/generated/custom_world_draft_card_table.ts delete mode 100644 src/spacetime/generated/custom_world_gallery_entry_table.ts delete mode 100644 src/spacetime/generated/custom_world_profile_table.ts delete mode 100644 src/spacetime/generated/custom_world_session_table.ts delete mode 100644 src/spacetime/generated/delete_big_fish_work_procedure.ts delete mode 100644 src/spacetime/generated/delete_custom_world_agent_session_procedure.ts delete mode 100644 src/spacetime/generated/delete_custom_world_profile_and_return_procedure.ts delete mode 100644 src/spacetime/generated/delete_puzzle_work_procedure.ts delete mode 100644 src/spacetime/generated/delete_runtime_snapshot_and_return_procedure.ts delete mode 100644 src/spacetime/generated/drag_puzzle_piece_or_group_procedure.ts delete mode 100644 src/spacetime/generated/execute_custom_world_agent_action_procedure.ts delete mode 100644 src/spacetime/generated/export_auth_store_snapshot_from_tables_procedure.ts delete mode 100644 src/spacetime/generated/fail_ai_task_and_return_procedure.ts delete mode 100644 src/spacetime/generated/finalize_big_fish_agent_message_turn_procedure.ts delete mode 100644 src/spacetime/generated/finalize_custom_world_agent_message_turn_procedure.ts delete mode 100644 src/spacetime/generated/finalize_puzzle_agent_message_turn_procedure.ts delete mode 100644 src/spacetime/generated/generate_big_fish_asset_procedure.ts delete mode 100644 src/spacetime/generated/get_auth_store_snapshot_procedure.ts delete mode 100644 src/spacetime/generated/get_battle_state_procedure.ts delete mode 100644 src/spacetime/generated/get_big_fish_run_procedure.ts delete mode 100644 src/spacetime/generated/get_big_fish_session_procedure.ts delete mode 100644 src/spacetime/generated/get_chapter_progression_procedure.ts delete mode 100644 src/spacetime/generated/get_custom_world_agent_card_detail_procedure.ts delete mode 100644 src/spacetime/generated/get_custom_world_agent_operation_procedure.ts delete mode 100644 src/spacetime/generated/get_custom_world_agent_session_procedure.ts delete mode 100644 src/spacetime/generated/get_custom_world_gallery_detail_by_code_procedure.ts delete mode 100644 src/spacetime/generated/get_custom_world_gallery_detail_procedure.ts delete mode 100644 src/spacetime/generated/get_custom_world_library_detail_procedure.ts delete mode 100644 src/spacetime/generated/get_player_progression_or_default_procedure.ts delete mode 100644 src/spacetime/generated/get_profile_dashboard_procedure.ts delete mode 100644 src/spacetime/generated/get_profile_play_stats_procedure.ts delete mode 100644 src/spacetime/generated/get_profile_recharge_center_procedure.ts delete mode 100644 src/spacetime/generated/get_profile_referral_invite_center_procedure.ts delete mode 100644 src/spacetime/generated/get_puzzle_agent_session_procedure.ts delete mode 100644 src/spacetime/generated/get_puzzle_gallery_detail_procedure.ts delete mode 100644 src/spacetime/generated/get_puzzle_run_procedure.ts delete mode 100644 src/spacetime/generated/get_puzzle_work_detail_procedure.ts delete mode 100644 src/spacetime/generated/get_runtime_inventory_state_procedure.ts delete mode 100644 src/spacetime/generated/get_runtime_setting_or_default_procedure.ts delete mode 100644 src/spacetime/generated/get_runtime_snapshot_procedure.ts delete mode 100644 src/spacetime/generated/get_story_session_state_procedure.ts delete mode 100644 src/spacetime/generated/grant_player_progression_experience_and_return_procedure.ts delete mode 100644 src/spacetime/generated/grant_player_progression_experience_reducer.ts delete mode 100644 src/spacetime/generated/import_auth_store_snapshot_procedure.ts delete mode 100644 src/spacetime/generated/index.ts delete mode 100644 src/spacetime/generated/inventory_slot_table.ts delete mode 100644 src/spacetime/generated/list_big_fish_works_procedure.ts delete mode 100644 src/spacetime/generated/list_custom_world_gallery_entries_procedure.ts delete mode 100644 src/spacetime/generated/list_custom_world_profiles_procedure.ts delete mode 100644 src/spacetime/generated/list_custom_world_works_procedure.ts delete mode 100644 src/spacetime/generated/list_platform_browse_history_procedure.ts delete mode 100644 src/spacetime/generated/list_profile_save_archives_procedure.ts delete mode 100644 src/spacetime/generated/list_profile_wallet_ledger_procedure.ts delete mode 100644 src/spacetime/generated/list_puzzle_gallery_procedure.ts delete mode 100644 src/spacetime/generated/list_puzzle_works_procedure.ts delete mode 100644 src/spacetime/generated/npc_state_table.ts delete mode 100644 src/spacetime/generated/player_progression_table.ts delete mode 100644 src/spacetime/generated/profile_dashboard_state_table.ts delete mode 100644 src/spacetime/generated/profile_invite_code_table.ts delete mode 100644 src/spacetime/generated/profile_membership_table.ts delete mode 100644 src/spacetime/generated/profile_played_world_table.ts delete mode 100644 src/spacetime/generated/profile_recharge_order_table.ts delete mode 100644 src/spacetime/generated/profile_referral_relation_table.ts delete mode 100644 src/spacetime/generated/profile_save_archive_table.ts delete mode 100644 src/spacetime/generated/profile_wallet_ledger_table.ts delete mode 100644 src/spacetime/generated/publish_big_fish_game_procedure.ts delete mode 100644 src/spacetime/generated/publish_custom_world_profile_and_return_procedure.ts delete mode 100644 src/spacetime/generated/publish_custom_world_profile_reducer.ts delete mode 100644 src/spacetime/generated/publish_custom_world_world_procedure.ts delete mode 100644 src/spacetime/generated/publish_puzzle_work_procedure.ts delete mode 100644 src/spacetime/generated/puzzle_agent_message_table.ts delete mode 100644 src/spacetime/generated/puzzle_agent_session_table.ts delete mode 100644 src/spacetime/generated/puzzle_runtime_run_table.ts delete mode 100644 src/spacetime/generated/puzzle_work_profile_table.ts delete mode 100644 src/spacetime/generated/quest_log_table.ts delete mode 100644 src/spacetime/generated/quest_record_table.ts delete mode 100644 src/spacetime/generated/redeem_profile_referral_invite_code_procedure.ts delete mode 100644 src/spacetime/generated/refresh_session_table.ts delete mode 100644 src/spacetime/generated/resolve_combat_action_and_return_procedure.ts delete mode 100644 src/spacetime/generated/resolve_combat_action_reducer.ts delete mode 100644 src/spacetime/generated/resolve_npc_battle_interaction_and_return_procedure.ts delete mode 100644 src/spacetime/generated/resolve_npc_interaction_and_return_procedure.ts delete mode 100644 src/spacetime/generated/resolve_npc_interaction_reducer.ts delete mode 100644 src/spacetime/generated/resolve_npc_social_action_and_return_procedure.ts delete mode 100644 src/spacetime/generated/resolve_npc_social_action_reducer.ts delete mode 100644 src/spacetime/generated/resolve_treasure_interaction_and_return_procedure.ts delete mode 100644 src/spacetime/generated/resolve_treasure_interaction_reducer.ts delete mode 100644 src/spacetime/generated/resume_profile_save_archive_and_return_procedure.ts delete mode 100644 src/spacetime/generated/runtime_setting_table.ts delete mode 100644 src/spacetime/generated/runtime_snapshot_table.ts delete mode 100644 src/spacetime/generated/save_puzzle_generated_images_procedure.ts delete mode 100644 src/spacetime/generated/select_puzzle_cover_image_procedure.ts delete mode 100644 src/spacetime/generated/start_ai_task_reducer.ts delete mode 100644 src/spacetime/generated/start_ai_task_stage_reducer.ts delete mode 100644 src/spacetime/generated/start_big_fish_run_procedure.ts delete mode 100644 src/spacetime/generated/start_puzzle_run_procedure.ts delete mode 100644 src/spacetime/generated/story_event_table.ts delete mode 100644 src/spacetime/generated/story_session_table.ts delete mode 100644 src/spacetime/generated/submit_big_fish_input_procedure.ts delete mode 100644 src/spacetime/generated/submit_big_fish_message_procedure.ts delete mode 100644 src/spacetime/generated/submit_custom_world_agent_message_procedure.ts delete mode 100644 src/spacetime/generated/submit_puzzle_agent_message_procedure.ts delete mode 100644 src/spacetime/generated/swap_puzzle_pieces_procedure.ts delete mode 100644 src/spacetime/generated/treasure_record_table.ts delete mode 100644 src/spacetime/generated/turn_in_quest_reducer.ts delete mode 100644 src/spacetime/generated/types.ts delete mode 100644 src/spacetime/generated/types/procedures.ts delete mode 100644 src/spacetime/generated/types/reducers.ts delete mode 100644 src/spacetime/generated/unpublish_custom_world_profile_and_return_procedure.ts delete mode 100644 src/spacetime/generated/unpublish_custom_world_profile_reducer.ts delete mode 100644 src/spacetime/generated/update_puzzle_work_procedure.ts delete mode 100644 src/spacetime/generated/upsert_auth_store_snapshot_procedure.ts delete mode 100644 src/spacetime/generated/upsert_chapter_progression_and_return_procedure.ts delete mode 100644 src/spacetime/generated/upsert_chapter_progression_reducer.ts delete mode 100644 src/spacetime/generated/upsert_custom_world_agent_operation_progress_procedure.ts delete mode 100644 src/spacetime/generated/upsert_custom_world_profile_and_return_procedure.ts delete mode 100644 src/spacetime/generated/upsert_custom_world_profile_reducer.ts delete mode 100644 src/spacetime/generated/upsert_npc_state_and_return_procedure.ts delete mode 100644 src/spacetime/generated/upsert_npc_state_reducer.ts delete mode 100644 src/spacetime/generated/upsert_platform_browse_history_and_return_procedure.ts delete mode 100644 src/spacetime/generated/upsert_runtime_setting_and_return_procedure.ts delete mode 100644 src/spacetime/generated/upsert_runtime_snapshot_and_return_procedure.ts delete mode 100644 src/spacetime/generated/user_account_table.ts delete mode 100644 src/spacetime/generated/user_browse_history_table.ts diff --git a/docs/technical/API_SERVER_CHARACTER_VISUAL_EXTERNAL_GENERATION_RUNTIME_FIX_2026-04-23.md b/docs/technical/API_SERVER_CHARACTER_VISUAL_EXTERNAL_GENERATION_RUNTIME_FIX_2026-04-23.md index dc71a826..31c5813f 100644 --- a/docs/technical/API_SERVER_CHARACTER_VISUAL_EXTERNAL_GENERATION_RUNTIME_FIX_2026-04-23.md +++ b/docs/technical/API_SERVER_CHARACTER_VISUAL_EXTERNAL_GENERATION_RUNTIME_FIX_2026-04-23.md @@ -87,7 +87,7 @@ 4. 重新执行: ```powershell -spacetime generate --no-config --lang rust --out-dir D:\Genarrative\server-rs\crates\spacetime-client\src\module_bindings --module-path D:\Genarrative\server-rs\crates\spacetime-module --include-private --yes +npm run spacetime:generate ``` 说明: diff --git a/docs/technical/AXUM_TO_SPACETIMEDB_ASSET_OBJECT_CONFIRM_CALL_DESIGN_2026-04-21.md b/docs/technical/AXUM_TO_SPACETIMEDB_ASSET_OBJECT_CONFIRM_CALL_DESIGN_2026-04-21.md index 7630ea32..adb3cb57 100644 --- a/docs/technical/AXUM_TO_SPACETIMEDB_ASSET_OBJECT_CONFIRM_CALL_DESIGN_2026-04-21.md +++ b/docs/technical/AXUM_TO_SPACETIMEDB_ASSET_OBJECT_CONFIRM_CALL_DESIGN_2026-04-21.md @@ -107,7 +107,7 @@ ```bash spacetime start --listen-addr 127.0.0.1:3000 spacetime publish genarrative-dev --server local --yes --module-path server-rs/crates/spacetime-module -spacetime generate --lang rust --out-dir server-rs/crates/spacetime-client/src/module_bindings --module-path server-rs/crates/spacetime-module --include-private --yes +npm run spacetime:generate ``` ## 5. 为什么当前阶段不用 CLI 文本解析 diff --git a/docs/technical/M4_RPG_RUNTIME_STORY_SPACETIMEDB_BASELINE_2026-04-21.md b/docs/technical/M4_RPG_RUNTIME_STORY_SPACETIMEDB_BASELINE_2026-04-21.md index 6d27d854..a20330db 100644 --- a/docs/technical/M4_RPG_RUNTIME_STORY_SPACETIMEDB_BASELINE_2026-04-21.md +++ b/docs/technical/M4_RPG_RUNTIME_STORY_SPACETIMEDB_BASELINE_2026-04-21.md @@ -195,7 +195,7 @@ 1. `cargo check -p module-story --manifest-path D:\\Genarrative\\server-rs\\Cargo.toml` 2. `cargo check -p spacetime-module --manifest-path D:\\Genarrative\\server-rs\\Cargo.toml` 3. `cargo check -p spacetime-module --target wasm32-unknown-unknown --manifest-path D:\\Genarrative\\server-rs\\Cargo.toml` -4. `spacetime generate --no-config --lang rust --out-dir D:\\Genarrative\\server-rs\\crates\\spacetime-client\\src\\module_bindings --module-path D:\\Genarrative\\server-rs\\crates\\spacetime-module --include-private --yes` +4. `npm run spacetime:generate` 5. `cargo check -p spacetime-client --manifest-path D:\\Genarrative\\server-rs\\Cargo.toml` 6. `cargo check -p api-server --manifest-path D:\\Genarrative\\server-rs\\Cargo.toml` 7. `npm run check:encoding` @@ -234,7 +234,7 @@ 同时,本轮还完成了以下工程收口: -1. 已重新执行 `spacetime generate --no-config --lang rust --out-dir D:\\Genarrative\\server-rs\\crates\\spacetime-client\\src\\module_bindings --module-path D:\\Genarrative\\server-rs\\crates\\spacetime-module --include-private --yes`。 +1. 已重新执行 `npm run spacetime:generate`。 2. 已把 `spacetime-client` 中 battle query 的占位实现替换为真实 procedure 调用。 3. 已再次执行 `cargo check -p spacetime-client --manifest-path D:\\Genarrative\\server-rs\\Cargo.toml` 与 `cargo check -p api-server --manifest-path D:\\Genarrative\\server-rs\\Cargo.toml` 并通过。 diff --git a/docs/technical/PUZZLE_CREATION_AND_RUNTIME_MINIMAL_IMPLEMENTATION_2026-04-22.md b/docs/technical/PUZZLE_CREATION_AND_RUNTIME_MINIMAL_IMPLEMENTATION_2026-04-22.md index 9d0e4879..ff080ded 100644 --- a/docs/technical/PUZZLE_CREATION_AND_RUNTIME_MINIMAL_IMPLEMENTATION_2026-04-22.md +++ b/docs/technical/PUZZLE_CREATION_AND_RUNTIME_MINIMAL_IMPLEMENTATION_2026-04-22.md @@ -340,7 +340,7 @@ finalScore = tagSimilarityScore * 0.7 + sameAuthorScore * 0.3; 4. `cargo check -p module-puzzle` 5. `cargo check -p shared-contracts` 6. `cargo check -p spacetime-module` -7. `spacetime generate --no-config --lang rust --out-dir server-rs/crates/spacetime-client/src/module_bindings --module-path server-rs/crates/spacetime-module --include-private --yes` +7. `npm run spacetime:generate` 8. `cargo check -p spacetime-client` 9. `cargo check -p api-server` diff --git a/docs/technical/RUST_LOCAL_AND_REMOTE_DEPLOYMENT_SCRIPTS_2026-04-22.md b/docs/technical/RUST_LOCAL_AND_REMOTE_DEPLOYMENT_SCRIPTS_2026-04-22.md index b950e74d..bbaf4942 100644 --- a/docs/technical/RUST_LOCAL_AND_REMOTE_DEPLOYMENT_SCRIPTS_2026-04-22.md +++ b/docs/technical/RUST_LOCAL_AND_REMOTE_DEPLOYMENT_SCRIPTS_2026-04-22.md @@ -34,7 +34,7 @@ npm run dev:rust 1. 检查 `cargo`、`node` 与 `spacetime` CLI。 2. Windows Git Bash 下如 `server-rs/.spacetimedb/local/bin/current/spacetimedb-cli.exe` 不存在,先把本机 `spacetime` 所在安装目录的 `bin/` 与 `spacetime.exe` 同步到 `server-rs/.spacetimedb/local/`。 3. 启动 `spacetime --root-dir=server-rs/.spacetimedb/local start --edition standalone --listen-addr 127.0.0.1:3101`,确保本地数据库与 SpacetimeDB 内部日志不会落到开发者全局目录。 -4. 等待 `spacetime --root-dir=server-rs/.spacetimedb/local server ping http://127.0.0.1:3101` 可用。 +4. 等待 `spacetime --root-dir=server-rs/.spacetimedb/local server ping http://127.0.0.1:3101` 可用;判定标准必须包含输出中的 `Server is online:`,不能只依赖 CLI 退出码,因为 SpacetimeDB CLI `2.1.0` 在 `502 Bad Gateway` 时也可能返回退出码 `0`。 5. 执行 `spacetime --root-dir=server-rs/.spacetimedb/local publish <本地数据库名> --server http://127.0.0.1:3101 --module-path server-rs/crates/spacetime-module -c=on-conflict --yes`,确保 publish 的签名身份与 standalone 的本地控制库一致,并在当前开发阶段允许新版模块表结构变化且发生 schema 冲突时清除旧模块数据。 6. 注入 `GENARRATIVE_API_*` 与 `GENARRATIVE_SPACETIME_*` 后启动 `cargo run -p api-server`;直接运行 `api-server` 时,如未显式设置 `GENARRATIVE_SPACETIME_DATABASE`,服务端也会向上查找 `spacetime.local.json` 作为本地默认库名。 7. 等待 `http://127.0.0.1:/healthz` 返回 HTTP 响应后再启动 Vite,避免前端初始化请求早于 Rust `api-server` 监听完成并在终端刷出 `ECONNREFUSED 127.0.0.1:`。 @@ -65,6 +65,23 @@ npm run dev:rust ./scripts/dev-rust-stack.sh --preserve-database ``` +bindings 生成: + +```bash +npm run spacetime:generate +npm run spacetime:generate -- --rust-only +``` + +生成规则: + +1. `npm run spacetime:generate` 是本仓库刷新 SpacetimeDB Rust client bindings 的唯一推荐入口。 +2. 前端不直连 SpacetimeDB,不生成 TypeScript bindings;前端只通过 Rust `api-server` 暴露的 HTTP / SSE contract 访问后端。 +3. Rust bindings 不生成私有表绑定,不追加 `--include-private`,生成到短临时目录后同步到 `server-rs/crates/spacetime-client/src/module_bindings`。 +4. Windows 下 SpacetimeDB CLI `2.1.0` 会在生成结束后把所有生成文件路径一次性传给 formatter;Rust bindings 文件较多,若直接输出到仓库深目录,可能触发 `Could not format generated files: 文件名或扩展名太长。`。该错误不是单个最长文件路径超过限制,而是 formatter 子进程参数总长超过 Windows `CreateProcess` 限制。 +5. CLI 在上述 formatter 失败时仍可能返回退出码 `0`;脚本会捕获输出,只要出现 `Could not format generated files` 就视为失败。 +6. 根目录 `spacetime.json` 不配置 `generate` 目标,避免裸 `spacetime generate` 在 Windows 上直接碰到 Rust formatter 路径总长限制,也避免误生成前端 bindings。 +7. 不直接手写或局部补 `server-rs/crates/spacetime-client/src/module_bindings` 下的生成文件;schema 变化后重新执行本脚本,并补跑编码检查与对应类型检查。 + 日志提取: ```bash @@ -86,6 +103,7 @@ npm run dev:rust:logs -- --follow 2. `spacetime --root-dir=server-rs/.spacetimedb/local list --server http://127.0.0.1:3101` 应能看到 `spacetime.local.json` 中的库名;若没有,执行 `spacetime --root-dir=server-rs/.spacetimedb/local publish <本地数据库名> --server http://127.0.0.1:3101 --module-path server-rs/crates/spacetime-module -c=on-conflict --yes`。 3. 发布库名与 `GENARRATIVE_SPACETIME_DATABASE` 不一致时,`/api/runtime/custom-world-gallery` 会从 Rust `api-server` 返回 `502`,前端首页只能展示空态或错误提示,无法自行修复。 4. 如果 Vite 输出 `/api/auth/refresh`、`/api/auth/login-options` 或 `/api/runtime/custom-world-gallery` 的 `ECONNREFUSED`,先确认当前脚本是否已经打印 `等待 api-server 就绪` 并通过;正常情况下 Vite 只会在 `/healthz` 可访问后启动,不应再因为 Rust 监听未完成而代理失败。 +5. 如果 `spacetime server ping` 打印 `Server could not be reached (502 Bad Gateway)`,即使命令退出码为 `0` 也必须视为未就绪;脚本会继续等待新启动实例,或在 root-dir 已被其他实例占用时输出占用进程。 编译警告治理: diff --git a/docs/technical/RUST_LOCAL_DEV_SPACETIMEDB_PUBLISH_GUARD_AND_AGENT_LLM_FAILURE_POLICY_2026-04-23.md b/docs/technical/RUST_LOCAL_DEV_SPACETIMEDB_PUBLISH_GUARD_AND_AGENT_LLM_FAILURE_POLICY_2026-04-23.md index a7344d1b..76a527b7 100644 --- a/docs/technical/RUST_LOCAL_DEV_SPACETIMEDB_PUBLISH_GUARD_AND_AGENT_LLM_FAILURE_POLICY_2026-04-23.md +++ b/docs/technical/RUST_LOCAL_DEV_SPACETIMEDB_PUBLISH_GUARD_AND_AGENT_LLM_FAILURE_POLICY_2026-04-23.md @@ -48,7 +48,7 @@ spacetime publish xushi-p4wfr --server http://127.0.0.1:3101 --module-path D:\Ge publish 成功后,继续执行: ```bash -spacetime generate --no-config --lang rust --out-dir D:\Genarrative\server-rs\crates\spacetime-client\src\module_bindings --module-path D:\Genarrative\server-rs\crates\spacetime-module --include-private --yes +npm run spacetime:generate ``` 要求: diff --git a/docs/technical/SPACETIMEDB_CUSTOM_WORLD_AGENT_SESSION_STAGE6_DESIGN_2026-04-22.md b/docs/technical/SPACETIMEDB_CUSTOM_WORLD_AGENT_SESSION_STAGE6_DESIGN_2026-04-22.md index 7939a7b3..cc37d880 100644 --- a/docs/technical/SPACETIMEDB_CUSTOM_WORLD_AGENT_SESSION_STAGE6_DESIGN_2026-04-22.md +++ b/docs/technical/SPACETIMEDB_CUSTOM_WORLD_AGENT_SESSION_STAGE6_DESIGN_2026-04-22.md @@ -164,19 +164,18 @@ Stage 5 已接入 agent `publish_world` action,但调用方仍需要显式提 本仓默认刷新命令: ```bash -spacetime generate --no-config --lang rust --out-dir server-rs/crates/spacetime-client/src/module_bindings --module-path server-rs/crates/spacetime-module --include-private --yes +npm run spacetime:generate ``` -如果当前工作树里存在其他并行 `cargo build/test/check` 导致 `spacetime generate` 内部构建长期卡在锁竞争,则先在独立目标目录编译 wasm,再使用 `--bin-path` 生成: +如果当前工作树里存在其他并行 `cargo build/test/check` 导致 `spacetime generate` 内部构建长期卡在锁竞争,则先结束占锁任务后重新执行仓库脚本;脚本内部会使用短临时目录生成公开 Rust bindings,不生成私有表绑定。 ```bash -CARGO_TARGET_DIR=server-rs/target-spacetime-bindgen cargo build --manifest-path server-rs/crates/spacetime-module/Cargo.toml --target wasm32-unknown-unknown --release -spacetime generate --no-config --lang rust --out-dir server-rs/crates/spacetime-client/src/module_bindings --bin-path server-rs/target-spacetime-bindgen/wasm32-unknown-unknown/release/spacetime_module.wasm --include-private --yes +npm run spacetime:generate ``` 这样做的目的固定如下: -1. 避开根目录 `spacetime.json` 多 generate target 对单次 Rust 生成的参数冲突。 +1. 避开根目录 `spacetime.json` 误触发前端 bindings 或私有表 bindings 生成。 2. 避开共享 `target/` 目录被其他任务占锁时的构建阻塞。 3. 保证 `create_custom_world_agent_session` / `get_custom_world_agent_session` 这类新 procedure 与输入输出类型能同步进入 Rust bindings。 diff --git a/package.json b/package.json index d7ef44df..fb91884e 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "dev:rust:logs": "node scripts/run-bash-script.mjs scripts/spacetime-logs-local.sh", "dev:web": "node scripts/dev-web-rust.mjs", "spacetime:publish:maincloud": "node scripts/run-bash-script.mjs scripts/spacetime-publish-maincloud.sh", + "spacetime:generate": "node scripts/generate-spacetime-bindings.mjs", "api-server:maincloud": "node scripts/api-server-maincloud.mjs", "deploy:rust:remote": "node scripts/run-bash-script.mjs scripts/deploy-rust-remote.sh", "build:rust:ubuntu": "node scripts/run-bash-script.mjs scripts/deploy-rust-remote.sh", diff --git a/scripts/dev-rust-stack.sh b/scripts/dev-rust-stack.sh index 08e16179..b64ebc08 100644 --- a/scripts/dev-rust-stack.sh +++ b/scripts/dev-rust-stack.sh @@ -78,7 +78,7 @@ wait_for_spacetime() { exit 1 fi - if spacetime --root-dir="${root_dir}" server ping "${server}" >/dev/null 2>&1; then + if is_spacetime_ready "${server}" "${root_dir}"; then return fi @@ -92,8 +92,14 @@ wait_for_spacetime() { is_spacetime_ready() { local server="$1" local root_dir="$2" + local output - spacetime --root-dir="${root_dir}" server ping "${server}" >/dev/null 2>&1 + if ! output="$(spacetime --root-dir="${root_dir}" server ping "${server}" 2>&1)"; then + return 1 + fi + + # SpacetimeDB CLI 2.1.0 在 502 Bad Gateway 时仍可能返回 0,不能只依赖退出码。 + [[ "${output}" == *"Server is online:"* ]] } describe_spacetime_root_owner() { diff --git a/scripts/generate-spacetime-bindings.mjs b/scripts/generate-spacetime-bindings.mjs new file mode 100644 index 00000000..32a2acef --- /dev/null +++ b/scripts/generate-spacetime-bindings.mjs @@ -0,0 +1,207 @@ +import {spawn} from 'node:child_process'; +import {existsSync} from 'node:fs'; +import {cp, mkdir, readdir, rm, stat} from 'node:fs/promises'; +import path from 'node:path'; +import {fileURLToPath} from 'node:url'; + +const SCRIPT_DIR = path.dirname(fileURLToPath(import.meta.url)); +const REPO_ROOT = path.resolve(SCRIPT_DIR, '..'); +const MODULE_PATH = path.join(REPO_ROOT, 'server-rs', 'crates', 'spacetime-module'); + +const TARGETS = [ + { + name: 'Rust', + lang: 'rust', + tempName: 'rs', + outDir: path.join( + REPO_ROOT, + 'server-rs', + 'crates', + 'spacetime-client', + 'src', + 'module_bindings', + ), + }, +]; + +const args = new Set(process.argv.slice(2)); +const KNOWN_ARGS = new Set(['--rust-only']); + +for (const arg of args) { + if (!KNOWN_ARGS.has(arg)) { + console.error(`[spacetime:generate] 未知参数: ${arg}`); + process.exit(1); + } +} + +if (!existsSync(path.join(MODULE_PATH, 'Cargo.toml'))) { + console.error(`[spacetime:generate] 未找到模块: ${MODULE_PATH}`); + process.exit(1); +} + +const tempRoot = resolveTempRoot(); +assertSafeTempRoot(tempRoot); +const selectedTargets = TARGETS.filter((target) => shouldRunTarget(target.lang)); + +if (selectedTargets.length === 0) { + console.error('[spacetime:generate] 没有需要生成的目标。'); + process.exit(1); +} + +await mkdir(tempRoot, {recursive: true}); + +for (const target of selectedTargets) { + const tempOutDir = path.join(tempRoot, target.tempName); + await recreateTempDir(tempOutDir); + + console.log(`[spacetime:generate] 生成 ${target.name} bindings 到短路径: ${tempOutDir}`); + await run('spacetime', buildGenerateArgs(target, tempOutDir)); + + const fileCount = await countFiles(tempOutDir); + if (fileCount === 0) { + throw new Error(`${target.name} bindings 未生成任何文件。`); + } + + console.log(`[spacetime:generate] 同步 ${fileCount} 个文件到 ${target.outDir}`); + await replaceGeneratedDir(tempOutDir, target.outDir); +} + +await rm(tempRoot, {recursive: true, force: true}); +console.log('[spacetime:generate] bindings 生成完成。'); + +function shouldRunTarget(lang) { + if (args.has('--rust-only')) { + return lang === 'rust'; + } + + return true; +} + +function resolveTempRoot() { + if (process.env.GENARRATIVE_BINDGEN_TEMP_ROOT) { + return path.resolve(process.env.GENARRATIVE_BINDGEN_TEMP_ROOT); + } + + // Windows 下 SpacetimeDB CLI 2.1.0 会把所有生成文件路径一次性传给 formatter; + // Rust bindings 文件数较多,输出到仓库深目录时容易触发 CreateProcess 路径总长限制。 + if (process.platform === 'win32') { + return path.join(path.parse(REPO_ROOT).root, '.genarrative-bindgen'); + } + + return path.join(REPO_ROOT, 'tmp', 'spacetime-bindgen'); +} + +async function recreateTempDir(dir) { + assertInside(dir, tempRoot, '临时生成目录'); + await rm(dir, {recursive: true, force: true}); + await mkdir(dir, {recursive: true}); +} + +async function replaceGeneratedDir(fromDir, toDir) { + assertInside(toDir, REPO_ROOT, '仓库生成目录'); + await rm(toDir, {recursive: true, force: true}); + await mkdir(path.dirname(toDir), {recursive: true}); + await cp(fromDir, toDir, {recursive: true}); +} + +function assertInside(candidate, parent, label) { + const relative = path.relative(path.resolve(parent), path.resolve(candidate)); + if (relative === '' || relative.startsWith('..') || path.isAbsolute(relative)) { + throw new Error(`${label} 不在预期目录内: ${candidate}`); + } +} + +function assertSafeTempRoot(dir) { + const resolved = path.resolve(dir); + const parsed = path.parse(resolved); + const basename = path.basename(resolved).toLowerCase(); + + if (resolved === path.resolve(REPO_ROOT) || resolved === parsed.root) { + throw new Error(`临时根目录不允许指向仓库或磁盘根目录: ${resolved}`); + } + + if (!basename.includes('bindgen')) { + throw new Error(`临时根目录必须是明确的 bindings 生成目录: ${resolved}`); + } +} + +function buildGenerateArgs(target, outDir) { + const generateArgs = [ + 'generate', + '--no-config', + '--lang', + target.lang, + '--out-dir', + outDir, + '--module-path', + MODULE_PATH, + '--yes', + ]; + + return generateArgs; +} + +function run(command, commandArgs) { + return new Promise((resolve, reject) => { + const child = spawn(command, commandArgs, { + cwd: REPO_ROOT, + env: process.env, + shell: false, + stdio: ['ignore', 'pipe', 'pipe'], + }); + + let output = ''; + + child.stdout.on('data', (chunk) => { + const text = chunk.toString(); + output += text; + process.stdout.write(text); + }); + + child.stderr.on('data', (chunk) => { + const text = chunk.toString(); + output += text; + process.stderr.write(text); + }); + + child.on('error', reject); + child.on('exit', (code, signal) => { + if (signal) { + reject(new Error(`${command} 被信号中断: ${signal}`)); + return; + } + + if (output.includes('Could not format generated files')) { + reject(new Error(`${command} 生成后格式化失败。`)); + return; + } + + if (code === 0) { + resolve(); + return; + } + + reject(new Error(`${command} 退出码: ${code ?? 'unknown'}`)); + }); + }); +} + +async function countFiles(dir) { + let count = 0; + const entries = await readdir(dir, {withFileTypes: true}); + + for (const entry of entries) { + const entryPath = path.join(dir, entry.name); + + if (entry.isDirectory()) { + count += await countFiles(entryPath); + continue; + } + + if (entry.isFile() || (await stat(entryPath)).isFile()) { + count += 1; + } + } + + return count; +} diff --git a/server-rs/crates/spacetime-client/README.md b/server-rs/crates/spacetime-client/README.md index 49ac93b3..9f8901da 100644 --- a/server-rs/crates/spacetime-client/README.md +++ b/server-rs/crates/spacetime-client/README.md @@ -14,7 +14,7 @@ 当前目录已不再只是占位,当前阶段已经落下: -1. 通过 `spacetime generate --lang rust --include-private` 生成的最小 Rust bindings +1. 通过 `npm run spacetime:generate -- --rust-only` 生成的公开 Rust bindings 2. `DbConnection` 连接封装 3. `confirm_asset_object_and_return` procedure 的最小调用适配 4. `bind_asset_object_to_entity_and_return` procedure 的最小调用适配 @@ -33,9 +33,11 @@ `src/module_bindings` 目录下的 Rust 文件统一视为 SpacetimeDB CLI 生成产物,后续维护必须遵守: -1. 只允许通过 `spacetime generate --lang rust` 刷新,不允许手工修改。 -2. 不允许对该目录执行 `rustfmt`,避免把 CLI 原始输出改写成额外格式化噪音。 -3. `src/lib.rs` 已通过 `#[rustfmt::skip] pub mod module_bindings;` 显式阻止 workspace 级 `cargo fmt` 继续递归格式化该目录。 +1. 只允许通过仓库根目录 `npm run spacetime:generate -- --rust-only` 刷新,不允许手工修改。 +2. 不生成私有表绑定,不追加 `--include-private`;如后端需要读取私有表,应先在 `api-server` 或模块层补明确 contract,而不是让客户端 crate 直接依赖私有表结构。 +3. 不允许对该目录额外执行 `rustfmt`,生成物格式只接受 SpacetimeDB CLI 生成阶段自身输出。 +4. `src/lib.rs` 已通过 `#[rustfmt::skip] pub mod module_bindings;` 显式阻止 workspace 级 `cargo fmt` 继续递归格式化该目录。 +5. Windows 下直接把 Rust bindings 输出到本目录时,SpacetimeDB CLI `2.1.0` 的生成后 formatter 可能因为路径参数总长触发 `文件名或扩展名太长`;仓库脚本会先输出到短临时目录,再同步回本目录。 ## 3. 边界约束 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 index b9e670d6..dfebf903 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::quest_record_input_type::QuestRecordInput; @@ -19,10 +14,8 @@ pub(super) struct AcceptQuestArgs { impl From for super::Reducer { fn from(args: AcceptQuestArgs) -> Self { - Self::AcceptQuest { - input: args.input, -} -} + Self::AcceptQuest { input: args.input } + } } impl __sdk::InModule for AcceptQuestArgs { @@ -40,9 +33,8 @@ pub trait accept_quest { /// 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, |_, _| {}) + 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, @@ -70,7 +62,7 @@ impl accept_quest for super::RemoteReducers { + Send + 'static, ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback(AcceptQuestArgs { input, }, callback) + 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 index 6027c9f6..6ae2fd10 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::quest_completion_ack_input_type::QuestCompletionAckInput; @@ -19,10 +14,8 @@ pub(super) struct AcknowledgeQuestCompletionArgs { impl From for super::Reducer { fn from(args: AcknowledgeQuestCompletionArgs) -> Self { - Self::AcknowledgeQuestCompletion { - input: args.input, -} -} + Self::AcknowledgeQuestCompletion { input: args.input } + } } impl __sdk::InModule for AcknowledgeQuestCompletionArgs { @@ -40,9 +33,8 @@ pub trait acknowledge_quest_completion { /// 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, |_, _| {}) + 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, @@ -70,7 +62,7 @@ impl acknowledge_quest_completion for super::RemoteReducers { + Send + 'static, ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback(AcknowledgeQuestCompletionArgs { input, }, callback) + self.imp + .invoke_reducer_with_callback(AcknowledgeQuestCompletionArgs { 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 index 4a7804c7..6d3e9f79 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 { +struct AdvancePuzzleNextLevelArgs { pub input: PuzzleRunNextLevelInput, } - impl __sdk::InModule for AdvancePuzzleNextLevelArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for AdvancePuzzleNextLevelArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl advance_puzzle_next_level for super::RemoteProcedures { &self, input: PuzzleRunNextLevelInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, PuzzleRunProcedureResult>( - "advance_puzzle_next_level", - AdvancePuzzleNextLevelArgs { input, }, - __callback, - ); + 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/ai_result_reference_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/ai_result_reference_input_type.rs index c22d39dd..b63aad41 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/ai_result_reference_input_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/ai_result_reference_input_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::ai_result_reference_kind_type::AiResultReferenceKind; @@ -17,12 +12,10 @@ pub struct AiResultReferenceInput { pub task_id: String, pub reference_kind: AiResultReferenceKind, pub reference_id: String, - pub label: Option::, + pub label: Option, pub created_at_micros: i64, } - impl __sdk::InModule for AiResultReferenceInput { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/ai_result_reference_kind_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/ai_result_reference_kind_type.rs index 9b9a5a43..0e5f045b 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/ai_result_reference_kind_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/ai_result_reference_kind_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -24,12 +19,8 @@ pub enum AiResultReferenceKind { RuntimeItemRecord, AssetObject, - } - - impl __sdk::InModule for AiResultReferenceKind { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/ai_result_reference_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/ai_result_reference_snapshot_type.rs index 7522ac4c..f949db7f 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/ai_result_reference_snapshot_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/ai_result_reference_snapshot_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::ai_result_reference_kind_type::AiResultReferenceKind; @@ -18,12 +13,10 @@ pub struct AiResultReferenceSnapshot { pub task_id: String, pub reference_kind: AiResultReferenceKind, pub reference_id: String, - pub label: Option::, + pub label: Option, pub created_at_micros: i64, } - impl __sdk::InModule for AiResultReferenceSnapshot { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/ai_result_reference_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/ai_result_reference_type.rs index d9e32eaf..3b1121b0 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/ai_result_reference_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/ai_result_reference_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::ai_result_reference_kind_type::AiResultReferenceKind; @@ -19,16 +14,14 @@ pub struct AiResultReference { pub task_id: String, pub reference_kind: AiResultReferenceKind, pub reference_id: String, - pub label: Option::, + pub label: Option, pub created_at: __sdk::Timestamp, } - impl __sdk::InModule for AiResultReference { type Module = super::RemoteModule; } - /// Column accessor struct for the table `AiResultReference`. /// /// Provides typed access to columns for query building. @@ -38,7 +31,7 @@ pub struct AiResultReferenceCols { pub task_id: __sdk::__query_builder::Col, pub reference_kind: __sdk::__query_builder::Col, pub reference_id: __sdk::__query_builder::Col, - pub label: __sdk::__query_builder::Col>, + pub label: __sdk::__query_builder::Col>, pub created_at: __sdk::__query_builder::Col, } @@ -46,14 +39,16 @@ impl __sdk::__query_builder::HasCols for AiResultReference { type Cols = AiResultReferenceCols; fn cols(table_name: &'static str) -> Self::Cols { AiResultReferenceCols { - result_reference_row_id: __sdk::__query_builder::Col::new(table_name, "result_reference_row_id"), + result_reference_row_id: __sdk::__query_builder::Col::new( + table_name, + "result_reference_row_id", + ), result_ref_id: __sdk::__query_builder::Col::new(table_name, "result_ref_id"), task_id: __sdk::__query_builder::Col::new(table_name, "task_id"), reference_kind: __sdk::__query_builder::Col::new(table_name, "reference_kind"), reference_id: __sdk::__query_builder::Col::new(table_name, "reference_id"), label: __sdk::__query_builder::Col::new(table_name, "label"), created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), - } } } @@ -70,12 +65,13 @@ impl __sdk::__query_builder::HasIxCols for AiResultReference { type IxCols = AiResultReferenceIxCols; fn ix_cols(table_name: &'static str) -> Self::IxCols { AiResultReferenceIxCols { - result_reference_row_id: __sdk::__query_builder::IxCol::new(table_name, "result_reference_row_id"), + result_reference_row_id: __sdk::__query_builder::IxCol::new( + table_name, + "result_reference_row_id", + ), task_id: __sdk::__query_builder::IxCol::new(table_name, "task_id"), - } } } impl __sdk::__query_builder::CanBeLookupTable for AiResultReference {} - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/ai_stage_completion_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/ai_stage_completion_input_type.rs index c165fc55..7ce33006 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/ai_stage_completion_input_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/ai_stage_completion_input_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::ai_task_stage_kind_type::AiTaskStageKind; @@ -16,14 +11,12 @@ use super::ai_task_stage_kind_type::AiTaskStageKind; pub struct AiStageCompletionInput { pub task_id: String, pub stage_kind: AiTaskStageKind, - pub text_output: Option::, - pub structured_payload_json: Option::, - pub warning_messages: Vec::, + pub text_output: Option, + pub structured_payload_json: Option, + pub warning_messages: Vec, pub completed_at_micros: i64, } - impl __sdk::InModule for AiStageCompletionInput { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/ai_task_cancel_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/ai_task_cancel_input_type.rs index 1c5af5fa..93b697a6 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/ai_task_cancel_input_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/ai_task_cancel_input_type.rs @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -17,8 +11,6 @@ pub struct AiTaskCancelInput { pub completed_at_micros: i64, } - impl __sdk::InModule for AiTaskCancelInput { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/ai_task_create_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/ai_task_create_input_type.rs index 2d53ad93..95b0506a 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/ai_task_create_input_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/ai_task_create_input_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::ai_task_kind_type::AiTaskKind; use super::ai_task_stage_blueprint_type::AiTaskStageBlueprint; @@ -20,14 +15,12 @@ pub struct AiTaskCreateInput { pub owner_user_id: String, pub request_label: String, pub source_module: String, - pub source_entity_id: Option::, - pub request_payload_json: Option::, - pub stages: Vec::, + pub source_entity_id: Option, + pub request_payload_json: Option, + pub stages: Vec, pub created_at_micros: i64, } - impl __sdk::InModule for AiTaskCreateInput { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/ai_task_failure_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/ai_task_failure_input_type.rs index dfdd6ee6..91a87cf5 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/ai_task_failure_input_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/ai_task_failure_input_type.rs @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -18,8 +12,6 @@ pub struct AiTaskFailureInput { pub completed_at_micros: i64, } - impl __sdk::InModule for AiTaskFailureInput { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/ai_task_finish_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/ai_task_finish_input_type.rs index f7bc9735..d8fe6713 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/ai_task_finish_input_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/ai_task_finish_input_type.rs @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -17,8 +11,6 @@ pub struct AiTaskFinishInput { pub completed_at_micros: i64, } - impl __sdk::InModule for AiTaskFinishInput { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/ai_task_kind_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/ai_task_kind_type.rs index 7724e312..9468bc95 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/ai_task_kind_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/ai_task_kind_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -24,12 +19,8 @@ pub enum AiTaskKind { QuestIntent, RuntimeItemIntent, - } - - impl __sdk::InModule for AiTaskKind { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/ai_task_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/ai_task_procedure_result_type.rs index f0457945..57728f6e 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/ai_task_procedure_result_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/ai_task_procedure_result_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::ai_task_snapshot_type::AiTaskSnapshot; use super::ai_text_chunk_snapshot_type::AiTextChunkSnapshot; @@ -16,13 +11,11 @@ use super::ai_text_chunk_snapshot_type::AiTextChunkSnapshot; #[sats(crate = __lib)] pub struct AiTaskProcedureResult { pub ok: bool, - pub task: Option::, - pub text_chunk: Option::, - pub error_message: Option::, + pub task: Option, + pub text_chunk: Option, + pub error_message: Option, } - impl __sdk::InModule for AiTaskProcedureResult { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/ai_task_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/ai_task_snapshot_type.rs index c0259393..66fa9a15 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/ai_task_snapshot_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/ai_task_snapshot_type.rs @@ -2,17 +2,12 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::ai_task_kind_type::AiTaskKind; -use super::ai_task_status_type::AiTaskStatus; -use super::ai_task_stage_snapshot_type::AiTaskStageSnapshot; use super::ai_result_reference_snapshot_type::AiResultReferenceSnapshot; +use super::ai_task_kind_type::AiTaskKind; +use super::ai_task_stage_snapshot_type::AiTaskStageSnapshot; +use super::ai_task_status_type::AiTaskStatus; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -22,23 +17,21 @@ pub struct AiTaskSnapshot { pub owner_user_id: String, pub request_label: String, pub source_module: String, - pub source_entity_id: Option::, - pub request_payload_json: Option::, + pub source_entity_id: Option, + pub request_payload_json: Option, pub status: AiTaskStatus, - pub failure_message: Option::, - pub stages: Vec::, - pub result_references: Vec::, - pub latest_text_output: Option::, - pub latest_structured_payload_json: Option::, + pub failure_message: Option, + pub stages: Vec, + pub result_references: Vec, + pub latest_text_output: Option, + pub latest_structured_payload_json: Option, pub version: u32, pub created_at_micros: i64, - pub started_at_micros: Option::, - pub completed_at_micros: Option::, + pub started_at_micros: Option, + pub completed_at_micros: Option, pub updated_at_micros: i64, } - impl __sdk::InModule for AiTaskSnapshot { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/ai_task_stage_blueprint_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/ai_task_stage_blueprint_type.rs index 366ca586..8ed04d04 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/ai_task_stage_blueprint_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/ai_task_stage_blueprint_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::ai_task_stage_kind_type::AiTaskStageKind; @@ -20,8 +15,6 @@ pub struct AiTaskStageBlueprint { pub order: u32, } - impl __sdk::InModule for AiTaskStageBlueprint { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/ai_task_stage_kind_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/ai_task_stage_kind_type.rs index 679241ae..1d7405de 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/ai_task_stage_kind_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/ai_task_stage_kind_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -22,12 +17,8 @@ pub enum AiTaskStageKind { NormalizeResult, PersistResult, - } - - impl __sdk::InModule for AiTaskStageKind { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/ai_task_stage_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/ai_task_stage_snapshot_type.rs index 9d449d38..30cdb845 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/ai_task_stage_snapshot_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/ai_task_stage_snapshot_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::ai_task_stage_kind_type::AiTaskStageKind; use super::ai_task_stage_status_type::AiTaskStageStatus; @@ -20,15 +15,13 @@ pub struct AiTaskStageSnapshot { pub detail: String, pub order: u32, pub status: AiTaskStageStatus, - pub text_output: Option::, - pub structured_payload_json: Option::, - pub warning_messages: Vec::, - pub started_at_micros: Option::, - pub completed_at_micros: Option::, + pub text_output: Option, + pub structured_payload_json: Option, + pub warning_messages: Vec, + pub started_at_micros: Option, + pub completed_at_micros: Option, } - impl __sdk::InModule for AiTaskStageSnapshot { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/ai_task_stage_start_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/ai_task_stage_start_input_type.rs index 8571c6d8..956fff88 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/ai_task_stage_start_input_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/ai_task_stage_start_input_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::ai_task_stage_kind_type::AiTaskStageKind; @@ -19,8 +14,6 @@ pub struct AiTaskStageStartInput { pub started_at_micros: i64, } - impl __sdk::InModule for AiTaskStageStartInput { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/ai_task_stage_status_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/ai_task_stage_status_type.rs index 3f60897b..e1a28d7c 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/ai_task_stage_status_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/ai_task_stage_status_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -20,12 +15,8 @@ pub enum AiTaskStageStatus { Completed, Skipped, - } - - impl __sdk::InModule for AiTaskStageStatus { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/ai_task_stage_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/ai_task_stage_type.rs index 56a4094e..f4c902de 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/ai_task_stage_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/ai_task_stage_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::ai_task_stage_kind_type::AiTaskStageKind; use super::ai_task_stage_status_type::AiTaskStageStatus; @@ -22,19 +17,17 @@ pub struct AiTaskStage { pub detail: String, pub stage_order: u32, pub status: AiTaskStageStatus, - pub text_output: Option::, - pub structured_payload_json: Option::, - pub warning_messages: Vec::, - pub started_at: Option::<__sdk::Timestamp>, - pub completed_at: Option::<__sdk::Timestamp>, + pub text_output: Option, + pub structured_payload_json: Option, + pub warning_messages: Vec, + pub started_at: Option<__sdk::Timestamp>, + pub completed_at: Option<__sdk::Timestamp>, } - impl __sdk::InModule for AiTaskStage { type Module = super::RemoteModule; } - /// Column accessor struct for the table `AiTaskStage`. /// /// Provides typed access to columns for query building. @@ -46,11 +39,11 @@ pub struct AiTaskStageCols { pub detail: __sdk::__query_builder::Col, pub stage_order: __sdk::__query_builder::Col, pub status: __sdk::__query_builder::Col, - pub text_output: __sdk::__query_builder::Col>, - pub structured_payload_json: __sdk::__query_builder::Col>, - pub warning_messages: __sdk::__query_builder::Col>, - pub started_at: __sdk::__query_builder::Col>, - pub completed_at: __sdk::__query_builder::Col>, + pub text_output: __sdk::__query_builder::Col>, + pub structured_payload_json: __sdk::__query_builder::Col>, + pub warning_messages: __sdk::__query_builder::Col>, + pub started_at: __sdk::__query_builder::Col>, + pub completed_at: __sdk::__query_builder::Col>, } impl __sdk::__query_builder::HasCols for AiTaskStage { @@ -65,11 +58,13 @@ impl __sdk::__query_builder::HasCols for AiTaskStage { stage_order: __sdk::__query_builder::Col::new(table_name, "stage_order"), status: __sdk::__query_builder::Col::new(table_name, "status"), text_output: __sdk::__query_builder::Col::new(table_name, "text_output"), - structured_payload_json: __sdk::__query_builder::Col::new(table_name, "structured_payload_json"), + structured_payload_json: __sdk::__query_builder::Col::new( + table_name, + "structured_payload_json", + ), warning_messages: __sdk::__query_builder::Col::new(table_name, "warning_messages"), started_at: __sdk::__query_builder::Col::new(table_name, "started_at"), completed_at: __sdk::__query_builder::Col::new(table_name, "completed_at"), - } } } @@ -88,10 +83,8 @@ impl __sdk::__query_builder::HasIxCols for AiTaskStage { AiTaskStageIxCols { task_id: __sdk::__query_builder::IxCol::new(table_name, "task_id"), task_stage_id: __sdk::__query_builder::IxCol::new(table_name, "task_stage_id"), - } } } impl __sdk::__query_builder::CanBeLookupTable for AiTaskStage {} - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/ai_task_start_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/ai_task_start_input_type.rs index 14fa5acb..d2145e81 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/ai_task_start_input_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/ai_task_start_input_type.rs @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -17,8 +11,6 @@ pub struct AiTaskStartInput { pub started_at_micros: i64, } - impl __sdk::InModule for AiTaskStartInput { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/ai_task_status_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/ai_task_status_type.rs index 58f1f7a2..3c59cd6a 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/ai_task_status_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/ai_task_status_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -22,12 +17,8 @@ pub enum AiTaskStatus { Failed, Cancelled, - } - - impl __sdk::InModule for AiTaskStatus { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/ai_task_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/ai_task_type.rs index 96d4077f..6b2845fc 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/ai_task_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/ai_task_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::ai_task_kind_type::AiTaskKind; use super::ai_task_status_type::AiTaskStatus; @@ -20,25 +15,23 @@ pub struct AiTask { pub owner_user_id: String, pub request_label: String, pub source_module: String, - pub source_entity_id: Option::, - pub request_payload_json: Option::, + pub source_entity_id: Option, + pub request_payload_json: Option, pub status: AiTaskStatus, - pub failure_message: Option::, - pub latest_text_output: Option::, - pub latest_structured_payload_json: Option::, + pub failure_message: Option, + pub latest_text_output: Option, + pub latest_structured_payload_json: Option, pub version: u32, pub created_at: __sdk::Timestamp, - pub started_at: Option::<__sdk::Timestamp>, - pub completed_at: Option::<__sdk::Timestamp>, + pub started_at: Option<__sdk::Timestamp>, + pub completed_at: Option<__sdk::Timestamp>, pub updated_at: __sdk::Timestamp, } - impl __sdk::InModule for AiTask { type Module = super::RemoteModule; } - /// Column accessor struct for the table `AiTask`. /// /// Provides typed access to columns for query building. @@ -48,16 +41,16 @@ pub struct AiTaskCols { pub owner_user_id: __sdk::__query_builder::Col, pub request_label: __sdk::__query_builder::Col, pub source_module: __sdk::__query_builder::Col, - pub source_entity_id: __sdk::__query_builder::Col>, - pub request_payload_json: __sdk::__query_builder::Col>, + pub source_entity_id: __sdk::__query_builder::Col>, + pub request_payload_json: __sdk::__query_builder::Col>, pub status: __sdk::__query_builder::Col, - pub failure_message: __sdk::__query_builder::Col>, - pub latest_text_output: __sdk::__query_builder::Col>, - pub latest_structured_payload_json: __sdk::__query_builder::Col>, + pub failure_message: __sdk::__query_builder::Col>, + pub latest_text_output: __sdk::__query_builder::Col>, + pub latest_structured_payload_json: __sdk::__query_builder::Col>, pub version: __sdk::__query_builder::Col, pub created_at: __sdk::__query_builder::Col, - pub started_at: __sdk::__query_builder::Col>, - pub completed_at: __sdk::__query_builder::Col>, + pub started_at: __sdk::__query_builder::Col>, + pub completed_at: __sdk::__query_builder::Col>, pub updated_at: __sdk::__query_builder::Col, } @@ -71,17 +64,22 @@ impl __sdk::__query_builder::HasCols for AiTask { request_label: __sdk::__query_builder::Col::new(table_name, "request_label"), source_module: __sdk::__query_builder::Col::new(table_name, "source_module"), source_entity_id: __sdk::__query_builder::Col::new(table_name, "source_entity_id"), - request_payload_json: __sdk::__query_builder::Col::new(table_name, "request_payload_json"), + request_payload_json: __sdk::__query_builder::Col::new( + table_name, + "request_payload_json", + ), status: __sdk::__query_builder::Col::new(table_name, "status"), failure_message: __sdk::__query_builder::Col::new(table_name, "failure_message"), latest_text_output: __sdk::__query_builder::Col::new(table_name, "latest_text_output"), - latest_structured_payload_json: __sdk::__query_builder::Col::new(table_name, "latest_structured_payload_json"), + latest_structured_payload_json: __sdk::__query_builder::Col::new( + table_name, + "latest_structured_payload_json", + ), version: __sdk::__query_builder::Col::new(table_name, "version"), created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), started_at: __sdk::__query_builder::Col::new(table_name, "started_at"), completed_at: __sdk::__query_builder::Col::new(table_name, "completed_at"), updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"), - } } } @@ -104,10 +102,8 @@ impl __sdk::__query_builder::HasIxCols for AiTask { status: __sdk::__query_builder::IxCol::new(table_name, "status"), task_id: __sdk::__query_builder::IxCol::new(table_name, "task_id"), task_kind: __sdk::__query_builder::IxCol::new(table_name, "task_kind"), - } } } impl __sdk::__query_builder::CanBeLookupTable for AiTask {} - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/ai_text_chunk_append_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/ai_text_chunk_append_input_type.rs index 11b5da68..0f462690 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/ai_text_chunk_append_input_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/ai_text_chunk_append_input_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::ai_task_stage_kind_type::AiTaskStageKind; @@ -21,8 +16,6 @@ pub struct AiTextChunkAppendInput { pub created_at_micros: i64, } - impl __sdk::InModule for AiTextChunkAppendInput { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/ai_text_chunk_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/ai_text_chunk_snapshot_type.rs index 81cb2ce9..f386071c 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/ai_text_chunk_snapshot_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/ai_text_chunk_snapshot_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::ai_task_stage_kind_type::AiTaskStageKind; @@ -22,8 +17,6 @@ pub struct AiTextChunkSnapshot { pub created_at_micros: i64, } - impl __sdk::InModule for AiTextChunkSnapshot { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/ai_text_chunk_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/ai_text_chunk_type.rs index df60c3a7..8a1a8c93 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/ai_text_chunk_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/ai_text_chunk_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::ai_task_stage_kind_type::AiTaskStageKind; @@ -23,12 +18,10 @@ pub struct AiTextChunk { pub created_at: __sdk::Timestamp, } - impl __sdk::InModule for AiTextChunk { type Module = super::RemoteModule; } - /// Column accessor struct for the table `AiTextChunk`. /// /// Provides typed access to columns for query building. @@ -53,7 +46,6 @@ impl __sdk::__query_builder::HasCols for AiTextChunk { sequence: __sdk::__query_builder::Col::new(table_name, "sequence"), delta_text: __sdk::__query_builder::Col::new(table_name, "delta_text"), created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), - } } } @@ -72,10 +64,8 @@ impl __sdk::__query_builder::HasIxCols for AiTextChunk { AiTextChunkIxCols { task_id: __sdk::__query_builder::IxCol::new(table_name, "task_id"), text_chunk_row_id: __sdk::__query_builder::IxCol::new(table_name, "text_chunk_row_id"), - } } } impl __sdk::__query_builder::CanBeLookupTable for AiTextChunk {} - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/append_ai_text_chunk_and_return_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/append_ai_text_chunk_and_return_procedure.rs index 2edd4cbc..11323392 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/append_ai_text_chunk_and_return_procedure.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/append_ai_text_chunk_and_return_procedure.rs @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::ai_text_chunk_append_input_type::AiTextChunkAppendInput; use super::ai_task_procedure_result_type::AiTaskProcedureResult; +use super::ai_text_chunk_append_input_type::AiTextChunkAppendInput; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] - struct AppendAiTextChunkAndReturnArgs { +struct AppendAiTextChunkAndReturnArgs { pub input: AiTextChunkAppendInput, } - impl __sdk::InModule for AppendAiTextChunkAndReturnArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for AppendAiTextChunkAndReturnArgs { /// /// Implemented for [`super::RemoteProcedures`]. pub trait append_ai_text_chunk_and_return { - fn append_ai_text_chunk_and_return(&self, input: AiTextChunkAppendInput, -) { - self.append_ai_text_chunk_and_return_then(input, |_, _| {}); + fn append_ai_text_chunk_and_return(&self, input: AiTextChunkAppendInput) { + self.append_ai_text_chunk_and_return_then(input, |_, _| {}); } fn append_ai_text_chunk_and_return_then( &self, input: AiTextChunkAppendInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl append_ai_text_chunk_and_return for super::RemoteProcedures { &self, input: AiTextChunkAppendInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, AiTaskProcedureResult>( - "append_ai_text_chunk_and_return", - AppendAiTextChunkAndReturnArgs { input, }, - __callback, - ); + self.imp + .invoke_procedure_with_callback::<_, AiTaskProcedureResult>( + "append_ai_text_chunk_and_return", + AppendAiTextChunkAndReturnArgs { 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 index e76eac6e..bba4c841 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 { +struct ApplyChapterProgressionLedgerEntryAndReturnArgs { pub input: ChapterProgressionLedgerInput, } - impl __sdk::InModule for ApplyChapterProgressionLedgerEntryAndReturnArgs { type Module = super::RemoteModule; } @@ -28,16 +22,22 @@ impl __sdk::InModule for ApplyChapterProgressionLedgerEntryAndReturnArgs { /// /// 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( + &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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +46,17 @@ impl apply_chapter_progression_ledger_entry_and_return for super::RemoteProcedur &self, input: ChapterProgressionLedgerInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __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, - ); + 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 index 04f54e54..98f821ef 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::chapter_progression_ledger_input_type::ChapterProgressionLedgerInput; @@ -19,10 +14,8 @@ pub(super) struct ApplyChapterProgressionLedgerEntryArgs { impl From for super::Reducer { fn from(args: ApplyChapterProgressionLedgerEntryArgs) -> Self { - Self::ApplyChapterProgressionLedgerEntry { - input: args.input, -} -} + Self::ApplyChapterProgressionLedgerEntry { input: args.input } + } } impl __sdk::InModule for ApplyChapterProgressionLedgerEntryArgs { @@ -40,9 +33,11 @@ pub trait apply_chapter_progression_ledger_entry { /// 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, |_, _| {}) + 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, @@ -70,7 +65,9 @@ impl apply_chapter_progression_ledger_entry for super::RemoteReducers { + Send + 'static, ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback(ApplyChapterProgressionLedgerEntryArgs { input, }, callback) + 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 index 4270f52a..91f7d2c0 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::inventory_mutation_input_type::InventoryMutationInput; @@ -19,10 +14,8 @@ pub(super) struct ApplyInventoryMutationArgs { impl From for super::Reducer { fn from(args: ApplyInventoryMutationArgs) -> Self { - Self::ApplyInventoryMutation { - input: args.input, -} -} + Self::ApplyInventoryMutation { input: args.input } + } } impl __sdk::InModule for ApplyInventoryMutationArgs { @@ -40,9 +33,8 @@ pub trait apply_inventory_mutation { /// 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, |_, _| {}) + 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, @@ -70,7 +62,7 @@ impl apply_inventory_mutation for super::RemoteReducers { + Send + 'static, ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback(ApplyInventoryMutationArgs { input, }, callback) + 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 index 6976f6aa..afb452b5 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::quest_signal_apply_input_type::QuestSignalApplyInput; @@ -19,10 +14,8 @@ pub(super) struct ApplyQuestSignalArgs { impl From for super::Reducer { fn from(args: ApplyQuestSignalArgs) -> Self { - Self::ApplyQuestSignal { - input: args.input, -} -} + Self::ApplyQuestSignal { input: args.input } + } } impl __sdk::InModule for ApplyQuestSignalArgs { @@ -40,9 +33,8 @@ pub trait apply_quest_signal { /// 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, |_, _| {}) + 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, @@ -70,7 +62,7 @@ impl apply_quest_signal for super::RemoteReducers { + Send + 'static, ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback(ApplyQuestSignalArgs { input, }, callback) + self.imp + .invoke_reducer_with_callback(ApplyQuestSignalArgs { input }, callback) } } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/asset_entity_binding_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/asset_entity_binding_input_type.rs index 10dab835..10a39937 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/asset_entity_binding_input_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/asset_entity_binding_input_type.rs @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -19,13 +13,11 @@ pub struct AssetEntityBindingInput { pub entity_id: String, pub slot: String, pub asset_kind: String, - pub owner_user_id: Option::, - pub profile_id: Option::, + pub owner_user_id: Option, + pub profile_id: Option, pub updated_at_micros: i64, } - impl __sdk::InModule for AssetEntityBindingInput { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/asset_entity_binding_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/asset_entity_binding_procedure_result_type.rs index 73eff3a6..1c51596f 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/asset_entity_binding_procedure_result_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/asset_entity_binding_procedure_result_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::asset_entity_binding_snapshot_type::AssetEntityBindingSnapshot; @@ -15,12 +10,10 @@ use super::asset_entity_binding_snapshot_type::AssetEntityBindingSnapshot; #[sats(crate = __lib)] pub struct AssetEntityBindingProcedureResult { pub ok: bool, - pub record: Option::, - pub error_message: Option::, + pub record: Option, + pub error_message: Option, } - impl __sdk::InModule for AssetEntityBindingProcedureResult { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/asset_entity_binding_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/asset_entity_binding_snapshot_type.rs index 862d1b14..d559ea04 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/asset_entity_binding_snapshot_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/asset_entity_binding_snapshot_type.rs @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -19,14 +13,12 @@ pub struct AssetEntityBindingSnapshot { pub entity_id: String, pub slot: String, pub asset_kind: String, - pub owner_user_id: Option::, - pub profile_id: Option::, + pub owner_user_id: Option, + pub profile_id: Option, pub created_at_micros: i64, pub updated_at_micros: i64, } - impl __sdk::InModule for AssetEntityBindingSnapshot { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/asset_entity_binding_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/asset_entity_binding_type.rs index 8f5423b6..f12154e1 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/asset_entity_binding_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/asset_entity_binding_type.rs @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -19,18 +13,16 @@ pub struct AssetEntityBinding { pub entity_id: String, pub slot: String, pub asset_kind: String, - pub owner_user_id: Option::, - pub profile_id: Option::, + pub owner_user_id: Option, + pub profile_id: Option, pub created_at: __sdk::Timestamp, pub updated_at: __sdk::Timestamp, } - impl __sdk::InModule for AssetEntityBinding { type Module = super::RemoteModule; } - /// Column accessor struct for the table `AssetEntityBinding`. /// /// Provides typed access to columns for query building. @@ -41,8 +33,8 @@ pub struct AssetEntityBindingCols { pub entity_id: __sdk::__query_builder::Col, pub slot: __sdk::__query_builder::Col, pub asset_kind: __sdk::__query_builder::Col, - pub owner_user_id: __sdk::__query_builder::Col>, - pub profile_id: __sdk::__query_builder::Col>, + pub owner_user_id: __sdk::__query_builder::Col>, + pub profile_id: __sdk::__query_builder::Col>, pub created_at: __sdk::__query_builder::Col, pub updated_at: __sdk::__query_builder::Col, } @@ -61,7 +53,6 @@ impl __sdk::__query_builder::HasCols for AssetEntityBinding { profile_id: __sdk::__query_builder::Col::new(table_name, "profile_id"), created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"), - } } } @@ -80,10 +71,8 @@ impl __sdk::__query_builder::HasIxCols for AssetEntityBinding { AssetEntityBindingIxCols { asset_object_id: __sdk::__query_builder::IxCol::new(table_name, "asset_object_id"), binding_id: __sdk::__query_builder::IxCol::new(table_name, "binding_id"), - } } } impl __sdk::__query_builder::CanBeLookupTable for AssetEntityBinding {} - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/asset_object_access_policy_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/asset_object_access_policy_type.rs index 3d6203bb..17d02930 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/asset_object_access_policy_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/asset_object_access_policy_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,12 +11,8 @@ pub enum AssetObjectAccessPolicy { Private, PublicRead, - } - - impl __sdk::InModule for AssetObjectAccessPolicy { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/asset_object_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/asset_object_procedure_result_type.rs index ea327af9..9ccf22ed 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/asset_object_procedure_result_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/asset_object_procedure_result_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::asset_object_upsert_snapshot_type::AssetObjectUpsertSnapshot; @@ -15,12 +10,10 @@ use super::asset_object_upsert_snapshot_type::AssetObjectUpsertSnapshot; #[sats(crate = __lib)] pub struct AssetObjectProcedureResult { pub ok: bool, - pub record: Option::, - pub error_message: Option::, + pub record: Option, + pub error_message: Option, } - impl __sdk::InModule for AssetObjectProcedureResult { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/asset_object_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/asset_object_type.rs index 75935935..c9d57ac5 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/asset_object_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/asset_object_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::asset_object_access_policy_type::AssetObjectAccessPolicy; @@ -18,25 +13,23 @@ pub struct AssetObject { pub bucket: String, pub object_key: String, pub access_policy: AssetObjectAccessPolicy, - pub content_type: Option::, + pub content_type: Option, pub content_length: u64, - pub content_hash: Option::, + pub content_hash: Option, pub version: u32, - pub source_job_id: Option::, - pub owner_user_id: Option::, - pub profile_id: Option::, - pub entity_id: Option::, + pub source_job_id: Option, + pub owner_user_id: Option, + pub profile_id: Option, + pub entity_id: Option, pub asset_kind: String, pub created_at: __sdk::Timestamp, pub updated_at: __sdk::Timestamp, } - impl __sdk::InModule for AssetObject { type Module = super::RemoteModule; } - /// Column accessor struct for the table `AssetObject`. /// /// Provides typed access to columns for query building. @@ -45,14 +38,14 @@ pub struct AssetObjectCols { pub bucket: __sdk::__query_builder::Col, pub object_key: __sdk::__query_builder::Col, pub access_policy: __sdk::__query_builder::Col, - pub content_type: __sdk::__query_builder::Col>, + pub content_type: __sdk::__query_builder::Col>, pub content_length: __sdk::__query_builder::Col, - pub content_hash: __sdk::__query_builder::Col>, + pub content_hash: __sdk::__query_builder::Col>, pub version: __sdk::__query_builder::Col, - pub source_job_id: __sdk::__query_builder::Col>, - pub owner_user_id: __sdk::__query_builder::Col>, - pub profile_id: __sdk::__query_builder::Col>, - pub entity_id: __sdk::__query_builder::Col>, + pub source_job_id: __sdk::__query_builder::Col>, + pub owner_user_id: __sdk::__query_builder::Col>, + pub profile_id: __sdk::__query_builder::Col>, + pub entity_id: __sdk::__query_builder::Col>, pub asset_kind: __sdk::__query_builder::Col, pub created_at: __sdk::__query_builder::Col, pub updated_at: __sdk::__query_builder::Col, @@ -77,7 +70,6 @@ impl __sdk::__query_builder::HasCols for AssetObject { asset_kind: __sdk::__query_builder::Col::new(table_name, "asset_kind"), created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"), - } } } @@ -96,10 +88,8 @@ impl __sdk::__query_builder::HasIxCols for AssetObject { AssetObjectIxCols { asset_kind: __sdk::__query_builder::IxCol::new(table_name, "asset_kind"), asset_object_id: __sdk::__query_builder::IxCol::new(table_name, "asset_object_id"), - } } } impl __sdk::__query_builder::CanBeLookupTable for AssetObject {} - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/asset_object_upsert_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/asset_object_upsert_input_type.rs index 7e48cffa..85fcadc6 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/asset_object_upsert_input_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/asset_object_upsert_input_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::asset_object_access_policy_type::AssetObjectAccessPolicy; @@ -18,20 +13,18 @@ pub struct AssetObjectUpsertInput { pub bucket: String, pub object_key: String, pub access_policy: AssetObjectAccessPolicy, - pub content_type: Option::, + pub content_type: Option, pub content_length: u64, - pub content_hash: Option::, + pub content_hash: Option, pub version: u32, - pub source_job_id: Option::, - pub owner_user_id: Option::, - pub profile_id: Option::, - pub entity_id: Option::, + pub source_job_id: Option, + pub owner_user_id: Option, + pub profile_id: Option, + pub entity_id: Option, pub asset_kind: String, pub updated_at_micros: i64, } - impl __sdk::InModule for AssetObjectUpsertInput { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/asset_object_upsert_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/asset_object_upsert_snapshot_type.rs index 7b5d3860..b349f18d 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/asset_object_upsert_snapshot_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/asset_object_upsert_snapshot_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::asset_object_access_policy_type::AssetObjectAccessPolicy; @@ -18,21 +13,19 @@ pub struct AssetObjectUpsertSnapshot { pub bucket: String, pub object_key: String, pub access_policy: AssetObjectAccessPolicy, - pub content_type: Option::, + pub content_type: Option, pub content_length: u64, - pub content_hash: Option::, + pub content_hash: Option, pub version: u32, - pub source_job_id: Option::, - pub owner_user_id: Option::, - pub profile_id: Option::, - pub entity_id: Option::, + pub source_job_id: Option, + pub owner_user_id: Option, + pub profile_id: Option, + pub entity_id: Option, pub asset_kind: String, pub created_at_micros: i64, pub updated_at_micros: i64, } - impl __sdk::InModule for AssetObjectUpsertSnapshot { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/attach_ai_result_reference_and_return_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/attach_ai_result_reference_and_return_procedure.rs index c7eb0e22..2f3edbe2 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/attach_ai_result_reference_and_return_procedure.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/attach_ai_result_reference_and_return_procedure.rs @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::ai_task_procedure_result_type::AiTaskProcedureResult; use super::ai_result_reference_input_type::AiResultReferenceInput; +use super::ai_task_procedure_result_type::AiTaskProcedureResult; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] - struct AttachAiResultReferenceAndReturnArgs { +struct AttachAiResultReferenceAndReturnArgs { pub input: AiResultReferenceInput, } - impl __sdk::InModule for AttachAiResultReferenceAndReturnArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for AttachAiResultReferenceAndReturnArgs { /// /// Implemented for [`super::RemoteProcedures`]. pub trait attach_ai_result_reference_and_return { - fn attach_ai_result_reference_and_return(&self, input: AiResultReferenceInput, -) { - self.attach_ai_result_reference_and_return_then(input, |_, _| {}); + fn attach_ai_result_reference_and_return(&self, input: AiResultReferenceInput) { + self.attach_ai_result_reference_and_return_then(input, |_, _| {}); } fn attach_ai_result_reference_and_return_then( &self, input: AiResultReferenceInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl attach_ai_result_reference_and_return for super::RemoteProcedures { &self, input: AiResultReferenceInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, AiTaskProcedureResult>( - "attach_ai_result_reference_and_return", - AttachAiResultReferenceAndReturnArgs { input, }, - __callback, - ); + self.imp + .invoke_procedure_with_callback::<_, AiTaskProcedureResult>( + "attach_ai_result_reference_and_return", + AttachAiResultReferenceAndReturnArgs { input }, + __callback, + ); } } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/auth_identity_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/auth_identity_type.rs index 27a33d40..324c5681 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/auth_identity_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/auth_identity_type.rs @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -17,18 +11,16 @@ pub struct AuthIdentity { pub user_id: String, pub provider: String, pub provider_uid: String, - pub provider_union_id: Option::, - pub phone_e_164: Option::, - pub display_name: Option::, - pub avatar_url: Option::, + pub provider_union_id: Option, + pub phone_e_164: Option, + pub display_name: Option, + pub avatar_url: Option, } - impl __sdk::InModule for AuthIdentity { type Module = super::RemoteModule; } - /// Column accessor struct for the table `AuthIdentity`. /// /// Provides typed access to columns for query building. @@ -37,10 +29,10 @@ pub struct AuthIdentityCols { pub user_id: __sdk::__query_builder::Col, pub provider: __sdk::__query_builder::Col, pub provider_uid: __sdk::__query_builder::Col, - pub provider_union_id: __sdk::__query_builder::Col>, - pub phone_e_164: __sdk::__query_builder::Col>, - pub display_name: __sdk::__query_builder::Col>, - pub avatar_url: __sdk::__query_builder::Col>, + pub provider_union_id: __sdk::__query_builder::Col>, + pub phone_e_164: __sdk::__query_builder::Col>, + pub display_name: __sdk::__query_builder::Col>, + pub avatar_url: __sdk::__query_builder::Col>, } impl __sdk::__query_builder::HasCols for AuthIdentity { @@ -55,7 +47,6 @@ impl __sdk::__query_builder::HasCols for AuthIdentity { phone_e_164: __sdk::__query_builder::Col::new(table_name, "phone_e_164"), display_name: __sdk::__query_builder::Col::new(table_name, "display_name"), avatar_url: __sdk::__query_builder::Col::new(table_name, "avatar_url"), - } } } @@ -74,10 +65,8 @@ impl __sdk::__query_builder::HasIxCols for AuthIdentity { AuthIdentityIxCols { identity_id: __sdk::__query_builder::IxCol::new(table_name, "identity_id"), user_id: __sdk::__query_builder::IxCol::new(table_name, "user_id"), - } } } impl __sdk::__query_builder::CanBeLookupTable for AuthIdentity {} - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/auth_store_snapshot_import_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/auth_store_snapshot_import_procedure_result_type.rs index 5ab89cf2..81d27b2c 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/auth_store_snapshot_import_procedure_result_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/auth_store_snapshot_import_procedure_result_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::auth_store_snapshot_import_record_type::AuthStoreSnapshotImportRecord; @@ -15,12 +10,10 @@ use super::auth_store_snapshot_import_record_type::AuthStoreSnapshotImportRecord #[sats(crate = __lib)] pub struct AuthStoreSnapshotImportProcedureResult { pub ok: bool, - pub record: Option::, - pub error_message: Option::, + pub record: Option, + pub error_message: Option, } - impl __sdk::InModule for AuthStoreSnapshotImportProcedureResult { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/auth_store_snapshot_import_record_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/auth_store_snapshot_import_record_type.rs index 80effd2b..43f97584 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/auth_store_snapshot_import_record_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/auth_store_snapshot_import_record_type.rs @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -18,8 +12,6 @@ pub struct AuthStoreSnapshotImportRecord { pub imported_refresh_session_count: u32, } - impl __sdk::InModule for AuthStoreSnapshotImportRecord { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/auth_store_snapshot_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/auth_store_snapshot_procedure_result_type.rs index 8c8dbf3e..af1cdd4d 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/auth_store_snapshot_procedure_result_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/auth_store_snapshot_procedure_result_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::auth_store_snapshot_record_type::AuthStoreSnapshotRecord; @@ -15,12 +10,10 @@ use super::auth_store_snapshot_record_type::AuthStoreSnapshotRecord; #[sats(crate = __lib)] pub struct AuthStoreSnapshotProcedureResult { pub ok: bool, - pub record: Option::, - pub error_message: Option::, + pub record: Option, + pub error_message: Option, } - impl __sdk::InModule for AuthStoreSnapshotProcedureResult { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/auth_store_snapshot_record_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/auth_store_snapshot_record_type.rs index ee5e4262..a70ecfd8 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/auth_store_snapshot_record_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/auth_store_snapshot_record_type.rs @@ -2,23 +2,15 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +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 AuthStoreSnapshotRecord { - pub snapshot_json: Option::, - pub updated_at_micros: Option::, + pub snapshot_json: Option, + pub updated_at_micros: Option, } - impl __sdk::InModule for AuthStoreSnapshotRecord { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/auth_store_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/auth_store_snapshot_type.rs index af600737..73beb796 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/auth_store_snapshot_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/auth_store_snapshot_type.rs @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -18,12 +12,10 @@ pub struct AuthStoreSnapshot { pub updated_at: __sdk::Timestamp, } - impl __sdk::InModule for AuthStoreSnapshot { type Module = super::RemoteModule; } - /// Column accessor struct for the table `AuthStoreSnapshot`. /// /// Provides typed access to columns for query building. @@ -40,7 +32,6 @@ impl __sdk::__query_builder::HasCols for AuthStoreSnapshot { snapshot_id: __sdk::__query_builder::Col::new(table_name, "snapshot_id"), snapshot_json: __sdk::__query_builder::Col::new(table_name, "snapshot_json"), updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"), - } } } @@ -57,10 +48,8 @@ impl __sdk::__query_builder::HasIxCols for AuthStoreSnapshot { fn ix_cols(table_name: &'static str) -> Self::IxCols { AuthStoreSnapshotIxCols { snapshot_id: __sdk::__query_builder::IxCol::new(table_name, "snapshot_id"), - } } } impl __sdk::__query_builder::CanBeLookupTable for AuthStoreSnapshot {} - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/auth_store_snapshot_upsert_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/auth_store_snapshot_upsert_input_type.rs index 17e2aa35..f116b6aa 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/auth_store_snapshot_upsert_input_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/auth_store_snapshot_upsert_input_type.rs @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -17,8 +11,6 @@ pub struct AuthStoreSnapshotUpsertInput { pub updated_at_micros: i64, } - impl __sdk::InModule for AuthStoreSnapshotUpsertInput { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/battle_mode_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/battle_mode_type.rs index 1961ac69..a88c25f4 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/battle_mode_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/battle_mode_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,12 +11,8 @@ pub enum BattleMode { Fight, Spar, - } - - impl __sdk::InModule for BattleMode { 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 index 104b96cb..6a176e2d 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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; @@ -19,7 +14,7 @@ pub struct BattleStateInput { pub story_session_id: String, pub runtime_session_id: String, pub actor_user_id: String, - pub chapter_id: Option::, + pub chapter_id: Option, pub target_npc_id: String, pub target_name: String, pub battle_mode: BattleMode, @@ -30,12 +25,10 @@ pub struct BattleStateInput { pub target_hp: i32, pub target_max_hp: i32, pub experience_reward: u32, - pub reward_items: Vec::, + 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 index cadc80d8..e66352ad 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::battle_state_snapshot_type::BattleStateSnapshot; @@ -15,12 +10,10 @@ use super::battle_state_snapshot_type::BattleStateSnapshot; #[sats(crate = __lib)] pub struct BattleStateProcedureResult { pub ok: bool, - pub snapshot: Option::, - pub error_message: Option::, + 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 index 6b9298d4..53053cca 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,8 +10,6 @@ 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 index c20ec25c..925d8468 100644 --- 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 @@ -2,17 +2,12 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::battle_mode_type::BattleMode; use super::battle_status_type::BattleStatus; -use super::runtime_item_reward_item_snapshot_type::RuntimeItemRewardItemSnapshot; 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)] @@ -21,7 +16,7 @@ pub struct BattleStateSnapshot { pub story_session_id: String, pub runtime_session_id: String, pub actor_user_id: String, - pub chapter_id: Option::, + pub chapter_id: Option, pub target_npc_id: String, pub target_name: String, pub battle_mode: BattleMode, @@ -33,11 +28,11 @@ pub struct BattleStateSnapshot { pub target_hp: i32, pub target_max_hp: i32, pub experience_reward: u32, - pub reward_items: Vec::, + 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_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, @@ -46,8 +41,6 @@ pub struct BattleStateSnapshot { 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/battle_state_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/battle_state_type.rs index 1b7e0420..9d9b852f 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/battle_state_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/battle_state_type.rs @@ -2,17 +2,12 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::battle_mode_type::BattleMode; use super::battle_status_type::BattleStatus; -use super::runtime_item_reward_item_snapshot_type::RuntimeItemRewardItemSnapshot; 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)] @@ -21,7 +16,7 @@ pub struct BattleState { pub story_session_id: String, pub runtime_session_id: String, pub actor_user_id: String, - pub chapter_id: Option::, + pub chapter_id: Option, pub target_npc_id: String, pub target_name: String, pub battle_mode: BattleMode, @@ -33,11 +28,11 @@ pub struct BattleState { pub target_hp: i32, pub target_max_hp: i32, pub experience_reward: u32, - pub reward_items: Vec::, + 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_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, @@ -46,12 +41,10 @@ pub struct BattleState { pub updated_at: __sdk::Timestamp, } - impl __sdk::InModule for BattleState { type Module = super::RemoteModule; } - /// Column accessor struct for the table `BattleState`. /// /// Provides typed access to columns for query building. @@ -60,7 +53,7 @@ pub struct BattleStateCols { pub story_session_id: __sdk::__query_builder::Col, pub runtime_session_id: __sdk::__query_builder::Col, pub actor_user_id: __sdk::__query_builder::Col, - pub chapter_id: __sdk::__query_builder::Col>, + pub chapter_id: __sdk::__query_builder::Col>, pub target_npc_id: __sdk::__query_builder::Col, pub target_name: __sdk::__query_builder::Col, pub battle_mode: __sdk::__query_builder::Col, @@ -72,11 +65,11 @@ pub struct BattleStateCols { pub target_hp: __sdk::__query_builder::Col, pub target_max_hp: __sdk::__query_builder::Col, pub experience_reward: __sdk::__query_builder::Col, - pub reward_items: __sdk::__query_builder::Col>, + pub reward_items: __sdk::__query_builder::Col>, pub turn_index: __sdk::__query_builder::Col, - pub last_action_function_id: __sdk::__query_builder::Col>, - pub last_action_text: __sdk::__query_builder::Col>, - pub last_result_text: __sdk::__query_builder::Col>, + pub last_action_function_id: __sdk::__query_builder::Col>, + pub last_action_text: __sdk::__query_builder::Col>, + pub last_result_text: __sdk::__query_builder::Col>, pub last_damage_dealt: __sdk::__query_builder::Col, pub last_damage_taken: __sdk::__query_builder::Col, pub last_outcome: __sdk::__query_builder::Col, @@ -107,7 +100,10 @@ impl __sdk::__query_builder::HasCols for BattleState { experience_reward: __sdk::__query_builder::Col::new(table_name, "experience_reward"), reward_items: __sdk::__query_builder::Col::new(table_name, "reward_items"), turn_index: __sdk::__query_builder::Col::new(table_name, "turn_index"), - last_action_function_id: __sdk::__query_builder::Col::new(table_name, "last_action_function_id"), + last_action_function_id: __sdk::__query_builder::Col::new( + table_name, + "last_action_function_id", + ), last_action_text: __sdk::__query_builder::Col::new(table_name, "last_action_text"), last_result_text: __sdk::__query_builder::Col::new(table_name, "last_result_text"), last_damage_dealt: __sdk::__query_builder::Col::new(table_name, "last_damage_dealt"), @@ -116,7 +112,6 @@ impl __sdk::__query_builder::HasCols for BattleState { version: __sdk::__query_builder::Col::new(table_name, "version"), created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"), - } } } @@ -137,12 +132,13 @@ impl __sdk::__query_builder::HasIxCols for BattleState { BattleStateIxCols { actor_user_id: __sdk::__query_builder::IxCol::new(table_name, "actor_user_id"), battle_state_id: __sdk::__query_builder::IxCol::new(table_name, "battle_state_id"), - runtime_session_id: __sdk::__query_builder::IxCol::new(table_name, "runtime_session_id"), + runtime_session_id: __sdk::__query_builder::IxCol::new( + table_name, + "runtime_session_id", + ), story_session_id: __sdk::__query_builder::IxCol::new(table_name, "story_session_id"), - } } } impl __sdk::__query_builder::CanBeLookupTable for BattleState {} - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/battle_status_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/battle_status_type.rs index e869befe..0aba4f43 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/battle_status_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/battle_status_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -18,12 +13,8 @@ pub enum BattleStatus { Resolved, Aborted, - } - - impl __sdk::InModule for BattleStatus { 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 index 75c19e04..eef3de0f 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 { +struct BeginStorySessionAndReturnArgs { pub input: StorySessionInput, } - impl __sdk::InModule for BeginStorySessionAndReturnArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for BeginStorySessionAndReturnArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl begin_story_session_and_return for super::RemoteProcedures { &self, input: StorySessionInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, StorySessionProcedureResult>( - "begin_story_session_and_return", - BeginStorySessionAndReturnArgs { input, }, - __callback, - ); + 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 index 582bb850..6a082f41 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::story_session_input_type::StorySessionInput; @@ -19,10 +14,8 @@ pub(super) struct BeginStorySessionArgs { impl From for super::Reducer { fn from(args: BeginStorySessionArgs) -> Self { - Self::BeginStorySession { - input: args.input, -} -} + Self::BeginStorySession { input: args.input } + } } impl __sdk::InModule for BeginStorySessionArgs { @@ -40,9 +33,8 @@ pub trait begin_story_session { /// 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, |_, _| {}) + 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, @@ -70,7 +62,7 @@ impl begin_story_session for super::RemoteReducers { + Send + 'static, ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback(BeginStorySessionArgs { input, }, callback) + self.imp + .invoke_reducer_with_callback(BeginStorySessionArgs { input }, callback) } } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_agent_message_kind_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_agent_message_kind_type.rs index 174e55f8..00f36e4e 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_agent_message_kind_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_agent_message_kind_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -20,12 +15,8 @@ pub enum BigFishAgentMessageKind { ActionResult, Warning, - } - - impl __sdk::InModule for BigFishAgentMessageKind { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_agent_message_role_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_agent_message_role_type.rs index 9f8a0458..d8a1a82c 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_agent_message_role_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_agent_message_role_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -18,12 +13,8 @@ pub enum BigFishAgentMessageRole { Assistant, System, - } - - impl __sdk::InModule for BigFishAgentMessageRole { type Module = super::RemoteModule; } - 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 index d6b00fc5..acc31e57 100644 --- 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 @@ -2,15 +2,10 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::big_fish_agent_message_role_type::BigFishAgentMessageRole; 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)] @@ -23,8 +18,6 @@ pub struct BigFishAgentMessageSnapshot { 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_agent_message_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_agent_message_type.rs index c55ecc3d..a5e70272 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_agent_message_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_agent_message_type.rs @@ -2,15 +2,10 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::big_fish_agent_message_role_type::BigFishAgentMessageRole; 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)] @@ -23,12 +18,10 @@ pub struct BigFishAgentMessage { pub created_at: __sdk::Timestamp, } - impl __sdk::InModule for BigFishAgentMessage { type Module = super::RemoteModule; } - /// Column accessor struct for the table `BigFishAgentMessage`. /// /// Provides typed access to columns for query building. @@ -51,7 +44,6 @@ impl __sdk::__query_builder::HasCols for BigFishAgentMessage { kind: __sdk::__query_builder::Col::new(table_name, "kind"), text: __sdk::__query_builder::Col::new(table_name, "text"), created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), - } } } @@ -70,10 +62,8 @@ impl __sdk::__query_builder::HasIxCols for BigFishAgentMessage { BigFishAgentMessageIxCols { message_id: __sdk::__query_builder::IxCol::new(table_name, "message_id"), session_id: __sdk::__query_builder::IxCol::new(table_name, "session_id"), - } } } impl __sdk::__query_builder::CanBeLookupTable for BigFishAgentMessage {} - 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 index 80ecc407..d876588e 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::big_fish_anchor_status_type::BigFishAnchorStatus; @@ -20,8 +15,6 @@ pub struct BigFishAnchorItem { 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 index 6f93262e..5d93c291 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::big_fish_anchor_item_type::BigFishAnchorItem; @@ -20,8 +15,6 @@ pub struct BigFishAnchorPack { 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 index d1ed8bb3..bcfe701e 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -20,12 +15,8 @@ pub enum BigFishAnchorStatus { 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 index c1b3429a..607a8c39 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -18,11 +12,9 @@ pub struct BigFishAssetCoverage { pub background_ready: bool, pub required_level_count: u32, pub publish_ready: bool, - pub blockers: Vec::, + 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 index ba67939a..e7589076 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::big_fish_asset_kind_type::BigFishAssetKind; @@ -17,14 +12,12 @@ 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 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_kind_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_asset_kind_type.rs index a5d6c3ed..b4c9dcd1 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_asset_kind_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_asset_kind_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -18,12 +13,8 @@ pub enum BigFishAssetKind { LevelMotion, StageBackground, - } - - impl __sdk::InModule for BigFishAssetKind { 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 index 911e51fc..200b1a6d 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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; @@ -18,16 +13,14 @@ pub struct BigFishAssetSlotSnapshot { pub slot_id: String, pub session_id: String, pub asset_kind: BigFishAssetKind, - pub level: Option::, - pub motion_key: Option::, + pub level: Option, + pub motion_key: Option, pub status: BigFishAssetStatus, - pub asset_url: Option::, + 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_asset_slot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_asset_slot_type.rs index a6cb0813..406c151d 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_asset_slot_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_asset_slot_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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; @@ -18,20 +13,18 @@ pub struct BigFishAssetSlot { pub slot_id: String, pub session_id: String, pub asset_kind: BigFishAssetKind, - pub level: Option::, - pub motion_key: Option::, + pub level: Option, + pub motion_key: Option, pub status: BigFishAssetStatus, - pub asset_url: Option::, + pub asset_url: Option, pub prompt_snapshot: String, pub updated_at: __sdk::Timestamp, } - impl __sdk::InModule for BigFishAssetSlot { type Module = super::RemoteModule; } - /// Column accessor struct for the table `BigFishAssetSlot`. /// /// Provides typed access to columns for query building. @@ -39,10 +32,10 @@ pub struct BigFishAssetSlotCols { pub slot_id: __sdk::__query_builder::Col, pub session_id: __sdk::__query_builder::Col, pub asset_kind: __sdk::__query_builder::Col, - pub level: __sdk::__query_builder::Col>, - pub motion_key: __sdk::__query_builder::Col>, + pub level: __sdk::__query_builder::Col>, + pub motion_key: __sdk::__query_builder::Col>, pub status: __sdk::__query_builder::Col, - pub asset_url: __sdk::__query_builder::Col>, + pub asset_url: __sdk::__query_builder::Col>, pub prompt_snapshot: __sdk::__query_builder::Col, pub updated_at: __sdk::__query_builder::Col, } @@ -60,7 +53,6 @@ impl __sdk::__query_builder::HasCols for BigFishAssetSlot { asset_url: __sdk::__query_builder::Col::new(table_name, "asset_url"), prompt_snapshot: __sdk::__query_builder::Col::new(table_name, "prompt_snapshot"), updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"), - } } } @@ -79,10 +71,8 @@ impl __sdk::__query_builder::HasIxCols for BigFishAssetSlot { BigFishAssetSlotIxCols { session_id: __sdk::__query_builder::IxCol::new(table_name, "session_id"), slot_id: __sdk::__query_builder::IxCol::new(table_name, "slot_id"), - } } } impl __sdk::__query_builder::CanBeLookupTable for BigFishAssetSlot {} - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_asset_status_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_asset_status_type.rs index 25ed0f6a..c673f0f3 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_asset_status_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_asset_status_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,12 +11,8 @@ pub enum BigFishAssetStatus { Missing, Ready, - } - - impl __sdk::InModule for BigFishAssetStatus { 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 index bda8e3be..b28e3196 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -23,8 +17,6 @@ pub struct BigFishBackgroundBlueprint { 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_creation_session_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_creation_session_type.rs index b45590fe..353343fd 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_creation_session_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_creation_session_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::big_fish_creation_stage_type::BigFishCreationStage; @@ -21,20 +16,18 @@ pub struct BigFishCreationSession { pub progress_percent: u32, pub stage: BigFishCreationStage, pub anchor_pack_json: String, - pub draft_json: Option::, + pub draft_json: Option, pub asset_coverage_json: String, - pub last_assistant_reply: Option::, + pub last_assistant_reply: Option, pub publish_ready: bool, pub created_at: __sdk::Timestamp, pub updated_at: __sdk::Timestamp, } - impl __sdk::InModule for BigFishCreationSession { type Module = super::RemoteModule; } - /// Column accessor struct for the table `BigFishCreationSession`. /// /// Provides typed access to columns for query building. @@ -46,9 +39,9 @@ pub struct BigFishCreationSessionCols { pub progress_percent: __sdk::__query_builder::Col, pub stage: __sdk::__query_builder::Col, pub anchor_pack_json: __sdk::__query_builder::Col, - pub draft_json: __sdk::__query_builder::Col>, + pub draft_json: __sdk::__query_builder::Col>, pub asset_coverage_json: __sdk::__query_builder::Col, - pub last_assistant_reply: __sdk::__query_builder::Col>, + pub last_assistant_reply: __sdk::__query_builder::Col>, pub publish_ready: __sdk::__query_builder::Col, pub created_at: __sdk::__query_builder::Col, pub updated_at: __sdk::__query_builder::Col, @@ -66,12 +59,17 @@ impl __sdk::__query_builder::HasCols for BigFishCreationSession { stage: __sdk::__query_builder::Col::new(table_name, "stage"), anchor_pack_json: __sdk::__query_builder::Col::new(table_name, "anchor_pack_json"), draft_json: __sdk::__query_builder::Col::new(table_name, "draft_json"), - asset_coverage_json: __sdk::__query_builder::Col::new(table_name, "asset_coverage_json"), - last_assistant_reply: __sdk::__query_builder::Col::new(table_name, "last_assistant_reply"), + asset_coverage_json: __sdk::__query_builder::Col::new( + table_name, + "asset_coverage_json", + ), + last_assistant_reply: __sdk::__query_builder::Col::new( + table_name, + "last_assistant_reply", + ), publish_ready: __sdk::__query_builder::Col::new(table_name, "publish_ready"), created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"), - } } } @@ -90,10 +88,8 @@ impl __sdk::__query_builder::HasIxCols for BigFishCreationSession { BigFishCreationSessionIxCols { owner_user_id: __sdk::__query_builder::IxCol::new(table_name, "owner_user_id"), session_id: __sdk::__query_builder::IxCol::new(table_name, "session_id"), - } } } impl __sdk::__query_builder::CanBeLookupTable for BigFishCreationSession {} - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_creation_stage_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_creation_stage_type.rs index b96fb5e4..c878d467 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_creation_stage_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_creation_stage_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -22,12 +17,8 @@ pub enum BigFishCreationStage { ReadyToPublish, Published, - } - - impl __sdk::InModule for BigFishCreationStage { 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 index 25792484..9cf25ddc 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -18,8 +12,6 @@ pub struct BigFishDraftCompileInput { 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_game_draft_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_game_draft_type.rs index 43810d9b..0c661176 100644 --- 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 @@ -2,15 +2,10 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::big_fish_level_blueprint_type::BigFishLevelBlueprint; 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)] @@ -20,13 +15,11 @@ pub struct BigFishGameDraft { pub subtitle: String, pub core_fun: String, pub ecology_theme: String, - pub levels: Vec::, + 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_level_blueprint_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_level_blueprint_type.rs index 3953e1ff..b8ea2493 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -20,14 +14,12 @@ pub struct BigFishLevelBlueprint { pub size_ratio: f32, pub visual_prompt_seed: String, pub motion_prompt_seed: String, - pub merge_source_level: Option::, - pub prey_window: Vec::, - pub threat_window: Vec::, + 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 index bfe80bda..b54c4b6f 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::big_fish_creation_stage_type::BigFishCreationStage; @@ -16,17 +11,15 @@ use super::big_fish_creation_stage_type::BigFishCreationStage; pub struct BigFishMessageFinalizeInput { pub session_id: String, pub owner_user_id: String, - pub assistant_message_id: Option::, - pub assistant_reply_text: Option::, + 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 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 index 40dfe964..b0e41147 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -21,8 +15,6 @@ pub struct BigFishMessageSubmitInput { 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_publish_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_publish_input_type.rs index a1a0fcca..ec00bf84 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -18,8 +12,6 @@ pub struct BigFishPublishInput { 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 index 0940b187..8e0d0d8d 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -17,8 +11,6 @@ pub struct BigFishRunGetInput { 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_input_submit_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_run_input_submit_input_type.rs index ae5f1367..f3175d40 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_run_input_submit_input_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_run_input_submit_input_type.rs @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -20,8 +14,6 @@ pub struct BigFishRunInputSubmitInput { pub submitted_at_micros: i64, } - impl __sdk::InModule for BigFishRunInputSubmitInput { 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 index 12e6eb95..86d73fc2 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::big_fish_runtime_snapshot_type::BigFishRuntimeSnapshot; @@ -15,12 +10,10 @@ use super::big_fish_runtime_snapshot_type::BigFishRuntimeSnapshot; #[sats(crate = __lib)] pub struct BigFishRunProcedureResult { pub ok: bool, - pub run: Option::, - pub error_message: Option::, + 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 index 4e166892..944fa6da 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -19,8 +13,6 @@ pub struct BigFishRunStartInput { 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_run_status_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_run_status_type.rs index ab1b80cd..6bb94f36 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_run_status_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_run_status_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -18,12 +13,8 @@ pub enum BigFishRunStatus { Won, Failed, - } - - impl __sdk::InModule for BigFishRunStatus { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_runtime_entity_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_runtime_entity_type.rs index f1a82061..ee7c160c 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_runtime_entity_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_runtime_entity_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::big_fish_vector_2_type::BigFishVector2; @@ -21,8 +16,6 @@ pub struct BigFishRuntimeEntity { pub offscreen_seconds: f32, } - impl __sdk::InModule for BigFishRuntimeEntity { 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 index 1fece110..78117371 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -19,13 +13,11 @@ pub struct BigFishRuntimeParams { 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 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_run_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_runtime_run_type.rs index 20ac1aa1..01852b9c 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/big_fish_runtime_run_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_runtime_run_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::big_fish_run_status_type::BigFishRunStatus; @@ -26,12 +21,10 @@ pub struct BigFishRuntimeRun { pub updated_at: __sdk::Timestamp, } - impl __sdk::InModule for BigFishRuntimeRun { type Module = super::RemoteModule; } - /// Column accessor struct for the table `BigFishRuntimeRun`. /// /// Provides typed access to columns for query building. @@ -62,7 +55,6 @@ impl __sdk::__query_builder::HasCols for BigFishRuntimeRun { tick: __sdk::__query_builder::Col::new(table_name, "tick"), created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"), - } } } @@ -83,10 +75,8 @@ impl __sdk::__query_builder::HasIxCols for BigFishRuntimeRun { owner_user_id: __sdk::__query_builder::IxCol::new(table_name, "owner_user_id"), run_id: __sdk::__query_builder::IxCol::new(table_name, "run_id"), session_id: __sdk::__query_builder::IxCol::new(table_name, "session_id"), - } } } impl __sdk::__query_builder::CanBeLookupTable for BigFishRuntimeRun {} - 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 index 0a367449..32f2a80c 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::big_fish_run_status_type::BigFishRunStatus; use super::big_fish_runtime_entity_type::BigFishRuntimeEntity; @@ -22,17 +17,15 @@ pub struct BigFishRuntimeSnapshot { 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 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 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 index f7ae7eb7..13533785 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -21,8 +15,6 @@ pub struct BigFishSessionCreateInput { 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 index 88ef9cfa..396808f4 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -17,8 +11,6 @@ pub struct BigFishSessionGetInput { 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 index db8af7c7..1f2f7666 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::big_fish_session_snapshot_type::BigFishSessionSnapshot; @@ -15,12 +10,10 @@ use super::big_fish_session_snapshot_type::BigFishSessionSnapshot; #[sats(crate = __lib)] pub struct BigFishSessionProcedureResult { pub ok: bool, - pub session: Option::, - pub error_message: Option::, + 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 index abff56b6..11e6a141 100644 --- 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 @@ -2,19 +2,14 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::big_fish_creation_stage_type::BigFishCreationStage; -use super::big_fish_anchor_pack_type::BigFishAnchorPack; -use super::big_fish_game_draft_type::BigFishGameDraft; -use super::big_fish_asset_slot_snapshot_type::BigFishAssetSlotSnapshot; -use super::big_fish_asset_coverage_type::BigFishAssetCoverage; 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)] @@ -26,18 +21,16 @@ pub struct BigFishSessionSnapshot { pub progress_percent: u32, pub stage: BigFishCreationStage, pub anchor_pack: BigFishAnchorPack, - pub draft: Option::, - pub asset_slots: Vec::, + pub draft: Option, + pub asset_slots: Vec, pub asset_coverage: BigFishAssetCoverage, - pub messages: Vec::, - pub last_assistant_reply: Option::, + 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 index 534f83e9..745063ad 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -17,8 +11,6 @@ pub struct BigFishVector2 { 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 index fcc357c9..3589f8d7 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -17,8 +11,6 @@ pub struct BigFishWorkDeleteInput { 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_works_list_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/big_fish_works_list_input_type.rs index 72220ff9..240ce46a 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,8 +10,6 @@ pub struct BigFishWorksListInput { pub owner_user_id: String, } - 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 index a8fbe37b..37d7c7b6 100644 --- 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 @@ -2,24 +2,16 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +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 BigFishWorksProcedureResult { pub ok: bool, - pub items_json: Option::, - pub error_message: Option::, + pub items_json: Option, + pub error_message: Option, } - impl __sdk::InModule for BigFishWorksProcedureResult { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/bind_asset_object_to_entity_and_return_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/bind_asset_object_to_entity_and_return_procedure.rs index aebf2217..b709d5c2 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/bind_asset_object_to_entity_and_return_procedure.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/bind_asset_object_to_entity_and_return_procedure.rs @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::asset_entity_binding_input_type::AssetEntityBindingInput; use super::asset_entity_binding_procedure_result_type::AssetEntityBindingProcedureResult; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] - struct BindAssetObjectToEntityAndReturnArgs { +struct BindAssetObjectToEntityAndReturnArgs { pub input: AssetEntityBindingInput, } - impl __sdk::InModule for BindAssetObjectToEntityAndReturnArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for BindAssetObjectToEntityAndReturnArgs { /// /// Implemented for [`super::RemoteProcedures`]. pub trait bind_asset_object_to_entity_and_return { - fn bind_asset_object_to_entity_and_return(&self, input: AssetEntityBindingInput, -) { - self.bind_asset_object_to_entity_and_return_then(input, |_, _| {}); + fn bind_asset_object_to_entity_and_return(&self, input: AssetEntityBindingInput) { + self.bind_asset_object_to_entity_and_return_then(input, |_, _| {}); } fn bind_asset_object_to_entity_and_return_then( &self, input: AssetEntityBindingInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl bind_asset_object_to_entity_and_return for super::RemoteProcedures { &self, input: AssetEntityBindingInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, AssetEntityBindingProcedureResult>( - "bind_asset_object_to_entity_and_return", - BindAssetObjectToEntityAndReturnArgs { input, }, - __callback, - ); + self.imp + .invoke_procedure_with_callback::<_, AssetEntityBindingProcedureResult>( + "bind_asset_object_to_entity_and_return", + BindAssetObjectToEntityAndReturnArgs { input }, + __callback, + ); } } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/bind_asset_object_to_entity_reducer.rs b/server-rs/crates/spacetime-client/src/module_bindings/bind_asset_object_to_entity_reducer.rs index ca2154f7..b20bc5b2 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/bind_asset_object_to_entity_reducer.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/bind_asset_object_to_entity_reducer.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::asset_entity_binding_input_type::AssetEntityBindingInput; @@ -19,10 +14,8 @@ pub(super) struct BindAssetObjectToEntityArgs { impl From for super::Reducer { fn from(args: BindAssetObjectToEntityArgs) -> Self { - Self::BindAssetObjectToEntity { - input: args.input, -} -} + Self::BindAssetObjectToEntity { input: args.input } + } } impl __sdk::InModule for BindAssetObjectToEntityArgs { @@ -40,9 +33,8 @@ pub trait bind_asset_object_to_entity { /// The reducer will run asynchronously in the future, /// and this method provides no way to listen for its completion status. /// /// Use [`bind_asset_object_to_entity:bind_asset_object_to_entity_then`] to run a callback after the reducer completes. - fn bind_asset_object_to_entity(&self, input: AssetEntityBindingInput, -) -> __sdk::Result<()> { - self.bind_asset_object_to_entity_then(input, |_, _| {}) + fn bind_asset_object_to_entity(&self, input: AssetEntityBindingInput) -> __sdk::Result<()> { + self.bind_asset_object_to_entity_then(input, |_, _| {}) } /// Request that the remote module invoke the reducer `bind_asset_object_to_entity` to run as soon as possible, @@ -70,7 +62,7 @@ impl bind_asset_object_to_entity for super::RemoteReducers { + Send + 'static, ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback(BindAssetObjectToEntityArgs { input, }, callback) + self.imp + .invoke_reducer_with_callback(BindAssetObjectToEntityArgs { input }, callback) } } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/cancel_ai_task_and_return_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/cancel_ai_task_and_return_procedure.rs index 1a4a6394..b239e060 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/cancel_ai_task_and_return_procedure.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/cancel_ai_task_and_return_procedure.rs @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::ai_task_procedure_result_type::AiTaskProcedureResult; use super::ai_task_cancel_input_type::AiTaskCancelInput; +use super::ai_task_procedure_result_type::AiTaskProcedureResult; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] - struct CancelAiTaskAndReturnArgs { +struct CancelAiTaskAndReturnArgs { pub input: AiTaskCancelInput, } - impl __sdk::InModule for CancelAiTaskAndReturnArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for CancelAiTaskAndReturnArgs { /// /// Implemented for [`super::RemoteProcedures`]. pub trait cancel_ai_task_and_return { - fn cancel_ai_task_and_return(&self, input: AiTaskCancelInput, -) { - self.cancel_ai_task_and_return_then(input, |_, _| {}); + fn cancel_ai_task_and_return(&self, input: AiTaskCancelInput) { + self.cancel_ai_task_and_return_then(input, |_, _| {}); } fn cancel_ai_task_and_return_then( &self, input: AiTaskCancelInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl cancel_ai_task_and_return for super::RemoteProcedures { &self, input: AiTaskCancelInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, AiTaskProcedureResult>( - "cancel_ai_task_and_return", - CancelAiTaskAndReturnArgs { input, }, - __callback, - ); + self.imp + .invoke_procedure_with_callback::<_, AiTaskProcedureResult>( + "cancel_ai_task_and_return", + CancelAiTaskAndReturnArgs { input }, + __callback, + ); } } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/chapter_pace_band_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/chapter_pace_band_type.rs index fe7d5e3a..effbeb9d 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/chapter_pace_band_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/chapter_pace_band_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -20,12 +15,8 @@ pub enum ChapterPaceBand { Pressure, FinaleDense, - } - - impl __sdk::InModule for ChapterPaceBand { 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 index cc88d00b..927a4b04 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -17,8 +11,6 @@ pub struct ChapterProgressionGetInput { 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 index ed9aa5ca..dae51fa0 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::chapter_pace_band_type::ChapterPaceBand; @@ -31,8 +26,6 @@ pub struct ChapterProgressionInput { 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 index a9e0a8c3..a599ffc9 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -18,12 +12,10 @@ pub struct ChapterProgressionLedgerInput { pub granted_quest_xp: u32, pub granted_hostile_xp: u32, pub hostile_defeat_increment: u32, - pub level_at_exit: Option::, + 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 index 6a7d01af..276b3a26 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::chapter_progression_snapshot_type::ChapterProgressionSnapshot; @@ -15,12 +10,10 @@ use super::chapter_progression_snapshot_type::ChapterProgressionSnapshot; #[sats(crate = __lib)] pub struct ChapterProgressionProcedureResult { pub ok: bool, - pub record: Option::, - pub error_message: Option::, + 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 index d1eaad92..e1fde7fe 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::chapter_pace_band_type::ChapterPaceBand; @@ -30,14 +25,12 @@ pub struct ChapterProgressionSnapshot { pub expected_hostile_defeat_count: u32, pub actual_hostile_defeat_count: u32, pub level_at_entry: u32, - pub level_at_exit: Option::, + 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/chapter_progression_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/chapter_progression_type.rs index c5600eb7..c94a7196 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/chapter_progression_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/chapter_progression_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::chapter_pace_band_type::ChapterPaceBand; @@ -31,18 +26,16 @@ pub struct ChapterProgression { pub expected_hostile_defeat_count: u32, pub actual_hostile_defeat_count: u32, pub level_at_entry: u32, - pub level_at_exit: Option::, + pub level_at_exit: Option, pub pace_band: ChapterPaceBand, pub created_at: __sdk::Timestamp, pub updated_at: __sdk::Timestamp, } - impl __sdk::InModule for ChapterProgression { type Module = super::RemoteModule; } - /// Column accessor struct for the table `ChapterProgression`. /// /// Provides typed access to columns for query building. @@ -64,7 +57,7 @@ pub struct ChapterProgressionCols { pub expected_hostile_defeat_count: __sdk::__query_builder::Col, pub actual_hostile_defeat_count: __sdk::__query_builder::Col, pub level_at_entry: __sdk::__query_builder::Col, - pub level_at_exit: __sdk::__query_builder::Col>, + pub level_at_exit: __sdk::__query_builder::Col>, pub pace_band: __sdk::__query_builder::Col, pub created_at: __sdk::__query_builder::Col, pub updated_at: __sdk::__query_builder::Col, @@ -74,13 +67,22 @@ impl __sdk::__query_builder::HasCols for ChapterProgression { type Cols = ChapterProgressionCols; fn cols(table_name: &'static str) -> Self::Cols { ChapterProgressionCols { - chapter_progression_id: __sdk::__query_builder::Col::new(table_name, "chapter_progression_id"), + chapter_progression_id: __sdk::__query_builder::Col::new( + table_name, + "chapter_progression_id", + ), user_id: __sdk::__query_builder::Col::new(table_name, "user_id"), chapter_id: __sdk::__query_builder::Col::new(table_name, "chapter_id"), chapter_index: __sdk::__query_builder::Col::new(table_name, "chapter_index"), total_chapters: __sdk::__query_builder::Col::new(table_name, "total_chapters"), - entry_pseudo_level_millis: __sdk::__query_builder::Col::new(table_name, "entry_pseudo_level_millis"), - exit_pseudo_level_millis: __sdk::__query_builder::Col::new(table_name, "exit_pseudo_level_millis"), + entry_pseudo_level_millis: __sdk::__query_builder::Col::new( + table_name, + "entry_pseudo_level_millis", + ), + exit_pseudo_level_millis: __sdk::__query_builder::Col::new( + table_name, + "exit_pseudo_level_millis", + ), entry_level: __sdk::__query_builder::Col::new(table_name, "entry_level"), exit_level: __sdk::__query_builder::Col::new(table_name, "exit_level"), planned_total_xp: __sdk::__query_builder::Col::new(table_name, "planned_total_xp"), @@ -88,14 +90,19 @@ impl __sdk::__query_builder::HasCols for ChapterProgression { planned_hostile_xp: __sdk::__query_builder::Col::new(table_name, "planned_hostile_xp"), actual_quest_xp: __sdk::__query_builder::Col::new(table_name, "actual_quest_xp"), actual_hostile_xp: __sdk::__query_builder::Col::new(table_name, "actual_hostile_xp"), - expected_hostile_defeat_count: __sdk::__query_builder::Col::new(table_name, "expected_hostile_defeat_count"), - actual_hostile_defeat_count: __sdk::__query_builder::Col::new(table_name, "actual_hostile_defeat_count"), + expected_hostile_defeat_count: __sdk::__query_builder::Col::new( + table_name, + "expected_hostile_defeat_count", + ), + actual_hostile_defeat_count: __sdk::__query_builder::Col::new( + table_name, + "actual_hostile_defeat_count", + ), level_at_entry: __sdk::__query_builder::Col::new(table_name, "level_at_entry"), level_at_exit: __sdk::__query_builder::Col::new(table_name, "level_at_exit"), pace_band: __sdk::__query_builder::Col::new(table_name, "pace_band"), created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"), - } } } @@ -114,12 +121,13 @@ impl __sdk::__query_builder::HasIxCols for ChapterProgression { fn ix_cols(table_name: &'static str) -> Self::IxCols { ChapterProgressionIxCols { chapter_id: __sdk::__query_builder::IxCol::new(table_name, "chapter_id"), - chapter_progression_id: __sdk::__query_builder::IxCol::new(table_name, "chapter_progression_id"), + chapter_progression_id: __sdk::__query_builder::IxCol::new( + table_name, + "chapter_progression_id", + ), user_id: __sdk::__query_builder::IxCol::new(table_name, "user_id"), - } } } impl __sdk::__query_builder::CanBeLookupTable for ChapterProgression {} - 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 index 5b9a2c9e..2e623845 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 { +struct ClearPlatformBrowseHistoryAndReturnArgs { pub input: RuntimeBrowseHistoryClearInput, } - impl __sdk::InModule for ClearPlatformBrowseHistoryAndReturnArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for ClearPlatformBrowseHistoryAndReturnArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl clear_platform_browse_history_and_return for super::RemoteProcedures { &self, input: RuntimeBrowseHistoryClearInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, RuntimeBrowseHistoryProcedureResult>( - "clear_platform_browse_history_and_return", - ClearPlatformBrowseHistoryAndReturnArgs { input, }, - __callback, - ); + 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/combat_outcome_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/combat_outcome_type.rs index 5ef77940..731563dd 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/combat_outcome_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/combat_outcome_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -20,12 +15,8 @@ pub enum CombatOutcome { SparComplete, Escaped, - } - - impl __sdk::InModule for CombatOutcome { type Module = super::RemoteModule; } - 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 index ba45db0a..6eea6571 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 { +struct CompileBigFishDraftArgs { pub input: BigFishDraftCompileInput, } - impl __sdk::InModule for CompileBigFishDraftArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for CompileBigFishDraftArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl compile_big_fish_draft for super::RemoteProcedures { &self, input: BigFishDraftCompileInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, BigFishSessionProcedureResult>( - "compile_big_fish_draft", - CompileBigFishDraftArgs { input, }, - __callback, - ); + 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 index 767a3954..aefbe602 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 { +struct CompileCustomWorldPublishedProfileArgs { pub input: CustomWorldPublishedProfileCompileInput, } - impl __sdk::InModule for CompileCustomWorldPublishedProfileArgs { type Module = super::RemoteModule; } @@ -28,16 +22,22 @@ impl __sdk::InModule for CompileCustomWorldPublishedProfileArgs { /// /// 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( + &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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +46,17 @@ impl compile_custom_world_published_profile for super::RemoteProcedures { &self, input: CustomWorldPublishedProfileCompileInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, CustomWorldPublishedProfileCompileResult>( - "compile_custom_world_published_profile", - CompileCustomWorldPublishedProfileArgs { input, }, - __callback, - ); + 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_puzzle_agent_draft_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/compile_puzzle_agent_draft_procedure.rs index d90769dc..7badcdae 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::puzzle_draft_compile_input_type::PuzzleDraftCompileInput; 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 { +struct CompilePuzzleAgentDraftArgs { pub input: PuzzleDraftCompileInput, } - impl __sdk::InModule for CompilePuzzleAgentDraftArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for CompilePuzzleAgentDraftArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl compile_puzzle_agent_draft for super::RemoteProcedures { &self, input: PuzzleDraftCompileInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, PuzzleAgentSessionProcedureResult>( - "compile_puzzle_agent_draft", - CompilePuzzleAgentDraftArgs { input, }, - __callback, - ); + 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/complete_ai_stage_and_return_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/complete_ai_stage_and_return_procedure.rs index f921c224..51375935 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/complete_ai_stage_and_return_procedure.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/complete_ai_stage_and_return_procedure.rs @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::ai_task_procedure_result_type::AiTaskProcedureResult; use super::ai_stage_completion_input_type::AiStageCompletionInput; +use super::ai_task_procedure_result_type::AiTaskProcedureResult; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] - struct CompleteAiStageAndReturnArgs { +struct CompleteAiStageAndReturnArgs { pub input: AiStageCompletionInput, } - impl __sdk::InModule for CompleteAiStageAndReturnArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for CompleteAiStageAndReturnArgs { /// /// Implemented for [`super::RemoteProcedures`]. pub trait complete_ai_stage_and_return { - fn complete_ai_stage_and_return(&self, input: AiStageCompletionInput, -) { - self.complete_ai_stage_and_return_then(input, |_, _| {}); + fn complete_ai_stage_and_return(&self, input: AiStageCompletionInput) { + self.complete_ai_stage_and_return_then(input, |_, _| {}); } fn complete_ai_stage_and_return_then( &self, input: AiStageCompletionInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl complete_ai_stage_and_return for super::RemoteProcedures { &self, input: AiStageCompletionInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, AiTaskProcedureResult>( - "complete_ai_stage_and_return", - CompleteAiStageAndReturnArgs { input, }, - __callback, - ); + self.imp + .invoke_procedure_with_callback::<_, AiTaskProcedureResult>( + "complete_ai_stage_and_return", + CompleteAiStageAndReturnArgs { input }, + __callback, + ); } } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/complete_ai_task_and_return_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/complete_ai_task_and_return_procedure.rs index 47ae2af1..040af639 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/complete_ai_task_and_return_procedure.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/complete_ai_task_and_return_procedure.rs @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::ai_task_procedure_result_type::AiTaskProcedureResult; use super::ai_task_finish_input_type::AiTaskFinishInput; +use super::ai_task_procedure_result_type::AiTaskProcedureResult; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] - struct CompleteAiTaskAndReturnArgs { +struct CompleteAiTaskAndReturnArgs { pub input: AiTaskFinishInput, } - impl __sdk::InModule for CompleteAiTaskAndReturnArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for CompleteAiTaskAndReturnArgs { /// /// Implemented for [`super::RemoteProcedures`]. pub trait complete_ai_task_and_return { - fn complete_ai_task_and_return(&self, input: AiTaskFinishInput, -) { - self.complete_ai_task_and_return_then(input, |_, _| {}); + fn complete_ai_task_and_return(&self, input: AiTaskFinishInput) { + self.complete_ai_task_and_return_then(input, |_, _| {}); } fn complete_ai_task_and_return_then( &self, input: AiTaskFinishInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl complete_ai_task_and_return for super::RemoteProcedures { &self, input: AiTaskFinishInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, AiTaskProcedureResult>( - "complete_ai_task_and_return", - CompleteAiTaskAndReturnArgs { input, }, - __callback, - ); + self.imp + .invoke_procedure_with_callback::<_, AiTaskProcedureResult>( + "complete_ai_task_and_return", + CompleteAiTaskAndReturnArgs { input }, + __callback, + ); } } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/confirm_asset_object_and_return_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/confirm_asset_object_and_return_procedure.rs index 11c079e4..0b4f26b2 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/confirm_asset_object_and_return_procedure.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/confirm_asset_object_and_return_procedure.rs @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::asset_object_upsert_input_type::AssetObjectUpsertInput; use super::asset_object_procedure_result_type::AssetObjectProcedureResult; +use super::asset_object_upsert_input_type::AssetObjectUpsertInput; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] - struct ConfirmAssetObjectAndReturnArgs { +struct ConfirmAssetObjectAndReturnArgs { pub input: AssetObjectUpsertInput, } - impl __sdk::InModule for ConfirmAssetObjectAndReturnArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for ConfirmAssetObjectAndReturnArgs { /// /// Implemented for [`super::RemoteProcedures`]. pub trait confirm_asset_object_and_return { - fn confirm_asset_object_and_return(&self, input: AssetObjectUpsertInput, -) { - self.confirm_asset_object_and_return_then(input, |_, _| {}); + fn confirm_asset_object_and_return(&self, input: AssetObjectUpsertInput) { + self.confirm_asset_object_and_return_then(input, |_, _| {}); } fn confirm_asset_object_and_return_then( &self, input: AssetObjectUpsertInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl confirm_asset_object_and_return for super::RemoteProcedures { &self, input: AssetObjectUpsertInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, AssetObjectProcedureResult>( - "confirm_asset_object_and_return", - ConfirmAssetObjectAndReturnArgs { input, }, - __callback, - ); + self.imp + .invoke_procedure_with_callback::<_, AssetObjectProcedureResult>( + "confirm_asset_object_and_return", + ConfirmAssetObjectAndReturnArgs { input }, + __callback, + ); } } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/confirm_asset_object_reducer.rs b/server-rs/crates/spacetime-client/src/module_bindings/confirm_asset_object_reducer.rs index fb6acde2..183c2efa 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/confirm_asset_object_reducer.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/confirm_asset_object_reducer.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::asset_object_upsert_input_type::AssetObjectUpsertInput; @@ -19,10 +14,8 @@ pub(super) struct ConfirmAssetObjectArgs { impl From for super::Reducer { fn from(args: ConfirmAssetObjectArgs) -> Self { - Self::ConfirmAssetObject { - input: args.input, -} -} + Self::ConfirmAssetObject { input: args.input } + } } impl __sdk::InModule for ConfirmAssetObjectArgs { @@ -40,9 +33,8 @@ pub trait confirm_asset_object { /// The reducer will run asynchronously in the future, /// and this method provides no way to listen for its completion status. /// /// Use [`confirm_asset_object:confirm_asset_object_then`] to run a callback after the reducer completes. - fn confirm_asset_object(&self, input: AssetObjectUpsertInput, -) -> __sdk::Result<()> { - self.confirm_asset_object_then(input, |_, _| {}) + fn confirm_asset_object(&self, input: AssetObjectUpsertInput) -> __sdk::Result<()> { + self.confirm_asset_object_then(input, |_, _| {}) } /// Request that the remote module invoke the reducer `confirm_asset_object` to run as soon as possible, @@ -70,7 +62,7 @@ impl confirm_asset_object for super::RemoteReducers { + Send + 'static, ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback(ConfirmAssetObjectArgs { input, }, callback) + self.imp + .invoke_reducer_with_callback(ConfirmAssetObjectArgs { 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 index 3bd69ba8..0e867e21 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -17,8 +11,6 @@ pub struct ConsumeInventoryItemInput { 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 index 0713f423..0d58ec1b 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::story_session_procedure_result_type::StorySessionProcedureResult; 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 { +struct ContinueStoryAndReturnArgs { pub input: StoryContinueInput, } - impl __sdk::InModule for ContinueStoryAndReturnArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for ContinueStoryAndReturnArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl continue_story_and_return for super::RemoteProcedures { &self, input: StoryContinueInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, StorySessionProcedureResult>( - "continue_story_and_return", - ContinueStoryAndReturnArgs { input, }, - __callback, - ); + 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 index 9c2b310a..4117cfae 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::story_continue_input_type::StoryContinueInput; @@ -19,10 +14,8 @@ pub(super) struct ContinueStoryArgs { impl From for super::Reducer { fn from(args: ContinueStoryArgs) -> Self { - Self::ContinueStory { - input: args.input, -} -} + Self::ContinueStory { input: args.input } + } } impl __sdk::InModule for ContinueStoryArgs { @@ -40,9 +33,8 @@ pub trait continue_story { /// 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, |_, _| {}) + 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, @@ -70,7 +62,7 @@ impl continue_story for super::RemoteReducers { + Send + 'static, ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback(ContinueStoryArgs { input, }, callback) + self.imp + .invoke_reducer_with_callback(ContinueStoryArgs { input }, callback) } } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/create_ai_task_and_return_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/create_ai_task_and_return_procedure.rs index cee9ffd8..20d8ceee 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/create_ai_task_and_return_procedure.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/create_ai_task_and_return_procedure.rs @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::ai_task_procedure_result_type::AiTaskProcedureResult; use super::ai_task_create_input_type::AiTaskCreateInput; +use super::ai_task_procedure_result_type::AiTaskProcedureResult; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] - struct CreateAiTaskAndReturnArgs { +struct CreateAiTaskAndReturnArgs { pub input: AiTaskCreateInput, } - impl __sdk::InModule for CreateAiTaskAndReturnArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for CreateAiTaskAndReturnArgs { /// /// Implemented for [`super::RemoteProcedures`]. pub trait create_ai_task_and_return { - fn create_ai_task_and_return(&self, input: AiTaskCreateInput, -) { - self.create_ai_task_and_return_then(input, |_, _| {}); + fn create_ai_task_and_return(&self, input: AiTaskCreateInput) { + self.create_ai_task_and_return_then(input, |_, _| {}); } fn create_ai_task_and_return_then( &self, input: AiTaskCreateInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl create_ai_task_and_return for super::RemoteProcedures { &self, input: AiTaskCreateInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, AiTaskProcedureResult>( - "create_ai_task_and_return", - CreateAiTaskAndReturnArgs { input, }, - __callback, - ); + self.imp + .invoke_procedure_with_callback::<_, AiTaskProcedureResult>( + "create_ai_task_and_return", + CreateAiTaskAndReturnArgs { input }, + __callback, + ); } } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/create_ai_task_reducer.rs b/server-rs/crates/spacetime-client/src/module_bindings/create_ai_task_reducer.rs index d57e7291..213f28e5 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/create_ai_task_reducer.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/create_ai_task_reducer.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::ai_task_create_input_type::AiTaskCreateInput; @@ -19,10 +14,8 @@ pub(super) struct CreateAiTaskArgs { impl From for super::Reducer { fn from(args: CreateAiTaskArgs) -> Self { - Self::CreateAiTask { - input: args.input, -} -} + Self::CreateAiTask { input: args.input } + } } impl __sdk::InModule for CreateAiTaskArgs { @@ -40,9 +33,8 @@ pub trait create_ai_task { /// The reducer will run asynchronously in the future, /// and this method provides no way to listen for its completion status. /// /// Use [`create_ai_task:create_ai_task_then`] to run a callback after the reducer completes. - fn create_ai_task(&self, input: AiTaskCreateInput, -) -> __sdk::Result<()> { - self.create_ai_task_then(input, |_, _| {}) + fn create_ai_task(&self, input: AiTaskCreateInput) -> __sdk::Result<()> { + self.create_ai_task_then(input, |_, _| {}) } /// Request that the remote module invoke the reducer `create_ai_task` to run as soon as possible, @@ -70,7 +62,7 @@ impl create_ai_task for super::RemoteReducers { + Send + 'static, ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback(CreateAiTaskArgs { input, }, callback) + self.imp + .invoke_reducer_with_callback(CreateAiTaskArgs { 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 index bfee133e..ef11107a 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 { +struct CreateBattleStateAndReturnArgs { pub input: BattleStateInput, } - impl __sdk::InModule for CreateBattleStateAndReturnArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for CreateBattleStateAndReturnArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl create_battle_state_and_return for super::RemoteProcedures { &self, input: BattleStateInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, BattleStateProcedureResult>( - "create_battle_state_and_return", - CreateBattleStateAndReturnArgs { input, }, - __callback, - ); + 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 index 258d5af2..1072f8a5 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::battle_state_input_type::BattleStateInput; @@ -19,10 +14,8 @@ pub(super) struct CreateBattleStateArgs { impl From for super::Reducer { fn from(args: CreateBattleStateArgs) -> Self { - Self::CreateBattleState { - input: args.input, -} -} + Self::CreateBattleState { input: args.input } + } } impl __sdk::InModule for CreateBattleStateArgs { @@ -40,9 +33,8 @@ pub trait create_battle_state { /// 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, |_, _| {}) + 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, @@ -70,7 +62,7 @@ impl create_battle_state for super::RemoteReducers { + Send + 'static, ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback(CreateBattleStateArgs { input, }, callback) + 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 index cf4398e6..bc67436e 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::big_fish_session_procedure_result_type::BigFishSessionProcedureResult; 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 { +struct CreateBigFishSessionArgs { pub input: BigFishSessionCreateInput, } - impl __sdk::InModule for CreateBigFishSessionArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for CreateBigFishSessionArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl create_big_fish_session for super::RemoteProcedures { &self, input: BigFishSessionCreateInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, BigFishSessionProcedureResult>( - "create_big_fish_session", - CreateBigFishSessionArgs { input, }, - __callback, - ); + 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 index 18065e71..6a08bcc7 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 { +struct CreateCustomWorldAgentSessionArgs { pub input: CustomWorldAgentSessionCreateInput, } - impl __sdk::InModule for CreateCustomWorldAgentSessionArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for CreateCustomWorldAgentSessionArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl create_custom_world_agent_session for super::RemoteProcedures { &self, input: CustomWorldAgentSessionCreateInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, CustomWorldAgentSessionProcedureResult>( - "create_custom_world_agent_session", - CreateCustomWorldAgentSessionArgs { input, }, - __callback, - ); + 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_profile_recharge_order_and_return_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/create_profile_recharge_order_and_return_procedure.rs index 7c082efd..893fbdf6 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/create_profile_recharge_order_and_return_procedure.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/create_profile_recharge_order_and_return_procedure.rs @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::runtime_profile_recharge_order_create_input_type::RuntimeProfileRechargeOrderCreateInput; use super::runtime_profile_recharge_center_procedure_result_type::RuntimeProfileRechargeCenterProcedureResult; +use super::runtime_profile_recharge_order_create_input_type::RuntimeProfileRechargeOrderCreateInput; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] - struct CreateProfileRechargeOrderAndReturnArgs { +struct CreateProfileRechargeOrderAndReturnArgs { pub input: RuntimeProfileRechargeOrderCreateInput, } - impl __sdk::InModule for CreateProfileRechargeOrderAndReturnArgs { type Module = super::RemoteModule; } @@ -28,16 +22,22 @@ impl __sdk::InModule for CreateProfileRechargeOrderAndReturnArgs { /// /// Implemented for [`super::RemoteProcedures`]. pub trait create_profile_recharge_order_and_return { - fn create_profile_recharge_order_and_return(&self, input: RuntimeProfileRechargeOrderCreateInput, -) { - self.create_profile_recharge_order_and_return_then(input, |_, _| {}); + fn create_profile_recharge_order_and_return( + &self, + input: RuntimeProfileRechargeOrderCreateInput, + ) { + self.create_profile_recharge_order_and_return_then(input, |_, _| {}); } fn create_profile_recharge_order_and_return_then( &self, input: RuntimeProfileRechargeOrderCreateInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +46,17 @@ impl create_profile_recharge_order_and_return for super::RemoteProcedures { &self, input: RuntimeProfileRechargeOrderCreateInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, RuntimeProfileRechargeCenterProcedureResult>( - "create_profile_recharge_order_and_return", - CreateProfileRechargeOrderAndReturnArgs { input, }, - __callback, - ); + self.imp + .invoke_procedure_with_callback::<_, RuntimeProfileRechargeCenterProcedureResult>( + "create_profile_recharge_order_and_return", + CreateProfileRechargeOrderAndReturnArgs { 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 index d5c79fa4..9460692b 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::puzzle_agent_session_procedure_result_type::PuzzleAgentSessionProcedureResult; 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 { +struct CreatePuzzleAgentSessionArgs { pub input: PuzzleAgentSessionCreateInput, } - impl __sdk::InModule for CreatePuzzleAgentSessionArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for CreatePuzzleAgentSessionArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl create_puzzle_agent_session for super::RemoteProcedures { &self, input: PuzzleAgentSessionCreateInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, PuzzleAgentSessionProcedureResult>( - "create_puzzle_agent_session", - CreatePuzzleAgentSessionArgs { input, }, - __callback, - ); + 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/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 index 3281a80a..9663e12d 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -17,12 +11,10 @@ pub struct CustomWorldAgentActionExecuteInput { pub owner_user_id: String, pub operation_id: String, pub action: String, - pub payload_json: Option::, + 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 index 6729b4db..39aeb7e0 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::custom_world_agent_operation_snapshot_type::CustomWorldAgentOperationSnapshot; @@ -15,12 +10,10 @@ use super::custom_world_agent_operation_snapshot_type::CustomWorldAgentOperation #[sats(crate = __lib)] pub struct CustomWorldAgentActionExecuteResult { pub ok: bool, - pub operation: Option::, - pub error_message: Option::, + 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 index c6cdeb3b..2b8cde47 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -18,8 +12,6 @@ pub struct CustomWorldAgentCardDetailGetInput { 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 index d0153b44..25184d85 100644 --- 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 @@ -2,15 +2,10 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::rpg_agent_stage_type::RpgAgentStage; 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)] @@ -18,31 +13,29 @@ 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 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 focus_card_id: Option, pub anchor_content_json: String, - pub creator_intent_json: Option::, + pub creator_intent_json: Option, pub creator_intent_readiness_json: String, - pub anchor_pack_json: Option::, - pub draft_profile_json: Option::, + 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 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 index e57b9839..69368214 100644 --- 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 @@ -2,15 +2,10 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::rpg_agent_message_role_type::RpgAgentMessageRole; 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)] @@ -20,12 +15,10 @@ pub struct CustomWorldAgentMessageSnapshot { pub role: RpgAgentMessageRole, pub kind: RpgAgentMessageKind, pub text: String, - pub related_operation_id: Option::, + 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 index bc2da116..cf3a4230 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -21,8 +15,6 @@ pub struct CustomWorldAgentMessageSubmitInput { 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_message_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_message_type.rs index e33b5c4a..75110860 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_message_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_message_type.rs @@ -2,15 +2,10 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::rpg_agent_message_role_type::RpgAgentMessageRole; 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)] @@ -20,16 +15,14 @@ pub struct CustomWorldAgentMessage { pub role: RpgAgentMessageRole, pub kind: RpgAgentMessageKind, pub text: String, - pub related_operation_id: Option::, + pub related_operation_id: Option, pub created_at: __sdk::Timestamp, } - impl __sdk::InModule for CustomWorldAgentMessage { type Module = super::RemoteModule; } - /// Column accessor struct for the table `CustomWorldAgentMessage`. /// /// Provides typed access to columns for query building. @@ -39,7 +32,7 @@ pub struct CustomWorldAgentMessageCols { pub role: __sdk::__query_builder::Col, pub kind: __sdk::__query_builder::Col, pub text: __sdk::__query_builder::Col, - pub related_operation_id: __sdk::__query_builder::Col>, + pub related_operation_id: __sdk::__query_builder::Col>, pub created_at: __sdk::__query_builder::Col, } @@ -52,9 +45,11 @@ impl __sdk::__query_builder::HasCols for CustomWorldAgentMessage { role: __sdk::__query_builder::Col::new(table_name, "role"), kind: __sdk::__query_builder::Col::new(table_name, "kind"), text: __sdk::__query_builder::Col::new(table_name, "text"), - related_operation_id: __sdk::__query_builder::Col::new(table_name, "related_operation_id"), + related_operation_id: __sdk::__query_builder::Col::new( + table_name, + "related_operation_id", + ), created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), - } } } @@ -73,10 +68,8 @@ impl __sdk::__query_builder::HasIxCols for CustomWorldAgentMessage { CustomWorldAgentMessageIxCols { message_id: __sdk::__query_builder::IxCol::new(table_name, "message_id"), session_id: __sdk::__query_builder::IxCol::new(table_name, "session_id"), - } } } impl __sdk::__query_builder::CanBeLookupTable for CustomWorldAgentMessage {} - 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 index 2aa3b05b..1e249edf 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -18,8 +12,6 @@ pub struct CustomWorldAgentOperationGetInput { 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 index f9bf13da..39d0e493 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::custom_world_agent_operation_snapshot_type::CustomWorldAgentOperationSnapshot; @@ -15,12 +10,10 @@ use super::custom_world_agent_operation_snapshot_type::CustomWorldAgentOperation #[sats(crate = __lib)] pub struct CustomWorldAgentOperationProcedureResult { pub ok: bool, - pub operation: Option::, - pub error_message: Option::, + 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 index d7409cfa..b5ecb4a0 100644 --- 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 @@ -2,15 +2,10 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::rpg_agent_operation_type_type::RpgAgentOperationType; 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)] @@ -23,12 +18,10 @@ pub struct CustomWorldAgentOperationProgressInput { pub phase_label: String, pub phase_detail: String, pub operation_progress: u32, - pub error_message: Option::, + 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 index 954a809c..61e86eb3 100644 --- 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 @@ -2,15 +2,10 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::rpg_agent_operation_type_type::RpgAgentOperationType; 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)] @@ -22,13 +17,11 @@ pub struct CustomWorldAgentOperationSnapshot { pub phase_label: String, pub phase_detail: String, pub progress: u32, - pub error_message: Option::, + 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_operation_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_operation_type.rs index b195855d..41957317 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_operation_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_operation_type.rs @@ -2,15 +2,10 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::rpg_agent_operation_type_type::RpgAgentOperationType; 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)] @@ -22,29 +17,28 @@ pub struct CustomWorldAgentOperation { pub phase_label: String, pub phase_detail: String, pub progress: u32, - pub error_message: Option::, + pub error_message: Option, pub created_at: __sdk::Timestamp, pub updated_at: __sdk::Timestamp, } - impl __sdk::InModule for CustomWorldAgentOperation { type Module = super::RemoteModule; } - /// Column accessor struct for the table `CustomWorldAgentOperation`. /// /// Provides typed access to columns for query building. pub struct CustomWorldAgentOperationCols { pub operation_id: __sdk::__query_builder::Col, pub session_id: __sdk::__query_builder::Col, - pub operation_type: __sdk::__query_builder::Col, + pub operation_type: + __sdk::__query_builder::Col, pub status: __sdk::__query_builder::Col, pub phase_label: __sdk::__query_builder::Col, pub phase_detail: __sdk::__query_builder::Col, pub progress: __sdk::__query_builder::Col, - pub error_message: __sdk::__query_builder::Col>, + pub error_message: __sdk::__query_builder::Col>, pub created_at: __sdk::__query_builder::Col, pub updated_at: __sdk::__query_builder::Col, } @@ -63,7 +57,6 @@ impl __sdk::__query_builder::HasCols for CustomWorldAgentOperation { error_message: __sdk::__query_builder::Col::new(table_name, "error_message"), created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"), - } } } @@ -82,10 +75,8 @@ impl __sdk::__query_builder::HasIxCols for CustomWorldAgentOperation { CustomWorldAgentOperationIxCols { operation_id: __sdk::__query_builder::IxCol::new(table_name, "operation_id"), session_id: __sdk::__query_builder::IxCol::new(table_name, "session_id"), - } } } impl __sdk::__query_builder::CanBeLookupTable for CustomWorldAgentOperation {} - 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 index 7a36c77b..d2ea6be9 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -19,11 +13,11 @@ pub struct CustomWorldAgentSessionCreateInput { pub welcome_message_id: String, pub welcome_message_text: String, pub anchor_content_json: String, - pub creator_intent_json: Option::, + 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 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, @@ -33,8 +27,6 @@ pub struct CustomWorldAgentSessionCreateInput { 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 index 0e4f3319..733eaecb 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -17,8 +11,6 @@ pub struct CustomWorldAgentSessionGetInput { 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 index 4da0e11a..1ca24f19 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::custom_world_agent_session_snapshot_type::CustomWorldAgentSessionSnapshot; @@ -15,12 +10,10 @@ use super::custom_world_agent_session_snapshot_type::CustomWorldAgentSessionSnap #[sats(crate = __lib)] pub struct CustomWorldAgentSessionProcedureResult { pub ok: bool, - pub session: Option::, - pub error_message: Option::, + 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 index e263df53..6a50455e 100644 --- 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 @@ -2,17 +2,12 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::rpg_agent_stage_type::RpgAgentStage; use super::custom_world_agent_message_snapshot_type::CustomWorldAgentMessageSnapshot; -use super::custom_world_draft_card_snapshot_type::CustomWorldDraftCardSnapshot; 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)] @@ -23,16 +18,16 @@ pub struct CustomWorldAgentSessionSnapshot { pub current_turn: u32, pub progress_percent: u32, pub stage: RpgAgentStage, - pub focus_card_id: Option::, + pub focus_card_id: Option, pub anchor_content_json: String, - pub creator_intent_json: Option::, + 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 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, @@ -40,15 +35,13 @@ pub struct CustomWorldAgentSessionSnapshot { 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 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_agent_session_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_session_type.rs index 128d93e3..105bc924 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_session_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_agent_session_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::rpg_agent_stage_type::RpgAgentStage; @@ -20,16 +15,16 @@ pub struct CustomWorldAgentSession { pub current_turn: u32, pub progress_percent: u32, pub stage: RpgAgentStage, - pub focus_card_id: Option::, + pub focus_card_id: Option, pub anchor_content_json: String, - pub creator_intent_json: Option::, + 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 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, @@ -40,12 +35,10 @@ pub struct CustomWorldAgentSession { pub updated_at: __sdk::Timestamp, } - impl __sdk::InModule for CustomWorldAgentSession { type Module = super::RemoteModule; } - /// Column accessor struct for the table `CustomWorldAgentSession`. /// /// Provides typed access to columns for query building. @@ -56,16 +49,16 @@ pub struct CustomWorldAgentSessionCols { pub current_turn: __sdk::__query_builder::Col, pub progress_percent: __sdk::__query_builder::Col, pub stage: __sdk::__query_builder::Col, - pub focus_card_id: __sdk::__query_builder::Col>, + pub focus_card_id: __sdk::__query_builder::Col>, pub anchor_content_json: __sdk::__query_builder::Col, - pub creator_intent_json: __sdk::__query_builder::Col>, + pub creator_intent_json: __sdk::__query_builder::Col>, pub creator_intent_readiness_json: __sdk::__query_builder::Col, - pub anchor_pack_json: __sdk::__query_builder::Col>, - pub lock_state_json: __sdk::__query_builder::Col>, - pub draft_profile_json: __sdk::__query_builder::Col>, - pub last_assistant_reply: __sdk::__query_builder::Col>, - pub publish_gate_json: __sdk::__query_builder::Col>, - pub result_preview_json: __sdk::__query_builder::Col>, + pub anchor_pack_json: __sdk::__query_builder::Col>, + pub lock_state_json: __sdk::__query_builder::Col>, + pub draft_profile_json: __sdk::__query_builder::Col>, + pub last_assistant_reply: __sdk::__query_builder::Col>, + pub publish_gate_json: __sdk::__query_builder::Col>, + pub result_preview_json: __sdk::__query_builder::Col>, pub pending_clarifications_json: __sdk::__query_builder::Col, pub quality_findings_json: __sdk::__query_builder::Col, pub suggested_actions_json: __sdk::__query_builder::Col, @@ -87,24 +80,53 @@ impl __sdk::__query_builder::HasCols for CustomWorldAgentSession { progress_percent: __sdk::__query_builder::Col::new(table_name, "progress_percent"), stage: __sdk::__query_builder::Col::new(table_name, "stage"), focus_card_id: __sdk::__query_builder::Col::new(table_name, "focus_card_id"), - anchor_content_json: __sdk::__query_builder::Col::new(table_name, "anchor_content_json"), - creator_intent_json: __sdk::__query_builder::Col::new(table_name, "creator_intent_json"), - creator_intent_readiness_json: __sdk::__query_builder::Col::new(table_name, "creator_intent_readiness_json"), + anchor_content_json: __sdk::__query_builder::Col::new( + table_name, + "anchor_content_json", + ), + creator_intent_json: __sdk::__query_builder::Col::new( + table_name, + "creator_intent_json", + ), + creator_intent_readiness_json: __sdk::__query_builder::Col::new( + table_name, + "creator_intent_readiness_json", + ), anchor_pack_json: __sdk::__query_builder::Col::new(table_name, "anchor_pack_json"), lock_state_json: __sdk::__query_builder::Col::new(table_name, "lock_state_json"), draft_profile_json: __sdk::__query_builder::Col::new(table_name, "draft_profile_json"), - last_assistant_reply: __sdk::__query_builder::Col::new(table_name, "last_assistant_reply"), + last_assistant_reply: __sdk::__query_builder::Col::new( + table_name, + "last_assistant_reply", + ), publish_gate_json: __sdk::__query_builder::Col::new(table_name, "publish_gate_json"), - result_preview_json: __sdk::__query_builder::Col::new(table_name, "result_preview_json"), - pending_clarifications_json: __sdk::__query_builder::Col::new(table_name, "pending_clarifications_json"), - quality_findings_json: __sdk::__query_builder::Col::new(table_name, "quality_findings_json"), - suggested_actions_json: __sdk::__query_builder::Col::new(table_name, "suggested_actions_json"), - recommended_replies_json: __sdk::__query_builder::Col::new(table_name, "recommended_replies_json"), - asset_coverage_json: __sdk::__query_builder::Col::new(table_name, "asset_coverage_json"), + result_preview_json: __sdk::__query_builder::Col::new( + table_name, + "result_preview_json", + ), + pending_clarifications_json: __sdk::__query_builder::Col::new( + table_name, + "pending_clarifications_json", + ), + quality_findings_json: __sdk::__query_builder::Col::new( + table_name, + "quality_findings_json", + ), + suggested_actions_json: __sdk::__query_builder::Col::new( + table_name, + "suggested_actions_json", + ), + recommended_replies_json: __sdk::__query_builder::Col::new( + table_name, + "recommended_replies_json", + ), + asset_coverage_json: __sdk::__query_builder::Col::new( + table_name, + "asset_coverage_json", + ), checkpoints_json: __sdk::__query_builder::Col::new(table_name, "checkpoints_json"), created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"), - } } } @@ -125,10 +147,8 @@ impl __sdk::__query_builder::HasIxCols for CustomWorldAgentSession { owner_user_id: __sdk::__query_builder::IxCol::new(table_name, "owner_user_id"), session_id: __sdk::__query_builder::IxCol::new(table_name, "session_id"), stage: __sdk::__query_builder::IxCol::new(table_name, "stage"), - } } } impl __sdk::__query_builder::CanBeLookupTable for CustomWorldAgentSession {} - 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 index 384a2c8c..ee8f9ba4 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::custom_world_draft_card_detail_snapshot_type::CustomWorldDraftCardDetailSnapshot; @@ -15,12 +10,10 @@ use super::custom_world_draft_card_detail_snapshot_type::CustomWorldDraftCardDet #[sats(crate = __lib)] pub struct CustomWorldDraftCardDetailResult { pub ok: bool, - pub card: Option::, - pub error_message: Option::, + 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 index 2e256890..b7f30c00 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -18,8 +12,6 @@ pub struct CustomWorldDraftCardDetailSectionSnapshot { 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 index 6bb20096..fab895fe 100644 --- 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 @@ -2,16 +2,11 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::rpg_agent_draft_card_kind_type::RpgAgentDraftCardKind; -use super::custom_world_role_asset_status_type::CustomWorldRoleAssetStatus; 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)] @@ -19,18 +14,16 @@ pub struct CustomWorldDraftCardDetailSnapshot { pub card_id: String, pub kind: RpgAgentDraftCardKind, pub title: String, - pub sections: Vec::, + 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::, + 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 index c9497003..84108f6e 100644 --- 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 @@ -2,16 +2,11 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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; -use super::custom_world_role_asset_status_type::CustomWorldRoleAssetStatus; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -25,15 +20,13 @@ pub struct CustomWorldDraftCardSnapshot { 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 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_draft_card_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_draft_card_type.rs index 64dd162a..600c1f31 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_draft_card_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_draft_card_type.rs @@ -2,16 +2,11 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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; -use super::custom_world_role_asset_status_type::CustomWorldRoleAssetStatus; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -25,19 +20,17 @@ pub struct CustomWorldDraftCard { 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 asset_status: Option, + pub asset_status_label: Option, + pub detail_payload_json: Option, pub created_at: __sdk::Timestamp, pub updated_at: __sdk::Timestamp, } - impl __sdk::InModule for CustomWorldDraftCard { type Module = super::RemoteModule; } - /// Column accessor struct for the table `CustomWorldDraftCard`. /// /// Provides typed access to columns for query building. @@ -51,9 +44,10 @@ pub struct CustomWorldDraftCardCols { pub summary: __sdk::__query_builder::Col, pub linked_ids_json: __sdk::__query_builder::Col, pub warning_count: __sdk::__query_builder::Col, - pub asset_status: __sdk::__query_builder::Col>, - pub asset_status_label: __sdk::__query_builder::Col>, - pub detail_payload_json: __sdk::__query_builder::Col>, + pub asset_status: + __sdk::__query_builder::Col>, + pub asset_status_label: __sdk::__query_builder::Col>, + pub detail_payload_json: __sdk::__query_builder::Col>, pub created_at: __sdk::__query_builder::Col, pub updated_at: __sdk::__query_builder::Col, } @@ -73,10 +67,12 @@ impl __sdk::__query_builder::HasCols for CustomWorldDraftCard { warning_count: __sdk::__query_builder::Col::new(table_name, "warning_count"), asset_status: __sdk::__query_builder::Col::new(table_name, "asset_status"), asset_status_label: __sdk::__query_builder::Col::new(table_name, "asset_status_label"), - detail_payload_json: __sdk::__query_builder::Col::new(table_name, "detail_payload_json"), + detail_payload_json: __sdk::__query_builder::Col::new( + table_name, + "detail_payload_json", + ), created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"), - } } } @@ -97,10 +93,8 @@ impl __sdk::__query_builder::HasIxCols for CustomWorldDraftCard { card_id: __sdk::__query_builder::IxCol::new(table_name, "card_id"), kind: __sdk::__query_builder::IxCol::new(table_name, "kind"), session_id: __sdk::__query_builder::IxCol::new(table_name, "session_id"), - } } } impl __sdk::__query_builder::CanBeLookupTable for CustomWorldDraftCard {} - 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 index acdc32d0..0dd8127b 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,8 +10,6 @@ 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 index 5df002ea..64724446 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -17,8 +11,6 @@ pub struct CustomWorldGalleryDetailInput { 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 index 04616d88..ac3cf555 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::custom_world_theme_mode_type::CustomWorldThemeMode; @@ -22,7 +17,7 @@ pub struct CustomWorldGalleryEntrySnapshot { pub world_name: String, pub subtitle: String, pub summary_text: String, - pub cover_image_src: Option::, + pub cover_image_src: Option, pub theme_mode: CustomWorldThemeMode, pub playable_npc_count: u32, pub landmark_count: u32, @@ -30,8 +25,6 @@ pub struct CustomWorldGalleryEntrySnapshot { 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_entry_table.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_gallery_entry_table.rs index f215d0c9..425b6a12 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_gallery_entry_table.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_gallery_entry_table.rs @@ -2,14 +2,9 @@ // WILL NOT BE SAVED. 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_type::CustomWorldGalleryEntry; use super::custom_world_theme_mode_type::CustomWorldThemeMode; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; /// Table handle for the table `custom_world_gallery_entry`. /// @@ -37,7 +32,9 @@ pub trait CustomWorldGalleryEntryTableAccess { impl CustomWorldGalleryEntryTableAccess for super::RemoteTables { fn custom_world_gallery_entry(&self) -> CustomWorldGalleryEntryTableHandle<'_> { CustomWorldGalleryEntryTableHandle { - imp: self.imp.get_table::("custom_world_gallery_entry"), + imp: self + .imp + .get_table::("custom_world_gallery_entry"), ctx: std::marker::PhantomData, } } @@ -50,8 +47,12 @@ impl<'ctx> __sdk::Table for CustomWorldGalleryEntryTableHandle<'ctx> { type Row = CustomWorldGalleryEntry; type EventContext = super::EventContext; - fn count(&self) -> u64 { self.imp.count() } - fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } + fn count(&self) -> u64 { + self.imp.count() + } + fn iter(&self) -> impl Iterator + '_ { + self.imp.iter() + } type InsertCallbackId = CustomWorldGalleryEntryInsertCallbackId; @@ -97,40 +98,40 @@ impl<'ctx> __sdk::TableWithPrimaryKey for CustomWorldGalleryEntryTableHandle<'ct } } - /// Access to the `profile_id` unique index on the table `custom_world_gallery_entry`, - /// which allows point queries on the field of the same name - /// via the [`CustomWorldGalleryEntryProfileIdUnique::find`] method. - /// - /// Users are encouraged not to explicitly reference this type, - /// but to directly chain method calls, - /// like `ctx.db.custom_world_gallery_entry().profile_id().find(...)`. - pub struct CustomWorldGalleryEntryProfileIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, - } +/// Access to the `profile_id` unique index on the table `custom_world_gallery_entry`, +/// which allows point queries on the field of the same name +/// via the [`CustomWorldGalleryEntryProfileIdUnique::find`] method. +/// +/// Users are encouraged not to explicitly reference this type, +/// but to directly chain method calls, +/// like `ctx.db.custom_world_gallery_entry().profile_id().find(...)`. +pub struct CustomWorldGalleryEntryProfileIdUnique<'ctx> { + imp: __sdk::UniqueConstraintHandle, + phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, +} - impl<'ctx> CustomWorldGalleryEntryTableHandle<'ctx> { - /// Get a handle on the `profile_id` unique index on the table `custom_world_gallery_entry`. - pub fn profile_id(&self) -> CustomWorldGalleryEntryProfileIdUnique<'ctx> { - CustomWorldGalleryEntryProfileIdUnique { - imp: self.imp.get_unique_constraint::("profile_id"), - phantom: std::marker::PhantomData, - } - } +impl<'ctx> CustomWorldGalleryEntryTableHandle<'ctx> { + /// Get a handle on the `profile_id` unique index on the table `custom_world_gallery_entry`. + pub fn profile_id(&self) -> CustomWorldGalleryEntryProfileIdUnique<'ctx> { + CustomWorldGalleryEntryProfileIdUnique { + imp: self.imp.get_unique_constraint::("profile_id"), + phantom: std::marker::PhantomData, } + } +} + +impl<'ctx> CustomWorldGalleryEntryProfileIdUnique<'ctx> { + /// Find the subscribed row whose `profile_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) + } +} - impl<'ctx> CustomWorldGalleryEntryProfileIdUnique<'ctx> { - /// Find the subscribed row whose `profile_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::("custom_world_gallery_entry"); + let _table = + client_cache.get_or_make_table::("custom_world_gallery_entry"); _table.add_unique_constraint::("profile_id", |row| &row.profile_id); } @@ -139,26 +140,24 @@ 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() + __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") + .with_cause(e) + .into() }) } - #[allow(non_camel_case_types)] - /// Extension trait for query builder access to the table `CustomWorldGalleryEntry`. - /// - /// Implemented for [`__sdk::QueryTableAccessor`]. - pub trait custom_world_gallery_entryQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `CustomWorldGalleryEntry`. - fn custom_world_gallery_entry(&self) -> __sdk::__query_builder::Table; - } - - impl custom_world_gallery_entryQueryTableAccess for __sdk::QueryTableAccessor { - fn custom_world_gallery_entry(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("custom_world_gallery_entry") - } - } +#[allow(non_camel_case_types)] +/// Extension trait for query builder access to the table `CustomWorldGalleryEntry`. +/// +/// Implemented for [`__sdk::QueryTableAccessor`]. +pub trait custom_world_gallery_entryQueryTableAccess { + #[allow(non_snake_case)] + /// Get a query builder for the table `CustomWorldGalleryEntry`. + fn custom_world_gallery_entry(&self) -> __sdk::__query_builder::Table; +} +impl custom_world_gallery_entryQueryTableAccess for __sdk::QueryTableAccessor { + fn custom_world_gallery_entry(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("custom_world_gallery_entry") + } +} diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_gallery_entry_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_gallery_entry_type.rs index 976ccc10..a1fc0481 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_gallery_entry_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_gallery_entry_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::custom_world_theme_mode_type::CustomWorldThemeMode; @@ -22,7 +17,7 @@ pub struct CustomWorldGalleryEntry { pub world_name: String, pub subtitle: String, pub summary_text: String, - pub cover_image_src: Option::, + pub cover_image_src: Option, pub theme_mode: CustomWorldThemeMode, pub playable_npc_count: u32, pub landmark_count: u32, @@ -30,12 +25,10 @@ pub struct CustomWorldGalleryEntry { pub updated_at: __sdk::Timestamp, } - impl __sdk::InModule for CustomWorldGalleryEntry { type Module = super::RemoteModule; } - /// Column accessor struct for the table `CustomWorldGalleryEntry`. /// /// Provides typed access to columns for query building. @@ -48,7 +41,7 @@ pub struct CustomWorldGalleryEntryCols { 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_image_src: __sdk::__query_builder::Col>, pub theme_mode: __sdk::__query_builder::Col, pub playable_npc_count: __sdk::__query_builder::Col, pub landmark_count: __sdk::__query_builder::Col, @@ -63,8 +56,14 @@ impl __sdk::__query_builder::HasCols for CustomWorldGalleryEntry { profile_id: __sdk::__query_builder::Col::new(table_name, "profile_id"), owner_user_id: __sdk::__query_builder::Col::new(table_name, "owner_user_id"), public_work_code: __sdk::__query_builder::Col::new(table_name, "public_work_code"), - author_public_user_code: __sdk::__query_builder::Col::new(table_name, "author_public_user_code"), - author_display_name: __sdk::__query_builder::Col::new(table_name, "author_display_name"), + author_public_user_code: __sdk::__query_builder::Col::new( + table_name, + "author_public_user_code", + ), + 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"), @@ -74,7 +73,6 @@ impl __sdk::__query_builder::HasCols for CustomWorldGalleryEntry { landmark_count: __sdk::__query_builder::Col::new(table_name, "landmark_count"), published_at: __sdk::__query_builder::Col::new(table_name, "published_at"), updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"), - } } } @@ -97,10 +95,8 @@ impl __sdk::__query_builder::HasIxCols for CustomWorldGalleryEntry { profile_id: __sdk::__query_builder::IxCol::new(table_name, "profile_id"), public_work_code: __sdk::__query_builder::IxCol::new(table_name, "public_work_code"), theme_mode: __sdk::__query_builder::IxCol::new(table_name, "theme_mode"), - } } } impl __sdk::__query_builder::CanBeLookupTable for CustomWorldGalleryEntry {} - 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 index 357c32c5..bf101ef1 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::custom_world_gallery_entry_snapshot_type::CustomWorldGalleryEntrySnapshot; @@ -15,12 +10,10 @@ use super::custom_world_gallery_entry_snapshot_type::CustomWorldGalleryEntrySnap #[sats(crate = __lib)] pub struct CustomWorldGalleryListResult { pub ok: bool, - pub entries: Vec::, - pub error_message: Option::, + 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_generation_mode_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_generation_mode_type.rs index 375a464c..8b424a9a 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_generation_mode_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_generation_mode_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,12 +11,8 @@ pub enum CustomWorldGenerationMode { Fast, Full, - } - - impl __sdk::InModule for CustomWorldGenerationMode { 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 index e29dbaa9..472c1b80 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -17,8 +11,6 @@ pub struct CustomWorldLibraryDetailInput { 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 index 6fd0d2ff..3c3bb3b3 100644 --- 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 @@ -2,27 +2,20 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::custom_world_profile_snapshot_type::CustomWorldProfileSnapshot; 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::, + 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 index 65a7d4ab..f9d4a10f 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -18,8 +12,6 @@ pub struct CustomWorldProfileDeleteInput { 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_list_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_list_input_type.rs index 2d4b431e..53c46830 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,8 +10,6 @@ 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 index 4e6a5a4a..10db7d0e 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::custom_world_profile_snapshot_type::CustomWorldProfileSnapshot; @@ -15,12 +10,10 @@ use super::custom_world_profile_snapshot_type::CustomWorldProfileSnapshot; #[sats(crate = __lib)] pub struct CustomWorldProfileListResult { pub ok: bool, - pub entries: Vec::, - pub error_message: Option::, + 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_publish_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_publish_input_type.rs index 3a88edf7..0190e015 100644 --- 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 @@ -2,27 +2,19 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +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 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_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_snapshot_type.rs index 0d404e2b..3b9f8b5a 100644 --- 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 @@ -2,42 +2,35 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::custom_world_theme_mode_type::CustomWorldThemeMode; 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 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 cover_image_src: Option, pub profile_payload_json: String, pub playable_npc_count: u32, pub landmark_count: u32, pub author_display_name: String, - pub published_at_micros: Option::, - pub deleted_at_micros: Option::, + 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_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_type.rs index ebcb964a..8923286f 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_profile_type.rs @@ -2,67 +2,61 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::custom_world_theme_mode_type::CustomWorldThemeMode; 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 CustomWorldProfile { 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 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 cover_image_src: Option, pub profile_payload_json: String, pub playable_npc_count: u32, pub landmark_count: u32, pub author_display_name: String, - pub published_at: Option::<__sdk::Timestamp>, - pub deleted_at: Option::<__sdk::Timestamp>, + pub published_at: Option<__sdk::Timestamp>, + pub deleted_at: Option<__sdk::Timestamp>, pub created_at: __sdk::Timestamp, pub updated_at: __sdk::Timestamp, } - impl __sdk::InModule for CustomWorldProfile { type Module = super::RemoteModule; } - /// Column accessor struct for the table `CustomWorldProfile`. /// /// Provides typed access to columns for query building. pub struct CustomWorldProfileCols { pub profile_id: __sdk::__query_builder::Col, pub owner_user_id: __sdk::__query_builder::Col, - pub public_work_code: __sdk::__query_builder::Col>, - pub author_public_user_code: __sdk::__query_builder::Col>, - pub source_agent_session_id: __sdk::__query_builder::Col>, - pub publication_status: __sdk::__query_builder::Col, + pub public_work_code: __sdk::__query_builder::Col>, + pub author_public_user_code: __sdk::__query_builder::Col>, + pub source_agent_session_id: __sdk::__query_builder::Col>, + pub publication_status: + __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 theme_mode: __sdk::__query_builder::Col, - pub cover_image_src: __sdk::__query_builder::Col>, + pub cover_image_src: __sdk::__query_builder::Col>, pub profile_payload_json: __sdk::__query_builder::Col, pub playable_npc_count: __sdk::__query_builder::Col, pub landmark_count: __sdk::__query_builder::Col, pub author_display_name: __sdk::__query_builder::Col, - pub published_at: __sdk::__query_builder::Col>, - pub deleted_at: __sdk::__query_builder::Col>, + pub published_at: __sdk::__query_builder::Col>, + pub deleted_at: __sdk::__query_builder::Col>, pub created_at: __sdk::__query_builder::Col, pub updated_at: __sdk::__query_builder::Col, } @@ -74,23 +68,34 @@ impl __sdk::__query_builder::HasCols for CustomWorldProfile { profile_id: __sdk::__query_builder::Col::new(table_name, "profile_id"), owner_user_id: __sdk::__query_builder::Col::new(table_name, "owner_user_id"), public_work_code: __sdk::__query_builder::Col::new(table_name, "public_work_code"), - author_public_user_code: __sdk::__query_builder::Col::new(table_name, "author_public_user_code"), - source_agent_session_id: __sdk::__query_builder::Col::new(table_name, "source_agent_session_id"), + author_public_user_code: __sdk::__query_builder::Col::new( + table_name, + "author_public_user_code", + ), + source_agent_session_id: __sdk::__query_builder::Col::new( + table_name, + "source_agent_session_id", + ), publication_status: __sdk::__query_builder::Col::new(table_name, "publication_status"), 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"), theme_mode: __sdk::__query_builder::Col::new(table_name, "theme_mode"), cover_image_src: __sdk::__query_builder::Col::new(table_name, "cover_image_src"), - profile_payload_json: __sdk::__query_builder::Col::new(table_name, "profile_payload_json"), + profile_payload_json: __sdk::__query_builder::Col::new( + table_name, + "profile_payload_json", + ), playable_npc_count: __sdk::__query_builder::Col::new(table_name, "playable_npc_count"), landmark_count: __sdk::__query_builder::Col::new(table_name, "landmark_count"), - author_display_name: __sdk::__query_builder::Col::new(table_name, "author_display_name"), + author_display_name: __sdk::__query_builder::Col::new( + table_name, + "author_display_name", + ), published_at: __sdk::__query_builder::Col::new(table_name, "published_at"), deleted_at: __sdk::__query_builder::Col::new(table_name, "deleted_at"), created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"), - } } } @@ -101,7 +106,8 @@ impl __sdk::__query_builder::HasCols for CustomWorldProfile { pub struct CustomWorldProfileIxCols { pub owner_user_id: __sdk::__query_builder::IxCol, pub profile_id: __sdk::__query_builder::IxCol, - pub publication_status: __sdk::__query_builder::IxCol, + pub publication_status: + __sdk::__query_builder::IxCol, } impl __sdk::__query_builder::HasIxCols for CustomWorldProfile { @@ -110,11 +116,12 @@ impl __sdk::__query_builder::HasIxCols for CustomWorldProfile { CustomWorldProfileIxCols { owner_user_id: __sdk::__query_builder::IxCol::new(table_name, "owner_user_id"), profile_id: __sdk::__query_builder::IxCol::new(table_name, "profile_id"), - publication_status: __sdk::__query_builder::IxCol::new(table_name, "publication_status"), - + publication_status: __sdk::__query_builder::IxCol::new( + table_name, + "publication_status", + ), } } } impl __sdk::__query_builder::CanBeLookupTable for CustomWorldProfile {} - 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 index 79aa9ff6..7d688d96 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -19,8 +13,6 @@ pub struct CustomWorldProfileUnpublishInput { 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 index 0ea2ef8c..323a72f3 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::custom_world_theme_mode_type::CustomWorldThemeMode; @@ -16,14 +11,14 @@ use super::custom_world_theme_mode_type::CustomWorldThemeMode; 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 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 cover_image_src: Option, pub profile_payload_json: String, pub playable_npc_count: u32, pub landmark_count: u32, @@ -31,8 +26,6 @@ pub struct CustomWorldProfileUpsertInput { 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_publication_status_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_publication_status_type.rs index d81681f4..f21186ff 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_publication_status_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_publication_status_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,12 +11,8 @@ pub enum CustomWorldPublicationStatus { Draft, Published, - } - - impl __sdk::InModule for CustomWorldPublicationStatus { 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 index 74160cd9..a95c0561 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,17 +10,15 @@ pub struct CustomWorldPublishWorldInput { pub session_id: String, pub profile_id: String, pub owner_user_id: String, - pub public_work_code: Option::, + pub public_work_code: Option, pub author_public_user_code: String, pub draft_profile_json: String, - pub legacy_result_profile_json: Option::, + 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 index 542810a3..a44ca2b1 100644 --- 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 @@ -2,31 +2,24 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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; -use super::custom_world_profile_snapshot_type::CustomWorldProfileSnapshot; -use super::custom_world_gallery_entry_snapshot_type::CustomWorldGalleryEntrySnapshot; #[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::, + 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 index c78399a4..fda3d08b 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -17,14 +11,12 @@ pub struct CustomWorldPublishedProfileCompileInput { pub profile_id: String, pub owner_user_id: String, pub draft_profile_json: String, - pub legacy_result_profile_json: Option::, + 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 index 42d770b5..4783f889 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::custom_world_published_profile_compile_snapshot_type::CustomWorldPublishedProfileCompileSnapshot; @@ -15,12 +10,10 @@ use super::custom_world_published_profile_compile_snapshot_type::CustomWorldPubl #[sats(crate = __lib)] pub struct CustomWorldPublishedProfileCompileResult { pub ok: bool, - pub record: Option::, - pub error_message: Option::, + 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 index 9214b492..0af4d59e 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::custom_world_theme_mode_type::CustomWorldThemeMode; @@ -20,7 +15,7 @@ pub struct CustomWorldPublishedProfileCompileSnapshot { pub subtitle: String, pub summary_text: String, pub theme_mode: CustomWorldThemeMode, - pub cover_image_src: Option::, + pub cover_image_src: Option, pub playable_npc_count: u32, pub landmark_count: u32, pub author_display_name: String, @@ -28,8 +23,6 @@ pub struct CustomWorldPublishedProfileCompileSnapshot { 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_role_asset_status_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_role_asset_status_type.rs index a969aa55..1ab238e9 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_role_asset_status_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_role_asset_status_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -20,12 +15,8 @@ pub enum CustomWorldRoleAssetStatus { AnimationsReady, Complete, - } - - impl __sdk::InModule for CustomWorldRoleAssetStatus { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_session_status_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_session_status_type.rs index f7fe499d..9b640e4f 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_session_status_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_session_status_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -22,12 +17,8 @@ pub enum CustomWorldSessionStatus { Completed, GenerationError, - } - - impl __sdk::InModule for CustomWorldSessionStatus { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_session_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_session_type.rs index 2646073e..58e9f40c 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_session_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_session_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::custom_world_generation_mode_type::CustomWorldGenerationMode; use super::custom_world_session_status_type::CustomWorldSessionStatus; @@ -20,20 +15,18 @@ pub struct CustomWorldSession { pub generation_mode: CustomWorldGenerationMode, pub status: CustomWorldSessionStatus, pub setting_text: String, - pub creator_intent_json: Option::, + pub creator_intent_json: Option, pub question_snapshot_json: String, - pub result_payload_json: Option::, - pub last_error_message: Option::, + pub result_payload_json: Option, + pub last_error_message: Option, pub created_at: __sdk::Timestamp, pub updated_at: __sdk::Timestamp, } - impl __sdk::InModule for CustomWorldSession { type Module = super::RemoteModule; } - /// Column accessor struct for the table `CustomWorldSession`. /// /// Provides typed access to columns for query building. @@ -43,10 +36,10 @@ pub struct CustomWorldSessionCols { pub generation_mode: __sdk::__query_builder::Col, pub status: __sdk::__query_builder::Col, pub setting_text: __sdk::__query_builder::Col, - pub creator_intent_json: __sdk::__query_builder::Col>, + pub creator_intent_json: __sdk::__query_builder::Col>, pub question_snapshot_json: __sdk::__query_builder::Col, - pub result_payload_json: __sdk::__query_builder::Col>, - pub last_error_message: __sdk::__query_builder::Col>, + pub result_payload_json: __sdk::__query_builder::Col>, + pub last_error_message: __sdk::__query_builder::Col>, pub created_at: __sdk::__query_builder::Col, pub updated_at: __sdk::__query_builder::Col, } @@ -60,13 +53,21 @@ impl __sdk::__query_builder::HasCols for CustomWorldSession { generation_mode: __sdk::__query_builder::Col::new(table_name, "generation_mode"), status: __sdk::__query_builder::Col::new(table_name, "status"), setting_text: __sdk::__query_builder::Col::new(table_name, "setting_text"), - creator_intent_json: __sdk::__query_builder::Col::new(table_name, "creator_intent_json"), - question_snapshot_json: __sdk::__query_builder::Col::new(table_name, "question_snapshot_json"), - result_payload_json: __sdk::__query_builder::Col::new(table_name, "result_payload_json"), + creator_intent_json: __sdk::__query_builder::Col::new( + table_name, + "creator_intent_json", + ), + question_snapshot_json: __sdk::__query_builder::Col::new( + table_name, + "question_snapshot_json", + ), + result_payload_json: __sdk::__query_builder::Col::new( + table_name, + "result_payload_json", + ), last_error_message: __sdk::__query_builder::Col::new(table_name, "last_error_message"), created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"), - } } } @@ -85,10 +86,8 @@ impl __sdk::__query_builder::HasIxCols for CustomWorldSession { CustomWorldSessionIxCols { owner_user_id: __sdk::__query_builder::IxCol::new(table_name, "owner_user_id"), session_id: __sdk::__query_builder::IxCol::new(table_name, "session_id"), - } } } impl __sdk::__query_builder::CanBeLookupTable for CustomWorldSession {} - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_theme_mode_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_theme_mode_type.rs index 766d1d08..2084ea04 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/custom_world_theme_mode_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/custom_world_theme_mode_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -24,12 +19,8 @@ pub enum CustomWorldThemeMode { Rift, Mythic, - } - - impl __sdk::InModule for CustomWorldThemeMode { 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 index e81345b0..ed735fc3 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::rpg_agent_stage_type::RpgAgentStage; @@ -20,28 +15,26 @@ pub struct CustomWorldWorkSummarySnapshot { pub title: String, pub subtitle: String, pub summary: String, - pub cover_image_src: Option::, - pub cover_render_mode: Option::, + 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 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 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 index 073faecf..a007007b 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,8 +10,6 @@ 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 index 937b450e..9296740e 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::custom_world_work_summary_snapshot_type::CustomWorldWorkSummarySnapshot; @@ -15,12 +10,10 @@ use super::custom_world_work_summary_snapshot_type::CustomWorldWorkSummarySnapsh #[sats(crate = __lib)] pub struct CustomWorldWorksListResult { pub ok: bool, - pub items: Vec::, - pub error_message: Option::, + 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_big_fish_work_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/delete_big_fish_work_procedure.rs index b8b9c6e6..51cc224f 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 { +struct DeleteBigFishWorkArgs { pub input: BigFishWorkDeleteInput, } - impl __sdk::InModule for DeleteBigFishWorkArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for DeleteBigFishWorkArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl delete_big_fish_work for super::RemoteProcedures { &self, input: BigFishWorkDeleteInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, BigFishWorksProcedureResult>( - "delete_big_fish_work", - DeleteBigFishWorkArgs { input, }, - __callback, - ); + 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 index 887f7a44..27341561 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 { +struct DeleteCustomWorldAgentSessionArgs { pub input: CustomWorldAgentSessionGetInput, } - impl __sdk::InModule for DeleteCustomWorldAgentSessionArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for DeleteCustomWorldAgentSessionArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl delete_custom_world_agent_session for super::RemoteProcedures { &self, input: CustomWorldAgentSessionGetInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, CustomWorldWorksListResult>( - "delete_custom_world_agent_session", - DeleteCustomWorldAgentSessionArgs { input, }, - __callback, - ); + 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 index 4dfc8daf..246d4d00 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 { +struct DeleteCustomWorldProfileAndReturnArgs { pub input: CustomWorldProfileDeleteInput, } - impl __sdk::InModule for DeleteCustomWorldProfileAndReturnArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for DeleteCustomWorldProfileAndReturnArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl delete_custom_world_profile_and_return for super::RemoteProcedures { &self, input: CustomWorldProfileDeleteInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, CustomWorldProfileListResult>( - "delete_custom_world_profile_and_return", - DeleteCustomWorldProfileAndReturnArgs { input, }, - __callback, - ); + 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_puzzle_work_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/delete_puzzle_work_procedure.rs index 500eaf84..5b7e5375 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 { +struct DeletePuzzleWorkArgs { pub input: PuzzleWorkDeleteInput, } - impl __sdk::InModule for DeletePuzzleWorkArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for DeletePuzzleWorkArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl delete_puzzle_work for super::RemoteProcedures { &self, input: PuzzleWorkDeleteInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, PuzzleWorksProcedureResult>( - "delete_puzzle_work", - DeletePuzzleWorkArgs { input, }, - __callback, - ); + 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 index 6c38b74b..6373a19b 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 { +struct DeleteRuntimeSnapshotAndReturnArgs { pub input: RuntimeSnapshotDeleteInput, } - impl __sdk::InModule for DeleteRuntimeSnapshotAndReturnArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for DeleteRuntimeSnapshotAndReturnArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl delete_runtime_snapshot_and_return for super::RemoteProcedures { &self, input: RuntimeSnapshotDeleteInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, RuntimeSnapshotProcedureResult>( - "delete_runtime_snapshot_and_return", - DeleteRuntimeSnapshotAndReturnArgs { input, }, - __callback, - ); + 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/drag_puzzle_piece_or_group_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/drag_puzzle_piece_or_group_procedure.rs index 49c4ee1c..daad89bd 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::puzzle_run_procedure_result_type::PuzzleRunProcedureResult; 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 { +struct DragPuzzlePieceOrGroupArgs { pub input: PuzzleRunDragInput, } - impl __sdk::InModule for DragPuzzlePieceOrGroupArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for DragPuzzlePieceOrGroupArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl drag_puzzle_piece_or_group for super::RemoteProcedures { &self, input: PuzzleRunDragInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, PuzzleRunProcedureResult>( - "drag_puzzle_piece_or_group", - DragPuzzlePieceOrGroupArgs { input, }, - __callback, - ); + 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/equip_inventory_item_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/equip_inventory_item_input_type.rs index 19545699..775ad7fa 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,8 +10,6 @@ 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 index 390871f5..e778877c 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 { +struct ExecuteCustomWorldAgentActionArgs { pub input: CustomWorldAgentActionExecuteInput, } - impl __sdk::InModule for ExecuteCustomWorldAgentActionArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for ExecuteCustomWorldAgentActionArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl execute_custom_world_agent_action for super::RemoteProcedures { &self, input: CustomWorldAgentActionExecuteInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, CustomWorldAgentActionExecuteResult>( - "execute_custom_world_agent_action", - ExecuteCustomWorldAgentActionArgs { input, }, - __callback, - ); + 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/export_auth_store_snapshot_from_tables_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/export_auth_store_snapshot_from_tables_procedure.rs index 2e273a5e..9f8842ad 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/export_auth_store_snapshot_from_tables_procedure.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/export_auth_store_snapshot_from_tables_procedure.rs @@ -2,20 +2,13 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::auth_store_snapshot_procedure_result_type::AuthStoreSnapshotProcedureResult; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] - struct ExportAuthStoreSnapshotFromTablesArgs { - } - +struct ExportAuthStoreSnapshotFromTablesArgs {} impl __sdk::InModule for ExportAuthStoreSnapshotFromTablesArgs { type Module = super::RemoteModule; @@ -26,28 +19,36 @@ impl __sdk::InModule for ExportAuthStoreSnapshotFromTablesArgs { /// /// Implemented for [`super::RemoteProcedures`]. pub trait export_auth_store_snapshot_from_tables { - fn export_auth_store_snapshot_from_tables(&self, ) { - self.export_auth_store_snapshot_from_tables_then( |_, _| {}); + fn export_auth_store_snapshot_from_tables(&self) { + self.export_auth_store_snapshot_from_tables_then(|_, _| {}); } fn export_auth_store_snapshot_from_tables_then( &self, - - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } impl export_auth_store_snapshot_from_tables for super::RemoteProcedures { fn export_auth_store_snapshot_from_tables_then( &self, - - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, AuthStoreSnapshotProcedureResult>( - "export_auth_store_snapshot_from_tables", - ExportAuthStoreSnapshotFromTablesArgs { }, - __callback, - ); + self.imp + .invoke_procedure_with_callback::<_, AuthStoreSnapshotProcedureResult>( + "export_auth_store_snapshot_from_tables", + ExportAuthStoreSnapshotFromTablesArgs {}, + __callback, + ); } } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/fail_ai_task_and_return_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/fail_ai_task_and_return_procedure.rs index b92e796d..46090a01 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/fail_ai_task_and_return_procedure.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/fail_ai_task_and_return_procedure.rs @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::ai_task_procedure_result_type::AiTaskProcedureResult; use super::ai_task_failure_input_type::AiTaskFailureInput; +use super::ai_task_procedure_result_type::AiTaskProcedureResult; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] - struct FailAiTaskAndReturnArgs { +struct FailAiTaskAndReturnArgs { pub input: AiTaskFailureInput, } - impl __sdk::InModule for FailAiTaskAndReturnArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for FailAiTaskAndReturnArgs { /// /// Implemented for [`super::RemoteProcedures`]. pub trait fail_ai_task_and_return { - fn fail_ai_task_and_return(&self, input: AiTaskFailureInput, -) { - self.fail_ai_task_and_return_then(input, |_, _| {}); + fn fail_ai_task_and_return(&self, input: AiTaskFailureInput) { + self.fail_ai_task_and_return_then(input, |_, _| {}); } fn fail_ai_task_and_return_then( &self, input: AiTaskFailureInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl fail_ai_task_and_return for super::RemoteProcedures { &self, input: AiTaskFailureInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, AiTaskProcedureResult>( - "fail_ai_task_and_return", - FailAiTaskAndReturnArgs { input, }, - __callback, - ); + self.imp + .invoke_procedure_with_callback::<_, AiTaskProcedureResult>( + "fail_ai_task_and_return", + FailAiTaskAndReturnArgs { 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 index 29f7ff55..9f5c8e7a 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::big_fish_session_procedure_result_type::BigFishSessionProcedureResult; 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 { +struct FinalizeBigFishAgentMessageTurnArgs { pub input: BigFishMessageFinalizeInput, } - impl __sdk::InModule for FinalizeBigFishAgentMessageTurnArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for FinalizeBigFishAgentMessageTurnArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl finalize_big_fish_agent_message_turn for super::RemoteProcedures { &self, input: BigFishMessageFinalizeInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, BigFishSessionProcedureResult>( - "finalize_big_fish_agent_message_turn", - FinalizeBigFishAgentMessageTurnArgs { input, }, - __callback, - ); + 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 index e9b3f1d9..fad75a7b 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 { +struct FinalizeCustomWorldAgentMessageTurnArgs { pub input: CustomWorldAgentMessageFinalizeInput, } - impl __sdk::InModule for FinalizeCustomWorldAgentMessageTurnArgs { type Module = super::RemoteModule; } @@ -28,16 +22,22 @@ impl __sdk::InModule for FinalizeCustomWorldAgentMessageTurnArgs { /// /// 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( + &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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +46,17 @@ impl finalize_custom_world_agent_message_turn for super::RemoteProcedures { &self, input: CustomWorldAgentMessageFinalizeInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, CustomWorldAgentOperationProcedureResult>( - "finalize_custom_world_agent_message_turn", - FinalizeCustomWorldAgentMessageTurnArgs { input, }, - __callback, - ); + 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_puzzle_agent_message_turn_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/finalize_puzzle_agent_message_turn_procedure.rs index e2d6566c..0014d394 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::puzzle_agent_session_procedure_result_type::PuzzleAgentSessionProcedureResult; 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 { +struct FinalizePuzzleAgentMessageTurnArgs { pub input: PuzzleAgentMessageFinalizeInput, } - impl __sdk::InModule for FinalizePuzzleAgentMessageTurnArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for FinalizePuzzleAgentMessageTurnArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl finalize_puzzle_agent_message_turn for super::RemoteProcedures { &self, input: PuzzleAgentMessageFinalizeInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, PuzzleAgentSessionProcedureResult>( - "finalize_puzzle_agent_message_turn", - FinalizePuzzleAgentMessageTurnArgs { input, }, - __callback, - ); + 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/generate_big_fish_asset_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/generate_big_fish_asset_procedure.rs index 6ee820f7..1a87c951 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::big_fish_session_procedure_result_type::BigFishSessionProcedureResult; 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 { +struct GenerateBigFishAssetArgs { pub input: BigFishAssetGenerateInput, } - impl __sdk::InModule for GenerateBigFishAssetArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for GenerateBigFishAssetArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl generate_big_fish_asset for super::RemoteProcedures { &self, input: BigFishAssetGenerateInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, BigFishSessionProcedureResult>( - "generate_big_fish_asset", - GenerateBigFishAssetArgs { input, }, - __callback, - ); + 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_auth_store_snapshot_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_auth_store_snapshot_procedure.rs index 887894ea..51b3d201 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_auth_store_snapshot_procedure.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/get_auth_store_snapshot_procedure.rs @@ -2,20 +2,13 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::auth_store_snapshot_procedure_result_type::AuthStoreSnapshotProcedureResult; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] - struct GetAuthStoreSnapshotArgs { - } - +struct GetAuthStoreSnapshotArgs {} impl __sdk::InModule for GetAuthStoreSnapshotArgs { type Module = super::RemoteModule; @@ -26,28 +19,36 @@ impl __sdk::InModule for GetAuthStoreSnapshotArgs { /// /// Implemented for [`super::RemoteProcedures`]. pub trait get_auth_store_snapshot { - fn get_auth_store_snapshot(&self, ) { - self.get_auth_store_snapshot_then( |_, _| {}); + fn get_auth_store_snapshot(&self) { + self.get_auth_store_snapshot_then(|_, _| {}); } fn get_auth_store_snapshot_then( &self, - - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } impl get_auth_store_snapshot for super::RemoteProcedures { fn get_auth_store_snapshot_then( &self, - - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, AuthStoreSnapshotProcedureResult>( - "get_auth_store_snapshot", - GetAuthStoreSnapshotArgs { }, - __callback, - ); + self.imp + .invoke_procedure_with_callback::<_, AuthStoreSnapshotProcedureResult>( + "get_auth_store_snapshot", + GetAuthStoreSnapshotArgs {}, + __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 index c6f93416..a737fbdf 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 { +struct GetBattleStateArgs { pub input: BattleStateQueryInput, } - impl __sdk::InModule for GetBattleStateArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for GetBattleStateArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl get_battle_state for super::RemoteProcedures { &self, input: BattleStateQueryInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, BattleStateProcedureResult>( - "get_battle_state", - GetBattleStateArgs { input, }, - __callback, - ); + 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 index a16bbc76..867a6759 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 { +struct GetBigFishRunArgs { pub input: BigFishRunGetInput, } - impl __sdk::InModule for GetBigFishRunArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for GetBigFishRunArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl get_big_fish_run for super::RemoteProcedures { &self, input: BigFishRunGetInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, BigFishRunProcedureResult>( - "get_big_fish_run", - GetBigFishRunArgs { input, }, - __callback, - ); + 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 index f54dc9e4..0b0d78f1 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::big_fish_session_procedure_result_type::BigFishSessionProcedureResult; 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 { +struct GetBigFishSessionArgs { pub input: BigFishSessionGetInput, } - impl __sdk::InModule for GetBigFishSessionArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for GetBigFishSessionArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl get_big_fish_session for super::RemoteProcedures { &self, input: BigFishSessionGetInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, BigFishSessionProcedureResult>( - "get_big_fish_session", - GetBigFishSessionArgs { input, }, - __callback, - ); + 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 index dc75dc77..eef158dc 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::chapter_progression_procedure_result_type::ChapterProgressionProcedureResult; 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 { +struct GetChapterProgressionArgs { pub input: ChapterProgressionGetInput, } - impl __sdk::InModule for GetChapterProgressionArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for GetChapterProgressionArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl get_chapter_progression for super::RemoteProcedures { &self, input: ChapterProgressionGetInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, ChapterProgressionProcedureResult>( - "get_chapter_progression", - GetChapterProgressionArgs { input, }, - __callback, - ); + 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_custom_world_agent_card_detail_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_custom_world_agent_card_detail_procedure.rs index f0e38f3b..11a90329 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 { +struct GetCustomWorldAgentCardDetailArgs { pub input: CustomWorldAgentCardDetailGetInput, } - impl __sdk::InModule for GetCustomWorldAgentCardDetailArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for GetCustomWorldAgentCardDetailArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl get_custom_world_agent_card_detail for super::RemoteProcedures { &self, input: CustomWorldAgentCardDetailGetInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, CustomWorldDraftCardDetailResult>( - "get_custom_world_agent_card_detail", - GetCustomWorldAgentCardDetailArgs { input, }, - __callback, - ); + 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 index 45ffda03..1c4ffd6a 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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_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 { +struct GetCustomWorldAgentOperationArgs { pub input: CustomWorldAgentOperationGetInput, } - impl __sdk::InModule for GetCustomWorldAgentOperationArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for GetCustomWorldAgentOperationArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl get_custom_world_agent_operation for super::RemoteProcedures { &self, input: CustomWorldAgentOperationGetInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, CustomWorldAgentOperationProcedureResult>( - "get_custom_world_agent_operation", - GetCustomWorldAgentOperationArgs { input, }, - __callback, - ); + 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 index e1660a95..212987e4 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::custom_world_agent_session_procedure_result_type::CustomWorldAgentSessionProcedureResult; 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 { +struct GetCustomWorldAgentSessionArgs { pub input: CustomWorldAgentSessionGetInput, } - impl __sdk::InModule for GetCustomWorldAgentSessionArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for GetCustomWorldAgentSessionArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl get_custom_world_agent_session for super::RemoteProcedures { &self, input: CustomWorldAgentSessionGetInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, CustomWorldAgentSessionProcedureResult>( - "get_custom_world_agent_session", - GetCustomWorldAgentSessionArgs { input, }, - __callback, - ); + 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 index 455eb2fc..24768c43 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::custom_world_library_mutation_result_type::CustomWorldLibraryMutationResult; 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 { +struct GetCustomWorldGalleryDetailByCodeArgs { pub input: CustomWorldGalleryDetailByCodeInput, } - impl __sdk::InModule for GetCustomWorldGalleryDetailByCodeArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for GetCustomWorldGalleryDetailByCodeArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl get_custom_world_gallery_detail_by_code for super::RemoteProcedures { &self, input: CustomWorldGalleryDetailByCodeInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __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, - ); + 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 index 79050c11..f5127dcf 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 { +struct GetCustomWorldGalleryDetailArgs { pub input: CustomWorldGalleryDetailInput, } - impl __sdk::InModule for GetCustomWorldGalleryDetailArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for GetCustomWorldGalleryDetailArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl get_custom_world_gallery_detail for super::RemoteProcedures { &self, input: CustomWorldGalleryDetailInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, CustomWorldLibraryMutationResult>( - "get_custom_world_gallery_detail", - GetCustomWorldGalleryDetailArgs { input, }, - __callback, - ); + 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 index 175758c2..ab99274a 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::custom_world_library_mutation_result_type::CustomWorldLibraryMutationResult; 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 { +struct GetCustomWorldLibraryDetailArgs { pub input: CustomWorldLibraryDetailInput, } - impl __sdk::InModule for GetCustomWorldLibraryDetailArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for GetCustomWorldLibraryDetailArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl get_custom_world_library_detail for super::RemoteProcedures { &self, input: CustomWorldLibraryDetailInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, CustomWorldLibraryMutationResult>( - "get_custom_world_library_detail", - GetCustomWorldLibraryDetailArgs { input, }, - __callback, - ); + 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_player_progression_or_default_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_player_progression_or_default_procedure.rs index 73490884..97c139fb 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 { +struct GetPlayerProgressionOrDefaultArgs { pub input: PlayerProgressionGetInput, } - impl __sdk::InModule for GetPlayerProgressionOrDefaultArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for GetPlayerProgressionOrDefaultArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl get_player_progression_or_default for super::RemoteProcedures { &self, input: PlayerProgressionGetInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, PlayerProgressionProcedureResult>( - "get_player_progression_or_default", - GetPlayerProgressionOrDefaultArgs { input, }, - __callback, - ); + 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_dashboard_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_profile_dashboard_procedure.rs index 616a11b8..38200b75 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_profile_dashboard_procedure.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/get_profile_dashboard_procedure.rs @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::runtime_profile_dashboard_get_input_type::RuntimeProfileDashboardGetInput; use super::runtime_profile_dashboard_procedure_result_type::RuntimeProfileDashboardProcedureResult; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] - struct GetProfileDashboardArgs { +struct GetProfileDashboardArgs { pub input: RuntimeProfileDashboardGetInput, } - impl __sdk::InModule for GetProfileDashboardArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for GetProfileDashboardArgs { /// /// Implemented for [`super::RemoteProcedures`]. pub trait get_profile_dashboard { - fn get_profile_dashboard(&self, input: RuntimeProfileDashboardGetInput, -) { - self.get_profile_dashboard_then(input, |_, _| {}); + fn get_profile_dashboard(&self, input: RuntimeProfileDashboardGetInput) { + self.get_profile_dashboard_then(input, |_, _| {}); } fn get_profile_dashboard_then( &self, input: RuntimeProfileDashboardGetInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl get_profile_dashboard for super::RemoteProcedures { &self, input: RuntimeProfileDashboardGetInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, RuntimeProfileDashboardProcedureResult>( - "get_profile_dashboard", - GetProfileDashboardArgs { input, }, - __callback, - ); + self.imp + .invoke_procedure_with_callback::<_, RuntimeProfileDashboardProcedureResult>( + "get_profile_dashboard", + GetProfileDashboardArgs { 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 index 466c6902..2ad47ed2 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 { +struct GetProfilePlayStatsArgs { pub input: RuntimeProfilePlayStatsGetInput, } - impl __sdk::InModule for GetProfilePlayStatsArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for GetProfilePlayStatsArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl get_profile_play_stats for super::RemoteProcedures { &self, input: RuntimeProfilePlayStatsGetInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, RuntimeProfilePlayStatsProcedureResult>( - "get_profile_play_stats", - GetProfilePlayStatsArgs { input, }, - __callback, - ); + 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_profile_recharge_center_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_profile_recharge_center_procedure.rs index a31465f8..bf070c9c 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_profile_recharge_center_procedure.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/get_profile_recharge_center_procedure.rs @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::runtime_profile_recharge_center_procedure_result_type::RuntimeProfileRechargeCenterProcedureResult; use super::runtime_profile_recharge_center_get_input_type::RuntimeProfileRechargeCenterGetInput; +use super::runtime_profile_recharge_center_procedure_result_type::RuntimeProfileRechargeCenterProcedureResult; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] - struct GetProfileRechargeCenterArgs { +struct GetProfileRechargeCenterArgs { pub input: RuntimeProfileRechargeCenterGetInput, } - impl __sdk::InModule for GetProfileRechargeCenterArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for GetProfileRechargeCenterArgs { /// /// Implemented for [`super::RemoteProcedures`]. pub trait get_profile_recharge_center { - fn get_profile_recharge_center(&self, input: RuntimeProfileRechargeCenterGetInput, -) { - self.get_profile_recharge_center_then(input, |_, _| {}); + fn get_profile_recharge_center(&self, input: RuntimeProfileRechargeCenterGetInput) { + self.get_profile_recharge_center_then(input, |_, _| {}); } fn get_profile_recharge_center_then( &self, input: RuntimeProfileRechargeCenterGetInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl get_profile_recharge_center for super::RemoteProcedures { &self, input: RuntimeProfileRechargeCenterGetInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, RuntimeProfileRechargeCenterProcedureResult>( - "get_profile_recharge_center", - GetProfileRechargeCenterArgs { input, }, - __callback, - ); + self.imp + .invoke_procedure_with_callback::<_, RuntimeProfileRechargeCenterProcedureResult>( + "get_profile_recharge_center", + GetProfileRechargeCenterArgs { input }, + __callback, + ); } } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/get_profile_referral_invite_center_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_profile_referral_invite_center_procedure.rs index 1bc6fc86..2b3dcdad 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_profile_referral_invite_center_procedure.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/get_profile_referral_invite_center_procedure.rs @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::runtime_referral_invite_center_get_input_type::RuntimeReferralInviteCenterGetInput; use super::runtime_referral_invite_center_procedure_result_type::RuntimeReferralInviteCenterProcedureResult; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] - struct GetProfileReferralInviteCenterArgs { +struct GetProfileReferralInviteCenterArgs { pub input: RuntimeReferralInviteCenterGetInput, } - impl __sdk::InModule for GetProfileReferralInviteCenterArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for GetProfileReferralInviteCenterArgs { /// /// Implemented for [`super::RemoteProcedures`]. pub trait get_profile_referral_invite_center { - fn get_profile_referral_invite_center(&self, input: RuntimeReferralInviteCenterGetInput, -) { - self.get_profile_referral_invite_center_then(input, |_, _| {}); + fn get_profile_referral_invite_center(&self, input: RuntimeReferralInviteCenterGetInput) { + self.get_profile_referral_invite_center_then(input, |_, _| {}); } fn get_profile_referral_invite_center_then( &self, input: RuntimeReferralInviteCenterGetInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl get_profile_referral_invite_center for super::RemoteProcedures { &self, input: RuntimeReferralInviteCenterGetInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, RuntimeReferralInviteCenterProcedureResult>( - "get_profile_referral_invite_center", - GetProfileReferralInviteCenterArgs { input, }, - __callback, - ); + self.imp + .invoke_procedure_with_callback::<_, RuntimeReferralInviteCenterProcedureResult>( + "get_profile_referral_invite_center", + GetProfileReferralInviteCenterArgs { 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 index 8946764b..97929382 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::puzzle_agent_session_procedure_result_type::PuzzleAgentSessionProcedureResult; 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 { +struct GetPuzzleAgentSessionArgs { pub input: PuzzleAgentSessionGetInput, } - impl __sdk::InModule for GetPuzzleAgentSessionArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for GetPuzzleAgentSessionArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl get_puzzle_agent_session for super::RemoteProcedures { &self, input: PuzzleAgentSessionGetInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, PuzzleAgentSessionProcedureResult>( - "get_puzzle_agent_session", - GetPuzzleAgentSessionArgs { input, }, - __callback, - ); + 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_gallery_detail_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_puzzle_gallery_detail_procedure.rs index 0c78ac7c..a1471eb3 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 { +struct GetPuzzleGalleryDetailArgs { pub input: PuzzleWorkGetInput, } - impl __sdk::InModule for GetPuzzleGalleryDetailArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for GetPuzzleGalleryDetailArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl get_puzzle_gallery_detail for super::RemoteProcedures { &self, input: PuzzleWorkGetInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, PuzzleWorkProcedureResult>( - "get_puzzle_gallery_detail", - GetPuzzleGalleryDetailArgs { input, }, - __callback, - ); + 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 index c409b79d..2db5ab66 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::puzzle_run_procedure_result_type::PuzzleRunProcedureResult; 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 { +struct GetPuzzleRunArgs { pub input: PuzzleRunGetInput, } - impl __sdk::InModule for GetPuzzleRunArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for GetPuzzleRunArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl get_puzzle_run for super::RemoteProcedures { &self, input: PuzzleRunGetInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, PuzzleRunProcedureResult>( - "get_puzzle_run", - GetPuzzleRunArgs { input, }, - __callback, - ); + 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 index c21d1048..d36c7417 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 { +struct GetPuzzleWorkDetailArgs { pub input: PuzzleWorkGetInput, } - impl __sdk::InModule for GetPuzzleWorkDetailArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for GetPuzzleWorkDetailArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl get_puzzle_work_detail for super::RemoteProcedures { &self, input: PuzzleWorkGetInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, PuzzleWorkProcedureResult>( - "get_puzzle_work_detail", - GetPuzzleWorkDetailArgs { input, }, - __callback, - ); + 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 index d5137496..abbf4f20 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::runtime_inventory_state_query_input_type::RuntimeInventoryStateQueryInput; 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 { +struct GetRuntimeInventoryStateArgs { pub input: RuntimeInventoryStateQueryInput, } - impl __sdk::InModule for GetRuntimeInventoryStateArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for GetRuntimeInventoryStateArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl get_runtime_inventory_state for super::RemoteProcedures { &self, input: RuntimeInventoryStateQueryInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, RuntimeInventoryStateProcedureResult>( - "get_runtime_inventory_state", - GetRuntimeInventoryStateArgs { input, }, - __callback, - ); + 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_setting_or_default_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_runtime_setting_or_default_procedure.rs index a58e515c..261caed1 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/get_runtime_setting_or_default_procedure.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/get_runtime_setting_or_default_procedure.rs @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::runtime_setting_get_input_type::RuntimeSettingGetInput; use super::runtime_setting_procedure_result_type::RuntimeSettingProcedureResult; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] - struct GetRuntimeSettingOrDefaultArgs { +struct GetRuntimeSettingOrDefaultArgs { pub input: RuntimeSettingGetInput, } - impl __sdk::InModule for GetRuntimeSettingOrDefaultArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for GetRuntimeSettingOrDefaultArgs { /// /// Implemented for [`super::RemoteProcedures`]. pub trait get_runtime_setting_or_default { - fn get_runtime_setting_or_default(&self, input: RuntimeSettingGetInput, -) { - self.get_runtime_setting_or_default_then(input, |_, _| {}); + fn get_runtime_setting_or_default(&self, input: RuntimeSettingGetInput) { + self.get_runtime_setting_or_default_then(input, |_, _| {}); } fn get_runtime_setting_or_default_then( &self, input: RuntimeSettingGetInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl get_runtime_setting_or_default for super::RemoteProcedures { &self, input: RuntimeSettingGetInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, RuntimeSettingProcedureResult>( - "get_runtime_setting_or_default", - GetRuntimeSettingOrDefaultArgs { input, }, - __callback, - ); + self.imp + .invoke_procedure_with_callback::<_, RuntimeSettingProcedureResult>( + "get_runtime_setting_or_default", + GetRuntimeSettingOrDefaultArgs { 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 index 75117d98..989fa40e 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::runtime_snapshot_procedure_result_type::RuntimeSnapshotProcedureResult; 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 { +struct GetRuntimeSnapshotArgs { pub input: RuntimeSnapshotGetInput, } - impl __sdk::InModule for GetRuntimeSnapshotArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for GetRuntimeSnapshotArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl get_runtime_snapshot for super::RemoteProcedures { &self, input: RuntimeSnapshotGetInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, RuntimeSnapshotProcedureResult>( - "get_runtime_snapshot", - GetRuntimeSnapshotArgs { input, }, - __callback, - ); + 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_story_session_state_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/get_story_session_state_procedure.rs index b454ab5d..7e566dc9 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 { +struct GetStorySessionStateArgs { pub input: StorySessionStateInput, } - impl __sdk::InModule for GetStorySessionStateArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for GetStorySessionStateArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl get_story_session_state for super::RemoteProcedures { &self, input: StorySessionStateInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, StorySessionStateProcedureResult>( - "get_story_session_state", - GetStorySessionStateArgs { input, }, - __callback, - ); + 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/grant_inventory_item_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/grant_inventory_item_input_type.rs index c9389060..553aff65 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::inventory_item_snapshot_type::InventoryItemSnapshot; @@ -18,8 +13,6 @@ pub struct GrantInventoryItemInput { 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 index 04e0ae9a..4c67da63 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::player_progression_procedure_result_type::PlayerProgressionProcedureResult; 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 { +struct GrantPlayerProgressionExperienceAndReturnArgs { pub input: PlayerProgressionGrantInput, } - impl __sdk::InModule for GrantPlayerProgressionExperienceAndReturnArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for GrantPlayerProgressionExperienceAndReturnArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl grant_player_progression_experience_and_return for super::RemoteProcedures &self, input: PlayerProgressionGrantInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, PlayerProgressionProcedureResult>( - "grant_player_progression_experience_and_return", - GrantPlayerProgressionExperienceAndReturnArgs { input, }, - __callback, - ); + 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 index 324bb57f..83b48cf7 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::player_progression_grant_input_type::PlayerProgressionGrantInput; @@ -19,10 +14,8 @@ pub(super) struct GrantPlayerProgressionExperienceArgs { impl From for super::Reducer { fn from(args: GrantPlayerProgressionExperienceArgs) -> Self { - Self::GrantPlayerProgressionExperience { - input: args.input, -} -} + Self::GrantPlayerProgressionExperience { input: args.input } + } } impl __sdk::InModule for GrantPlayerProgressionExperienceArgs { @@ -40,9 +33,11 @@ pub trait grant_player_progression_experience { /// 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, |_, _| {}) + 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, @@ -70,7 +65,7 @@ impl grant_player_progression_experience for super::RemoteReducers { + Send + 'static, ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback(GrantPlayerProgressionExperienceArgs { input, }, callback) + self.imp + .invoke_reducer_with_callback(GrantPlayerProgressionExperienceArgs { input }, callback) } } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/import_auth_store_snapshot_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/import_auth_store_snapshot_procedure.rs index 656b962b..2821fddc 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/import_auth_store_snapshot_procedure.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/import_auth_store_snapshot_procedure.rs @@ -2,20 +2,13 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::auth_store_snapshot_import_procedure_result_type::AuthStoreSnapshotImportProcedureResult; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] - struct ImportAuthStoreSnapshotArgs { - } - +struct ImportAuthStoreSnapshotArgs {} impl __sdk::InModule for ImportAuthStoreSnapshotArgs { type Module = super::RemoteModule; @@ -26,28 +19,36 @@ impl __sdk::InModule for ImportAuthStoreSnapshotArgs { /// /// Implemented for [`super::RemoteProcedures`]. pub trait import_auth_store_snapshot { - fn import_auth_store_snapshot(&self, ) { - self.import_auth_store_snapshot_then( |_, _| {}); + fn import_auth_store_snapshot(&self) { + self.import_auth_store_snapshot_then(|_, _| {}); } fn import_auth_store_snapshot_then( &self, - - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } impl import_auth_store_snapshot for super::RemoteProcedures { fn import_auth_store_snapshot_then( &self, - - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, AuthStoreSnapshotImportProcedureResult>( - "import_auth_store_snapshot", - ImportAuthStoreSnapshotArgs { }, - __callback, - ); + self.imp + .invoke_procedure_with_callback::<_, AuthStoreSnapshotImportProcedureResult>( + "import_auth_store_snapshot", + ImportAuthStoreSnapshotArgs {}, + __callback, + ); } } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/inventory_container_kind_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/inventory_container_kind_type.rs index 23de3559..45522ce7 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/inventory_container_kind_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/inventory_container_kind_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,12 +11,8 @@ pub enum InventoryContainerKind { Backpack, Equipment, - } - - impl __sdk::InModule for InventoryContainerKind { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/inventory_equipment_slot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/inventory_equipment_slot_type.rs index 81154f9f..e2055f6a 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/inventory_equipment_slot_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/inventory_equipment_slot_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -18,12 +13,8 @@ pub enum InventoryEquipmentSlot { Armor, Relic, - } - - impl __sdk::InModule for InventoryEquipmentSlot { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/inventory_item_rarity_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/inventory_item_rarity_type.rs index e277c402..85b46090 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/inventory_item_rarity_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/inventory_item_rarity_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -22,12 +17,8 @@ pub enum InventoryItemRarity { Epic, Legendary, - } - - impl __sdk::InModule for InventoryItemRarity { type Module = super::RemoteModule; } - 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 index 7e962e4d..3769735e 100644 --- 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 @@ -2,15 +2,10 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::inventory_item_rarity_type::InventoryItemRarity; 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)] @@ -19,19 +14,17 @@ pub struct InventoryItemSnapshot { pub item_id: String, pub category: String, pub name: String, - pub description: Option::, + pub description: Option, pub quantity: u32, pub rarity: InventoryItemRarity, - pub tags: Vec::, + pub tags: Vec, pub stackable: bool, pub stack_key: String, - pub equipment_slot_id: Option::, + pub equipment_slot_id: Option, pub source_kind: InventoryItemSourceKind, - pub source_reference_id: Option::, + 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_item_source_kind_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/inventory_item_source_kind_type.rs index 5303c581..1d3961bc 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/inventory_item_source_kind_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/inventory_item_source_kind_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -30,12 +25,8 @@ pub enum InventoryItemSourceKind { ForgeReforge, ManualPatch, - } - - impl __sdk::InModule for InventoryItemSourceKind { 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 index c696e383..3540ad3b 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::inventory_mutation_type::InventoryMutation; @@ -16,14 +11,12 @@ use super::inventory_mutation_type::InventoryMutation; pub struct InventoryMutationInput { pub mutation_id: String, pub runtime_session_id: String, - pub story_session_id: Option::, + 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 index d7b64029..3d0d0e4f 100644 --- 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 @@ -2,16 +2,11 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::grant_inventory_item_input_type::GrantInventoryItemInput; 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)] @@ -24,12 +19,8 @@ pub enum InventoryMutation { 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 index 4ce26de5..f20e5451 100644 --- 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 @@ -2,45 +2,38 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::inventory_item_rarity_type::InventoryItemRarity; -use super::inventory_equipment_slot_type::InventoryEquipmentSlot; -use super::inventory_item_source_kind_type::InventoryItemSourceKind; 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 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 description: Option, pub quantity: u32, pub rarity: InventoryItemRarity, - pub tags: Vec::, + pub tags: Vec, pub stackable: bool, pub stack_key: String, - pub equipment_slot_id: Option::, + pub equipment_slot_id: Option, pub source_kind: InventoryItemSourceKind, - pub source_reference_id: Option::, + 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/inventory_slot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/inventory_slot_type.rs index c824c438..fcfbab6a 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/inventory_slot_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/inventory_slot_type.rs @@ -2,71 +2,65 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::inventory_item_rarity_type::InventoryItemRarity; -use super::inventory_equipment_slot_type::InventoryEquipmentSlot; -use super::inventory_item_source_kind_type::InventoryItemSourceKind; 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 InventorySlot { pub slot_id: String, pub runtime_session_id: String, - pub story_session_id: Option::, + 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 description: Option, pub quantity: u32, pub rarity: InventoryItemRarity, - pub tags: Vec::, + pub tags: Vec, pub stackable: bool, pub stack_key: String, - pub equipment_slot_id: Option::, + pub equipment_slot_id: Option, pub source_kind: InventoryItemSourceKind, - pub source_reference_id: Option::, + pub source_reference_id: Option, pub created_at: __sdk::Timestamp, pub updated_at: __sdk::Timestamp, } - impl __sdk::InModule for InventorySlot { type Module = super::RemoteModule; } - /// Column accessor struct for the table `InventorySlot`. /// /// Provides typed access to columns for query building. pub struct InventorySlotCols { pub slot_id: __sdk::__query_builder::Col, pub runtime_session_id: __sdk::__query_builder::Col, - pub story_session_id: __sdk::__query_builder::Col>, + pub story_session_id: __sdk::__query_builder::Col>, pub actor_user_id: __sdk::__query_builder::Col, pub container_kind: __sdk::__query_builder::Col, pub slot_key: __sdk::__query_builder::Col, pub item_id: __sdk::__query_builder::Col, pub category: __sdk::__query_builder::Col, pub name: __sdk::__query_builder::Col, - pub description: __sdk::__query_builder::Col>, + pub description: __sdk::__query_builder::Col>, pub quantity: __sdk::__query_builder::Col, pub rarity: __sdk::__query_builder::Col, - pub tags: __sdk::__query_builder::Col>, + pub tags: __sdk::__query_builder::Col>, pub stackable: __sdk::__query_builder::Col, pub stack_key: __sdk::__query_builder::Col, - pub equipment_slot_id: __sdk::__query_builder::Col>, + pub equipment_slot_id: + __sdk::__query_builder::Col>, pub source_kind: __sdk::__query_builder::Col, - pub source_reference_id: __sdk::__query_builder::Col>, + pub source_reference_id: __sdk::__query_builder::Col>, pub created_at: __sdk::__query_builder::Col, pub updated_at: __sdk::__query_builder::Col, } @@ -92,10 +86,12 @@ impl __sdk::__query_builder::HasCols for InventorySlot { stack_key: __sdk::__query_builder::Col::new(table_name, "stack_key"), equipment_slot_id: __sdk::__query_builder::Col::new(table_name, "equipment_slot_id"), source_kind: __sdk::__query_builder::Col::new(table_name, "source_kind"), - source_reference_id: __sdk::__query_builder::Col::new(table_name, "source_reference_id"), + source_reference_id: __sdk::__query_builder::Col::new( + table_name, + "source_reference_id", + ), created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"), - } } } @@ -116,12 +112,13 @@ impl __sdk::__query_builder::HasIxCols for InventorySlot { InventorySlotIxCols { actor_user_id: __sdk::__query_builder::IxCol::new(table_name, "actor_user_id"), item_id: __sdk::__query_builder::IxCol::new(table_name, "item_id"), - runtime_session_id: __sdk::__query_builder::IxCol::new(table_name, "runtime_session_id"), + runtime_session_id: __sdk::__query_builder::IxCol::new( + table_name, + "runtime_session_id", + ), slot_id: __sdk::__query_builder::IxCol::new(table_name, "slot_id"), - } } } impl __sdk::__query_builder::CanBeLookupTable for InventorySlot {} - 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 index 8a7ae591..8e4c21ba 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::big_fish_works_procedure_result_type::BigFishWorksProcedureResult; 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 { +struct ListBigFishWorksArgs { pub input: BigFishWorksListInput, } - impl __sdk::InModule for ListBigFishWorksArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for ListBigFishWorksArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl list_big_fish_works for super::RemoteProcedures { &self, input: BigFishWorksListInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, BigFishWorksProcedureResult>( - "list_big_fish_works", - ListBigFishWorksArgs { input, }, - __callback, - ); + 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 index 507757cf..63ee059f 100644 --- 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 @@ -2,20 +2,13 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 { - } - +struct ListCustomWorldGalleryEntriesArgs {} impl __sdk::InModule for ListCustomWorldGalleryEntriesArgs { type Module = super::RemoteModule; @@ -26,28 +19,36 @@ impl __sdk::InModule for ListCustomWorldGalleryEntriesArgs { /// /// 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(&self) { + self.list_custom_world_gallery_entries_then(|_, _| {}); } fn list_custom_world_gallery_entries_then( &self, - - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + + __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, + + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, CustomWorldGalleryListResult>( - "list_custom_world_gallery_entries", - ListCustomWorldGalleryEntriesArgs { }, - __callback, - ); + 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 index 2a591015..f8834945 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::custom_world_profile_list_result_type::CustomWorldProfileListResult; 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 { +struct ListCustomWorldProfilesArgs { pub input: CustomWorldProfileListInput, } - impl __sdk::InModule for ListCustomWorldProfilesArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for ListCustomWorldProfilesArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl list_custom_world_profiles for super::RemoteProcedures { &self, input: CustomWorldProfileListInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, CustomWorldProfileListResult>( - "list_custom_world_profiles", - ListCustomWorldProfilesArgs { input, }, - __callback, - ); + 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 index 585a6edf..d469f660 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::custom_world_works_list_result_type::CustomWorldWorksListResult; 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 { +struct ListCustomWorldWorksArgs { pub input: CustomWorldWorksListInput, } - impl __sdk::InModule for ListCustomWorldWorksArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for ListCustomWorldWorksArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl list_custom_world_works for super::RemoteProcedures { &self, input: CustomWorldWorksListInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, CustomWorldWorksListResult>( - "list_custom_world_works", - ListCustomWorldWorksArgs { input, }, - __callback, - ); + 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_platform_browse_history_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/list_platform_browse_history_procedure.rs index 0c10f6c3..0d368a99 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::runtime_browse_history_procedure_result_type::RuntimeBrowseHistoryProcedureResult; 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 { +struct ListPlatformBrowseHistoryArgs { pub input: RuntimeBrowseHistoryListInput, } - impl __sdk::InModule for ListPlatformBrowseHistoryArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for ListPlatformBrowseHistoryArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl list_platform_browse_history for super::RemoteProcedures { &self, input: RuntimeBrowseHistoryListInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, RuntimeBrowseHistoryProcedureResult>( - "list_platform_browse_history", - ListPlatformBrowseHistoryArgs { input, }, - __callback, - ); + 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 index 6476c3ac..31c214bb 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 { +struct ListProfileSaveArchivesArgs { pub input: RuntimeProfileSaveArchiveListInput, } - impl __sdk::InModule for ListProfileSaveArchivesArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for ListProfileSaveArchivesArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl list_profile_save_archives for super::RemoteProcedures { &self, input: RuntimeProfileSaveArchiveListInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, RuntimeProfileSaveArchiveProcedureResult>( - "list_profile_save_archives", - ListProfileSaveArchivesArgs { input, }, - __callback, - ); + 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_profile_wallet_ledger_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/list_profile_wallet_ledger_procedure.rs index 4ae618f0..23496701 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/list_profile_wallet_ledger_procedure.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/list_profile_wallet_ledger_procedure.rs @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::runtime_profile_wallet_ledger_list_input_type::RuntimeProfileWalletLedgerListInput; use super::runtime_profile_wallet_ledger_procedure_result_type::RuntimeProfileWalletLedgerProcedureResult; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] - struct ListProfileWalletLedgerArgs { +struct ListProfileWalletLedgerArgs { pub input: RuntimeProfileWalletLedgerListInput, } - impl __sdk::InModule for ListProfileWalletLedgerArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for ListProfileWalletLedgerArgs { /// /// Implemented for [`super::RemoteProcedures`]. pub trait list_profile_wallet_ledger { - fn list_profile_wallet_ledger(&self, input: RuntimeProfileWalletLedgerListInput, -) { - self.list_profile_wallet_ledger_then(input, |_, _| {}); + fn list_profile_wallet_ledger(&self, input: RuntimeProfileWalletLedgerListInput) { + self.list_profile_wallet_ledger_then(input, |_, _| {}); } fn list_profile_wallet_ledger_then( &self, input: RuntimeProfileWalletLedgerListInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl list_profile_wallet_ledger for super::RemoteProcedures { &self, input: RuntimeProfileWalletLedgerListInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, RuntimeProfileWalletLedgerProcedureResult>( - "list_profile_wallet_ledger", - ListProfileWalletLedgerArgs { input, }, - __callback, - ); + self.imp + .invoke_procedure_with_callback::<_, RuntimeProfileWalletLedgerProcedureResult>( + "list_profile_wallet_ledger", + ListProfileWalletLedgerArgs { 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 index 329e53a4..553b8e08 100644 --- 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 @@ -2,20 +2,13 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 { - } - +struct ListPuzzleGalleryArgs {} impl __sdk::InModule for ListPuzzleGalleryArgs { type Module = super::RemoteModule; @@ -26,28 +19,36 @@ impl __sdk::InModule for ListPuzzleGalleryArgs { /// /// Implemented for [`super::RemoteProcedures`]. pub trait list_puzzle_gallery { - fn list_puzzle_gallery(&self, ) { - self.list_puzzle_gallery_then( |_, _| {}); + fn list_puzzle_gallery(&self) { + self.list_puzzle_gallery_then(|_, _| {}); } fn list_puzzle_gallery_then( &self, - - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + + __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, + + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, PuzzleWorksProcedureResult>( - "list_puzzle_gallery", - ListPuzzleGalleryArgs { }, - __callback, - ); + 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 index 980a3698..844d16df 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::puzzle_works_procedure_result_type::PuzzleWorksProcedureResult; 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 { +struct ListPuzzleWorksArgs { pub input: PuzzleWorksListInput, } - impl __sdk::InModule for ListPuzzleWorksArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for ListPuzzleWorksArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl list_puzzle_works for super::RemoteProcedures { &self, input: PuzzleWorksListInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, PuzzleWorksProcedureResult>( - "list_puzzle_works", - ListPuzzleWorksArgs { input, }, - __callback, - ); + self.imp + .invoke_procedure_with_callback::<_, PuzzleWorksProcedureResult>( + "list_puzzle_works", + ListPuzzleWorksArgs { input }, + __callback, + ); } } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/mod.rs b/server-rs/crates/spacetime-client/src/module_bindings/mod.rs index 10e41e4b..ae633723 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/mod.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/mod.rs @@ -4,19 +4,16 @@ // This was generated using spacetimedb cli version 2.1.0 (commit 6981f48b4bc1a71c8dd9bdfe5a2c343f6370243d). #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -pub mod ai_result_reference_type; +pub mod accept_quest_reducer; +pub mod acknowledge_quest_completion_reducer; +pub mod advance_puzzle_next_level_procedure; pub mod ai_result_reference_input_type; pub mod ai_result_reference_kind_type; pub mod ai_result_reference_snapshot_type; +pub mod ai_result_reference_type; pub mod ai_stage_completion_input_type; -pub mod ai_task_type; pub mod ai_task_cancel_input_type; pub mod ai_task_create_input_type; pub mod ai_task_failure_input_type; @@ -24,52 +21,61 @@ pub mod ai_task_finish_input_type; pub mod ai_task_kind_type; pub mod ai_task_procedure_result_type; pub mod ai_task_snapshot_type; -pub mod ai_task_stage_type; pub mod ai_task_stage_blueprint_type; pub mod ai_task_stage_kind_type; pub mod ai_task_stage_snapshot_type; pub mod ai_task_stage_start_input_type; pub mod ai_task_stage_status_type; +pub mod ai_task_stage_type; pub mod ai_task_start_input_type; pub mod ai_task_status_type; -pub mod ai_text_chunk_type; +pub mod ai_task_type; pub mod ai_text_chunk_append_input_type; pub mod ai_text_chunk_snapshot_type; -pub mod asset_entity_binding_type; +pub mod ai_text_chunk_type; +pub mod append_ai_text_chunk_and_return_procedure; +pub mod apply_chapter_progression_ledger_entry_and_return_procedure; +pub mod apply_chapter_progression_ledger_entry_reducer; +pub mod apply_inventory_mutation_reducer; +pub mod apply_quest_signal_reducer; pub mod asset_entity_binding_input_type; pub mod asset_entity_binding_procedure_result_type; pub mod asset_entity_binding_snapshot_type; -pub mod asset_object_type; +pub mod asset_entity_binding_type; pub mod asset_object_access_policy_type; pub mod asset_object_procedure_result_type; +pub mod asset_object_type; pub mod asset_object_upsert_input_type; pub mod asset_object_upsert_snapshot_type; +pub mod attach_ai_result_reference_and_return_procedure; pub mod auth_identity_type; -pub mod auth_store_snapshot_type; pub mod auth_store_snapshot_import_procedure_result_type; pub mod auth_store_snapshot_import_record_type; pub mod auth_store_snapshot_procedure_result_type; pub mod auth_store_snapshot_record_type; +pub mod auth_store_snapshot_type; pub mod auth_store_snapshot_upsert_input_type; pub mod battle_mode_type; -pub mod battle_state_type; pub mod battle_state_input_type; pub mod battle_state_procedure_result_type; pub mod battle_state_query_input_type; pub mod battle_state_snapshot_type; +pub mod battle_state_type; pub mod battle_status_type; -pub mod big_fish_agent_message_type; +pub mod begin_story_session_and_return_procedure; +pub mod begin_story_session_reducer; pub mod big_fish_agent_message_kind_type; pub mod big_fish_agent_message_role_type; pub mod big_fish_agent_message_snapshot_type; +pub mod big_fish_agent_message_type; pub mod big_fish_anchor_item_type; pub mod big_fish_anchor_pack_type; pub mod big_fish_anchor_status_type; pub mod big_fish_asset_coverage_type; pub mod big_fish_asset_generate_input_type; pub mod big_fish_asset_kind_type; -pub mod big_fish_asset_slot_type; pub mod big_fish_asset_slot_snapshot_type; +pub mod big_fish_asset_slot_type; pub mod big_fish_asset_status_type; pub mod big_fish_background_blueprint_type; pub mod big_fish_creation_session_type; @@ -97,51 +103,73 @@ pub mod big_fish_vector_2_type; pub mod big_fish_work_delete_input_type; pub mod big_fish_works_list_input_type; pub mod big_fish_works_procedure_result_type; +pub mod bind_asset_object_to_entity_and_return_procedure; +pub mod bind_asset_object_to_entity_reducer; +pub mod cancel_ai_task_and_return_procedure; pub mod chapter_pace_band_type; -pub mod chapter_progression_type; pub mod chapter_progression_get_input_type; pub mod chapter_progression_input_type; pub mod chapter_progression_ledger_input_type; pub mod chapter_progression_procedure_result_type; pub mod chapter_progression_snapshot_type; +pub mod chapter_progression_type; +pub mod clear_platform_browse_history_and_return_procedure; pub mod combat_outcome_type; +pub mod compile_big_fish_draft_procedure; +pub mod compile_custom_world_published_profile_procedure; +pub mod compile_puzzle_agent_draft_procedure; +pub mod complete_ai_stage_and_return_procedure; +pub mod complete_ai_task_and_return_procedure; +pub mod confirm_asset_object_and_return_procedure; +pub mod confirm_asset_object_reducer; pub mod consume_inventory_item_input_type; +pub mod continue_story_and_return_procedure; +pub mod continue_story_reducer; +pub mod create_ai_task_and_return_procedure; +pub mod create_ai_task_reducer; +pub mod create_battle_state_and_return_procedure; +pub mod create_battle_state_reducer; +pub mod create_big_fish_session_procedure; +pub mod create_custom_world_agent_session_procedure; +pub mod create_profile_recharge_order_and_return_procedure; +pub mod create_puzzle_agent_session_procedure; pub mod custom_world_agent_action_execute_input_type; pub mod custom_world_agent_action_execute_result_type; pub mod custom_world_agent_card_detail_get_input_type; -pub mod custom_world_agent_message_type; pub mod custom_world_agent_message_finalize_input_type; pub mod custom_world_agent_message_snapshot_type; pub mod custom_world_agent_message_submit_input_type; -pub mod custom_world_agent_operation_type; +pub mod custom_world_agent_message_type; pub mod custom_world_agent_operation_get_input_type; pub mod custom_world_agent_operation_procedure_result_type; pub mod custom_world_agent_operation_progress_input_type; pub mod custom_world_agent_operation_snapshot_type; -pub mod custom_world_agent_session_type; +pub mod custom_world_agent_operation_type; pub mod custom_world_agent_session_create_input_type; pub mod custom_world_agent_session_get_input_type; pub mod custom_world_agent_session_procedure_result_type; pub mod custom_world_agent_session_snapshot_type; -pub mod custom_world_draft_card_type; +pub mod custom_world_agent_session_type; pub mod custom_world_draft_card_detail_result_type; pub mod custom_world_draft_card_detail_section_snapshot_type; pub mod custom_world_draft_card_detail_snapshot_type; pub mod custom_world_draft_card_snapshot_type; +pub mod custom_world_draft_card_type; pub mod custom_world_gallery_detail_by_code_input_type; pub mod custom_world_gallery_detail_input_type; -pub mod custom_world_gallery_entry_type; pub mod custom_world_gallery_entry_snapshot_type; +pub mod custom_world_gallery_entry_table; +pub mod custom_world_gallery_entry_type; pub mod custom_world_gallery_list_result_type; pub mod custom_world_generation_mode_type; pub mod custom_world_library_detail_input_type; pub mod custom_world_library_mutation_result_type; -pub mod custom_world_profile_type; pub mod custom_world_profile_delete_input_type; pub mod custom_world_profile_list_input_type; pub mod custom_world_profile_list_result_type; pub mod custom_world_profile_publish_input_type; pub mod custom_world_profile_snapshot_type; +pub mod custom_world_profile_type; pub mod custom_world_profile_unpublish_input_type; pub mod custom_world_profile_upsert_input_type; pub mod custom_world_publication_status_type; @@ -151,23 +179,72 @@ pub mod custom_world_published_profile_compile_input_type; pub mod custom_world_published_profile_compile_result_type; pub mod custom_world_published_profile_compile_snapshot_type; pub mod custom_world_role_asset_status_type; -pub mod custom_world_session_type; pub mod custom_world_session_status_type; +pub mod custom_world_session_type; pub mod custom_world_theme_mode_type; pub mod custom_world_work_summary_snapshot_type; pub mod custom_world_works_list_input_type; pub mod custom_world_works_list_result_type; +pub mod delete_big_fish_work_procedure; +pub mod delete_custom_world_agent_session_procedure; +pub mod delete_custom_world_profile_and_return_procedure; +pub mod delete_puzzle_work_procedure; +pub mod delete_runtime_snapshot_and_return_procedure; +pub mod drag_puzzle_piece_or_group_procedure; pub mod equip_inventory_item_input_type; +pub mod execute_custom_world_agent_action_procedure; +pub mod export_auth_store_snapshot_from_tables_procedure; +pub mod fail_ai_task_and_return_procedure; +pub mod finalize_big_fish_agent_message_turn_procedure; +pub mod finalize_custom_world_agent_message_turn_procedure; +pub mod finalize_puzzle_agent_message_turn_procedure; +pub mod generate_big_fish_asset_procedure; +pub mod get_auth_store_snapshot_procedure; +pub mod get_battle_state_procedure; +pub mod get_big_fish_run_procedure; +pub mod get_big_fish_session_procedure; +pub mod get_chapter_progression_procedure; +pub mod get_custom_world_agent_card_detail_procedure; +pub mod get_custom_world_agent_operation_procedure; +pub mod get_custom_world_agent_session_procedure; +pub mod get_custom_world_gallery_detail_by_code_procedure; +pub mod get_custom_world_gallery_detail_procedure; +pub mod get_custom_world_library_detail_procedure; +pub mod get_player_progression_or_default_procedure; +pub mod get_profile_dashboard_procedure; +pub mod get_profile_play_stats_procedure; +pub mod get_profile_recharge_center_procedure; +pub mod get_profile_referral_invite_center_procedure; +pub mod get_puzzle_agent_session_procedure; +pub mod get_puzzle_gallery_detail_procedure; +pub mod get_puzzle_run_procedure; +pub mod get_puzzle_work_detail_procedure; +pub mod get_runtime_inventory_state_procedure; +pub mod get_runtime_setting_or_default_procedure; +pub mod get_runtime_snapshot_procedure; +pub mod get_story_session_state_procedure; pub mod grant_inventory_item_input_type; +pub mod grant_player_progression_experience_and_return_procedure; +pub mod grant_player_progression_experience_reducer; +pub mod import_auth_store_snapshot_procedure; pub mod inventory_container_kind_type; pub mod inventory_equipment_slot_type; pub mod inventory_item_rarity_type; pub mod inventory_item_snapshot_type; pub mod inventory_item_source_kind_type; -pub mod inventory_mutation_type; pub mod inventory_mutation_input_type; -pub mod inventory_slot_type; +pub mod inventory_mutation_type; pub mod inventory_slot_snapshot_type; +pub mod inventory_slot_type; +pub mod list_big_fish_works_procedure; +pub mod list_custom_world_gallery_entries_procedure; +pub mod list_custom_world_profiles_procedure; +pub mod list_custom_world_works_procedure; +pub mod list_platform_browse_history_procedure; +pub mod list_profile_save_archives_procedure; +pub mod list_profile_wallet_ledger_procedure; +pub mod list_puzzle_gallery_procedure; +pub mod list_puzzle_works_procedure; pub mod npc_battle_interaction_procedure_result_type; pub mod npc_battle_interaction_result_type; pub mod npc_interaction_battle_mode_type; @@ -178,16 +255,16 @@ pub mod npc_relation_stance_type; pub mod npc_relation_state_type; pub mod npc_social_action_kind_type; pub mod npc_stance_profile_type; -pub mod npc_state_type; pub mod npc_state_procedure_result_type; pub mod npc_state_snapshot_type; +pub mod npc_state_type; pub mod npc_state_upsert_input_type; -pub mod player_progression_type; pub mod player_progression_get_input_type; pub mod player_progression_grant_input_type; pub mod player_progression_grant_source_type; pub mod player_progression_procedure_result_type; pub mod player_progression_snapshot_type; +pub mod player_progression_type; pub mod profile_dashboard_state_type; pub mod profile_invite_code_type; pub mod profile_membership_type; @@ -196,6 +273,11 @@ pub mod profile_recharge_order_type; pub mod profile_referral_relation_type; pub mod profile_save_archive_type; pub mod profile_wallet_ledger_type; +pub mod publish_big_fish_game_procedure; +pub mod publish_custom_world_profile_and_return_procedure; +pub mod publish_custom_world_profile_reducer; +pub mod publish_custom_world_world_procedure; +pub mod publish_puzzle_work_procedure; pub mod puzzle_agent_message_finalize_input_type; pub mod puzzle_agent_message_kind_type; pub mod puzzle_agent_message_role_type; @@ -228,8 +310,8 @@ pub mod puzzle_works_procedure_result_type; pub mod quest_completion_ack_input_type; pub mod quest_hostile_npc_defeated_signal_type; pub mod quest_item_delivered_signal_type; -pub mod quest_log_type; pub mod quest_log_event_kind_type; +pub mod quest_log_type; pub mod quest_narrative_binding_snapshot_type; pub mod quest_narrative_origin_type; pub mod quest_narrative_type_type; @@ -238,12 +320,12 @@ pub mod quest_npc_talk_completed_signal_type; pub mod quest_objective_kind_type; pub mod quest_objective_snapshot_type; pub mod quest_progress_signal_type; -pub mod quest_record_type; pub mod quest_record_input_type; +pub mod quest_record_type; pub mod quest_reward_equipment_slot_type; pub mod quest_reward_intel_type; -pub mod quest_reward_item_type; pub mod quest_reward_item_rarity_type; +pub mod quest_reward_item_type; pub mod quest_reward_snapshot_type; pub mod quest_scene_reached_signal_type; pub mod quest_signal_apply_input_type; @@ -252,13 +334,24 @@ pub mod quest_status_type; pub mod quest_step_snapshot_type; pub mod quest_treasure_inspected_signal_type; pub mod quest_turn_in_input_type; +pub mod redeem_profile_referral_invite_code_procedure; pub mod refresh_session_type; +pub mod resolve_combat_action_and_return_procedure; pub mod resolve_combat_action_input_type; pub mod resolve_combat_action_procedure_result_type; +pub mod resolve_combat_action_reducer; pub mod resolve_combat_action_result_type; +pub mod resolve_npc_battle_interaction_and_return_procedure; pub mod resolve_npc_battle_interaction_input_type; +pub mod resolve_npc_interaction_and_return_procedure; pub mod resolve_npc_interaction_input_type; +pub mod resolve_npc_interaction_reducer; +pub mod resolve_npc_social_action_and_return_procedure; pub mod resolve_npc_social_action_input_type; +pub mod resolve_npc_social_action_reducer; +pub mod resolve_treasure_interaction_and_return_procedure; +pub mod resolve_treasure_interaction_reducer; +pub mod resume_profile_save_archive_and_return_procedure; pub mod rpg_agent_draft_card_kind_type; pub mod rpg_agent_draft_card_status_type; pub mod rpg_agent_message_kind_type; @@ -313,212 +406,71 @@ pub mod runtime_referral_invite_center_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_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_type; pub mod runtime_setting_upsert_input_type; -pub mod runtime_snapshot_type; pub mod runtime_snapshot_delete_input_type; pub mod runtime_snapshot_get_input_type; pub mod runtime_snapshot_procedure_result_type; pub mod runtime_snapshot_row_type; +pub mod runtime_snapshot_type; pub mod runtime_snapshot_upsert_input_type; +pub mod save_puzzle_generated_images_procedure; +pub mod select_puzzle_cover_image_procedure; +pub mod start_ai_task_reducer; +pub mod start_ai_task_stage_reducer; +pub mod start_big_fish_run_procedure; +pub mod start_puzzle_run_procedure; pub mod story_continue_input_type; -pub mod story_event_type; pub mod story_event_kind_type; pub mod story_event_snapshot_type; -pub mod story_session_type; +pub mod story_event_type; pub mod story_session_input_type; pub mod story_session_procedure_result_type; pub mod story_session_snapshot_type; pub mod story_session_state_input_type; pub mod story_session_state_procedure_result_type; pub mod story_session_status_type; -pub mod treasure_interaction_action_type; -pub mod treasure_record_type; -pub mod treasure_record_procedure_result_type; -pub mod treasure_record_snapshot_type; -pub mod treasure_resolve_input_type; -pub mod unequip_inventory_item_input_type; -pub mod user_account_type; -pub mod user_browse_history_type; -pub mod accept_quest_reducer; -pub mod acknowledge_quest_completion_reducer; -pub mod apply_chapter_progression_ledger_entry_reducer; -pub mod apply_inventory_mutation_reducer; -pub mod apply_quest_signal_reducer; -pub mod begin_story_session_reducer; -pub mod bind_asset_object_to_entity_reducer; -pub mod confirm_asset_object_reducer; -pub mod continue_story_reducer; -pub mod create_ai_task_reducer; -pub mod create_battle_state_reducer; -pub mod grant_player_progression_experience_reducer; -pub mod publish_custom_world_profile_reducer; -pub mod resolve_combat_action_reducer; -pub mod resolve_npc_interaction_reducer; -pub mod resolve_npc_social_action_reducer; -pub mod resolve_treasure_interaction_reducer; -pub mod start_ai_task_reducer; -pub mod start_ai_task_stage_reducer; -pub mod turn_in_quest_reducer; -pub mod unpublish_custom_world_profile_reducer; -pub mod upsert_chapter_progression_reducer; -pub mod upsert_custom_world_profile_reducer; -pub mod upsert_npc_state_reducer; -pub mod ai_result_reference_table; -pub mod ai_task_table; -pub mod ai_task_stage_table; -pub mod ai_text_chunk_table; -pub mod asset_entity_binding_table; -pub mod asset_object_table; -pub mod auth_identity_table; -pub mod auth_store_snapshot_table; -pub mod battle_state_table; -pub mod big_fish_agent_message_table; -pub mod big_fish_asset_slot_table; -pub mod big_fish_creation_session_table; -pub mod big_fish_runtime_run_table; -pub mod chapter_progression_table; -pub mod custom_world_agent_message_table; -pub mod custom_world_agent_operation_table; -pub mod custom_world_agent_session_table; -pub mod custom_world_draft_card_table; -pub mod custom_world_gallery_entry_table; -pub mod custom_world_profile_table; -pub mod custom_world_session_table; -pub mod inventory_slot_table; -pub mod npc_state_table; -pub mod player_progression_table; -pub mod profile_dashboard_state_table; -pub mod profile_invite_code_table; -pub mod profile_membership_table; -pub mod profile_played_world_table; -pub mod profile_recharge_order_table; -pub mod profile_referral_relation_table; -pub mod profile_save_archive_table; -pub mod profile_wallet_ledger_table; -pub mod puzzle_agent_message_table; -pub mod puzzle_agent_session_table; -pub mod puzzle_runtime_run_table; -pub mod puzzle_work_profile_table; -pub mod quest_log_table; -pub mod quest_record_table; -pub mod refresh_session_table; -pub mod runtime_setting_table; -pub mod runtime_snapshot_table; -pub mod story_event_table; -pub mod story_session_table; -pub mod treasure_record_table; -pub mod user_account_table; -pub mod user_browse_history_table; -pub mod advance_puzzle_next_level_procedure; -pub mod append_ai_text_chunk_and_return_procedure; -pub mod apply_chapter_progression_ledger_entry_and_return_procedure; -pub mod attach_ai_result_reference_and_return_procedure; -pub mod begin_story_session_and_return_procedure; -pub mod bind_asset_object_to_entity_and_return_procedure; -pub mod cancel_ai_task_and_return_procedure; -pub mod clear_platform_browse_history_and_return_procedure; -pub mod compile_big_fish_draft_procedure; -pub mod compile_custom_world_published_profile_procedure; -pub mod compile_puzzle_agent_draft_procedure; -pub mod complete_ai_stage_and_return_procedure; -pub mod complete_ai_task_and_return_procedure; -pub mod confirm_asset_object_and_return_procedure; -pub mod continue_story_and_return_procedure; -pub mod create_ai_task_and_return_procedure; -pub mod create_battle_state_and_return_procedure; -pub mod create_big_fish_session_procedure; -pub mod create_custom_world_agent_session_procedure; -pub mod create_profile_recharge_order_and_return_procedure; -pub mod create_puzzle_agent_session_procedure; -pub mod delete_big_fish_work_procedure; -pub mod delete_custom_world_agent_session_procedure; -pub mod delete_custom_world_profile_and_return_procedure; -pub mod delete_puzzle_work_procedure; -pub mod delete_runtime_snapshot_and_return_procedure; -pub mod drag_puzzle_piece_or_group_procedure; -pub mod execute_custom_world_agent_action_procedure; -pub mod export_auth_store_snapshot_from_tables_procedure; -pub mod fail_ai_task_and_return_procedure; -pub mod finalize_big_fish_agent_message_turn_procedure; -pub mod finalize_custom_world_agent_message_turn_procedure; -pub mod finalize_puzzle_agent_message_turn_procedure; -pub mod generate_big_fish_asset_procedure; -pub mod get_auth_store_snapshot_procedure; -pub mod get_battle_state_procedure; -pub mod get_big_fish_run_procedure; -pub mod get_big_fish_session_procedure; -pub mod get_chapter_progression_procedure; -pub mod get_custom_world_agent_card_detail_procedure; -pub mod get_custom_world_agent_operation_procedure; -pub mod get_custom_world_agent_session_procedure; -pub mod get_custom_world_gallery_detail_procedure; -pub mod get_custom_world_gallery_detail_by_code_procedure; -pub mod get_custom_world_library_detail_procedure; -pub mod get_player_progression_or_default_procedure; -pub mod get_profile_dashboard_procedure; -pub mod get_profile_play_stats_procedure; -pub mod get_profile_recharge_center_procedure; -pub mod get_profile_referral_invite_center_procedure; -pub mod get_puzzle_agent_session_procedure; -pub mod get_puzzle_gallery_detail_procedure; -pub mod get_puzzle_run_procedure; -pub mod get_puzzle_work_detail_procedure; -pub mod get_runtime_inventory_state_procedure; -pub mod get_runtime_setting_or_default_procedure; -pub mod get_runtime_snapshot_procedure; -pub mod get_story_session_state_procedure; -pub mod grant_player_progression_experience_and_return_procedure; -pub mod import_auth_store_snapshot_procedure; -pub mod list_big_fish_works_procedure; -pub mod list_custom_world_gallery_entries_procedure; -pub mod list_custom_world_profiles_procedure; -pub mod list_custom_world_works_procedure; -pub mod list_platform_browse_history_procedure; -pub mod list_profile_save_archives_procedure; -pub mod list_profile_wallet_ledger_procedure; -pub mod list_puzzle_gallery_procedure; -pub mod list_puzzle_works_procedure; -pub mod publish_big_fish_game_procedure; -pub mod publish_custom_world_profile_and_return_procedure; -pub mod publish_custom_world_world_procedure; -pub mod publish_puzzle_work_procedure; -pub mod redeem_profile_referral_invite_code_procedure; -pub mod resolve_combat_action_and_return_procedure; -pub mod resolve_npc_battle_interaction_and_return_procedure; -pub mod resolve_npc_interaction_and_return_procedure; -pub mod resolve_npc_social_action_and_return_procedure; -pub mod resolve_treasure_interaction_and_return_procedure; -pub mod resume_profile_save_archive_and_return_procedure; -pub mod save_puzzle_generated_images_procedure; -pub mod select_puzzle_cover_image_procedure; -pub mod start_big_fish_run_procedure; -pub mod start_puzzle_run_procedure; +pub mod story_session_type; pub mod submit_big_fish_input_procedure; pub mod submit_big_fish_message_procedure; pub mod submit_custom_world_agent_message_procedure; pub mod submit_puzzle_agent_message_procedure; pub mod swap_puzzle_pieces_procedure; +pub mod treasure_interaction_action_type; +pub mod treasure_record_procedure_result_type; +pub mod treasure_record_snapshot_type; +pub mod treasure_record_type; +pub mod treasure_resolve_input_type; +pub mod turn_in_quest_reducer; +pub mod unequip_inventory_item_input_type; pub mod unpublish_custom_world_profile_and_return_procedure; +pub mod unpublish_custom_world_profile_reducer; pub mod update_puzzle_work_procedure; pub mod upsert_auth_store_snapshot_procedure; pub mod upsert_chapter_progression_and_return_procedure; +pub mod upsert_chapter_progression_reducer; pub mod upsert_custom_world_agent_operation_progress_procedure; pub mod upsert_custom_world_profile_and_return_procedure; +pub mod upsert_custom_world_profile_reducer; pub mod upsert_npc_state_and_return_procedure; +pub mod upsert_npc_state_reducer; pub mod upsert_platform_browse_history_and_return_procedure; pub mod upsert_runtime_setting_and_return_procedure; pub mod upsert_runtime_snapshot_and_return_procedure; +pub mod user_account_type; +pub mod user_browse_history_type; -pub use ai_result_reference_type::AiResultReference; +pub use accept_quest_reducer::accept_quest; +pub use acknowledge_quest_completion_reducer::acknowledge_quest_completion; +pub use advance_puzzle_next_level_procedure::advance_puzzle_next_level; pub use ai_result_reference_input_type::AiResultReferenceInput; pub use ai_result_reference_kind_type::AiResultReferenceKind; pub use ai_result_reference_snapshot_type::AiResultReferenceSnapshot; +pub use ai_result_reference_type::AiResultReference; pub use ai_stage_completion_input_type::AiStageCompletionInput; -pub use ai_task_type::AiTask; pub use ai_task_cancel_input_type::AiTaskCancelInput; pub use ai_task_create_input_type::AiTaskCreateInput; pub use ai_task_failure_input_type::AiTaskFailureInput; @@ -526,52 +478,61 @@ pub use ai_task_finish_input_type::AiTaskFinishInput; pub use ai_task_kind_type::AiTaskKind; pub use ai_task_procedure_result_type::AiTaskProcedureResult; pub use ai_task_snapshot_type::AiTaskSnapshot; -pub use ai_task_stage_type::AiTaskStage; pub use ai_task_stage_blueprint_type::AiTaskStageBlueprint; pub use ai_task_stage_kind_type::AiTaskStageKind; pub use ai_task_stage_snapshot_type::AiTaskStageSnapshot; pub use ai_task_stage_start_input_type::AiTaskStageStartInput; pub use ai_task_stage_status_type::AiTaskStageStatus; +pub use ai_task_stage_type::AiTaskStage; pub use ai_task_start_input_type::AiTaskStartInput; pub use ai_task_status_type::AiTaskStatus; -pub use ai_text_chunk_type::AiTextChunk; +pub use ai_task_type::AiTask; pub use ai_text_chunk_append_input_type::AiTextChunkAppendInput; pub use ai_text_chunk_snapshot_type::AiTextChunkSnapshot; -pub use asset_entity_binding_type::AssetEntityBinding; +pub use ai_text_chunk_type::AiTextChunk; +pub use append_ai_text_chunk_and_return_procedure::append_ai_text_chunk_and_return; +pub use apply_chapter_progression_ledger_entry_and_return_procedure::apply_chapter_progression_ledger_entry_and_return; +pub use apply_chapter_progression_ledger_entry_reducer::apply_chapter_progression_ledger_entry; +pub use apply_inventory_mutation_reducer::apply_inventory_mutation; +pub use apply_quest_signal_reducer::apply_quest_signal; pub use asset_entity_binding_input_type::AssetEntityBindingInput; pub use asset_entity_binding_procedure_result_type::AssetEntityBindingProcedureResult; pub use asset_entity_binding_snapshot_type::AssetEntityBindingSnapshot; -pub use asset_object_type::AssetObject; +pub use asset_entity_binding_type::AssetEntityBinding; pub use asset_object_access_policy_type::AssetObjectAccessPolicy; pub use asset_object_procedure_result_type::AssetObjectProcedureResult; +pub use asset_object_type::AssetObject; pub use asset_object_upsert_input_type::AssetObjectUpsertInput; pub use asset_object_upsert_snapshot_type::AssetObjectUpsertSnapshot; +pub use attach_ai_result_reference_and_return_procedure::attach_ai_result_reference_and_return; pub use auth_identity_type::AuthIdentity; -pub use auth_store_snapshot_type::AuthStoreSnapshot; pub use auth_store_snapshot_import_procedure_result_type::AuthStoreSnapshotImportProcedureResult; pub use auth_store_snapshot_import_record_type::AuthStoreSnapshotImportRecord; pub use auth_store_snapshot_procedure_result_type::AuthStoreSnapshotProcedureResult; pub use auth_store_snapshot_record_type::AuthStoreSnapshotRecord; +pub use auth_store_snapshot_type::AuthStoreSnapshot; pub use auth_store_snapshot_upsert_input_type::AuthStoreSnapshotUpsertInput; pub use battle_mode_type::BattleMode; -pub use battle_state_type::BattleState; pub use battle_state_input_type::BattleStateInput; pub use battle_state_procedure_result_type::BattleStateProcedureResult; pub use battle_state_query_input_type::BattleStateQueryInput; pub use battle_state_snapshot_type::BattleStateSnapshot; +pub use battle_state_type::BattleState; pub use battle_status_type::BattleStatus; -pub use big_fish_agent_message_type::BigFishAgentMessage; +pub use begin_story_session_and_return_procedure::begin_story_session_and_return; +pub use begin_story_session_reducer::begin_story_session; pub use big_fish_agent_message_kind_type::BigFishAgentMessageKind; pub use big_fish_agent_message_role_type::BigFishAgentMessageRole; pub use big_fish_agent_message_snapshot_type::BigFishAgentMessageSnapshot; +pub use big_fish_agent_message_type::BigFishAgentMessage; pub use big_fish_anchor_item_type::BigFishAnchorItem; pub use big_fish_anchor_pack_type::BigFishAnchorPack; pub use big_fish_anchor_status_type::BigFishAnchorStatus; pub use big_fish_asset_coverage_type::BigFishAssetCoverage; pub use big_fish_asset_generate_input_type::BigFishAssetGenerateInput; pub use big_fish_asset_kind_type::BigFishAssetKind; -pub use big_fish_asset_slot_type::BigFishAssetSlot; pub use big_fish_asset_slot_snapshot_type::BigFishAssetSlotSnapshot; +pub use big_fish_asset_slot_type::BigFishAssetSlot; pub use big_fish_asset_status_type::BigFishAssetStatus; pub use big_fish_background_blueprint_type::BigFishBackgroundBlueprint; pub use big_fish_creation_session_type::BigFishCreationSession; @@ -599,51 +560,73 @@ pub use big_fish_vector_2_type::BigFishVector2; pub use big_fish_work_delete_input_type::BigFishWorkDeleteInput; pub use big_fish_works_list_input_type::BigFishWorksListInput; pub use big_fish_works_procedure_result_type::BigFishWorksProcedureResult; +pub use bind_asset_object_to_entity_and_return_procedure::bind_asset_object_to_entity_and_return; +pub use bind_asset_object_to_entity_reducer::bind_asset_object_to_entity; +pub use cancel_ai_task_and_return_procedure::cancel_ai_task_and_return; pub use chapter_pace_band_type::ChapterPaceBand; -pub use chapter_progression_type::ChapterProgression; pub use chapter_progression_get_input_type::ChapterProgressionGetInput; pub use chapter_progression_input_type::ChapterProgressionInput; pub use chapter_progression_ledger_input_type::ChapterProgressionLedgerInput; pub use chapter_progression_procedure_result_type::ChapterProgressionProcedureResult; pub use chapter_progression_snapshot_type::ChapterProgressionSnapshot; +pub use chapter_progression_type::ChapterProgression; +pub use clear_platform_browse_history_and_return_procedure::clear_platform_browse_history_and_return; pub use combat_outcome_type::CombatOutcome; +pub use compile_big_fish_draft_procedure::compile_big_fish_draft; +pub use compile_custom_world_published_profile_procedure::compile_custom_world_published_profile; +pub use compile_puzzle_agent_draft_procedure::compile_puzzle_agent_draft; +pub use complete_ai_stage_and_return_procedure::complete_ai_stage_and_return; +pub use complete_ai_task_and_return_procedure::complete_ai_task_and_return; +pub use confirm_asset_object_and_return_procedure::confirm_asset_object_and_return; +pub use confirm_asset_object_reducer::confirm_asset_object; pub use consume_inventory_item_input_type::ConsumeInventoryItemInput; +pub use continue_story_and_return_procedure::continue_story_and_return; +pub use continue_story_reducer::continue_story; +pub use create_ai_task_and_return_procedure::create_ai_task_and_return; +pub use create_ai_task_reducer::create_ai_task; +pub use create_battle_state_and_return_procedure::create_battle_state_and_return; +pub use create_battle_state_reducer::create_battle_state; +pub use create_big_fish_session_procedure::create_big_fish_session; +pub use create_custom_world_agent_session_procedure::create_custom_world_agent_session; +pub use create_profile_recharge_order_and_return_procedure::create_profile_recharge_order_and_return; +pub use create_puzzle_agent_session_procedure::create_puzzle_agent_session; pub use custom_world_agent_action_execute_input_type::CustomWorldAgentActionExecuteInput; pub use custom_world_agent_action_execute_result_type::CustomWorldAgentActionExecuteResult; pub use custom_world_agent_card_detail_get_input_type::CustomWorldAgentCardDetailGetInput; -pub use custom_world_agent_message_type::CustomWorldAgentMessage; pub use custom_world_agent_message_finalize_input_type::CustomWorldAgentMessageFinalizeInput; pub use custom_world_agent_message_snapshot_type::CustomWorldAgentMessageSnapshot; pub use custom_world_agent_message_submit_input_type::CustomWorldAgentMessageSubmitInput; -pub use custom_world_agent_operation_type::CustomWorldAgentOperation; +pub use custom_world_agent_message_type::CustomWorldAgentMessage; pub use custom_world_agent_operation_get_input_type::CustomWorldAgentOperationGetInput; pub use custom_world_agent_operation_procedure_result_type::CustomWorldAgentOperationProcedureResult; pub use custom_world_agent_operation_progress_input_type::CustomWorldAgentOperationProgressInput; pub use custom_world_agent_operation_snapshot_type::CustomWorldAgentOperationSnapshot; -pub use custom_world_agent_session_type::CustomWorldAgentSession; +pub use custom_world_agent_operation_type::CustomWorldAgentOperation; pub use custom_world_agent_session_create_input_type::CustomWorldAgentSessionCreateInput; pub use custom_world_agent_session_get_input_type::CustomWorldAgentSessionGetInput; pub use custom_world_agent_session_procedure_result_type::CustomWorldAgentSessionProcedureResult; pub use custom_world_agent_session_snapshot_type::CustomWorldAgentSessionSnapshot; -pub use custom_world_draft_card_type::CustomWorldDraftCard; +pub use custom_world_agent_session_type::CustomWorldAgentSession; pub use custom_world_draft_card_detail_result_type::CustomWorldDraftCardDetailResult; pub use custom_world_draft_card_detail_section_snapshot_type::CustomWorldDraftCardDetailSectionSnapshot; pub use custom_world_draft_card_detail_snapshot_type::CustomWorldDraftCardDetailSnapshot; pub use custom_world_draft_card_snapshot_type::CustomWorldDraftCardSnapshot; +pub use custom_world_draft_card_type::CustomWorldDraftCard; pub use custom_world_gallery_detail_by_code_input_type::CustomWorldGalleryDetailByCodeInput; pub use custom_world_gallery_detail_input_type::CustomWorldGalleryDetailInput; -pub use custom_world_gallery_entry_type::CustomWorldGalleryEntry; pub use custom_world_gallery_entry_snapshot_type::CustomWorldGalleryEntrySnapshot; +pub use custom_world_gallery_entry_table::*; +pub use custom_world_gallery_entry_type::CustomWorldGalleryEntry; pub use custom_world_gallery_list_result_type::CustomWorldGalleryListResult; pub use custom_world_generation_mode_type::CustomWorldGenerationMode; pub use custom_world_library_detail_input_type::CustomWorldLibraryDetailInput; pub use custom_world_library_mutation_result_type::CustomWorldLibraryMutationResult; -pub use custom_world_profile_type::CustomWorldProfile; pub use custom_world_profile_delete_input_type::CustomWorldProfileDeleteInput; pub use custom_world_profile_list_input_type::CustomWorldProfileListInput; pub use custom_world_profile_list_result_type::CustomWorldProfileListResult; pub use custom_world_profile_publish_input_type::CustomWorldProfilePublishInput; pub use custom_world_profile_snapshot_type::CustomWorldProfileSnapshot; +pub use custom_world_profile_type::CustomWorldProfile; pub use custom_world_profile_unpublish_input_type::CustomWorldProfileUnpublishInput; pub use custom_world_profile_upsert_input_type::CustomWorldProfileUpsertInput; pub use custom_world_publication_status_type::CustomWorldPublicationStatus; @@ -653,23 +636,72 @@ pub use custom_world_published_profile_compile_input_type::CustomWorldPublishedP pub use custom_world_published_profile_compile_result_type::CustomWorldPublishedProfileCompileResult; pub use custom_world_published_profile_compile_snapshot_type::CustomWorldPublishedProfileCompileSnapshot; pub use custom_world_role_asset_status_type::CustomWorldRoleAssetStatus; -pub use custom_world_session_type::CustomWorldSession; pub use custom_world_session_status_type::CustomWorldSessionStatus; +pub use custom_world_session_type::CustomWorldSession; pub use custom_world_theme_mode_type::CustomWorldThemeMode; pub use custom_world_work_summary_snapshot_type::CustomWorldWorkSummarySnapshot; pub use custom_world_works_list_input_type::CustomWorldWorksListInput; pub use custom_world_works_list_result_type::CustomWorldWorksListResult; +pub use delete_big_fish_work_procedure::delete_big_fish_work; +pub use delete_custom_world_agent_session_procedure::delete_custom_world_agent_session; +pub use delete_custom_world_profile_and_return_procedure::delete_custom_world_profile_and_return; +pub use delete_puzzle_work_procedure::delete_puzzle_work; +pub use delete_runtime_snapshot_and_return_procedure::delete_runtime_snapshot_and_return; +pub use drag_puzzle_piece_or_group_procedure::drag_puzzle_piece_or_group; pub use equip_inventory_item_input_type::EquipInventoryItemInput; +pub use execute_custom_world_agent_action_procedure::execute_custom_world_agent_action; +pub use export_auth_store_snapshot_from_tables_procedure::export_auth_store_snapshot_from_tables; +pub use fail_ai_task_and_return_procedure::fail_ai_task_and_return; +pub use finalize_big_fish_agent_message_turn_procedure::finalize_big_fish_agent_message_turn; +pub use finalize_custom_world_agent_message_turn_procedure::finalize_custom_world_agent_message_turn; +pub use finalize_puzzle_agent_message_turn_procedure::finalize_puzzle_agent_message_turn; +pub use generate_big_fish_asset_procedure::generate_big_fish_asset; +pub use get_auth_store_snapshot_procedure::get_auth_store_snapshot; +pub use get_battle_state_procedure::get_battle_state; +pub use get_big_fish_run_procedure::get_big_fish_run; +pub use get_big_fish_session_procedure::get_big_fish_session; +pub use get_chapter_progression_procedure::get_chapter_progression; +pub use get_custom_world_agent_card_detail_procedure::get_custom_world_agent_card_detail; +pub use get_custom_world_agent_operation_procedure::get_custom_world_agent_operation; +pub use get_custom_world_agent_session_procedure::get_custom_world_agent_session; +pub use get_custom_world_gallery_detail_by_code_procedure::get_custom_world_gallery_detail_by_code; +pub use get_custom_world_gallery_detail_procedure::get_custom_world_gallery_detail; +pub use get_custom_world_library_detail_procedure::get_custom_world_library_detail; +pub use get_player_progression_or_default_procedure::get_player_progression_or_default; +pub use get_profile_dashboard_procedure::get_profile_dashboard; +pub use get_profile_play_stats_procedure::get_profile_play_stats; +pub use get_profile_recharge_center_procedure::get_profile_recharge_center; +pub use get_profile_referral_invite_center_procedure::get_profile_referral_invite_center; +pub use get_puzzle_agent_session_procedure::get_puzzle_agent_session; +pub use get_puzzle_gallery_detail_procedure::get_puzzle_gallery_detail; +pub use get_puzzle_run_procedure::get_puzzle_run; +pub use get_puzzle_work_detail_procedure::get_puzzle_work_detail; +pub use get_runtime_inventory_state_procedure::get_runtime_inventory_state; +pub use get_runtime_setting_or_default_procedure::get_runtime_setting_or_default; +pub use get_runtime_snapshot_procedure::get_runtime_snapshot; +pub use get_story_session_state_procedure::get_story_session_state; pub use grant_inventory_item_input_type::GrantInventoryItemInput; +pub use grant_player_progression_experience_and_return_procedure::grant_player_progression_experience_and_return; +pub use grant_player_progression_experience_reducer::grant_player_progression_experience; +pub use import_auth_store_snapshot_procedure::import_auth_store_snapshot; pub use inventory_container_kind_type::InventoryContainerKind; pub use inventory_equipment_slot_type::InventoryEquipmentSlot; pub use inventory_item_rarity_type::InventoryItemRarity; pub use inventory_item_snapshot_type::InventoryItemSnapshot; pub use inventory_item_source_kind_type::InventoryItemSourceKind; -pub use inventory_mutation_type::InventoryMutation; pub use inventory_mutation_input_type::InventoryMutationInput; -pub use inventory_slot_type::InventorySlot; +pub use inventory_mutation_type::InventoryMutation; pub use inventory_slot_snapshot_type::InventorySlotSnapshot; +pub use inventory_slot_type::InventorySlot; +pub use list_big_fish_works_procedure::list_big_fish_works; +pub use list_custom_world_gallery_entries_procedure::list_custom_world_gallery_entries; +pub use list_custom_world_profiles_procedure::list_custom_world_profiles; +pub use list_custom_world_works_procedure::list_custom_world_works; +pub use list_platform_browse_history_procedure::list_platform_browse_history; +pub use list_profile_save_archives_procedure::list_profile_save_archives; +pub use list_profile_wallet_ledger_procedure::list_profile_wallet_ledger; +pub use list_puzzle_gallery_procedure::list_puzzle_gallery; +pub use list_puzzle_works_procedure::list_puzzle_works; pub use npc_battle_interaction_procedure_result_type::NpcBattleInteractionProcedureResult; pub use npc_battle_interaction_result_type::NpcBattleInteractionResult; pub use npc_interaction_battle_mode_type::NpcInteractionBattleMode; @@ -680,16 +712,16 @@ pub use npc_relation_stance_type::NpcRelationStance; pub use npc_relation_state_type::NpcRelationState; pub use npc_social_action_kind_type::NpcSocialActionKind; pub use npc_stance_profile_type::NpcStanceProfile; -pub use npc_state_type::NpcState; pub use npc_state_procedure_result_type::NpcStateProcedureResult; pub use npc_state_snapshot_type::NpcStateSnapshot; +pub use npc_state_type::NpcState; pub use npc_state_upsert_input_type::NpcStateUpsertInput; -pub use player_progression_type::PlayerProgression; pub use player_progression_get_input_type::PlayerProgressionGetInput; pub use player_progression_grant_input_type::PlayerProgressionGrantInput; pub use player_progression_grant_source_type::PlayerProgressionGrantSource; pub use player_progression_procedure_result_type::PlayerProgressionProcedureResult; pub use player_progression_snapshot_type::PlayerProgressionSnapshot; +pub use player_progression_type::PlayerProgression; pub use profile_dashboard_state_type::ProfileDashboardState; pub use profile_invite_code_type::ProfileInviteCode; pub use profile_membership_type::ProfileMembership; @@ -698,6 +730,11 @@ pub use profile_recharge_order_type::ProfileRechargeOrder; pub use profile_referral_relation_type::ProfileReferralRelation; pub use profile_save_archive_type::ProfileSaveArchive; pub use profile_wallet_ledger_type::ProfileWalletLedger; +pub use publish_big_fish_game_procedure::publish_big_fish_game; +pub use publish_custom_world_profile_and_return_procedure::publish_custom_world_profile_and_return; +pub use publish_custom_world_profile_reducer::publish_custom_world_profile; +pub use publish_custom_world_world_procedure::publish_custom_world_world; +pub use publish_puzzle_work_procedure::publish_puzzle_work; pub use puzzle_agent_message_finalize_input_type::PuzzleAgentMessageFinalizeInput; pub use puzzle_agent_message_kind_type::PuzzleAgentMessageKind; pub use puzzle_agent_message_role_type::PuzzleAgentMessageRole; @@ -730,8 +767,8 @@ pub use puzzle_works_procedure_result_type::PuzzleWorksProcedureResult; pub use quest_completion_ack_input_type::QuestCompletionAckInput; pub use quest_hostile_npc_defeated_signal_type::QuestHostileNpcDefeatedSignal; pub use quest_item_delivered_signal_type::QuestItemDeliveredSignal; -pub use quest_log_type::QuestLog; pub use quest_log_event_kind_type::QuestLogEventKind; +pub use quest_log_type::QuestLog; pub use quest_narrative_binding_snapshot_type::QuestNarrativeBindingSnapshot; pub use quest_narrative_origin_type::QuestNarrativeOrigin; pub use quest_narrative_type_type::QuestNarrativeType; @@ -740,12 +777,12 @@ pub use quest_npc_talk_completed_signal_type::QuestNpcTalkCompletedSignal; pub use quest_objective_kind_type::QuestObjectiveKind; pub use quest_objective_snapshot_type::QuestObjectiveSnapshot; pub use quest_progress_signal_type::QuestProgressSignal; -pub use quest_record_type::QuestRecord; pub use quest_record_input_type::QuestRecordInput; +pub use quest_record_type::QuestRecord; pub use quest_reward_equipment_slot_type::QuestRewardEquipmentSlot; pub use quest_reward_intel_type::QuestRewardIntel; -pub use quest_reward_item_type::QuestRewardItem; pub use quest_reward_item_rarity_type::QuestRewardItemRarity; +pub use quest_reward_item_type::QuestRewardItem; pub use quest_reward_snapshot_type::QuestRewardSnapshot; pub use quest_scene_reached_signal_type::QuestSceneReachedSignal; pub use quest_signal_apply_input_type::QuestSignalApplyInput; @@ -754,13 +791,24 @@ pub use quest_status_type::QuestStatus; pub use quest_step_snapshot_type::QuestStepSnapshot; pub use quest_treasure_inspected_signal_type::QuestTreasureInspectedSignal; pub use quest_turn_in_input_type::QuestTurnInInput; +pub use redeem_profile_referral_invite_code_procedure::redeem_profile_referral_invite_code; pub use refresh_session_type::RefreshSession; +pub use resolve_combat_action_and_return_procedure::resolve_combat_action_and_return; pub use resolve_combat_action_input_type::ResolveCombatActionInput; pub use resolve_combat_action_procedure_result_type::ResolveCombatActionProcedureResult; +pub use resolve_combat_action_reducer::resolve_combat_action; pub use resolve_combat_action_result_type::ResolveCombatActionResult; +pub use resolve_npc_battle_interaction_and_return_procedure::resolve_npc_battle_interaction_and_return; pub use resolve_npc_battle_interaction_input_type::ResolveNpcBattleInteractionInput; +pub use resolve_npc_interaction_and_return_procedure::resolve_npc_interaction_and_return; pub use resolve_npc_interaction_input_type::ResolveNpcInteractionInput; +pub use resolve_npc_interaction_reducer::resolve_npc_interaction; +pub use resolve_npc_social_action_and_return_procedure::resolve_npc_social_action_and_return; pub use resolve_npc_social_action_input_type::ResolveNpcSocialActionInput; +pub use resolve_npc_social_action_reducer::resolve_npc_social_action; +pub use resolve_treasure_interaction_and_return_procedure::resolve_treasure_interaction_and_return; +pub use resolve_treasure_interaction_reducer::resolve_treasure_interaction; +pub use resume_profile_save_archive_and_return_procedure::resume_profile_save_archive_and_return; pub use rpg_agent_draft_card_kind_type::RpgAgentDraftCardKind; pub use rpg_agent_draft_card_status_type::RpgAgentDraftCardStatus; pub use rpg_agent_message_kind_type::RpgAgentMessageKind; @@ -815,205 +863,62 @@ pub use runtime_referral_invite_center_snapshot_type::RuntimeReferralInviteCente 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_type::RuntimeSetting; 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_type::RuntimeSetting; pub use runtime_setting_upsert_input_type::RuntimeSettingUpsertInput; -pub use runtime_snapshot_type::RuntimeSnapshot; pub use runtime_snapshot_delete_input_type::RuntimeSnapshotDeleteInput; pub use runtime_snapshot_get_input_type::RuntimeSnapshotGetInput; pub use runtime_snapshot_procedure_result_type::RuntimeSnapshotProcedureResult; pub use runtime_snapshot_row_type::RuntimeSnapshotRow; +pub use runtime_snapshot_type::RuntimeSnapshot; pub use runtime_snapshot_upsert_input_type::RuntimeSnapshotUpsertInput; +pub use save_puzzle_generated_images_procedure::save_puzzle_generated_images; +pub use select_puzzle_cover_image_procedure::select_puzzle_cover_image; +pub use start_ai_task_reducer::start_ai_task; +pub use start_ai_task_stage_reducer::start_ai_task_stage; +pub use start_big_fish_run_procedure::start_big_fish_run; +pub use start_puzzle_run_procedure::start_puzzle_run; pub use story_continue_input_type::StoryContinueInput; -pub use story_event_type::StoryEvent; pub use story_event_kind_type::StoryEventKind; pub use story_event_snapshot_type::StoryEventSnapshot; -pub use story_session_type::StorySession; +pub use story_event_type::StoryEvent; pub use story_session_input_type::StorySessionInput; pub use story_session_procedure_result_type::StorySessionProcedureResult; pub use story_session_snapshot_type::StorySessionSnapshot; pub use story_session_state_input_type::StorySessionStateInput; pub use story_session_state_procedure_result_type::StorySessionStateProcedureResult; pub use story_session_status_type::StorySessionStatus; -pub use treasure_interaction_action_type::TreasureInteractionAction; -pub use treasure_record_type::TreasureRecord; -pub use treasure_record_procedure_result_type::TreasureRecordProcedureResult; -pub use treasure_record_snapshot_type::TreasureRecordSnapshot; -pub use treasure_resolve_input_type::TreasureResolveInput; -pub use unequip_inventory_item_input_type::UnequipInventoryItemInput; -pub use user_account_type::UserAccount; -pub use user_browse_history_type::UserBrowseHistory; -pub use ai_result_reference_table::*; -pub use ai_task_table::*; -pub use ai_task_stage_table::*; -pub use ai_text_chunk_table::*; -pub use asset_entity_binding_table::*; -pub use asset_object_table::*; -pub use auth_identity_table::*; -pub use auth_store_snapshot_table::*; -pub use battle_state_table::*; -pub use big_fish_agent_message_table::*; -pub use big_fish_asset_slot_table::*; -pub use big_fish_creation_session_table::*; -pub use big_fish_runtime_run_table::*; -pub use chapter_progression_table::*; -pub use custom_world_agent_message_table::*; -pub use custom_world_agent_operation_table::*; -pub use custom_world_agent_session_table::*; -pub use custom_world_draft_card_table::*; -pub use custom_world_gallery_entry_table::*; -pub use custom_world_profile_table::*; -pub use custom_world_session_table::*; -pub use inventory_slot_table::*; -pub use npc_state_table::*; -pub use player_progression_table::*; -pub use profile_dashboard_state_table::*; -pub use profile_invite_code_table::*; -pub use profile_membership_table::*; -pub use profile_played_world_table::*; -pub use profile_recharge_order_table::*; -pub use profile_referral_relation_table::*; -pub use profile_save_archive_table::*; -pub use profile_wallet_ledger_table::*; -pub use puzzle_agent_message_table::*; -pub use puzzle_agent_session_table::*; -pub use puzzle_runtime_run_table::*; -pub use puzzle_work_profile_table::*; -pub use quest_log_table::*; -pub use quest_record_table::*; -pub use refresh_session_table::*; -pub use runtime_setting_table::*; -pub use runtime_snapshot_table::*; -pub use story_event_table::*; -pub use story_session_table::*; -pub use treasure_record_table::*; -pub use user_account_table::*; -pub use user_browse_history_table::*; -pub use accept_quest_reducer::accept_quest; -pub use acknowledge_quest_completion_reducer::acknowledge_quest_completion; -pub use apply_chapter_progression_ledger_entry_reducer::apply_chapter_progression_ledger_entry; -pub use apply_inventory_mutation_reducer::apply_inventory_mutation; -pub use apply_quest_signal_reducer::apply_quest_signal; -pub use begin_story_session_reducer::begin_story_session; -pub use bind_asset_object_to_entity_reducer::bind_asset_object_to_entity; -pub use confirm_asset_object_reducer::confirm_asset_object; -pub use continue_story_reducer::continue_story; -pub use create_ai_task_reducer::create_ai_task; -pub use create_battle_state_reducer::create_battle_state; -pub use grant_player_progression_experience_reducer::grant_player_progression_experience; -pub use publish_custom_world_profile_reducer::publish_custom_world_profile; -pub use resolve_combat_action_reducer::resolve_combat_action; -pub use resolve_npc_interaction_reducer::resolve_npc_interaction; -pub use resolve_npc_social_action_reducer::resolve_npc_social_action; -pub use resolve_treasure_interaction_reducer::resolve_treasure_interaction; -pub use start_ai_task_reducer::start_ai_task; -pub use start_ai_task_stage_reducer::start_ai_task_stage; -pub use turn_in_quest_reducer::turn_in_quest; -pub use unpublish_custom_world_profile_reducer::unpublish_custom_world_profile; -pub use upsert_chapter_progression_reducer::upsert_chapter_progression; -pub use upsert_custom_world_profile_reducer::upsert_custom_world_profile; -pub use upsert_npc_state_reducer::upsert_npc_state; -pub use advance_puzzle_next_level_procedure::advance_puzzle_next_level; -pub use append_ai_text_chunk_and_return_procedure::append_ai_text_chunk_and_return; -pub use apply_chapter_progression_ledger_entry_and_return_procedure::apply_chapter_progression_ledger_entry_and_return; -pub use attach_ai_result_reference_and_return_procedure::attach_ai_result_reference_and_return; -pub use begin_story_session_and_return_procedure::begin_story_session_and_return; -pub use bind_asset_object_to_entity_and_return_procedure::bind_asset_object_to_entity_and_return; -pub use cancel_ai_task_and_return_procedure::cancel_ai_task_and_return; -pub use clear_platform_browse_history_and_return_procedure::clear_platform_browse_history_and_return; -pub use compile_big_fish_draft_procedure::compile_big_fish_draft; -pub use compile_custom_world_published_profile_procedure::compile_custom_world_published_profile; -pub use compile_puzzle_agent_draft_procedure::compile_puzzle_agent_draft; -pub use complete_ai_stage_and_return_procedure::complete_ai_stage_and_return; -pub use complete_ai_task_and_return_procedure::complete_ai_task_and_return; -pub use confirm_asset_object_and_return_procedure::confirm_asset_object_and_return; -pub use continue_story_and_return_procedure::continue_story_and_return; -pub use create_ai_task_and_return_procedure::create_ai_task_and_return; -pub use create_battle_state_and_return_procedure::create_battle_state_and_return; -pub use create_big_fish_session_procedure::create_big_fish_session; -pub use create_custom_world_agent_session_procedure::create_custom_world_agent_session; -pub use create_profile_recharge_order_and_return_procedure::create_profile_recharge_order_and_return; -pub use create_puzzle_agent_session_procedure::create_puzzle_agent_session; -pub use delete_big_fish_work_procedure::delete_big_fish_work; -pub use delete_custom_world_agent_session_procedure::delete_custom_world_agent_session; -pub use delete_custom_world_profile_and_return_procedure::delete_custom_world_profile_and_return; -pub use delete_puzzle_work_procedure::delete_puzzle_work; -pub use delete_runtime_snapshot_and_return_procedure::delete_runtime_snapshot_and_return; -pub use drag_puzzle_piece_or_group_procedure::drag_puzzle_piece_or_group; -pub use execute_custom_world_agent_action_procedure::execute_custom_world_agent_action; -pub use export_auth_store_snapshot_from_tables_procedure::export_auth_store_snapshot_from_tables; -pub use fail_ai_task_and_return_procedure::fail_ai_task_and_return; -pub use finalize_big_fish_agent_message_turn_procedure::finalize_big_fish_agent_message_turn; -pub use finalize_custom_world_agent_message_turn_procedure::finalize_custom_world_agent_message_turn; -pub use finalize_puzzle_agent_message_turn_procedure::finalize_puzzle_agent_message_turn; -pub use generate_big_fish_asset_procedure::generate_big_fish_asset; -pub use get_auth_store_snapshot_procedure::get_auth_store_snapshot; -pub use get_battle_state_procedure::get_battle_state; -pub use get_big_fish_run_procedure::get_big_fish_run; -pub use get_big_fish_session_procedure::get_big_fish_session; -pub use get_chapter_progression_procedure::get_chapter_progression; -pub use get_custom_world_agent_card_detail_procedure::get_custom_world_agent_card_detail; -pub use get_custom_world_agent_operation_procedure::get_custom_world_agent_operation; -pub use get_custom_world_agent_session_procedure::get_custom_world_agent_session; -pub use get_custom_world_gallery_detail_procedure::get_custom_world_gallery_detail; -pub use get_custom_world_gallery_detail_by_code_procedure::get_custom_world_gallery_detail_by_code; -pub use get_custom_world_library_detail_procedure::get_custom_world_library_detail; -pub use get_player_progression_or_default_procedure::get_player_progression_or_default; -pub use get_profile_dashboard_procedure::get_profile_dashboard; -pub use get_profile_play_stats_procedure::get_profile_play_stats; -pub use get_profile_recharge_center_procedure::get_profile_recharge_center; -pub use get_profile_referral_invite_center_procedure::get_profile_referral_invite_center; -pub use get_puzzle_agent_session_procedure::get_puzzle_agent_session; -pub use get_puzzle_gallery_detail_procedure::get_puzzle_gallery_detail; -pub use get_puzzle_run_procedure::get_puzzle_run; -pub use get_puzzle_work_detail_procedure::get_puzzle_work_detail; -pub use get_runtime_inventory_state_procedure::get_runtime_inventory_state; -pub use get_runtime_setting_or_default_procedure::get_runtime_setting_or_default; -pub use get_runtime_snapshot_procedure::get_runtime_snapshot; -pub use get_story_session_state_procedure::get_story_session_state; -pub use grant_player_progression_experience_and_return_procedure::grant_player_progression_experience_and_return; -pub use import_auth_store_snapshot_procedure::import_auth_store_snapshot; -pub use list_big_fish_works_procedure::list_big_fish_works; -pub use list_custom_world_gallery_entries_procedure::list_custom_world_gallery_entries; -pub use list_custom_world_profiles_procedure::list_custom_world_profiles; -pub use list_custom_world_works_procedure::list_custom_world_works; -pub use list_platform_browse_history_procedure::list_platform_browse_history; -pub use list_profile_save_archives_procedure::list_profile_save_archives; -pub use list_profile_wallet_ledger_procedure::list_profile_wallet_ledger; -pub use list_puzzle_gallery_procedure::list_puzzle_gallery; -pub use list_puzzle_works_procedure::list_puzzle_works; -pub use publish_big_fish_game_procedure::publish_big_fish_game; -pub use publish_custom_world_profile_and_return_procedure::publish_custom_world_profile_and_return; -pub use publish_custom_world_world_procedure::publish_custom_world_world; -pub use publish_puzzle_work_procedure::publish_puzzle_work; -pub use redeem_profile_referral_invite_code_procedure::redeem_profile_referral_invite_code; -pub use resolve_combat_action_and_return_procedure::resolve_combat_action_and_return; -pub use resolve_npc_battle_interaction_and_return_procedure::resolve_npc_battle_interaction_and_return; -pub use resolve_npc_interaction_and_return_procedure::resolve_npc_interaction_and_return; -pub use resolve_npc_social_action_and_return_procedure::resolve_npc_social_action_and_return; -pub use resolve_treasure_interaction_and_return_procedure::resolve_treasure_interaction_and_return; -pub use resume_profile_save_archive_and_return_procedure::resume_profile_save_archive_and_return; -pub use save_puzzle_generated_images_procedure::save_puzzle_generated_images; -pub use select_puzzle_cover_image_procedure::select_puzzle_cover_image; -pub use start_big_fish_run_procedure::start_big_fish_run; -pub use start_puzzle_run_procedure::start_puzzle_run; +pub use story_session_type::StorySession; pub use submit_big_fish_input_procedure::submit_big_fish_input; pub use submit_big_fish_message_procedure::submit_big_fish_message; pub use submit_custom_world_agent_message_procedure::submit_custom_world_agent_message; pub use submit_puzzle_agent_message_procedure::submit_puzzle_agent_message; pub use swap_puzzle_pieces_procedure::swap_puzzle_pieces; +pub use treasure_interaction_action_type::TreasureInteractionAction; +pub use treasure_record_procedure_result_type::TreasureRecordProcedureResult; +pub use treasure_record_snapshot_type::TreasureRecordSnapshot; +pub use treasure_record_type::TreasureRecord; +pub use treasure_resolve_input_type::TreasureResolveInput; +pub use turn_in_quest_reducer::turn_in_quest; +pub use unequip_inventory_item_input_type::UnequipInventoryItemInput; pub use unpublish_custom_world_profile_and_return_procedure::unpublish_custom_world_profile_and_return; +pub use unpublish_custom_world_profile_reducer::unpublish_custom_world_profile; pub use update_puzzle_work_procedure::update_puzzle_work; pub use upsert_auth_store_snapshot_procedure::upsert_auth_store_snapshot; pub use upsert_chapter_progression_and_return_procedure::upsert_chapter_progression_and_return; +pub use upsert_chapter_progression_reducer::upsert_chapter_progression; pub use upsert_custom_world_agent_operation_progress_procedure::upsert_custom_world_agent_operation_progress; pub use upsert_custom_world_profile_and_return_procedure::upsert_custom_world_profile_and_return; +pub use upsert_custom_world_profile_reducer::upsert_custom_world_profile; pub use upsert_npc_state_and_return_procedure::upsert_npc_state_and_return; +pub use upsert_npc_state_reducer::upsert_npc_state; pub use upsert_platform_browse_history_and_return_procedure::upsert_platform_browse_history_and_return; pub use upsert_runtime_setting_and_return_procedure::upsert_runtime_setting_and_return; pub use upsert_runtime_snapshot_and_return_procedure::upsert_runtime_snapshot_and_return; +pub use user_account_type::UserAccount; +pub use user_browse_history_type::UserBrowseHistory; #[derive(Clone, PartialEq, Debug)] @@ -1023,81 +928,80 @@ pub use upsert_runtime_snapshot_and_return_procedure::upsert_runtime_snapshot_an /// to indicate which reducer caused the event. pub enum Reducer { - AcceptQuest { + AcceptQuest { input: QuestRecordInput, -} , + }, AcknowledgeQuestCompletion { input: QuestCompletionAckInput, -} , + }, ApplyChapterProgressionLedgerEntry { input: ChapterProgressionLedgerInput, -} , + }, ApplyInventoryMutation { input: InventoryMutationInput, -} , + }, ApplyQuestSignal { input: QuestSignalApplyInput, -} , + }, BeginStorySession { input: StorySessionInput, -} , + }, BindAssetObjectToEntity { input: AssetEntityBindingInput, -} , + }, ConfirmAssetObject { input: AssetObjectUpsertInput, -} , + }, ContinueStory { input: StoryContinueInput, -} , + }, CreateAiTask { input: AiTaskCreateInput, -} , + }, CreateBattleState { input: BattleStateInput, -} , + }, GrantPlayerProgressionExperience { input: PlayerProgressionGrantInput, -} , + }, PublishCustomWorldProfile { input: CustomWorldProfilePublishInput, -} , + }, ResolveCombatAction { input: ResolveCombatActionInput, -} , + }, ResolveNpcInteraction { input: ResolveNpcInteractionInput, -} , + }, ResolveNpcSocialAction { input: ResolveNpcSocialActionInput, -} , + }, ResolveTreasureInteraction { input: TreasureResolveInput, -} , + }, StartAiTask { input: AiTaskStartInput, -} , + }, StartAiTaskStage { input: AiTaskStageStartInput, -} , + }, TurnInQuest { input: QuestTurnInInput, -} , + }, UnpublishCustomWorldProfile { input: CustomWorldProfileUnpublishInput, -} , + }, UpsertChapterProgression { input: ChapterProgressionInput, -} , + }, UpsertCustomWorldProfile { input: CustomWorldProfileUpsertInput, -} , + }, UpsertNpcState { input: NpcStateUpsertInput, -} , + }, } - impl __sdk::InModule for Reducer { type Module = RemoteModule; } @@ -1105,9 +1009,11 @@ impl __sdk::InModule for Reducer { impl __sdk::Reducer for Reducer { fn reducer_name(&self) -> &'static str { match self { - Reducer::AcceptQuest { .. } => "accept_quest", + Reducer::AcceptQuest { .. } => "accept_quest", Reducer::AcknowledgeQuestCompletion { .. } => "acknowledge_quest_completion", - Reducer::ApplyChapterProgressionLedgerEntry { .. } => "apply_chapter_progression_ledger_entry", + Reducer::ApplyChapterProgressionLedgerEntry { .. } => { + "apply_chapter_progression_ledger_entry" + } Reducer::ApplyInventoryMutation { .. } => "apply_inventory_mutation", Reducer::ApplyQuestSignal { .. } => "apply_quest_signal", Reducer::BeginStorySession { .. } => "begin_story_session", @@ -1116,7 +1022,9 @@ impl __sdk::Reducer for Reducer { Reducer::ContinueStory { .. } => "continue_story", Reducer::CreateAiTask { .. } => "create_ai_task", Reducer::CreateBattleState { .. } => "create_battle_state", - Reducer::GrantPlayerProgressionExperience { .. } => "grant_player_progression_experience", + Reducer::GrantPlayerProgressionExperience { .. } => { + "grant_player_progression_experience" + } Reducer::PublishCustomWorldProfile { .. } => "publish_custom_world_profile", Reducer::ResolveCombatAction { .. } => "resolve_combat_action", Reducer::ResolveNpcInteraction { .. } => "resolve_npc_interaction", @@ -1130,10 +1038,10 @@ impl __sdk::Reducer for Reducer { Reducer::UpsertCustomWorldProfile { .. } => "upsert_custom_world_profile", Reducer::UpsertNpcState { .. } => "upsert_npc_state", _ => unreachable!(), -} -} + } + } #[allow(clippy::clone_on_copy)] -fn args_bsatn(&self) -> Result, __sats::bsatn::EncodeError> { + fn args_bsatn(&self) -> Result, __sats::bsatn::EncodeError> { match self { Reducer::AcceptQuest{ input, @@ -1257,122 +1165,33 @@ fn args_bsatn(&self) -> Result, __sats::bsatn::EncodeError> { }), _ => unreachable!(), } -} + } } #[derive(Default, Debug)] #[allow(non_snake_case)] #[doc(hidden)] pub struct DbUpdate { - ai_result_reference: __sdk::TableUpdate, - ai_task: __sdk::TableUpdate, - ai_task_stage: __sdk::TableUpdate, - ai_text_chunk: __sdk::TableUpdate, - asset_entity_binding: __sdk::TableUpdate, - asset_object: __sdk::TableUpdate, - auth_identity: __sdk::TableUpdate, - auth_store_snapshot: __sdk::TableUpdate, - battle_state: __sdk::TableUpdate, - big_fish_agent_message: __sdk::TableUpdate, - big_fish_asset_slot: __sdk::TableUpdate, - big_fish_creation_session: __sdk::TableUpdate, - big_fish_runtime_run: __sdk::TableUpdate, - chapter_progression: __sdk::TableUpdate, - custom_world_agent_message: __sdk::TableUpdate, - custom_world_agent_operation: __sdk::TableUpdate, - custom_world_agent_session: __sdk::TableUpdate, - custom_world_draft_card: __sdk::TableUpdate, custom_world_gallery_entry: __sdk::TableUpdate, - custom_world_profile: __sdk::TableUpdate, - custom_world_session: __sdk::TableUpdate, - inventory_slot: __sdk::TableUpdate, - npc_state: __sdk::TableUpdate, - player_progression: __sdk::TableUpdate, - profile_dashboard_state: __sdk::TableUpdate, - profile_invite_code: __sdk::TableUpdate, - profile_membership: __sdk::TableUpdate, - profile_played_world: __sdk::TableUpdate, - profile_recharge_order: __sdk::TableUpdate, - profile_referral_relation: __sdk::TableUpdate, - profile_save_archive: __sdk::TableUpdate, - profile_wallet_ledger: __sdk::TableUpdate, - puzzle_agent_message: __sdk::TableUpdate, - puzzle_agent_session: __sdk::TableUpdate, - puzzle_runtime_run: __sdk::TableUpdate, - puzzle_work_profile: __sdk::TableUpdate, - quest_log: __sdk::TableUpdate, - quest_record: __sdk::TableUpdate, - refresh_session: __sdk::TableUpdate, - runtime_setting: __sdk::TableUpdate, - runtime_snapshot: __sdk::TableUpdate, - story_event: __sdk::TableUpdate, - story_session: __sdk::TableUpdate, - treasure_record: __sdk::TableUpdate, - user_account: __sdk::TableUpdate, - user_browse_history: __sdk::TableUpdate, } - impl TryFrom<__ws::v2::TransactionUpdate> for DbUpdate { type Error = __sdk::Error; fn try_from(raw: __ws::v2::TransactionUpdate) -> Result { let mut db_update = DbUpdate::default(); for table_update in __sdk::transaction_update_iter_table_updates(raw) { match &table_update.table_name[..] { - - "ai_result_reference" => db_update.ai_result_reference.append(ai_result_reference_table::parse_table_update(table_update)?), - "ai_task" => db_update.ai_task.append(ai_task_table::parse_table_update(table_update)?), - "ai_task_stage" => db_update.ai_task_stage.append(ai_task_stage_table::parse_table_update(table_update)?), - "ai_text_chunk" => db_update.ai_text_chunk.append(ai_text_chunk_table::parse_table_update(table_update)?), - "asset_entity_binding" => db_update.asset_entity_binding.append(asset_entity_binding_table::parse_table_update(table_update)?), - "asset_object" => db_update.asset_object.append(asset_object_table::parse_table_update(table_update)?), - "auth_identity" => db_update.auth_identity.append(auth_identity_table::parse_table_update(table_update)?), - "auth_store_snapshot" => db_update.auth_store_snapshot.append(auth_store_snapshot_table::parse_table_update(table_update)?), - "battle_state" => db_update.battle_state.append(battle_state_table::parse_table_update(table_update)?), - "big_fish_agent_message" => db_update.big_fish_agent_message.append(big_fish_agent_message_table::parse_table_update(table_update)?), - "big_fish_asset_slot" => db_update.big_fish_asset_slot.append(big_fish_asset_slot_table::parse_table_update(table_update)?), - "big_fish_creation_session" => db_update.big_fish_creation_session.append(big_fish_creation_session_table::parse_table_update(table_update)?), - "big_fish_runtime_run" => db_update.big_fish_runtime_run.append(big_fish_runtime_run_table::parse_table_update(table_update)?), - "chapter_progression" => db_update.chapter_progression.append(chapter_progression_table::parse_table_update(table_update)?), - "custom_world_agent_message" => db_update.custom_world_agent_message.append(custom_world_agent_message_table::parse_table_update(table_update)?), - "custom_world_agent_operation" => db_update.custom_world_agent_operation.append(custom_world_agent_operation_table::parse_table_update(table_update)?), - "custom_world_agent_session" => db_update.custom_world_agent_session.append(custom_world_agent_session_table::parse_table_update(table_update)?), - "custom_world_draft_card" => db_update.custom_world_draft_card.append(custom_world_draft_card_table::parse_table_update(table_update)?), - "custom_world_gallery_entry" => db_update.custom_world_gallery_entry.append(custom_world_gallery_entry_table::parse_table_update(table_update)?), - "custom_world_profile" => db_update.custom_world_profile.append(custom_world_profile_table::parse_table_update(table_update)?), - "custom_world_session" => db_update.custom_world_session.append(custom_world_session_table::parse_table_update(table_update)?), - "inventory_slot" => db_update.inventory_slot.append(inventory_slot_table::parse_table_update(table_update)?), - "npc_state" => db_update.npc_state.append(npc_state_table::parse_table_update(table_update)?), - "player_progression" => db_update.player_progression.append(player_progression_table::parse_table_update(table_update)?), - "profile_dashboard_state" => db_update.profile_dashboard_state.append(profile_dashboard_state_table::parse_table_update(table_update)?), - "profile_invite_code" => db_update.profile_invite_code.append(profile_invite_code_table::parse_table_update(table_update)?), - "profile_membership" => db_update.profile_membership.append(profile_membership_table::parse_table_update(table_update)?), - "profile_played_world" => db_update.profile_played_world.append(profile_played_world_table::parse_table_update(table_update)?), - "profile_recharge_order" => db_update.profile_recharge_order.append(profile_recharge_order_table::parse_table_update(table_update)?), - "profile_referral_relation" => db_update.profile_referral_relation.append(profile_referral_relation_table::parse_table_update(table_update)?), - "profile_save_archive" => db_update.profile_save_archive.append(profile_save_archive_table::parse_table_update(table_update)?), - "profile_wallet_ledger" => db_update.profile_wallet_ledger.append(profile_wallet_ledger_table::parse_table_update(table_update)?), - "puzzle_agent_message" => db_update.puzzle_agent_message.append(puzzle_agent_message_table::parse_table_update(table_update)?), - "puzzle_agent_session" => db_update.puzzle_agent_session.append(puzzle_agent_session_table::parse_table_update(table_update)?), - "puzzle_runtime_run" => db_update.puzzle_runtime_run.append(puzzle_runtime_run_table::parse_table_update(table_update)?), - "puzzle_work_profile" => db_update.puzzle_work_profile.append(puzzle_work_profile_table::parse_table_update(table_update)?), - "quest_log" => db_update.quest_log.append(quest_log_table::parse_table_update(table_update)?), - "quest_record" => db_update.quest_record.append(quest_record_table::parse_table_update(table_update)?), - "refresh_session" => db_update.refresh_session.append(refresh_session_table::parse_table_update(table_update)?), - "runtime_setting" => db_update.runtime_setting.append(runtime_setting_table::parse_table_update(table_update)?), - "runtime_snapshot" => db_update.runtime_snapshot.append(runtime_snapshot_table::parse_table_update(table_update)?), - "story_event" => db_update.story_event.append(story_event_table::parse_table_update(table_update)?), - "story_session" => db_update.story_session.append(story_session_table::parse_table_update(table_update)?), - "treasure_record" => db_update.treasure_record.append(treasure_record_table::parse_table_update(table_update)?), - "user_account" => db_update.user_account.append(user_account_table::parse_table_update(table_update)?), - "user_browse_history" => db_update.user_browse_history.append(user_browse_history_table::parse_table_update(table_update)?), + "custom_world_gallery_entry" => db_update.custom_world_gallery_entry.append( + custom_world_gallery_entry_table::parse_table_update(table_update)?, + ), unknown => { return Err(__sdk::InternalError::unknown_name( "table", unknown, "DatabaseUpdate", - ).into()); + ) + .into()); } } } @@ -1385,275 +1204,80 @@ impl __sdk::InModule for DbUpdate { } impl __sdk::DbUpdate for DbUpdate { - fn apply_to_client_cache(&self, cache: &mut __sdk::ClientCache) -> AppliedDiff<'_> { - let mut diff = AppliedDiff::default(); - - diff.ai_result_reference = cache.apply_diff_to_table::("ai_result_reference", &self.ai_result_reference).with_updates_by_pk(|row| &row.result_reference_row_id); - diff.ai_task = cache.apply_diff_to_table::("ai_task", &self.ai_task).with_updates_by_pk(|row| &row.task_id); - diff.ai_task_stage = cache.apply_diff_to_table::("ai_task_stage", &self.ai_task_stage).with_updates_by_pk(|row| &row.task_stage_id); - diff.ai_text_chunk = cache.apply_diff_to_table::("ai_text_chunk", &self.ai_text_chunk).with_updates_by_pk(|row| &row.text_chunk_row_id); - diff.asset_entity_binding = cache.apply_diff_to_table::("asset_entity_binding", &self.asset_entity_binding).with_updates_by_pk(|row| &row.binding_id); - diff.asset_object = cache.apply_diff_to_table::("asset_object", &self.asset_object).with_updates_by_pk(|row| &row.asset_object_id); - diff.auth_identity = cache.apply_diff_to_table::("auth_identity", &self.auth_identity).with_updates_by_pk(|row| &row.identity_id); - diff.auth_store_snapshot = cache.apply_diff_to_table::("auth_store_snapshot", &self.auth_store_snapshot).with_updates_by_pk(|row| &row.snapshot_id); - diff.battle_state = cache.apply_diff_to_table::("battle_state", &self.battle_state).with_updates_by_pk(|row| &row.battle_state_id); - diff.big_fish_agent_message = cache.apply_diff_to_table::("big_fish_agent_message", &self.big_fish_agent_message).with_updates_by_pk(|row| &row.message_id); - diff.big_fish_asset_slot = cache.apply_diff_to_table::("big_fish_asset_slot", &self.big_fish_asset_slot).with_updates_by_pk(|row| &row.slot_id); - diff.big_fish_creation_session = cache.apply_diff_to_table::("big_fish_creation_session", &self.big_fish_creation_session).with_updates_by_pk(|row| &row.session_id); - diff.big_fish_runtime_run = cache.apply_diff_to_table::("big_fish_runtime_run", &self.big_fish_runtime_run).with_updates_by_pk(|row| &row.run_id); - diff.chapter_progression = cache.apply_diff_to_table::("chapter_progression", &self.chapter_progression).with_updates_by_pk(|row| &row.chapter_progression_id); - diff.custom_world_agent_message = cache.apply_diff_to_table::("custom_world_agent_message", &self.custom_world_agent_message).with_updates_by_pk(|row| &row.message_id); - diff.custom_world_agent_operation = cache.apply_diff_to_table::("custom_world_agent_operation", &self.custom_world_agent_operation).with_updates_by_pk(|row| &row.operation_id); - diff.custom_world_agent_session = cache.apply_diff_to_table::("custom_world_agent_session", &self.custom_world_agent_session).with_updates_by_pk(|row| &row.session_id); - diff.custom_world_draft_card = cache.apply_diff_to_table::("custom_world_draft_card", &self.custom_world_draft_card).with_updates_by_pk(|row| &row.card_id); - diff.custom_world_gallery_entry = cache.apply_diff_to_table::("custom_world_gallery_entry", &self.custom_world_gallery_entry).with_updates_by_pk(|row| &row.profile_id); - diff.custom_world_profile = cache.apply_diff_to_table::("custom_world_profile", &self.custom_world_profile).with_updates_by_pk(|row| &row.profile_id); - diff.custom_world_session = cache.apply_diff_to_table::("custom_world_session", &self.custom_world_session).with_updates_by_pk(|row| &row.session_id); - diff.inventory_slot = cache.apply_diff_to_table::("inventory_slot", &self.inventory_slot).with_updates_by_pk(|row| &row.slot_id); - diff.npc_state = cache.apply_diff_to_table::("npc_state", &self.npc_state).with_updates_by_pk(|row| &row.npc_state_id); - diff.player_progression = cache.apply_diff_to_table::("player_progression", &self.player_progression).with_updates_by_pk(|row| &row.user_id); - diff.profile_dashboard_state = cache.apply_diff_to_table::("profile_dashboard_state", &self.profile_dashboard_state).with_updates_by_pk(|row| &row.user_id); - diff.profile_invite_code = cache.apply_diff_to_table::("profile_invite_code", &self.profile_invite_code).with_updates_by_pk(|row| &row.user_id); - diff.profile_membership = cache.apply_diff_to_table::("profile_membership", &self.profile_membership).with_updates_by_pk(|row| &row.user_id); - diff.profile_played_world = cache.apply_diff_to_table::("profile_played_world", &self.profile_played_world).with_updates_by_pk(|row| &row.played_world_id); - diff.profile_recharge_order = cache.apply_diff_to_table::("profile_recharge_order", &self.profile_recharge_order).with_updates_by_pk(|row| &row.order_id); - diff.profile_referral_relation = cache.apply_diff_to_table::("profile_referral_relation", &self.profile_referral_relation).with_updates_by_pk(|row| &row.invitee_user_id); - diff.profile_save_archive = cache.apply_diff_to_table::("profile_save_archive", &self.profile_save_archive).with_updates_by_pk(|row| &row.archive_id); - diff.profile_wallet_ledger = cache.apply_diff_to_table::("profile_wallet_ledger", &self.profile_wallet_ledger).with_updates_by_pk(|row| &row.wallet_ledger_id); - diff.puzzle_agent_message = cache.apply_diff_to_table::("puzzle_agent_message", &self.puzzle_agent_message).with_updates_by_pk(|row| &row.message_id); - diff.puzzle_agent_session = cache.apply_diff_to_table::("puzzle_agent_session", &self.puzzle_agent_session).with_updates_by_pk(|row| &row.session_id); - diff.puzzle_runtime_run = cache.apply_diff_to_table::("puzzle_runtime_run", &self.puzzle_runtime_run).with_updates_by_pk(|row| &row.run_id); - diff.puzzle_work_profile = cache.apply_diff_to_table::("puzzle_work_profile", &self.puzzle_work_profile).with_updates_by_pk(|row| &row.profile_id); - diff.quest_log = cache.apply_diff_to_table::("quest_log", &self.quest_log).with_updates_by_pk(|row| &row.log_id); - diff.quest_record = cache.apply_diff_to_table::("quest_record", &self.quest_record).with_updates_by_pk(|row| &row.quest_id); - diff.refresh_session = cache.apply_diff_to_table::("refresh_session", &self.refresh_session).with_updates_by_pk(|row| &row.session_id); - diff.runtime_setting = cache.apply_diff_to_table::("runtime_setting", &self.runtime_setting).with_updates_by_pk(|row| &row.user_id); - diff.runtime_snapshot = cache.apply_diff_to_table::("runtime_snapshot", &self.runtime_snapshot).with_updates_by_pk(|row| &row.user_id); - diff.story_event = cache.apply_diff_to_table::("story_event", &self.story_event).with_updates_by_pk(|row| &row.event_id); - diff.story_session = cache.apply_diff_to_table::("story_session", &self.story_session).with_updates_by_pk(|row| &row.story_session_id); - diff.treasure_record = cache.apply_diff_to_table::("treasure_record", &self.treasure_record).with_updates_by_pk(|row| &row.treasure_record_id); - diff.user_account = cache.apply_diff_to_table::("user_account", &self.user_account).with_updates_by_pk(|row| &row.user_id); - diff.user_browse_history = cache.apply_diff_to_table::("user_browse_history", &self.user_browse_history).with_updates_by_pk(|row| &row.browse_history_id); + fn apply_to_client_cache( + &self, + cache: &mut __sdk::ClientCache, + ) -> AppliedDiff<'_> { + let mut diff = AppliedDiff::default(); - diff + diff.custom_world_gallery_entry = cache + .apply_diff_to_table::( + "custom_world_gallery_entry", + &self.custom_world_gallery_entry, + ) + .with_updates_by_pk(|row| &row.profile_id); + + diff + } + fn parse_initial_rows(raw: __ws::v2::QueryRows) -> __sdk::Result { + let mut db_update = DbUpdate::default(); + for table_rows in raw.tables { + match &table_rows.table[..] { + "custom_world_gallery_entry" => db_update + .custom_world_gallery_entry + .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), + unknown => { + return Err( + __sdk::InternalError::unknown_name("table", unknown, "QueryRows").into(), + ); } -fn parse_initial_rows(raw: __ws::v2::QueryRows) -> __sdk::Result { - let mut db_update = DbUpdate::default(); -for table_rows in raw.tables { + } + } + Ok(db_update) + } + fn parse_unsubscribe_rows(raw: __ws::v2::QueryRows) -> __sdk::Result { + let mut db_update = DbUpdate::default(); + for table_rows in raw.tables { match &table_rows.table[..] { - "ai_result_reference" => db_update.ai_result_reference.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "ai_task" => db_update.ai_task.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "ai_task_stage" => db_update.ai_task_stage.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "ai_text_chunk" => db_update.ai_text_chunk.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "asset_entity_binding" => db_update.asset_entity_binding.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "asset_object" => db_update.asset_object.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "auth_identity" => db_update.auth_identity.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "auth_store_snapshot" => db_update.auth_store_snapshot.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "battle_state" => db_update.battle_state.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "big_fish_agent_message" => db_update.big_fish_agent_message.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "big_fish_asset_slot" => db_update.big_fish_asset_slot.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "big_fish_creation_session" => db_update.big_fish_creation_session.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "big_fish_runtime_run" => db_update.big_fish_runtime_run.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "chapter_progression" => db_update.chapter_progression.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "custom_world_agent_message" => db_update.custom_world_agent_message.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "custom_world_agent_operation" => db_update.custom_world_agent_operation.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "custom_world_agent_session" => db_update.custom_world_agent_session.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "custom_world_draft_card" => db_update.custom_world_draft_card.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "custom_world_gallery_entry" => db_update.custom_world_gallery_entry.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "custom_world_profile" => db_update.custom_world_profile.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "custom_world_session" => db_update.custom_world_session.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "inventory_slot" => db_update.inventory_slot.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "npc_state" => db_update.npc_state.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "player_progression" => db_update.player_progression.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "profile_dashboard_state" => db_update.profile_dashboard_state.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "profile_invite_code" => db_update.profile_invite_code.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "profile_membership" => db_update.profile_membership.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "profile_played_world" => db_update.profile_played_world.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "profile_recharge_order" => db_update.profile_recharge_order.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "profile_referral_relation" => db_update.profile_referral_relation.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "profile_save_archive" => db_update.profile_save_archive.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "profile_wallet_ledger" => db_update.profile_wallet_ledger.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "puzzle_agent_message" => db_update.puzzle_agent_message.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "puzzle_agent_session" => db_update.puzzle_agent_session.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "puzzle_runtime_run" => db_update.puzzle_runtime_run.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "puzzle_work_profile" => db_update.puzzle_work_profile.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "quest_log" => db_update.quest_log.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "quest_record" => db_update.quest_record.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "refresh_session" => db_update.refresh_session.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "runtime_setting" => db_update.runtime_setting.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "runtime_snapshot" => db_update.runtime_snapshot.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "story_event" => db_update.story_event.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "story_session" => db_update.story_session.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "treasure_record" => db_update.treasure_record.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "user_account" => db_update.user_account.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "user_browse_history" => db_update.user_browse_history.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - unknown => { return Err(__sdk::InternalError::unknown_name("table", unknown, "QueryRows").into()); } -}} Ok(db_update) -} -fn parse_unsubscribe_rows(raw: __ws::v2::QueryRows) -> __sdk::Result { - let mut db_update = DbUpdate::default(); -for table_rows in raw.tables { - match &table_rows.table[..] { - "ai_result_reference" => db_update.ai_result_reference.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "ai_task" => db_update.ai_task.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "ai_task_stage" => db_update.ai_task_stage.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "ai_text_chunk" => db_update.ai_text_chunk.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "asset_entity_binding" => db_update.asset_entity_binding.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "asset_object" => db_update.asset_object.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "auth_identity" => db_update.auth_identity.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "auth_store_snapshot" => db_update.auth_store_snapshot.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "battle_state" => db_update.battle_state.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "big_fish_agent_message" => db_update.big_fish_agent_message.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "big_fish_asset_slot" => db_update.big_fish_asset_slot.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "big_fish_creation_session" => db_update.big_fish_creation_session.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "big_fish_runtime_run" => db_update.big_fish_runtime_run.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "chapter_progression" => db_update.chapter_progression.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "custom_world_agent_message" => db_update.custom_world_agent_message.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "custom_world_agent_operation" => db_update.custom_world_agent_operation.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "custom_world_agent_session" => db_update.custom_world_agent_session.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "custom_world_draft_card" => db_update.custom_world_draft_card.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "custom_world_gallery_entry" => db_update.custom_world_gallery_entry.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "custom_world_profile" => db_update.custom_world_profile.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "custom_world_session" => db_update.custom_world_session.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "inventory_slot" => db_update.inventory_slot.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "npc_state" => db_update.npc_state.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "player_progression" => db_update.player_progression.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "profile_dashboard_state" => db_update.profile_dashboard_state.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "profile_invite_code" => db_update.profile_invite_code.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "profile_membership" => db_update.profile_membership.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "profile_played_world" => db_update.profile_played_world.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "profile_recharge_order" => db_update.profile_recharge_order.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "profile_referral_relation" => db_update.profile_referral_relation.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "profile_save_archive" => db_update.profile_save_archive.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "profile_wallet_ledger" => db_update.profile_wallet_ledger.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "puzzle_agent_message" => db_update.puzzle_agent_message.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "puzzle_agent_session" => db_update.puzzle_agent_session.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "puzzle_runtime_run" => db_update.puzzle_runtime_run.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "puzzle_work_profile" => db_update.puzzle_work_profile.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "quest_log" => db_update.quest_log.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "quest_record" => db_update.quest_record.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "refresh_session" => db_update.refresh_session.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "runtime_setting" => db_update.runtime_setting.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "runtime_snapshot" => db_update.runtime_snapshot.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "story_event" => db_update.story_event.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "story_session" => db_update.story_session.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "treasure_record" => db_update.treasure_record.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "user_account" => db_update.user_account.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "user_browse_history" => db_update.user_browse_history.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - unknown => { return Err(__sdk::InternalError::unknown_name("table", unknown, "QueryRows").into()); } -}} Ok(db_update) -} + "custom_world_gallery_entry" => db_update + .custom_world_gallery_entry + .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), + unknown => { + return Err( + __sdk::InternalError::unknown_name("table", unknown, "QueryRows").into(), + ); + } + } + } + Ok(db_update) + } } #[derive(Default)] #[allow(non_snake_case)] #[doc(hidden)] pub struct AppliedDiff<'r> { - ai_result_reference: __sdk::TableAppliedDiff<'r, AiResultReference>, - ai_task: __sdk::TableAppliedDiff<'r, AiTask>, - ai_task_stage: __sdk::TableAppliedDiff<'r, AiTaskStage>, - ai_text_chunk: __sdk::TableAppliedDiff<'r, AiTextChunk>, - asset_entity_binding: __sdk::TableAppliedDiff<'r, AssetEntityBinding>, - asset_object: __sdk::TableAppliedDiff<'r, AssetObject>, - auth_identity: __sdk::TableAppliedDiff<'r, AuthIdentity>, - auth_store_snapshot: __sdk::TableAppliedDiff<'r, AuthStoreSnapshot>, - battle_state: __sdk::TableAppliedDiff<'r, BattleState>, - big_fish_agent_message: __sdk::TableAppliedDiff<'r, BigFishAgentMessage>, - big_fish_asset_slot: __sdk::TableAppliedDiff<'r, BigFishAssetSlot>, - big_fish_creation_session: __sdk::TableAppliedDiff<'r, BigFishCreationSession>, - big_fish_runtime_run: __sdk::TableAppliedDiff<'r, BigFishRuntimeRun>, - chapter_progression: __sdk::TableAppliedDiff<'r, ChapterProgression>, - custom_world_agent_message: __sdk::TableAppliedDiff<'r, CustomWorldAgentMessage>, - custom_world_agent_operation: __sdk::TableAppliedDiff<'r, CustomWorldAgentOperation>, - custom_world_agent_session: __sdk::TableAppliedDiff<'r, CustomWorldAgentSession>, - custom_world_draft_card: __sdk::TableAppliedDiff<'r, CustomWorldDraftCard>, custom_world_gallery_entry: __sdk::TableAppliedDiff<'r, CustomWorldGalleryEntry>, - custom_world_profile: __sdk::TableAppliedDiff<'r, CustomWorldProfile>, - custom_world_session: __sdk::TableAppliedDiff<'r, CustomWorldSession>, - inventory_slot: __sdk::TableAppliedDiff<'r, InventorySlot>, - npc_state: __sdk::TableAppliedDiff<'r, NpcState>, - player_progression: __sdk::TableAppliedDiff<'r, PlayerProgression>, - profile_dashboard_state: __sdk::TableAppliedDiff<'r, ProfileDashboardState>, - profile_invite_code: __sdk::TableAppliedDiff<'r, ProfileInviteCode>, - profile_membership: __sdk::TableAppliedDiff<'r, ProfileMembership>, - profile_played_world: __sdk::TableAppliedDiff<'r, ProfilePlayedWorld>, - profile_recharge_order: __sdk::TableAppliedDiff<'r, ProfileRechargeOrder>, - profile_referral_relation: __sdk::TableAppliedDiff<'r, ProfileReferralRelation>, - profile_save_archive: __sdk::TableAppliedDiff<'r, ProfileSaveArchive>, - profile_wallet_ledger: __sdk::TableAppliedDiff<'r, ProfileWalletLedger>, - puzzle_agent_message: __sdk::TableAppliedDiff<'r, PuzzleAgentMessageRow>, - puzzle_agent_session: __sdk::TableAppliedDiff<'r, PuzzleAgentSessionRow>, - puzzle_runtime_run: __sdk::TableAppliedDiff<'r, PuzzleRuntimeRunRow>, - puzzle_work_profile: __sdk::TableAppliedDiff<'r, PuzzleWorkProfileRow>, - quest_log: __sdk::TableAppliedDiff<'r, QuestLog>, - quest_record: __sdk::TableAppliedDiff<'r, QuestRecord>, - refresh_session: __sdk::TableAppliedDiff<'r, RefreshSession>, - runtime_setting: __sdk::TableAppliedDiff<'r, RuntimeSetting>, - runtime_snapshot: __sdk::TableAppliedDiff<'r, RuntimeSnapshotRow>, - story_event: __sdk::TableAppliedDiff<'r, StoryEvent>, - story_session: __sdk::TableAppliedDiff<'r, StorySession>, - treasure_record: __sdk::TableAppliedDiff<'r, TreasureRecord>, - user_account: __sdk::TableAppliedDiff<'r, UserAccount>, - user_browse_history: __sdk::TableAppliedDiff<'r, UserBrowseHistory>, __unused: std::marker::PhantomData<&'r ()>, } - impl __sdk::InModule for AppliedDiff<'_> { type Module = RemoteModule; } impl<'r> __sdk::AppliedDiff<'r> for AppliedDiff<'r> { - fn invoke_row_callbacks(&self, event: &EventContext, callbacks: &mut __sdk::DbCallbacks) { - callbacks.invoke_table_row_callbacks::("ai_result_reference", &self.ai_result_reference, event); - callbacks.invoke_table_row_callbacks::("ai_task", &self.ai_task, event); - callbacks.invoke_table_row_callbacks::("ai_task_stage", &self.ai_task_stage, event); - callbacks.invoke_table_row_callbacks::("ai_text_chunk", &self.ai_text_chunk, event); - callbacks.invoke_table_row_callbacks::("asset_entity_binding", &self.asset_entity_binding, event); - callbacks.invoke_table_row_callbacks::("asset_object", &self.asset_object, event); - callbacks.invoke_table_row_callbacks::("auth_identity", &self.auth_identity, event); - callbacks.invoke_table_row_callbacks::("auth_store_snapshot", &self.auth_store_snapshot, event); - callbacks.invoke_table_row_callbacks::("battle_state", &self.battle_state, event); - callbacks.invoke_table_row_callbacks::("big_fish_agent_message", &self.big_fish_agent_message, event); - callbacks.invoke_table_row_callbacks::("big_fish_asset_slot", &self.big_fish_asset_slot, event); - callbacks.invoke_table_row_callbacks::("big_fish_creation_session", &self.big_fish_creation_session, event); - callbacks.invoke_table_row_callbacks::("big_fish_runtime_run", &self.big_fish_runtime_run, event); - callbacks.invoke_table_row_callbacks::("chapter_progression", &self.chapter_progression, event); - callbacks.invoke_table_row_callbacks::("custom_world_agent_message", &self.custom_world_agent_message, event); - callbacks.invoke_table_row_callbacks::("custom_world_agent_operation", &self.custom_world_agent_operation, event); - callbacks.invoke_table_row_callbacks::("custom_world_agent_session", &self.custom_world_agent_session, event); - callbacks.invoke_table_row_callbacks::("custom_world_draft_card", &self.custom_world_draft_card, event); - callbacks.invoke_table_row_callbacks::("custom_world_gallery_entry", &self.custom_world_gallery_entry, event); - callbacks.invoke_table_row_callbacks::("custom_world_profile", &self.custom_world_profile, event); - callbacks.invoke_table_row_callbacks::("custom_world_session", &self.custom_world_session, event); - callbacks.invoke_table_row_callbacks::("inventory_slot", &self.inventory_slot, event); - callbacks.invoke_table_row_callbacks::("npc_state", &self.npc_state, event); - callbacks.invoke_table_row_callbacks::("player_progression", &self.player_progression, event); - callbacks.invoke_table_row_callbacks::("profile_dashboard_state", &self.profile_dashboard_state, event); - callbacks.invoke_table_row_callbacks::("profile_invite_code", &self.profile_invite_code, event); - callbacks.invoke_table_row_callbacks::("profile_membership", &self.profile_membership, event); - callbacks.invoke_table_row_callbacks::("profile_played_world", &self.profile_played_world, event); - callbacks.invoke_table_row_callbacks::("profile_recharge_order", &self.profile_recharge_order, event); - callbacks.invoke_table_row_callbacks::("profile_referral_relation", &self.profile_referral_relation, event); - callbacks.invoke_table_row_callbacks::("profile_save_archive", &self.profile_save_archive, event); - callbacks.invoke_table_row_callbacks::("profile_wallet_ledger", &self.profile_wallet_ledger, event); - callbacks.invoke_table_row_callbacks::("puzzle_agent_message", &self.puzzle_agent_message, event); - callbacks.invoke_table_row_callbacks::("puzzle_agent_session", &self.puzzle_agent_session, event); - callbacks.invoke_table_row_callbacks::("puzzle_runtime_run", &self.puzzle_runtime_run, event); - callbacks.invoke_table_row_callbacks::("puzzle_work_profile", &self.puzzle_work_profile, event); - callbacks.invoke_table_row_callbacks::("quest_log", &self.quest_log, event); - callbacks.invoke_table_row_callbacks::("quest_record", &self.quest_record, event); - callbacks.invoke_table_row_callbacks::("refresh_session", &self.refresh_session, event); - callbacks.invoke_table_row_callbacks::("runtime_setting", &self.runtime_setting, event); - callbacks.invoke_table_row_callbacks::("runtime_snapshot", &self.runtime_snapshot, event); - callbacks.invoke_table_row_callbacks::("story_event", &self.story_event, event); - callbacks.invoke_table_row_callbacks::("story_session", &self.story_session, event); - callbacks.invoke_table_row_callbacks::("treasure_record", &self.treasure_record, event); - callbacks.invoke_table_row_callbacks::("user_account", &self.user_account, event); - callbacks.invoke_table_row_callbacks::("user_browse_history", &self.user_browse_history, event); + fn invoke_row_callbacks( + &self, + event: &EventContext, + callbacks: &mut __sdk::DbCallbacks, + ) { + callbacks.invoke_table_row_callbacks::( + "custom_world_gallery_entry", + &self.custom_world_gallery_entry, + event, + ); + } } -} - #[doc(hidden)] #[derive(Debug)] @@ -1702,10 +1326,16 @@ impl __sdk::InModule for RemoteTables { /// /// - [`DbConnection::frame_tick`]. #[cfg_attr(not(target_arch = "wasm32"), doc = "- [`DbConnection::run_threaded`].")] -#[cfg_attr(target_arch = "wasm32", doc = "- [`DbConnection::run_background_task`].")] +#[cfg_attr( + target_arch = "wasm32", + doc = "- [`DbConnection::run_background_task`]." +)] /// - [`DbConnection::run_async`]. /// - [`DbConnection::advance_one_message`]. -#[cfg_attr(not(target_arch = "wasm32"), doc = "- [`DbConnection::advance_one_message_blocking`].")] +#[cfg_attr( + not(target_arch = "wasm32"), + doc = "- [`DbConnection::advance_one_message_blocking`]." +)] /// - [`DbConnection::advance_one_message_async`]. /// /// Which of these methods you should call depends on the specific needs of your application, @@ -1892,7 +1522,6 @@ impl __sdk::SubscriptionHandle for SubscriptionHandle { fn unsubscribe(self) -> __sdk::Result<()> { self.imp.unsubscribe_then(None) } - } /// Alias trait for a [`__sdk::DbContext`] connected to this module, @@ -1900,17 +1529,23 @@ impl __sdk::SubscriptionHandle for SubscriptionHandle { /// /// Users can use this trait as a boundary on definitions which should accept /// either a [`DbConnection`] or an [`EventContext`] and operate on either. -pub trait RemoteDbContext: __sdk::DbContext< +pub trait RemoteDbContext: + __sdk::DbContext< DbView = RemoteTables, Reducers = RemoteReducers, SubscriptionBuilder = __sdk::SubscriptionBuilder, -> {} -impl, ->> RemoteDbContext for Ctx {} - +> +{ +} +impl< + Ctx: __sdk::DbContext< + DbView = RemoteTables, + Reducers = RemoteReducers, + SubscriptionBuilder = __sdk::SubscriptionBuilder, + >, + > RemoteDbContext for Ctx +{ +} /// An [`__sdk::DbContext`] augmented with a [`__sdk::Event`], /// passed to [`__sdk::Table::on_insert`], [`__sdk::Table::on_delete`] and [`__sdk::TableWithPrimaryKey::on_update`] callbacks. @@ -2285,7 +1920,6 @@ impl __sdk::DbContext for ErrorContext { impl __sdk::ErrorContext for ErrorContext {} impl __sdk::SpacetimeModule for RemoteModule { - type DbConnection = DbConnection; type EventContext = EventContext; type ReducerEventContext = ReducerEventContext; @@ -2301,100 +1935,8 @@ impl __sdk::SpacetimeModule for RemoteModule { type SubscriptionHandle = SubscriptionHandle; type QueryBuilder = __sdk::QueryBuilder; -fn register_tables(client_cache: &mut __sdk::ClientCache) { - ai_result_reference_table::register_table(client_cache); - ai_task_table::register_table(client_cache); - ai_task_stage_table::register_table(client_cache); - ai_text_chunk_table::register_table(client_cache); - asset_entity_binding_table::register_table(client_cache); - asset_object_table::register_table(client_cache); - auth_identity_table::register_table(client_cache); - auth_store_snapshot_table::register_table(client_cache); - battle_state_table::register_table(client_cache); - big_fish_agent_message_table::register_table(client_cache); - big_fish_asset_slot_table::register_table(client_cache); - big_fish_creation_session_table::register_table(client_cache); - big_fish_runtime_run_table::register_table(client_cache); - chapter_progression_table::register_table(client_cache); - custom_world_agent_message_table::register_table(client_cache); - custom_world_agent_operation_table::register_table(client_cache); - custom_world_agent_session_table::register_table(client_cache); - custom_world_draft_card_table::register_table(client_cache); + fn register_tables(client_cache: &mut __sdk::ClientCache) { custom_world_gallery_entry_table::register_table(client_cache); - custom_world_profile_table::register_table(client_cache); - custom_world_session_table::register_table(client_cache); - inventory_slot_table::register_table(client_cache); - npc_state_table::register_table(client_cache); - player_progression_table::register_table(client_cache); - profile_dashboard_state_table::register_table(client_cache); - profile_invite_code_table::register_table(client_cache); - profile_membership_table::register_table(client_cache); - profile_played_world_table::register_table(client_cache); - profile_recharge_order_table::register_table(client_cache); - profile_referral_relation_table::register_table(client_cache); - profile_save_archive_table::register_table(client_cache); - profile_wallet_ledger_table::register_table(client_cache); - puzzle_agent_message_table::register_table(client_cache); - puzzle_agent_session_table::register_table(client_cache); - puzzle_runtime_run_table::register_table(client_cache); - puzzle_work_profile_table::register_table(client_cache); - quest_log_table::register_table(client_cache); - quest_record_table::register_table(client_cache); - refresh_session_table::register_table(client_cache); - runtime_setting_table::register_table(client_cache); - runtime_snapshot_table::register_table(client_cache); - story_event_table::register_table(client_cache); - story_session_table::register_table(client_cache); - treasure_record_table::register_table(client_cache); - user_account_table::register_table(client_cache); - user_browse_history_table::register_table(client_cache); -} -const ALL_TABLE_NAMES: &'static [&'static str] = &[ - "ai_result_reference", - "ai_task", - "ai_task_stage", - "ai_text_chunk", - "asset_entity_binding", - "asset_object", - "auth_identity", - "auth_store_snapshot", - "battle_state", - "big_fish_agent_message", - "big_fish_asset_slot", - "big_fish_creation_session", - "big_fish_runtime_run", - "chapter_progression", - "custom_world_agent_message", - "custom_world_agent_operation", - "custom_world_agent_session", - "custom_world_draft_card", - "custom_world_gallery_entry", - "custom_world_profile", - "custom_world_session", - "inventory_slot", - "npc_state", - "player_progression", - "profile_dashboard_state", - "profile_invite_code", - "profile_membership", - "profile_played_world", - "profile_recharge_order", - "profile_referral_relation", - "profile_save_archive", - "profile_wallet_ledger", - "puzzle_agent_message", - "puzzle_agent_session", - "puzzle_runtime_run", - "puzzle_work_profile", - "quest_log", - "quest_record", - "refresh_session", - "runtime_setting", - "runtime_snapshot", - "story_event", - "story_session", - "treasure_record", - "user_account", - "user_browse_history", -]; + } + const ALL_TABLE_NAMES: &'static [&'static str] = &["custom_world_gallery_entry"]; } 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 index 1682f3ac..d5f16a3f 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::npc_battle_interaction_result_type::NpcBattleInteractionResult; @@ -15,12 +10,10 @@ use super::npc_battle_interaction_result_type::NpcBattleInteractionResult; #[sats(crate = __lib)] pub struct NpcBattleInteractionProcedureResult { pub ok: bool, - pub result: Option::, - pub error_message: Option::, + 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 index fc8ca1c9..c276f969 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::battle_state_snapshot_type::BattleStateSnapshot; use super::npc_interaction_result_type::NpcInteractionResult; @@ -19,8 +14,6 @@ pub struct NpcBattleInteractionResult { 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 index e891d6a9..dc8e8819 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,12 +11,8 @@ 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 index ef11fa63..383dce2a 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::npc_interaction_result_type::NpcInteractionResult; @@ -15,12 +10,10 @@ use super::npc_interaction_result_type::NpcInteractionResult; #[sats(crate = __lib)] pub struct NpcInteractionProcedureResult { pub ok: bool, - pub result: Option::, - pub error_message: Option::, + 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 index d457b697..83624807 100644 --- 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 @@ -2,16 +2,11 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::npc_state_snapshot_type::NpcStateSnapshot; -use super::npc_interaction_status_type::NpcInteractionStatus; 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)] @@ -20,16 +15,14 @@ pub struct NpcInteractionResult { pub interaction_status: NpcInteractionStatus, pub action_text: String, pub result_text: String, - pub story_text: Option::, - pub battle_mode: Option::, + 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 index cba6b5ac..8032abf9 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -24,12 +19,8 @@ pub enum NpcInteractionStatus { BattlePending, Left, - } - - impl __sdk::InModule for NpcInteractionStatus { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/npc_relation_stance_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/npc_relation_stance_type.rs index 2a45f52c..48e8ac70 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/npc_relation_stance_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/npc_relation_stance_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -22,12 +17,8 @@ pub enum NpcRelationStance { Cooperative, Bonded, - } - - impl __sdk::InModule for NpcRelationStance { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/npc_relation_state_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/npc_relation_state_type.rs index cccb0cc5..b6bbc07d 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/npc_relation_state_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/npc_relation_state_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::npc_relation_stance_type::NpcRelationStance; @@ -18,8 +13,6 @@ pub struct NpcRelationState { pub stance: NpcRelationStance, } - impl __sdk::InModule for NpcRelationState { 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 index cc79b8c5..9c6d2c1e 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -22,12 +17,8 @@ pub enum NpcSocialActionKind { Recruit, QuestAccept, - } - - impl __sdk::InModule for NpcSocialActionKind { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/npc_stance_profile_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/npc_stance_profile_type.rs index 5a0d7497..73177673 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/npc_stance_profile_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/npc_stance_profile_type.rs @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -18,13 +12,11 @@ pub struct NpcStanceProfile { pub ideological_fit: u8, pub fear_or_guard: u8, pub loyalty: u8, - pub current_conflict_tag: Option::, - pub recent_approvals: Vec::, - pub recent_disapprovals: Vec::, + pub current_conflict_tag: Option, + pub recent_approvals: Vec, + pub recent_disapprovals: Vec, } - impl __sdk::InModule for NpcStanceProfile { 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 index 39a8ed60..c4e60bef 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::npc_state_snapshot_type::NpcStateSnapshot; @@ -15,12 +10,10 @@ use super::npc_state_snapshot_type::NpcStateSnapshot; #[sats(crate = __lib)] pub struct NpcStateProcedureResult { pub ok: bool, - pub record: Option::, - pub error_message: Option::, + 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 index c11e0ef8..351b45ae 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::npc_relation_state_type::NpcRelationState; use super::npc_stance_profile_type::NpcStanceProfile; @@ -25,18 +20,16 @@ pub struct NpcStateSnapshot { 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 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 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_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/npc_state_type.rs index 9e8f87ae..1ddeec42 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/npc_state_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/npc_state_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::npc_relation_state_type::NpcRelationState; use super::npc_stance_profile_type::NpcStanceProfile; @@ -25,22 +20,20 @@ pub struct NpcState { 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 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 seen_backstory_chapter_ids: Vec, pub stance_profile: NpcStanceProfile, pub created_at: __sdk::Timestamp, pub updated_at: __sdk::Timestamp, } - impl __sdk::InModule for NpcState { type Module = super::RemoteModule; } - /// Column accessor struct for the table `NpcState`. /// /// Provides typed access to columns for query building. @@ -55,11 +48,11 @@ pub struct NpcStateCols { pub chatted_count: __sdk::__query_builder::Col, pub gifts_given: __sdk::__query_builder::Col, pub recruited: __sdk::__query_builder::Col, - pub trade_stock_signature: __sdk::__query_builder::Col>, - pub revealed_facts: __sdk::__query_builder::Col>, - pub known_attribute_rumors: __sdk::__query_builder::Col>, + pub trade_stock_signature: __sdk::__query_builder::Col>, + pub revealed_facts: __sdk::__query_builder::Col>, + pub known_attribute_rumors: __sdk::__query_builder::Col>, pub first_meaningful_contact_resolved: __sdk::__query_builder::Col, - pub seen_backstory_chapter_ids: __sdk::__query_builder::Col>, + pub seen_backstory_chapter_ids: __sdk::__query_builder::Col>, pub stance_profile: __sdk::__query_builder::Col, pub created_at: __sdk::__query_builder::Col, pub updated_at: __sdk::__query_builder::Col, @@ -79,15 +72,26 @@ impl __sdk::__query_builder::HasCols for NpcState { chatted_count: __sdk::__query_builder::Col::new(table_name, "chatted_count"), gifts_given: __sdk::__query_builder::Col::new(table_name, "gifts_given"), recruited: __sdk::__query_builder::Col::new(table_name, "recruited"), - trade_stock_signature: __sdk::__query_builder::Col::new(table_name, "trade_stock_signature"), + trade_stock_signature: __sdk::__query_builder::Col::new( + table_name, + "trade_stock_signature", + ), revealed_facts: __sdk::__query_builder::Col::new(table_name, "revealed_facts"), - known_attribute_rumors: __sdk::__query_builder::Col::new(table_name, "known_attribute_rumors"), - first_meaningful_contact_resolved: __sdk::__query_builder::Col::new(table_name, "first_meaningful_contact_resolved"), - seen_backstory_chapter_ids: __sdk::__query_builder::Col::new(table_name, "seen_backstory_chapter_ids"), + known_attribute_rumors: __sdk::__query_builder::Col::new( + table_name, + "known_attribute_rumors", + ), + first_meaningful_contact_resolved: __sdk::__query_builder::Col::new( + table_name, + "first_meaningful_contact_resolved", + ), + seen_backstory_chapter_ids: __sdk::__query_builder::Col::new( + table_name, + "seen_backstory_chapter_ids", + ), stance_profile: __sdk::__query_builder::Col::new(table_name, "stance_profile"), created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"), - } } } @@ -107,11 +111,12 @@ impl __sdk::__query_builder::HasIxCols for NpcState { NpcStateIxCols { npc_id: __sdk::__query_builder::IxCol::new(table_name, "npc_id"), npc_state_id: __sdk::__query_builder::IxCol::new(table_name, "npc_state_id"), - runtime_session_id: __sdk::__query_builder::IxCol::new(table_name, "runtime_session_id"), - + runtime_session_id: __sdk::__query_builder::IxCol::new( + table_name, + "runtime_session_id", + ), } } } impl __sdk::__query_builder::CanBeLookupTable for NpcState {} - 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 index ff59315a..c31346e7 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::npc_stance_profile_type::NpcStanceProfile; @@ -22,17 +17,15 @@ pub struct NpcStateUpsertInput { 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 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 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 index eb031dc3..a4dd27f5 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,8 +10,6 @@ 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 index 66a8696c..b5761753 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::player_progression_grant_source_type::PlayerProgressionGrantSource; @@ -20,8 +15,6 @@ pub struct PlayerProgressionGrantInput { 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_grant_source_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/player_progression_grant_source_type.rs index c45b9dd6..bf3ae257 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/player_progression_grant_source_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/player_progression_grant_source_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,12 +11,8 @@ pub enum PlayerProgressionGrantSource { Quest, HostileNpc, - } - - impl __sdk::InModule for PlayerProgressionGrantSource { 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 index 0f3686ec..413c1208 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::player_progression_snapshot_type::PlayerProgressionSnapshot; @@ -15,12 +10,10 @@ use super::player_progression_snapshot_type::PlayerProgressionSnapshot; #[sats(crate = __lib)] pub struct PlayerProgressionProcedureResult { pub ok: bool, - pub record: Option::, - pub error_message: Option::, + 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 index 116938c5..1361178e 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::player_progression_grant_source_type::PlayerProgressionGrantSource; @@ -20,13 +15,11 @@ pub struct PlayerProgressionSnapshot { pub total_xp: u32, pub xp_to_next_level: u32, pub pending_level_ups: u32, - pub last_granted_source: Option::, + 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/player_progression_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/player_progression_type.rs index 04af99cc..c734d1c2 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/player_progression_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/player_progression_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::player_progression_grant_source_type::PlayerProgressionGrantSource; @@ -20,17 +15,15 @@ pub struct PlayerProgression { pub total_xp: u32, pub xp_to_next_level: u32, pub pending_level_ups: u32, - pub last_granted_source: Option::, + pub last_granted_source: Option, pub created_at: __sdk::Timestamp, pub updated_at: __sdk::Timestamp, } - impl __sdk::InModule for PlayerProgression { type Module = super::RemoteModule; } - /// Column accessor struct for the table `PlayerProgression`. /// /// Provides typed access to columns for query building. @@ -41,7 +34,8 @@ pub struct PlayerProgressionCols { pub total_xp: __sdk::__query_builder::Col, pub xp_to_next_level: __sdk::__query_builder::Col, pub pending_level_ups: __sdk::__query_builder::Col, - pub last_granted_source: __sdk::__query_builder::Col>, + pub last_granted_source: + __sdk::__query_builder::Col>, pub created_at: __sdk::__query_builder::Col, pub updated_at: __sdk::__query_builder::Col, } @@ -56,10 +50,12 @@ impl __sdk::__query_builder::HasCols for PlayerProgression { total_xp: __sdk::__query_builder::Col::new(table_name, "total_xp"), xp_to_next_level: __sdk::__query_builder::Col::new(table_name, "xp_to_next_level"), pending_level_ups: __sdk::__query_builder::Col::new(table_name, "pending_level_ups"), - last_granted_source: __sdk::__query_builder::Col::new(table_name, "last_granted_source"), + last_granted_source: __sdk::__query_builder::Col::new( + table_name, + "last_granted_source", + ), created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"), - } } } @@ -76,10 +72,8 @@ impl __sdk::__query_builder::HasIxCols for PlayerProgression { fn ix_cols(table_name: &'static str) -> Self::IxCols { PlayerProgressionIxCols { user_id: __sdk::__query_builder::IxCol::new(table_name, "user_id"), - } } } impl __sdk::__query_builder::CanBeLookupTable for PlayerProgression {} - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/profile_dashboard_state_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/profile_dashboard_state_type.rs index 3abd8b06..e5124048 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/profile_dashboard_state_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/profile_dashboard_state_type.rs @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -20,12 +14,10 @@ pub struct ProfileDashboardState { pub updated_at: __sdk::Timestamp, } - impl __sdk::InModule for ProfileDashboardState { type Module = super::RemoteModule; } - /// Column accessor struct for the table `ProfileDashboardState`. /// /// Provides typed access to columns for query building. @@ -46,7 +38,6 @@ impl __sdk::__query_builder::HasCols for ProfileDashboardState { total_play_time_ms: __sdk::__query_builder::Col::new(table_name, "total_play_time_ms"), created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"), - } } } @@ -63,10 +54,8 @@ impl __sdk::__query_builder::HasIxCols for ProfileDashboardState { fn ix_cols(table_name: &'static str) -> Self::IxCols { ProfileDashboardStateIxCols { user_id: __sdk::__query_builder::IxCol::new(table_name, "user_id"), - } } } impl __sdk::__query_builder::CanBeLookupTable for ProfileDashboardState {} - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/profile_invite_code_table.rs b/server-rs/crates/spacetime-client/src/module_bindings/profile_invite_code_table.rs deleted file mode 100644 index e1e342aa..00000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/profile_invite_code_table.rs +++ /dev/null @@ -1,194 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; -use super::profile_invite_code_type::ProfileInviteCode; - -/// Table handle for the table `profile_invite_code`. -/// -/// Obtain a handle from the [`ProfileInviteCodeTableAccess::profile_invite_code`] method on [`super::RemoteTables`], -/// like `ctx.db.profile_invite_code()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.profile_invite_code().on_insert(...)`. -pub struct ProfileInviteCodeTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `profile_invite_code`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait ProfileInviteCodeTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`ProfileInviteCodeTableHandle`], which mediates access to the table `profile_invite_code`. - fn profile_invite_code(&self) -> ProfileInviteCodeTableHandle<'_>; -} - -impl ProfileInviteCodeTableAccess for super::RemoteTables { - fn profile_invite_code(&self) -> ProfileInviteCodeTableHandle<'_> { - ProfileInviteCodeTableHandle { - imp: self.imp.get_table::("profile_invite_code"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct ProfileInviteCodeInsertCallbackId(__sdk::CallbackId); -pub struct ProfileInviteCodeDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::Table for ProfileInviteCodeTableHandle<'ctx> { - type Row = ProfileInviteCode; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { self.imp.count() } - fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } - - type InsertCallbackId = ProfileInviteCodeInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> ProfileInviteCodeInsertCallbackId { - ProfileInviteCodeInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: ProfileInviteCodeInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = ProfileInviteCodeDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> ProfileInviteCodeDeleteCallbackId { - ProfileInviteCodeDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: ProfileInviteCodeDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct ProfileInviteCodeUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for ProfileInviteCodeTableHandle<'ctx> { - type UpdateCallbackId = ProfileInviteCodeUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> ProfileInviteCodeUpdateCallbackId { - ProfileInviteCodeUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: ProfileInviteCodeUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - - /// Access to the `user_id` unique index on the table `profile_invite_code`, - /// which allows point queries on the field of the same name - /// via the [`ProfileInviteCodeUserIdUnique::find`] method. - /// - /// Users are encouraged not to explicitly reference this type, - /// but to directly chain method calls, - /// like `ctx.db.profile_invite_code().user_id().find(...)`. - pub struct ProfileInviteCodeUserIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, - } - - impl<'ctx> ProfileInviteCodeTableHandle<'ctx> { - /// Get a handle on the `user_id` unique index on the table `profile_invite_code`. - pub fn user_id(&self) -> ProfileInviteCodeUserIdUnique<'ctx> { - ProfileInviteCodeUserIdUnique { - imp: self.imp.get_unique_constraint::("user_id"), - phantom: std::marker::PhantomData, - } - } - } - - impl<'ctx> ProfileInviteCodeUserIdUnique<'ctx> { - /// Find the subscribed row whose `user_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) - } - } - - /// Access to the `invite_code` unique index on the table `profile_invite_code`, - /// which allows point queries on the field of the same name - /// via the [`ProfileInviteCodeInviteCodeUnique::find`] method. - /// - /// Users are encouraged not to explicitly reference this type, - /// but to directly chain method calls, - /// like `ctx.db.profile_invite_code().invite_code().find(...)`. - pub struct ProfileInviteCodeInviteCodeUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, - } - - impl<'ctx> ProfileInviteCodeTableHandle<'ctx> { - /// Get a handle on the `invite_code` unique index on the table `profile_invite_code`. - pub fn invite_code(&self) -> ProfileInviteCodeInviteCodeUnique<'ctx> { - ProfileInviteCodeInviteCodeUnique { - imp: self.imp.get_unique_constraint::("invite_code"), - phantom: std::marker::PhantomData, - } - } - } - - impl<'ctx> ProfileInviteCodeInviteCodeUnique<'ctx> { - /// Find the subscribed row whose `invite_code` 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::("profile_invite_code"); - _table.add_unique_constraint::("user_id", |row| &row.user_id); - _table.add_unique_constraint::("invite_code", |row| &row.invite_code); -} - -#[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 `ProfileInviteCode`. - /// - /// Implemented for [`__sdk::QueryTableAccessor`]. - pub trait profile_invite_codeQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `ProfileInviteCode`. - fn profile_invite_code(&self) -> __sdk::__query_builder::Table; - } - - impl profile_invite_codeQueryTableAccess for __sdk::QueryTableAccessor { - fn profile_invite_code(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("profile_invite_code") - } - } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/profile_invite_code_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/profile_invite_code_type.rs index 1a3ba152..e556d2f7 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/profile_invite_code_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/profile_invite_code_type.rs @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -19,12 +13,10 @@ pub struct ProfileInviteCode { pub updated_at: __sdk::Timestamp, } - impl __sdk::InModule for ProfileInviteCode { type Module = super::RemoteModule; } - /// Column accessor struct for the table `ProfileInviteCode`. /// /// Provides typed access to columns for query building. @@ -43,7 +35,6 @@ impl __sdk::__query_builder::HasCols for ProfileInviteCode { invite_code: __sdk::__query_builder::Col::new(table_name, "invite_code"), created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"), - } } } @@ -62,10 +53,8 @@ impl __sdk::__query_builder::HasIxCols for ProfileInviteCode { ProfileInviteCodeIxCols { invite_code: __sdk::__query_builder::IxCol::new(table_name, "invite_code"), user_id: __sdk::__query_builder::IxCol::new(table_name, "user_id"), - } } } impl __sdk::__query_builder::CanBeLookupTable for ProfileInviteCode {} - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/profile_membership_table.rs b/server-rs/crates/spacetime-client/src/module_bindings/profile_membership_table.rs deleted file mode 100644 index c9b7cc23..00000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/profile_membership_table.rs +++ /dev/null @@ -1,165 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; -use super::profile_membership_type::ProfileMembership; -use super::runtime_profile_membership_status_type::RuntimeProfileMembershipStatus; -use super::runtime_profile_membership_tier_type::RuntimeProfileMembershipTier; - -/// Table handle for the table `profile_membership`. -/// -/// Obtain a handle from the [`ProfileMembershipTableAccess::profile_membership`] method on [`super::RemoteTables`], -/// like `ctx.db.profile_membership()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.profile_membership().on_insert(...)`. -pub struct ProfileMembershipTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `profile_membership`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait ProfileMembershipTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`ProfileMembershipTableHandle`], which mediates access to the table `profile_membership`. - fn profile_membership(&self) -> ProfileMembershipTableHandle<'_>; -} - -impl ProfileMembershipTableAccess for super::RemoteTables { - fn profile_membership(&self) -> ProfileMembershipTableHandle<'_> { - ProfileMembershipTableHandle { - imp: self.imp.get_table::("profile_membership"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct ProfileMembershipInsertCallbackId(__sdk::CallbackId); -pub struct ProfileMembershipDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::Table for ProfileMembershipTableHandle<'ctx> { - type Row = ProfileMembership; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { self.imp.count() } - fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } - - type InsertCallbackId = ProfileMembershipInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> ProfileMembershipInsertCallbackId { - ProfileMembershipInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: ProfileMembershipInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = ProfileMembershipDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> ProfileMembershipDeleteCallbackId { - ProfileMembershipDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: ProfileMembershipDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct ProfileMembershipUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for ProfileMembershipTableHandle<'ctx> { - type UpdateCallbackId = ProfileMembershipUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> ProfileMembershipUpdateCallbackId { - ProfileMembershipUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: ProfileMembershipUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - - /// Access to the `user_id` unique index on the table `profile_membership`, - /// which allows point queries on the field of the same name - /// via the [`ProfileMembershipUserIdUnique::find`] method. - /// - /// Users are encouraged not to explicitly reference this type, - /// but to directly chain method calls, - /// like `ctx.db.profile_membership().user_id().find(...)`. - pub struct ProfileMembershipUserIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, - } - - impl<'ctx> ProfileMembershipTableHandle<'ctx> { - /// Get a handle on the `user_id` unique index on the table `profile_membership`. - pub fn user_id(&self) -> ProfileMembershipUserIdUnique<'ctx> { - ProfileMembershipUserIdUnique { - imp: self.imp.get_unique_constraint::("user_id"), - phantom: std::marker::PhantomData, - } - } - } - - impl<'ctx> ProfileMembershipUserIdUnique<'ctx> { - /// Find the subscribed row whose `user_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::("profile_membership"); - _table.add_unique_constraint::("user_id", |row| &row.user_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 `ProfileMembership`. - /// - /// Implemented for [`__sdk::QueryTableAccessor`]. - pub trait profile_membershipQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `ProfileMembership`. - fn profile_membership(&self) -> __sdk::__query_builder::Table; - } - - impl profile_membershipQueryTableAccess for __sdk::QueryTableAccessor { - fn profile_membership(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("profile_membership") - } - } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/profile_membership_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/profile_membership_type.rs index e09b6ebe..e0889718 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/profile_membership_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/profile_membership_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::runtime_profile_membership_status_type::RuntimeProfileMembershipStatus; use super::runtime_profile_membership_tier_type::RuntimeProfileMembershipTier; @@ -23,12 +18,10 @@ pub struct ProfileMembership { pub updated_at: __sdk::Timestamp, } - impl __sdk::InModule for ProfileMembership { type Module = super::RemoteModule; } - /// Column accessor struct for the table `ProfileMembership`. /// /// Provides typed access to columns for query building. @@ -51,7 +44,6 @@ impl __sdk::__query_builder::HasCols for ProfileMembership { started_at: __sdk::__query_builder::Col::new(table_name, "started_at"), expires_at: __sdk::__query_builder::Col::new(table_name, "expires_at"), updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"), - } } } @@ -68,10 +60,8 @@ impl __sdk::__query_builder::HasIxCols for ProfileMembership { fn ix_cols(table_name: &'static str) -> Self::IxCols { ProfileMembershipIxCols { user_id: __sdk::__query_builder::IxCol::new(table_name, "user_id"), - } } } impl __sdk::__query_builder::CanBeLookupTable for ProfileMembership {} - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/profile_played_world_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/profile_played_world_type.rs index b58b66c1..3b94036c 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/profile_played_world_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/profile_played_world_type.rs @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,9 +10,9 @@ pub struct ProfilePlayedWorld { 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 owner_user_id: Option, + pub profile_id: Option, + pub world_type: Option, pub world_title: String, pub world_subtitle: String, pub first_played_at: __sdk::Timestamp, @@ -26,12 +20,10 @@ pub struct ProfilePlayedWorld { pub last_observed_play_time_ms: u64, } - impl __sdk::InModule for ProfilePlayedWorld { type Module = super::RemoteModule; } - /// Column accessor struct for the table `ProfilePlayedWorld`. /// /// Provides typed access to columns for query building. @@ -39,9 +31,9 @@ pub struct ProfilePlayedWorldCols { pub played_world_id: __sdk::__query_builder::Col, pub user_id: __sdk::__query_builder::Col, pub world_key: __sdk::__query_builder::Col, - pub owner_user_id: __sdk::__query_builder::Col>, - pub profile_id: __sdk::__query_builder::Col>, - pub world_type: __sdk::__query_builder::Col>, + pub owner_user_id: __sdk::__query_builder::Col>, + pub profile_id: __sdk::__query_builder::Col>, + pub world_type: __sdk::__query_builder::Col>, pub world_title: __sdk::__query_builder::Col, pub world_subtitle: __sdk::__query_builder::Col, pub first_played_at: __sdk::__query_builder::Col, @@ -63,8 +55,10 @@ impl __sdk::__query_builder::HasCols for ProfilePlayedWorld { world_subtitle: __sdk::__query_builder::Col::new(table_name, "world_subtitle"), first_played_at: __sdk::__query_builder::Col::new(table_name, "first_played_at"), last_played_at: __sdk::__query_builder::Col::new(table_name, "last_played_at"), - last_observed_play_time_ms: __sdk::__query_builder::Col::new(table_name, "last_observed_play_time_ms"), - + last_observed_play_time_ms: __sdk::__query_builder::Col::new( + table_name, + "last_observed_play_time_ms", + ), } } } @@ -83,10 +77,8 @@ impl __sdk::__query_builder::HasIxCols for ProfilePlayedWorld { ProfilePlayedWorldIxCols { played_world_id: __sdk::__query_builder::IxCol::new(table_name, "played_world_id"), user_id: __sdk::__query_builder::IxCol::new(table_name, "user_id"), - } } } impl __sdk::__query_builder::CanBeLookupTable for ProfilePlayedWorld {} - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/profile_recharge_order_table.rs b/server-rs/crates/spacetime-client/src/module_bindings/profile_recharge_order_table.rs deleted file mode 100644 index 94cdd920..00000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/profile_recharge_order_table.rs +++ /dev/null @@ -1,165 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; -use super::profile_recharge_order_type::ProfileRechargeOrder; -use super::runtime_profile_recharge_product_kind_type::RuntimeProfileRechargeProductKind; -use super::runtime_profile_recharge_order_status_type::RuntimeProfileRechargeOrderStatus; - -/// Table handle for the table `profile_recharge_order`. -/// -/// Obtain a handle from the [`ProfileRechargeOrderTableAccess::profile_recharge_order`] method on [`super::RemoteTables`], -/// like `ctx.db.profile_recharge_order()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.profile_recharge_order().on_insert(...)`. -pub struct ProfileRechargeOrderTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `profile_recharge_order`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait ProfileRechargeOrderTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`ProfileRechargeOrderTableHandle`], which mediates access to the table `profile_recharge_order`. - fn profile_recharge_order(&self) -> ProfileRechargeOrderTableHandle<'_>; -} - -impl ProfileRechargeOrderTableAccess for super::RemoteTables { - fn profile_recharge_order(&self) -> ProfileRechargeOrderTableHandle<'_> { - ProfileRechargeOrderTableHandle { - imp: self.imp.get_table::("profile_recharge_order"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct ProfileRechargeOrderInsertCallbackId(__sdk::CallbackId); -pub struct ProfileRechargeOrderDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::Table for ProfileRechargeOrderTableHandle<'ctx> { - type Row = ProfileRechargeOrder; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { self.imp.count() } - fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } - - type InsertCallbackId = ProfileRechargeOrderInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> ProfileRechargeOrderInsertCallbackId { - ProfileRechargeOrderInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: ProfileRechargeOrderInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = ProfileRechargeOrderDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> ProfileRechargeOrderDeleteCallbackId { - ProfileRechargeOrderDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: ProfileRechargeOrderDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct ProfileRechargeOrderUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for ProfileRechargeOrderTableHandle<'ctx> { - type UpdateCallbackId = ProfileRechargeOrderUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> ProfileRechargeOrderUpdateCallbackId { - ProfileRechargeOrderUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: ProfileRechargeOrderUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - - /// Access to the `order_id` unique index on the table `profile_recharge_order`, - /// which allows point queries on the field of the same name - /// via the [`ProfileRechargeOrderOrderIdUnique::find`] method. - /// - /// Users are encouraged not to explicitly reference this type, - /// but to directly chain method calls, - /// like `ctx.db.profile_recharge_order().order_id().find(...)`. - pub struct ProfileRechargeOrderOrderIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, - } - - impl<'ctx> ProfileRechargeOrderTableHandle<'ctx> { - /// Get a handle on the `order_id` unique index on the table `profile_recharge_order`. - pub fn order_id(&self) -> ProfileRechargeOrderOrderIdUnique<'ctx> { - ProfileRechargeOrderOrderIdUnique { - imp: self.imp.get_unique_constraint::("order_id"), - phantom: std::marker::PhantomData, - } - } - } - - impl<'ctx> ProfileRechargeOrderOrderIdUnique<'ctx> { - /// Find the subscribed row whose `order_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::("profile_recharge_order"); - _table.add_unique_constraint::("order_id", |row| &row.order_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 `ProfileRechargeOrder`. - /// - /// Implemented for [`__sdk::QueryTableAccessor`]. - pub trait profile_recharge_orderQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `ProfileRechargeOrder`. - fn profile_recharge_order(&self) -> __sdk::__query_builder::Table; - } - - impl profile_recharge_orderQueryTableAccess for __sdk::QueryTableAccessor { - fn profile_recharge_order(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("profile_recharge_order") - } - } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/profile_recharge_order_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/profile_recharge_order_type.rs index 8140f320..fbca5da3 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/profile_recharge_order_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/profile_recharge_order_type.rs @@ -2,15 +2,10 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::runtime_profile_recharge_product_kind_type::RuntimeProfileRechargeProductKind; use super::runtime_profile_recharge_order_status_type::RuntimeProfileRechargeOrderStatus; +use super::runtime_profile_recharge_product_kind_type::RuntimeProfileRechargeProductKind; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -26,15 +21,13 @@ pub struct ProfileRechargeOrder { pub paid_at: __sdk::Timestamp, pub created_at: __sdk::Timestamp, pub points_delta: i64, - pub membership_expires_at: Option::<__sdk::Timestamp>, + pub membership_expires_at: Option<__sdk::Timestamp>, } - impl __sdk::InModule for ProfileRechargeOrder { type Module = super::RemoteModule; } - /// Column accessor struct for the table `ProfileRechargeOrder`. /// /// Provides typed access to columns for query building. @@ -45,12 +38,14 @@ pub struct ProfileRechargeOrderCols { pub product_title: __sdk::__query_builder::Col, pub kind: __sdk::__query_builder::Col, pub amount_cents: __sdk::__query_builder::Col, - pub status: __sdk::__query_builder::Col, + pub status: + __sdk::__query_builder::Col, pub payment_channel: __sdk::__query_builder::Col, pub paid_at: __sdk::__query_builder::Col, pub created_at: __sdk::__query_builder::Col, pub points_delta: __sdk::__query_builder::Col, - pub membership_expires_at: __sdk::__query_builder::Col>, + pub membership_expires_at: + __sdk::__query_builder::Col>, } impl __sdk::__query_builder::HasCols for ProfileRechargeOrder { @@ -68,8 +63,10 @@ impl __sdk::__query_builder::HasCols for ProfileRechargeOrder { paid_at: __sdk::__query_builder::Col::new(table_name, "paid_at"), created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), points_delta: __sdk::__query_builder::Col::new(table_name, "points_delta"), - membership_expires_at: __sdk::__query_builder::Col::new(table_name, "membership_expires_at"), - + membership_expires_at: __sdk::__query_builder::Col::new( + table_name, + "membership_expires_at", + ), } } } @@ -88,10 +85,8 @@ impl __sdk::__query_builder::HasIxCols for ProfileRechargeOrder { ProfileRechargeOrderIxCols { order_id: __sdk::__query_builder::IxCol::new(table_name, "order_id"), user_id: __sdk::__query_builder::IxCol::new(table_name, "user_id"), - } } } impl __sdk::__query_builder::CanBeLookupTable for ProfileRechargeOrder {} - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/profile_referral_relation_table.rs b/server-rs/crates/spacetime-client/src/module_bindings/profile_referral_relation_table.rs deleted file mode 100644 index 0db9492c..00000000 --- a/server-rs/crates/spacetime-client/src/module_bindings/profile_referral_relation_table.rs +++ /dev/null @@ -1,163 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; -use super::profile_referral_relation_type::ProfileReferralRelation; - -/// Table handle for the table `profile_referral_relation`. -/// -/// Obtain a handle from the [`ProfileReferralRelationTableAccess::profile_referral_relation`] method on [`super::RemoteTables`], -/// like `ctx.db.profile_referral_relation()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.profile_referral_relation().on_insert(...)`. -pub struct ProfileReferralRelationTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `profile_referral_relation`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait ProfileReferralRelationTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`ProfileReferralRelationTableHandle`], which mediates access to the table `profile_referral_relation`. - fn profile_referral_relation(&self) -> ProfileReferralRelationTableHandle<'_>; -} - -impl ProfileReferralRelationTableAccess for super::RemoteTables { - fn profile_referral_relation(&self) -> ProfileReferralRelationTableHandle<'_> { - ProfileReferralRelationTableHandle { - imp: self.imp.get_table::("profile_referral_relation"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct ProfileReferralRelationInsertCallbackId(__sdk::CallbackId); -pub struct ProfileReferralRelationDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::Table for ProfileReferralRelationTableHandle<'ctx> { - type Row = ProfileReferralRelation; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { self.imp.count() } - fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } - - type InsertCallbackId = ProfileReferralRelationInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> ProfileReferralRelationInsertCallbackId { - ProfileReferralRelationInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: ProfileReferralRelationInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = ProfileReferralRelationDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> ProfileReferralRelationDeleteCallbackId { - ProfileReferralRelationDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: ProfileReferralRelationDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct ProfileReferralRelationUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for ProfileReferralRelationTableHandle<'ctx> { - type UpdateCallbackId = ProfileReferralRelationUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> ProfileReferralRelationUpdateCallbackId { - ProfileReferralRelationUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: ProfileReferralRelationUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - - /// Access to the `invitee_user_id` unique index on the table `profile_referral_relation`, - /// which allows point queries on the field of the same name - /// via the [`ProfileReferralRelationInviteeUserIdUnique::find`] method. - /// - /// Users are encouraged not to explicitly reference this type, - /// but to directly chain method calls, - /// like `ctx.db.profile_referral_relation().invitee_user_id().find(...)`. - pub struct ProfileReferralRelationInviteeUserIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, - } - - impl<'ctx> ProfileReferralRelationTableHandle<'ctx> { - /// Get a handle on the `invitee_user_id` unique index on the table `profile_referral_relation`. - pub fn invitee_user_id(&self) -> ProfileReferralRelationInviteeUserIdUnique<'ctx> { - ProfileReferralRelationInviteeUserIdUnique { - imp: self.imp.get_unique_constraint::("invitee_user_id"), - phantom: std::marker::PhantomData, - } - } - } - - impl<'ctx> ProfileReferralRelationInviteeUserIdUnique<'ctx> { - /// Find the subscribed row whose `invitee_user_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::("profile_referral_relation"); - _table.add_unique_constraint::("invitee_user_id", |row| &row.invitee_user_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 `ProfileReferralRelation`. - /// - /// Implemented for [`__sdk::QueryTableAccessor`]. - pub trait profile_referral_relationQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `ProfileReferralRelation`. - fn profile_referral_relation(&self) -> __sdk::__query_builder::Table; - } - - impl profile_referral_relationQueryTableAccess for __sdk::QueryTableAccessor { - fn profile_referral_relation(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("profile_referral_relation") - } - } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/profile_referral_relation_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/profile_referral_relation_type.rs index 6da25f89..12c9b460 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/profile_referral_relation_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/profile_referral_relation_type.rs @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -21,12 +15,10 @@ pub struct ProfileReferralRelation { pub bound_at: __sdk::Timestamp, } - impl __sdk::InModule for ProfileReferralRelation { type Module = super::RemoteModule; } - /// Column accessor struct for the table `ProfileReferralRelation`. /// /// Provides typed access to columns for query building. @@ -46,10 +38,15 @@ impl __sdk::__query_builder::HasCols for ProfileReferralRelation { invitee_user_id: __sdk::__query_builder::Col::new(table_name, "invitee_user_id"), inviter_user_id: __sdk::__query_builder::Col::new(table_name, "inviter_user_id"), invite_code: __sdk::__query_builder::Col::new(table_name, "invite_code"), - inviter_reward_granted: __sdk::__query_builder::Col::new(table_name, "inviter_reward_granted"), - invitee_reward_granted: __sdk::__query_builder::Col::new(table_name, "invitee_reward_granted"), + inviter_reward_granted: __sdk::__query_builder::Col::new( + table_name, + "inviter_reward_granted", + ), + invitee_reward_granted: __sdk::__query_builder::Col::new( + table_name, + "invitee_reward_granted", + ), bound_at: __sdk::__query_builder::Col::new(table_name, "bound_at"), - } } } @@ -68,10 +65,8 @@ impl __sdk::__query_builder::HasIxCols for ProfileReferralRelation { ProfileReferralRelationIxCols { invitee_user_id: __sdk::__query_builder::IxCol::new(table_name, "invitee_user_id"), inviter_user_id: __sdk::__query_builder::IxCol::new(table_name, "inviter_user_id"), - } } } impl __sdk::__query_builder::CanBeLookupTable for ProfileReferralRelation {} - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/profile_save_archive_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/profile_save_archive_type.rs index f11c6024..5244fe4e 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/profile_save_archive_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/profile_save_archive_type.rs @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,27 +10,25 @@ pub struct ProfileSaveArchive { 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 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 cover_image_src: Option, pub saved_at: __sdk::Timestamp, pub bottom_tab: String, pub game_state_json: String, - pub current_story_json: Option::, + pub current_story_json: Option, pub created_at: __sdk::Timestamp, pub updated_at: __sdk::Timestamp, } - impl __sdk::InModule for ProfileSaveArchive { type Module = super::RemoteModule; } - /// Column accessor struct for the table `ProfileSaveArchive`. /// /// Provides typed access to columns for query building. @@ -44,17 +36,17 @@ pub struct ProfileSaveArchiveCols { pub archive_id: __sdk::__query_builder::Col, pub user_id: __sdk::__query_builder::Col, pub world_key: __sdk::__query_builder::Col, - pub owner_user_id: __sdk::__query_builder::Col>, - pub profile_id: __sdk::__query_builder::Col>, - pub world_type: __sdk::__query_builder::Col>, + pub owner_user_id: __sdk::__query_builder::Col>, + pub profile_id: __sdk::__query_builder::Col>, + pub world_type: __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_image_src: __sdk::__query_builder::Col>, pub saved_at: __sdk::__query_builder::Col, pub bottom_tab: __sdk::__query_builder::Col, pub game_state_json: __sdk::__query_builder::Col, - pub current_story_json: __sdk::__query_builder::Col>, + pub current_story_json: __sdk::__query_builder::Col>, pub created_at: __sdk::__query_builder::Col, pub updated_at: __sdk::__query_builder::Col, } @@ -79,7 +71,6 @@ impl __sdk::__query_builder::HasCols for ProfileSaveArchive { current_story_json: __sdk::__query_builder::Col::new(table_name, "current_story_json"), created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"), - } } } @@ -98,10 +89,8 @@ impl __sdk::__query_builder::HasIxCols for ProfileSaveArchive { ProfileSaveArchiveIxCols { archive_id: __sdk::__query_builder::IxCol::new(table_name, "archive_id"), user_id: __sdk::__query_builder::IxCol::new(table_name, "user_id"), - } } } impl __sdk::__query_builder::CanBeLookupTable for ProfileSaveArchive {} - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/profile_wallet_ledger_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/profile_wallet_ledger_type.rs index b5535645..78364d5a 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/profile_wallet_ledger_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/profile_wallet_ledger_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::runtime_profile_wallet_ledger_source_type_type::RuntimeProfileWalletLedgerSourceType; @@ -22,12 +17,10 @@ pub struct ProfileWalletLedger { pub created_at: __sdk::Timestamp, } - impl __sdk::InModule for ProfileWalletLedger { type Module = super::RemoteModule; } - /// Column accessor struct for the table `ProfileWalletLedger`. /// /// Provides typed access to columns for query building. @@ -36,7 +29,8 @@ pub struct ProfileWalletLedgerCols { pub user_id: __sdk::__query_builder::Col, pub amount_delta: __sdk::__query_builder::Col, pub balance_after: __sdk::__query_builder::Col, - pub source_type: __sdk::__query_builder::Col, + pub source_type: + __sdk::__query_builder::Col, pub created_at: __sdk::__query_builder::Col, } @@ -50,7 +44,6 @@ impl __sdk::__query_builder::HasCols for ProfileWalletLedger { balance_after: __sdk::__query_builder::Col::new(table_name, "balance_after"), source_type: __sdk::__query_builder::Col::new(table_name, "source_type"), created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), - } } } @@ -69,10 +62,8 @@ impl __sdk::__query_builder::HasIxCols for ProfileWalletLedger { ProfileWalletLedgerIxCols { user_id: __sdk::__query_builder::IxCol::new(table_name, "user_id"), wallet_ledger_id: __sdk::__query_builder::IxCol::new(table_name, "wallet_ledger_id"), - } } } impl __sdk::__query_builder::CanBeLookupTable for ProfileWalletLedger {} - 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 index 6a2bfdd8..e8007288 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::big_fish_session_procedure_result_type::BigFishSessionProcedureResult; 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 { +struct PublishBigFishGameArgs { pub input: BigFishPublishInput, } - impl __sdk::InModule for PublishBigFishGameArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for PublishBigFishGameArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl publish_big_fish_game for super::RemoteProcedures { &self, input: BigFishPublishInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, BigFishSessionProcedureResult>( - "publish_big_fish_game", - PublishBigFishGameArgs { input, }, - __callback, - ); + 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 index 2dcaf010..e5434aca 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 { +struct PublishCustomWorldProfileAndReturnArgs { pub input: CustomWorldProfilePublishInput, } - impl __sdk::InModule for PublishCustomWorldProfileAndReturnArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for PublishCustomWorldProfileAndReturnArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl publish_custom_world_profile_and_return for super::RemoteProcedures { &self, input: CustomWorldProfilePublishInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, CustomWorldLibraryMutationResult>( - "publish_custom_world_profile_and_return", - PublishCustomWorldProfileAndReturnArgs { input, }, - __callback, - ); + 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 index f6d34d5c..84e6b339 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::custom_world_profile_publish_input_type::CustomWorldProfilePublishInput; @@ -19,10 +14,8 @@ pub(super) struct PublishCustomWorldProfileArgs { impl From for super::Reducer { fn from(args: PublishCustomWorldProfileArgs) -> Self { - Self::PublishCustomWorldProfile { - input: args.input, -} -} + Self::PublishCustomWorldProfile { input: args.input } + } } impl __sdk::InModule for PublishCustomWorldProfileArgs { @@ -40,9 +33,11 @@ pub trait publish_custom_world_profile { /// 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, |_, _| {}) + 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, @@ -70,7 +65,7 @@ impl publish_custom_world_profile for super::RemoteReducers { + Send + 'static, ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback(PublishCustomWorldProfileArgs { input, }, callback) + 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 index 083034b9..1eb935a2 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 { +struct PublishCustomWorldWorldArgs { pub input: CustomWorldPublishWorldInput, } - impl __sdk::InModule for PublishCustomWorldWorldArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for PublishCustomWorldWorldArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl publish_custom_world_world for super::RemoteProcedures { &self, input: CustomWorldPublishWorldInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, CustomWorldPublishWorldResult>( - "publish_custom_world_world", - PublishCustomWorldWorldArgs { input, }, - __callback, - ); + 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_puzzle_work_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/publish_puzzle_work_procedure.rs index 4592d939..288b44a5 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::puzzle_work_procedure_result_type::PuzzleWorkProcedureResult; 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 { +struct PublishPuzzleWorkArgs { pub input: PuzzlePublishInput, } - impl __sdk::InModule for PublishPuzzleWorkArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for PublishPuzzleWorkArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl publish_puzzle_work for super::RemoteProcedures { &self, input: PuzzlePublishInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, PuzzleWorkProcedureResult>( - "publish_puzzle_work", - PublishPuzzleWorkArgs { input, }, - __callback, - ); + self.imp + .invoke_procedure_with_callback::<_, PuzzleWorkProcedureResult>( + "publish_puzzle_work", + PublishPuzzleWorkArgs { 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 index 22dfb32e..486919f2 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::puzzle_agent_stage_type::PuzzleAgentStage; @@ -16,17 +11,15 @@ use super::puzzle_agent_stage_type::PuzzleAgentStage; pub struct PuzzleAgentMessageFinalizeInput { pub session_id: String, pub owner_user_id: String, - pub assistant_message_id: Option::, - pub assistant_reply_text: Option::, + 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 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_kind_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_message_kind_type.rs index 56f8df2d..ca46edeb 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_message_kind_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_message_kind_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -20,12 +15,8 @@ pub enum PuzzleAgentMessageKind { ActionResult, Warning, - } - - impl __sdk::InModule for PuzzleAgentMessageKind { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_message_role_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_message_role_type.rs index b34f41c4..5dd7eb51 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_message_role_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_message_role_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -18,12 +13,8 @@ pub enum PuzzleAgentMessageRole { Assistant, System, - } - - impl __sdk::InModule for PuzzleAgentMessageRole { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_message_row_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_message_row_type.rs index ceb74765..b0bb85f2 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_message_row_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_message_row_type.rs @@ -2,15 +2,10 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::puzzle_agent_message_role_type::PuzzleAgentMessageRole; 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)] @@ -23,12 +18,10 @@ pub struct PuzzleAgentMessageRow { pub created_at: __sdk::Timestamp, } - impl __sdk::InModule for PuzzleAgentMessageRow { type Module = super::RemoteModule; } - /// Column accessor struct for the table `PuzzleAgentMessageRow`. /// /// Provides typed access to columns for query building. @@ -51,7 +44,6 @@ impl __sdk::__query_builder::HasCols for PuzzleAgentMessageRow { kind: __sdk::__query_builder::Col::new(table_name, "kind"), text: __sdk::__query_builder::Col::new(table_name, "text"), created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), - } } } @@ -70,10 +62,8 @@ impl __sdk::__query_builder::HasIxCols for PuzzleAgentMessageRow { PuzzleAgentMessageRowIxCols { message_id: __sdk::__query_builder::IxCol::new(table_name, "message_id"), session_id: __sdk::__query_builder::IxCol::new(table_name, "session_id"), - } } } impl __sdk::__query_builder::CanBeLookupTable for PuzzleAgentMessageRow {} - 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 index 3a9fa169..93086643 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -20,8 +14,6 @@ pub struct PuzzleAgentMessageSubmitInput { 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 index f07fcd6b..c3ccc7d2 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -21,8 +15,6 @@ pub struct PuzzleAgentSessionCreateInput { 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 index e411bead..af4159c6 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -17,8 +11,6 @@ pub struct PuzzleAgentSessionGetInput { 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 index f19f290d..39506659 100644 --- 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 @@ -2,24 +2,16 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +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 PuzzleAgentSessionProcedureResult { pub ok: bool, - pub session_json: Option::, - pub error_message: Option::, + pub session_json: 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_row_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_session_row_type.rs index 96e98e56..e056ada1 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_session_row_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_session_row_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::puzzle_agent_stage_type::PuzzleAgentStage; @@ -21,19 +16,17 @@ pub struct PuzzleAgentSessionRow { pub progress_percent: u32, pub stage: PuzzleAgentStage, pub anchor_pack_json: String, - pub draft_json: Option::, - pub last_assistant_reply: Option::, - pub published_profile_id: Option::, + pub draft_json: Option, + pub last_assistant_reply: Option, + pub published_profile_id: Option, pub created_at: __sdk::Timestamp, pub updated_at: __sdk::Timestamp, } - impl __sdk::InModule for PuzzleAgentSessionRow { type Module = super::RemoteModule; } - /// Column accessor struct for the table `PuzzleAgentSessionRow`. /// /// Provides typed access to columns for query building. @@ -45,9 +38,9 @@ pub struct PuzzleAgentSessionRowCols { pub progress_percent: __sdk::__query_builder::Col, pub stage: __sdk::__query_builder::Col, pub anchor_pack_json: __sdk::__query_builder::Col, - pub draft_json: __sdk::__query_builder::Col>, - pub last_assistant_reply: __sdk::__query_builder::Col>, - pub published_profile_id: __sdk::__query_builder::Col>, + pub draft_json: __sdk::__query_builder::Col>, + pub last_assistant_reply: __sdk::__query_builder::Col>, + pub published_profile_id: __sdk::__query_builder::Col>, pub created_at: __sdk::__query_builder::Col, pub updated_at: __sdk::__query_builder::Col, } @@ -64,11 +57,16 @@ impl __sdk::__query_builder::HasCols for PuzzleAgentSessionRow { stage: __sdk::__query_builder::Col::new(table_name, "stage"), anchor_pack_json: __sdk::__query_builder::Col::new(table_name, "anchor_pack_json"), draft_json: __sdk::__query_builder::Col::new(table_name, "draft_json"), - last_assistant_reply: __sdk::__query_builder::Col::new(table_name, "last_assistant_reply"), - published_profile_id: __sdk::__query_builder::Col::new(table_name, "published_profile_id"), + last_assistant_reply: __sdk::__query_builder::Col::new( + table_name, + "last_assistant_reply", + ), + published_profile_id: __sdk::__query_builder::Col::new( + table_name, + "published_profile_id", + ), created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"), - } } } @@ -87,10 +85,8 @@ impl __sdk::__query_builder::HasIxCols for PuzzleAgentSessionRow { PuzzleAgentSessionRowIxCols { owner_user_id: __sdk::__query_builder::IxCol::new(table_name, "owner_user_id"), session_id: __sdk::__query_builder::IxCol::new(table_name, "session_id"), - } } } impl __sdk::__query_builder::CanBeLookupTable for PuzzleAgentSessionRow {} - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_stage_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_stage_type.rs index 00cbc81b..9d41ea54 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_stage_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_agent_stage_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -22,12 +17,8 @@ pub enum PuzzleAgentStage { ReadyToPublish, Published, - } - - impl __sdk::InModule for PuzzleAgentStage { 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 index 703538e4..3b5f565f 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -18,8 +12,6 @@ pub struct PuzzleDraftCompileInput { pub compiled_at_micros: i64, } - impl __sdk::InModule for PuzzleDraftCompileInput { 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 index 0c2196b4..8c409aed 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -19,8 +13,6 @@ pub struct PuzzleGeneratedImagesSaveInput { pub saved_at_micros: i64, } - impl __sdk::InModule for PuzzleGeneratedImagesSaveInput { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_publication_status_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_publication_status_type.rs index 7ff8b5c6..38ece3cf 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_publication_status_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_publication_status_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,12 +11,8 @@ pub enum PuzzlePublicationStatus { Draft, Published, - } - - impl __sdk::InModule for PuzzlePublicationStatus { 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 index d3a5d26d..83cbc37c 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -18,14 +12,12 @@ pub struct PuzzlePublishInput { pub work_id: String, pub profile_id: String, pub author_display_name: String, - pub level_name: Option::, - pub summary: Option::, - pub theme_tags: Option::>, + pub level_name: Option, + pub summary: Option, + pub theme_tags: 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_run_drag_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_run_drag_input_type.rs index 753e2932..b5036117 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -21,8 +15,6 @@ pub struct PuzzleRunDragInput { 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 index cf15f8b3..b3961e57 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -17,8 +11,6 @@ pub struct PuzzleRunGetInput { 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 index d6a9a285..18258482 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -18,8 +12,6 @@ pub struct PuzzleRunNextLevelInput { 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_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_run_procedure_result_type.rs index 215490dc..54f6349b 100644 --- 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 @@ -2,24 +2,16 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +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 PuzzleRunProcedureResult { pub ok: bool, - pub run_json: Option::, - pub error_message: Option::, + pub run_json: 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_start_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_run_start_input_type.rs index 55e0a93e..7b4bed29 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -19,8 +13,6 @@ pub struct PuzzleRunStartInput { 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 index 3b5baa18..e92ca711 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -20,8 +14,6 @@ pub struct PuzzleRunSwapInput { 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_run_row_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_runtime_run_row_type.rs index daf67f5b..e610dfbf 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_runtime_run_row_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_runtime_run_row_type.rs @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -27,12 +21,10 @@ pub struct PuzzleRuntimeRunRow { pub updated_at: __sdk::Timestamp, } - impl __sdk::InModule for PuzzleRuntimeRunRow { type Module = super::RemoteModule; } - /// Column accessor struct for the table `PuzzleRuntimeRunRow`. /// /// Provides typed access to columns for query building. @@ -59,15 +51,26 @@ impl __sdk::__query_builder::HasCols for PuzzleRuntimeRunRow { owner_user_id: __sdk::__query_builder::Col::new(table_name, "owner_user_id"), entry_profile_id: __sdk::__query_builder::Col::new(table_name, "entry_profile_id"), current_profile_id: __sdk::__query_builder::Col::new(table_name, "current_profile_id"), - cleared_level_count: __sdk::__query_builder::Col::new(table_name, "cleared_level_count"), - current_level_index: __sdk::__query_builder::Col::new(table_name, "current_level_index"), + cleared_level_count: __sdk::__query_builder::Col::new( + table_name, + "cleared_level_count", + ), + current_level_index: __sdk::__query_builder::Col::new( + table_name, + "current_level_index", + ), current_grid_size: __sdk::__query_builder::Col::new(table_name, "current_grid_size"), - played_profile_ids_json: __sdk::__query_builder::Col::new(table_name, "played_profile_ids_json"), - previous_level_tags_json: __sdk::__query_builder::Col::new(table_name, "previous_level_tags_json"), + played_profile_ids_json: __sdk::__query_builder::Col::new( + table_name, + "played_profile_ids_json", + ), + previous_level_tags_json: __sdk::__query_builder::Col::new( + table_name, + "previous_level_tags_json", + ), snapshot_json: __sdk::__query_builder::Col::new(table_name, "snapshot_json"), created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"), - } } } @@ -86,10 +89,8 @@ impl __sdk::__query_builder::HasIxCols for PuzzleRuntimeRunRow { PuzzleRuntimeRunRowIxCols { owner_user_id: __sdk::__query_builder::IxCol::new(table_name, "owner_user_id"), run_id: __sdk::__query_builder::IxCol::new(table_name, "run_id"), - } } } impl __sdk::__query_builder::CanBeLookupTable for PuzzleRuntimeRunRow {} - 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 index 847ac3a4..516d16b9 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -19,8 +13,6 @@ pub struct PuzzleSelectCoverImageInput { 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_work_delete_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_work_delete_input_type.rs index 73044da6..e71d6d3a 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -17,8 +11,6 @@ pub struct PuzzleWorkDeleteInput { 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 index 74cf57a1..5f37e13f 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,8 +10,6 @@ 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_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_work_procedure_result_type.rs index 0da3b49c..d59a56cc 100644 --- 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 @@ -2,24 +2,16 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +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 PuzzleWorkProcedureResult { pub ok: bool, - pub item_json: Option::, - pub error_message: Option::, + pub item_json: 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_row_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_work_profile_row_type.rs index e5482282..be53fc17 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/puzzle_work_profile_row_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/puzzle_work_profile_row_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::puzzle_publication_status_type::PuzzlePublicationStatus; @@ -17,28 +12,26 @@ pub struct PuzzleWorkProfileRow { pub profile_id: String, pub work_id: String, pub owner_user_id: String, - pub source_session_id: Option::, + pub source_session_id: Option, pub author_display_name: String, pub level_name: String, pub summary: String, pub theme_tags_json: String, - pub cover_image_src: Option::, - pub cover_asset_id: Option::, + pub cover_image_src: Option, + pub cover_asset_id: Option, pub publication_status: PuzzlePublicationStatus, pub play_count: u32, pub anchor_pack_json: String, pub publish_ready: bool, pub created_at: __sdk::Timestamp, pub updated_at: __sdk::Timestamp, - pub published_at: Option::<__sdk::Timestamp>, + pub published_at: Option<__sdk::Timestamp>, } - impl __sdk::InModule for PuzzleWorkProfileRow { type Module = super::RemoteModule; } - /// Column accessor struct for the table `PuzzleWorkProfileRow`. /// /// Provides typed access to columns for query building. @@ -46,20 +39,21 @@ pub struct PuzzleWorkProfileRowCols { pub profile_id: __sdk::__query_builder::Col, pub work_id: __sdk::__query_builder::Col, pub owner_user_id: __sdk::__query_builder::Col, - pub source_session_id: __sdk::__query_builder::Col>, + pub source_session_id: __sdk::__query_builder::Col>, pub author_display_name: __sdk::__query_builder::Col, pub level_name: __sdk::__query_builder::Col, pub summary: __sdk::__query_builder::Col, pub theme_tags_json: __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 cover_image_src: __sdk::__query_builder::Col>, + pub cover_asset_id: __sdk::__query_builder::Col>, + pub publication_status: + __sdk::__query_builder::Col, pub play_count: __sdk::__query_builder::Col, pub anchor_pack_json: __sdk::__query_builder::Col, pub publish_ready: __sdk::__query_builder::Col, pub created_at: __sdk::__query_builder::Col, pub updated_at: __sdk::__query_builder::Col, - pub published_at: __sdk::__query_builder::Col>, + pub published_at: __sdk::__query_builder::Col>, } impl __sdk::__query_builder::HasCols for PuzzleWorkProfileRow { @@ -70,7 +64,10 @@ impl __sdk::__query_builder::HasCols for PuzzleWorkProfileRow { work_id: __sdk::__query_builder::Col::new(table_name, "work_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"), + author_display_name: __sdk::__query_builder::Col::new( + table_name, + "author_display_name", + ), level_name: __sdk::__query_builder::Col::new(table_name, "level_name"), summary: __sdk::__query_builder::Col::new(table_name, "summary"), theme_tags_json: __sdk::__query_builder::Col::new(table_name, "theme_tags_json"), @@ -83,7 +80,6 @@ impl __sdk::__query_builder::HasCols for PuzzleWorkProfileRow { created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"), published_at: __sdk::__query_builder::Col::new(table_name, "published_at"), - } } } @@ -94,7 +90,8 @@ impl __sdk::__query_builder::HasCols for PuzzleWorkProfileRow { pub struct PuzzleWorkProfileRowIxCols { pub owner_user_id: __sdk::__query_builder::IxCol, pub profile_id: __sdk::__query_builder::IxCol, - pub publication_status: __sdk::__query_builder::IxCol, + pub publication_status: + __sdk::__query_builder::IxCol, } impl __sdk::__query_builder::HasIxCols for PuzzleWorkProfileRow { @@ -103,11 +100,12 @@ impl __sdk::__query_builder::HasIxCols for PuzzleWorkProfileRow { PuzzleWorkProfileRowIxCols { owner_user_id: __sdk::__query_builder::IxCol::new(table_name, "owner_user_id"), profile_id: __sdk::__query_builder::IxCol::new(table_name, "profile_id"), - publication_status: __sdk::__query_builder::IxCol::new(table_name, "publication_status"), - + publication_status: __sdk::__query_builder::IxCol::new( + table_name, + "publication_status", + ), } } } impl __sdk::__query_builder::CanBeLookupTable for PuzzleWorkProfileRow {} - 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 index ae412d68..809ce64d 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -17,14 +11,12 @@ pub struct PuzzleWorkUpsertInput { pub owner_user_id: String, pub level_name: String, pub summary: String, - pub theme_tags: Vec::, - pub cover_image_src: Option::, - pub cover_asset_id: Option::, + pub theme_tags: Vec, + pub cover_image_src: Option, + pub cover_asset_id: 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 index e1d55a5f..4ad5ef5b 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,8 +10,6 @@ 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 index 80a1c401..6a34c60f 100644 --- 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 @@ -2,24 +2,16 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +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 PuzzleWorksProcedureResult { pub ok: bool, - pub items_json: Option::, - pub error_message: Option::, + pub items_json: Option, + 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 index dbe06a17..678ec032 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -17,8 +11,6 @@ pub struct QuestCompletionAckInput { 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_hostile_npc_defeated_signal_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/quest_hostile_npc_defeated_signal_type.rs index 08debc1e..d12363ff 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/quest_hostile_npc_defeated_signal_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/quest_hostile_npc_defeated_signal_type.rs @@ -2,23 +2,15 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +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 QuestHostileNpcDefeatedSignal { - pub scene_id: Option::, + pub scene_id: Option, pub hostile_npc_id: String, } - impl __sdk::InModule for QuestHostileNpcDefeatedSignal { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/quest_item_delivered_signal_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/quest_item_delivered_signal_type.rs index 9b69c1f7..4e1d0a5d 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/quest_item_delivered_signal_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/quest_item_delivered_signal_type.rs @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -18,8 +12,6 @@ pub struct QuestItemDeliveredSignal { pub quantity: u32, } - impl __sdk::InModule for QuestItemDeliveredSignal { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/quest_log_event_kind_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/quest_log_event_kind_type.rs index 2e742860..c3176590 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/quest_log_event_kind_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/quest_log_event_kind_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -22,12 +17,8 @@ pub enum QuestLogEventKind { CompletionAcknowledged, TurnedIn, - } - - impl __sdk::InModule for QuestLogEventKind { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/quest_log_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/quest_log_type.rs index d4e28a66..d893857a 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/quest_log_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/quest_log_type.rs @@ -2,17 +2,12 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::quest_status_type::QuestStatus; -use super::quest_progress_signal_type::QuestProgressSignal; use super::quest_log_event_kind_type::QuestLogEventKind; +use super::quest_progress_signal_type::QuestProgressSignal; use super::quest_signal_kind_type::QuestSignalKind; +use super::quest_status_type::QuestStatus; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -23,19 +18,17 @@ pub struct QuestLog { pub actor_user_id: String, pub event_kind: QuestLogEventKind, pub status_after: QuestStatus, - pub signal_kind: Option::, - pub signal: Option::, - pub step_id: Option::, - pub step_progress: Option::, + pub signal_kind: Option, + pub signal: Option, + pub step_id: Option, + pub step_progress: Option, pub created_at: __sdk::Timestamp, } - impl __sdk::InModule for QuestLog { type Module = super::RemoteModule; } - /// Column accessor struct for the table `QuestLog`. /// /// Provides typed access to columns for query building. @@ -46,10 +39,10 @@ pub struct QuestLogCols { pub actor_user_id: __sdk::__query_builder::Col, pub event_kind: __sdk::__query_builder::Col, pub status_after: __sdk::__query_builder::Col, - pub signal_kind: __sdk::__query_builder::Col>, - pub signal: __sdk::__query_builder::Col>, - pub step_id: __sdk::__query_builder::Col>, - pub step_progress: __sdk::__query_builder::Col>, + pub signal_kind: __sdk::__query_builder::Col>, + pub signal: __sdk::__query_builder::Col>, + pub step_id: __sdk::__query_builder::Col>, + pub step_progress: __sdk::__query_builder::Col>, pub created_at: __sdk::__query_builder::Col, } @@ -68,7 +61,6 @@ impl __sdk::__query_builder::HasCols for QuestLog { step_id: __sdk::__query_builder::Col::new(table_name, "step_id"), step_progress: __sdk::__query_builder::Col::new(table_name, "step_progress"), created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), - } } } @@ -90,11 +82,12 @@ impl __sdk::__query_builder::HasIxCols for QuestLog { actor_user_id: __sdk::__query_builder::IxCol::new(table_name, "actor_user_id"), log_id: __sdk::__query_builder::IxCol::new(table_name, "log_id"), quest_id: __sdk::__query_builder::IxCol::new(table_name, "quest_id"), - runtime_session_id: __sdk::__query_builder::IxCol::new(table_name, "runtime_session_id"), - + runtime_session_id: __sdk::__query_builder::IxCol::new( + table_name, + "runtime_session_id", + ), } } } impl __sdk::__query_builder::CanBeLookupTable for QuestLog {} - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/quest_narrative_binding_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/quest_narrative_binding_snapshot_type.rs index 45c26c18..730e7565 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/quest_narrative_binding_snapshot_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/quest_narrative_binding_snapshot_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::quest_narrative_origin_type::QuestNarrativeOrigin; use super::quest_narrative_type_type::QuestNarrativeType; @@ -21,11 +16,9 @@ pub struct QuestNarrativeBindingSnapshot { pub issuer_goal: String, pub player_hook: String, pub world_reason: String, - pub followup_hooks: Vec::, + pub followup_hooks: Vec, } - impl __sdk::InModule for QuestNarrativeBindingSnapshot { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/quest_narrative_origin_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/quest_narrative_origin_type.rs index 53f324af..34ce63f3 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/quest_narrative_origin_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/quest_narrative_origin_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,12 +11,8 @@ pub enum QuestNarrativeOrigin { AiCompiled, FallbackBuilder, - } - - impl __sdk::InModule for QuestNarrativeOrigin { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/quest_narrative_type_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/quest_narrative_type_type.rs index e390707e..ac5319cd 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/quest_narrative_type_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/quest_narrative_type_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -24,12 +19,8 @@ pub enum QuestNarrativeType { Relationship, Trial, - } - - impl __sdk::InModule for QuestNarrativeType { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/quest_npc_spar_completed_signal_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/quest_npc_spar_completed_signal_type.rs index 356ae48e..a0f1f8bb 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/quest_npc_spar_completed_signal_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/quest_npc_spar_completed_signal_type.rs @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,8 +10,6 @@ pub struct QuestNpcSparCompletedSignal { pub npc_id: String, } - impl __sdk::InModule for QuestNpcSparCompletedSignal { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/quest_npc_talk_completed_signal_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/quest_npc_talk_completed_signal_type.rs index a62032a7..39042f37 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/quest_npc_talk_completed_signal_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/quest_npc_talk_completed_signal_type.rs @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,8 +10,6 @@ pub struct QuestNpcTalkCompletedSignal { pub npc_id: String, } - impl __sdk::InModule for QuestNpcTalkCompletedSignal { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/quest_objective_kind_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/quest_objective_kind_type.rs index 4139db37..665faa30 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/quest_objective_kind_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/quest_objective_kind_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -24,12 +19,8 @@ pub enum QuestObjectiveKind { ReachScene, DeliverItem, - } - - impl __sdk::InModule for QuestObjectiveKind { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/quest_objective_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/quest_objective_snapshot_type.rs index e617912b..38682e68 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/quest_objective_snapshot_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/quest_objective_snapshot_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::quest_objective_kind_type::QuestObjectiveKind; @@ -15,15 +10,13 @@ use super::quest_objective_kind_type::QuestObjectiveKind; #[sats(crate = __lib)] pub struct QuestObjectiveSnapshot { pub kind: QuestObjectiveKind, - pub target_hostile_npc_id: Option::, - pub target_npc_id: Option::, - pub target_scene_id: Option::, - pub target_item_id: Option::, + pub target_hostile_npc_id: Option, + pub target_npc_id: Option, + pub target_scene_id: Option, + pub target_item_id: Option, pub required_count: u32, } - impl __sdk::InModule for QuestObjectiveSnapshot { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/quest_progress_signal_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/quest_progress_signal_type.rs index b957a0a7..5764d273 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/quest_progress_signal_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/quest_progress_signal_type.rs @@ -2,19 +2,14 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::quest_hostile_npc_defeated_signal_type::QuestHostileNpcDefeatedSignal; -use super::quest_treasure_inspected_signal_type::QuestTreasureInspectedSignal; +use super::quest_item_delivered_signal_type::QuestItemDeliveredSignal; use super::quest_npc_spar_completed_signal_type::QuestNpcSparCompletedSignal; use super::quest_npc_talk_completed_signal_type::QuestNpcTalkCompletedSignal; use super::quest_scene_reached_signal_type::QuestSceneReachedSignal; -use super::quest_item_delivered_signal_type::QuestItemDeliveredSignal; +use super::quest_treasure_inspected_signal_type::QuestTreasureInspectedSignal; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -30,12 +25,8 @@ pub enum QuestProgressSignal { SceneReached(QuestSceneReachedSignal), ItemDelivered(QuestItemDeliveredSignal), - } - - impl __sdk::InModule for QuestProgressSignal { 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 index 6a82982d..d07da423 100644 --- 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 @@ -2,16 +2,11 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::quest_status_type::QuestStatus; -use super::quest_reward_snapshot_type::QuestRewardSnapshot; 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)] @@ -19,15 +14,15 @@ use super::quest_step_snapshot_type::QuestStepSnapshot; pub struct QuestRecordInput { pub quest_id: String, pub runtime_session_id: String, - pub story_session_id: Option::, + 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 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, @@ -36,18 +31,16 @@ pub struct QuestRecordInput { pub reward: QuestRewardSnapshot, pub reward_text: String, pub narrative_binding: QuestNarrativeBindingSnapshot, - pub steps: Vec::, - pub active_step_id: Option::, + 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 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_record_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/quest_record_type.rs index 10f98806..4243e91c 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/quest_record_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/quest_record_type.rs @@ -2,33 +2,28 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::quest_status_type::QuestStatus; -use super::quest_reward_snapshot_type::QuestRewardSnapshot; use super::quest_narrative_binding_snapshot_type::QuestNarrativeBindingSnapshot; -use super::quest_step_snapshot_type::QuestStepSnapshot; use super::quest_objective_snapshot_type::QuestObjectiveSnapshot; +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 QuestRecord { pub quest_id: String, pub runtime_session_id: String, - pub story_session_id: Option::, + 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 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, @@ -39,40 +34,38 @@ pub struct QuestRecord { pub reward: QuestRewardSnapshot, pub reward_text: String, pub narrative_binding: QuestNarrativeBindingSnapshot, - pub steps: Vec::, - pub active_step_id: Option::, + 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 hidden_flags: Vec, + pub discovered_fact_ids: Vec, + pub related_carrier_ids: Vec, + pub consequence_ids: Vec, pub created_at: __sdk::Timestamp, pub updated_at: __sdk::Timestamp, - pub completed_at: Option::<__sdk::Timestamp>, - pub turned_in_at: Option::<__sdk::Timestamp>, + pub completed_at: Option<__sdk::Timestamp>, + pub turned_in_at: Option<__sdk::Timestamp>, } - impl __sdk::InModule for QuestRecord { type Module = super::RemoteModule; } - /// Column accessor struct for the table `QuestRecord`. /// /// Provides typed access to columns for query building. pub struct QuestRecordCols { pub quest_id: __sdk::__query_builder::Col, pub runtime_session_id: __sdk::__query_builder::Col, - pub story_session_id: __sdk::__query_builder::Col>, + pub story_session_id: __sdk::__query_builder::Col>, pub actor_user_id: __sdk::__query_builder::Col, pub issuer_npc_id: __sdk::__query_builder::Col, pub issuer_npc_name: __sdk::__query_builder::Col, - pub scene_id: __sdk::__query_builder::Col>, - pub chapter_id: __sdk::__query_builder::Col>, - pub act_id: __sdk::__query_builder::Col>, - pub thread_id: __sdk::__query_builder::Col>, - pub contract_id: __sdk::__query_builder::Col>, + pub scene_id: __sdk::__query_builder::Col>, + pub chapter_id: __sdk::__query_builder::Col>, + pub act_id: __sdk::__query_builder::Col>, + pub thread_id: __sdk::__query_builder::Col>, + pub contract_id: __sdk::__query_builder::Col>, pub title: __sdk::__query_builder::Col, pub description: __sdk::__query_builder::Col, pub summary: __sdk::__query_builder::Col, @@ -83,17 +76,17 @@ pub struct QuestRecordCols { pub reward: __sdk::__query_builder::Col, pub reward_text: __sdk::__query_builder::Col, pub narrative_binding: __sdk::__query_builder::Col, - pub steps: __sdk::__query_builder::Col>, - pub active_step_id: __sdk::__query_builder::Col>, + pub steps: __sdk::__query_builder::Col>, + pub active_step_id: __sdk::__query_builder::Col>, pub visible_stage: __sdk::__query_builder::Col, - pub hidden_flags: __sdk::__query_builder::Col>, - pub discovered_fact_ids: __sdk::__query_builder::Col>, - pub related_carrier_ids: __sdk::__query_builder::Col>, - pub consequence_ids: __sdk::__query_builder::Col>, + pub hidden_flags: __sdk::__query_builder::Col>, + pub discovered_fact_ids: __sdk::__query_builder::Col>, + pub related_carrier_ids: __sdk::__query_builder::Col>, + pub consequence_ids: __sdk::__query_builder::Col>, pub created_at: __sdk::__query_builder::Col, pub updated_at: __sdk::__query_builder::Col, - pub completed_at: __sdk::__query_builder::Col>, - pub turned_in_at: __sdk::__query_builder::Col>, + pub completed_at: __sdk::__query_builder::Col>, + pub turned_in_at: __sdk::__query_builder::Col>, } impl __sdk::__query_builder::HasCols for QuestRecord { @@ -117,7 +110,10 @@ impl __sdk::__query_builder::HasCols for QuestRecord { objective: __sdk::__query_builder::Col::new(table_name, "objective"), progress: __sdk::__query_builder::Col::new(table_name, "progress"), status: __sdk::__query_builder::Col::new(table_name, "status"), - completion_notified: __sdk::__query_builder::Col::new(table_name, "completion_notified"), + completion_notified: __sdk::__query_builder::Col::new( + table_name, + "completion_notified", + ), reward: __sdk::__query_builder::Col::new(table_name, "reward"), reward_text: __sdk::__query_builder::Col::new(table_name, "reward_text"), narrative_binding: __sdk::__query_builder::Col::new(table_name, "narrative_binding"), @@ -125,14 +121,19 @@ impl __sdk::__query_builder::HasCols for QuestRecord { active_step_id: __sdk::__query_builder::Col::new(table_name, "active_step_id"), visible_stage: __sdk::__query_builder::Col::new(table_name, "visible_stage"), hidden_flags: __sdk::__query_builder::Col::new(table_name, "hidden_flags"), - discovered_fact_ids: __sdk::__query_builder::Col::new(table_name, "discovered_fact_ids"), - related_carrier_ids: __sdk::__query_builder::Col::new(table_name, "related_carrier_ids"), + discovered_fact_ids: __sdk::__query_builder::Col::new( + table_name, + "discovered_fact_ids", + ), + related_carrier_ids: __sdk::__query_builder::Col::new( + table_name, + "related_carrier_ids", + ), consequence_ids: __sdk::__query_builder::Col::new(table_name, "consequence_ids"), created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"), completed_at: __sdk::__query_builder::Col::new(table_name, "completed_at"), turned_in_at: __sdk::__query_builder::Col::new(table_name, "turned_in_at"), - } } } @@ -154,11 +155,12 @@ impl __sdk::__query_builder::HasIxCols for QuestRecord { actor_user_id: __sdk::__query_builder::IxCol::new(table_name, "actor_user_id"), issuer_npc_id: __sdk::__query_builder::IxCol::new(table_name, "issuer_npc_id"), quest_id: __sdk::__query_builder::IxCol::new(table_name, "quest_id"), - runtime_session_id: __sdk::__query_builder::IxCol::new(table_name, "runtime_session_id"), - + runtime_session_id: __sdk::__query_builder::IxCol::new( + table_name, + "runtime_session_id", + ), } } } impl __sdk::__query_builder::CanBeLookupTable for QuestRecord {} - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/quest_reward_equipment_slot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/quest_reward_equipment_slot_type.rs index 333521e0..43a942c4 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/quest_reward_equipment_slot_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/quest_reward_equipment_slot_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -18,12 +13,8 @@ pub enum QuestRewardEquipmentSlot { Armor, Relic, - } - - impl __sdk::InModule for QuestRewardEquipmentSlot { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/quest_reward_intel_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/quest_reward_intel_type.rs index 560847bd..9938686a 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/quest_reward_intel_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/quest_reward_intel_type.rs @@ -2,23 +2,15 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +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 QuestRewardIntel { pub rumor_text: String, - pub unlocked_scene_id: Option::, + pub unlocked_scene_id: Option, } - impl __sdk::InModule for QuestRewardIntel { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/quest_reward_item_rarity_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/quest_reward_item_rarity_type.rs index 632c46aa..7fc4f7ec 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/quest_reward_item_rarity_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/quest_reward_item_rarity_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -22,12 +17,8 @@ pub enum QuestRewardItemRarity { Epic, Legendary, - } - - impl __sdk::InModule for QuestRewardItemRarity { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/quest_reward_item_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/quest_reward_item_type.rs index dc0af611..a62f9d93 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/quest_reward_item_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/quest_reward_item_type.rs @@ -2,15 +2,10 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::quest_reward_item_rarity_type::QuestRewardItemRarity; use super::quest_reward_equipment_slot_type::QuestRewardEquipmentSlot; +use super::quest_reward_item_rarity_type::QuestRewardItemRarity; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -18,17 +13,15 @@ pub struct QuestRewardItem { pub item_id: String, pub category: String, pub name: String, - pub description: Option::, + pub description: Option, pub quantity: u32, pub rarity: QuestRewardItemRarity, - pub tags: Vec::, + pub tags: Vec, pub stackable: bool, pub stack_key: String, - pub equipment_slot_id: Option::, + pub equipment_slot_id: Option, } - impl __sdk::InModule for QuestRewardItem { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/quest_reward_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/quest_reward_snapshot_type.rs index 55790858..995e84ad 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/quest_reward_snapshot_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/quest_reward_snapshot_type.rs @@ -2,29 +2,22 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::quest_reward_item_type::QuestRewardItem; use super::quest_reward_intel_type::QuestRewardIntel; +use super::quest_reward_item_type::QuestRewardItem; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] pub struct QuestRewardSnapshot { pub affinity_bonus: i32, pub currency: i64, - pub experience: Option::, - pub items: Vec::, - pub intel: Option::, - pub story_hint: Option::, + pub experience: Option, + pub items: Vec, + pub intel: Option, + pub story_hint: Option, } - impl __sdk::InModule for QuestRewardSnapshot { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/quest_scene_reached_signal_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/quest_scene_reached_signal_type.rs index d188fab1..723d9325 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/quest_scene_reached_signal_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/quest_scene_reached_signal_type.rs @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,8 +10,6 @@ pub struct QuestSceneReachedSignal { pub scene_id: String, } - impl __sdk::InModule for QuestSceneReachedSignal { 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 index 89cc2c6f..d93ff928 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::quest_progress_signal_type::QuestProgressSignal; @@ -19,8 +14,6 @@ pub struct QuestSignalApplyInput { 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_signal_kind_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/quest_signal_kind_type.rs index 0d36f2fa..04ea6661 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/quest_signal_kind_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/quest_signal_kind_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -24,12 +19,8 @@ pub enum QuestSignalKind { SceneReached, ItemDelivered, - } - - impl __sdk::InModule for QuestSignalKind { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/quest_status_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/quest_status_type.rs index 3ea098d8..f5defbb7 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/quest_status_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/quest_status_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -24,12 +19,8 @@ pub enum QuestStatus { Failed, Expired, - } - - impl __sdk::InModule for QuestStatus { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/quest_step_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/quest_step_snapshot_type.rs index c1e3bc1a..0f27cb9e 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/quest_step_snapshot_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/quest_step_snapshot_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::quest_objective_kind_type::QuestObjectiveKind; @@ -16,10 +11,10 @@ use super::quest_objective_kind_type::QuestObjectiveKind; pub struct QuestStepSnapshot { pub step_id: String, pub kind: QuestObjectiveKind, - pub target_hostile_npc_id: Option::, - pub target_npc_id: Option::, - pub target_scene_id: Option::, - pub target_item_id: Option::, + pub target_hostile_npc_id: Option, + pub target_npc_id: Option, + pub target_scene_id: Option, + pub target_item_id: Option, pub required_count: u32, pub progress: u32, pub title: String, @@ -27,8 +22,6 @@ pub struct QuestStepSnapshot { pub complete_text: String, } - impl __sdk::InModule for QuestStepSnapshot { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/quest_treasure_inspected_signal_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/quest_treasure_inspected_signal_type.rs index 8003e616..51caed77 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/quest_treasure_inspected_signal_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/quest_treasure_inspected_signal_type.rs @@ -2,22 +2,14 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +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 QuestTreasureInspectedSignal { - pub scene_id: Option::, + pub scene_id: Option, } - impl __sdk::InModule for QuestTreasureInspectedSignal { 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 index 9d87ae49..4f48a44a 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -17,8 +11,6 @@ pub struct QuestTurnInInput { 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/redeem_profile_referral_invite_code_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/redeem_profile_referral_invite_code_procedure.rs index b1f125b6..44354acd 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/redeem_profile_referral_invite_code_procedure.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/redeem_profile_referral_invite_code_procedure.rs @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::runtime_referral_redeem_input_type::RuntimeReferralRedeemInput; use super::runtime_referral_redeem_procedure_result_type::RuntimeReferralRedeemProcedureResult; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] - struct RedeemProfileReferralInviteCodeArgs { +struct RedeemProfileReferralInviteCodeArgs { pub input: RuntimeReferralRedeemInput, } - impl __sdk::InModule for RedeemProfileReferralInviteCodeArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for RedeemProfileReferralInviteCodeArgs { /// /// Implemented for [`super::RemoteProcedures`]. pub trait redeem_profile_referral_invite_code { - fn redeem_profile_referral_invite_code(&self, input: RuntimeReferralRedeemInput, -) { - self.redeem_profile_referral_invite_code_then(input, |_, _| {}); + fn redeem_profile_referral_invite_code(&self, input: RuntimeReferralRedeemInput) { + self.redeem_profile_referral_invite_code_then(input, |_, _| {}); } fn redeem_profile_referral_invite_code_then( &self, input: RuntimeReferralRedeemInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl redeem_profile_referral_invite_code for super::RemoteProcedures { &self, input: RuntimeReferralRedeemInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, RuntimeReferralRedeemProcedureResult>( - "redeem_profile_referral_invite_code", - RedeemProfileReferralInviteCodeArgs { input, }, - __callback, - ); + self.imp + .invoke_procedure_with_callback::<_, RuntimeReferralRedeemProcedureResult>( + "redeem_profile_referral_invite_code", + RedeemProfileReferralInviteCodeArgs { input }, + __callback, + ); } } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/refresh_session_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/refresh_session_type.rs index 5e7369e3..931fe680 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/refresh_session_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/refresh_session_type.rs @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -19,18 +13,16 @@ pub struct RefreshSession { pub issued_by_provider: String, pub client_info_json: String, pub expires_at: String, - pub revoked_at: Option::, + pub revoked_at: Option, pub created_at: String, pub updated_at: String, pub last_seen_at: String, } - impl __sdk::InModule for RefreshSession { type Module = super::RemoteModule; } - /// Column accessor struct for the table `RefreshSession`. /// /// Provides typed access to columns for query building. @@ -41,7 +33,7 @@ pub struct RefreshSessionCols { pub issued_by_provider: __sdk::__query_builder::Col, pub client_info_json: __sdk::__query_builder::Col, pub expires_at: __sdk::__query_builder::Col, - pub revoked_at: __sdk::__query_builder::Col>, + pub revoked_at: __sdk::__query_builder::Col>, pub created_at: __sdk::__query_builder::Col, pub updated_at: __sdk::__query_builder::Col, pub last_seen_at: __sdk::__query_builder::Col, @@ -61,7 +53,6 @@ impl __sdk::__query_builder::HasCols for RefreshSession { created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"), last_seen_at: __sdk::__query_builder::Col::new(table_name, "last_seen_at"), - } } } @@ -79,13 +70,14 @@ impl __sdk::__query_builder::HasIxCols for RefreshSession { type IxCols = RefreshSessionIxCols; fn ix_cols(table_name: &'static str) -> Self::IxCols { RefreshSessionIxCols { - refresh_token_hash: __sdk::__query_builder::IxCol::new(table_name, "refresh_token_hash"), + refresh_token_hash: __sdk::__query_builder::IxCol::new( + table_name, + "refresh_token_hash", + ), session_id: __sdk::__query_builder::IxCol::new(table_name, "session_id"), user_id: __sdk::__query_builder::IxCol::new(table_name, "user_id"), - } } } impl __sdk::__query_builder::CanBeLookupTable for RefreshSession {} - 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 index 9b886a0d..ac8aa07d 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 { +struct ResolveCombatActionAndReturnArgs { pub input: ResolveCombatActionInput, } - impl __sdk::InModule for ResolveCombatActionAndReturnArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for ResolveCombatActionAndReturnArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl resolve_combat_action_and_return for super::RemoteProcedures { &self, input: ResolveCombatActionInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, ResolveCombatActionProcedureResult>( - "resolve_combat_action_and_return", - ResolveCombatActionAndReturnArgs { input, }, - __callback, - ); + 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 index 72c6524f..7dea1c21 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -24,8 +18,6 @@ pub struct ResolveCombatActionInput { 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 index f21fc0ee..c7a13f85 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::resolve_combat_action_result_type::ResolveCombatActionResult; @@ -15,12 +10,10 @@ use super::resolve_combat_action_result_type::ResolveCombatActionResult; #[sats(crate = __lib)] pub struct ResolveCombatActionProcedureResult { pub ok: bool, - pub result: Option::, - pub error_message: Option::, + 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 index 1c3f29c9..41340e2f 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::resolve_combat_action_input_type::ResolveCombatActionInput; @@ -19,10 +14,8 @@ pub(super) struct ResolveCombatActionArgs { impl From for super::Reducer { fn from(args: ResolveCombatActionArgs) -> Self { - Self::ResolveCombatAction { - input: args.input, -} -} + Self::ResolveCombatAction { input: args.input } + } } impl __sdk::InModule for ResolveCombatActionArgs { @@ -40,9 +33,8 @@ pub trait resolve_combat_action { /// 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, |_, _| {}) + 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, @@ -70,7 +62,7 @@ impl resolve_combat_action for super::RemoteReducers { + Send + 'static, ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback(ResolveCombatActionArgs { input, }, callback) + 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 index 8057358f..b47e088c 100644 --- 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 @@ -2,15 +2,10 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::combat_outcome_type::CombatOutcome; 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)] @@ -21,8 +16,6 @@ pub struct ResolveCombatActionResult { 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 index 150fa443..ff4cca29 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::resolve_npc_battle_interaction_input_type::ResolveNpcBattleInteractionInput; 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 { +struct ResolveNpcBattleInteractionAndReturnArgs { pub input: ResolveNpcBattleInteractionInput, } - impl __sdk::InModule for ResolveNpcBattleInteractionAndReturnArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for ResolveNpcBattleInteractionAndReturnArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl resolve_npc_battle_interaction_and_return for super::RemoteProcedures { &self, input: ResolveNpcBattleInteractionInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, NpcBattleInteractionProcedureResult>( - "resolve_npc_battle_interaction_and_return", - ResolveNpcBattleInteractionAndReturnArgs { input, }, - __callback, - ); + 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 index 907cc7e2..e8eba7a6 100644 --- 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 @@ -2,15 +2,10 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::runtime_item_reward_item_snapshot_type::RuntimeItemRewardItemSnapshot; 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)] @@ -18,7 +13,7 @@ pub struct ResolveNpcBattleInteractionInput { pub npc_interaction: ResolveNpcInteractionInput, pub story_session_id: String, pub actor_user_id: String, - pub battle_state_id: Option::, + pub battle_state_id: Option, pub player_hp: i32, pub player_max_hp: i32, pub player_mana: i32, @@ -26,11 +21,9 @@ pub struct ResolveNpcBattleInteractionInput { pub target_hp: i32, pub target_max_hp: i32, pub experience_reward: u32, - pub reward_items: Vec::, + 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 index 4952a32a..aaba3d9c 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::resolve_npc_interaction_input_type::ResolveNpcInteractionInput; 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 { +struct ResolveNpcInteractionAndReturnArgs { pub input: ResolveNpcInteractionInput, } - impl __sdk::InModule for ResolveNpcInteractionAndReturnArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for ResolveNpcInteractionAndReturnArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl resolve_npc_interaction_and_return for super::RemoteProcedures { &self, input: ResolveNpcInteractionInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, NpcInteractionProcedureResult>( - "resolve_npc_interaction_and_return", - ResolveNpcInteractionAndReturnArgs { input, }, - __callback, - ); + 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 index d553ea4e..9a4439ce 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -17,12 +11,10 @@ pub struct ResolveNpcInteractionInput { pub npc_id: String, pub npc_name: String, pub interaction_function_id: String, - pub release_npc_id: Option::, + 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 index 37563788..52d213b5 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::resolve_npc_interaction_input_type::ResolveNpcInteractionInput; @@ -19,10 +14,8 @@ pub(super) struct ResolveNpcInteractionArgs { impl From for super::Reducer { fn from(args: ResolveNpcInteractionArgs) -> Self { - Self::ResolveNpcInteraction { - input: args.input, -} -} + Self::ResolveNpcInteraction { input: args.input } + } } impl __sdk::InModule for ResolveNpcInteractionArgs { @@ -40,9 +33,8 @@ pub trait resolve_npc_interaction { /// 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, |_, _| {}) + 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, @@ -70,7 +62,7 @@ impl resolve_npc_interaction for super::RemoteReducers { + Send + 'static, ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback(ResolveNpcInteractionArgs { input, }, callback) + 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 index 2411e620..c1425649 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::resolve_npc_social_action_input_type::ResolveNpcSocialActionInput; 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 { +struct ResolveNpcSocialActionAndReturnArgs { pub input: ResolveNpcSocialActionInput, } - impl __sdk::InModule for ResolveNpcSocialActionAndReturnArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for ResolveNpcSocialActionAndReturnArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl resolve_npc_social_action_and_return for super::RemoteProcedures { &self, input: ResolveNpcSocialActionInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, NpcStateProcedureResult>( - "resolve_npc_social_action_and_return", - ResolveNpcSocialActionAndReturnArgs { input, }, - __callback, - ); + 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 index 10df08b1..29487297 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::npc_social_action_kind_type::NpcSocialActionKind; @@ -18,13 +13,11 @@ pub struct ResolveNpcSocialActionInput { pub npc_id: String, pub npc_name: String, pub action_kind: NpcSocialActionKind, - pub affinity_gain_override: Option::, - pub note: Option::, + 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 index e8717b6f..28e5ce36 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::resolve_npc_social_action_input_type::ResolveNpcSocialActionInput; @@ -19,10 +14,8 @@ pub(super) struct ResolveNpcSocialActionArgs { impl From for super::Reducer { fn from(args: ResolveNpcSocialActionArgs) -> Self { - Self::ResolveNpcSocialAction { - input: args.input, -} -} + Self::ResolveNpcSocialAction { input: args.input } + } } impl __sdk::InModule for ResolveNpcSocialActionArgs { @@ -40,9 +33,8 @@ pub trait resolve_npc_social_action { /// 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, |_, _| {}) + 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, @@ -70,7 +62,7 @@ impl resolve_npc_social_action for super::RemoteReducers { + Send + 'static, ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback(ResolveNpcSocialActionArgs { input, }, callback) + 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 index cc50e10f..a224c122 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::treasure_resolve_input_type::TreasureResolveInput; 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 { +struct ResolveTreasureInteractionAndReturnArgs { pub input: TreasureResolveInput, } - impl __sdk::InModule for ResolveTreasureInteractionAndReturnArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for ResolveTreasureInteractionAndReturnArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl resolve_treasure_interaction_and_return for super::RemoteProcedures { &self, input: TreasureResolveInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, TreasureRecordProcedureResult>( - "resolve_treasure_interaction_and_return", - ResolveTreasureInteractionAndReturnArgs { input, }, - __callback, - ); + 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 index 6a830425..942b377a 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::treasure_resolve_input_type::TreasureResolveInput; @@ -19,10 +14,8 @@ pub(super) struct ResolveTreasureInteractionArgs { impl From for super::Reducer { fn from(args: ResolveTreasureInteractionArgs) -> Self { - Self::ResolveTreasureInteraction { - input: args.input, -} -} + Self::ResolveTreasureInteraction { input: args.input } + } } impl __sdk::InModule for ResolveTreasureInteractionArgs { @@ -40,9 +33,8 @@ pub trait resolve_treasure_interaction { /// 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, |_, _| {}) + 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, @@ -70,7 +62,7 @@ impl resolve_treasure_interaction for super::RemoteReducers { + Send + 'static, ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback(ResolveTreasureInteractionArgs { input, }, callback) + self.imp + .invoke_reducer_with_callback(ResolveTreasureInteractionArgs { 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 index 8505e52a..957c105f 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 { +struct ResumeProfileSaveArchiveAndReturnArgs { pub input: RuntimeProfileSaveArchiveResumeInput, } - impl __sdk::InModule for ResumeProfileSaveArchiveAndReturnArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for ResumeProfileSaveArchiveAndReturnArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl resume_profile_save_archive_and_return for super::RemoteProcedures { &self, input: RuntimeProfileSaveArchiveResumeInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, RuntimeProfileSaveArchiveProcedureResult>( - "resume_profile_save_archive_and_return", - ResumeProfileSaveArchiveAndReturnArgs { input, }, - __callback, - ); + 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/rpg_agent_draft_card_kind_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/rpg_agent_draft_card_kind_type.rs index 3888a866..e082dc36 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/rpg_agent_draft_card_kind_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/rpg_agent_draft_card_kind_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -32,12 +27,8 @@ pub enum RpgAgentDraftCardKind { Carrier, SidequestSeed, - } - - impl __sdk::InModule for RpgAgentDraftCardKind { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/rpg_agent_draft_card_status_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/rpg_agent_draft_card_status_type.rs index f890218d..391625f5 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/rpg_agent_draft_card_status_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/rpg_agent_draft_card_status_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -20,12 +15,8 @@ pub enum RpgAgentDraftCardStatus { Locked, Warning, - } - - impl __sdk::InModule for RpgAgentDraftCardStatus { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/rpg_agent_message_kind_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/rpg_agent_message_kind_type.rs index 180466b0..fc54a7b1 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/rpg_agent_message_kind_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/rpg_agent_message_kind_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -24,12 +19,8 @@ pub enum RpgAgentMessageKind { Warning, ActionResult, - } - - impl __sdk::InModule for RpgAgentMessageKind { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/rpg_agent_message_role_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/rpg_agent_message_role_type.rs index ad7e445b..67e383f2 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/rpg_agent_message_role_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/rpg_agent_message_role_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -18,12 +13,8 @@ pub enum RpgAgentMessageRole { Assistant, System, - } - - impl __sdk::InModule for RpgAgentMessageRole { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/rpg_agent_operation_status_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/rpg_agent_operation_status_type.rs index 42cd9fc2..555c0439 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/rpg_agent_operation_status_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/rpg_agent_operation_status_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -20,12 +15,8 @@ pub enum RpgAgentOperationStatus { Completed, Failed, - } - - impl __sdk::InModule for RpgAgentOperationStatus { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/rpg_agent_operation_type_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/rpg_agent_operation_type_type.rs index da820cbc..8ae1d00e 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/rpg_agent_operation_type_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/rpg_agent_operation_type_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -42,12 +37,8 @@ pub enum RpgAgentOperationType { PublishWorld, RevertCheckpoint, - } - - impl __sdk::InModule for RpgAgentOperationType { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/rpg_agent_stage_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/rpg_agent_stage_type.rs index b9d0cf0e..1a94e20f 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/rpg_agent_stage_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/rpg_agent_stage_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -30,12 +25,8 @@ pub enum RpgAgentStage { Published, Error, - } - - impl __sdk::InModule for RpgAgentStage { type Module = super::RemoteModule; } - 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 index 41fc6954..e5bc78f0 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,8 +10,6 @@ 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 index 5795bb3a..cdc31641 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,8 +10,6 @@ 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 index 9c02dd59..3721358f 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::runtime_browse_history_snapshot_type::RuntimeBrowseHistorySnapshot; @@ -15,12 +10,10 @@ use super::runtime_browse_history_snapshot_type::RuntimeBrowseHistorySnapshot; #[sats(crate = __lib)] pub struct RuntimeBrowseHistoryProcedureResult { pub ok: bool, - pub entries: Vec::, - pub error_message: Option::, + 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 index 05c404c1..9222eaed 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::runtime_browse_history_theme_mode_type::RuntimeBrowseHistoryThemeMode; @@ -21,7 +16,7 @@ pub struct RuntimeBrowseHistorySnapshot { pub world_name: String, pub subtitle: String, pub summary_text: String, - pub cover_image_src: Option::, + pub cover_image_src: Option, pub theme_mode: RuntimeBrowseHistoryThemeMode, pub author_display_name: String, pub visited_at_micros: i64, @@ -29,8 +24,6 @@ pub struct RuntimeBrowseHistorySnapshot { 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 index 09c9fb18..0996e66e 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::runtime_browse_history_write_input_type::RuntimeBrowseHistoryWriteInput; @@ -15,12 +10,10 @@ use super::runtime_browse_history_write_input_type::RuntimeBrowseHistoryWriteInp #[sats(crate = __lib)] pub struct RuntimeBrowseHistorySyncInput { pub user_id: String, - pub entries: Vec::, + 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_theme_mode_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_browse_history_theme_mode_type.rs index de120fac..fc8a1b11 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_browse_history_theme_mode_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/runtime_browse_history_theme_mode_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -24,12 +19,8 @@ pub enum RuntimeBrowseHistoryThemeMode { Rift, Mythic, - } - - impl __sdk::InModule for RuntimeBrowseHistoryThemeMode { 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 index fb087aac..9a54bd81 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,16 +10,14 @@ 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::, + 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 index 09374d4c..bf0e3103 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::runtime_inventory_state_snapshot_type::RuntimeInventoryStateSnapshot; @@ -15,12 +10,10 @@ use super::runtime_inventory_state_snapshot_type::RuntimeInventoryStateSnapshot; #[sats(crate = __lib)] pub struct RuntimeInventoryStateProcedureResult { pub ok: bool, - pub snapshot: Option::, - pub error_message: Option::, + 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 index 75c93962..e6b02ed3 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -17,8 +11,6 @@ pub struct RuntimeInventoryStateQueryInput { 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 index 7ab3ebea..624e66c6 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::inventory_slot_snapshot_type::InventorySlotSnapshot; @@ -16,12 +11,10 @@ use super::inventory_slot_snapshot_type::InventorySlotSnapshot; pub struct RuntimeInventoryStateSnapshot { pub runtime_session_id: String, pub actor_user_id: String, - pub backpack_items: Vec::, - pub equipment_items: Vec::, + 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_item_equipment_slot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_item_equipment_slot_type.rs index 01cd4888..b539d4f3 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_item_equipment_slot_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/runtime_item_equipment_slot_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -18,12 +13,8 @@ pub enum RuntimeItemEquipmentSlot { Armor, Relic, - } - - impl __sdk::InModule for RuntimeItemEquipmentSlot { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_item_reward_item_rarity_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_item_reward_item_rarity_type.rs index a3316ea0..dc4250ab 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_item_reward_item_rarity_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/runtime_item_reward_item_rarity_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -22,12 +17,8 @@ pub enum RuntimeItemRewardItemRarity { Epic, Legendary, - } - - impl __sdk::InModule for RuntimeItemRewardItemRarity { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_item_reward_item_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_item_reward_item_snapshot_type.rs index 65bcb55c..4df1f248 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_item_reward_item_snapshot_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/runtime_item_reward_item_snapshot_type.rs @@ -2,15 +2,10 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::runtime_item_reward_item_rarity_type::RuntimeItemRewardItemRarity; use super::runtime_item_equipment_slot_type::RuntimeItemEquipmentSlot; +use super::runtime_item_reward_item_rarity_type::RuntimeItemRewardItemRarity; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -18,17 +13,15 @@ pub struct RuntimeItemRewardItemSnapshot { pub item_id: String, pub category: String, pub item_name: String, - pub description: Option::, + pub description: Option, pub quantity: u32, pub rarity: RuntimeItemRewardItemRarity, - pub tags: Vec::, + pub tags: Vec, pub stackable: bool, pub stack_key: String, - pub equipment_slot_id: Option::, + pub equipment_slot_id: Option, } - impl __sdk::InModule for RuntimeItemRewardItemSnapshot { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_platform_theme_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_platform_theme_type.rs index 7eef5e97..cbb36c5d 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_platform_theme_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/runtime_platform_theme_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,12 +11,8 @@ pub enum RuntimePlatformTheme { Light, Dark, - } - - impl __sdk::InModule for RuntimePlatformTheme { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_dashboard_get_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_dashboard_get_input_type.rs index 9be0a158..47af88ec 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_dashboard_get_input_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_dashboard_get_input_type.rs @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,8 +10,6 @@ pub struct RuntimeProfileDashboardGetInput { pub user_id: String, } - impl __sdk::InModule for RuntimeProfileDashboardGetInput { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_dashboard_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_dashboard_procedure_result_type.rs index a04facbb..fa80a719 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_dashboard_procedure_result_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_dashboard_procedure_result_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::runtime_profile_dashboard_snapshot_type::RuntimeProfileDashboardSnapshot; @@ -15,12 +10,10 @@ use super::runtime_profile_dashboard_snapshot_type::RuntimeProfileDashboardSnaps #[sats(crate = __lib)] pub struct RuntimeProfileDashboardProcedureResult { pub ok: bool, - pub record: Option::, - pub error_message: Option::, + pub record: Option, + pub error_message: Option, } - impl __sdk::InModule for RuntimeProfileDashboardProcedureResult { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_dashboard_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_dashboard_snapshot_type.rs index 6a54e5ff..a3e97b05 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_dashboard_snapshot_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_dashboard_snapshot_type.rs @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -17,11 +11,9 @@ pub struct RuntimeProfileDashboardSnapshot { pub wallet_balance: u64, pub total_play_time_ms: u64, pub played_world_count: u32, - pub updated_at_micros: Option::, + pub updated_at_micros: Option, } - impl __sdk::InModule for RuntimeProfileDashboardSnapshot { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_membership_benefit_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_membership_benefit_snapshot_type.rs index adbf5c21..780977ed 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_membership_benefit_snapshot_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_membership_benefit_snapshot_type.rs @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -20,8 +14,6 @@ pub struct RuntimeProfileMembershipBenefitSnapshot { pub year_value: String, } - impl __sdk::InModule for RuntimeProfileMembershipBenefitSnapshot { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_membership_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_membership_snapshot_type.rs index 1dc13cd3..03026d21 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_membership_snapshot_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_membership_snapshot_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::runtime_profile_membership_status_type::RuntimeProfileMembershipStatus; use super::runtime_profile_membership_tier_type::RuntimeProfileMembershipTier; @@ -18,13 +13,11 @@ pub struct RuntimeProfileMembershipSnapshot { pub user_id: String, pub status: RuntimeProfileMembershipStatus, pub tier: RuntimeProfileMembershipTier, - pub started_at_micros: Option::, - pub expires_at_micros: Option::, - pub updated_at_micros: Option::, + pub started_at_micros: Option, + pub expires_at_micros: Option, + pub updated_at_micros: Option, } - impl __sdk::InModule for RuntimeProfileMembershipSnapshot { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_membership_status_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_membership_status_type.rs index 5090c29c..392a1576 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_membership_status_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_membership_status_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,12 +11,8 @@ pub enum RuntimeProfileMembershipStatus { Normal, Active, - } - - impl __sdk::InModule for RuntimeProfileMembershipStatus { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_membership_tier_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_membership_tier_type.rs index 1d8993ce..1799b3f2 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_membership_tier_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_membership_tier_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -20,12 +15,8 @@ pub enum RuntimeProfileMembershipTier { Season, Year, - } - - impl __sdk::InModule for RuntimeProfileMembershipTier { 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 index 99665ea0..825a6707 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,8 +10,6 @@ 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 index 24044b8b..5572f438 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::runtime_profile_play_stats_snapshot_type::RuntimeProfilePlayStatsSnapshot; @@ -15,12 +10,10 @@ use super::runtime_profile_play_stats_snapshot_type::RuntimeProfilePlayStatsSnap #[sats(crate = __lib)] pub struct RuntimeProfilePlayStatsProcedureResult { pub ok: bool, - pub record: Option::, - pub error_message: Option::, + 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 index e99d2e72..472a99c0 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::runtime_profile_played_world_snapshot_type::RuntimeProfilePlayedWorldSnapshot; @@ -16,12 +11,10 @@ use super::runtime_profile_played_world_snapshot_type::RuntimeProfilePlayedWorld pub struct RuntimeProfilePlayStatsSnapshot { pub user_id: String, pub total_play_time_ms: u64, - pub played_works: Vec::, - pub updated_at_micros: Option::, + 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 index f642a84d..fa6c1d2c 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,9 +10,9 @@ 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 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, @@ -26,8 +20,6 @@ pub struct RuntimeProfilePlayedWorldSnapshot { 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_recharge_center_get_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_recharge_center_get_input_type.rs index e4f5905c..51702dc6 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_recharge_center_get_input_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_recharge_center_get_input_type.rs @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,8 +10,6 @@ pub struct RuntimeProfileRechargeCenterGetInput { pub user_id: String, } - impl __sdk::InModule for RuntimeProfileRechargeCenterGetInput { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_recharge_center_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_recharge_center_procedure_result_type.rs index 7f12d30f..e9e055e0 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_recharge_center_procedure_result_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_recharge_center_procedure_result_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::runtime_profile_recharge_center_snapshot_type::RuntimeProfileRechargeCenterSnapshot; use super::runtime_profile_recharge_order_snapshot_type::RuntimeProfileRechargeOrderSnapshot; @@ -16,13 +11,11 @@ use super::runtime_profile_recharge_order_snapshot_type::RuntimeProfileRechargeO #[sats(crate = __lib)] pub struct RuntimeProfileRechargeCenterProcedureResult { pub ok: bool, - pub record: Option::, - pub order: Option::, - pub error_message: Option::, + pub record: Option, + pub order: Option, + pub error_message: Option, } - impl __sdk::InModule for RuntimeProfileRechargeCenterProcedureResult { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_recharge_center_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_recharge_center_snapshot_type.rs index 2833f415..a9f7f4ad 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_recharge_center_snapshot_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_recharge_center_snapshot_type.rs @@ -2,17 +2,12 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::runtime_profile_membership_snapshot_type::RuntimeProfileMembershipSnapshot; -use super::runtime_profile_recharge_product_snapshot_type::RuntimeProfileRechargeProductSnapshot; use super::runtime_profile_membership_benefit_snapshot_type::RuntimeProfileMembershipBenefitSnapshot; +use super::runtime_profile_membership_snapshot_type::RuntimeProfileMembershipSnapshot; use super::runtime_profile_recharge_order_snapshot_type::RuntimeProfileRechargeOrderSnapshot; +use super::runtime_profile_recharge_product_snapshot_type::RuntimeProfileRechargeProductSnapshot; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -20,15 +15,13 @@ pub struct RuntimeProfileRechargeCenterSnapshot { pub user_id: String, pub wallet_balance: u64, pub membership: RuntimeProfileMembershipSnapshot, - pub point_products: Vec::, - pub membership_products: Vec::, - pub benefits: Vec::, - pub latest_order: Option::, + pub point_products: Vec, + pub membership_products: Vec, + pub benefits: Vec, + pub latest_order: Option, pub has_points_recharged: bool, } - impl __sdk::InModule for RuntimeProfileRechargeCenterSnapshot { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_recharge_order_create_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_recharge_order_create_input_type.rs index de908fc5..7a4c7ee4 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_recharge_order_create_input_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_recharge_order_create_input_type.rs @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -19,8 +13,6 @@ pub struct RuntimeProfileRechargeOrderCreateInput { pub created_at_micros: i64, } - impl __sdk::InModule for RuntimeProfileRechargeOrderCreateInput { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_recharge_order_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_recharge_order_snapshot_type.rs index 9fc22b1b..d2beea3b 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_recharge_order_snapshot_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_recharge_order_snapshot_type.rs @@ -2,15 +2,10 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::runtime_profile_recharge_product_kind_type::RuntimeProfileRechargeProductKind; use super::runtime_profile_recharge_order_status_type::RuntimeProfileRechargeOrderStatus; +use super::runtime_profile_recharge_product_kind_type::RuntimeProfileRechargeProductKind; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -26,11 +21,9 @@ pub struct RuntimeProfileRechargeOrderSnapshot { pub paid_at_micros: i64, pub created_at_micros: i64, pub points_delta: i64, - pub membership_expires_at_micros: Option::, + pub membership_expires_at_micros: Option, } - impl __sdk::InModule for RuntimeProfileRechargeOrderSnapshot { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_recharge_order_status_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_recharge_order_status_type.rs index 619f6b6c..3a1f01a8 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_recharge_order_status_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_recharge_order_status_type.rs @@ -2,24 +2,15 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 RuntimeProfileRechargeOrderStatus { Paid, - } - - impl __sdk::InModule for RuntimeProfileRechargeOrderStatus { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_recharge_product_kind_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_recharge_product_kind_type.rs index a26d3762..362af979 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_recharge_product_kind_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_recharge_product_kind_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,12 +11,8 @@ pub enum RuntimeProfileRechargeProductKind { Points, Membership, - } - - impl __sdk::InModule for RuntimeProfileRechargeProductKind { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_recharge_product_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_recharge_product_snapshot_type.rs index 0ca44536..0aa2e5c1 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_recharge_product_snapshot_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_recharge_product_snapshot_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::runtime_profile_membership_tier_type::RuntimeProfileMembershipTier; use super::runtime_profile_recharge_product_kind_type::RuntimeProfileRechargeProductKind; @@ -27,8 +22,6 @@ pub struct RuntimeProfileRechargeProductSnapshot { pub tier: RuntimeProfileMembershipTier, } - impl __sdk::InModule for RuntimeProfileRechargeProductSnapshot { 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 index 89524eb1..29eea52e 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,8 +10,6 @@ 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 index 7c8e7b07..4f4d5c0c 100644 --- 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 @@ -2,28 +2,21 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::runtime_snapshot_type::RuntimeSnapshot; 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::, + 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 index a290bf1f..186de3e0 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -17,8 +11,6 @@ pub struct RuntimeProfileSaveArchiveResumeInput { 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 index d88a1fab..9843ec8c 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,23 +10,21 @@ 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 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 cover_image_src: Option, pub saved_at_micros: i64, pub bottom_tab: String, pub game_state_json: String, - pub current_story_json: Option::, + 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_profile_wallet_ledger_entry_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_wallet_ledger_entry_snapshot_type.rs index e4aa66b2..8513884e 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_wallet_ledger_entry_snapshot_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_wallet_ledger_entry_snapshot_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::runtime_profile_wallet_ledger_source_type_type::RuntimeProfileWalletLedgerSourceType; @@ -22,8 +17,6 @@ pub struct RuntimeProfileWalletLedgerEntrySnapshot { pub created_at_micros: i64, } - impl __sdk::InModule for RuntimeProfileWalletLedgerEntrySnapshot { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_wallet_ledger_list_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_wallet_ledger_list_input_type.rs index 10d9d0ff..e8a1c111 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_wallet_ledger_list_input_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_wallet_ledger_list_input_type.rs @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,8 +10,6 @@ pub struct RuntimeProfileWalletLedgerListInput { pub user_id: String, } - impl __sdk::InModule for RuntimeProfileWalletLedgerListInput { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_wallet_ledger_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_wallet_ledger_procedure_result_type.rs index 809092ae..1c0a2b05 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_wallet_ledger_procedure_result_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_wallet_ledger_procedure_result_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::runtime_profile_wallet_ledger_entry_snapshot_type::RuntimeProfileWalletLedgerEntrySnapshot; @@ -15,12 +10,10 @@ use super::runtime_profile_wallet_ledger_entry_snapshot_type::RuntimeProfileWall #[sats(crate = __lib)] pub struct RuntimeProfileWalletLedgerProcedureResult { pub ok: bool, - pub entries: Vec::, - pub error_message: Option::, + pub entries: Vec, + pub error_message: Option, } - impl __sdk::InModule for RuntimeProfileWalletLedgerProcedureResult { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_wallet_ledger_source_type_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_wallet_ledger_source_type_type.rs index 8b301e79..7f9f63a4 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_wallet_ledger_source_type_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_wallet_ledger_source_type_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -20,12 +15,8 @@ pub enum RuntimeProfileWalletLedgerSourceType { InviteInviteeReward, PointsRecharge, - } - - impl __sdk::InModule for RuntimeProfileWalletLedgerSourceType { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_referral_invite_center_get_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_referral_invite_center_get_input_type.rs index 386a9cf9..df7f21d9 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_referral_invite_center_get_input_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/runtime_referral_invite_center_get_input_type.rs @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,8 +10,6 @@ pub struct RuntimeReferralInviteCenterGetInput { pub user_id: String, } - impl __sdk::InModule for RuntimeReferralInviteCenterGetInput { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_referral_invite_center_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_referral_invite_center_procedure_result_type.rs index 397a3ebe..bee7cfc2 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_referral_invite_center_procedure_result_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/runtime_referral_invite_center_procedure_result_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::runtime_referral_invite_center_snapshot_type::RuntimeReferralInviteCenterSnapshot; @@ -15,12 +10,10 @@ use super::runtime_referral_invite_center_snapshot_type::RuntimeReferralInviteCe #[sats(crate = __lib)] pub struct RuntimeReferralInviteCenterProcedureResult { pub ok: bool, - pub record: Option::, - pub error_message: Option::, + pub record: Option, + pub error_message: Option, } - impl __sdk::InModule for RuntimeReferralInviteCenterProcedureResult { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_referral_invite_center_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_referral_invite_center_snapshot_type.rs index 498f3881..ca50d69f 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_referral_invite_center_snapshot_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/runtime_referral_invite_center_snapshot_type.rs @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -22,13 +16,11 @@ pub struct RuntimeReferralInviteCenterSnapshot { pub today_inviter_reward_remaining: u32, pub reward_points: u64, pub has_redeemed_code: bool, - pub bound_inviter_user_id: Option::, - pub bound_at_micros: Option::, + pub bound_inviter_user_id: Option, + pub bound_at_micros: Option, pub updated_at_micros: i64, } - impl __sdk::InModule for RuntimeReferralInviteCenterSnapshot { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_referral_redeem_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_referral_redeem_input_type.rs index 12bc8e73..0a667782 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_referral_redeem_input_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/runtime_referral_redeem_input_type.rs @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -18,8 +12,6 @@ pub struct RuntimeReferralRedeemInput { pub updated_at_micros: i64, } - impl __sdk::InModule for RuntimeReferralRedeemInput { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_referral_redeem_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_referral_redeem_procedure_result_type.rs index aaf63756..c642c4b2 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_referral_redeem_procedure_result_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/runtime_referral_redeem_procedure_result_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::runtime_referral_redeem_snapshot_type::RuntimeReferralRedeemSnapshot; @@ -15,12 +10,10 @@ use super::runtime_referral_redeem_snapshot_type::RuntimeReferralRedeemSnapshot; #[sats(crate = __lib)] pub struct RuntimeReferralRedeemProcedureResult { pub ok: bool, - pub record: Option::, - pub error_message: Option::, + pub record: Option, + pub error_message: Option, } - impl __sdk::InModule for RuntimeReferralRedeemProcedureResult { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_referral_redeem_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_referral_redeem_snapshot_type.rs index 04c68e48..5bbf2da3 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_referral_redeem_snapshot_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/runtime_referral_redeem_snapshot_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::runtime_referral_invite_center_snapshot_type::RuntimeReferralInviteCenterSnapshot; @@ -21,8 +16,6 @@ pub struct RuntimeReferralRedeemSnapshot { pub inviter_balance_after: u64, } - impl __sdk::InModule for RuntimeReferralRedeemSnapshot { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_setting_get_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_setting_get_input_type.rs index 555c7863..1b83318a 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_setting_get_input_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/runtime_setting_get_input_type.rs @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,8 +10,6 @@ pub struct RuntimeSettingGetInput { pub user_id: String, } - impl __sdk::InModule for RuntimeSettingGetInput { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_setting_procedure_result_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_setting_procedure_result_type.rs index e823af97..792e33d4 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_setting_procedure_result_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/runtime_setting_procedure_result_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::runtime_setting_snapshot_type::RuntimeSettingSnapshot; @@ -15,12 +10,10 @@ use super::runtime_setting_snapshot_type::RuntimeSettingSnapshot; #[sats(crate = __lib)] pub struct RuntimeSettingProcedureResult { pub ok: bool, - pub record: Option::, - pub error_message: Option::, + pub record: Option, + pub error_message: Option, } - impl __sdk::InModule for RuntimeSettingProcedureResult { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_setting_snapshot_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_setting_snapshot_type.rs index 6d6ebae1..5d92990f 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_setting_snapshot_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/runtime_setting_snapshot_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::runtime_platform_theme_type::RuntimePlatformTheme; @@ -21,8 +16,6 @@ pub struct RuntimeSettingSnapshot { pub updated_at_micros: i64, } - impl __sdk::InModule for RuntimeSettingSnapshot { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_setting_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_setting_type.rs index f3c72f73..5a7b61b0 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_setting_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/runtime_setting_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::runtime_platform_theme_type::RuntimePlatformTheme; @@ -21,12 +16,10 @@ pub struct RuntimeSetting { pub updated_at: __sdk::Timestamp, } - impl __sdk::InModule for RuntimeSetting { type Module = super::RemoteModule; } - /// Column accessor struct for the table `RuntimeSetting`. /// /// Provides typed access to columns for query building. @@ -47,7 +40,6 @@ impl __sdk::__query_builder::HasCols for RuntimeSetting { platform_theme: __sdk::__query_builder::Col::new(table_name, "platform_theme"), created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"), - } } } @@ -64,10 +56,8 @@ impl __sdk::__query_builder::HasIxCols for RuntimeSetting { fn ix_cols(table_name: &'static str) -> Self::IxCols { RuntimeSettingIxCols { user_id: __sdk::__query_builder::IxCol::new(table_name, "user_id"), - } } } impl __sdk::__query_builder::CanBeLookupTable for RuntimeSetting {} - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/runtime_setting_upsert_input_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_setting_upsert_input_type.rs index 347e1675..7091bc8d 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_setting_upsert_input_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/runtime_setting_upsert_input_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::runtime_platform_theme_type::RuntimePlatformTheme; @@ -20,8 +15,6 @@ pub struct RuntimeSettingUpsertInput { pub updated_at_micros: i64, } - impl __sdk::InModule for RuntimeSettingUpsertInput { 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 index 251417e4..53bb194c 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,8 +10,6 @@ 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 index 7340dbf6..c19034c6 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,8 +10,6 @@ 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 index 466a3e41..4066d915 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::runtime_snapshot_type::RuntimeSnapshot; @@ -15,12 +10,10 @@ use super::runtime_snapshot_type::RuntimeSnapshot; #[sats(crate = __lib)] pub struct RuntimeSnapshotProcedureResult { pub ok: bool, - pub record: Option::, - pub error_message: Option::, + 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_row_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/runtime_snapshot_row_type.rs index 8eec233a..da66941e 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/runtime_snapshot_row_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/runtime_snapshot_row_type.rs @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -18,17 +12,15 @@ pub struct RuntimeSnapshotRow { pub saved_at: __sdk::Timestamp, pub bottom_tab: String, pub game_state_json: String, - pub current_story_json: Option::, + pub current_story_json: Option, pub created_at: __sdk::Timestamp, pub updated_at: __sdk::Timestamp, } - impl __sdk::InModule for RuntimeSnapshotRow { type Module = super::RemoteModule; } - /// Column accessor struct for the table `RuntimeSnapshotRow`. /// /// Provides typed access to columns for query building. @@ -38,7 +30,7 @@ pub struct RuntimeSnapshotRowCols { pub saved_at: __sdk::__query_builder::Col, pub bottom_tab: __sdk::__query_builder::Col, pub game_state_json: __sdk::__query_builder::Col, - pub current_story_json: __sdk::__query_builder::Col>, + pub current_story_json: __sdk::__query_builder::Col>, pub created_at: __sdk::__query_builder::Col, pub updated_at: __sdk::__query_builder::Col, } @@ -55,7 +47,6 @@ impl __sdk::__query_builder::HasCols for RuntimeSnapshotRow { current_story_json: __sdk::__query_builder::Col::new(table_name, "current_story_json"), created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"), - } } } @@ -72,10 +63,8 @@ impl __sdk::__query_builder::HasIxCols for RuntimeSnapshotRow { fn ix_cols(table_name: &'static str) -> Self::IxCols { RuntimeSnapshotRowIxCols { user_id: __sdk::__query_builder::IxCol::new(table_name, "user_id"), - } } } impl __sdk::__query_builder::CanBeLookupTable for RuntimeSnapshotRow {} - 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 index e8ede33b..1e9e14ad 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -18,13 +12,11 @@ pub struct RuntimeSnapshot { pub saved_at_micros: i64, pub bottom_tab: String, pub game_state_json: String, - pub current_story_json: Option::, + 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 index 2379473f..9b3c75df 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -17,12 +11,10 @@ pub struct RuntimeSnapshotUpsertInput { pub saved_at_micros: i64, pub bottom_tab: String, pub game_state_json: String, - pub current_story_json: Option::, + 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_generated_images_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/save_puzzle_generated_images_procedure.rs index 15ccc81f..85d17456 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 { +struct SavePuzzleGeneratedImagesArgs { pub input: PuzzleGeneratedImagesSaveInput, } - impl __sdk::InModule for SavePuzzleGeneratedImagesArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for SavePuzzleGeneratedImagesArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl save_puzzle_generated_images for super::RemoteProcedures { &self, input: PuzzleGeneratedImagesSaveInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, PuzzleAgentSessionProcedureResult>( - "save_puzzle_generated_images", - SavePuzzleGeneratedImagesArgs { input, }, - __callback, - ); + 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/select_puzzle_cover_image_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/select_puzzle_cover_image_procedure.rs index b12bb89a..9dde8aaa 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 { +struct SelectPuzzleCoverImageArgs { pub input: PuzzleSelectCoverImageInput, } - impl __sdk::InModule for SelectPuzzleCoverImageArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for SelectPuzzleCoverImageArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl select_puzzle_cover_image for super::RemoteProcedures { &self, input: PuzzleSelectCoverImageInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, PuzzleAgentSessionProcedureResult>( - "select_puzzle_cover_image", - SelectPuzzleCoverImageArgs { input, }, - __callback, - ); + 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/start_ai_task_reducer.rs b/server-rs/crates/spacetime-client/src/module_bindings/start_ai_task_reducer.rs index 44e89238..5809736b 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/start_ai_task_reducer.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/start_ai_task_reducer.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::ai_task_start_input_type::AiTaskStartInput; @@ -19,10 +14,8 @@ pub(super) struct StartAiTaskArgs { impl From for super::Reducer { fn from(args: StartAiTaskArgs) -> Self { - Self::StartAiTask { - input: args.input, -} -} + Self::StartAiTask { input: args.input } + } } impl __sdk::InModule for StartAiTaskArgs { @@ -40,9 +33,8 @@ pub trait start_ai_task { /// The reducer will run asynchronously in the future, /// and this method provides no way to listen for its completion status. /// /// Use [`start_ai_task:start_ai_task_then`] to run a callback after the reducer completes. - fn start_ai_task(&self, input: AiTaskStartInput, -) -> __sdk::Result<()> { - self.start_ai_task_then(input, |_, _| {}) + fn start_ai_task(&self, input: AiTaskStartInput) -> __sdk::Result<()> { + self.start_ai_task_then(input, |_, _| {}) } /// Request that the remote module invoke the reducer `start_ai_task` to run as soon as possible, @@ -70,7 +62,7 @@ impl start_ai_task for super::RemoteReducers { + Send + 'static, ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback(StartAiTaskArgs { input, }, callback) + self.imp + .invoke_reducer_with_callback(StartAiTaskArgs { input }, callback) } } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/start_ai_task_stage_reducer.rs b/server-rs/crates/spacetime-client/src/module_bindings/start_ai_task_stage_reducer.rs index 74b85d62..1d7b7582 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/start_ai_task_stage_reducer.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/start_ai_task_stage_reducer.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::ai_task_stage_start_input_type::AiTaskStageStartInput; @@ -19,10 +14,8 @@ pub(super) struct StartAiTaskStageArgs { impl From for super::Reducer { fn from(args: StartAiTaskStageArgs) -> Self { - Self::StartAiTaskStage { - input: args.input, -} -} + Self::StartAiTaskStage { input: args.input } + } } impl __sdk::InModule for StartAiTaskStageArgs { @@ -40,9 +33,8 @@ pub trait start_ai_task_stage { /// The reducer will run asynchronously in the future, /// and this method provides no way to listen for its completion status. /// /// Use [`start_ai_task_stage:start_ai_task_stage_then`] to run a callback after the reducer completes. - fn start_ai_task_stage(&self, input: AiTaskStageStartInput, -) -> __sdk::Result<()> { - self.start_ai_task_stage_then(input, |_, _| {}) + fn start_ai_task_stage(&self, input: AiTaskStageStartInput) -> __sdk::Result<()> { + self.start_ai_task_stage_then(input, |_, _| {}) } /// Request that the remote module invoke the reducer `start_ai_task_stage` to run as soon as possible, @@ -70,7 +62,7 @@ impl start_ai_task_stage for super::RemoteReducers { + Send + 'static, ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback(StartAiTaskStageArgs { input, }, callback) + self.imp + .invoke_reducer_with_callback(StartAiTaskStageArgs { 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 index b9b3b28c..7f3713ab 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 { +struct StartBigFishRunArgs { pub input: BigFishRunStartInput, } - impl __sdk::InModule for StartBigFishRunArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for StartBigFishRunArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl start_big_fish_run for super::RemoteProcedures { &self, input: BigFishRunStartInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, BigFishRunProcedureResult>( - "start_big_fish_run", - StartBigFishRunArgs { input, }, - __callback, - ); + 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_puzzle_run_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/start_puzzle_run_procedure.rs index 849856c8..b6baeb83 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 { +struct StartPuzzleRunArgs { pub input: PuzzleRunStartInput, } - impl __sdk::InModule for StartPuzzleRunArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for StartPuzzleRunArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl start_puzzle_run for super::RemoteProcedures { &self, input: PuzzleRunStartInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, PuzzleRunProcedureResult>( - "start_puzzle_run", - StartPuzzleRunArgs { input, }, - __callback, - ); + self.imp + .invoke_procedure_with_callback::<_, PuzzleRunProcedureResult>( + "start_puzzle_run", + StartPuzzleRunArgs { 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 index d84dde42..e0b3f730 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,12 +10,10 @@ pub struct StoryContinueInput { pub story_session_id: String, pub event_id: String, pub narrative_text: String, - pub choice_function_id: Option::, + 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_kind_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/story_event_kind_type.rs index 1072867e..29836b4a 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/story_event_kind_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/story_event_kind_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,12 +11,8 @@ pub enum StoryEventKind { SessionStarted, StoryContinued, - } - - impl __sdk::InModule for StoryEventKind { 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 index 4afacc4a..881799d5 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::story_event_kind_type::StoryEventKind; @@ -18,12 +13,10 @@ pub struct StoryEventSnapshot { pub story_session_id: String, pub event_kind: StoryEventKind, pub narrative_text: String, - pub choice_function_id: Option::, + 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_event_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/story_event_type.rs index 3c9c102d..4d3bdd9f 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/story_event_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/story_event_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::story_event_kind_type::StoryEventKind; @@ -18,16 +13,14 @@ pub struct StoryEvent { pub story_session_id: String, pub event_kind: StoryEventKind, pub narrative_text: String, - pub choice_function_id: Option::, + pub choice_function_id: Option, pub created_at: __sdk::Timestamp, } - impl __sdk::InModule for StoryEvent { type Module = super::RemoteModule; } - /// Column accessor struct for the table `StoryEvent`. /// /// Provides typed access to columns for query building. @@ -36,7 +29,7 @@ pub struct StoryEventCols { pub story_session_id: __sdk::__query_builder::Col, pub event_kind: __sdk::__query_builder::Col, pub narrative_text: __sdk::__query_builder::Col, - pub choice_function_id: __sdk::__query_builder::Col>, + pub choice_function_id: __sdk::__query_builder::Col>, pub created_at: __sdk::__query_builder::Col, } @@ -50,7 +43,6 @@ impl __sdk::__query_builder::HasCols for StoryEvent { narrative_text: __sdk::__query_builder::Col::new(table_name, "narrative_text"), choice_function_id: __sdk::__query_builder::Col::new(table_name, "choice_function_id"), created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), - } } } @@ -69,10 +61,8 @@ impl __sdk::__query_builder::HasIxCols for StoryEvent { StoryEventIxCols { event_id: __sdk::__query_builder::IxCol::new(table_name, "event_id"), story_session_id: __sdk::__query_builder::IxCol::new(table_name, "story_session_id"), - } } } impl __sdk::__query_builder::CanBeLookupTable for StoryEvent {} - 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 index 260fc1e4..bebf3267 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -18,12 +12,10 @@ pub struct StorySessionInput { pub actor_user_id: String, pub world_profile_id: String, pub initial_prompt: String, - pub opening_summary: Option::, + 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 index 3e1cfa4f..4548d9cc 100644 --- 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 @@ -2,27 +2,20 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::story_session_snapshot_type::StorySessionSnapshot; 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::, + 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 index 46f1072f..b8d2daf6 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::story_session_status_type::StorySessionStatus; @@ -19,17 +14,15 @@ pub struct StorySessionSnapshot { pub actor_user_id: String, pub world_profile_id: String, pub initial_prompt: String, - pub opening_summary: Option::, + pub opening_summary: Option, pub latest_narrative_text: String, - pub latest_choice_function_id: Option::, + 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 index 5e4e1476..d860b7db 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,8 +10,6 @@ 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 index c33c4c77..cf2148d6 100644 --- 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 @@ -2,27 +2,20 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::story_session_snapshot_type::StorySessionSnapshot; 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::, + 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/story_session_status_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/story_session_status_type.rs index 334433fa..f04aae19 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/story_session_status_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/story_session_status_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -18,12 +13,8 @@ pub enum StorySessionStatus { Completed, Archived, - } - - impl __sdk::InModule for StorySessionStatus { type Module = super::RemoteModule; } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/story_session_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/story_session_type.rs index 7fd0c7e9..f9534179 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/story_session_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/story_session_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::story_session_status_type::StorySessionStatus; @@ -19,21 +14,19 @@ pub struct StorySession { pub actor_user_id: String, pub world_profile_id: String, pub initial_prompt: String, - pub opening_summary: Option::, + pub opening_summary: Option, pub latest_narrative_text: String, - pub latest_choice_function_id: Option::, + pub latest_choice_function_id: Option, pub status: StorySessionStatus, pub version: u32, pub created_at: __sdk::Timestamp, pub updated_at: __sdk::Timestamp, } - impl __sdk::InModule for StorySession { type Module = super::RemoteModule; } - /// Column accessor struct for the table `StorySession`. /// /// Provides typed access to columns for query building. @@ -43,9 +36,9 @@ pub struct StorySessionCols { pub actor_user_id: __sdk::__query_builder::Col, pub world_profile_id: __sdk::__query_builder::Col, pub initial_prompt: __sdk::__query_builder::Col, - pub opening_summary: __sdk::__query_builder::Col>, + pub opening_summary: __sdk::__query_builder::Col>, pub latest_narrative_text: __sdk::__query_builder::Col, - pub latest_choice_function_id: __sdk::__query_builder::Col>, + pub latest_choice_function_id: __sdk::__query_builder::Col>, pub status: __sdk::__query_builder::Col, pub version: __sdk::__query_builder::Col, pub created_at: __sdk::__query_builder::Col, @@ -62,13 +55,18 @@ impl __sdk::__query_builder::HasCols for StorySession { world_profile_id: __sdk::__query_builder::Col::new(table_name, "world_profile_id"), initial_prompt: __sdk::__query_builder::Col::new(table_name, "initial_prompt"), opening_summary: __sdk::__query_builder::Col::new(table_name, "opening_summary"), - latest_narrative_text: __sdk::__query_builder::Col::new(table_name, "latest_narrative_text"), - latest_choice_function_id: __sdk::__query_builder::Col::new(table_name, "latest_choice_function_id"), + latest_narrative_text: __sdk::__query_builder::Col::new( + table_name, + "latest_narrative_text", + ), + latest_choice_function_id: __sdk::__query_builder::Col::new( + table_name, + "latest_choice_function_id", + ), status: __sdk::__query_builder::Col::new(table_name, "status"), version: __sdk::__query_builder::Col::new(table_name, "version"), created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"), - } } } @@ -87,12 +85,13 @@ impl __sdk::__query_builder::HasIxCols for StorySession { fn ix_cols(table_name: &'static str) -> Self::IxCols { StorySessionIxCols { actor_user_id: __sdk::__query_builder::IxCol::new(table_name, "actor_user_id"), - runtime_session_id: __sdk::__query_builder::IxCol::new(table_name, "runtime_session_id"), + runtime_session_id: __sdk::__query_builder::IxCol::new( + table_name, + "runtime_session_id", + ), story_session_id: __sdk::__query_builder::IxCol::new(table_name, "story_session_id"), - } } } impl __sdk::__query_builder::CanBeLookupTable for StorySession {} - 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 index b6e481b4..21e8f82d 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::big_fish_run_procedure_result_type::BigFishRunProcedureResult; use super::big_fish_run_input_submit_input_type::BigFishRunInputSubmitInput; +use super::big_fish_run_procedure_result_type::BigFishRunProcedureResult; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] - struct SubmitBigFishInputArgs { +struct SubmitBigFishInputArgs { pub input: BigFishRunInputSubmitInput, } - impl __sdk::InModule for SubmitBigFishInputArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for SubmitBigFishInputArgs { /// /// Implemented for [`super::RemoteProcedures`]. pub trait submit_big_fish_input { - fn submit_big_fish_input(&self, input: BigFishRunInputSubmitInput, -) { - self.submit_big_fish_input_then(input, |_, _| {}); + fn submit_big_fish_input(&self, input: BigFishRunInputSubmitInput) { + self.submit_big_fish_input_then(input, |_, _| {}); } fn submit_big_fish_input_then( &self, input: BigFishRunInputSubmitInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl submit_big_fish_input for super::RemoteProcedures { &self, input: BigFishRunInputSubmitInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, BigFishRunProcedureResult>( - "submit_big_fish_input", - SubmitBigFishInputArgs { input, }, - __callback, - ); + 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 index 0fd8dc0d..0dbc0118 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::big_fish_session_procedure_result_type::BigFishSessionProcedureResult; 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 { +struct SubmitBigFishMessageArgs { pub input: BigFishMessageSubmitInput, } - impl __sdk::InModule for SubmitBigFishMessageArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for SubmitBigFishMessageArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl submit_big_fish_message for super::RemoteProcedures { &self, input: BigFishMessageSubmitInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, BigFishSessionProcedureResult>( - "submit_big_fish_message", - SubmitBigFishMessageArgs { input, }, - __callback, - ); + 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 index efb1c0b3..c5e8def1 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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_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 { +struct SubmitCustomWorldAgentMessageArgs { pub input: CustomWorldAgentMessageSubmitInput, } - impl __sdk::InModule for SubmitCustomWorldAgentMessageArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for SubmitCustomWorldAgentMessageArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl submit_custom_world_agent_message for super::RemoteProcedures { &self, input: CustomWorldAgentMessageSubmitInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, CustomWorldAgentOperationProcedureResult>( - "submit_custom_world_agent_message", - SubmitCustomWorldAgentMessageArgs { input, }, - __callback, - ); + 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_puzzle_agent_message_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/submit_puzzle_agent_message_procedure.rs index 4bca696e..b5b2b090 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::puzzle_agent_session_procedure_result_type::PuzzleAgentSessionProcedureResult; 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 { +struct SubmitPuzzleAgentMessageArgs { pub input: PuzzleAgentMessageSubmitInput, } - impl __sdk::InModule for SubmitPuzzleAgentMessageArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for SubmitPuzzleAgentMessageArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl submit_puzzle_agent_message for super::RemoteProcedures { &self, input: PuzzleAgentMessageSubmitInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, PuzzleAgentSessionProcedureResult>( - "submit_puzzle_agent_message", - SubmitPuzzleAgentMessageArgs { input, }, - __callback, - ); + 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/swap_puzzle_pieces_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/swap_puzzle_pieces_procedure.rs index dfcb2750..9c6a1337 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 { +struct SwapPuzzlePiecesArgs { pub input: PuzzleRunSwapInput, } - impl __sdk::InModule for SwapPuzzlePiecesArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for SwapPuzzlePiecesArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl swap_puzzle_pieces for super::RemoteProcedures { &self, input: PuzzleRunSwapInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, PuzzleRunProcedureResult>( - "swap_puzzle_pieces", - SwapPuzzlePiecesArgs { input, }, - __callback, - ); + 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_interaction_action_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/treasure_interaction_action_type.rs index 77e48673..a9b61b0e 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/treasure_interaction_action_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/treasure_interaction_action_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -18,12 +13,8 @@ pub enum TreasureInteractionAction { Leave, Secure, - } - - impl __sdk::InModule for TreasureInteractionAction { type Module = super::RemoteModule; } - 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 index 212c4042..d0ac0175 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::treasure_record_snapshot_type::TreasureRecordSnapshot; @@ -15,12 +10,10 @@ use super::treasure_record_snapshot_type::TreasureRecordSnapshot; #[sats(crate = __lib)] pub struct TreasureRecordProcedureResult { pub ok: bool, - pub record: Option::, - pub error_message: Option::, + 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 index 29677339..8d69d10e 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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; @@ -21,20 +16,18 @@ pub struct TreasureRecordSnapshot { pub actor_user_id: String, pub encounter_id: String, pub encounter_name: String, - pub scene_id: Option::, - pub scene_name: Option::, + pub scene_id: Option, + pub scene_name: Option, pub action: TreasureInteractionAction, - pub reward_items: Vec::, + pub reward_items: Vec, pub reward_hp: u32, pub reward_mana: u32, pub reward_currency: u32, - pub story_hint: Option::, + 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_record_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/treasure_record_type.rs index e757734f..9bcd8f6d 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/treasure_record_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/treasure_record_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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; @@ -21,24 +16,22 @@ pub struct TreasureRecord { pub actor_user_id: String, pub encounter_id: String, pub encounter_name: String, - pub scene_id: Option::, - pub scene_name: Option::, + pub scene_id: Option, + pub scene_name: Option, pub action: TreasureInteractionAction, - pub reward_items: Vec::, + pub reward_items: Vec, pub reward_hp: u32, pub reward_mana: u32, pub reward_currency: u32, - pub story_hint: Option::, + pub story_hint: Option, pub created_at: __sdk::Timestamp, pub updated_at: __sdk::Timestamp, } - impl __sdk::InModule for TreasureRecord { type Module = super::RemoteModule; } - /// Column accessor struct for the table `TreasureRecord`. /// /// Provides typed access to columns for query building. @@ -49,14 +42,15 @@ pub struct TreasureRecordCols { pub actor_user_id: __sdk::__query_builder::Col, pub encounter_id: __sdk::__query_builder::Col, pub encounter_name: __sdk::__query_builder::Col, - pub scene_id: __sdk::__query_builder::Col>, - pub scene_name: __sdk::__query_builder::Col>, + pub scene_id: __sdk::__query_builder::Col>, + pub scene_name: __sdk::__query_builder::Col>, pub action: __sdk::__query_builder::Col, - pub reward_items: __sdk::__query_builder::Col>, + pub reward_items: + __sdk::__query_builder::Col>, pub reward_hp: __sdk::__query_builder::Col, pub reward_mana: __sdk::__query_builder::Col, pub reward_currency: __sdk::__query_builder::Col, - pub story_hint: __sdk::__query_builder::Col>, + pub story_hint: __sdk::__query_builder::Col>, pub created_at: __sdk::__query_builder::Col, pub updated_at: __sdk::__query_builder::Col, } @@ -81,7 +75,6 @@ impl __sdk::__query_builder::HasCols for TreasureRecord { story_hint: __sdk::__query_builder::Col::new(table_name, "story_hint"), created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"), - } } } @@ -103,13 +96,17 @@ impl __sdk::__query_builder::HasIxCols for TreasureRecord { TreasureRecordIxCols { actor_user_id: __sdk::__query_builder::IxCol::new(table_name, "actor_user_id"), encounter_id: __sdk::__query_builder::IxCol::new(table_name, "encounter_id"), - runtime_session_id: __sdk::__query_builder::IxCol::new(table_name, "runtime_session_id"), + runtime_session_id: __sdk::__query_builder::IxCol::new( + table_name, + "runtime_session_id", + ), story_session_id: __sdk::__query_builder::IxCol::new(table_name, "story_session_id"), - treasure_record_id: __sdk::__query_builder::IxCol::new(table_name, "treasure_record_id"), - + treasure_record_id: __sdk::__query_builder::IxCol::new( + table_name, + "treasure_record_id", + ), } } } impl __sdk::__query_builder::CanBeLookupTable for TreasureRecord {} - 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 index 9893c678..ef1083df 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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; @@ -21,20 +16,18 @@ pub struct TreasureResolveInput { pub actor_user_id: String, pub encounter_id: String, pub encounter_name: String, - pub scene_id: Option::, - pub scene_name: Option::, + pub scene_id: Option, + pub scene_name: Option, pub action: TreasureInteractionAction, - pub reward_items: Vec::, + pub reward_items: Vec, pub reward_hp: u32, pub reward_mana: u32, pub reward_currency: u32, - pub story_hint: Option::, + 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 index 2e9e88fd..4306a47f 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::quest_turn_in_input_type::QuestTurnInInput; @@ -19,10 +14,8 @@ pub(super) struct TurnInQuestArgs { impl From for super::Reducer { fn from(args: TurnInQuestArgs) -> Self { - Self::TurnInQuest { - input: args.input, -} -} + Self::TurnInQuest { input: args.input } + } } impl __sdk::InModule for TurnInQuestArgs { @@ -40,9 +33,8 @@ pub trait turn_in_quest { /// 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, |_, _| {}) + 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, @@ -70,7 +62,7 @@ impl turn_in_quest for super::RemoteReducers { + Send + 'static, ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback(TurnInQuestArgs { input, }, callback) + 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 index 20ca72d7..227f40ec 100644 --- 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 @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -16,8 +10,6 @@ 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 index 45e7a4a1..b87880a7 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 { +struct UnpublishCustomWorldProfileAndReturnArgs { pub input: CustomWorldProfileUnpublishInput, } - impl __sdk::InModule for UnpublishCustomWorldProfileAndReturnArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for UnpublishCustomWorldProfileAndReturnArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl unpublish_custom_world_profile_and_return for super::RemoteProcedures { &self, input: CustomWorldProfileUnpublishInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, CustomWorldLibraryMutationResult>( - "unpublish_custom_world_profile_and_return", - UnpublishCustomWorldProfileAndReturnArgs { input, }, - __callback, - ); + 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 index adedc423..05274f62 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::custom_world_profile_unpublish_input_type::CustomWorldProfileUnpublishInput; @@ -19,10 +14,8 @@ pub(super) struct UnpublishCustomWorldProfileArgs { impl From for super::Reducer { fn from(args: UnpublishCustomWorldProfileArgs) -> Self { - Self::UnpublishCustomWorldProfile { - input: args.input, -} -} + Self::UnpublishCustomWorldProfile { input: args.input } + } } impl __sdk::InModule for UnpublishCustomWorldProfileArgs { @@ -40,9 +33,11 @@ pub trait unpublish_custom_world_profile { /// 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, |_, _| {}) + 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, @@ -70,7 +65,7 @@ impl unpublish_custom_world_profile for super::RemoteReducers { + Send + 'static, ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback(UnpublishCustomWorldProfileArgs { input, }, callback) + self.imp + .invoke_reducer_with_callback(UnpublishCustomWorldProfileArgs { 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 index 14a134df..6710b4da 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 { +struct UpdatePuzzleWorkArgs { pub input: PuzzleWorkUpsertInput, } - impl __sdk::InModule for UpdatePuzzleWorkArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for UpdatePuzzleWorkArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl update_puzzle_work for super::RemoteProcedures { &self, input: PuzzleWorkUpsertInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, PuzzleWorkProcedureResult>( - "update_puzzle_work", - UpdatePuzzleWorkArgs { input, }, - __callback, - ); + self.imp + .invoke_procedure_with_callback::<_, PuzzleWorkProcedureResult>( + "update_puzzle_work", + UpdatePuzzleWorkArgs { input }, + __callback, + ); } } - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/upsert_auth_store_snapshot_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/upsert_auth_store_snapshot_procedure.rs index cc7f5700..31460874 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/upsert_auth_store_snapshot_procedure.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/upsert_auth_store_snapshot_procedure.rs @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::auth_store_snapshot_procedure_result_type::AuthStoreSnapshotProcedureResult; use super::auth_store_snapshot_upsert_input_type::AuthStoreSnapshotUpsertInput; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] - struct UpsertAuthStoreSnapshotArgs { +struct UpsertAuthStoreSnapshotArgs { pub input: AuthStoreSnapshotUpsertInput, } - impl __sdk::InModule for UpsertAuthStoreSnapshotArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for UpsertAuthStoreSnapshotArgs { /// /// Implemented for [`super::RemoteProcedures`]. pub trait upsert_auth_store_snapshot { - fn upsert_auth_store_snapshot(&self, input: AuthStoreSnapshotUpsertInput, -) { - self.upsert_auth_store_snapshot_then(input, |_, _| {}); + fn upsert_auth_store_snapshot(&self, input: AuthStoreSnapshotUpsertInput) { + self.upsert_auth_store_snapshot_then(input, |_, _| {}); } fn upsert_auth_store_snapshot_then( &self, input: AuthStoreSnapshotUpsertInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl upsert_auth_store_snapshot for super::RemoteProcedures { &self, input: AuthStoreSnapshotUpsertInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, AuthStoreSnapshotProcedureResult>( - "upsert_auth_store_snapshot", - UpsertAuthStoreSnapshotArgs { input, }, - __callback, - ); + self.imp + .invoke_procedure_with_callback::<_, AuthStoreSnapshotProcedureResult>( + "upsert_auth_store_snapshot", + UpsertAuthStoreSnapshotArgs { 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 index 2182ec5a..abc39bfe 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -use super::chapter_progression_procedure_result_type::ChapterProgressionProcedureResult; 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 { +struct UpsertChapterProgressionAndReturnArgs { pub input: ChapterProgressionInput, } - impl __sdk::InModule for UpsertChapterProgressionAndReturnArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for UpsertChapterProgressionAndReturnArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl upsert_chapter_progression_and_return for super::RemoteProcedures { &self, input: ChapterProgressionInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, ChapterProgressionProcedureResult>( - "upsert_chapter_progression_and_return", - UpsertChapterProgressionAndReturnArgs { input, }, - __callback, - ); + 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 index a01fe892..0cb4bb7a 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::chapter_progression_input_type::ChapterProgressionInput; @@ -19,10 +14,8 @@ pub(super) struct UpsertChapterProgressionArgs { impl From for super::Reducer { fn from(args: UpsertChapterProgressionArgs) -> Self { - Self::UpsertChapterProgression { - input: args.input, -} -} + Self::UpsertChapterProgression { input: args.input } + } } impl __sdk::InModule for UpsertChapterProgressionArgs { @@ -40,9 +33,8 @@ pub trait upsert_chapter_progression { /// 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, |_, _| {}) + 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, @@ -70,7 +62,7 @@ impl upsert_chapter_progression for super::RemoteReducers { + Send + 'static, ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback(UpsertChapterProgressionArgs { input, }, callback) + self.imp + .invoke_reducer_with_callback(UpsertChapterProgressionArgs { 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 index 5f0475ad..554b95b2 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 { +struct UpsertCustomWorldAgentOperationProgressArgs { pub input: CustomWorldAgentOperationProgressInput, } - impl __sdk::InModule for UpsertCustomWorldAgentOperationProgressArgs { type Module = super::RemoteModule; } @@ -28,16 +22,22 @@ impl __sdk::InModule for UpsertCustomWorldAgentOperationProgressArgs { /// /// 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( + &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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +46,17 @@ impl upsert_custom_world_agent_operation_progress for super::RemoteProcedures { &self, input: CustomWorldAgentOperationProgressInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, CustomWorldAgentOperationProcedureResult>( - "upsert_custom_world_agent_operation_progress", - UpsertCustomWorldAgentOperationProgressArgs { input, }, - __callback, - ); + 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 index e7720c06..343e1807 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 { +struct UpsertCustomWorldProfileAndReturnArgs { pub input: CustomWorldProfileUpsertInput, } - impl __sdk::InModule for UpsertCustomWorldProfileAndReturnArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for UpsertCustomWorldProfileAndReturnArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl upsert_custom_world_profile_and_return for super::RemoteProcedures { &self, input: CustomWorldProfileUpsertInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, CustomWorldLibraryMutationResult>( - "upsert_custom_world_profile_and_return", - UpsertCustomWorldProfileAndReturnArgs { input, }, - __callback, - ); + 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 index 353bc46f..e343b491 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::custom_world_profile_upsert_input_type::CustomWorldProfileUpsertInput; @@ -19,10 +14,8 @@ pub(super) struct UpsertCustomWorldProfileArgs { impl From for super::Reducer { fn from(args: UpsertCustomWorldProfileArgs) -> Self { - Self::UpsertCustomWorldProfile { - input: args.input, -} -} + Self::UpsertCustomWorldProfile { input: args.input } + } } impl __sdk::InModule for UpsertCustomWorldProfileArgs { @@ -40,9 +33,11 @@ pub trait upsert_custom_world_profile { /// 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, |_, _| {}) + 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, @@ -70,7 +65,7 @@ impl upsert_custom_world_profile for super::RemoteReducers { + Send + 'static, ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback(UpsertCustomWorldProfileArgs { input, }, callback) + 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 index 46ad5903..b7f3a28d 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 { +struct UpsertNpcStateAndReturnArgs { pub input: NpcStateUpsertInput, } - impl __sdk::InModule for UpsertNpcStateAndReturnArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for UpsertNpcStateAndReturnArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl upsert_npc_state_and_return for super::RemoteProcedures { &self, input: NpcStateUpsertInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, NpcStateProcedureResult>( - "upsert_npc_state_and_return", - UpsertNpcStateAndReturnArgs { input, }, - __callback, - ); + 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 index 1a6f10c7..f363770d 100644 --- 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 @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::npc_state_upsert_input_type::NpcStateUpsertInput; @@ -19,10 +14,8 @@ pub(super) struct UpsertNpcStateArgs { impl From for super::Reducer { fn from(args: UpsertNpcStateArgs) -> Self { - Self::UpsertNpcState { - input: args.input, -} -} + Self::UpsertNpcState { input: args.input } + } } impl __sdk::InModule for UpsertNpcStateArgs { @@ -40,9 +33,8 @@ pub trait upsert_npc_state { /// 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, |_, _| {}) + 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, @@ -70,7 +62,7 @@ impl upsert_npc_state for super::RemoteReducers { + Send + 'static, ) -> __sdk::Result<()> { - self.imp.invoke_reducer_with_callback(UpsertNpcStateArgs { input, }, callback) + 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 index eb863a2d..614a6d05 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 { +struct UpsertPlatformBrowseHistoryAndReturnArgs { pub input: RuntimeBrowseHistorySyncInput, } - impl __sdk::InModule for UpsertPlatformBrowseHistoryAndReturnArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for UpsertPlatformBrowseHistoryAndReturnArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl upsert_platform_browse_history_and_return for super::RemoteProcedures { &self, input: RuntimeBrowseHistorySyncInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, RuntimeBrowseHistoryProcedureResult>( - "upsert_platform_browse_history_and_return", - UpsertPlatformBrowseHistoryAndReturnArgs { input, }, - __callback, - ); + 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_runtime_setting_and_return_procedure.rs b/server-rs/crates/spacetime-client/src/module_bindings/upsert_runtime_setting_and_return_procedure.rs index f820971c..119eab70 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/upsert_runtime_setting_and_return_procedure.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/upsert_runtime_setting_and_return_procedure.rs @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::runtime_setting_procedure_result_type::RuntimeSettingProcedureResult; use super::runtime_setting_upsert_input_type::RuntimeSettingUpsertInput; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] - struct UpsertRuntimeSettingAndReturnArgs { +struct UpsertRuntimeSettingAndReturnArgs { pub input: RuntimeSettingUpsertInput, } - impl __sdk::InModule for UpsertRuntimeSettingAndReturnArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for UpsertRuntimeSettingAndReturnArgs { /// /// Implemented for [`super::RemoteProcedures`]. pub trait upsert_runtime_setting_and_return { - fn upsert_runtime_setting_and_return(&self, input: RuntimeSettingUpsertInput, -) { - self.upsert_runtime_setting_and_return_then(input, |_, _| {}); + fn upsert_runtime_setting_and_return(&self, input: RuntimeSettingUpsertInput) { + self.upsert_runtime_setting_and_return_then(input, |_, _| {}); } fn upsert_runtime_setting_and_return_then( &self, input: RuntimeSettingUpsertInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl upsert_runtime_setting_and_return for super::RemoteProcedures { &self, input: RuntimeSettingUpsertInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, RuntimeSettingProcedureResult>( - "upsert_runtime_setting_and_return", - UpsertRuntimeSettingAndReturnArgs { input, }, - __callback, - ); + self.imp + .invoke_procedure_with_callback::<_, RuntimeSettingProcedureResult>( + "upsert_runtime_setting_and_return", + UpsertRuntimeSettingAndReturnArgs { 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 index f86a0f7d..eceae785 100644 --- 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 @@ -2,23 +2,17 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +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 { +struct UpsertRuntimeSnapshotAndReturnArgs { pub input: RuntimeSnapshotUpsertInput, } - impl __sdk::InModule for UpsertRuntimeSnapshotAndReturnArgs { type Module = super::RemoteModule; } @@ -28,16 +22,19 @@ impl __sdk::InModule for UpsertRuntimeSnapshotAndReturnArgs { /// /// 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(&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, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ); } @@ -46,13 +43,17 @@ impl upsert_runtime_snapshot_and_return for super::RemoteProcedures { &self, input: RuntimeSnapshotUpsertInput, - __callback: impl FnOnce(&super::ProcedureEventContext, Result) + Send + 'static, + __callback: impl FnOnce( + &super::ProcedureEventContext, + Result, + ) + Send + + 'static, ) { - self.imp.invoke_procedure_with_callback::<_, RuntimeSnapshotProcedureResult>( - "upsert_runtime_snapshot_and_return", - UpsertRuntimeSnapshotAndReturnArgs { input, }, - __callback, - ); + 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/user_account_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/user_account_type.rs index 49cf4cd1..87b8e5f3 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/user_account_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/user_account_type.rs @@ -2,13 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; - +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; #[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] #[sats(crate = __lib)] @@ -17,8 +11,8 @@ pub struct UserAccount { pub public_user_code: String, pub username: String, pub display_name: String, - pub phone_number_masked: Option::, - pub phone_number_e_164: Option::, + pub phone_number_masked: Option, + pub phone_number_e_164: Option, pub login_method: String, pub binding_status: String, pub wechat_bound: bool, @@ -27,12 +21,10 @@ pub struct UserAccount { pub token_version: u64, } - impl __sdk::InModule for UserAccount { type Module = super::RemoteModule; } - /// Column accessor struct for the table `UserAccount`. /// /// Provides typed access to columns for query building. @@ -41,8 +33,8 @@ pub struct UserAccountCols { pub public_user_code: __sdk::__query_builder::Col, pub username: __sdk::__query_builder::Col, pub display_name: __sdk::__query_builder::Col, - pub phone_number_masked: __sdk::__query_builder::Col>, - pub phone_number_e_164: __sdk::__query_builder::Col>, + pub phone_number_masked: __sdk::__query_builder::Col>, + pub phone_number_e_164: __sdk::__query_builder::Col>, pub login_method: __sdk::__query_builder::Col, pub binding_status: __sdk::__query_builder::Col, pub wechat_bound: __sdk::__query_builder::Col, @@ -59,15 +51,20 @@ impl __sdk::__query_builder::HasCols for UserAccount { public_user_code: __sdk::__query_builder::Col::new(table_name, "public_user_code"), username: __sdk::__query_builder::Col::new(table_name, "username"), display_name: __sdk::__query_builder::Col::new(table_name, "display_name"), - phone_number_masked: __sdk::__query_builder::Col::new(table_name, "phone_number_masked"), + phone_number_masked: __sdk::__query_builder::Col::new( + table_name, + "phone_number_masked", + ), phone_number_e_164: __sdk::__query_builder::Col::new(table_name, "phone_number_e_164"), login_method: __sdk::__query_builder::Col::new(table_name, "login_method"), binding_status: __sdk::__query_builder::Col::new(table_name, "binding_status"), wechat_bound: __sdk::__query_builder::Col::new(table_name, "wechat_bound"), password_hash: __sdk::__query_builder::Col::new(table_name, "password_hash"), - password_login_enabled: __sdk::__query_builder::Col::new(table_name, "password_login_enabled"), + password_login_enabled: __sdk::__query_builder::Col::new( + table_name, + "password_login_enabled", + ), token_version: __sdk::__query_builder::Col::new(table_name, "token_version"), - } } } @@ -88,10 +85,8 @@ impl __sdk::__query_builder::HasIxCols for UserAccount { public_user_code: __sdk::__query_builder::IxCol::new(table_name, "public_user_code"), user_id: __sdk::__query_builder::IxCol::new(table_name, "user_id"), username: __sdk::__query_builder::IxCol::new(table_name, "username"), - } } } impl __sdk::__query_builder::CanBeLookupTable for UserAccount {} - diff --git a/server-rs/crates/spacetime-client/src/module_bindings/user_browse_history_type.rs b/server-rs/crates/spacetime-client/src/module_bindings/user_browse_history_type.rs index 85e114be..3a6cf1ae 100644 --- a/server-rs/crates/spacetime-client/src/module_bindings/user_browse_history_type.rs +++ b/server-rs/crates/spacetime-client/src/module_bindings/user_browse_history_type.rs @@ -2,12 +2,7 @@ // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. #![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{ - self as __sdk, - __lib, - __sats, - __ws, -}; +use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; use super::runtime_browse_history_theme_mode_type::RuntimeBrowseHistoryThemeMode; @@ -21,7 +16,7 @@ pub struct UserBrowseHistory { pub world_name: String, pub subtitle: String, pub summary_text: String, - pub cover_image_src: Option::, + pub cover_image_src: Option, pub theme_mode: RuntimeBrowseHistoryThemeMode, pub author_display_name: String, pub visited_at: __sdk::Timestamp, @@ -29,12 +24,10 @@ pub struct UserBrowseHistory { pub updated_at: __sdk::Timestamp, } - impl __sdk::InModule for UserBrowseHistory { type Module = super::RemoteModule; } - /// Column accessor struct for the table `UserBrowseHistory`. /// /// Provides typed access to columns for query building. @@ -46,7 +39,7 @@ pub struct UserBrowseHistoryCols { 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_image_src: __sdk::__query_builder::Col>, pub theme_mode: __sdk::__query_builder::Col, pub author_display_name: __sdk::__query_builder::Col, pub visited_at: __sdk::__query_builder::Col, @@ -67,11 +60,13 @@ impl __sdk::__query_builder::HasCols for UserBrowseHistory { summary_text: __sdk::__query_builder::Col::new(table_name, "summary_text"), cover_image_src: __sdk::__query_builder::Col::new(table_name, "cover_image_src"), theme_mode: __sdk::__query_builder::Col::new(table_name, "theme_mode"), - author_display_name: __sdk::__query_builder::Col::new(table_name, "author_display_name"), + author_display_name: __sdk::__query_builder::Col::new( + table_name, + "author_display_name", + ), visited_at: __sdk::__query_builder::Col::new(table_name, "visited_at"), created_at: __sdk::__query_builder::Col::new(table_name, "created_at"), updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"), - } } } @@ -90,10 +85,8 @@ impl __sdk::__query_builder::HasIxCols for UserBrowseHistory { UserBrowseHistoryIxCols { browse_history_id: __sdk::__query_builder::IxCol::new(table_name, "browse_history_id"), user_id: __sdk::__query_builder::IxCol::new(table_name, "user_id"), - } } } impl __sdk::__query_builder::CanBeLookupTable for UserBrowseHistory {} - diff --git a/spacetime.json b/spacetime.json index 116ce66a..fc6b20a0 100644 --- a/spacetime.json +++ b/spacetime.json @@ -1,14 +1,4 @@ { "server": "http://127.0.0.1:3101", - "module-path": "./server-rs/crates/spacetime-module", - "generate": [ - { - "language": "typescript", - "out-dir": "./src/spacetime/generated" - }, - { - "language": "rust", - "out-dir": "./server-rs/crates/spacetime-client/src/module_bindings" - } - ] + "module-path": "./server-rs/crates/spacetime-module" } diff --git a/src/spacetime/generated/accept_quest_reducer.ts b/src/spacetime/generated/accept_quest_reducer.ts deleted file mode 100644 index d4c2d609..00000000 --- a/src/spacetime/generated/accept_quest_reducer.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - QuestRecordInput, -} from "./types"; - -export default { - get input() { - return QuestRecordInput; - }, -}; diff --git a/src/spacetime/generated/acknowledge_quest_completion_reducer.ts b/src/spacetime/generated/acknowledge_quest_completion_reducer.ts deleted file mode 100644 index 89b38a91..00000000 --- a/src/spacetime/generated/acknowledge_quest_completion_reducer.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - QuestCompletionAckInput, -} from "./types"; - -export default { - get input() { - return QuestCompletionAckInput; - }, -}; diff --git a/src/spacetime/generated/advance_puzzle_next_level_procedure.ts b/src/spacetime/generated/advance_puzzle_next_level_procedure.ts deleted file mode 100644 index 1bfe9a9c..00000000 --- a/src/spacetime/generated/advance_puzzle_next_level_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - PuzzleRunNextLevelInput, - PuzzleRunProcedureResult, -} from "./types"; - -export const params = { - get input() { - return PuzzleRunNextLevelInput; - }, -}; -export const returnType = PuzzleRunProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/ai_result_reference_table.ts b/src/spacetime/generated/ai_result_reference_table.ts deleted file mode 100644 index 7e235591..00000000 --- a/src/spacetime/generated/ai_result_reference_table.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; -import { - AiResultReferenceKind, -} from "./types"; - - -export default __t.row({ - resultReferenceRowId: __t.string().primaryKey().name("result_reference_row_id"), - resultRefId: __t.string().name("result_ref_id"), - taskId: __t.string().name("task_id"), - get referenceKind() { - return AiResultReferenceKind.name("reference_kind"); - }, - referenceId: __t.string().name("reference_id"), - label: __t.option(__t.string()), - createdAt: __t.timestamp().name("created_at"), -}); diff --git a/src/spacetime/generated/ai_task_stage_table.ts b/src/spacetime/generated/ai_task_stage_table.ts deleted file mode 100644 index b7b70620..00000000 --- a/src/spacetime/generated/ai_task_stage_table.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; -import { - AiTaskStageKind, - AiTaskStageStatus, -} from "./types"; - - -export default __t.row({ - taskStageId: __t.string().primaryKey().name("task_stage_id"), - taskId: __t.string().name("task_id"), - get stageKind() { - return AiTaskStageKind.name("stage_kind"); - }, - label: __t.string(), - detail: __t.string(), - stageOrder: __t.u32().name("stage_order"), - get status() { - return AiTaskStageStatus; - }, - textOutput: __t.option(__t.string()).name("text_output"), - structuredPayloadJson: __t.option(__t.string()).name("structured_payload_json"), - warningMessages: __t.array(__t.string()).name("warning_messages"), - startedAt: __t.option(__t.timestamp()).name("started_at"), - completedAt: __t.option(__t.timestamp()).name("completed_at"), -}); diff --git a/src/spacetime/generated/ai_task_table.ts b/src/spacetime/generated/ai_task_table.ts deleted file mode 100644 index 69f7791c..00000000 --- a/src/spacetime/generated/ai_task_table.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; -import { - AiTaskKind, - AiTaskStatus, -} from "./types"; - - -export default __t.row({ - taskId: __t.string().primaryKey().name("task_id"), - get taskKind() { - return AiTaskKind.name("task_kind"); - }, - ownerUserId: __t.string().name("owner_user_id"), - requestLabel: __t.string().name("request_label"), - sourceModule: __t.string().name("source_module"), - sourceEntityId: __t.option(__t.string()).name("source_entity_id"), - requestPayloadJson: __t.option(__t.string()).name("request_payload_json"), - get status() { - return AiTaskStatus; - }, - failureMessage: __t.option(__t.string()).name("failure_message"), - latestTextOutput: __t.option(__t.string()).name("latest_text_output"), - latestStructuredPayloadJson: __t.option(__t.string()).name("latest_structured_payload_json"), - version: __t.u32(), - createdAt: __t.timestamp().name("created_at"), - startedAt: __t.option(__t.timestamp()).name("started_at"), - completedAt: __t.option(__t.timestamp()).name("completed_at"), - updatedAt: __t.timestamp().name("updated_at"), -}); diff --git a/src/spacetime/generated/ai_text_chunk_table.ts b/src/spacetime/generated/ai_text_chunk_table.ts deleted file mode 100644 index 47dbf934..00000000 --- a/src/spacetime/generated/ai_text_chunk_table.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; -import { - AiTaskStageKind, -} from "./types"; - - -export default __t.row({ - textChunkRowId: __t.string().primaryKey().name("text_chunk_row_id"), - chunkId: __t.string().name("chunk_id"), - taskId: __t.string().name("task_id"), - get stageKind() { - return AiTaskStageKind.name("stage_kind"); - }, - sequence: __t.u32(), - deltaText: __t.string().name("delta_text"), - createdAt: __t.timestamp().name("created_at"), -}); diff --git a/src/spacetime/generated/append_ai_text_chunk_and_return_procedure.ts b/src/spacetime/generated/append_ai_text_chunk_and_return_procedure.ts deleted file mode 100644 index a1d58f3b..00000000 --- a/src/spacetime/generated/append_ai_text_chunk_and_return_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - AiTextChunkAppendInput, - AiTaskProcedureResult, -} from "./types"; - -export const params = { - get input() { - return AiTextChunkAppendInput; - }, -}; -export const returnType = AiTaskProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/apply_chapter_progression_ledger_entry_and_return_procedure.ts b/src/spacetime/generated/apply_chapter_progression_ledger_entry_and_return_procedure.ts deleted file mode 100644 index 87c10a29..00000000 --- a/src/spacetime/generated/apply_chapter_progression_ledger_entry_and_return_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - ChapterProgressionLedgerInput, - ChapterProgressionProcedureResult, -} from "./types"; - -export const params = { - get input() { - return ChapterProgressionLedgerInput; - }, -}; -export const returnType = ChapterProgressionProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/apply_chapter_progression_ledger_entry_reducer.ts b/src/spacetime/generated/apply_chapter_progression_ledger_entry_reducer.ts deleted file mode 100644 index ab22e4d1..00000000 --- a/src/spacetime/generated/apply_chapter_progression_ledger_entry_reducer.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - ChapterProgressionLedgerInput, -} from "./types"; - -export default { - get input() { - return ChapterProgressionLedgerInput; - }, -}; diff --git a/src/spacetime/generated/apply_inventory_mutation_reducer.ts b/src/spacetime/generated/apply_inventory_mutation_reducer.ts deleted file mode 100644 index a9d958a2..00000000 --- a/src/spacetime/generated/apply_inventory_mutation_reducer.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - InventoryMutationInput, -} from "./types"; - -export default { - get input() { - return InventoryMutationInput; - }, -}; diff --git a/src/spacetime/generated/apply_quest_signal_reducer.ts b/src/spacetime/generated/apply_quest_signal_reducer.ts deleted file mode 100644 index 264a10bf..00000000 --- a/src/spacetime/generated/apply_quest_signal_reducer.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - QuestSignalApplyInput, -} from "./types"; - -export default { - get input() { - return QuestSignalApplyInput; - }, -}; diff --git a/src/spacetime/generated/asset_entity_binding_table.ts b/src/spacetime/generated/asset_entity_binding_table.ts deleted file mode 100644 index 81c7e55b..00000000 --- a/src/spacetime/generated/asset_entity_binding_table.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -export default __t.row({ - bindingId: __t.string().primaryKey().name("binding_id"), - assetObjectId: __t.string().name("asset_object_id"), - entityKind: __t.string().name("entity_kind"), - entityId: __t.string().name("entity_id"), - slot: __t.string(), - assetKind: __t.string().name("asset_kind"), - ownerUserId: __t.option(__t.string()).name("owner_user_id"), - profileId: __t.option(__t.string()).name("profile_id"), - createdAt: __t.timestamp().name("created_at"), - updatedAt: __t.timestamp().name("updated_at"), -}); diff --git a/src/spacetime/generated/asset_object_table.ts b/src/spacetime/generated/asset_object_table.ts deleted file mode 100644 index 987c3ece..00000000 --- a/src/spacetime/generated/asset_object_table.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; -import { - AssetObjectAccessPolicy, -} from "./types"; - - -export default __t.row({ - assetObjectId: __t.string().primaryKey().name("asset_object_id"), - bucket: __t.string(), - objectKey: __t.string().name("object_key"), - get accessPolicy() { - return AssetObjectAccessPolicy.name("access_policy"); - }, - contentType: __t.option(__t.string()).name("content_type"), - contentLength: __t.u64().name("content_length"), - contentHash: __t.option(__t.string()).name("content_hash"), - version: __t.u32(), - sourceJobId: __t.option(__t.string()).name("source_job_id"), - ownerUserId: __t.option(__t.string()).name("owner_user_id"), - profileId: __t.option(__t.string()).name("profile_id"), - entityId: __t.option(__t.string()).name("entity_id"), - assetKind: __t.string().name("asset_kind"), - createdAt: __t.timestamp().name("created_at"), - updatedAt: __t.timestamp().name("updated_at"), -}); diff --git a/src/spacetime/generated/attach_ai_result_reference_and_return_procedure.ts b/src/spacetime/generated/attach_ai_result_reference_and_return_procedure.ts deleted file mode 100644 index 7c054a19..00000000 --- a/src/spacetime/generated/attach_ai_result_reference_and_return_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - AiTaskProcedureResult, - AiResultReferenceInput, -} from "./types"; - -export const params = { - get input() { - return AiResultReferenceInput; - }, -}; -export const returnType = AiTaskProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/auth_identity_table.ts b/src/spacetime/generated/auth_identity_table.ts deleted file mode 100644 index 3ef5d0f4..00000000 --- a/src/spacetime/generated/auth_identity_table.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -export default __t.row({ - identityId: __t.string().primaryKey().name("identity_id"), - userId: __t.string().name("user_id"), - provider: __t.string(), - providerUid: __t.string().name("provider_uid"), - providerUnionId: __t.option(__t.string()).name("provider_union_id"), - phoneE164: __t.option(__t.string()).name("phone_e_164"), - displayName: __t.option(__t.string()).name("display_name"), - avatarUrl: __t.option(__t.string()).name("avatar_url"), -}); diff --git a/src/spacetime/generated/auth_store_snapshot_table.ts b/src/spacetime/generated/auth_store_snapshot_table.ts deleted file mode 100644 index f403da1b..00000000 --- a/src/spacetime/generated/auth_store_snapshot_table.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -export default __t.row({ - snapshotId: __t.string().primaryKey().name("snapshot_id"), - snapshotJson: __t.string().name("snapshot_json"), - updatedAt: __t.timestamp().name("updated_at"), -}); diff --git a/src/spacetime/generated/battle_state_table.ts b/src/spacetime/generated/battle_state_table.ts deleted file mode 100644 index d2f9de7f..00000000 --- a/src/spacetime/generated/battle_state_table.ts +++ /dev/null @@ -1,56 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; -import { - BattleMode, - BattleStatus, - RuntimeItemRewardItemSnapshot, - CombatOutcome, -} from "./types"; - - -export default __t.row({ - battleStateId: __t.string().primaryKey().name("battle_state_id"), - storySessionId: __t.string().name("story_session_id"), - runtimeSessionId: __t.string().name("runtime_session_id"), - actorUserId: __t.string().name("actor_user_id"), - chapterId: __t.option(__t.string()).name("chapter_id"), - targetNpcId: __t.string().name("target_npc_id"), - targetName: __t.string().name("target_name"), - get battleMode() { - return BattleMode.name("battle_mode"); - }, - get status() { - return BattleStatus; - }, - playerHp: __t.i32().name("player_hp"), - playerMaxHp: __t.i32().name("player_max_hp"), - playerMana: __t.i32().name("player_mana"), - playerMaxMana: __t.i32().name("player_max_mana"), - targetHp: __t.i32().name("target_hp"), - targetMaxHp: __t.i32().name("target_max_hp"), - experienceReward: __t.u32().name("experience_reward"), - get rewardItems() { - return __t.array(RuntimeItemRewardItemSnapshot).name("reward_items"); - }, - turnIndex: __t.u32().name("turn_index"), - lastActionFunctionId: __t.option(__t.string()).name("last_action_function_id"), - lastActionText: __t.option(__t.string()).name("last_action_text"), - lastResultText: __t.option(__t.string()).name("last_result_text"), - lastDamageDealt: __t.i32().name("last_damage_dealt"), - lastDamageTaken: __t.i32().name("last_damage_taken"), - get lastOutcome() { - return CombatOutcome.name("last_outcome"); - }, - version: __t.u32(), - createdAt: __t.timestamp().name("created_at"), - updatedAt: __t.timestamp().name("updated_at"), -}); diff --git a/src/spacetime/generated/begin_story_session_and_return_procedure.ts b/src/spacetime/generated/begin_story_session_and_return_procedure.ts deleted file mode 100644 index 9f494774..00000000 --- a/src/spacetime/generated/begin_story_session_and_return_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - StorySessionInput, - StorySessionProcedureResult, -} from "./types"; - -export const params = { - get input() { - return StorySessionInput; - }, -}; -export const returnType = StorySessionProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/begin_story_session_reducer.ts b/src/spacetime/generated/begin_story_session_reducer.ts deleted file mode 100644 index 0d988d39..00000000 --- a/src/spacetime/generated/begin_story_session_reducer.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - StorySessionInput, -} from "./types"; - -export default { - get input() { - return StorySessionInput; - }, -}; diff --git a/src/spacetime/generated/big_fish_agent_message_table.ts b/src/spacetime/generated/big_fish_agent_message_table.ts deleted file mode 100644 index f6b70f56..00000000 --- a/src/spacetime/generated/big_fish_agent_message_table.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; -import { - BigFishAgentMessageRole, - BigFishAgentMessageKind, -} from "./types"; - - -export default __t.row({ - messageId: __t.string().primaryKey().name("message_id"), - sessionId: __t.string().name("session_id"), - get role() { - return BigFishAgentMessageRole; - }, - get kind() { - return BigFishAgentMessageKind; - }, - text: __t.string(), - createdAt: __t.timestamp().name("created_at"), -}); diff --git a/src/spacetime/generated/big_fish_asset_slot_table.ts b/src/spacetime/generated/big_fish_asset_slot_table.ts deleted file mode 100644 index 999c9856..00000000 --- a/src/spacetime/generated/big_fish_asset_slot_table.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; -import { - BigFishAssetKind, - BigFishAssetStatus, -} from "./types"; - - -export default __t.row({ - slotId: __t.string().primaryKey().name("slot_id"), - sessionId: __t.string().name("session_id"), - get assetKind() { - return BigFishAssetKind.name("asset_kind"); - }, - level: __t.option(__t.u32()), - motionKey: __t.option(__t.string()).name("motion_key"), - get status() { - return BigFishAssetStatus; - }, - assetUrl: __t.option(__t.string()).name("asset_url"), - promptSnapshot: __t.string().name("prompt_snapshot"), - updatedAt: __t.timestamp().name("updated_at"), -}); diff --git a/src/spacetime/generated/big_fish_creation_session_table.ts b/src/spacetime/generated/big_fish_creation_session_table.ts deleted file mode 100644 index ee8cc691..00000000 --- a/src/spacetime/generated/big_fish_creation_session_table.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; -import { - BigFishCreationStage, -} from "./types"; - - -export default __t.row({ - sessionId: __t.string().primaryKey().name("session_id"), - ownerUserId: __t.string().name("owner_user_id"), - seedText: __t.string().name("seed_text"), - currentTurn: __t.u32().name("current_turn"), - progressPercent: __t.u32().name("progress_percent"), - get stage() { - return BigFishCreationStage; - }, - anchorPackJson: __t.string().name("anchor_pack_json"), - draftJson: __t.option(__t.string()).name("draft_json"), - assetCoverageJson: __t.string().name("asset_coverage_json"), - lastAssistantReply: __t.option(__t.string()).name("last_assistant_reply"), - publishReady: __t.bool().name("publish_ready"), - createdAt: __t.timestamp().name("created_at"), - updatedAt: __t.timestamp().name("updated_at"), -}); diff --git a/src/spacetime/generated/big_fish_runtime_run_table.ts b/src/spacetime/generated/big_fish_runtime_run_table.ts deleted file mode 100644 index 7a8c701e..00000000 --- a/src/spacetime/generated/big_fish_runtime_run_table.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; -import { - BigFishRunStatus, -} from "./types"; - - -export default __t.row({ - runId: __t.string().primaryKey().name("run_id"), - sessionId: __t.string().name("session_id"), - ownerUserId: __t.string().name("owner_user_id"), - get status() { - return BigFishRunStatus; - }, - snapshotJson: __t.string().name("snapshot_json"), - lastInputX: __t.f32().name("last_input_x"), - lastInputY: __t.f32().name("last_input_y"), - tick: __t.u64(), - createdAt: __t.timestamp().name("created_at"), - updatedAt: __t.timestamp().name("updated_at"), -}); diff --git a/src/spacetime/generated/bind_asset_object_to_entity_and_return_procedure.ts b/src/spacetime/generated/bind_asset_object_to_entity_and_return_procedure.ts deleted file mode 100644 index 1dedcf5c..00000000 --- a/src/spacetime/generated/bind_asset_object_to_entity_and_return_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - AssetEntityBindingInput, - AssetEntityBindingProcedureResult, -} from "./types"; - -export const params = { - get input() { - return AssetEntityBindingInput; - }, -}; -export const returnType = AssetEntityBindingProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/bind_asset_object_to_entity_reducer.ts b/src/spacetime/generated/bind_asset_object_to_entity_reducer.ts deleted file mode 100644 index 1a355e26..00000000 --- a/src/spacetime/generated/bind_asset_object_to_entity_reducer.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - AssetEntityBindingInput, -} from "./types"; - -export default { - get input() { - return AssetEntityBindingInput; - }, -}; diff --git a/src/spacetime/generated/cancel_ai_task_and_return_procedure.ts b/src/spacetime/generated/cancel_ai_task_and_return_procedure.ts deleted file mode 100644 index f748270f..00000000 --- a/src/spacetime/generated/cancel_ai_task_and_return_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - AiTaskProcedureResult, - AiTaskCancelInput, -} from "./types"; - -export const params = { - get input() { - return AiTaskCancelInput; - }, -}; -export const returnType = AiTaskProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/chapter_progression_table.ts b/src/spacetime/generated/chapter_progression_table.ts deleted file mode 100644 index cb522360..00000000 --- a/src/spacetime/generated/chapter_progression_table.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; -import { - ChapterPaceBand, -} from "./types"; - - -export default __t.row({ - chapterProgressionId: __t.string().primaryKey().name("chapter_progression_id"), - userId: __t.string().name("user_id"), - chapterId: __t.string().name("chapter_id"), - chapterIndex: __t.u32().name("chapter_index"), - totalChapters: __t.u32().name("total_chapters"), - entryPseudoLevelMillis: __t.u32().name("entry_pseudo_level_millis"), - exitPseudoLevelMillis: __t.u32().name("exit_pseudo_level_millis"), - entryLevel: __t.u32().name("entry_level"), - exitLevel: __t.u32().name("exit_level"), - plannedTotalXp: __t.u32().name("planned_total_xp"), - plannedQuestXp: __t.u32().name("planned_quest_xp"), - plannedHostileXp: __t.u32().name("planned_hostile_xp"), - actualQuestXp: __t.u32().name("actual_quest_xp"), - actualHostileXp: __t.u32().name("actual_hostile_xp"), - expectedHostileDefeatCount: __t.u32().name("expected_hostile_defeat_count"), - actualHostileDefeatCount: __t.u32().name("actual_hostile_defeat_count"), - levelAtEntry: __t.u32().name("level_at_entry"), - levelAtExit: __t.option(__t.u32()).name("level_at_exit"), - get paceBand() { - return ChapterPaceBand.name("pace_band"); - }, - createdAt: __t.timestamp().name("created_at"), - updatedAt: __t.timestamp().name("updated_at"), -}); diff --git a/src/spacetime/generated/clear_platform_browse_history_and_return_procedure.ts b/src/spacetime/generated/clear_platform_browse_history_and_return_procedure.ts deleted file mode 100644 index 02215dfe..00000000 --- a/src/spacetime/generated/clear_platform_browse_history_and_return_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - RuntimeBrowseHistoryClearInput, - RuntimeBrowseHistoryProcedureResult, -} from "./types"; - -export const params = { - get input() { - return RuntimeBrowseHistoryClearInput; - }, -}; -export const returnType = RuntimeBrowseHistoryProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/compile_big_fish_draft_procedure.ts b/src/spacetime/generated/compile_big_fish_draft_procedure.ts deleted file mode 100644 index babacae6..00000000 --- a/src/spacetime/generated/compile_big_fish_draft_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - BigFishDraftCompileInput, - BigFishSessionProcedureResult, -} from "./types"; - -export const params = { - get input() { - return BigFishDraftCompileInput; - }, -}; -export const returnType = BigFishSessionProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/compile_custom_world_published_profile_procedure.ts b/src/spacetime/generated/compile_custom_world_published_profile_procedure.ts deleted file mode 100644 index 8b92bd11..00000000 --- a/src/spacetime/generated/compile_custom_world_published_profile_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - CustomWorldPublishedProfileCompileInput, - CustomWorldPublishedProfileCompileResult, -} from "./types"; - -export const params = { - get input() { - return CustomWorldPublishedProfileCompileInput; - }, -}; -export const returnType = CustomWorldPublishedProfileCompileResult \ No newline at end of file diff --git a/src/spacetime/generated/compile_puzzle_agent_draft_procedure.ts b/src/spacetime/generated/compile_puzzle_agent_draft_procedure.ts deleted file mode 100644 index bf7ca0fd..00000000 --- a/src/spacetime/generated/compile_puzzle_agent_draft_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - PuzzleDraftCompileInput, - PuzzleAgentSessionProcedureResult, -} from "./types"; - -export const params = { - get input() { - return PuzzleDraftCompileInput; - }, -}; -export const returnType = PuzzleAgentSessionProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/complete_ai_stage_and_return_procedure.ts b/src/spacetime/generated/complete_ai_stage_and_return_procedure.ts deleted file mode 100644 index a9356401..00000000 --- a/src/spacetime/generated/complete_ai_stage_and_return_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - AiTaskProcedureResult, - AiStageCompletionInput, -} from "./types"; - -export const params = { - get input() { - return AiStageCompletionInput; - }, -}; -export const returnType = AiTaskProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/complete_ai_task_and_return_procedure.ts b/src/spacetime/generated/complete_ai_task_and_return_procedure.ts deleted file mode 100644 index 5e808c08..00000000 --- a/src/spacetime/generated/complete_ai_task_and_return_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - AiTaskProcedureResult, - AiTaskFinishInput, -} from "./types"; - -export const params = { - get input() { - return AiTaskFinishInput; - }, -}; -export const returnType = AiTaskProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/confirm_asset_object_and_return_procedure.ts b/src/spacetime/generated/confirm_asset_object_and_return_procedure.ts deleted file mode 100644 index b0ac99d3..00000000 --- a/src/spacetime/generated/confirm_asset_object_and_return_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - AssetObjectUpsertInput, - AssetObjectProcedureResult, -} from "./types"; - -export const params = { - get input() { - return AssetObjectUpsertInput; - }, -}; -export const returnType = AssetObjectProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/confirm_asset_object_reducer.ts b/src/spacetime/generated/confirm_asset_object_reducer.ts deleted file mode 100644 index 1d063f5b..00000000 --- a/src/spacetime/generated/confirm_asset_object_reducer.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - AssetObjectUpsertInput, -} from "./types"; - -export default { - get input() { - return AssetObjectUpsertInput; - }, -}; diff --git a/src/spacetime/generated/continue_story_and_return_procedure.ts b/src/spacetime/generated/continue_story_and_return_procedure.ts deleted file mode 100644 index 49157c67..00000000 --- a/src/spacetime/generated/continue_story_and_return_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - StorySessionProcedureResult, - StoryContinueInput, -} from "./types"; - -export const params = { - get input() { - return StoryContinueInput; - }, -}; -export const returnType = StorySessionProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/continue_story_reducer.ts b/src/spacetime/generated/continue_story_reducer.ts deleted file mode 100644 index d2d8cc62..00000000 --- a/src/spacetime/generated/continue_story_reducer.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - StoryContinueInput, -} from "./types"; - -export default { - get input() { - return StoryContinueInput; - }, -}; diff --git a/src/spacetime/generated/create_ai_task_and_return_procedure.ts b/src/spacetime/generated/create_ai_task_and_return_procedure.ts deleted file mode 100644 index 30a1c4e8..00000000 --- a/src/spacetime/generated/create_ai_task_and_return_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - AiTaskProcedureResult, - AiTaskCreateInput, -} from "./types"; - -export const params = { - get input() { - return AiTaskCreateInput; - }, -}; -export const returnType = AiTaskProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/create_ai_task_reducer.ts b/src/spacetime/generated/create_ai_task_reducer.ts deleted file mode 100644 index 0fabeddf..00000000 --- a/src/spacetime/generated/create_ai_task_reducer.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - AiTaskCreateInput, -} from "./types"; - -export default { - get input() { - return AiTaskCreateInput; - }, -}; diff --git a/src/spacetime/generated/create_battle_state_and_return_procedure.ts b/src/spacetime/generated/create_battle_state_and_return_procedure.ts deleted file mode 100644 index 284dcb7b..00000000 --- a/src/spacetime/generated/create_battle_state_and_return_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - BattleStateInput, - BattleStateProcedureResult, -} from "./types"; - -export const params = { - get input() { - return BattleStateInput; - }, -}; -export const returnType = BattleStateProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/create_battle_state_reducer.ts b/src/spacetime/generated/create_battle_state_reducer.ts deleted file mode 100644 index 279c441d..00000000 --- a/src/spacetime/generated/create_battle_state_reducer.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - BattleStateInput, -} from "./types"; - -export default { - get input() { - return BattleStateInput; - }, -}; diff --git a/src/spacetime/generated/create_big_fish_session_procedure.ts b/src/spacetime/generated/create_big_fish_session_procedure.ts deleted file mode 100644 index 612ad4b9..00000000 --- a/src/spacetime/generated/create_big_fish_session_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - BigFishSessionProcedureResult, - BigFishSessionCreateInput, -} from "./types"; - -export const params = { - get input() { - return BigFishSessionCreateInput; - }, -}; -export const returnType = BigFishSessionProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/create_custom_world_agent_session_procedure.ts b/src/spacetime/generated/create_custom_world_agent_session_procedure.ts deleted file mode 100644 index b606e290..00000000 --- a/src/spacetime/generated/create_custom_world_agent_session_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - CustomWorldAgentSessionCreateInput, - CustomWorldAgentSessionProcedureResult, -} from "./types"; - -export const params = { - get input() { - return CustomWorldAgentSessionCreateInput; - }, -}; -export const returnType = CustomWorldAgentSessionProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/create_profile_recharge_order_and_return_procedure.ts b/src/spacetime/generated/create_profile_recharge_order_and_return_procedure.ts deleted file mode 100644 index dadcd758..00000000 --- a/src/spacetime/generated/create_profile_recharge_order_and_return_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - RuntimeProfileRechargeOrderCreateInput, - RuntimeProfileRechargeCenterProcedureResult, -} from "./types"; - -export const params = { - get input() { - return RuntimeProfileRechargeOrderCreateInput; - }, -}; -export const returnType = RuntimeProfileRechargeCenterProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/create_puzzle_agent_session_procedure.ts b/src/spacetime/generated/create_puzzle_agent_session_procedure.ts deleted file mode 100644 index ed060ebc..00000000 --- a/src/spacetime/generated/create_puzzle_agent_session_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - PuzzleAgentSessionProcedureResult, - PuzzleAgentSessionCreateInput, -} from "./types"; - -export const params = { - get input() { - return PuzzleAgentSessionCreateInput; - }, -}; -export const returnType = PuzzleAgentSessionProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/custom_world_agent_message_table.ts b/src/spacetime/generated/custom_world_agent_message_table.ts deleted file mode 100644 index faf4b0f6..00000000 --- a/src/spacetime/generated/custom_world_agent_message_table.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; -import { - RpgAgentMessageRole, - RpgAgentMessageKind, -} from "./types"; - - -export default __t.row({ - messageId: __t.string().primaryKey().name("message_id"), - sessionId: __t.string().name("session_id"), - get role() { - return RpgAgentMessageRole; - }, - get kind() { - return RpgAgentMessageKind; - }, - text: __t.string(), - relatedOperationId: __t.option(__t.string()).name("related_operation_id"), - createdAt: __t.timestamp().name("created_at"), -}); diff --git a/src/spacetime/generated/custom_world_agent_operation_table.ts b/src/spacetime/generated/custom_world_agent_operation_table.ts deleted file mode 100644 index 0e3a615a..00000000 --- a/src/spacetime/generated/custom_world_agent_operation_table.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; -import { - RpgAgentOperationType, - RpgAgentOperationStatus, -} from "./types"; - - -export default __t.row({ - operationId: __t.string().primaryKey().name("operation_id"), - sessionId: __t.string().name("session_id"), - get operationType() { - return RpgAgentOperationType.name("operation_type"); - }, - get status() { - return RpgAgentOperationStatus; - }, - phaseLabel: __t.string().name("phase_label"), - phaseDetail: __t.string().name("phase_detail"), - progress: __t.u32(), - errorMessage: __t.option(__t.string()).name("error_message"), - createdAt: __t.timestamp().name("created_at"), - updatedAt: __t.timestamp().name("updated_at"), -}); diff --git a/src/spacetime/generated/custom_world_agent_session_table.ts b/src/spacetime/generated/custom_world_agent_session_table.ts deleted file mode 100644 index 9732e2fc..00000000 --- a/src/spacetime/generated/custom_world_agent_session_table.ts +++ /dev/null @@ -1,44 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; -import { - RpgAgentStage, -} from "./types"; - - -export default __t.row({ - sessionId: __t.string().primaryKey().name("session_id"), - ownerUserId: __t.string().name("owner_user_id"), - seedText: __t.string().name("seed_text"), - currentTurn: __t.u32().name("current_turn"), - progressPercent: __t.u32().name("progress_percent"), - get stage() { - return RpgAgentStage; - }, - focusCardId: __t.option(__t.string()).name("focus_card_id"), - anchorContentJson: __t.string().name("anchor_content_json"), - creatorIntentJson: __t.option(__t.string()).name("creator_intent_json"), - creatorIntentReadinessJson: __t.string().name("creator_intent_readiness_json"), - anchorPackJson: __t.option(__t.string()).name("anchor_pack_json"), - lockStateJson: __t.option(__t.string()).name("lock_state_json"), - draftProfileJson: __t.option(__t.string()).name("draft_profile_json"), - lastAssistantReply: __t.option(__t.string()).name("last_assistant_reply"), - publishGateJson: __t.option(__t.string()).name("publish_gate_json"), - resultPreviewJson: __t.option(__t.string()).name("result_preview_json"), - pendingClarificationsJson: __t.string().name("pending_clarifications_json"), - qualityFindingsJson: __t.string().name("quality_findings_json"), - suggestedActionsJson: __t.string().name("suggested_actions_json"), - recommendedRepliesJson: __t.string().name("recommended_replies_json"), - assetCoverageJson: __t.string().name("asset_coverage_json"), - checkpointsJson: __t.string().name("checkpoints_json"), - createdAt: __t.timestamp().name("created_at"), - updatedAt: __t.timestamp().name("updated_at"), -}); diff --git a/src/spacetime/generated/custom_world_draft_card_table.ts b/src/spacetime/generated/custom_world_draft_card_table.ts deleted file mode 100644 index 29f20c29..00000000 --- a/src/spacetime/generated/custom_world_draft_card_table.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; -import { - RpgAgentDraftCardKind, - RpgAgentDraftCardStatus, - CustomWorldRoleAssetStatus, -} from "./types"; - - -export default __t.row({ - cardId: __t.string().primaryKey().name("card_id"), - sessionId: __t.string().name("session_id"), - get kind() { - return RpgAgentDraftCardKind; - }, - get status() { - return RpgAgentDraftCardStatus; - }, - title: __t.string(), - subtitle: __t.string(), - summary: __t.string(), - linkedIdsJson: __t.string().name("linked_ids_json"), - warningCount: __t.u32().name("warning_count"), - get assetStatus() { - return __t.option(CustomWorldRoleAssetStatus).name("asset_status"); - }, - assetStatusLabel: __t.option(__t.string()).name("asset_status_label"), - detailPayloadJson: __t.option(__t.string()).name("detail_payload_json"), - createdAt: __t.timestamp().name("created_at"), - updatedAt: __t.timestamp().name("updated_at"), -}); diff --git a/src/spacetime/generated/custom_world_gallery_entry_table.ts b/src/spacetime/generated/custom_world_gallery_entry_table.ts deleted file mode 100644 index 0b512228..00000000 --- a/src/spacetime/generated/custom_world_gallery_entry_table.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; -import { - CustomWorldThemeMode, -} from "./types"; - - -export default __t.row({ - profileId: __t.string().primaryKey().name("profile_id"), - ownerUserId: __t.string().name("owner_user_id"), - publicWorkCode: __t.string().name("public_work_code"), - authorPublicUserCode: __t.string().name("author_public_user_code"), - authorDisplayName: __t.string().name("author_display_name"), - worldName: __t.string().name("world_name"), - subtitle: __t.string(), - summaryText: __t.string().name("summary_text"), - coverImageSrc: __t.option(__t.string()).name("cover_image_src"), - get themeMode() { - return CustomWorldThemeMode.name("theme_mode"); - }, - playableNpcCount: __t.u32().name("playable_npc_count"), - landmarkCount: __t.u32().name("landmark_count"), - publishedAt: __t.timestamp().name("published_at"), - updatedAt: __t.timestamp().name("updated_at"), -}); diff --git a/src/spacetime/generated/custom_world_profile_table.ts b/src/spacetime/generated/custom_world_profile_table.ts deleted file mode 100644 index f42be9e5..00000000 --- a/src/spacetime/generated/custom_world_profile_table.ts +++ /dev/null @@ -1,42 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; -import { - CustomWorldThemeMode, - CustomWorldPublicationStatus, -} from "./types"; - - -export default __t.row({ - profileId: __t.string().primaryKey().name("profile_id"), - ownerUserId: __t.string().name("owner_user_id"), - publicWorkCode: __t.option(__t.string()).name("public_work_code"), - authorPublicUserCode: __t.option(__t.string()).name("author_public_user_code"), - sourceAgentSessionId: __t.option(__t.string()).name("source_agent_session_id"), - get publicationStatus() { - return CustomWorldPublicationStatus.name("publication_status"); - }, - worldName: __t.string().name("world_name"), - subtitle: __t.string(), - summaryText: __t.string().name("summary_text"), - get themeMode() { - return CustomWorldThemeMode.name("theme_mode"); - }, - coverImageSrc: __t.option(__t.string()).name("cover_image_src"), - profilePayloadJson: __t.string().name("profile_payload_json"), - playableNpcCount: __t.u32().name("playable_npc_count"), - landmarkCount: __t.u32().name("landmark_count"), - authorDisplayName: __t.string().name("author_display_name"), - publishedAt: __t.option(__t.timestamp()).name("published_at"), - deletedAt: __t.option(__t.timestamp()).name("deleted_at"), - createdAt: __t.timestamp().name("created_at"), - updatedAt: __t.timestamp().name("updated_at"), -}); diff --git a/src/spacetime/generated/custom_world_session_table.ts b/src/spacetime/generated/custom_world_session_table.ts deleted file mode 100644 index 3e3f8f08..00000000 --- a/src/spacetime/generated/custom_world_session_table.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; -import { - CustomWorldGenerationMode, - CustomWorldSessionStatus, -} from "./types"; - - -export default __t.row({ - sessionId: __t.string().primaryKey().name("session_id"), - ownerUserId: __t.string().name("owner_user_id"), - get generationMode() { - return CustomWorldGenerationMode.name("generation_mode"); - }, - get status() { - return CustomWorldSessionStatus; - }, - settingText: __t.string().name("setting_text"), - creatorIntentJson: __t.option(__t.string()).name("creator_intent_json"), - questionSnapshotJson: __t.string().name("question_snapshot_json"), - resultPayloadJson: __t.option(__t.string()).name("result_payload_json"), - lastErrorMessage: __t.option(__t.string()).name("last_error_message"), - createdAt: __t.timestamp().name("created_at"), - updatedAt: __t.timestamp().name("updated_at"), -}); diff --git a/src/spacetime/generated/delete_big_fish_work_procedure.ts b/src/spacetime/generated/delete_big_fish_work_procedure.ts deleted file mode 100644 index d5849692..00000000 --- a/src/spacetime/generated/delete_big_fish_work_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - BigFishWorkDeleteInput, - BigFishWorksProcedureResult, -} from "./types"; - -export const params = { - get input() { - return BigFishWorkDeleteInput; - }, -}; -export const returnType = BigFishWorksProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/delete_custom_world_agent_session_procedure.ts b/src/spacetime/generated/delete_custom_world_agent_session_procedure.ts deleted file mode 100644 index a4899177..00000000 --- a/src/spacetime/generated/delete_custom_world_agent_session_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - CustomWorldAgentSessionGetInput, - CustomWorldWorksListResult, -} from "./types"; - -export const params = { - get input() { - return CustomWorldAgentSessionGetInput; - }, -}; -export const returnType = CustomWorldWorksListResult \ No newline at end of file diff --git a/src/spacetime/generated/delete_custom_world_profile_and_return_procedure.ts b/src/spacetime/generated/delete_custom_world_profile_and_return_procedure.ts deleted file mode 100644 index 885f877c..00000000 --- a/src/spacetime/generated/delete_custom_world_profile_and_return_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - CustomWorldProfileDeleteInput, - CustomWorldProfileListResult, -} from "./types"; - -export const params = { - get input() { - return CustomWorldProfileDeleteInput; - }, -}; -export const returnType = CustomWorldProfileListResult \ No newline at end of file diff --git a/src/spacetime/generated/delete_puzzle_work_procedure.ts b/src/spacetime/generated/delete_puzzle_work_procedure.ts deleted file mode 100644 index d0a24f69..00000000 --- a/src/spacetime/generated/delete_puzzle_work_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - PuzzleWorkDeleteInput, - PuzzleWorksProcedureResult, -} from "./types"; - -export const params = { - get input() { - return PuzzleWorkDeleteInput; - }, -}; -export const returnType = PuzzleWorksProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/delete_runtime_snapshot_and_return_procedure.ts b/src/spacetime/generated/delete_runtime_snapshot_and_return_procedure.ts deleted file mode 100644 index 197bcc6f..00000000 --- a/src/spacetime/generated/delete_runtime_snapshot_and_return_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - RuntimeSnapshotDeleteInput, - RuntimeSnapshotProcedureResult, -} from "./types"; - -export const params = { - get input() { - return RuntimeSnapshotDeleteInput; - }, -}; -export const returnType = RuntimeSnapshotProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/drag_puzzle_piece_or_group_procedure.ts b/src/spacetime/generated/drag_puzzle_piece_or_group_procedure.ts deleted file mode 100644 index b22d7ac4..00000000 --- a/src/spacetime/generated/drag_puzzle_piece_or_group_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - PuzzleRunProcedureResult, - PuzzleRunDragInput, -} from "./types"; - -export const params = { - get input() { - return PuzzleRunDragInput; - }, -}; -export const returnType = PuzzleRunProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/execute_custom_world_agent_action_procedure.ts b/src/spacetime/generated/execute_custom_world_agent_action_procedure.ts deleted file mode 100644 index da36dc4d..00000000 --- a/src/spacetime/generated/execute_custom_world_agent_action_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - CustomWorldAgentActionExecuteInput, - CustomWorldAgentActionExecuteResult, -} from "./types"; - -export const params = { - get input() { - return CustomWorldAgentActionExecuteInput; - }, -}; -export const returnType = CustomWorldAgentActionExecuteResult \ No newline at end of file diff --git a/src/spacetime/generated/export_auth_store_snapshot_from_tables_procedure.ts b/src/spacetime/generated/export_auth_store_snapshot_from_tables_procedure.ts deleted file mode 100644 index c632f072..00000000 --- a/src/spacetime/generated/export_auth_store_snapshot_from_tables_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - AuthStoreSnapshotProcedureResult, -} from "./types"; - -export const params = { -}; -export const returnType = AuthStoreSnapshotProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/fail_ai_task_and_return_procedure.ts b/src/spacetime/generated/fail_ai_task_and_return_procedure.ts deleted file mode 100644 index 25761c08..00000000 --- a/src/spacetime/generated/fail_ai_task_and_return_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - AiTaskProcedureResult, - AiTaskFailureInput, -} from "./types"; - -export const params = { - get input() { - return AiTaskFailureInput; - }, -}; -export const returnType = AiTaskProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/finalize_big_fish_agent_message_turn_procedure.ts b/src/spacetime/generated/finalize_big_fish_agent_message_turn_procedure.ts deleted file mode 100644 index 52b8bc25..00000000 --- a/src/spacetime/generated/finalize_big_fish_agent_message_turn_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - BigFishSessionProcedureResult, - BigFishMessageFinalizeInput, -} from "./types"; - -export const params = { - get input() { - return BigFishMessageFinalizeInput; - }, -}; -export const returnType = BigFishSessionProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/finalize_custom_world_agent_message_turn_procedure.ts b/src/spacetime/generated/finalize_custom_world_agent_message_turn_procedure.ts deleted file mode 100644 index 7e84efbb..00000000 --- a/src/spacetime/generated/finalize_custom_world_agent_message_turn_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - CustomWorldAgentMessageFinalizeInput, - CustomWorldAgentOperationProcedureResult, -} from "./types"; - -export const params = { - get input() { - return CustomWorldAgentMessageFinalizeInput; - }, -}; -export const returnType = CustomWorldAgentOperationProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/finalize_puzzle_agent_message_turn_procedure.ts b/src/spacetime/generated/finalize_puzzle_agent_message_turn_procedure.ts deleted file mode 100644 index 547cdb6f..00000000 --- a/src/spacetime/generated/finalize_puzzle_agent_message_turn_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - PuzzleAgentSessionProcedureResult, - PuzzleAgentMessageFinalizeInput, -} from "./types"; - -export const params = { - get input() { - return PuzzleAgentMessageFinalizeInput; - }, -}; -export const returnType = PuzzleAgentSessionProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/generate_big_fish_asset_procedure.ts b/src/spacetime/generated/generate_big_fish_asset_procedure.ts deleted file mode 100644 index 278e4982..00000000 --- a/src/spacetime/generated/generate_big_fish_asset_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - BigFishSessionProcedureResult, - BigFishAssetGenerateInput, -} from "./types"; - -export const params = { - get input() { - return BigFishAssetGenerateInput; - }, -}; -export const returnType = BigFishSessionProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/get_auth_store_snapshot_procedure.ts b/src/spacetime/generated/get_auth_store_snapshot_procedure.ts deleted file mode 100644 index c632f072..00000000 --- a/src/spacetime/generated/get_auth_store_snapshot_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - AuthStoreSnapshotProcedureResult, -} from "./types"; - -export const params = { -}; -export const returnType = AuthStoreSnapshotProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/get_battle_state_procedure.ts b/src/spacetime/generated/get_battle_state_procedure.ts deleted file mode 100644 index 3b1d2ead..00000000 --- a/src/spacetime/generated/get_battle_state_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - BattleStateProcedureResult, - BattleStateQueryInput, -} from "./types"; - -export const params = { - get input() { - return BattleStateQueryInput; - }, -}; -export const returnType = BattleStateProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/get_big_fish_run_procedure.ts b/src/spacetime/generated/get_big_fish_run_procedure.ts deleted file mode 100644 index 4b27c5de..00000000 --- a/src/spacetime/generated/get_big_fish_run_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - BigFishRunGetInput, - BigFishRunProcedureResult, -} from "./types"; - -export const params = { - get input() { - return BigFishRunGetInput; - }, -}; -export const returnType = BigFishRunProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/get_big_fish_session_procedure.ts b/src/spacetime/generated/get_big_fish_session_procedure.ts deleted file mode 100644 index ee13e4b3..00000000 --- a/src/spacetime/generated/get_big_fish_session_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - BigFishSessionProcedureResult, - BigFishSessionGetInput, -} from "./types"; - -export const params = { - get input() { - return BigFishSessionGetInput; - }, -}; -export const returnType = BigFishSessionProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/get_chapter_progression_procedure.ts b/src/spacetime/generated/get_chapter_progression_procedure.ts deleted file mode 100644 index 192ddb5b..00000000 --- a/src/spacetime/generated/get_chapter_progression_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - ChapterProgressionProcedureResult, - ChapterProgressionGetInput, -} from "./types"; - -export const params = { - get input() { - return ChapterProgressionGetInput; - }, -}; -export const returnType = ChapterProgressionProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/get_custom_world_agent_card_detail_procedure.ts b/src/spacetime/generated/get_custom_world_agent_card_detail_procedure.ts deleted file mode 100644 index 4c1ac477..00000000 --- a/src/spacetime/generated/get_custom_world_agent_card_detail_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - CustomWorldAgentCardDetailGetInput, - CustomWorldDraftCardDetailResult, -} from "./types"; - -export const params = { - get input() { - return CustomWorldAgentCardDetailGetInput; - }, -}; -export const returnType = CustomWorldDraftCardDetailResult \ No newline at end of file diff --git a/src/spacetime/generated/get_custom_world_agent_operation_procedure.ts b/src/spacetime/generated/get_custom_world_agent_operation_procedure.ts deleted file mode 100644 index 817a2c91..00000000 --- a/src/spacetime/generated/get_custom_world_agent_operation_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - CustomWorldAgentOperationProcedureResult, - CustomWorldAgentOperationGetInput, -} from "./types"; - -export const params = { - get input() { - return CustomWorldAgentOperationGetInput; - }, -}; -export const returnType = CustomWorldAgentOperationProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/get_custom_world_agent_session_procedure.ts b/src/spacetime/generated/get_custom_world_agent_session_procedure.ts deleted file mode 100644 index 7f35e482..00000000 --- a/src/spacetime/generated/get_custom_world_agent_session_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - CustomWorldAgentSessionProcedureResult, - CustomWorldAgentSessionGetInput, -} from "./types"; - -export const params = { - get input() { - return CustomWorldAgentSessionGetInput; - }, -}; -export const returnType = CustomWorldAgentSessionProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/get_custom_world_gallery_detail_by_code_procedure.ts b/src/spacetime/generated/get_custom_world_gallery_detail_by_code_procedure.ts deleted file mode 100644 index 4cf301b1..00000000 --- a/src/spacetime/generated/get_custom_world_gallery_detail_by_code_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - CustomWorldLibraryMutationResult, - CustomWorldGalleryDetailByCodeInput, -} from "./types"; - -export const params = { - get input() { - return CustomWorldGalleryDetailByCodeInput; - }, -}; -export const returnType = CustomWorldLibraryMutationResult \ No newline at end of file diff --git a/src/spacetime/generated/get_custom_world_gallery_detail_procedure.ts b/src/spacetime/generated/get_custom_world_gallery_detail_procedure.ts deleted file mode 100644 index 25899b87..00000000 --- a/src/spacetime/generated/get_custom_world_gallery_detail_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - CustomWorldGalleryDetailInput, - CustomWorldLibraryMutationResult, -} from "./types"; - -export const params = { - get input() { - return CustomWorldGalleryDetailInput; - }, -}; -export const returnType = CustomWorldLibraryMutationResult \ No newline at end of file diff --git a/src/spacetime/generated/get_custom_world_library_detail_procedure.ts b/src/spacetime/generated/get_custom_world_library_detail_procedure.ts deleted file mode 100644 index 5239bbc5..00000000 --- a/src/spacetime/generated/get_custom_world_library_detail_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - CustomWorldLibraryMutationResult, - CustomWorldLibraryDetailInput, -} from "./types"; - -export const params = { - get input() { - return CustomWorldLibraryDetailInput; - }, -}; -export const returnType = CustomWorldLibraryMutationResult \ No newline at end of file diff --git a/src/spacetime/generated/get_player_progression_or_default_procedure.ts b/src/spacetime/generated/get_player_progression_or_default_procedure.ts deleted file mode 100644 index 1d434be5..00000000 --- a/src/spacetime/generated/get_player_progression_or_default_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - PlayerProgressionGetInput, - PlayerProgressionProcedureResult, -} from "./types"; - -export const params = { - get input() { - return PlayerProgressionGetInput; - }, -}; -export const returnType = PlayerProgressionProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/get_profile_dashboard_procedure.ts b/src/spacetime/generated/get_profile_dashboard_procedure.ts deleted file mode 100644 index d84d1313..00000000 --- a/src/spacetime/generated/get_profile_dashboard_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - RuntimeProfileDashboardGetInput, - RuntimeProfileDashboardProcedureResult, -} from "./types"; - -export const params = { - get input() { - return RuntimeProfileDashboardGetInput; - }, -}; -export const returnType = RuntimeProfileDashboardProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/get_profile_play_stats_procedure.ts b/src/spacetime/generated/get_profile_play_stats_procedure.ts deleted file mode 100644 index eb00b1a7..00000000 --- a/src/spacetime/generated/get_profile_play_stats_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - RuntimeProfilePlayStatsGetInput, - RuntimeProfilePlayStatsProcedureResult, -} from "./types"; - -export const params = { - get input() { - return RuntimeProfilePlayStatsGetInput; - }, -}; -export const returnType = RuntimeProfilePlayStatsProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/get_profile_recharge_center_procedure.ts b/src/spacetime/generated/get_profile_recharge_center_procedure.ts deleted file mode 100644 index a07a1e95..00000000 --- a/src/spacetime/generated/get_profile_recharge_center_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - RuntimeProfileRechargeCenterProcedureResult, - RuntimeProfileRechargeCenterGetInput, -} from "./types"; - -export const params = { - get input() { - return RuntimeProfileRechargeCenterGetInput; - }, -}; -export const returnType = RuntimeProfileRechargeCenterProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/get_profile_referral_invite_center_procedure.ts b/src/spacetime/generated/get_profile_referral_invite_center_procedure.ts deleted file mode 100644 index f784aa1e..00000000 --- a/src/spacetime/generated/get_profile_referral_invite_center_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - RuntimeReferralInviteCenterGetInput, - RuntimeReferralInviteCenterProcedureResult, -} from "./types"; - -export const params = { - get input() { - return RuntimeReferralInviteCenterGetInput; - }, -}; -export const returnType = RuntimeReferralInviteCenterProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/get_puzzle_agent_session_procedure.ts b/src/spacetime/generated/get_puzzle_agent_session_procedure.ts deleted file mode 100644 index 1d3e73cf..00000000 --- a/src/spacetime/generated/get_puzzle_agent_session_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - PuzzleAgentSessionProcedureResult, - PuzzleAgentSessionGetInput, -} from "./types"; - -export const params = { - get input() { - return PuzzleAgentSessionGetInput; - }, -}; -export const returnType = PuzzleAgentSessionProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/get_puzzle_gallery_detail_procedure.ts b/src/spacetime/generated/get_puzzle_gallery_detail_procedure.ts deleted file mode 100644 index 77950fe7..00000000 --- a/src/spacetime/generated/get_puzzle_gallery_detail_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - PuzzleWorkGetInput, - PuzzleWorkProcedureResult, -} from "./types"; - -export const params = { - get input() { - return PuzzleWorkGetInput; - }, -}; -export const returnType = PuzzleWorkProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/get_puzzle_run_procedure.ts b/src/spacetime/generated/get_puzzle_run_procedure.ts deleted file mode 100644 index 558b1900..00000000 --- a/src/spacetime/generated/get_puzzle_run_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - PuzzleRunProcedureResult, - PuzzleRunGetInput, -} from "./types"; - -export const params = { - get input() { - return PuzzleRunGetInput; - }, -}; -export const returnType = PuzzleRunProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/get_puzzle_work_detail_procedure.ts b/src/spacetime/generated/get_puzzle_work_detail_procedure.ts deleted file mode 100644 index 77950fe7..00000000 --- a/src/spacetime/generated/get_puzzle_work_detail_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - PuzzleWorkGetInput, - PuzzleWorkProcedureResult, -} from "./types"; - -export const params = { - get input() { - return PuzzleWorkGetInput; - }, -}; -export const returnType = PuzzleWorkProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/get_runtime_inventory_state_procedure.ts b/src/spacetime/generated/get_runtime_inventory_state_procedure.ts deleted file mode 100644 index 8aaf203a..00000000 --- a/src/spacetime/generated/get_runtime_inventory_state_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - RuntimeInventoryStateQueryInput, - RuntimeInventoryStateProcedureResult, -} from "./types"; - -export const params = { - get input() { - return RuntimeInventoryStateQueryInput; - }, -}; -export const returnType = RuntimeInventoryStateProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/get_runtime_setting_or_default_procedure.ts b/src/spacetime/generated/get_runtime_setting_or_default_procedure.ts deleted file mode 100644 index 0808af1b..00000000 --- a/src/spacetime/generated/get_runtime_setting_or_default_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - RuntimeSettingGetInput, - RuntimeSettingProcedureResult, -} from "./types"; - -export const params = { - get input() { - return RuntimeSettingGetInput; - }, -}; -export const returnType = RuntimeSettingProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/get_runtime_snapshot_procedure.ts b/src/spacetime/generated/get_runtime_snapshot_procedure.ts deleted file mode 100644 index 0c2ed40a..00000000 --- a/src/spacetime/generated/get_runtime_snapshot_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - RuntimeSnapshotProcedureResult, - RuntimeSnapshotGetInput, -} from "./types"; - -export const params = { - get input() { - return RuntimeSnapshotGetInput; - }, -}; -export const returnType = RuntimeSnapshotProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/get_story_session_state_procedure.ts b/src/spacetime/generated/get_story_session_state_procedure.ts deleted file mode 100644 index 6cdf126e..00000000 --- a/src/spacetime/generated/get_story_session_state_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - StorySessionStateInput, - StorySessionStateProcedureResult, -} from "./types"; - -export const params = { - get input() { - return StorySessionStateInput; - }, -}; -export const returnType = StorySessionStateProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/grant_player_progression_experience_and_return_procedure.ts b/src/spacetime/generated/grant_player_progression_experience_and_return_procedure.ts deleted file mode 100644 index 78abf307..00000000 --- a/src/spacetime/generated/grant_player_progression_experience_and_return_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - PlayerProgressionProcedureResult, - PlayerProgressionGrantInput, -} from "./types"; - -export const params = { - get input() { - return PlayerProgressionGrantInput; - }, -}; -export const returnType = PlayerProgressionProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/grant_player_progression_experience_reducer.ts b/src/spacetime/generated/grant_player_progression_experience_reducer.ts deleted file mode 100644 index bc9add10..00000000 --- a/src/spacetime/generated/grant_player_progression_experience_reducer.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - PlayerProgressionGrantInput, -} from "./types"; - -export default { - get input() { - return PlayerProgressionGrantInput; - }, -}; diff --git a/src/spacetime/generated/import_auth_store_snapshot_procedure.ts b/src/spacetime/generated/import_auth_store_snapshot_procedure.ts deleted file mode 100644 index bf534c30..00000000 --- a/src/spacetime/generated/import_auth_store_snapshot_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - AuthStoreSnapshotImportProcedureResult, -} from "./types"; - -export const params = { -}; -export const returnType = AuthStoreSnapshotImportProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/index.ts b/src/spacetime/generated/index.ts deleted file mode 100644 index 2c9e7cf7..00000000 --- a/src/spacetime/generated/index.ts +++ /dev/null @@ -1,1166 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -// This was generated using spacetimedb cli version 2.1.0 (commit 6981f48b4bc1a71c8dd9bdfe5a2c343f6370243d). - -/* eslint-disable */ -/* tslint:disable */ -import { - DbConnectionBuilder as __DbConnectionBuilder, - DbConnectionImpl as __DbConnectionImpl, - SubscriptionBuilderImpl as __SubscriptionBuilderImpl, - TypeBuilder as __TypeBuilder, - Uuid as __Uuid, - convertToAccessorMap as __convertToAccessorMap, - makeQueryBuilder as __makeQueryBuilder, - procedureSchema as __procedureSchema, - procedures as __procedures, - reducerSchema as __reducerSchema, - reducers as __reducers, - schema as __schema, - t as __t, - table as __table, - type AlgebraicTypeType as __AlgebraicTypeType, - type DbConnectionConfig as __DbConnectionConfig, - type ErrorContextInterface as __ErrorContextInterface, - type Event as __Event, - type EventContextInterface as __EventContextInterface, - type Infer as __Infer, - type QueryBuilder as __QueryBuilder, - type ReducerEventContextInterface as __ReducerEventContextInterface, - type RemoteModule as __RemoteModule, - type SubscriptionEventContextInterface as __SubscriptionEventContextInterface, - type SubscriptionHandleImpl as __SubscriptionHandleImpl, -} from "spacetimedb"; - -// Import all reducer arg schemas -import AcceptQuestReducer from "./accept_quest_reducer"; -import AcknowledgeQuestCompletionReducer from "./acknowledge_quest_completion_reducer"; -import ApplyChapterProgressionLedgerEntryReducer from "./apply_chapter_progression_ledger_entry_reducer"; -import ApplyInventoryMutationReducer from "./apply_inventory_mutation_reducer"; -import ApplyQuestSignalReducer from "./apply_quest_signal_reducer"; -import BeginStorySessionReducer from "./begin_story_session_reducer"; -import BindAssetObjectToEntityReducer from "./bind_asset_object_to_entity_reducer"; -import ConfirmAssetObjectReducer from "./confirm_asset_object_reducer"; -import ContinueStoryReducer from "./continue_story_reducer"; -import CreateAiTaskReducer from "./create_ai_task_reducer"; -import CreateBattleStateReducer from "./create_battle_state_reducer"; -import GrantPlayerProgressionExperienceReducer from "./grant_player_progression_experience_reducer"; -import PublishCustomWorldProfileReducer from "./publish_custom_world_profile_reducer"; -import ResolveCombatActionReducer from "./resolve_combat_action_reducer"; -import ResolveNpcInteractionReducer from "./resolve_npc_interaction_reducer"; -import ResolveNpcSocialActionReducer from "./resolve_npc_social_action_reducer"; -import ResolveTreasureInteractionReducer from "./resolve_treasure_interaction_reducer"; -import StartAiTaskReducer from "./start_ai_task_reducer"; -import StartAiTaskStageReducer from "./start_ai_task_stage_reducer"; -import TurnInQuestReducer from "./turn_in_quest_reducer"; -import UnpublishCustomWorldProfileReducer from "./unpublish_custom_world_profile_reducer"; -import UpsertChapterProgressionReducer from "./upsert_chapter_progression_reducer"; -import UpsertCustomWorldProfileReducer from "./upsert_custom_world_profile_reducer"; -import UpsertNpcStateReducer from "./upsert_npc_state_reducer"; - -// Import all procedure arg schemas -import * as AdvancePuzzleNextLevelProcedure from "./advance_puzzle_next_level_procedure"; -import * as AppendAiTextChunkAndReturnProcedure from "./append_ai_text_chunk_and_return_procedure"; -import * as ApplyChapterProgressionLedgerEntryAndReturnProcedure from "./apply_chapter_progression_ledger_entry_and_return_procedure"; -import * as AttachAiResultReferenceAndReturnProcedure from "./attach_ai_result_reference_and_return_procedure"; -import * as BeginStorySessionAndReturnProcedure from "./begin_story_session_and_return_procedure"; -import * as BindAssetObjectToEntityAndReturnProcedure from "./bind_asset_object_to_entity_and_return_procedure"; -import * as CancelAiTaskAndReturnProcedure from "./cancel_ai_task_and_return_procedure"; -import * as ClearPlatformBrowseHistoryAndReturnProcedure from "./clear_platform_browse_history_and_return_procedure"; -import * as CompileBigFishDraftProcedure from "./compile_big_fish_draft_procedure"; -import * as CompileCustomWorldPublishedProfileProcedure from "./compile_custom_world_published_profile_procedure"; -import * as CompilePuzzleAgentDraftProcedure from "./compile_puzzle_agent_draft_procedure"; -import * as CompleteAiStageAndReturnProcedure from "./complete_ai_stage_and_return_procedure"; -import * as CompleteAiTaskAndReturnProcedure from "./complete_ai_task_and_return_procedure"; -import * as ConfirmAssetObjectAndReturnProcedure from "./confirm_asset_object_and_return_procedure"; -import * as ContinueStoryAndReturnProcedure from "./continue_story_and_return_procedure"; -import * as CreateAiTaskAndReturnProcedure from "./create_ai_task_and_return_procedure"; -import * as CreateBattleStateAndReturnProcedure from "./create_battle_state_and_return_procedure"; -import * as CreateBigFishSessionProcedure from "./create_big_fish_session_procedure"; -import * as CreateCustomWorldAgentSessionProcedure from "./create_custom_world_agent_session_procedure"; -import * as CreateProfileRechargeOrderAndReturnProcedure from "./create_profile_recharge_order_and_return_procedure"; -import * as CreatePuzzleAgentSessionProcedure from "./create_puzzle_agent_session_procedure"; -import * as DeleteBigFishWorkProcedure from "./delete_big_fish_work_procedure"; -import * as DeleteCustomWorldAgentSessionProcedure from "./delete_custom_world_agent_session_procedure"; -import * as DeleteCustomWorldProfileAndReturnProcedure from "./delete_custom_world_profile_and_return_procedure"; -import * as DeletePuzzleWorkProcedure from "./delete_puzzle_work_procedure"; -import * as DeleteRuntimeSnapshotAndReturnProcedure from "./delete_runtime_snapshot_and_return_procedure"; -import * as DragPuzzlePieceOrGroupProcedure from "./drag_puzzle_piece_or_group_procedure"; -import * as ExecuteCustomWorldAgentActionProcedure from "./execute_custom_world_agent_action_procedure"; -import * as ExportAuthStoreSnapshotFromTablesProcedure from "./export_auth_store_snapshot_from_tables_procedure"; -import * as FailAiTaskAndReturnProcedure from "./fail_ai_task_and_return_procedure"; -import * as FinalizeBigFishAgentMessageTurnProcedure from "./finalize_big_fish_agent_message_turn_procedure"; -import * as FinalizeCustomWorldAgentMessageTurnProcedure from "./finalize_custom_world_agent_message_turn_procedure"; -import * as FinalizePuzzleAgentMessageTurnProcedure from "./finalize_puzzle_agent_message_turn_procedure"; -import * as GenerateBigFishAssetProcedure from "./generate_big_fish_asset_procedure"; -import * as GetAuthStoreSnapshotProcedure from "./get_auth_store_snapshot_procedure"; -import * as GetBattleStateProcedure from "./get_battle_state_procedure"; -import * as GetBigFishRunProcedure from "./get_big_fish_run_procedure"; -import * as GetBigFishSessionProcedure from "./get_big_fish_session_procedure"; -import * as GetChapterProgressionProcedure from "./get_chapter_progression_procedure"; -import * as GetCustomWorldAgentCardDetailProcedure from "./get_custom_world_agent_card_detail_procedure"; -import * as GetCustomWorldAgentOperationProcedure from "./get_custom_world_agent_operation_procedure"; -import * as GetCustomWorldAgentSessionProcedure from "./get_custom_world_agent_session_procedure"; -import * as GetCustomWorldGalleryDetailProcedure from "./get_custom_world_gallery_detail_procedure"; -import * as GetCustomWorldGalleryDetailByCodeProcedure from "./get_custom_world_gallery_detail_by_code_procedure"; -import * as GetCustomWorldLibraryDetailProcedure from "./get_custom_world_library_detail_procedure"; -import * as GetPlayerProgressionOrDefaultProcedure from "./get_player_progression_or_default_procedure"; -import * as GetProfileDashboardProcedure from "./get_profile_dashboard_procedure"; -import * as GetProfilePlayStatsProcedure from "./get_profile_play_stats_procedure"; -import * as GetProfileRechargeCenterProcedure from "./get_profile_recharge_center_procedure"; -import * as GetProfileReferralInviteCenterProcedure from "./get_profile_referral_invite_center_procedure"; -import * as GetPuzzleAgentSessionProcedure from "./get_puzzle_agent_session_procedure"; -import * as GetPuzzleGalleryDetailProcedure from "./get_puzzle_gallery_detail_procedure"; -import * as GetPuzzleRunProcedure from "./get_puzzle_run_procedure"; -import * as GetPuzzleWorkDetailProcedure from "./get_puzzle_work_detail_procedure"; -import * as GetRuntimeInventoryStateProcedure from "./get_runtime_inventory_state_procedure"; -import * as GetRuntimeSettingOrDefaultProcedure from "./get_runtime_setting_or_default_procedure"; -import * as GetRuntimeSnapshotProcedure from "./get_runtime_snapshot_procedure"; -import * as GetStorySessionStateProcedure from "./get_story_session_state_procedure"; -import * as GrantPlayerProgressionExperienceAndReturnProcedure from "./grant_player_progression_experience_and_return_procedure"; -import * as ImportAuthStoreSnapshotProcedure from "./import_auth_store_snapshot_procedure"; -import * as ListBigFishWorksProcedure from "./list_big_fish_works_procedure"; -import * as ListCustomWorldGalleryEntriesProcedure from "./list_custom_world_gallery_entries_procedure"; -import * as ListCustomWorldProfilesProcedure from "./list_custom_world_profiles_procedure"; -import * as ListCustomWorldWorksProcedure from "./list_custom_world_works_procedure"; -import * as ListPlatformBrowseHistoryProcedure from "./list_platform_browse_history_procedure"; -import * as ListProfileSaveArchivesProcedure from "./list_profile_save_archives_procedure"; -import * as ListProfileWalletLedgerProcedure from "./list_profile_wallet_ledger_procedure"; -import * as ListPuzzleGalleryProcedure from "./list_puzzle_gallery_procedure"; -import * as ListPuzzleWorksProcedure from "./list_puzzle_works_procedure"; -import * as PublishBigFishGameProcedure from "./publish_big_fish_game_procedure"; -import * as PublishCustomWorldProfileAndReturnProcedure from "./publish_custom_world_profile_and_return_procedure"; -import * as PublishCustomWorldWorldProcedure from "./publish_custom_world_world_procedure"; -import * as PublishPuzzleWorkProcedure from "./publish_puzzle_work_procedure"; -import * as RedeemProfileReferralInviteCodeProcedure from "./redeem_profile_referral_invite_code_procedure"; -import * as ResolveCombatActionAndReturnProcedure from "./resolve_combat_action_and_return_procedure"; -import * as ResolveNpcBattleInteractionAndReturnProcedure from "./resolve_npc_battle_interaction_and_return_procedure"; -import * as ResolveNpcInteractionAndReturnProcedure from "./resolve_npc_interaction_and_return_procedure"; -import * as ResolveNpcSocialActionAndReturnProcedure from "./resolve_npc_social_action_and_return_procedure"; -import * as ResolveTreasureInteractionAndReturnProcedure from "./resolve_treasure_interaction_and_return_procedure"; -import * as ResumeProfileSaveArchiveAndReturnProcedure from "./resume_profile_save_archive_and_return_procedure"; -import * as SavePuzzleGeneratedImagesProcedure from "./save_puzzle_generated_images_procedure"; -import * as SelectPuzzleCoverImageProcedure from "./select_puzzle_cover_image_procedure"; -import * as StartBigFishRunProcedure from "./start_big_fish_run_procedure"; -import * as StartPuzzleRunProcedure from "./start_puzzle_run_procedure"; -import * as SubmitBigFishInputProcedure from "./submit_big_fish_input_procedure"; -import * as SubmitBigFishMessageProcedure from "./submit_big_fish_message_procedure"; -import * as SubmitCustomWorldAgentMessageProcedure from "./submit_custom_world_agent_message_procedure"; -import * as SubmitPuzzleAgentMessageProcedure from "./submit_puzzle_agent_message_procedure"; -import * as SwapPuzzlePiecesProcedure from "./swap_puzzle_pieces_procedure"; -import * as UnpublishCustomWorldProfileAndReturnProcedure from "./unpublish_custom_world_profile_and_return_procedure"; -import * as UpdatePuzzleWorkProcedure from "./update_puzzle_work_procedure"; -import * as UpsertAuthStoreSnapshotProcedure from "./upsert_auth_store_snapshot_procedure"; -import * as UpsertChapterProgressionAndReturnProcedure from "./upsert_chapter_progression_and_return_procedure"; -import * as UpsertCustomWorldAgentOperationProgressProcedure from "./upsert_custom_world_agent_operation_progress_procedure"; -import * as UpsertCustomWorldProfileAndReturnProcedure from "./upsert_custom_world_profile_and_return_procedure"; -import * as UpsertNpcStateAndReturnProcedure from "./upsert_npc_state_and_return_procedure"; -import * as UpsertPlatformBrowseHistoryAndReturnProcedure from "./upsert_platform_browse_history_and_return_procedure"; -import * as UpsertRuntimeSettingAndReturnProcedure from "./upsert_runtime_setting_and_return_procedure"; -import * as UpsertRuntimeSnapshotAndReturnProcedure from "./upsert_runtime_snapshot_and_return_procedure"; - -// Import all table schema definitions -import AiResultReferenceRow from "./ai_result_reference_table"; -import AiTaskRow from "./ai_task_table"; -import AiTaskStageRow from "./ai_task_stage_table"; -import AiTextChunkRow from "./ai_text_chunk_table"; -import AssetEntityBindingRow from "./asset_entity_binding_table"; -import AssetObjectRow from "./asset_object_table"; -import AuthIdentityRow from "./auth_identity_table"; -import AuthStoreSnapshotRow from "./auth_store_snapshot_table"; -import BattleStateRow from "./battle_state_table"; -import BigFishAgentMessageRow from "./big_fish_agent_message_table"; -import BigFishAssetSlotRow from "./big_fish_asset_slot_table"; -import BigFishCreationSessionRow from "./big_fish_creation_session_table"; -import BigFishRuntimeRunRow from "./big_fish_runtime_run_table"; -import ChapterProgressionRow from "./chapter_progression_table"; -import CustomWorldAgentMessageRow from "./custom_world_agent_message_table"; -import CustomWorldAgentOperationRow from "./custom_world_agent_operation_table"; -import CustomWorldAgentSessionRow from "./custom_world_agent_session_table"; -import CustomWorldDraftCardRow from "./custom_world_draft_card_table"; -import CustomWorldGalleryEntryRow from "./custom_world_gallery_entry_table"; -import CustomWorldProfileRow from "./custom_world_profile_table"; -import CustomWorldSessionRow from "./custom_world_session_table"; -import InventorySlotRow from "./inventory_slot_table"; -import NpcStateRow from "./npc_state_table"; -import PlayerProgressionRow from "./player_progression_table"; -import ProfileDashboardStateRow from "./profile_dashboard_state_table"; -import ProfileInviteCodeRow from "./profile_invite_code_table"; -import ProfileMembershipRow from "./profile_membership_table"; -import ProfilePlayedWorldRow from "./profile_played_world_table"; -import ProfileRechargeOrderRow from "./profile_recharge_order_table"; -import ProfileReferralRelationRow from "./profile_referral_relation_table"; -import ProfileSaveArchiveRow from "./profile_save_archive_table"; -import ProfileWalletLedgerRow from "./profile_wallet_ledger_table"; -import PuzzleAgentMessageRow from "./puzzle_agent_message_table"; -import PuzzleAgentSessionRow from "./puzzle_agent_session_table"; -import PuzzleRuntimeRunRow from "./puzzle_runtime_run_table"; -import PuzzleWorkProfileRow from "./puzzle_work_profile_table"; -import QuestLogRow from "./quest_log_table"; -import QuestRecordRow from "./quest_record_table"; -import RefreshSessionRow from "./refresh_session_table"; -import RuntimeSettingRow from "./runtime_setting_table"; -import RuntimeSnapshotRow from "./runtime_snapshot_table"; -import StoryEventRow from "./story_event_table"; -import StorySessionRow from "./story_session_table"; -import TreasureRecordRow from "./treasure_record_table"; -import UserAccountRow from "./user_account_table"; -import UserBrowseHistoryRow from "./user_browse_history_table"; - -/** Type-only namespace exports for generated type groups. */ - -/** The schema information for all tables in this module. This is defined the same was as the tables would have been defined in the server. */ -const tablesSchema = __schema({ - ai_result_reference: __table({ - name: 'ai_result_reference', - indexes: [ - { accessor: 'result_reference_row_id', name: 'ai_result_reference_result_reference_row_id_idx_btree', algorithm: 'btree', columns: [ - 'resultReferenceRowId', - ] }, - { accessor: 'by_ai_result_reference_task_id', name: 'ai_result_reference_task_id_idx_btree', algorithm: 'btree', columns: [ - 'taskId', - ] }, - ], - constraints: [ - { name: 'ai_result_reference_result_reference_row_id_key', constraint: 'unique', columns: ['resultReferenceRowId'] }, - ], - }, AiResultReferenceRow), - ai_task: __table({ - name: 'ai_task', - indexes: [ - { accessor: 'by_ai_task_owner_user_id', name: 'ai_task_owner_user_id_idx_btree', algorithm: 'btree', columns: [ - 'ownerUserId', - ] }, - { accessor: 'by_ai_task_status', name: 'ai_task_status_idx_btree', algorithm: 'btree', columns: [ - 'status', - ] }, - { accessor: 'task_id', name: 'ai_task_task_id_idx_btree', algorithm: 'btree', columns: [ - 'taskId', - ] }, - { accessor: 'by_ai_task_kind', name: 'ai_task_task_kind_idx_btree', algorithm: 'btree', columns: [ - 'taskKind', - ] }, - ], - constraints: [ - { name: 'ai_task_task_id_key', constraint: 'unique', columns: ['taskId'] }, - ], - }, AiTaskRow), - ai_task_stage: __table({ - name: 'ai_task_stage', - indexes: [ - { accessor: 'by_ai_task_stage_task_id', name: 'ai_task_stage_task_id_idx_btree', algorithm: 'btree', columns: [ - 'taskId', - ] }, - { accessor: 'by_ai_task_stage_task_order', name: 'ai_task_stage_task_id_stage_order_idx_btree', algorithm: 'btree', columns: [ - 'taskId', - 'stageOrder', - ] }, - { accessor: 'task_stage_id', name: 'ai_task_stage_task_stage_id_idx_btree', algorithm: 'btree', columns: [ - 'taskStageId', - ] }, - ], - constraints: [ - { name: 'ai_task_stage_task_stage_id_key', constraint: 'unique', columns: ['taskStageId'] }, - ], - }, AiTaskStageRow), - ai_text_chunk: __table({ - name: 'ai_text_chunk', - indexes: [ - { accessor: 'by_ai_text_chunk_task_id', name: 'ai_text_chunk_task_id_idx_btree', algorithm: 'btree', columns: [ - 'taskId', - ] }, - { accessor: 'by_ai_text_chunk_task_stage_sequence', name: 'ai_text_chunk_task_id_stage_kind_sequence_idx_btree', algorithm: 'btree', columns: [ - 'taskId', - 'stageKind', - 'sequence', - ] }, - { accessor: 'text_chunk_row_id', name: 'ai_text_chunk_text_chunk_row_id_idx_btree', algorithm: 'btree', columns: [ - 'textChunkRowId', - ] }, - ], - constraints: [ - { name: 'ai_text_chunk_text_chunk_row_id_key', constraint: 'unique', columns: ['textChunkRowId'] }, - ], - }, AiTextChunkRow), - asset_entity_binding: __table({ - name: 'asset_entity_binding', - indexes: [ - { accessor: 'by_asset_object_id', name: 'asset_entity_binding_asset_object_id_idx_btree', algorithm: 'btree', columns: [ - 'assetObjectId', - ] }, - { accessor: 'binding_id', name: 'asset_entity_binding_binding_id_idx_btree', algorithm: 'btree', columns: [ - 'bindingId', - ] }, - { accessor: 'by_entity_slot', name: 'asset_entity_binding_entity_kind_entity_id_slot_idx_btree', algorithm: 'btree', columns: [ - 'entityKind', - 'entityId', - 'slot', - ] }, - ], - constraints: [ - { name: 'asset_entity_binding_binding_id_key', constraint: 'unique', columns: ['bindingId'] }, - ], - }, AssetEntityBindingRow), - asset_object: __table({ - name: 'asset_object', - indexes: [ - { accessor: 'asset_kind', name: 'asset_object_asset_kind_idx_btree', algorithm: 'btree', columns: [ - 'assetKind', - ] }, - { accessor: 'asset_object_id', name: 'asset_object_asset_object_id_idx_btree', algorithm: 'btree', columns: [ - 'assetObjectId', - ] }, - { accessor: 'by_bucket_object_key', name: 'asset_object_bucket_object_key_idx_btree', algorithm: 'btree', columns: [ - 'bucket', - 'objectKey', - ] }, - ], - constraints: [ - { name: 'asset_object_asset_object_id_key', constraint: 'unique', columns: ['assetObjectId'] }, - ], - }, AssetObjectRow), - auth_identity: __table({ - name: 'auth_identity', - indexes: [ - { accessor: 'identity_id', name: 'auth_identity_identity_id_idx_btree', algorithm: 'btree', columns: [ - 'identityId', - ] }, - { accessor: 'by_auth_identity_provider_uid', name: 'auth_identity_provider_provider_uid_idx_btree', algorithm: 'btree', columns: [ - 'provider', - 'providerUid', - ] }, - { accessor: 'by_auth_identity_user_id', name: 'auth_identity_user_id_idx_btree', algorithm: 'btree', columns: [ - 'userId', - ] }, - ], - constraints: [ - { name: 'auth_identity_identity_id_key', constraint: 'unique', columns: ['identityId'] }, - ], - }, AuthIdentityRow), - auth_store_snapshot: __table({ - name: 'auth_store_snapshot', - indexes: [ - { accessor: 'snapshot_id', name: 'auth_store_snapshot_snapshot_id_idx_btree', algorithm: 'btree', columns: [ - 'snapshotId', - ] }, - ], - constraints: [ - { name: 'auth_store_snapshot_snapshot_id_key', constraint: 'unique', columns: ['snapshotId'] }, - ], - }, AuthStoreSnapshotRow), - battle_state: __table({ - name: 'battle_state', - indexes: [ - { accessor: 'by_battle_actor_user_id', name: 'battle_state_actor_user_id_idx_btree', algorithm: 'btree', columns: [ - 'actorUserId', - ] }, - { accessor: 'battle_state_id', name: 'battle_state_battle_state_id_idx_btree', algorithm: 'btree', columns: [ - 'battleStateId', - ] }, - { accessor: 'by_battle_runtime_session_id', name: 'battle_state_runtime_session_id_idx_btree', algorithm: 'btree', columns: [ - 'runtimeSessionId', - ] }, - { accessor: 'by_battle_story_session_id', name: 'battle_state_story_session_id_idx_btree', algorithm: 'btree', columns: [ - 'storySessionId', - ] }, - ], - constraints: [ - { name: 'battle_state_battle_state_id_key', constraint: 'unique', columns: ['battleStateId'] }, - ], - }, BattleStateRow), - big_fish_agent_message: __table({ - name: 'big_fish_agent_message', - indexes: [ - { accessor: 'message_id', name: 'big_fish_agent_message_message_id_idx_btree', algorithm: 'btree', columns: [ - 'messageId', - ] }, - { accessor: 'by_big_fish_message_session_id', name: 'big_fish_agent_message_session_id_idx_btree', algorithm: 'btree', columns: [ - 'sessionId', - ] }, - ], - constraints: [ - { name: 'big_fish_agent_message_message_id_key', constraint: 'unique', columns: ['messageId'] }, - ], - }, BigFishAgentMessageRow), - big_fish_asset_slot: __table({ - name: 'big_fish_asset_slot', - indexes: [ - { accessor: 'by_big_fish_asset_session_id', name: 'big_fish_asset_slot_session_id_idx_btree', algorithm: 'btree', columns: [ - 'sessionId', - ] }, - { accessor: 'slot_id', name: 'big_fish_asset_slot_slot_id_idx_btree', algorithm: 'btree', columns: [ - 'slotId', - ] }, - ], - constraints: [ - { name: 'big_fish_asset_slot_slot_id_key', constraint: 'unique', columns: ['slotId'] }, - ], - }, BigFishAssetSlotRow), - big_fish_creation_session: __table({ - name: 'big_fish_creation_session', - indexes: [ - { accessor: 'by_big_fish_session_owner_user_id', name: 'big_fish_creation_session_owner_user_id_idx_btree', algorithm: 'btree', columns: [ - 'ownerUserId', - ] }, - { accessor: 'session_id', name: 'big_fish_creation_session_session_id_idx_btree', algorithm: 'btree', columns: [ - 'sessionId', - ] }, - ], - constraints: [ - { name: 'big_fish_creation_session_session_id_key', constraint: 'unique', columns: ['sessionId'] }, - ], - }, BigFishCreationSessionRow), - big_fish_runtime_run: __table({ - name: 'big_fish_runtime_run', - indexes: [ - { accessor: 'by_big_fish_run_owner_user_id', name: 'big_fish_runtime_run_owner_user_id_idx_btree', algorithm: 'btree', columns: [ - 'ownerUserId', - ] }, - { accessor: 'run_id', name: 'big_fish_runtime_run_run_id_idx_btree', algorithm: 'btree', columns: [ - 'runId', - ] }, - { accessor: 'by_big_fish_run_session_id', name: 'big_fish_runtime_run_session_id_idx_btree', algorithm: 'btree', columns: [ - 'sessionId', - ] }, - ], - constraints: [ - { name: 'big_fish_runtime_run_run_id_key', constraint: 'unique', columns: ['runId'] }, - ], - }, BigFishRuntimeRunRow), - chapter_progression: __table({ - name: 'chapter_progression', - indexes: [ - { accessor: 'by_chapter_progression_chapter_id', name: 'chapter_progression_chapter_id_idx_btree', algorithm: 'btree', columns: [ - 'chapterId', - ] }, - { accessor: 'chapter_progression_id', name: 'chapter_progression_chapter_progression_id_idx_btree', algorithm: 'btree', columns: [ - 'chapterProgressionId', - ] }, - { accessor: 'by_chapter_progression_user_chapter', name: 'chapter_progression_user_id_chapter_id_idx_btree', algorithm: 'btree', columns: [ - 'userId', - 'chapterId', - ] }, - { accessor: 'by_chapter_progression_user_id', name: 'chapter_progression_user_id_idx_btree', algorithm: 'btree', columns: [ - 'userId', - ] }, - ], - constraints: [ - { name: 'chapter_progression_chapter_progression_id_key', constraint: 'unique', columns: ['chapterProgressionId'] }, - ], - }, ChapterProgressionRow), - custom_world_agent_message: __table({ - name: 'custom_world_agent_message', - indexes: [ - { accessor: 'message_id', name: 'custom_world_agent_message_message_id_idx_btree', algorithm: 'btree', columns: [ - 'messageId', - ] }, - { accessor: 'by_custom_world_agent_message_session_id', name: 'custom_world_agent_message_session_id_idx_btree', algorithm: 'btree', columns: [ - 'sessionId', - ] }, - ], - constraints: [ - { name: 'custom_world_agent_message_message_id_key', constraint: 'unique', columns: ['messageId'] }, - ], - }, CustomWorldAgentMessageRow), - custom_world_agent_operation: __table({ - name: 'custom_world_agent_operation', - indexes: [ - { accessor: 'operation_id', name: 'custom_world_agent_operation_operation_id_idx_btree', algorithm: 'btree', columns: [ - 'operationId', - ] }, - { accessor: 'by_custom_world_agent_operation_session_id', name: 'custom_world_agent_operation_session_id_idx_btree', algorithm: 'btree', columns: [ - 'sessionId', - ] }, - ], - constraints: [ - { name: 'custom_world_agent_operation_operation_id_key', constraint: 'unique', columns: ['operationId'] }, - ], - }, CustomWorldAgentOperationRow), - custom_world_agent_session: __table({ - name: 'custom_world_agent_session', - indexes: [ - { accessor: 'by_custom_world_agent_session_owner_user_id', name: 'custom_world_agent_session_owner_user_id_idx_btree', algorithm: 'btree', columns: [ - 'ownerUserId', - ] }, - { accessor: 'session_id', name: 'custom_world_agent_session_session_id_idx_btree', algorithm: 'btree', columns: [ - 'sessionId', - ] }, - { accessor: 'by_custom_world_agent_session_stage', name: 'custom_world_agent_session_stage_idx_btree', algorithm: 'btree', columns: [ - 'stage', - ] }, - ], - constraints: [ - { name: 'custom_world_agent_session_session_id_key', constraint: 'unique', columns: ['sessionId'] }, - ], - }, CustomWorldAgentSessionRow), - custom_world_draft_card: __table({ - name: 'custom_world_draft_card', - indexes: [ - { accessor: 'card_id', name: 'custom_world_draft_card_card_id_idx_btree', algorithm: 'btree', columns: [ - 'cardId', - ] }, - { accessor: 'by_custom_world_draft_card_kind', name: 'custom_world_draft_card_kind_idx_btree', algorithm: 'btree', columns: [ - 'kind', - ] }, - { accessor: 'by_custom_world_draft_card_session_id', name: 'custom_world_draft_card_session_id_idx_btree', algorithm: 'btree', columns: [ - 'sessionId', - ] }, - ], - constraints: [ - { name: 'custom_world_draft_card_card_id_key', constraint: 'unique', columns: ['cardId'] }, - ], - }, CustomWorldDraftCardRow), - custom_world_gallery_entry: __table({ - name: 'custom_world_gallery_entry', - indexes: [ - { accessor: 'by_custom_world_gallery_owner_user_id', name: 'custom_world_gallery_entry_owner_user_id_idx_btree', algorithm: 'btree', columns: [ - 'ownerUserId', - ] }, - { accessor: 'profile_id', name: 'custom_world_gallery_entry_profile_id_idx_btree', algorithm: 'btree', columns: [ - 'profileId', - ] }, - { accessor: 'by_custom_world_gallery_public_work_code', name: 'custom_world_gallery_entry_public_work_code_idx_btree', algorithm: 'btree', columns: [ - 'publicWorkCode', - ] }, - { accessor: 'by_custom_world_gallery_theme_mode', name: 'custom_world_gallery_entry_theme_mode_idx_btree', algorithm: 'btree', columns: [ - 'themeMode', - ] }, - ], - constraints: [ - { name: 'custom_world_gallery_entry_profile_id_key', constraint: 'unique', columns: ['profileId'] }, - ], - }, CustomWorldGalleryEntryRow), - custom_world_profile: __table({ - name: 'custom_world_profile', - indexes: [ - { accessor: 'by_custom_world_profile_owner_user_id', name: 'custom_world_profile_owner_user_id_idx_btree', algorithm: 'btree', columns: [ - 'ownerUserId', - ] }, - { accessor: 'profile_id', name: 'custom_world_profile_profile_id_idx_btree', algorithm: 'btree', columns: [ - 'profileId', - ] }, - { accessor: 'by_custom_world_profile_publication_status', name: 'custom_world_profile_publication_status_idx_btree', algorithm: 'btree', columns: [ - 'publicationStatus', - ] }, - ], - constraints: [ - { name: 'custom_world_profile_profile_id_key', constraint: 'unique', columns: ['profileId'] }, - ], - }, CustomWorldProfileRow), - custom_world_session: __table({ - name: 'custom_world_session', - indexes: [ - { accessor: 'by_custom_world_session_owner_user_id', name: 'custom_world_session_owner_user_id_idx_btree', algorithm: 'btree', columns: [ - 'ownerUserId', - ] }, - { accessor: 'session_id', name: 'custom_world_session_session_id_idx_btree', algorithm: 'btree', columns: [ - 'sessionId', - ] }, - ], - constraints: [ - { name: 'custom_world_session_session_id_key', constraint: 'unique', columns: ['sessionId'] }, - ], - }, CustomWorldSessionRow), - inventory_slot: __table({ - name: 'inventory_slot', - indexes: [ - { accessor: 'by_inventory_actor_user_id', name: 'inventory_slot_actor_user_id_idx_btree', algorithm: 'btree', columns: [ - 'actorUserId', - ] }, - { accessor: 'by_inventory_container_slot', name: 'inventory_slot_container_kind_slot_key_idx_btree', algorithm: 'btree', columns: [ - 'containerKind', - 'slotKey', - ] }, - { accessor: 'by_inventory_item_id', name: 'inventory_slot_item_id_idx_btree', algorithm: 'btree', columns: [ - 'itemId', - ] }, - { accessor: 'by_inventory_runtime_session_id', name: 'inventory_slot_runtime_session_id_idx_btree', algorithm: 'btree', columns: [ - 'runtimeSessionId', - ] }, - { accessor: 'slot_id', name: 'inventory_slot_slot_id_idx_btree', algorithm: 'btree', columns: [ - 'slotId', - ] }, - ], - constraints: [ - { name: 'inventory_slot_slot_id_key', constraint: 'unique', columns: ['slotId'] }, - ], - }, InventorySlotRow), - npc_state: __table({ - name: 'npc_state', - indexes: [ - { accessor: 'by_npc_id', name: 'npc_state_npc_id_idx_btree', algorithm: 'btree', columns: [ - 'npcId', - ] }, - { accessor: 'npc_state_id', name: 'npc_state_npc_state_id_idx_btree', algorithm: 'btree', columns: [ - 'npcStateId', - ] }, - { accessor: 'by_runtime_session_id', name: 'npc_state_runtime_session_id_idx_btree', algorithm: 'btree', columns: [ - 'runtimeSessionId', - ] }, - { accessor: 'by_runtime_session_npc', name: 'npc_state_runtime_session_id_npc_id_idx_btree', algorithm: 'btree', columns: [ - 'runtimeSessionId', - 'npcId', - ] }, - ], - constraints: [ - { name: 'npc_state_npc_state_id_key', constraint: 'unique', columns: ['npcStateId'] }, - ], - }, NpcStateRow), - player_progression: __table({ - name: 'player_progression', - indexes: [ - { accessor: 'user_id', name: 'player_progression_user_id_idx_btree', algorithm: 'btree', columns: [ - 'userId', - ] }, - ], - constraints: [ - { name: 'player_progression_user_id_key', constraint: 'unique', columns: ['userId'] }, - ], - }, PlayerProgressionRow), - profile_dashboard_state: __table({ - name: 'profile_dashboard_state', - indexes: [ - { accessor: 'user_id', name: 'profile_dashboard_state_user_id_idx_btree', algorithm: 'btree', columns: [ - 'userId', - ] }, - ], - constraints: [ - { name: 'profile_dashboard_state_user_id_key', constraint: 'unique', columns: ['userId'] }, - ], - }, ProfileDashboardStateRow), - profile_invite_code: __table({ - name: 'profile_invite_code', - indexes: [ - { accessor: 'invite_code', name: 'profile_invite_code_invite_code_idx_btree', algorithm: 'btree', columns: [ - 'inviteCode', - ] }, - { accessor: 'user_id', name: 'profile_invite_code_user_id_idx_btree', algorithm: 'btree', columns: [ - 'userId', - ] }, - ], - constraints: [ - { name: 'profile_invite_code_invite_code_key', constraint: 'unique', columns: ['inviteCode'] }, - { name: 'profile_invite_code_user_id_key', constraint: 'unique', columns: ['userId'] }, - ], - }, ProfileInviteCodeRow), - profile_membership: __table({ - name: 'profile_membership', - indexes: [ - { accessor: 'user_id', name: 'profile_membership_user_id_idx_btree', algorithm: 'btree', columns: [ - 'userId', - ] }, - ], - constraints: [ - { name: 'profile_membership_user_id_key', constraint: 'unique', columns: ['userId'] }, - ], - }, ProfileMembershipRow), - profile_played_world: __table({ - name: 'profile_played_world', - indexes: [ - { accessor: 'played_world_id', name: 'profile_played_world_played_world_id_idx_btree', algorithm: 'btree', columns: [ - 'playedWorldId', - ] }, - { accessor: 'by_profile_played_world_user_id', name: 'profile_played_world_user_id_idx_btree', algorithm: 'btree', columns: [ - 'userId', - ] }, - { accessor: 'by_profile_played_world_user_last_played_at', name: 'profile_played_world_user_id_last_played_at_idx_btree', algorithm: 'btree', columns: [ - 'userId', - 'lastPlayedAt', - ] }, - { accessor: 'by_profile_played_world_user_world_key', name: 'profile_played_world_user_id_world_key_idx_btree', algorithm: 'btree', columns: [ - 'userId', - 'worldKey', - ] }, - ], - constraints: [ - { name: 'profile_played_world_played_world_id_key', constraint: 'unique', columns: ['playedWorldId'] }, - ], - }, ProfilePlayedWorldRow), - profile_recharge_order: __table({ - name: 'profile_recharge_order', - indexes: [ - { accessor: 'order_id', name: 'profile_recharge_order_order_id_idx_btree', algorithm: 'btree', columns: [ - 'orderId', - ] }, - { accessor: 'by_profile_recharge_order_user_created_at', name: 'profile_recharge_order_user_id_created_at_idx_btree', algorithm: 'btree', columns: [ - 'userId', - 'createdAt', - ] }, - { accessor: 'by_profile_recharge_order_user_id', name: 'profile_recharge_order_user_id_idx_btree', algorithm: 'btree', columns: [ - 'userId', - ] }, - ], - constraints: [ - { name: 'profile_recharge_order_order_id_key', constraint: 'unique', columns: ['orderId'] }, - ], - }, ProfileRechargeOrderRow), - profile_referral_relation: __table({ - name: 'profile_referral_relation', - indexes: [ - { accessor: 'invitee_user_id', name: 'profile_referral_relation_invitee_user_id_idx_btree', algorithm: 'btree', columns: [ - 'inviteeUserId', - ] }, - { accessor: 'by_profile_referral_inviter_bound_at', name: 'profile_referral_relation_inviter_user_id_bound_at_idx_btree', algorithm: 'btree', columns: [ - 'inviterUserId', - 'boundAt', - ] }, - { accessor: 'by_profile_referral_inviter_user_id', name: 'profile_referral_relation_inviter_user_id_idx_btree', algorithm: 'btree', columns: [ - 'inviterUserId', - ] }, - ], - constraints: [ - { name: 'profile_referral_relation_invitee_user_id_key', constraint: 'unique', columns: ['inviteeUserId'] }, - ], - }, ProfileReferralRelationRow), - profile_save_archive: __table({ - name: 'profile_save_archive', - indexes: [ - { accessor: 'archive_id', name: 'profile_save_archive_archive_id_idx_btree', algorithm: 'btree', columns: [ - 'archiveId', - ] }, - { accessor: 'by_profile_save_archive_user_id', name: 'profile_save_archive_user_id_idx_btree', algorithm: 'btree', columns: [ - 'userId', - ] }, - { accessor: 'by_profile_save_archive_user_saved_at', name: 'profile_save_archive_user_id_saved_at_idx_btree', algorithm: 'btree', columns: [ - 'userId', - 'savedAt', - ] }, - { accessor: 'by_profile_save_archive_user_world_key', name: 'profile_save_archive_user_id_world_key_idx_btree', algorithm: 'btree', columns: [ - 'userId', - 'worldKey', - ] }, - ], - constraints: [ - { name: 'profile_save_archive_archive_id_key', constraint: 'unique', columns: ['archiveId'] }, - ], - }, ProfileSaveArchiveRow), - profile_wallet_ledger: __table({ - name: 'profile_wallet_ledger', - indexes: [ - { accessor: 'by_profile_wallet_ledger_user_created_at', name: 'profile_wallet_ledger_user_id_created_at_idx_btree', algorithm: 'btree', columns: [ - 'userId', - 'createdAt', - ] }, - { accessor: 'by_profile_wallet_ledger_user_id', name: 'profile_wallet_ledger_user_id_idx_btree', algorithm: 'btree', columns: [ - 'userId', - ] }, - { accessor: 'wallet_ledger_id', name: 'profile_wallet_ledger_wallet_ledger_id_idx_btree', algorithm: 'btree', columns: [ - 'walletLedgerId', - ] }, - ], - constraints: [ - { name: 'profile_wallet_ledger_wallet_ledger_id_key', constraint: 'unique', columns: ['walletLedgerId'] }, - ], - }, ProfileWalletLedgerRow), - puzzle_agent_message: __table({ - name: 'puzzle_agent_message', - indexes: [ - { accessor: 'message_id', name: 'puzzle_agent_message_message_id_idx_btree', algorithm: 'btree', columns: [ - 'messageId', - ] }, - { accessor: 'by_puzzle_agent_message_session_id', name: 'puzzle_agent_message_session_id_idx_btree', algorithm: 'btree', columns: [ - 'sessionId', - ] }, - ], - constraints: [ - { name: 'puzzle_agent_message_message_id_key', constraint: 'unique', columns: ['messageId'] }, - ], - }, PuzzleAgentMessageRow), - puzzle_agent_session: __table({ - name: 'puzzle_agent_session', - indexes: [ - { accessor: 'by_puzzle_agent_session_owner_user_id', name: 'puzzle_agent_session_owner_user_id_idx_btree', algorithm: 'btree', columns: [ - 'ownerUserId', - ] }, - { accessor: 'session_id', name: 'puzzle_agent_session_session_id_idx_btree', algorithm: 'btree', columns: [ - 'sessionId', - ] }, - ], - constraints: [ - { name: 'puzzle_agent_session_session_id_key', constraint: 'unique', columns: ['sessionId'] }, - ], - }, PuzzleAgentSessionRow), - puzzle_runtime_run: __table({ - name: 'puzzle_runtime_run', - indexes: [ - { accessor: 'by_puzzle_runtime_run_owner_user_id', name: 'puzzle_runtime_run_owner_user_id_idx_btree', algorithm: 'btree', columns: [ - 'ownerUserId', - ] }, - { accessor: 'run_id', name: 'puzzle_runtime_run_run_id_idx_btree', algorithm: 'btree', columns: [ - 'runId', - ] }, - ], - constraints: [ - { name: 'puzzle_runtime_run_run_id_key', constraint: 'unique', columns: ['runId'] }, - ], - }, PuzzleRuntimeRunRow), - puzzle_work_profile: __table({ - name: 'puzzle_work_profile', - indexes: [ - { accessor: 'by_puzzle_work_owner_user_id', name: 'puzzle_work_profile_owner_user_id_idx_btree', algorithm: 'btree', columns: [ - 'ownerUserId', - ] }, - { accessor: 'profile_id', name: 'puzzle_work_profile_profile_id_idx_btree', algorithm: 'btree', columns: [ - 'profileId', - ] }, - { accessor: 'by_puzzle_work_publication_status', name: 'puzzle_work_profile_publication_status_idx_btree', algorithm: 'btree', columns: [ - 'publicationStatus', - ] }, - ], - constraints: [ - { name: 'puzzle_work_profile_profile_id_key', constraint: 'unique', columns: ['profileId'] }, - ], - }, PuzzleWorkProfileRow), - quest_log: __table({ - name: 'quest_log', - indexes: [ - { accessor: 'by_actor_user_id', name: 'quest_log_actor_user_id_idx_btree', algorithm: 'btree', columns: [ - 'actorUserId', - ] }, - { accessor: 'log_id', name: 'quest_log_log_id_idx_btree', algorithm: 'btree', columns: [ - 'logId', - ] }, - { accessor: 'by_quest_id', name: 'quest_log_quest_id_idx_btree', algorithm: 'btree', columns: [ - 'questId', - ] }, - { accessor: 'by_runtime_session_id', name: 'quest_log_runtime_session_id_idx_btree', algorithm: 'btree', columns: [ - 'runtimeSessionId', - ] }, - ], - constraints: [ - { name: 'quest_log_log_id_key', constraint: 'unique', columns: ['logId'] }, - ], - }, QuestLogRow), - quest_record: __table({ - name: 'quest_record', - indexes: [ - { accessor: 'by_actor_user_id', name: 'quest_record_actor_user_id_idx_btree', algorithm: 'btree', columns: [ - 'actorUserId', - ] }, - { accessor: 'by_issuer_npc_id', name: 'quest_record_issuer_npc_id_idx_btree', algorithm: 'btree', columns: [ - 'issuerNpcId', - ] }, - { accessor: 'quest_id', name: 'quest_record_quest_id_idx_btree', algorithm: 'btree', columns: [ - 'questId', - ] }, - { accessor: 'by_runtime_session_id', name: 'quest_record_runtime_session_id_idx_btree', algorithm: 'btree', columns: [ - 'runtimeSessionId', - ] }, - ], - constraints: [ - { name: 'quest_record_quest_id_key', constraint: 'unique', columns: ['questId'] }, - ], - }, QuestRecordRow), - refresh_session: __table({ - name: 'refresh_session', - indexes: [ - { accessor: 'by_refresh_session_token_hash', name: 'refresh_session_refresh_token_hash_idx_btree', algorithm: 'btree', columns: [ - 'refreshTokenHash', - ] }, - { accessor: 'session_id', name: 'refresh_session_session_id_idx_btree', algorithm: 'btree', columns: [ - 'sessionId', - ] }, - { accessor: 'by_refresh_session_user_id', name: 'refresh_session_user_id_idx_btree', algorithm: 'btree', columns: [ - 'userId', - ] }, - ], - constraints: [ - { name: 'refresh_session_session_id_key', constraint: 'unique', columns: ['sessionId'] }, - ], - }, RefreshSessionRow), - runtime_setting: __table({ - name: 'runtime_setting', - indexes: [ - { accessor: 'user_id', name: 'runtime_setting_user_id_idx_btree', algorithm: 'btree', columns: [ - 'userId', - ] }, - ], - constraints: [ - { name: 'runtime_setting_user_id_key', constraint: 'unique', columns: ['userId'] }, - ], - }, RuntimeSettingRow), - runtime_snapshot: __table({ - name: 'runtime_snapshot', - indexes: [ - { accessor: 'user_id', name: 'runtime_snapshot_user_id_idx_btree', algorithm: 'btree', columns: [ - 'userId', - ] }, - ], - constraints: [ - { name: 'runtime_snapshot_user_id_key', constraint: 'unique', columns: ['userId'] }, - ], - }, RuntimeSnapshotRow), - story_event: __table({ - name: 'story_event', - indexes: [ - { accessor: 'event_id', name: 'story_event_event_id_idx_btree', algorithm: 'btree', columns: [ - 'eventId', - ] }, - { accessor: 'by_story_session_id', name: 'story_event_story_session_id_idx_btree', algorithm: 'btree', columns: [ - 'storySessionId', - ] }, - ], - constraints: [ - { name: 'story_event_event_id_key', constraint: 'unique', columns: ['eventId'] }, - ], - }, StoryEventRow), - story_session: __table({ - name: 'story_session', - indexes: [ - { accessor: 'by_actor_user_id', name: 'story_session_actor_user_id_idx_btree', algorithm: 'btree', columns: [ - 'actorUserId', - ] }, - { accessor: 'by_runtime_session_id', name: 'story_session_runtime_session_id_idx_btree', algorithm: 'btree', columns: [ - 'runtimeSessionId', - ] }, - { accessor: 'story_session_id', name: 'story_session_story_session_id_idx_btree', algorithm: 'btree', columns: [ - 'storySessionId', - ] }, - ], - constraints: [ - { name: 'story_session_story_session_id_key', constraint: 'unique', columns: ['storySessionId'] }, - ], - }, StorySessionRow), - treasure_record: __table({ - name: 'treasure_record', - indexes: [ - { accessor: 'by_treasure_actor_user_id', name: 'treasure_record_actor_user_id_idx_btree', algorithm: 'btree', columns: [ - 'actorUserId', - ] }, - { accessor: 'by_treasure_encounter_id', name: 'treasure_record_encounter_id_idx_btree', algorithm: 'btree', columns: [ - 'encounterId', - ] }, - { accessor: 'by_treasure_runtime_session_id', name: 'treasure_record_runtime_session_id_idx_btree', algorithm: 'btree', columns: [ - 'runtimeSessionId', - ] }, - { accessor: 'by_treasure_story_session_id', name: 'treasure_record_story_session_id_idx_btree', algorithm: 'btree', columns: [ - 'storySessionId', - ] }, - { accessor: 'treasure_record_id', name: 'treasure_record_treasure_record_id_idx_btree', algorithm: 'btree', columns: [ - 'treasureRecordId', - ] }, - ], - constraints: [ - { name: 'treasure_record_treasure_record_id_key', constraint: 'unique', columns: ['treasureRecordId'] }, - ], - }, TreasureRecordRow), - user_account: __table({ - name: 'user_account', - indexes: [ - { accessor: 'by_user_account_public_code', name: 'user_account_public_user_code_idx_btree', algorithm: 'btree', columns: [ - 'publicUserCode', - ] }, - { accessor: 'user_id', name: 'user_account_user_id_idx_btree', algorithm: 'btree', columns: [ - 'userId', - ] }, - { accessor: 'by_user_account_username', name: 'user_account_username_idx_btree', algorithm: 'btree', columns: [ - 'username', - ] }, - ], - constraints: [ - { name: 'user_account_user_id_key', constraint: 'unique', columns: ['userId'] }, - ], - }, UserAccountRow), - user_browse_history: __table({ - name: 'user_browse_history', - indexes: [ - { accessor: 'browse_history_id', name: 'user_browse_history_browse_history_id_idx_btree', algorithm: 'btree', columns: [ - 'browseHistoryId', - ] }, - { accessor: 'by_browse_history_user_id', name: 'user_browse_history_user_id_idx_btree', algorithm: 'btree', columns: [ - 'userId', - ] }, - { accessor: 'by_browse_history_user_owner_profile', name: 'user_browse_history_user_id_owner_user_id_profile_id_idx_btree', algorithm: 'btree', columns: [ - 'userId', - 'ownerUserId', - 'profileId', - ] }, - ], - constraints: [ - { name: 'user_browse_history_browse_history_id_key', constraint: 'unique', columns: ['browseHistoryId'] }, - ], - }, UserBrowseHistoryRow), -}); - -/** The schema information for all reducers in this module. This is defined the same way as the reducers would have been defined in the server, except the body of the reducer is omitted in code generation. */ -const reducersSchema = __reducers( - __reducerSchema("accept_quest", AcceptQuestReducer), - __reducerSchema("acknowledge_quest_completion", AcknowledgeQuestCompletionReducer), - __reducerSchema("apply_chapter_progression_ledger_entry", ApplyChapterProgressionLedgerEntryReducer), - __reducerSchema("apply_inventory_mutation", ApplyInventoryMutationReducer), - __reducerSchema("apply_quest_signal", ApplyQuestSignalReducer), - __reducerSchema("begin_story_session", BeginStorySessionReducer), - __reducerSchema("bind_asset_object_to_entity", BindAssetObjectToEntityReducer), - __reducerSchema("confirm_asset_object", ConfirmAssetObjectReducer), - __reducerSchema("continue_story", ContinueStoryReducer), - __reducerSchema("create_ai_task", CreateAiTaskReducer), - __reducerSchema("create_battle_state", CreateBattleStateReducer), - __reducerSchema("grant_player_progression_experience", GrantPlayerProgressionExperienceReducer), - __reducerSchema("publish_custom_world_profile", PublishCustomWorldProfileReducer), - __reducerSchema("resolve_combat_action", ResolveCombatActionReducer), - __reducerSchema("resolve_npc_interaction", ResolveNpcInteractionReducer), - __reducerSchema("resolve_npc_social_action", ResolveNpcSocialActionReducer), - __reducerSchema("resolve_treasure_interaction", ResolveTreasureInteractionReducer), - __reducerSchema("start_ai_task", StartAiTaskReducer), - __reducerSchema("start_ai_task_stage", StartAiTaskStageReducer), - __reducerSchema("turn_in_quest", TurnInQuestReducer), - __reducerSchema("unpublish_custom_world_profile", UnpublishCustomWorldProfileReducer), - __reducerSchema("upsert_chapter_progression", UpsertChapterProgressionReducer), - __reducerSchema("upsert_custom_world_profile", UpsertCustomWorldProfileReducer), - __reducerSchema("upsert_npc_state", UpsertNpcStateReducer), -); - -/** The schema information for all procedures in this module. This is defined the same way as the procedures would have been defined in the server. */ -const proceduresSchema = __procedures( - __procedureSchema("advance_puzzle_next_level", AdvancePuzzleNextLevelProcedure.params, AdvancePuzzleNextLevelProcedure.returnType), - __procedureSchema("append_ai_text_chunk_and_return", AppendAiTextChunkAndReturnProcedure.params, AppendAiTextChunkAndReturnProcedure.returnType), - __procedureSchema("apply_chapter_progression_ledger_entry_and_return", ApplyChapterProgressionLedgerEntryAndReturnProcedure.params, ApplyChapterProgressionLedgerEntryAndReturnProcedure.returnType), - __procedureSchema("attach_ai_result_reference_and_return", AttachAiResultReferenceAndReturnProcedure.params, AttachAiResultReferenceAndReturnProcedure.returnType), - __procedureSchema("begin_story_session_and_return", BeginStorySessionAndReturnProcedure.params, BeginStorySessionAndReturnProcedure.returnType), - __procedureSchema("bind_asset_object_to_entity_and_return", BindAssetObjectToEntityAndReturnProcedure.params, BindAssetObjectToEntityAndReturnProcedure.returnType), - __procedureSchema("cancel_ai_task_and_return", CancelAiTaskAndReturnProcedure.params, CancelAiTaskAndReturnProcedure.returnType), - __procedureSchema("clear_platform_browse_history_and_return", ClearPlatformBrowseHistoryAndReturnProcedure.params, ClearPlatformBrowseHistoryAndReturnProcedure.returnType), - __procedureSchema("compile_big_fish_draft", CompileBigFishDraftProcedure.params, CompileBigFishDraftProcedure.returnType), - __procedureSchema("compile_custom_world_published_profile", CompileCustomWorldPublishedProfileProcedure.params, CompileCustomWorldPublishedProfileProcedure.returnType), - __procedureSchema("compile_puzzle_agent_draft", CompilePuzzleAgentDraftProcedure.params, CompilePuzzleAgentDraftProcedure.returnType), - __procedureSchema("complete_ai_stage_and_return", CompleteAiStageAndReturnProcedure.params, CompleteAiStageAndReturnProcedure.returnType), - __procedureSchema("complete_ai_task_and_return", CompleteAiTaskAndReturnProcedure.params, CompleteAiTaskAndReturnProcedure.returnType), - __procedureSchema("confirm_asset_object_and_return", ConfirmAssetObjectAndReturnProcedure.params, ConfirmAssetObjectAndReturnProcedure.returnType), - __procedureSchema("continue_story_and_return", ContinueStoryAndReturnProcedure.params, ContinueStoryAndReturnProcedure.returnType), - __procedureSchema("create_ai_task_and_return", CreateAiTaskAndReturnProcedure.params, CreateAiTaskAndReturnProcedure.returnType), - __procedureSchema("create_battle_state_and_return", CreateBattleStateAndReturnProcedure.params, CreateBattleStateAndReturnProcedure.returnType), - __procedureSchema("create_big_fish_session", CreateBigFishSessionProcedure.params, CreateBigFishSessionProcedure.returnType), - __procedureSchema("create_custom_world_agent_session", CreateCustomWorldAgentSessionProcedure.params, CreateCustomWorldAgentSessionProcedure.returnType), - __procedureSchema("create_profile_recharge_order_and_return", CreateProfileRechargeOrderAndReturnProcedure.params, CreateProfileRechargeOrderAndReturnProcedure.returnType), - __procedureSchema("create_puzzle_agent_session", CreatePuzzleAgentSessionProcedure.params, CreatePuzzleAgentSessionProcedure.returnType), - __procedureSchema("delete_big_fish_work", DeleteBigFishWorkProcedure.params, DeleteBigFishWorkProcedure.returnType), - __procedureSchema("delete_custom_world_agent_session", DeleteCustomWorldAgentSessionProcedure.params, DeleteCustomWorldAgentSessionProcedure.returnType), - __procedureSchema("delete_custom_world_profile_and_return", DeleteCustomWorldProfileAndReturnProcedure.params, DeleteCustomWorldProfileAndReturnProcedure.returnType), - __procedureSchema("delete_puzzle_work", DeletePuzzleWorkProcedure.params, DeletePuzzleWorkProcedure.returnType), - __procedureSchema("delete_runtime_snapshot_and_return", DeleteRuntimeSnapshotAndReturnProcedure.params, DeleteRuntimeSnapshotAndReturnProcedure.returnType), - __procedureSchema("drag_puzzle_piece_or_group", DragPuzzlePieceOrGroupProcedure.params, DragPuzzlePieceOrGroupProcedure.returnType), - __procedureSchema("execute_custom_world_agent_action", ExecuteCustomWorldAgentActionProcedure.params, ExecuteCustomWorldAgentActionProcedure.returnType), - __procedureSchema("export_auth_store_snapshot_from_tables", ExportAuthStoreSnapshotFromTablesProcedure.params, ExportAuthStoreSnapshotFromTablesProcedure.returnType), - __procedureSchema("fail_ai_task_and_return", FailAiTaskAndReturnProcedure.params, FailAiTaskAndReturnProcedure.returnType), - __procedureSchema("finalize_big_fish_agent_message_turn", FinalizeBigFishAgentMessageTurnProcedure.params, FinalizeBigFishAgentMessageTurnProcedure.returnType), - __procedureSchema("finalize_custom_world_agent_message_turn", FinalizeCustomWorldAgentMessageTurnProcedure.params, FinalizeCustomWorldAgentMessageTurnProcedure.returnType), - __procedureSchema("finalize_puzzle_agent_message_turn", FinalizePuzzleAgentMessageTurnProcedure.params, FinalizePuzzleAgentMessageTurnProcedure.returnType), - __procedureSchema("generate_big_fish_asset", GenerateBigFishAssetProcedure.params, GenerateBigFishAssetProcedure.returnType), - __procedureSchema("get_auth_store_snapshot", GetAuthStoreSnapshotProcedure.params, GetAuthStoreSnapshotProcedure.returnType), - __procedureSchema("get_battle_state", GetBattleStateProcedure.params, GetBattleStateProcedure.returnType), - __procedureSchema("get_big_fish_run", GetBigFishRunProcedure.params, GetBigFishRunProcedure.returnType), - __procedureSchema("get_big_fish_session", GetBigFishSessionProcedure.params, GetBigFishSessionProcedure.returnType), - __procedureSchema("get_chapter_progression", GetChapterProgressionProcedure.params, GetChapterProgressionProcedure.returnType), - __procedureSchema("get_custom_world_agent_card_detail", GetCustomWorldAgentCardDetailProcedure.params, GetCustomWorldAgentCardDetailProcedure.returnType), - __procedureSchema("get_custom_world_agent_operation", GetCustomWorldAgentOperationProcedure.params, GetCustomWorldAgentOperationProcedure.returnType), - __procedureSchema("get_custom_world_agent_session", GetCustomWorldAgentSessionProcedure.params, GetCustomWorldAgentSessionProcedure.returnType), - __procedureSchema("get_custom_world_gallery_detail", GetCustomWorldGalleryDetailProcedure.params, GetCustomWorldGalleryDetailProcedure.returnType), - __procedureSchema("get_custom_world_gallery_detail_by_code", GetCustomWorldGalleryDetailByCodeProcedure.params, GetCustomWorldGalleryDetailByCodeProcedure.returnType), - __procedureSchema("get_custom_world_library_detail", GetCustomWorldLibraryDetailProcedure.params, GetCustomWorldLibraryDetailProcedure.returnType), - __procedureSchema("get_player_progression_or_default", GetPlayerProgressionOrDefaultProcedure.params, GetPlayerProgressionOrDefaultProcedure.returnType), - __procedureSchema("get_profile_dashboard", GetProfileDashboardProcedure.params, GetProfileDashboardProcedure.returnType), - __procedureSchema("get_profile_play_stats", GetProfilePlayStatsProcedure.params, GetProfilePlayStatsProcedure.returnType), - __procedureSchema("get_profile_recharge_center", GetProfileRechargeCenterProcedure.params, GetProfileRechargeCenterProcedure.returnType), - __procedureSchema("get_profile_referral_invite_center", GetProfileReferralInviteCenterProcedure.params, GetProfileReferralInviteCenterProcedure.returnType), - __procedureSchema("get_puzzle_agent_session", GetPuzzleAgentSessionProcedure.params, GetPuzzleAgentSessionProcedure.returnType), - __procedureSchema("get_puzzle_gallery_detail", GetPuzzleGalleryDetailProcedure.params, GetPuzzleGalleryDetailProcedure.returnType), - __procedureSchema("get_puzzle_run", GetPuzzleRunProcedure.params, GetPuzzleRunProcedure.returnType), - __procedureSchema("get_puzzle_work_detail", GetPuzzleWorkDetailProcedure.params, GetPuzzleWorkDetailProcedure.returnType), - __procedureSchema("get_runtime_inventory_state", GetRuntimeInventoryStateProcedure.params, GetRuntimeInventoryStateProcedure.returnType), - __procedureSchema("get_runtime_setting_or_default", GetRuntimeSettingOrDefaultProcedure.params, GetRuntimeSettingOrDefaultProcedure.returnType), - __procedureSchema("get_runtime_snapshot", GetRuntimeSnapshotProcedure.params, GetRuntimeSnapshotProcedure.returnType), - __procedureSchema("get_story_session_state", GetStorySessionStateProcedure.params, GetStorySessionStateProcedure.returnType), - __procedureSchema("grant_player_progression_experience_and_return", GrantPlayerProgressionExperienceAndReturnProcedure.params, GrantPlayerProgressionExperienceAndReturnProcedure.returnType), - __procedureSchema("import_auth_store_snapshot", ImportAuthStoreSnapshotProcedure.params, ImportAuthStoreSnapshotProcedure.returnType), - __procedureSchema("list_big_fish_works", ListBigFishWorksProcedure.params, ListBigFishWorksProcedure.returnType), - __procedureSchema("list_custom_world_gallery_entries", ListCustomWorldGalleryEntriesProcedure.params, ListCustomWorldGalleryEntriesProcedure.returnType), - __procedureSchema("list_custom_world_profiles", ListCustomWorldProfilesProcedure.params, ListCustomWorldProfilesProcedure.returnType), - __procedureSchema("list_custom_world_works", ListCustomWorldWorksProcedure.params, ListCustomWorldWorksProcedure.returnType), - __procedureSchema("list_platform_browse_history", ListPlatformBrowseHistoryProcedure.params, ListPlatformBrowseHistoryProcedure.returnType), - __procedureSchema("list_profile_save_archives", ListProfileSaveArchivesProcedure.params, ListProfileSaveArchivesProcedure.returnType), - __procedureSchema("list_profile_wallet_ledger", ListProfileWalletLedgerProcedure.params, ListProfileWalletLedgerProcedure.returnType), - __procedureSchema("list_puzzle_gallery", ListPuzzleGalleryProcedure.params, ListPuzzleGalleryProcedure.returnType), - __procedureSchema("list_puzzle_works", ListPuzzleWorksProcedure.params, ListPuzzleWorksProcedure.returnType), - __procedureSchema("publish_big_fish_game", PublishBigFishGameProcedure.params, PublishBigFishGameProcedure.returnType), - __procedureSchema("publish_custom_world_profile_and_return", PublishCustomWorldProfileAndReturnProcedure.params, PublishCustomWorldProfileAndReturnProcedure.returnType), - __procedureSchema("publish_custom_world_world", PublishCustomWorldWorldProcedure.params, PublishCustomWorldWorldProcedure.returnType), - __procedureSchema("publish_puzzle_work", PublishPuzzleWorkProcedure.params, PublishPuzzleWorkProcedure.returnType), - __procedureSchema("redeem_profile_referral_invite_code", RedeemProfileReferralInviteCodeProcedure.params, RedeemProfileReferralInviteCodeProcedure.returnType), - __procedureSchema("resolve_combat_action_and_return", ResolveCombatActionAndReturnProcedure.params, ResolveCombatActionAndReturnProcedure.returnType), - __procedureSchema("resolve_npc_battle_interaction_and_return", ResolveNpcBattleInteractionAndReturnProcedure.params, ResolveNpcBattleInteractionAndReturnProcedure.returnType), - __procedureSchema("resolve_npc_interaction_and_return", ResolveNpcInteractionAndReturnProcedure.params, ResolveNpcInteractionAndReturnProcedure.returnType), - __procedureSchema("resolve_npc_social_action_and_return", ResolveNpcSocialActionAndReturnProcedure.params, ResolveNpcSocialActionAndReturnProcedure.returnType), - __procedureSchema("resolve_treasure_interaction_and_return", ResolveTreasureInteractionAndReturnProcedure.params, ResolveTreasureInteractionAndReturnProcedure.returnType), - __procedureSchema("resume_profile_save_archive_and_return", ResumeProfileSaveArchiveAndReturnProcedure.params, ResumeProfileSaveArchiveAndReturnProcedure.returnType), - __procedureSchema("save_puzzle_generated_images", SavePuzzleGeneratedImagesProcedure.params, SavePuzzleGeneratedImagesProcedure.returnType), - __procedureSchema("select_puzzle_cover_image", SelectPuzzleCoverImageProcedure.params, SelectPuzzleCoverImageProcedure.returnType), - __procedureSchema("start_big_fish_run", StartBigFishRunProcedure.params, StartBigFishRunProcedure.returnType), - __procedureSchema("start_puzzle_run", StartPuzzleRunProcedure.params, StartPuzzleRunProcedure.returnType), - __procedureSchema("submit_big_fish_input", SubmitBigFishInputProcedure.params, SubmitBigFishInputProcedure.returnType), - __procedureSchema("submit_big_fish_message", SubmitBigFishMessageProcedure.params, SubmitBigFishMessageProcedure.returnType), - __procedureSchema("submit_custom_world_agent_message", SubmitCustomWorldAgentMessageProcedure.params, SubmitCustomWorldAgentMessageProcedure.returnType), - __procedureSchema("submit_puzzle_agent_message", SubmitPuzzleAgentMessageProcedure.params, SubmitPuzzleAgentMessageProcedure.returnType), - __procedureSchema("swap_puzzle_pieces", SwapPuzzlePiecesProcedure.params, SwapPuzzlePiecesProcedure.returnType), - __procedureSchema("unpublish_custom_world_profile_and_return", UnpublishCustomWorldProfileAndReturnProcedure.params, UnpublishCustomWorldProfileAndReturnProcedure.returnType), - __procedureSchema("update_puzzle_work", UpdatePuzzleWorkProcedure.params, UpdatePuzzleWorkProcedure.returnType), - __procedureSchema("upsert_auth_store_snapshot", UpsertAuthStoreSnapshotProcedure.params, UpsertAuthStoreSnapshotProcedure.returnType), - __procedureSchema("upsert_chapter_progression_and_return", UpsertChapterProgressionAndReturnProcedure.params, UpsertChapterProgressionAndReturnProcedure.returnType), - __procedureSchema("upsert_custom_world_agent_operation_progress", UpsertCustomWorldAgentOperationProgressProcedure.params, UpsertCustomWorldAgentOperationProgressProcedure.returnType), - __procedureSchema("upsert_custom_world_profile_and_return", UpsertCustomWorldProfileAndReturnProcedure.params, UpsertCustomWorldProfileAndReturnProcedure.returnType), - __procedureSchema("upsert_npc_state_and_return", UpsertNpcStateAndReturnProcedure.params, UpsertNpcStateAndReturnProcedure.returnType), - __procedureSchema("upsert_platform_browse_history_and_return", UpsertPlatformBrowseHistoryAndReturnProcedure.params, UpsertPlatformBrowseHistoryAndReturnProcedure.returnType), - __procedureSchema("upsert_runtime_setting_and_return", UpsertRuntimeSettingAndReturnProcedure.params, UpsertRuntimeSettingAndReturnProcedure.returnType), - __procedureSchema("upsert_runtime_snapshot_and_return", UpsertRuntimeSnapshotAndReturnProcedure.params, UpsertRuntimeSnapshotAndReturnProcedure.returnType), -); - -/** The remote SpacetimeDB module schema, both runtime and type information. */ -const REMOTE_MODULE = { - versionInfo: { - cliVersion: "2.1.0" as const, - }, - tables: tablesSchema.schemaType.tables, - reducers: reducersSchema.reducersType.reducers, - ...proceduresSchema, -} satisfies __RemoteModule< - typeof tablesSchema.schemaType, - typeof reducersSchema.reducersType, - typeof proceduresSchema ->; - -/** The tables available in this remote SpacetimeDB module. Each table reference doubles as a query builder. */ -export const tables: __QueryBuilder = __makeQueryBuilder(tablesSchema.schemaType); - -/** The reducers available in this remote SpacetimeDB module. */ -export const reducers = __convertToAccessorMap(reducersSchema.reducersType.reducers); - -/** The context type returned in callbacks for all possible events. */ -export type EventContext = __EventContextInterface; -/** The context type returned in callbacks for reducer events. */ -export type ReducerEventContext = __ReducerEventContextInterface; -/** The context type returned in callbacks for subscription events. */ -export type SubscriptionEventContext = __SubscriptionEventContextInterface; -/** The context type returned in callbacks for error events. */ -export type ErrorContext = __ErrorContextInterface; -/** The subscription handle type to manage active subscriptions created from a {@link SubscriptionBuilder}. */ -export type SubscriptionHandle = __SubscriptionHandleImpl; - -/** Builder class to configure a new subscription to the remote SpacetimeDB instance. */ -export class SubscriptionBuilder extends __SubscriptionBuilderImpl {} - -/** Builder class to configure a new database connection to the remote SpacetimeDB instance. */ -export class DbConnectionBuilder extends __DbConnectionBuilder {} - -/** The typed database connection to manage connections to the remote SpacetimeDB instance. This class has type information specific to the generated module. */ -export class DbConnection extends __DbConnectionImpl { - /** Creates a new {@link DbConnectionBuilder} to configure and connect to the remote SpacetimeDB instance. */ - static builder = (): DbConnectionBuilder => { - return new DbConnectionBuilder(REMOTE_MODULE, (config: __DbConnectionConfig) => new DbConnection(config)); - }; - - /** Creates a new {@link SubscriptionBuilder} to configure a subscription to the remote SpacetimeDB instance. */ - override subscriptionBuilder = (): SubscriptionBuilder => { - return new SubscriptionBuilder(this); - }; -} - diff --git a/src/spacetime/generated/inventory_slot_table.ts b/src/spacetime/generated/inventory_slot_table.ts deleted file mode 100644 index c77e2a48..00000000 --- a/src/spacetime/generated/inventory_slot_table.ts +++ /dev/null @@ -1,49 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; -import { - InventoryItemRarity, - InventoryEquipmentSlot, - InventoryItemSourceKind, - InventoryContainerKind, -} from "./types"; - - -export default __t.row({ - slotId: __t.string().primaryKey().name("slot_id"), - runtimeSessionId: __t.string().name("runtime_session_id"), - storySessionId: __t.option(__t.string()).name("story_session_id"), - actorUserId: __t.string().name("actor_user_id"), - get containerKind() { - return InventoryContainerKind.name("container_kind"); - }, - slotKey: __t.string().name("slot_key"), - itemId: __t.string().name("item_id"), - category: __t.string(), - name: __t.string(), - description: __t.option(__t.string()), - quantity: __t.u32(), - get rarity() { - return InventoryItemRarity; - }, - tags: __t.array(__t.string()), - stackable: __t.bool(), - stackKey: __t.string().name("stack_key"), - get equipmentSlotId() { - return __t.option(InventoryEquipmentSlot).name("equipment_slot_id"); - }, - get sourceKind() { - return InventoryItemSourceKind.name("source_kind"); - }, - sourceReferenceId: __t.option(__t.string()).name("source_reference_id"), - createdAt: __t.timestamp().name("created_at"), - updatedAt: __t.timestamp().name("updated_at"), -}); diff --git a/src/spacetime/generated/list_big_fish_works_procedure.ts b/src/spacetime/generated/list_big_fish_works_procedure.ts deleted file mode 100644 index 73cbfd48..00000000 --- a/src/spacetime/generated/list_big_fish_works_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - BigFishWorksProcedureResult, - BigFishWorksListInput, -} from "./types"; - -export const params = { - get input() { - return BigFishWorksListInput; - }, -}; -export const returnType = BigFishWorksProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/list_custom_world_gallery_entries_procedure.ts b/src/spacetime/generated/list_custom_world_gallery_entries_procedure.ts deleted file mode 100644 index d0e4c935..00000000 --- a/src/spacetime/generated/list_custom_world_gallery_entries_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - CustomWorldGalleryListResult, -} from "./types"; - -export const params = { -}; -export const returnType = CustomWorldGalleryListResult \ No newline at end of file diff --git a/src/spacetime/generated/list_custom_world_profiles_procedure.ts b/src/spacetime/generated/list_custom_world_profiles_procedure.ts deleted file mode 100644 index 579a8359..00000000 --- a/src/spacetime/generated/list_custom_world_profiles_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - CustomWorldProfileListResult, - CustomWorldProfileListInput, -} from "./types"; - -export const params = { - get input() { - return CustomWorldProfileListInput; - }, -}; -export const returnType = CustomWorldProfileListResult \ No newline at end of file diff --git a/src/spacetime/generated/list_custom_world_works_procedure.ts b/src/spacetime/generated/list_custom_world_works_procedure.ts deleted file mode 100644 index d1011eab..00000000 --- a/src/spacetime/generated/list_custom_world_works_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - CustomWorldWorksListResult, - CustomWorldWorksListInput, -} from "./types"; - -export const params = { - get input() { - return CustomWorldWorksListInput; - }, -}; -export const returnType = CustomWorldWorksListResult \ No newline at end of file diff --git a/src/spacetime/generated/list_platform_browse_history_procedure.ts b/src/spacetime/generated/list_platform_browse_history_procedure.ts deleted file mode 100644 index d7f1cd0e..00000000 --- a/src/spacetime/generated/list_platform_browse_history_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - RuntimeBrowseHistoryProcedureResult, - RuntimeBrowseHistoryListInput, -} from "./types"; - -export const params = { - get input() { - return RuntimeBrowseHistoryListInput; - }, -}; -export const returnType = RuntimeBrowseHistoryProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/list_profile_save_archives_procedure.ts b/src/spacetime/generated/list_profile_save_archives_procedure.ts deleted file mode 100644 index a7cce275..00000000 --- a/src/spacetime/generated/list_profile_save_archives_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - RuntimeProfileSaveArchiveListInput, - RuntimeProfileSaveArchiveProcedureResult, -} from "./types"; - -export const params = { - get input() { - return RuntimeProfileSaveArchiveListInput; - }, -}; -export const returnType = RuntimeProfileSaveArchiveProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/list_profile_wallet_ledger_procedure.ts b/src/spacetime/generated/list_profile_wallet_ledger_procedure.ts deleted file mode 100644 index 0de8be54..00000000 --- a/src/spacetime/generated/list_profile_wallet_ledger_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - RuntimeProfileWalletLedgerListInput, - RuntimeProfileWalletLedgerProcedureResult, -} from "./types"; - -export const params = { - get input() { - return RuntimeProfileWalletLedgerListInput; - }, -}; -export const returnType = RuntimeProfileWalletLedgerProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/list_puzzle_gallery_procedure.ts b/src/spacetime/generated/list_puzzle_gallery_procedure.ts deleted file mode 100644 index b1171a2a..00000000 --- a/src/spacetime/generated/list_puzzle_gallery_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - PuzzleWorksProcedureResult, -} from "./types"; - -export const params = { -}; -export const returnType = PuzzleWorksProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/list_puzzle_works_procedure.ts b/src/spacetime/generated/list_puzzle_works_procedure.ts deleted file mode 100644 index d1a341a4..00000000 --- a/src/spacetime/generated/list_puzzle_works_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - PuzzleWorksProcedureResult, - PuzzleWorksListInput, -} from "./types"; - -export const params = { - get input() { - return PuzzleWorksListInput; - }, -}; -export const returnType = PuzzleWorksProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/npc_state_table.ts b/src/spacetime/generated/npc_state_table.ts deleted file mode 100644 index 4b5e1532..00000000 --- a/src/spacetime/generated/npc_state_table.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; -import { - NpcRelationState, - NpcStanceProfile, -} from "./types"; - - -export default __t.row({ - npcStateId: __t.string().primaryKey().name("npc_state_id"), - runtimeSessionId: __t.string().name("runtime_session_id"), - npcId: __t.string().name("npc_id"), - npcName: __t.string().name("npc_name"), - affinity: __t.i32(), - get relationState() { - return NpcRelationState.name("relation_state"); - }, - helpUsed: __t.bool().name("help_used"), - chattedCount: __t.u32().name("chatted_count"), - giftsGiven: __t.u32().name("gifts_given"), - recruited: __t.bool(), - tradeStockSignature: __t.option(__t.string()).name("trade_stock_signature"), - revealedFacts: __t.array(__t.string()).name("revealed_facts"), - knownAttributeRumors: __t.array(__t.string()).name("known_attribute_rumors"), - firstMeaningfulContactResolved: __t.bool().name("first_meaningful_contact_resolved"), - seenBackstoryChapterIds: __t.array(__t.string()).name("seen_backstory_chapter_ids"), - get stanceProfile() { - return NpcStanceProfile.name("stance_profile"); - }, - createdAt: __t.timestamp().name("created_at"), - updatedAt: __t.timestamp().name("updated_at"), -}); diff --git a/src/spacetime/generated/player_progression_table.ts b/src/spacetime/generated/player_progression_table.ts deleted file mode 100644 index 6239aded..00000000 --- a/src/spacetime/generated/player_progression_table.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; -import { - PlayerProgressionGrantSource, -} from "./types"; - - -export default __t.row({ - userId: __t.string().primaryKey().name("user_id"), - level: __t.u32(), - currentLevelXp: __t.u32().name("current_level_xp"), - totalXp: __t.u32().name("total_xp"), - xpToNextLevel: __t.u32().name("xp_to_next_level"), - pendingLevelUps: __t.u32().name("pending_level_ups"), - get lastGrantedSource() { - return __t.option(PlayerProgressionGrantSource).name("last_granted_source"); - }, - createdAt: __t.timestamp().name("created_at"), - updatedAt: __t.timestamp().name("updated_at"), -}); diff --git a/src/spacetime/generated/profile_dashboard_state_table.ts b/src/spacetime/generated/profile_dashboard_state_table.ts deleted file mode 100644 index 871a70c4..00000000 --- a/src/spacetime/generated/profile_dashboard_state_table.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -export default __t.row({ - userId: __t.string().primaryKey().name("user_id"), - walletBalance: __t.u64().name("wallet_balance"), - totalPlayTimeMs: __t.u64().name("total_play_time_ms"), - createdAt: __t.timestamp().name("created_at"), - updatedAt: __t.timestamp().name("updated_at"), -}); diff --git a/src/spacetime/generated/profile_invite_code_table.ts b/src/spacetime/generated/profile_invite_code_table.ts deleted file mode 100644 index 8dac8224..00000000 --- a/src/spacetime/generated/profile_invite_code_table.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -export default __t.row({ - userId: __t.string().primaryKey().name("user_id"), - inviteCode: __t.string().name("invite_code"), - createdAt: __t.timestamp().name("created_at"), - updatedAt: __t.timestamp().name("updated_at"), -}); diff --git a/src/spacetime/generated/profile_membership_table.ts b/src/spacetime/generated/profile_membership_table.ts deleted file mode 100644 index 4ce5b5dc..00000000 --- a/src/spacetime/generated/profile_membership_table.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; -import { - RuntimeProfileMembershipStatus, - RuntimeProfileMembershipTier, -} from "./types"; - - -export default __t.row({ - userId: __t.string().primaryKey().name("user_id"), - get status() { - return RuntimeProfileMembershipStatus; - }, - get tier() { - return RuntimeProfileMembershipTier; - }, - startedAt: __t.timestamp().name("started_at"), - expiresAt: __t.timestamp().name("expires_at"), - updatedAt: __t.timestamp().name("updated_at"), -}); diff --git a/src/spacetime/generated/profile_played_world_table.ts b/src/spacetime/generated/profile_played_world_table.ts deleted file mode 100644 index 3f23382f..00000000 --- a/src/spacetime/generated/profile_played_world_table.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -export default __t.row({ - playedWorldId: __t.string().primaryKey().name("played_world_id"), - userId: __t.string().name("user_id"), - worldKey: __t.string().name("world_key"), - ownerUserId: __t.option(__t.string()).name("owner_user_id"), - profileId: __t.option(__t.string()).name("profile_id"), - worldType: __t.option(__t.string()).name("world_type"), - worldTitle: __t.string().name("world_title"), - worldSubtitle: __t.string().name("world_subtitle"), - firstPlayedAt: __t.timestamp().name("first_played_at"), - lastPlayedAt: __t.timestamp().name("last_played_at"), - lastObservedPlayTimeMs: __t.u64().name("last_observed_play_time_ms"), -}); diff --git a/src/spacetime/generated/profile_recharge_order_table.ts b/src/spacetime/generated/profile_recharge_order_table.ts deleted file mode 100644 index 75075258..00000000 --- a/src/spacetime/generated/profile_recharge_order_table.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; -import { - RuntimeProfileRechargeProductKind, - RuntimeProfileRechargeOrderStatus, -} from "./types"; - - -export default __t.row({ - orderId: __t.string().primaryKey().name("order_id"), - userId: __t.string().name("user_id"), - productId: __t.string().name("product_id"), - productTitle: __t.string().name("product_title"), - get kind() { - return RuntimeProfileRechargeProductKind; - }, - amountCents: __t.u64().name("amount_cents"), - get status() { - return RuntimeProfileRechargeOrderStatus; - }, - paymentChannel: __t.string().name("payment_channel"), - paidAt: __t.timestamp().name("paid_at"), - createdAt: __t.timestamp().name("created_at"), - pointsDelta: __t.i64().name("points_delta"), - membershipExpiresAt: __t.option(__t.timestamp()).name("membership_expires_at"), -}); diff --git a/src/spacetime/generated/profile_referral_relation_table.ts b/src/spacetime/generated/profile_referral_relation_table.ts deleted file mode 100644 index f0f8ec89..00000000 --- a/src/spacetime/generated/profile_referral_relation_table.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -export default __t.row({ - inviteeUserId: __t.string().primaryKey().name("invitee_user_id"), - inviterUserId: __t.string().name("inviter_user_id"), - inviteCode: __t.string().name("invite_code"), - inviterRewardGranted: __t.bool().name("inviter_reward_granted"), - inviteeRewardGranted: __t.bool().name("invitee_reward_granted"), - boundAt: __t.timestamp().name("bound_at"), -}); diff --git a/src/spacetime/generated/profile_save_archive_table.ts b/src/spacetime/generated/profile_save_archive_table.ts deleted file mode 100644 index f15384e3..00000000 --- a/src/spacetime/generated/profile_save_archive_table.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -export default __t.row({ - archiveId: __t.string().primaryKey().name("archive_id"), - userId: __t.string().name("user_id"), - worldKey: __t.string().name("world_key"), - ownerUserId: __t.option(__t.string()).name("owner_user_id"), - profileId: __t.option(__t.string()).name("profile_id"), - worldType: __t.option(__t.string()).name("world_type"), - worldName: __t.string().name("world_name"), - subtitle: __t.string(), - summaryText: __t.string().name("summary_text"), - coverImageSrc: __t.option(__t.string()).name("cover_image_src"), - savedAt: __t.timestamp().name("saved_at"), - bottomTab: __t.string().name("bottom_tab"), - gameStateJson: __t.string().name("game_state_json"), - currentStoryJson: __t.option(__t.string()).name("current_story_json"), - createdAt: __t.timestamp().name("created_at"), - updatedAt: __t.timestamp().name("updated_at"), -}); diff --git a/src/spacetime/generated/profile_wallet_ledger_table.ts b/src/spacetime/generated/profile_wallet_ledger_table.ts deleted file mode 100644 index bc41880b..00000000 --- a/src/spacetime/generated/profile_wallet_ledger_table.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; -import { - RuntimeProfileWalletLedgerSourceType, -} from "./types"; - - -export default __t.row({ - walletLedgerId: __t.string().primaryKey().name("wallet_ledger_id"), - userId: __t.string().name("user_id"), - amountDelta: __t.i64().name("amount_delta"), - balanceAfter: __t.u64().name("balance_after"), - get sourceType() { - return RuntimeProfileWalletLedgerSourceType.name("source_type"); - }, - createdAt: __t.timestamp().name("created_at"), -}); diff --git a/src/spacetime/generated/publish_big_fish_game_procedure.ts b/src/spacetime/generated/publish_big_fish_game_procedure.ts deleted file mode 100644 index 4a5d5008..00000000 --- a/src/spacetime/generated/publish_big_fish_game_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - BigFishSessionProcedureResult, - BigFishPublishInput, -} from "./types"; - -export const params = { - get input() { - return BigFishPublishInput; - }, -}; -export const returnType = BigFishSessionProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/publish_custom_world_profile_and_return_procedure.ts b/src/spacetime/generated/publish_custom_world_profile_and_return_procedure.ts deleted file mode 100644 index 3c4de42b..00000000 --- a/src/spacetime/generated/publish_custom_world_profile_and_return_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - CustomWorldLibraryMutationResult, - CustomWorldProfilePublishInput, -} from "./types"; - -export const params = { - get input() { - return CustomWorldProfilePublishInput; - }, -}; -export const returnType = CustomWorldLibraryMutationResult \ No newline at end of file diff --git a/src/spacetime/generated/publish_custom_world_profile_reducer.ts b/src/spacetime/generated/publish_custom_world_profile_reducer.ts deleted file mode 100644 index 482cfb4b..00000000 --- a/src/spacetime/generated/publish_custom_world_profile_reducer.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - CustomWorldProfilePublishInput, -} from "./types"; - -export default { - get input() { - return CustomWorldProfilePublishInput; - }, -}; diff --git a/src/spacetime/generated/publish_custom_world_world_procedure.ts b/src/spacetime/generated/publish_custom_world_world_procedure.ts deleted file mode 100644 index cfab4d3e..00000000 --- a/src/spacetime/generated/publish_custom_world_world_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - CustomWorldPublishWorldInput, - CustomWorldPublishWorldResult, -} from "./types"; - -export const params = { - get input() { - return CustomWorldPublishWorldInput; - }, -}; -export const returnType = CustomWorldPublishWorldResult \ No newline at end of file diff --git a/src/spacetime/generated/publish_puzzle_work_procedure.ts b/src/spacetime/generated/publish_puzzle_work_procedure.ts deleted file mode 100644 index 6953e2d7..00000000 --- a/src/spacetime/generated/publish_puzzle_work_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - PuzzleWorkProcedureResult, - PuzzlePublishInput, -} from "./types"; - -export const params = { - get input() { - return PuzzlePublishInput; - }, -}; -export const returnType = PuzzleWorkProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/puzzle_agent_message_table.ts b/src/spacetime/generated/puzzle_agent_message_table.ts deleted file mode 100644 index c63729c5..00000000 --- a/src/spacetime/generated/puzzle_agent_message_table.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; -import { - PuzzleAgentMessageRole, - PuzzleAgentMessageKind, -} from "./types"; - - -export default __t.row({ - messageId: __t.string().primaryKey().name("message_id"), - sessionId: __t.string().name("session_id"), - get role() { - return PuzzleAgentMessageRole; - }, - get kind() { - return PuzzleAgentMessageKind; - }, - text: __t.string(), - createdAt: __t.timestamp().name("created_at"), -}); diff --git a/src/spacetime/generated/puzzle_agent_session_table.ts b/src/spacetime/generated/puzzle_agent_session_table.ts deleted file mode 100644 index 664cfd12..00000000 --- a/src/spacetime/generated/puzzle_agent_session_table.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; -import { - PuzzleAgentStage, -} from "./types"; - - -export default __t.row({ - sessionId: __t.string().primaryKey().name("session_id"), - ownerUserId: __t.string().name("owner_user_id"), - seedText: __t.string().name("seed_text"), - currentTurn: __t.u32().name("current_turn"), - progressPercent: __t.u32().name("progress_percent"), - get stage() { - return PuzzleAgentStage; - }, - anchorPackJson: __t.string().name("anchor_pack_json"), - draftJson: __t.option(__t.string()).name("draft_json"), - lastAssistantReply: __t.option(__t.string()).name("last_assistant_reply"), - publishedProfileId: __t.option(__t.string()).name("published_profile_id"), - createdAt: __t.timestamp().name("created_at"), - updatedAt: __t.timestamp().name("updated_at"), -}); diff --git a/src/spacetime/generated/puzzle_runtime_run_table.ts b/src/spacetime/generated/puzzle_runtime_run_table.ts deleted file mode 100644 index 0f737ca9..00000000 --- a/src/spacetime/generated/puzzle_runtime_run_table.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -export default __t.row({ - runId: __t.string().primaryKey().name("run_id"), - ownerUserId: __t.string().name("owner_user_id"), - entryProfileId: __t.string().name("entry_profile_id"), - currentProfileId: __t.string().name("current_profile_id"), - clearedLevelCount: __t.u32().name("cleared_level_count"), - currentLevelIndex: __t.u32().name("current_level_index"), - currentGridSize: __t.u32().name("current_grid_size"), - playedProfileIdsJson: __t.string().name("played_profile_ids_json"), - previousLevelTagsJson: __t.string().name("previous_level_tags_json"), - snapshotJson: __t.string().name("snapshot_json"), - createdAt: __t.timestamp().name("created_at"), - updatedAt: __t.timestamp().name("updated_at"), -}); diff --git a/src/spacetime/generated/puzzle_work_profile_table.ts b/src/spacetime/generated/puzzle_work_profile_table.ts deleted file mode 100644 index 7d32c841..00000000 --- a/src/spacetime/generated/puzzle_work_profile_table.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; -import { - PuzzlePublicationStatus, -} from "./types"; - - -export default __t.row({ - profileId: __t.string().primaryKey().name("profile_id"), - workId: __t.string().name("work_id"), - ownerUserId: __t.string().name("owner_user_id"), - sourceSessionId: __t.option(__t.string()).name("source_session_id"), - authorDisplayName: __t.string().name("author_display_name"), - levelName: __t.string().name("level_name"), - summary: __t.string(), - themeTagsJson: __t.string().name("theme_tags_json"), - coverImageSrc: __t.option(__t.string()).name("cover_image_src"), - coverAssetId: __t.option(__t.string()).name("cover_asset_id"), - get publicationStatus() { - return PuzzlePublicationStatus.name("publication_status"); - }, - playCount: __t.u32().name("play_count"), - anchorPackJson: __t.string().name("anchor_pack_json"), - publishReady: __t.bool().name("publish_ready"), - createdAt: __t.timestamp().name("created_at"), - updatedAt: __t.timestamp().name("updated_at"), - publishedAt: __t.option(__t.timestamp()).name("published_at"), -}); diff --git a/src/spacetime/generated/quest_log_table.ts b/src/spacetime/generated/quest_log_table.ts deleted file mode 100644 index d55094b1..00000000 --- a/src/spacetime/generated/quest_log_table.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; -import { - QuestStatus, - QuestProgressSignal, - QuestLogEventKind, - QuestSignalKind, -} from "./types"; - - -export default __t.row({ - logId: __t.string().primaryKey().name("log_id"), - questId: __t.string().name("quest_id"), - runtimeSessionId: __t.string().name("runtime_session_id"), - actorUserId: __t.string().name("actor_user_id"), - get eventKind() { - return QuestLogEventKind.name("event_kind"); - }, - get statusAfter() { - return QuestStatus.name("status_after"); - }, - get signalKind() { - return __t.option(QuestSignalKind).name("signal_kind"); - }, - get signal() { - return __t.option(QuestProgressSignal); - }, - stepId: __t.option(__t.string()).name("step_id"), - stepProgress: __t.option(__t.u32()).name("step_progress"), - createdAt: __t.timestamp().name("created_at"), -}); diff --git a/src/spacetime/generated/quest_record_table.ts b/src/spacetime/generated/quest_record_table.ts deleted file mode 100644 index 82305f51..00000000 --- a/src/spacetime/generated/quest_record_table.ts +++ /dev/null @@ -1,64 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; -import { - QuestStatus, - QuestRewardSnapshot, - QuestNarrativeBindingSnapshot, - QuestStepSnapshot, - QuestObjectiveSnapshot, -} from "./types"; - - -export default __t.row({ - questId: __t.string().primaryKey().name("quest_id"), - runtimeSessionId: __t.string().name("runtime_session_id"), - storySessionId: __t.option(__t.string()).name("story_session_id"), - actorUserId: __t.string().name("actor_user_id"), - issuerNpcId: __t.string().name("issuer_npc_id"), - issuerNpcName: __t.string().name("issuer_npc_name"), - sceneId: __t.option(__t.string()).name("scene_id"), - chapterId: __t.option(__t.string()).name("chapter_id"), - actId: __t.option(__t.string()).name("act_id"), - threadId: __t.option(__t.string()).name("thread_id"), - contractId: __t.option(__t.string()).name("contract_id"), - title: __t.string(), - description: __t.string(), - summary: __t.string(), - get objective() { - return QuestObjectiveSnapshot; - }, - progress: __t.u32(), - get status() { - return QuestStatus; - }, - completionNotified: __t.bool().name("completion_notified"), - get reward() { - return QuestRewardSnapshot; - }, - rewardText: __t.string().name("reward_text"), - get narrativeBinding() { - return QuestNarrativeBindingSnapshot.name("narrative_binding"); - }, - get steps() { - return __t.array(QuestStepSnapshot); - }, - activeStepId: __t.option(__t.string()).name("active_step_id"), - visibleStage: __t.u32().name("visible_stage"), - hiddenFlags: __t.array(__t.string()).name("hidden_flags"), - discoveredFactIds: __t.array(__t.string()).name("discovered_fact_ids"), - relatedCarrierIds: __t.array(__t.string()).name("related_carrier_ids"), - consequenceIds: __t.array(__t.string()).name("consequence_ids"), - createdAt: __t.timestamp().name("created_at"), - updatedAt: __t.timestamp().name("updated_at"), - completedAt: __t.option(__t.timestamp()).name("completed_at"), - turnedInAt: __t.option(__t.timestamp()).name("turned_in_at"), -}); diff --git a/src/spacetime/generated/redeem_profile_referral_invite_code_procedure.ts b/src/spacetime/generated/redeem_profile_referral_invite_code_procedure.ts deleted file mode 100644 index 83f384a5..00000000 --- a/src/spacetime/generated/redeem_profile_referral_invite_code_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - RuntimeReferralRedeemInput, - RuntimeReferralRedeemProcedureResult, -} from "./types"; - -export const params = { - get input() { - return RuntimeReferralRedeemInput; - }, -}; -export const returnType = RuntimeReferralRedeemProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/refresh_session_table.ts b/src/spacetime/generated/refresh_session_table.ts deleted file mode 100644 index d62031db..00000000 --- a/src/spacetime/generated/refresh_session_table.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -export default __t.row({ - sessionId: __t.string().primaryKey().name("session_id"), - userId: __t.string().name("user_id"), - refreshTokenHash: __t.string().name("refresh_token_hash"), - issuedByProvider: __t.string().name("issued_by_provider"), - clientInfoJson: __t.string().name("client_info_json"), - expiresAt: __t.string().name("expires_at"), - revokedAt: __t.option(__t.string()).name("revoked_at"), - createdAt: __t.string().name("created_at"), - updatedAt: __t.string().name("updated_at"), - lastSeenAt: __t.string().name("last_seen_at"), -}); diff --git a/src/spacetime/generated/resolve_combat_action_and_return_procedure.ts b/src/spacetime/generated/resolve_combat_action_and_return_procedure.ts deleted file mode 100644 index 571399df..00000000 --- a/src/spacetime/generated/resolve_combat_action_and_return_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - ResolveCombatActionInput, - ResolveCombatActionProcedureResult, -} from "./types"; - -export const params = { - get input() { - return ResolveCombatActionInput; - }, -}; -export const returnType = ResolveCombatActionProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/resolve_combat_action_reducer.ts b/src/spacetime/generated/resolve_combat_action_reducer.ts deleted file mode 100644 index fda28bd0..00000000 --- a/src/spacetime/generated/resolve_combat_action_reducer.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - ResolveCombatActionInput, -} from "./types"; - -export default { - get input() { - return ResolveCombatActionInput; - }, -}; diff --git a/src/spacetime/generated/resolve_npc_battle_interaction_and_return_procedure.ts b/src/spacetime/generated/resolve_npc_battle_interaction_and_return_procedure.ts deleted file mode 100644 index fa54ceb7..00000000 --- a/src/spacetime/generated/resolve_npc_battle_interaction_and_return_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - ResolveNpcBattleInteractionInput, - NpcBattleInteractionProcedureResult, -} from "./types"; - -export const params = { - get input() { - return ResolveNpcBattleInteractionInput; - }, -}; -export const returnType = NpcBattleInteractionProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/resolve_npc_interaction_and_return_procedure.ts b/src/spacetime/generated/resolve_npc_interaction_and_return_procedure.ts deleted file mode 100644 index 78143d63..00000000 --- a/src/spacetime/generated/resolve_npc_interaction_and_return_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - ResolveNpcInteractionInput, - NpcInteractionProcedureResult, -} from "./types"; - -export const params = { - get input() { - return ResolveNpcInteractionInput; - }, -}; -export const returnType = NpcInteractionProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/resolve_npc_interaction_reducer.ts b/src/spacetime/generated/resolve_npc_interaction_reducer.ts deleted file mode 100644 index 95d67715..00000000 --- a/src/spacetime/generated/resolve_npc_interaction_reducer.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - ResolveNpcInteractionInput, -} from "./types"; - -export default { - get input() { - return ResolveNpcInteractionInput; - }, -}; diff --git a/src/spacetime/generated/resolve_npc_social_action_and_return_procedure.ts b/src/spacetime/generated/resolve_npc_social_action_and_return_procedure.ts deleted file mode 100644 index ea64808c..00000000 --- a/src/spacetime/generated/resolve_npc_social_action_and_return_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - ResolveNpcSocialActionInput, - NpcStateProcedureResult, -} from "./types"; - -export const params = { - get input() { - return ResolveNpcSocialActionInput; - }, -}; -export const returnType = NpcStateProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/resolve_npc_social_action_reducer.ts b/src/spacetime/generated/resolve_npc_social_action_reducer.ts deleted file mode 100644 index 0b445bac..00000000 --- a/src/spacetime/generated/resolve_npc_social_action_reducer.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - ResolveNpcSocialActionInput, -} from "./types"; - -export default { - get input() { - return ResolveNpcSocialActionInput; - }, -}; diff --git a/src/spacetime/generated/resolve_treasure_interaction_and_return_procedure.ts b/src/spacetime/generated/resolve_treasure_interaction_and_return_procedure.ts deleted file mode 100644 index 823dfa51..00000000 --- a/src/spacetime/generated/resolve_treasure_interaction_and_return_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - TreasureResolveInput, - TreasureRecordProcedureResult, -} from "./types"; - -export const params = { - get input() { - return TreasureResolveInput; - }, -}; -export const returnType = TreasureRecordProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/resolve_treasure_interaction_reducer.ts b/src/spacetime/generated/resolve_treasure_interaction_reducer.ts deleted file mode 100644 index 55c4242f..00000000 --- a/src/spacetime/generated/resolve_treasure_interaction_reducer.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - TreasureResolveInput, -} from "./types"; - -export default { - get input() { - return TreasureResolveInput; - }, -}; diff --git a/src/spacetime/generated/resume_profile_save_archive_and_return_procedure.ts b/src/spacetime/generated/resume_profile_save_archive_and_return_procedure.ts deleted file mode 100644 index e0db6687..00000000 --- a/src/spacetime/generated/resume_profile_save_archive_and_return_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - RuntimeProfileSaveArchiveProcedureResult, - RuntimeProfileSaveArchiveResumeInput, -} from "./types"; - -export const params = { - get input() { - return RuntimeProfileSaveArchiveResumeInput; - }, -}; -export const returnType = RuntimeProfileSaveArchiveProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/runtime_setting_table.ts b/src/spacetime/generated/runtime_setting_table.ts deleted file mode 100644 index c1153aed..00000000 --- a/src/spacetime/generated/runtime_setting_table.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; -import { - RuntimePlatformTheme, -} from "./types"; - - -export default __t.row({ - userId: __t.string().primaryKey().name("user_id"), - musicVolume: __t.f32().name("music_volume"), - get platformTheme() { - return RuntimePlatformTheme.name("platform_theme"); - }, - createdAt: __t.timestamp().name("created_at"), - updatedAt: __t.timestamp().name("updated_at"), -}); diff --git a/src/spacetime/generated/runtime_snapshot_table.ts b/src/spacetime/generated/runtime_snapshot_table.ts deleted file mode 100644 index 93c23708..00000000 --- a/src/spacetime/generated/runtime_snapshot_table.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -export default __t.row({ - userId: __t.string().primaryKey().name("user_id"), - version: __t.u32(), - savedAt: __t.timestamp().name("saved_at"), - bottomTab: __t.string().name("bottom_tab"), - gameStateJson: __t.string().name("game_state_json"), - currentStoryJson: __t.option(__t.string()).name("current_story_json"), - createdAt: __t.timestamp().name("created_at"), - updatedAt: __t.timestamp().name("updated_at"), -}); diff --git a/src/spacetime/generated/save_puzzle_generated_images_procedure.ts b/src/spacetime/generated/save_puzzle_generated_images_procedure.ts deleted file mode 100644 index 064618f5..00000000 --- a/src/spacetime/generated/save_puzzle_generated_images_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - PuzzleAgentSessionProcedureResult, - PuzzleGeneratedImagesSaveInput, -} from "./types"; - -export const params = { - get input() { - return PuzzleGeneratedImagesSaveInput; - }, -}; -export const returnType = PuzzleAgentSessionProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/select_puzzle_cover_image_procedure.ts b/src/spacetime/generated/select_puzzle_cover_image_procedure.ts deleted file mode 100644 index 43822739..00000000 --- a/src/spacetime/generated/select_puzzle_cover_image_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - PuzzleAgentSessionProcedureResult, - PuzzleSelectCoverImageInput, -} from "./types"; - -export const params = { - get input() { - return PuzzleSelectCoverImageInput; - }, -}; -export const returnType = PuzzleAgentSessionProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/start_ai_task_reducer.ts b/src/spacetime/generated/start_ai_task_reducer.ts deleted file mode 100644 index bd8d2318..00000000 --- a/src/spacetime/generated/start_ai_task_reducer.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - AiTaskStartInput, -} from "./types"; - -export default { - get input() { - return AiTaskStartInput; - }, -}; diff --git a/src/spacetime/generated/start_ai_task_stage_reducer.ts b/src/spacetime/generated/start_ai_task_stage_reducer.ts deleted file mode 100644 index 99875352..00000000 --- a/src/spacetime/generated/start_ai_task_stage_reducer.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - AiTaskStageStartInput, -} from "./types"; - -export default { - get input() { - return AiTaskStageStartInput; - }, -}; diff --git a/src/spacetime/generated/start_big_fish_run_procedure.ts b/src/spacetime/generated/start_big_fish_run_procedure.ts deleted file mode 100644 index 7480dda7..00000000 --- a/src/spacetime/generated/start_big_fish_run_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - BigFishRunProcedureResult, - BigFishRunStartInput, -} from "./types"; - -export const params = { - get input() { - return BigFishRunStartInput; - }, -}; -export const returnType = BigFishRunProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/start_puzzle_run_procedure.ts b/src/spacetime/generated/start_puzzle_run_procedure.ts deleted file mode 100644 index 1b69ae08..00000000 --- a/src/spacetime/generated/start_puzzle_run_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - PuzzleRunProcedureResult, - PuzzleRunStartInput, -} from "./types"; - -export const params = { - get input() { - return PuzzleRunStartInput; - }, -}; -export const returnType = PuzzleRunProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/story_event_table.ts b/src/spacetime/generated/story_event_table.ts deleted file mode 100644 index 67e22581..00000000 --- a/src/spacetime/generated/story_event_table.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; -import { - StoryEventKind, -} from "./types"; - - -export default __t.row({ - eventId: __t.string().primaryKey().name("event_id"), - storySessionId: __t.string().name("story_session_id"), - get eventKind() { - return StoryEventKind.name("event_kind"); - }, - narrativeText: __t.string().name("narrative_text"), - choiceFunctionId: __t.option(__t.string()).name("choice_function_id"), - createdAt: __t.timestamp().name("created_at"), -}); diff --git a/src/spacetime/generated/story_session_table.ts b/src/spacetime/generated/story_session_table.ts deleted file mode 100644 index 0e7a8a71..00000000 --- a/src/spacetime/generated/story_session_table.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; -import { - StorySessionStatus, -} from "./types"; - - -export default __t.row({ - storySessionId: __t.string().primaryKey().name("story_session_id"), - runtimeSessionId: __t.string().name("runtime_session_id"), - actorUserId: __t.string().name("actor_user_id"), - worldProfileId: __t.string().name("world_profile_id"), - initialPrompt: __t.string().name("initial_prompt"), - openingSummary: __t.option(__t.string()).name("opening_summary"), - latestNarrativeText: __t.string().name("latest_narrative_text"), - latestChoiceFunctionId: __t.option(__t.string()).name("latest_choice_function_id"), - get status() { - return StorySessionStatus; - }, - version: __t.u32(), - createdAt: __t.timestamp().name("created_at"), - updatedAt: __t.timestamp().name("updated_at"), -}); diff --git a/src/spacetime/generated/submit_big_fish_input_procedure.ts b/src/spacetime/generated/submit_big_fish_input_procedure.ts deleted file mode 100644 index fc54f48d..00000000 --- a/src/spacetime/generated/submit_big_fish_input_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - BigFishRunProcedureResult, - BigFishRunInputSubmitInput, -} from "./types"; - -export const params = { - get input() { - return BigFishRunInputSubmitInput; - }, -}; -export const returnType = BigFishRunProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/submit_big_fish_message_procedure.ts b/src/spacetime/generated/submit_big_fish_message_procedure.ts deleted file mode 100644 index 25a5a295..00000000 --- a/src/spacetime/generated/submit_big_fish_message_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - BigFishSessionProcedureResult, - BigFishMessageSubmitInput, -} from "./types"; - -export const params = { - get input() { - return BigFishMessageSubmitInput; - }, -}; -export const returnType = BigFishSessionProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/submit_custom_world_agent_message_procedure.ts b/src/spacetime/generated/submit_custom_world_agent_message_procedure.ts deleted file mode 100644 index 408c749d..00000000 --- a/src/spacetime/generated/submit_custom_world_agent_message_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - CustomWorldAgentOperationProcedureResult, - CustomWorldAgentMessageSubmitInput, -} from "./types"; - -export const params = { - get input() { - return CustomWorldAgentMessageSubmitInput; - }, -}; -export const returnType = CustomWorldAgentOperationProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/submit_puzzle_agent_message_procedure.ts b/src/spacetime/generated/submit_puzzle_agent_message_procedure.ts deleted file mode 100644 index ef1d12a2..00000000 --- a/src/spacetime/generated/submit_puzzle_agent_message_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - PuzzleAgentSessionProcedureResult, - PuzzleAgentMessageSubmitInput, -} from "./types"; - -export const params = { - get input() { - return PuzzleAgentMessageSubmitInput; - }, -}; -export const returnType = PuzzleAgentSessionProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/swap_puzzle_pieces_procedure.ts b/src/spacetime/generated/swap_puzzle_pieces_procedure.ts deleted file mode 100644 index e7e58327..00000000 --- a/src/spacetime/generated/swap_puzzle_pieces_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - PuzzleRunProcedureResult, - PuzzleRunSwapInput, -} from "./types"; - -export const params = { - get input() { - return PuzzleRunSwapInput; - }, -}; -export const returnType = PuzzleRunProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/treasure_record_table.ts b/src/spacetime/generated/treasure_record_table.ts deleted file mode 100644 index f5531805..00000000 --- a/src/spacetime/generated/treasure_record_table.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; -import { - RuntimeItemRewardItemSnapshot, - TreasureInteractionAction, -} from "./types"; - - -export default __t.row({ - treasureRecordId: __t.string().primaryKey().name("treasure_record_id"), - runtimeSessionId: __t.string().name("runtime_session_id"), - storySessionId: __t.string().name("story_session_id"), - actorUserId: __t.string().name("actor_user_id"), - encounterId: __t.string().name("encounter_id"), - encounterName: __t.string().name("encounter_name"), - sceneId: __t.option(__t.string()).name("scene_id"), - sceneName: __t.option(__t.string()).name("scene_name"), - get action() { - return TreasureInteractionAction; - }, - get rewardItems() { - return __t.array(RuntimeItemRewardItemSnapshot).name("reward_items"); - }, - rewardHp: __t.u32().name("reward_hp"), - rewardMana: __t.u32().name("reward_mana"), - rewardCurrency: __t.u32().name("reward_currency"), - storyHint: __t.option(__t.string()).name("story_hint"), - createdAt: __t.timestamp().name("created_at"), - updatedAt: __t.timestamp().name("updated_at"), -}); diff --git a/src/spacetime/generated/turn_in_quest_reducer.ts b/src/spacetime/generated/turn_in_quest_reducer.ts deleted file mode 100644 index c2c8b3dd..00000000 --- a/src/spacetime/generated/turn_in_quest_reducer.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - QuestTurnInInput, -} from "./types"; - -export default { - get input() { - return QuestTurnInInput; - }, -}; diff --git a/src/spacetime/generated/types.ts b/src/spacetime/generated/types.ts deleted file mode 100644 index 11014026..00000000 --- a/src/spacetime/generated/types.ts +++ /dev/null @@ -1,4087 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -export const AiResultReference = __t.object("AiResultReference", { - resultReferenceRowId: __t.string(), - resultRefId: __t.string(), - taskId: __t.string(), - get referenceKind() { - return AiResultReferenceKind; - }, - referenceId: __t.string(), - label: __t.option(__t.string()), - createdAt: __t.timestamp(), -}); -export type AiResultReference = __Infer; - -export const AiResultReferenceInput = __t.object("AiResultReferenceInput", { - taskId: __t.string(), - get referenceKind() { - return AiResultReferenceKind; - }, - referenceId: __t.string(), - label: __t.option(__t.string()), - createdAtMicros: __t.i64(), -}); -export type AiResultReferenceInput = __Infer; - -// The tagged union or sum type for the algebraic type `AiResultReferenceKind`. -export const AiResultReferenceKind = __t.enum("AiResultReferenceKind", { - StorySession: __t.unit(), - StoryEvent: __t.unit(), - CustomWorldProfile: __t.unit(), - QuestRecord: __t.unit(), - RuntimeItemRecord: __t.unit(), - AssetObject: __t.unit(), -}); -export type AiResultReferenceKind = __Infer; - -export const AiResultReferenceSnapshot = __t.object("AiResultReferenceSnapshot", { - resultRefId: __t.string(), - taskId: __t.string(), - get referenceKind() { - return AiResultReferenceKind; - }, - referenceId: __t.string(), - label: __t.option(__t.string()), - createdAtMicros: __t.i64(), -}); -export type AiResultReferenceSnapshot = __Infer; - -export const AiStageCompletionInput = __t.object("AiStageCompletionInput", { - taskId: __t.string(), - get stageKind() { - return AiTaskStageKind; - }, - textOutput: __t.option(__t.string()), - structuredPayloadJson: __t.option(__t.string()), - warningMessages: __t.array(__t.string()), - completedAtMicros: __t.i64(), -}); -export type AiStageCompletionInput = __Infer; - -export const AiTask = __t.object("AiTask", { - taskId: __t.string(), - get taskKind() { - return AiTaskKind; - }, - ownerUserId: __t.string(), - requestLabel: __t.string(), - sourceModule: __t.string(), - sourceEntityId: __t.option(__t.string()), - requestPayloadJson: __t.option(__t.string()), - get status() { - return AiTaskStatus; - }, - failureMessage: __t.option(__t.string()), - latestTextOutput: __t.option(__t.string()), - latestStructuredPayloadJson: __t.option(__t.string()), - version: __t.u32(), - createdAt: __t.timestamp(), - startedAt: __t.option(__t.timestamp()), - completedAt: __t.option(__t.timestamp()), - updatedAt: __t.timestamp(), -}); -export type AiTask = __Infer; - -export const AiTaskCancelInput = __t.object("AiTaskCancelInput", { - taskId: __t.string(), - completedAtMicros: __t.i64(), -}); -export type AiTaskCancelInput = __Infer; - -export const AiTaskCreateInput = __t.object("AiTaskCreateInput", { - taskId: __t.string(), - get taskKind() { - return AiTaskKind; - }, - ownerUserId: __t.string(), - requestLabel: __t.string(), - sourceModule: __t.string(), - sourceEntityId: __t.option(__t.string()), - requestPayloadJson: __t.option(__t.string()), - get stages() { - return __t.array(AiTaskStageBlueprint); - }, - createdAtMicros: __t.i64(), -}); -export type AiTaskCreateInput = __Infer; - -export const AiTaskFailureInput = __t.object("AiTaskFailureInput", { - taskId: __t.string(), - failureMessage: __t.string(), - completedAtMicros: __t.i64(), -}); -export type AiTaskFailureInput = __Infer; - -export const AiTaskFinishInput = __t.object("AiTaskFinishInput", { - taskId: __t.string(), - completedAtMicros: __t.i64(), -}); -export type AiTaskFinishInput = __Infer; - -// The tagged union or sum type for the algebraic type `AiTaskKind`. -export const AiTaskKind = __t.enum("AiTaskKind", { - StoryGeneration: __t.unit(), - CharacterChat: __t.unit(), - NpcChat: __t.unit(), - CustomWorldGeneration: __t.unit(), - QuestIntent: __t.unit(), - RuntimeItemIntent: __t.unit(), -}); -export type AiTaskKind = __Infer; - -export const AiTaskProcedureResult = __t.object("AiTaskProcedureResult", { - ok: __t.bool(), - get task() { - return __t.option(AiTaskSnapshot); - }, - get textChunk() { - return __t.option(AiTextChunkSnapshot); - }, - errorMessage: __t.option(__t.string()), -}); -export type AiTaskProcedureResult = __Infer; - -export const AiTaskSnapshot = __t.object("AiTaskSnapshot", { - taskId: __t.string(), - get taskKind() { - return AiTaskKind; - }, - ownerUserId: __t.string(), - requestLabel: __t.string(), - sourceModule: __t.string(), - sourceEntityId: __t.option(__t.string()), - requestPayloadJson: __t.option(__t.string()), - get status() { - return AiTaskStatus; - }, - failureMessage: __t.option(__t.string()), - get stages() { - return __t.array(AiTaskStageSnapshot); - }, - get resultReferences() { - return __t.array(AiResultReferenceSnapshot); - }, - latestTextOutput: __t.option(__t.string()), - latestStructuredPayloadJson: __t.option(__t.string()), - version: __t.u32(), - createdAtMicros: __t.i64(), - startedAtMicros: __t.option(__t.i64()), - completedAtMicros: __t.option(__t.i64()), - updatedAtMicros: __t.i64(), -}); -export type AiTaskSnapshot = __Infer; - -export const AiTaskStage = __t.object("AiTaskStage", { - taskStageId: __t.string(), - taskId: __t.string(), - get stageKind() { - return AiTaskStageKind; - }, - label: __t.string(), - detail: __t.string(), - stageOrder: __t.u32(), - get status() { - return AiTaskStageStatus; - }, - textOutput: __t.option(__t.string()), - structuredPayloadJson: __t.option(__t.string()), - warningMessages: __t.array(__t.string()), - startedAt: __t.option(__t.timestamp()), - completedAt: __t.option(__t.timestamp()), -}); -export type AiTaskStage = __Infer; - -export const AiTaskStageBlueprint = __t.object("AiTaskStageBlueprint", { - get stageKind() { - return AiTaskStageKind; - }, - label: __t.string(), - detail: __t.string(), - order: __t.u32(), -}); -export type AiTaskStageBlueprint = __Infer; - -// The tagged union or sum type for the algebraic type `AiTaskStageKind`. -export const AiTaskStageKind = __t.enum("AiTaskStageKind", { - PreparePrompt: __t.unit(), - RequestModel: __t.unit(), - RepairResponse: __t.unit(), - NormalizeResult: __t.unit(), - PersistResult: __t.unit(), -}); -export type AiTaskStageKind = __Infer; - -export const AiTaskStageSnapshot = __t.object("AiTaskStageSnapshot", { - get stageKind() { - return AiTaskStageKind; - }, - label: __t.string(), - detail: __t.string(), - order: __t.u32(), - get status() { - return AiTaskStageStatus; - }, - textOutput: __t.option(__t.string()), - structuredPayloadJson: __t.option(__t.string()), - warningMessages: __t.array(__t.string()), - startedAtMicros: __t.option(__t.i64()), - completedAtMicros: __t.option(__t.i64()), -}); -export type AiTaskStageSnapshot = __Infer; - -export const AiTaskStageStartInput = __t.object("AiTaskStageStartInput", { - taskId: __t.string(), - get stageKind() { - return AiTaskStageKind; - }, - startedAtMicros: __t.i64(), -}); -export type AiTaskStageStartInput = __Infer; - -// The tagged union or sum type for the algebraic type `AiTaskStageStatus`. -export const AiTaskStageStatus = __t.enum("AiTaskStageStatus", { - Pending: __t.unit(), - Running: __t.unit(), - Completed: __t.unit(), - Skipped: __t.unit(), -}); -export type AiTaskStageStatus = __Infer; - -export const AiTaskStartInput = __t.object("AiTaskStartInput", { - taskId: __t.string(), - startedAtMicros: __t.i64(), -}); -export type AiTaskStartInput = __Infer; - -// The tagged union or sum type for the algebraic type `AiTaskStatus`. -export const AiTaskStatus = __t.enum("AiTaskStatus", { - Pending: __t.unit(), - Running: __t.unit(), - Completed: __t.unit(), - Failed: __t.unit(), - Cancelled: __t.unit(), -}); -export type AiTaskStatus = __Infer; - -export const AiTextChunk = __t.object("AiTextChunk", { - textChunkRowId: __t.string(), - chunkId: __t.string(), - taskId: __t.string(), - get stageKind() { - return AiTaskStageKind; - }, - sequence: __t.u32(), - deltaText: __t.string(), - createdAt: __t.timestamp(), -}); -export type AiTextChunk = __Infer; - -export const AiTextChunkAppendInput = __t.object("AiTextChunkAppendInput", { - taskId: __t.string(), - get stageKind() { - return AiTaskStageKind; - }, - sequence: __t.u32(), - deltaText: __t.string(), - createdAtMicros: __t.i64(), -}); -export type AiTextChunkAppendInput = __Infer; - -export const AiTextChunkSnapshot = __t.object("AiTextChunkSnapshot", { - chunkId: __t.string(), - taskId: __t.string(), - get stageKind() { - return AiTaskStageKind; - }, - sequence: __t.u32(), - deltaText: __t.string(), - createdAtMicros: __t.i64(), -}); -export type AiTextChunkSnapshot = __Infer; - -export const AssetEntityBinding = __t.object("AssetEntityBinding", { - bindingId: __t.string(), - assetObjectId: __t.string(), - entityKind: __t.string(), - entityId: __t.string(), - slot: __t.string(), - assetKind: __t.string(), - ownerUserId: __t.option(__t.string()), - profileId: __t.option(__t.string()), - createdAt: __t.timestamp(), - updatedAt: __t.timestamp(), -}); -export type AssetEntityBinding = __Infer; - -export const AssetEntityBindingInput = __t.object("AssetEntityBindingInput", { - bindingId: __t.string(), - assetObjectId: __t.string(), - entityKind: __t.string(), - entityId: __t.string(), - slot: __t.string(), - assetKind: __t.string(), - ownerUserId: __t.option(__t.string()), - profileId: __t.option(__t.string()), - updatedAtMicros: __t.i64(), -}); -export type AssetEntityBindingInput = __Infer; - -export const AssetEntityBindingProcedureResult = __t.object("AssetEntityBindingProcedureResult", { - ok: __t.bool(), - get record() { - return __t.option(AssetEntityBindingSnapshot); - }, - errorMessage: __t.option(__t.string()), -}); -export type AssetEntityBindingProcedureResult = __Infer; - -export const AssetEntityBindingSnapshot = __t.object("AssetEntityBindingSnapshot", { - bindingId: __t.string(), - assetObjectId: __t.string(), - entityKind: __t.string(), - entityId: __t.string(), - slot: __t.string(), - assetKind: __t.string(), - ownerUserId: __t.option(__t.string()), - profileId: __t.option(__t.string()), - createdAtMicros: __t.i64(), - updatedAtMicros: __t.i64(), -}); -export type AssetEntityBindingSnapshot = __Infer; - -export const AssetObject = __t.object("AssetObject", { - assetObjectId: __t.string(), - bucket: __t.string(), - objectKey: __t.string(), - get accessPolicy() { - return AssetObjectAccessPolicy; - }, - contentType: __t.option(__t.string()), - contentLength: __t.u64(), - contentHash: __t.option(__t.string()), - version: __t.u32(), - sourceJobId: __t.option(__t.string()), - ownerUserId: __t.option(__t.string()), - profileId: __t.option(__t.string()), - entityId: __t.option(__t.string()), - assetKind: __t.string(), - createdAt: __t.timestamp(), - updatedAt: __t.timestamp(), -}); -export type AssetObject = __Infer; - -// The tagged union or sum type for the algebraic type `AssetObjectAccessPolicy`. -export const AssetObjectAccessPolicy = __t.enum("AssetObjectAccessPolicy", { - Private: __t.unit(), - PublicRead: __t.unit(), -}); -export type AssetObjectAccessPolicy = __Infer; - -export const AssetObjectProcedureResult = __t.object("AssetObjectProcedureResult", { - ok: __t.bool(), - get record() { - return __t.option(AssetObjectUpsertSnapshot); - }, - errorMessage: __t.option(__t.string()), -}); -export type AssetObjectProcedureResult = __Infer; - -export const AssetObjectUpsertInput = __t.object("AssetObjectUpsertInput", { - assetObjectId: __t.string(), - bucket: __t.string(), - objectKey: __t.string(), - get accessPolicy() { - return AssetObjectAccessPolicy; - }, - contentType: __t.option(__t.string()), - contentLength: __t.u64(), - contentHash: __t.option(__t.string()), - version: __t.u32(), - sourceJobId: __t.option(__t.string()), - ownerUserId: __t.option(__t.string()), - profileId: __t.option(__t.string()), - entityId: __t.option(__t.string()), - assetKind: __t.string(), - updatedAtMicros: __t.i64(), -}); -export type AssetObjectUpsertInput = __Infer; - -export const AssetObjectUpsertSnapshot = __t.object("AssetObjectUpsertSnapshot", { - assetObjectId: __t.string(), - bucket: __t.string(), - objectKey: __t.string(), - get accessPolicy() { - return AssetObjectAccessPolicy; - }, - contentType: __t.option(__t.string()), - contentLength: __t.u64(), - contentHash: __t.option(__t.string()), - version: __t.u32(), - sourceJobId: __t.option(__t.string()), - ownerUserId: __t.option(__t.string()), - profileId: __t.option(__t.string()), - entityId: __t.option(__t.string()), - assetKind: __t.string(), - createdAtMicros: __t.i64(), - updatedAtMicros: __t.i64(), -}); -export type AssetObjectUpsertSnapshot = __Infer; - -export const AuthIdentity = __t.object("AuthIdentity", { - identityId: __t.string(), - userId: __t.string(), - provider: __t.string(), - providerUid: __t.string(), - providerUnionId: __t.option(__t.string()), - phoneE164: __t.option(__t.string()), - displayName: __t.option(__t.string()), - avatarUrl: __t.option(__t.string()), -}); -export type AuthIdentity = __Infer; - -export const AuthStoreSnapshot = __t.object("AuthStoreSnapshot", { - snapshotId: __t.string(), - snapshotJson: __t.string(), - updatedAt: __t.timestamp(), -}); -export type AuthStoreSnapshot = __Infer; - -export const AuthStoreSnapshotImportProcedureResult = __t.object("AuthStoreSnapshotImportProcedureResult", { - ok: __t.bool(), - get record() { - return __t.option(AuthStoreSnapshotImportRecord); - }, - errorMessage: __t.option(__t.string()), -}); -export type AuthStoreSnapshotImportProcedureResult = __Infer; - -export const AuthStoreSnapshotImportRecord = __t.object("AuthStoreSnapshotImportRecord", { - importedUserCount: __t.u32(), - importedIdentityCount: __t.u32(), - importedRefreshSessionCount: __t.u32(), -}); -export type AuthStoreSnapshotImportRecord = __Infer; - -export const AuthStoreSnapshotProcedureResult = __t.object("AuthStoreSnapshotProcedureResult", { - ok: __t.bool(), - get record() { - return __t.option(AuthStoreSnapshotRecord); - }, - errorMessage: __t.option(__t.string()), -}); -export type AuthStoreSnapshotProcedureResult = __Infer; - -export const AuthStoreSnapshotRecord = __t.object("AuthStoreSnapshotRecord", { - snapshotJson: __t.option(__t.string()), - updatedAtMicros: __t.option(__t.i64()), -}); -export type AuthStoreSnapshotRecord = __Infer; - -export const AuthStoreSnapshotUpsertInput = __t.object("AuthStoreSnapshotUpsertInput", { - snapshotJson: __t.string(), - updatedAtMicros: __t.i64(), -}); -export type AuthStoreSnapshotUpsertInput = __Infer; - -// The tagged union or sum type for the algebraic type `BattleMode`. -export const BattleMode = __t.enum("BattleMode", { - Fight: __t.unit(), - Spar: __t.unit(), -}); -export type BattleMode = __Infer; - -export const BattleState = __t.object("BattleState", { - battleStateId: __t.string(), - storySessionId: __t.string(), - runtimeSessionId: __t.string(), - actorUserId: __t.string(), - chapterId: __t.option(__t.string()), - targetNpcId: __t.string(), - targetName: __t.string(), - get battleMode() { - return BattleMode; - }, - get status() { - return BattleStatus; - }, - playerHp: __t.i32(), - playerMaxHp: __t.i32(), - playerMana: __t.i32(), - playerMaxMana: __t.i32(), - targetHp: __t.i32(), - targetMaxHp: __t.i32(), - experienceReward: __t.u32(), - get rewardItems() { - return __t.array(RuntimeItemRewardItemSnapshot); - }, - turnIndex: __t.u32(), - lastActionFunctionId: __t.option(__t.string()), - lastActionText: __t.option(__t.string()), - lastResultText: __t.option(__t.string()), - lastDamageDealt: __t.i32(), - lastDamageTaken: __t.i32(), - get lastOutcome() { - return CombatOutcome; - }, - version: __t.u32(), - createdAt: __t.timestamp(), - updatedAt: __t.timestamp(), -}); -export type BattleState = __Infer; - -export const BattleStateInput = __t.object("BattleStateInput", { - battleStateId: __t.string(), - storySessionId: __t.string(), - runtimeSessionId: __t.string(), - actorUserId: __t.string(), - chapterId: __t.option(__t.string()), - targetNpcId: __t.string(), - targetName: __t.string(), - get battleMode() { - return BattleMode; - }, - playerHp: __t.i32(), - playerMaxHp: __t.i32(), - playerMana: __t.i32(), - playerMaxMana: __t.i32(), - targetHp: __t.i32(), - targetMaxHp: __t.i32(), - experienceReward: __t.u32(), - get rewardItems() { - return __t.array(RuntimeItemRewardItemSnapshot); - }, - createdAtMicros: __t.i64(), -}); -export type BattleStateInput = __Infer; - -export const BattleStateProcedureResult = __t.object("BattleStateProcedureResult", { - ok: __t.bool(), - get snapshot() { - return __t.option(BattleStateSnapshot); - }, - errorMessage: __t.option(__t.string()), -}); -export type BattleStateProcedureResult = __Infer; - -export const BattleStateQueryInput = __t.object("BattleStateQueryInput", { - battleStateId: __t.string(), -}); -export type BattleStateQueryInput = __Infer; - -export const BattleStateSnapshot = __t.object("BattleStateSnapshot", { - battleStateId: __t.string(), - storySessionId: __t.string(), - runtimeSessionId: __t.string(), - actorUserId: __t.string(), - chapterId: __t.option(__t.string()), - targetNpcId: __t.string(), - targetName: __t.string(), - get battleMode() { - return BattleMode; - }, - get status() { - return BattleStatus; - }, - playerHp: __t.i32(), - playerMaxHp: __t.i32(), - playerMana: __t.i32(), - playerMaxMana: __t.i32(), - targetHp: __t.i32(), - targetMaxHp: __t.i32(), - experienceReward: __t.u32(), - get rewardItems() { - return __t.array(RuntimeItemRewardItemSnapshot); - }, - turnIndex: __t.u32(), - lastActionFunctionId: __t.option(__t.string()), - lastActionText: __t.option(__t.string()), - lastResultText: __t.option(__t.string()), - lastDamageDealt: __t.i32(), - lastDamageTaken: __t.i32(), - get lastOutcome() { - return CombatOutcome; - }, - version: __t.u32(), - createdAtMicros: __t.i64(), - updatedAtMicros: __t.i64(), -}); -export type BattleStateSnapshot = __Infer; - -// The tagged union or sum type for the algebraic type `BattleStatus`. -export const BattleStatus = __t.enum("BattleStatus", { - Ongoing: __t.unit(), - Resolved: __t.unit(), - Aborted: __t.unit(), -}); -export type BattleStatus = __Infer; - -export const BigFishAgentMessage = __t.object("BigFishAgentMessage", { - messageId: __t.string(), - sessionId: __t.string(), - get role() { - return BigFishAgentMessageRole; - }, - get kind() { - return BigFishAgentMessageKind; - }, - text: __t.string(), - createdAt: __t.timestamp(), -}); -export type BigFishAgentMessage = __Infer; - -// The tagged union or sum type for the algebraic type `BigFishAgentMessageKind`. -export const BigFishAgentMessageKind = __t.enum("BigFishAgentMessageKind", { - Chat: __t.unit(), - Summary: __t.unit(), - ActionResult: __t.unit(), - Warning: __t.unit(), -}); -export type BigFishAgentMessageKind = __Infer; - -// The tagged union or sum type for the algebraic type `BigFishAgentMessageRole`. -export const BigFishAgentMessageRole = __t.enum("BigFishAgentMessageRole", { - User: __t.unit(), - Assistant: __t.unit(), - System: __t.unit(), -}); -export type BigFishAgentMessageRole = __Infer; - -export const BigFishAgentMessageSnapshot = __t.object("BigFishAgentMessageSnapshot", { - messageId: __t.string(), - sessionId: __t.string(), - get role() { - return BigFishAgentMessageRole; - }, - get kind() { - return BigFishAgentMessageKind; - }, - text: __t.string(), - createdAtMicros: __t.i64(), -}); -export type BigFishAgentMessageSnapshot = __Infer; - -export const BigFishAnchorItem = __t.object("BigFishAnchorItem", { - key: __t.string(), - label: __t.string(), - value: __t.string(), - get status() { - return BigFishAnchorStatus; - }, -}); -export type BigFishAnchorItem = __Infer; - -export const BigFishAnchorPack = __t.object("BigFishAnchorPack", { - get gameplayPromise() { - return BigFishAnchorItem; - }, - get ecologyVisualTheme() { - return BigFishAnchorItem; - }, - get growthLadder() { - return BigFishAnchorItem; - }, - get riskTempo() { - return BigFishAnchorItem; - }, -}); -export type BigFishAnchorPack = __Infer; - -// The tagged union or sum type for the algebraic type `BigFishAnchorStatus`. -export const BigFishAnchorStatus = __t.enum("BigFishAnchorStatus", { - Confirmed: __t.unit(), - Inferred: __t.unit(), - Missing: __t.unit(), - Locked: __t.unit(), -}); -export type BigFishAnchorStatus = __Infer; - -export const BigFishAssetCoverage = __t.object("BigFishAssetCoverage", { - levelMainImageReadyCount: __t.u32(), - levelMotionReadyCount: __t.u32(), - backgroundReady: __t.bool(), - requiredLevelCount: __t.u32(), - publishReady: __t.bool(), - blockers: __t.array(__t.string()), -}); -export type BigFishAssetCoverage = __Infer; - -export const BigFishAssetGenerateInput = __t.object("BigFishAssetGenerateInput", { - sessionId: __t.string(), - ownerUserId: __t.string(), - get assetKind() { - return BigFishAssetKind; - }, - level: __t.option(__t.u32()), - motionKey: __t.option(__t.string()), - assetUrl: __t.option(__t.string()), - generatedAtMicros: __t.i64(), -}); -export type BigFishAssetGenerateInput = __Infer; - -// The tagged union or sum type for the algebraic type `BigFishAssetKind`. -export const BigFishAssetKind = __t.enum("BigFishAssetKind", { - LevelMainImage: __t.unit(), - LevelMotion: __t.unit(), - StageBackground: __t.unit(), -}); -export type BigFishAssetKind = __Infer; - -export const BigFishAssetSlot = __t.object("BigFishAssetSlot", { - slotId: __t.string(), - sessionId: __t.string(), - get assetKind() { - return BigFishAssetKind; - }, - level: __t.option(__t.u32()), - motionKey: __t.option(__t.string()), - get status() { - return BigFishAssetStatus; - }, - assetUrl: __t.option(__t.string()), - promptSnapshot: __t.string(), - updatedAt: __t.timestamp(), -}); -export type BigFishAssetSlot = __Infer; - -export const BigFishAssetSlotSnapshot = __t.object("BigFishAssetSlotSnapshot", { - slotId: __t.string(), - sessionId: __t.string(), - get assetKind() { - return BigFishAssetKind; - }, - level: __t.option(__t.u32()), - motionKey: __t.option(__t.string()), - get status() { - return BigFishAssetStatus; - }, - assetUrl: __t.option(__t.string()), - promptSnapshot: __t.string(), - updatedAtMicros: __t.i64(), -}); -export type BigFishAssetSlotSnapshot = __Infer; - -// The tagged union or sum type for the algebraic type `BigFishAssetStatus`. -export const BigFishAssetStatus = __t.enum("BigFishAssetStatus", { - Missing: __t.unit(), - Ready: __t.unit(), -}); -export type BigFishAssetStatus = __Infer; - -export const BigFishBackgroundBlueprint = __t.object("BigFishBackgroundBlueprint", { - theme: __t.string(), - colorMood: __t.string(), - foregroundHints: __t.string(), - midgroundComposition: __t.string(), - backgroundDepth: __t.string(), - safePlayAreaHint: __t.string(), - spawnEdgeHint: __t.string(), - backgroundPromptSeed: __t.string(), -}); -export type BigFishBackgroundBlueprint = __Infer; - -export const BigFishCreationSession = __t.object("BigFishCreationSession", { - sessionId: __t.string(), - ownerUserId: __t.string(), - seedText: __t.string(), - currentTurn: __t.u32(), - progressPercent: __t.u32(), - get stage() { - return BigFishCreationStage; - }, - anchorPackJson: __t.string(), - draftJson: __t.option(__t.string()), - assetCoverageJson: __t.string(), - lastAssistantReply: __t.option(__t.string()), - publishReady: __t.bool(), - createdAt: __t.timestamp(), - updatedAt: __t.timestamp(), -}); -export type BigFishCreationSession = __Infer; - -// The tagged union or sum type for the algebraic type `BigFishCreationStage`. -export const BigFishCreationStage = __t.enum("BigFishCreationStage", { - CollectingAnchors: __t.unit(), - DraftReady: __t.unit(), - AssetRefining: __t.unit(), - ReadyToPublish: __t.unit(), - Published: __t.unit(), -}); -export type BigFishCreationStage = __Infer; - -export const BigFishDraftCompileInput = __t.object("BigFishDraftCompileInput", { - sessionId: __t.string(), - ownerUserId: __t.string(), - compiledAtMicros: __t.i64(), -}); -export type BigFishDraftCompileInput = __Infer; - -export const BigFishGameDraft = __t.object("BigFishGameDraft", { - title: __t.string(), - subtitle: __t.string(), - coreFun: __t.string(), - ecologyTheme: __t.string(), - get levels() { - return __t.array(BigFishLevelBlueprint); - }, - get background() { - return BigFishBackgroundBlueprint; - }, - get runtimeParams() { - return BigFishRuntimeParams; - }, -}); -export type BigFishGameDraft = __Infer; - -export const BigFishLevelBlueprint = __t.object("BigFishLevelBlueprint", { - level: __t.u32(), - name: __t.string(), - oneLineFantasy: __t.string(), - silhouetteDirection: __t.string(), - sizeRatio: __t.f32(), - visualPromptSeed: __t.string(), - motionPromptSeed: __t.string(), - mergeSourceLevel: __t.option(__t.u32()), - preyWindow: __t.array(__t.u32()), - threatWindow: __t.array(__t.u32()), - isFinalLevel: __t.bool(), -}); -export type BigFishLevelBlueprint = __Infer; - -export const BigFishMessageFinalizeInput = __t.object("BigFishMessageFinalizeInput", { - sessionId: __t.string(), - ownerUserId: __t.string(), - assistantMessageId: __t.option(__t.string()), - assistantReplyText: __t.option(__t.string()), - get stage() { - return BigFishCreationStage; - }, - progressPercent: __t.u32(), - anchorPackJson: __t.string(), - errorMessage: __t.option(__t.string()), - updatedAtMicros: __t.i64(), -}); -export type BigFishMessageFinalizeInput = __Infer; - -export const BigFishMessageSubmitInput = __t.object("BigFishMessageSubmitInput", { - sessionId: __t.string(), - ownerUserId: __t.string(), - userMessageId: __t.string(), - userMessageText: __t.string(), - assistantMessageId: __t.string(), - submittedAtMicros: __t.i64(), -}); -export type BigFishMessageSubmitInput = __Infer; - -export const BigFishPublishInput = __t.object("BigFishPublishInput", { - sessionId: __t.string(), - ownerUserId: __t.string(), - publishedAtMicros: __t.i64(), -}); -export type BigFishPublishInput = __Infer; - -export const BigFishRunGetInput = __t.object("BigFishRunGetInput", { - runId: __t.string(), - ownerUserId: __t.string(), -}); -export type BigFishRunGetInput = __Infer; - -export const BigFishRunInputSubmitInput = __t.object("BigFishRunInputSubmitInput", { - runId: __t.string(), - ownerUserId: __t.string(), - inputX: __t.f32(), - inputY: __t.f32(), - submittedAtMicros: __t.i64(), -}); -export type BigFishRunInputSubmitInput = __Infer; - -export const BigFishRunProcedureResult = __t.object("BigFishRunProcedureResult", { - ok: __t.bool(), - get run() { - return __t.option(BigFishRuntimeSnapshot); - }, - errorMessage: __t.option(__t.string()), -}); -export type BigFishRunProcedureResult = __Infer; - -export const BigFishRunStartInput = __t.object("BigFishRunStartInput", { - runId: __t.string(), - sessionId: __t.string(), - ownerUserId: __t.string(), - startedAtMicros: __t.i64(), -}); -export type BigFishRunStartInput = __Infer; - -// The tagged union or sum type for the algebraic type `BigFishRunStatus`. -export const BigFishRunStatus = __t.enum("BigFishRunStatus", { - Running: __t.unit(), - Won: __t.unit(), - Failed: __t.unit(), -}); -export type BigFishRunStatus = __Infer; - -export const BigFishRuntimeEntity = __t.object("BigFishRuntimeEntity", { - entityId: __t.string(), - level: __t.u32(), - get position() { - return BigFishVector2; - }, - radius: __t.f32(), - offscreenSeconds: __t.f32(), -}); -export type BigFishRuntimeEntity = __Infer; - -export const BigFishRuntimeParams = __t.object("BigFishRuntimeParams", { - levelCount: __t.u32(), - mergeCountPerUpgrade: __t.u32(), - spawnTargetCount: __t.u32(), - leaderMoveSpeed: __t.f32(), - followerCatchUpSpeed: __t.f32(), - offscreenCullSeconds: __t.f32(), - preySpawnDeltaLevels: __t.array(__t.u32()), - threatSpawnDeltaLevels: __t.array(__t.u32()), - winLevel: __t.u32(), -}); -export type BigFishRuntimeParams = __Infer; - -export const BigFishRuntimeRun = __t.object("BigFishRuntimeRun", { - runId: __t.string(), - sessionId: __t.string(), - ownerUserId: __t.string(), - get status() { - return BigFishRunStatus; - }, - snapshotJson: __t.string(), - lastInputX: __t.f32(), - lastInputY: __t.f32(), - tick: __t.u64(), - createdAt: __t.timestamp(), - updatedAt: __t.timestamp(), -}); -export type BigFishRuntimeRun = __Infer; - -export const BigFishRuntimeSnapshot = __t.object("BigFishRuntimeSnapshot", { - runId: __t.string(), - sessionId: __t.string(), - get status() { - return BigFishRunStatus; - }, - tick: __t.u64(), - playerLevel: __t.u32(), - winLevel: __t.u32(), - leaderEntityId: __t.option(__t.string()), - get ownedEntities() { - return __t.array(BigFishRuntimeEntity); - }, - get wildEntities() { - return __t.array(BigFishRuntimeEntity); - }, - get cameraCenter() { - return BigFishVector2; - }, - get lastInput() { - return BigFishVector2; - }, - eventLog: __t.array(__t.string()), - updatedAtMicros: __t.i64(), -}); -export type BigFishRuntimeSnapshot = __Infer; - -export const BigFishSessionCreateInput = __t.object("BigFishSessionCreateInput", { - sessionId: __t.string(), - ownerUserId: __t.string(), - seedText: __t.string(), - welcomeMessageId: __t.string(), - welcomeMessageText: __t.string(), - createdAtMicros: __t.i64(), -}); -export type BigFishSessionCreateInput = __Infer; - -export const BigFishSessionGetInput = __t.object("BigFishSessionGetInput", { - sessionId: __t.string(), - ownerUserId: __t.string(), -}); -export type BigFishSessionGetInput = __Infer; - -export const BigFishSessionProcedureResult = __t.object("BigFishSessionProcedureResult", { - ok: __t.bool(), - get session() { - return __t.option(BigFishSessionSnapshot); - }, - errorMessage: __t.option(__t.string()), -}); -export type BigFishSessionProcedureResult = __Infer; - -export const BigFishSessionSnapshot = __t.object("BigFishSessionSnapshot", { - sessionId: __t.string(), - ownerUserId: __t.string(), - seedText: __t.string(), - currentTurn: __t.u32(), - progressPercent: __t.u32(), - get stage() { - return BigFishCreationStage; - }, - get anchorPack() { - return BigFishAnchorPack; - }, - get draft() { - return __t.option(BigFishGameDraft); - }, - get assetSlots() { - return __t.array(BigFishAssetSlotSnapshot); - }, - get assetCoverage() { - return BigFishAssetCoverage; - }, - get messages() { - return __t.array(BigFishAgentMessageSnapshot); - }, - lastAssistantReply: __t.option(__t.string()), - publishReady: __t.bool(), - createdAtMicros: __t.i64(), - updatedAtMicros: __t.i64(), -}); -export type BigFishSessionSnapshot = __Infer; - -export const BigFishVector2 = __t.object("BigFishVector2", { - x: __t.f32(), - y: __t.f32(), -}); -export type BigFishVector2 = __Infer; - -export const BigFishWorkDeleteInput = __t.object("BigFishWorkDeleteInput", { - sessionId: __t.string(), - ownerUserId: __t.string(), -}); -export type BigFishWorkDeleteInput = __Infer; - -export const BigFishWorksListInput = __t.object("BigFishWorksListInput", { - ownerUserId: __t.string(), -}); -export type BigFishWorksListInput = __Infer; - -export const BigFishWorksProcedureResult = __t.object("BigFishWorksProcedureResult", { - ok: __t.bool(), - itemsJson: __t.option(__t.string()), - errorMessage: __t.option(__t.string()), -}); -export type BigFishWorksProcedureResult = __Infer; - -// The tagged union or sum type for the algebraic type `ChapterPaceBand`. -export const ChapterPaceBand = __t.enum("ChapterPaceBand", { - OpeningFast: __t.unit(), - Steady: __t.unit(), - Pressure: __t.unit(), - FinaleDense: __t.unit(), -}); -export type ChapterPaceBand = __Infer; - -export const ChapterProgression = __t.object("ChapterProgression", { - chapterProgressionId: __t.string(), - userId: __t.string(), - chapterId: __t.string(), - chapterIndex: __t.u32(), - totalChapters: __t.u32(), - entryPseudoLevelMillis: __t.u32(), - exitPseudoLevelMillis: __t.u32(), - entryLevel: __t.u32(), - exitLevel: __t.u32(), - plannedTotalXp: __t.u32(), - plannedQuestXp: __t.u32(), - plannedHostileXp: __t.u32(), - actualQuestXp: __t.u32(), - actualHostileXp: __t.u32(), - expectedHostileDefeatCount: __t.u32(), - actualHostileDefeatCount: __t.u32(), - levelAtEntry: __t.u32(), - levelAtExit: __t.option(__t.u32()), - get paceBand() { - return ChapterPaceBand; - }, - createdAt: __t.timestamp(), - updatedAt: __t.timestamp(), -}); -export type ChapterProgression = __Infer; - -export const ChapterProgressionGetInput = __t.object("ChapterProgressionGetInput", { - userId: __t.string(), - chapterId: __t.string(), -}); -export type ChapterProgressionGetInput = __Infer; - -export const ChapterProgressionInput = __t.object("ChapterProgressionInput", { - userId: __t.string(), - chapterId: __t.string(), - chapterIndex: __t.u32(), - totalChapters: __t.u32(), - entryPseudoLevelMillis: __t.u32(), - exitPseudoLevelMillis: __t.u32(), - entryLevel: __t.u32(), - exitLevel: __t.u32(), - plannedTotalXp: __t.u32(), - plannedQuestXp: __t.u32(), - plannedHostileXp: __t.u32(), - expectedHostileDefeatCount: __t.u32(), - levelAtEntry: __t.u32(), - get paceBand() { - return ChapterPaceBand; - }, - updatedAtMicros: __t.i64(), -}); -export type ChapterProgressionInput = __Infer; - -export const ChapterProgressionLedgerInput = __t.object("ChapterProgressionLedgerInput", { - userId: __t.string(), - chapterId: __t.string(), - grantedQuestXp: __t.u32(), - grantedHostileXp: __t.u32(), - hostileDefeatIncrement: __t.u32(), - levelAtExit: __t.option(__t.u32()), - updatedAtMicros: __t.i64(), -}); -export type ChapterProgressionLedgerInput = __Infer; - -export const ChapterProgressionProcedureResult = __t.object("ChapterProgressionProcedureResult", { - ok: __t.bool(), - get record() { - return __t.option(ChapterProgressionSnapshot); - }, - errorMessage: __t.option(__t.string()), -}); -export type ChapterProgressionProcedureResult = __Infer; - -export const ChapterProgressionSnapshot = __t.object("ChapterProgressionSnapshot", { - userId: __t.string(), - chapterId: __t.string(), - chapterIndex: __t.u32(), - totalChapters: __t.u32(), - entryPseudoLevelMillis: __t.u32(), - exitPseudoLevelMillis: __t.u32(), - entryLevel: __t.u32(), - exitLevel: __t.u32(), - plannedTotalXp: __t.u32(), - plannedQuestXp: __t.u32(), - plannedHostileXp: __t.u32(), - actualQuestXp: __t.u32(), - actualHostileXp: __t.u32(), - expectedHostileDefeatCount: __t.u32(), - actualHostileDefeatCount: __t.u32(), - levelAtEntry: __t.u32(), - levelAtExit: __t.option(__t.u32()), - get paceBand() { - return ChapterPaceBand; - }, - createdAtMicros: __t.i64(), - updatedAtMicros: __t.i64(), -}); -export type ChapterProgressionSnapshot = __Infer; - -// The tagged union or sum type for the algebraic type `CombatOutcome`. -export const CombatOutcome = __t.enum("CombatOutcome", { - Ongoing: __t.unit(), - Victory: __t.unit(), - SparComplete: __t.unit(), - Escaped: __t.unit(), -}); -export type CombatOutcome = __Infer; - -export const ConsumeInventoryItemInput = __t.object("ConsumeInventoryItemInput", { - slotId: __t.string(), - quantity: __t.u32(), -}); -export type ConsumeInventoryItemInput = __Infer; - -export const CustomWorldAgentActionExecuteInput = __t.object("CustomWorldAgentActionExecuteInput", { - sessionId: __t.string(), - ownerUserId: __t.string(), - operationId: __t.string(), - action: __t.string(), - payloadJson: __t.option(__t.string()), - submittedAtMicros: __t.i64(), -}); -export type CustomWorldAgentActionExecuteInput = __Infer; - -export const CustomWorldAgentActionExecuteResult = __t.object("CustomWorldAgentActionExecuteResult", { - ok: __t.bool(), - get operation() { - return __t.option(CustomWorldAgentOperationSnapshot); - }, - errorMessage: __t.option(__t.string()), -}); -export type CustomWorldAgentActionExecuteResult = __Infer; - -export const CustomWorldAgentCardDetailGetInput = __t.object("CustomWorldAgentCardDetailGetInput", { - sessionId: __t.string(), - ownerUserId: __t.string(), - cardId: __t.string(), -}); -export type CustomWorldAgentCardDetailGetInput = __Infer; - -export const CustomWorldAgentMessage = __t.object("CustomWorldAgentMessage", { - messageId: __t.string(), - sessionId: __t.string(), - get role() { - return RpgAgentMessageRole; - }, - get kind() { - return RpgAgentMessageKind; - }, - text: __t.string(), - relatedOperationId: __t.option(__t.string()), - createdAt: __t.timestamp(), -}); -export type CustomWorldAgentMessage = __Infer; - -export const CustomWorldAgentMessageFinalizeInput = __t.object("CustomWorldAgentMessageFinalizeInput", { - sessionId: __t.string(), - ownerUserId: __t.string(), - operationId: __t.string(), - assistantMessageId: __t.option(__t.string()), - assistantReplyText: __t.option(__t.string()), - phaseLabel: __t.string(), - phaseDetail: __t.string(), - get operationStatus() { - return RpgAgentOperationStatus; - }, - operationProgress: __t.u32(), - get stage() { - return RpgAgentStage; - }, - progressPercent: __t.u32(), - focusCardId: __t.option(__t.string()), - anchorContentJson: __t.string(), - creatorIntentJson: __t.option(__t.string()), - creatorIntentReadinessJson: __t.string(), - anchorPackJson: __t.option(__t.string()), - draftProfileJson: __t.option(__t.string()), - pendingClarificationsJson: __t.string(), - suggestedActionsJson: __t.string(), - recommendedRepliesJson: __t.string(), - qualityFindingsJson: __t.string(), - assetCoverageJson: __t.string(), - errorMessage: __t.option(__t.string()), - updatedAtMicros: __t.i64(), -}); -export type CustomWorldAgentMessageFinalizeInput = __Infer; - -export const CustomWorldAgentMessageSnapshot = __t.object("CustomWorldAgentMessageSnapshot", { - messageId: __t.string(), - sessionId: __t.string(), - get role() { - return RpgAgentMessageRole; - }, - get kind() { - return RpgAgentMessageKind; - }, - text: __t.string(), - relatedOperationId: __t.option(__t.string()), - createdAtMicros: __t.i64(), -}); -export type CustomWorldAgentMessageSnapshot = __Infer; - -export const CustomWorldAgentMessageSubmitInput = __t.object("CustomWorldAgentMessageSubmitInput", { - sessionId: __t.string(), - ownerUserId: __t.string(), - userMessageId: __t.string(), - userMessageText: __t.string(), - operationId: __t.string(), - submittedAtMicros: __t.i64(), -}); -export type CustomWorldAgentMessageSubmitInput = __Infer; - -export const CustomWorldAgentOperation = __t.object("CustomWorldAgentOperation", { - operationId: __t.string(), - sessionId: __t.string(), - get operationType() { - return RpgAgentOperationType; - }, - get status() { - return RpgAgentOperationStatus; - }, - phaseLabel: __t.string(), - phaseDetail: __t.string(), - progress: __t.u32(), - errorMessage: __t.option(__t.string()), - createdAt: __t.timestamp(), - updatedAt: __t.timestamp(), -}); -export type CustomWorldAgentOperation = __Infer; - -export const CustomWorldAgentOperationGetInput = __t.object("CustomWorldAgentOperationGetInput", { - sessionId: __t.string(), - ownerUserId: __t.string(), - operationId: __t.string(), -}); -export type CustomWorldAgentOperationGetInput = __Infer; - -export const CustomWorldAgentOperationProcedureResult = __t.object("CustomWorldAgentOperationProcedureResult", { - ok: __t.bool(), - get operation() { - return __t.option(CustomWorldAgentOperationSnapshot); - }, - errorMessage: __t.option(__t.string()), -}); -export type CustomWorldAgentOperationProcedureResult = __Infer; - -export const CustomWorldAgentOperationProgressInput = __t.object("CustomWorldAgentOperationProgressInput", { - sessionId: __t.string(), - ownerUserId: __t.string(), - operationId: __t.string(), - get operationType() { - return RpgAgentOperationType; - }, - get operationStatus() { - return RpgAgentOperationStatus; - }, - phaseLabel: __t.string(), - phaseDetail: __t.string(), - operationProgress: __t.u32(), - errorMessage: __t.option(__t.string()), - updatedAtMicros: __t.i64(), -}); -export type CustomWorldAgentOperationProgressInput = __Infer; - -export const CustomWorldAgentOperationSnapshot = __t.object("CustomWorldAgentOperationSnapshot", { - operationId: __t.string(), - sessionId: __t.string(), - get operationType() { - return RpgAgentOperationType; - }, - get status() { - return RpgAgentOperationStatus; - }, - phaseLabel: __t.string(), - phaseDetail: __t.string(), - progress: __t.u32(), - errorMessage: __t.option(__t.string()), - createdAtMicros: __t.i64(), - updatedAtMicros: __t.i64(), -}); -export type CustomWorldAgentOperationSnapshot = __Infer; - -export const CustomWorldAgentSession = __t.object("CustomWorldAgentSession", { - sessionId: __t.string(), - ownerUserId: __t.string(), - seedText: __t.string(), - currentTurn: __t.u32(), - progressPercent: __t.u32(), - get stage() { - return RpgAgentStage; - }, - focusCardId: __t.option(__t.string()), - anchorContentJson: __t.string(), - creatorIntentJson: __t.option(__t.string()), - creatorIntentReadinessJson: __t.string(), - anchorPackJson: __t.option(__t.string()), - lockStateJson: __t.option(__t.string()), - draftProfileJson: __t.option(__t.string()), - lastAssistantReply: __t.option(__t.string()), - publishGateJson: __t.option(__t.string()), - resultPreviewJson: __t.option(__t.string()), - pendingClarificationsJson: __t.string(), - qualityFindingsJson: __t.string(), - suggestedActionsJson: __t.string(), - recommendedRepliesJson: __t.string(), - assetCoverageJson: __t.string(), - checkpointsJson: __t.string(), - createdAt: __t.timestamp(), - updatedAt: __t.timestamp(), -}); -export type CustomWorldAgentSession = __Infer; - -export const CustomWorldAgentSessionCreateInput = __t.object("CustomWorldAgentSessionCreateInput", { - sessionId: __t.string(), - ownerUserId: __t.string(), - seedText: __t.string(), - welcomeMessageId: __t.string(), - welcomeMessageText: __t.string(), - anchorContentJson: __t.string(), - creatorIntentJson: __t.option(__t.string()), - creatorIntentReadinessJson: __t.string(), - anchorPackJson: __t.option(__t.string()), - lockStateJson: __t.option(__t.string()), - draftProfileJson: __t.option(__t.string()), - pendingClarificationsJson: __t.string(), - suggestedActionsJson: __t.string(), - recommendedRepliesJson: __t.string(), - qualityFindingsJson: __t.string(), - assetCoverageJson: __t.string(), - checkpointsJson: __t.string(), - createdAtMicros: __t.i64(), -}); -export type CustomWorldAgentSessionCreateInput = __Infer; - -export const CustomWorldAgentSessionGetInput = __t.object("CustomWorldAgentSessionGetInput", { - sessionId: __t.string(), - ownerUserId: __t.string(), -}); -export type CustomWorldAgentSessionGetInput = __Infer; - -export const CustomWorldAgentSessionProcedureResult = __t.object("CustomWorldAgentSessionProcedureResult", { - ok: __t.bool(), - get session() { - return __t.option(CustomWorldAgentSessionSnapshot); - }, - errorMessage: __t.option(__t.string()), -}); -export type CustomWorldAgentSessionProcedureResult = __Infer; - -export const CustomWorldAgentSessionSnapshot = __t.object("CustomWorldAgentSessionSnapshot", { - sessionId: __t.string(), - ownerUserId: __t.string(), - seedText: __t.string(), - currentTurn: __t.u32(), - progressPercent: __t.u32(), - get stage() { - return RpgAgentStage; - }, - focusCardId: __t.option(__t.string()), - anchorContentJson: __t.string(), - creatorIntentJson: __t.option(__t.string()), - creatorIntentReadinessJson: __t.string(), - anchorPackJson: __t.option(__t.string()), - lockStateJson: __t.option(__t.string()), - draftProfileJson: __t.option(__t.string()), - lastAssistantReply: __t.option(__t.string()), - publishGateJson: __t.option(__t.string()), - resultPreviewJson: __t.option(__t.string()), - pendingClarificationsJson: __t.string(), - qualityFindingsJson: __t.string(), - suggestedActionsJson: __t.string(), - recommendedRepliesJson: __t.string(), - assetCoverageJson: __t.string(), - checkpointsJson: __t.string(), - supportedActionsJson: __t.string(), - get messages() { - return __t.array(CustomWorldAgentMessageSnapshot); - }, - get draftCards() { - return __t.array(CustomWorldDraftCardSnapshot); - }, - get operations() { - return __t.array(CustomWorldAgentOperationSnapshot); - }, - createdAtMicros: __t.i64(), - updatedAtMicros: __t.i64(), -}); -export type CustomWorldAgentSessionSnapshot = __Infer; - -export const CustomWorldDraftCard = __t.object("CustomWorldDraftCard", { - cardId: __t.string(), - sessionId: __t.string(), - get kind() { - return RpgAgentDraftCardKind; - }, - get status() { - return RpgAgentDraftCardStatus; - }, - title: __t.string(), - subtitle: __t.string(), - summary: __t.string(), - linkedIdsJson: __t.string(), - warningCount: __t.u32(), - get assetStatus() { - return __t.option(CustomWorldRoleAssetStatus); - }, - assetStatusLabel: __t.option(__t.string()), - detailPayloadJson: __t.option(__t.string()), - createdAt: __t.timestamp(), - updatedAt: __t.timestamp(), -}); -export type CustomWorldDraftCard = __Infer; - -export const CustomWorldDraftCardDetailResult = __t.object("CustomWorldDraftCardDetailResult", { - ok: __t.bool(), - get card() { - return __t.option(CustomWorldDraftCardDetailSnapshot); - }, - errorMessage: __t.option(__t.string()), -}); -export type CustomWorldDraftCardDetailResult = __Infer; - -export const CustomWorldDraftCardDetailSectionSnapshot = __t.object("CustomWorldDraftCardDetailSectionSnapshot", { - sectionId: __t.string(), - label: __t.string(), - value: __t.string(), -}); -export type CustomWorldDraftCardDetailSectionSnapshot = __Infer; - -export const CustomWorldDraftCardDetailSnapshot = __t.object("CustomWorldDraftCardDetailSnapshot", { - cardId: __t.string(), - get kind() { - return RpgAgentDraftCardKind; - }, - title: __t.string(), - get sections() { - return __t.array(CustomWorldDraftCardDetailSectionSnapshot); - }, - linkedIdsJson: __t.string(), - locked: __t.bool(), - editable: __t.bool(), - editableSectionIdsJson: __t.string(), - warningMessagesJson: __t.string(), - get assetStatus() { - return __t.option(CustomWorldRoleAssetStatus); - }, - assetStatusLabel: __t.option(__t.string()), -}); -export type CustomWorldDraftCardDetailSnapshot = __Infer; - -export const CustomWorldDraftCardSnapshot = __t.object("CustomWorldDraftCardSnapshot", { - cardId: __t.string(), - sessionId: __t.string(), - get kind() { - return RpgAgentDraftCardKind; - }, - get status() { - return RpgAgentDraftCardStatus; - }, - title: __t.string(), - subtitle: __t.string(), - summary: __t.string(), - linkedIdsJson: __t.string(), - warningCount: __t.u32(), - get assetStatus() { - return __t.option(CustomWorldRoleAssetStatus); - }, - assetStatusLabel: __t.option(__t.string()), - detailPayloadJson: __t.option(__t.string()), - createdAtMicros: __t.i64(), - updatedAtMicros: __t.i64(), -}); -export type CustomWorldDraftCardSnapshot = __Infer; - -export const CustomWorldGalleryDetailByCodeInput = __t.object("CustomWorldGalleryDetailByCodeInput", { - publicWorkCode: __t.string(), -}); -export type CustomWorldGalleryDetailByCodeInput = __Infer; - -export const CustomWorldGalleryDetailInput = __t.object("CustomWorldGalleryDetailInput", { - ownerUserId: __t.string(), - profileId: __t.string(), -}); -export type CustomWorldGalleryDetailInput = __Infer; - -export const CustomWorldGalleryEntry = __t.object("CustomWorldGalleryEntry", { - profileId: __t.string(), - ownerUserId: __t.string(), - publicWorkCode: __t.string(), - authorPublicUserCode: __t.string(), - authorDisplayName: __t.string(), - worldName: __t.string(), - subtitle: __t.string(), - summaryText: __t.string(), - coverImageSrc: __t.option(__t.string()), - get themeMode() { - return CustomWorldThemeMode; - }, - playableNpcCount: __t.u32(), - landmarkCount: __t.u32(), - publishedAt: __t.timestamp(), - updatedAt: __t.timestamp(), -}); -export type CustomWorldGalleryEntry = __Infer; - -export const CustomWorldGalleryEntrySnapshot = __t.object("CustomWorldGalleryEntrySnapshot", { - profileId: __t.string(), - ownerUserId: __t.string(), - publicWorkCode: __t.string(), - authorPublicUserCode: __t.string(), - authorDisplayName: __t.string(), - worldName: __t.string(), - subtitle: __t.string(), - summaryText: __t.string(), - coverImageSrc: __t.option(__t.string()), - get themeMode() { - return CustomWorldThemeMode; - }, - playableNpcCount: __t.u32(), - landmarkCount: __t.u32(), - publishedAtMicros: __t.i64(), - updatedAtMicros: __t.i64(), -}); -export type CustomWorldGalleryEntrySnapshot = __Infer; - -export const CustomWorldGalleryListResult = __t.object("CustomWorldGalleryListResult", { - ok: __t.bool(), - get entries() { - return __t.array(CustomWorldGalleryEntrySnapshot); - }, - errorMessage: __t.option(__t.string()), -}); -export type CustomWorldGalleryListResult = __Infer; - -// The tagged union or sum type for the algebraic type `CustomWorldGenerationMode`. -export const CustomWorldGenerationMode = __t.enum("CustomWorldGenerationMode", { - Fast: __t.unit(), - Full: __t.unit(), -}); -export type CustomWorldGenerationMode = __Infer; - -export const CustomWorldLibraryDetailInput = __t.object("CustomWorldLibraryDetailInput", { - ownerUserId: __t.string(), - profileId: __t.string(), -}); -export type CustomWorldLibraryDetailInput = __Infer; - -export const CustomWorldLibraryMutationResult = __t.object("CustomWorldLibraryMutationResult", { - ok: __t.bool(), - get entry() { - return __t.option(CustomWorldProfileSnapshot); - }, - get galleryEntry() { - return __t.option(CustomWorldGalleryEntrySnapshot); - }, - errorMessage: __t.option(__t.string()), -}); -export type CustomWorldLibraryMutationResult = __Infer; - -export const CustomWorldProfile = __t.object("CustomWorldProfile", { - profileId: __t.string(), - ownerUserId: __t.string(), - publicWorkCode: __t.option(__t.string()), - authorPublicUserCode: __t.option(__t.string()), - sourceAgentSessionId: __t.option(__t.string()), - get publicationStatus() { - return CustomWorldPublicationStatus; - }, - worldName: __t.string(), - subtitle: __t.string(), - summaryText: __t.string(), - get themeMode() { - return CustomWorldThemeMode; - }, - coverImageSrc: __t.option(__t.string()), - profilePayloadJson: __t.string(), - playableNpcCount: __t.u32(), - landmarkCount: __t.u32(), - authorDisplayName: __t.string(), - publishedAt: __t.option(__t.timestamp()), - deletedAt: __t.option(__t.timestamp()), - createdAt: __t.timestamp(), - updatedAt: __t.timestamp(), -}); -export type CustomWorldProfile = __Infer; - -export const CustomWorldProfileDeleteInput = __t.object("CustomWorldProfileDeleteInput", { - profileId: __t.string(), - ownerUserId: __t.string(), - deletedAtMicros: __t.i64(), -}); -export type CustomWorldProfileDeleteInput = __Infer; - -export const CustomWorldProfileListInput = __t.object("CustomWorldProfileListInput", { - ownerUserId: __t.string(), -}); -export type CustomWorldProfileListInput = __Infer; - -export const CustomWorldProfileListResult = __t.object("CustomWorldProfileListResult", { - ok: __t.bool(), - get entries() { - return __t.array(CustomWorldProfileSnapshot); - }, - errorMessage: __t.option(__t.string()), -}); -export type CustomWorldProfileListResult = __Infer; - -export const CustomWorldProfilePublishInput = __t.object("CustomWorldProfilePublishInput", { - profileId: __t.string(), - ownerUserId: __t.string(), - publicWorkCode: __t.option(__t.string()), - authorPublicUserCode: __t.string(), - authorDisplayName: __t.string(), - publishedAtMicros: __t.i64(), -}); -export type CustomWorldProfilePublishInput = __Infer; - -export const CustomWorldProfileSnapshot = __t.object("CustomWorldProfileSnapshot", { - profileId: __t.string(), - ownerUserId: __t.string(), - publicWorkCode: __t.option(__t.string()), - authorPublicUserCode: __t.option(__t.string()), - sourceAgentSessionId: __t.option(__t.string()), - get publicationStatus() { - return CustomWorldPublicationStatus; - }, - worldName: __t.string(), - subtitle: __t.string(), - summaryText: __t.string(), - get themeMode() { - return CustomWorldThemeMode; - }, - coverImageSrc: __t.option(__t.string()), - profilePayloadJson: __t.string(), - playableNpcCount: __t.u32(), - landmarkCount: __t.u32(), - authorDisplayName: __t.string(), - publishedAtMicros: __t.option(__t.i64()), - deletedAtMicros: __t.option(__t.i64()), - createdAtMicros: __t.i64(), - updatedAtMicros: __t.i64(), -}); -export type CustomWorldProfileSnapshot = __Infer; - -export const CustomWorldProfileUnpublishInput = __t.object("CustomWorldProfileUnpublishInput", { - profileId: __t.string(), - ownerUserId: __t.string(), - authorDisplayName: __t.string(), - updatedAtMicros: __t.i64(), -}); -export type CustomWorldProfileUnpublishInput = __Infer; - -export const CustomWorldProfileUpsertInput = __t.object("CustomWorldProfileUpsertInput", { - profileId: __t.string(), - ownerUserId: __t.string(), - publicWorkCode: __t.option(__t.string()), - authorPublicUserCode: __t.option(__t.string()), - sourceAgentSessionId: __t.option(__t.string()), - worldName: __t.string(), - subtitle: __t.string(), - summaryText: __t.string(), - get themeMode() { - return CustomWorldThemeMode; - }, - coverImageSrc: __t.option(__t.string()), - profilePayloadJson: __t.string(), - playableNpcCount: __t.u32(), - landmarkCount: __t.u32(), - authorDisplayName: __t.string(), - updatedAtMicros: __t.i64(), -}); -export type CustomWorldProfileUpsertInput = __Infer; - -// The tagged union or sum type for the algebraic type `CustomWorldPublicationStatus`. -export const CustomWorldPublicationStatus = __t.enum("CustomWorldPublicationStatus", { - Draft: __t.unit(), - Published: __t.unit(), -}); -export type CustomWorldPublicationStatus = __Infer; - -export const CustomWorldPublishWorldInput = __t.object("CustomWorldPublishWorldInput", { - sessionId: __t.string(), - profileId: __t.string(), - ownerUserId: __t.string(), - publicWorkCode: __t.option(__t.string()), - authorPublicUserCode: __t.string(), - draftProfileJson: __t.string(), - legacyResultProfileJson: __t.option(__t.string()), - settingText: __t.string(), - authorDisplayName: __t.string(), - publishedAtMicros: __t.i64(), -}); -export type CustomWorldPublishWorldInput = __Infer; - -export const CustomWorldPublishWorldResult = __t.object("CustomWorldPublishWorldResult", { - ok: __t.bool(), - get compiledRecord() { - return __t.option(CustomWorldPublishedProfileCompileSnapshot); - }, - get entry() { - return __t.option(CustomWorldProfileSnapshot); - }, - get galleryEntry() { - return __t.option(CustomWorldGalleryEntrySnapshot); - }, - get sessionStage() { - return __t.option(RpgAgentStage); - }, - errorMessage: __t.option(__t.string()), -}); -export type CustomWorldPublishWorldResult = __Infer; - -export const CustomWorldPublishedProfileCompileInput = __t.object("CustomWorldPublishedProfileCompileInput", { - sessionId: __t.string(), - profileId: __t.string(), - ownerUserId: __t.string(), - draftProfileJson: __t.string(), - legacyResultProfileJson: __t.option(__t.string()), - settingText: __t.string(), - authorDisplayName: __t.string(), - updatedAtMicros: __t.i64(), -}); -export type CustomWorldPublishedProfileCompileInput = __Infer; - -export const CustomWorldPublishedProfileCompileResult = __t.object("CustomWorldPublishedProfileCompileResult", { - ok: __t.bool(), - get record() { - return __t.option(CustomWorldPublishedProfileCompileSnapshot); - }, - errorMessage: __t.option(__t.string()), -}); -export type CustomWorldPublishedProfileCompileResult = __Infer; - -export const CustomWorldPublishedProfileCompileSnapshot = __t.object("CustomWorldPublishedProfileCompileSnapshot", { - profileId: __t.string(), - ownerUserId: __t.string(), - worldName: __t.string(), - subtitle: __t.string(), - summaryText: __t.string(), - get themeMode() { - return CustomWorldThemeMode; - }, - coverImageSrc: __t.option(__t.string()), - playableNpcCount: __t.u32(), - landmarkCount: __t.u32(), - authorDisplayName: __t.string(), - compiledProfilePayloadJson: __t.string(), - updatedAtMicros: __t.i64(), -}); -export type CustomWorldPublishedProfileCompileSnapshot = __Infer; - -// The tagged union or sum type for the algebraic type `CustomWorldRoleAssetStatus`. -export const CustomWorldRoleAssetStatus = __t.enum("CustomWorldRoleAssetStatus", { - Missing: __t.unit(), - VisualReady: __t.unit(), - AnimationsReady: __t.unit(), - Complete: __t.unit(), -}); -export type CustomWorldRoleAssetStatus = __Infer; - -export const CustomWorldSession = __t.object("CustomWorldSession", { - sessionId: __t.string(), - ownerUserId: __t.string(), - get generationMode() { - return CustomWorldGenerationMode; - }, - get status() { - return CustomWorldSessionStatus; - }, - settingText: __t.string(), - creatorIntentJson: __t.option(__t.string()), - questionSnapshotJson: __t.string(), - resultPayloadJson: __t.option(__t.string()), - lastErrorMessage: __t.option(__t.string()), - createdAt: __t.timestamp(), - updatedAt: __t.timestamp(), -}); -export type CustomWorldSession = __Infer; - -// The tagged union or sum type for the algebraic type `CustomWorldSessionStatus`. -export const CustomWorldSessionStatus = __t.enum("CustomWorldSessionStatus", { - Clarifying: __t.unit(), - ReadyToGenerate: __t.unit(), - Generating: __t.unit(), - Completed: __t.unit(), - GenerationError: __t.unit(), -}); -export type CustomWorldSessionStatus = __Infer; - -// The tagged union or sum type for the algebraic type `CustomWorldThemeMode`. -export const CustomWorldThemeMode = __t.enum("CustomWorldThemeMode", { - Martial: __t.unit(), - Arcane: __t.unit(), - Machina: __t.unit(), - Tide: __t.unit(), - Rift: __t.unit(), - Mythic: __t.unit(), -}); -export type CustomWorldThemeMode = __Infer; - -export const CustomWorldWorkSummarySnapshot = __t.object("CustomWorldWorkSummarySnapshot", { - workId: __t.string(), - sourceType: __t.string(), - status: __t.string(), - title: __t.string(), - subtitle: __t.string(), - summary: __t.string(), - coverImageSrc: __t.option(__t.string()), - coverRenderMode: __t.option(__t.string()), - coverCharacterImageSrcsJson: __t.string(), - updatedAtMicros: __t.i64(), - publishedAtMicros: __t.option(__t.i64()), - get stage() { - return __t.option(RpgAgentStage); - }, - stageLabel: __t.option(__t.string()), - playableNpcCount: __t.u32(), - landmarkCount: __t.u32(), - roleVisualReadyCount: __t.option(__t.u32()), - roleAnimationReadyCount: __t.option(__t.u32()), - roleAssetSummaryLabel: __t.option(__t.string()), - sessionId: __t.option(__t.string()), - profileId: __t.option(__t.string()), - canResume: __t.bool(), - canEnterWorld: __t.bool(), - blockerCount: __t.u32(), - publishReady: __t.bool(), -}); -export type CustomWorldWorkSummarySnapshot = __Infer; - -export const CustomWorldWorksListInput = __t.object("CustomWorldWorksListInput", { - ownerUserId: __t.string(), -}); -export type CustomWorldWorksListInput = __Infer; - -export const CustomWorldWorksListResult = __t.object("CustomWorldWorksListResult", { - ok: __t.bool(), - get items() { - return __t.array(CustomWorldWorkSummarySnapshot); - }, - errorMessage: __t.option(__t.string()), -}); -export type CustomWorldWorksListResult = __Infer; - -export const EquipInventoryItemInput = __t.object("EquipInventoryItemInput", { - slotId: __t.string(), -}); -export type EquipInventoryItemInput = __Infer; - -export const GrantInventoryItemInput = __t.object("GrantInventoryItemInput", { - slotId: __t.string(), - get item() { - return InventoryItemSnapshot; - }, -}); -export type GrantInventoryItemInput = __Infer; - -// The tagged union or sum type for the algebraic type `InventoryContainerKind`. -export const InventoryContainerKind = __t.enum("InventoryContainerKind", { - Backpack: __t.unit(), - Equipment: __t.unit(), -}); -export type InventoryContainerKind = __Infer; - -// The tagged union or sum type for the algebraic type `InventoryEquipmentSlot`. -export const InventoryEquipmentSlot = __t.enum("InventoryEquipmentSlot", { - Weapon: __t.unit(), - Armor: __t.unit(), - Relic: __t.unit(), -}); -export type InventoryEquipmentSlot = __Infer; - -// The tagged union or sum type for the algebraic type `InventoryItemRarity`. -export const InventoryItemRarity = __t.enum("InventoryItemRarity", { - Common: __t.unit(), - Uncommon: __t.unit(), - Rare: __t.unit(), - Epic: __t.unit(), - Legendary: __t.unit(), -}); -export type InventoryItemRarity = __Infer; - -export const InventoryItemSnapshot = __t.object("InventoryItemSnapshot", { - itemId: __t.string(), - category: __t.string(), - name: __t.string(), - description: __t.option(__t.string()), - quantity: __t.u32(), - get rarity() { - return InventoryItemRarity; - }, - tags: __t.array(__t.string()), - stackable: __t.bool(), - stackKey: __t.string(), - get equipmentSlotId() { - return __t.option(InventoryEquipmentSlot); - }, - get sourceKind() { - return InventoryItemSourceKind; - }, - sourceReferenceId: __t.option(__t.string()), -}); -export type InventoryItemSnapshot = __Infer; - -// The tagged union or sum type for the algebraic type `InventoryItemSourceKind`. -export const InventoryItemSourceKind = __t.enum("InventoryItemSourceKind", { - StoryReward: __t.unit(), - QuestReward: __t.unit(), - TreasureReward: __t.unit(), - NpcGift: __t.unit(), - NpcTrade: __t.unit(), - CombatDrop: __t.unit(), - ForgeCraft: __t.unit(), - ForgeReforge: __t.unit(), - ManualPatch: __t.unit(), -}); -export type InventoryItemSourceKind = __Infer; - -// The tagged union or sum type for the algebraic type `InventoryMutation`. -export const InventoryMutation = __t.enum("InventoryMutation", { - get GrantItem() { - return GrantInventoryItemInput; - }, - get ConsumeItem() { - return ConsumeInventoryItemInput; - }, - get EquipItem() { - return EquipInventoryItemInput; - }, - get UnequipItem() { - return UnequipInventoryItemInput; - }, -}); -export type InventoryMutation = __Infer; - -export const InventoryMutationInput = __t.object("InventoryMutationInput", { - mutationId: __t.string(), - runtimeSessionId: __t.string(), - storySessionId: __t.option(__t.string()), - actorUserId: __t.string(), - get mutation() { - return InventoryMutation; - }, - updatedAtMicros: __t.i64(), -}); -export type InventoryMutationInput = __Infer; - -export const InventorySlot = __t.object("InventorySlot", { - slotId: __t.string(), - runtimeSessionId: __t.string(), - storySessionId: __t.option(__t.string()), - actorUserId: __t.string(), - get containerKind() { - return InventoryContainerKind; - }, - slotKey: __t.string(), - itemId: __t.string(), - category: __t.string(), - name: __t.string(), - description: __t.option(__t.string()), - quantity: __t.u32(), - get rarity() { - return InventoryItemRarity; - }, - tags: __t.array(__t.string()), - stackable: __t.bool(), - stackKey: __t.string(), - get equipmentSlotId() { - return __t.option(InventoryEquipmentSlot); - }, - get sourceKind() { - return InventoryItemSourceKind; - }, - sourceReferenceId: __t.option(__t.string()), - createdAt: __t.timestamp(), - updatedAt: __t.timestamp(), -}); -export type InventorySlot = __Infer; - -export const InventorySlotSnapshot = __t.object("InventorySlotSnapshot", { - slotId: __t.string(), - runtimeSessionId: __t.string(), - storySessionId: __t.option(__t.string()), - actorUserId: __t.string(), - get containerKind() { - return InventoryContainerKind; - }, - slotKey: __t.string(), - itemId: __t.string(), - category: __t.string(), - name: __t.string(), - description: __t.option(__t.string()), - quantity: __t.u32(), - get rarity() { - return InventoryItemRarity; - }, - tags: __t.array(__t.string()), - stackable: __t.bool(), - stackKey: __t.string(), - get equipmentSlotId() { - return __t.option(InventoryEquipmentSlot); - }, - get sourceKind() { - return InventoryItemSourceKind; - }, - sourceReferenceId: __t.option(__t.string()), - createdAtMicros: __t.i64(), - updatedAtMicros: __t.i64(), -}); -export type InventorySlotSnapshot = __Infer; - -export const NpcBattleInteractionProcedureResult = __t.object("NpcBattleInteractionProcedureResult", { - ok: __t.bool(), - get result() { - return __t.option(NpcBattleInteractionResult); - }, - errorMessage: __t.option(__t.string()), -}); -export type NpcBattleInteractionProcedureResult = __Infer; - -export const NpcBattleInteractionResult = __t.object("NpcBattleInteractionResult", { - get interaction() { - return NpcInteractionResult; - }, - get battleState() { - return BattleStateSnapshot; - }, -}); -export type NpcBattleInteractionResult = __Infer; - -// The tagged union or sum type for the algebraic type `NpcInteractionBattleMode`. -export const NpcInteractionBattleMode = __t.enum("NpcInteractionBattleMode", { - Fight: __t.unit(), - Spar: __t.unit(), -}); -export type NpcInteractionBattleMode = __Infer; - -export const NpcInteractionProcedureResult = __t.object("NpcInteractionProcedureResult", { - ok: __t.bool(), - get result() { - return __t.option(NpcInteractionResult); - }, - errorMessage: __t.option(__t.string()), -}); -export type NpcInteractionProcedureResult = __Infer; - -export const NpcInteractionResult = __t.object("NpcInteractionResult", { - get npcState() { - return NpcStateSnapshot; - }, - get interactionStatus() { - return NpcInteractionStatus; - }, - actionText: __t.string(), - resultText: __t.string(), - storyText: __t.option(__t.string()), - get battleMode() { - return __t.option(NpcInteractionBattleMode); - }, - encounterClosed: __t.bool(), - affinityChanged: __t.bool(), - previousAffinity: __t.i32(), - nextAffinity: __t.i32(), -}); -export type NpcInteractionResult = __Infer; - -// The tagged union or sum type for the algebraic type `NpcInteractionStatus`. -export const NpcInteractionStatus = __t.enum("NpcInteractionStatus", { - Previewed: __t.unit(), - Dialogue: __t.unit(), - Resolved: __t.unit(), - Recruited: __t.unit(), - BattlePending: __t.unit(), - Left: __t.unit(), -}); -export type NpcInteractionStatus = __Infer; - -// The tagged union or sum type for the algebraic type `NpcRelationStance`. -export const NpcRelationStance = __t.enum("NpcRelationStance", { - Hostile: __t.unit(), - Guarded: __t.unit(), - Neutral: __t.unit(), - Cooperative: __t.unit(), - Bonded: __t.unit(), -}); -export type NpcRelationStance = __Infer; - -export const NpcRelationState = __t.object("NpcRelationState", { - affinity: __t.i32(), - get stance() { - return NpcRelationStance; - }, -}); -export type NpcRelationState = __Infer; - -// The tagged union or sum type for the algebraic type `NpcSocialActionKind`. -export const NpcSocialActionKind = __t.enum("NpcSocialActionKind", { - Chat: __t.unit(), - Help: __t.unit(), - Gift: __t.unit(), - Recruit: __t.unit(), - QuestAccept: __t.unit(), -}); -export type NpcSocialActionKind = __Infer; - -export const NpcStanceProfile = __t.object("NpcStanceProfile", { - trust: __t.u8(), - warmth: __t.u8(), - ideologicalFit: __t.u8(), - fearOrGuard: __t.u8(), - loyalty: __t.u8(), - currentConflictTag: __t.option(__t.string()), - recentApprovals: __t.array(__t.string()), - recentDisapprovals: __t.array(__t.string()), -}); -export type NpcStanceProfile = __Infer; - -export const NpcState = __t.object("NpcState", { - npcStateId: __t.string(), - runtimeSessionId: __t.string(), - npcId: __t.string(), - npcName: __t.string(), - affinity: __t.i32(), - get relationState() { - return NpcRelationState; - }, - helpUsed: __t.bool(), - chattedCount: __t.u32(), - giftsGiven: __t.u32(), - recruited: __t.bool(), - tradeStockSignature: __t.option(__t.string()), - revealedFacts: __t.array(__t.string()), - knownAttributeRumors: __t.array(__t.string()), - firstMeaningfulContactResolved: __t.bool(), - seenBackstoryChapterIds: __t.array(__t.string()), - get stanceProfile() { - return NpcStanceProfile; - }, - createdAt: __t.timestamp(), - updatedAt: __t.timestamp(), -}); -export type NpcState = __Infer; - -export const NpcStateProcedureResult = __t.object("NpcStateProcedureResult", { - ok: __t.bool(), - get record() { - return __t.option(NpcStateSnapshot); - }, - errorMessage: __t.option(__t.string()), -}); -export type NpcStateProcedureResult = __Infer; - -export const NpcStateSnapshot = __t.object("NpcStateSnapshot", { - npcStateId: __t.string(), - runtimeSessionId: __t.string(), - npcId: __t.string(), - npcName: __t.string(), - affinity: __t.i32(), - get relationState() { - return NpcRelationState; - }, - helpUsed: __t.bool(), - chattedCount: __t.u32(), - giftsGiven: __t.u32(), - recruited: __t.bool(), - tradeStockSignature: __t.option(__t.string()), - revealedFacts: __t.array(__t.string()), - knownAttributeRumors: __t.array(__t.string()), - firstMeaningfulContactResolved: __t.bool(), - seenBackstoryChapterIds: __t.array(__t.string()), - get stanceProfile() { - return NpcStanceProfile; - }, - createdAtMicros: __t.i64(), - updatedAtMicros: __t.i64(), -}); -export type NpcStateSnapshot = __Infer; - -export const NpcStateUpsertInput = __t.object("NpcStateUpsertInput", { - runtimeSessionId: __t.string(), - npcId: __t.string(), - npcName: __t.string(), - affinity: __t.i32(), - helpUsed: __t.bool(), - chattedCount: __t.u32(), - giftsGiven: __t.u32(), - recruited: __t.bool(), - tradeStockSignature: __t.option(__t.string()), - revealedFacts: __t.array(__t.string()), - knownAttributeRumors: __t.array(__t.string()), - firstMeaningfulContactResolved: __t.bool(), - seenBackstoryChapterIds: __t.array(__t.string()), - get stanceProfile() { - return __t.option(NpcStanceProfile); - }, - updatedAtMicros: __t.i64(), -}); -export type NpcStateUpsertInput = __Infer; - -export const PlayerProgression = __t.object("PlayerProgression", { - userId: __t.string(), - level: __t.u32(), - currentLevelXp: __t.u32(), - totalXp: __t.u32(), - xpToNextLevel: __t.u32(), - pendingLevelUps: __t.u32(), - get lastGrantedSource() { - return __t.option(PlayerProgressionGrantSource); - }, - createdAt: __t.timestamp(), - updatedAt: __t.timestamp(), -}); -export type PlayerProgression = __Infer; - -export const PlayerProgressionGetInput = __t.object("PlayerProgressionGetInput", { - userId: __t.string(), -}); -export type PlayerProgressionGetInput = __Infer; - -export const PlayerProgressionGrantInput = __t.object("PlayerProgressionGrantInput", { - userId: __t.string(), - amount: __t.u32(), - get source() { - return PlayerProgressionGrantSource; - }, - updatedAtMicros: __t.i64(), -}); -export type PlayerProgressionGrantInput = __Infer; - -// The tagged union or sum type for the algebraic type `PlayerProgressionGrantSource`. -export const PlayerProgressionGrantSource = __t.enum("PlayerProgressionGrantSource", { - Quest: __t.unit(), - HostileNpc: __t.unit(), -}); -export type PlayerProgressionGrantSource = __Infer; - -export const PlayerProgressionProcedureResult = __t.object("PlayerProgressionProcedureResult", { - ok: __t.bool(), - get record() { - return __t.option(PlayerProgressionSnapshot); - }, - errorMessage: __t.option(__t.string()), -}); -export type PlayerProgressionProcedureResult = __Infer; - -export const PlayerProgressionSnapshot = __t.object("PlayerProgressionSnapshot", { - userId: __t.string(), - level: __t.u32(), - currentLevelXp: __t.u32(), - totalXp: __t.u32(), - xpToNextLevel: __t.u32(), - pendingLevelUps: __t.u32(), - get lastGrantedSource() { - return __t.option(PlayerProgressionGrantSource); - }, - createdAtMicros: __t.i64(), - updatedAtMicros: __t.i64(), -}); -export type PlayerProgressionSnapshot = __Infer; - -export const ProfileDashboardState = __t.object("ProfileDashboardState", { - userId: __t.string(), - walletBalance: __t.u64(), - totalPlayTimeMs: __t.u64(), - createdAt: __t.timestamp(), - updatedAt: __t.timestamp(), -}); -export type ProfileDashboardState = __Infer; - -export const ProfileInviteCode = __t.object("ProfileInviteCode", { - userId: __t.string(), - inviteCode: __t.string(), - createdAt: __t.timestamp(), - updatedAt: __t.timestamp(), -}); -export type ProfileInviteCode = __Infer; - -export const ProfileMembership = __t.object("ProfileMembership", { - userId: __t.string(), - get status() { - return RuntimeProfileMembershipStatus; - }, - get tier() { - return RuntimeProfileMembershipTier; - }, - startedAt: __t.timestamp(), - expiresAt: __t.timestamp(), - updatedAt: __t.timestamp(), -}); -export type ProfileMembership = __Infer; - -export const ProfilePlayedWorld = __t.object("ProfilePlayedWorld", { - playedWorldId: __t.string(), - userId: __t.string(), - worldKey: __t.string(), - ownerUserId: __t.option(__t.string()), - profileId: __t.option(__t.string()), - worldType: __t.option(__t.string()), - worldTitle: __t.string(), - worldSubtitle: __t.string(), - firstPlayedAt: __t.timestamp(), - lastPlayedAt: __t.timestamp(), - lastObservedPlayTimeMs: __t.u64(), -}); -export type ProfilePlayedWorld = __Infer; - -export const ProfileRechargeOrder = __t.object("ProfileRechargeOrder", { - orderId: __t.string(), - userId: __t.string(), - productId: __t.string(), - productTitle: __t.string(), - get kind() { - return RuntimeProfileRechargeProductKind; - }, - amountCents: __t.u64(), - get status() { - return RuntimeProfileRechargeOrderStatus; - }, - paymentChannel: __t.string(), - paidAt: __t.timestamp(), - createdAt: __t.timestamp(), - pointsDelta: __t.i64(), - membershipExpiresAt: __t.option(__t.timestamp()), -}); -export type ProfileRechargeOrder = __Infer; - -export const ProfileReferralRelation = __t.object("ProfileReferralRelation", { - inviteeUserId: __t.string(), - inviterUserId: __t.string(), - inviteCode: __t.string(), - inviterRewardGranted: __t.bool(), - inviteeRewardGranted: __t.bool(), - boundAt: __t.timestamp(), -}); -export type ProfileReferralRelation = __Infer; - -export const ProfileSaveArchive = __t.object("ProfileSaveArchive", { - archiveId: __t.string(), - userId: __t.string(), - worldKey: __t.string(), - ownerUserId: __t.option(__t.string()), - profileId: __t.option(__t.string()), - worldType: __t.option(__t.string()), - worldName: __t.string(), - subtitle: __t.string(), - summaryText: __t.string(), - coverImageSrc: __t.option(__t.string()), - savedAt: __t.timestamp(), - bottomTab: __t.string(), - gameStateJson: __t.string(), - currentStoryJson: __t.option(__t.string()), - createdAt: __t.timestamp(), - updatedAt: __t.timestamp(), -}); -export type ProfileSaveArchive = __Infer; - -export const ProfileWalletLedger = __t.object("ProfileWalletLedger", { - walletLedgerId: __t.string(), - userId: __t.string(), - amountDelta: __t.i64(), - balanceAfter: __t.u64(), - get sourceType() { - return RuntimeProfileWalletLedgerSourceType; - }, - createdAt: __t.timestamp(), -}); -export type ProfileWalletLedger = __Infer; - -export const PuzzleAgentMessageFinalizeInput = __t.object("PuzzleAgentMessageFinalizeInput", { - sessionId: __t.string(), - ownerUserId: __t.string(), - assistantMessageId: __t.option(__t.string()), - assistantReplyText: __t.option(__t.string()), - get stage() { - return PuzzleAgentStage; - }, - progressPercent: __t.u32(), - anchorPackJson: __t.string(), - errorMessage: __t.option(__t.string()), - updatedAtMicros: __t.i64(), -}); -export type PuzzleAgentMessageFinalizeInput = __Infer; - -// The tagged union or sum type for the algebraic type `PuzzleAgentMessageKind`. -export const PuzzleAgentMessageKind = __t.enum("PuzzleAgentMessageKind", { - Chat: __t.unit(), - Summary: __t.unit(), - ActionResult: __t.unit(), - Warning: __t.unit(), -}); -export type PuzzleAgentMessageKind = __Infer; - -// The tagged union or sum type for the algebraic type `PuzzleAgentMessageRole`. -export const PuzzleAgentMessageRole = __t.enum("PuzzleAgentMessageRole", { - User: __t.unit(), - Assistant: __t.unit(), - System: __t.unit(), -}); -export type PuzzleAgentMessageRole = __Infer; - -export const PuzzleAgentMessageRow = __t.object("PuzzleAgentMessageRow", { - messageId: __t.string(), - sessionId: __t.string(), - get role() { - return PuzzleAgentMessageRole; - }, - get kind() { - return PuzzleAgentMessageKind; - }, - text: __t.string(), - createdAt: __t.timestamp(), -}); -export type PuzzleAgentMessageRow = __Infer; - -export const PuzzleAgentMessageSubmitInput = __t.object("PuzzleAgentMessageSubmitInput", { - sessionId: __t.string(), - ownerUserId: __t.string(), - userMessageId: __t.string(), - userMessageText: __t.string(), - submittedAtMicros: __t.i64(), -}); -export type PuzzleAgentMessageSubmitInput = __Infer; - -export const PuzzleAgentSessionCreateInput = __t.object("PuzzleAgentSessionCreateInput", { - sessionId: __t.string(), - ownerUserId: __t.string(), - seedText: __t.string(), - welcomeMessageId: __t.string(), - welcomeMessageText: __t.string(), - createdAtMicros: __t.i64(), -}); -export type PuzzleAgentSessionCreateInput = __Infer; - -export const PuzzleAgentSessionGetInput = __t.object("PuzzleAgentSessionGetInput", { - sessionId: __t.string(), - ownerUserId: __t.string(), -}); -export type PuzzleAgentSessionGetInput = __Infer; - -export const PuzzleAgentSessionProcedureResult = __t.object("PuzzleAgentSessionProcedureResult", { - ok: __t.bool(), - sessionJson: __t.option(__t.string()), - errorMessage: __t.option(__t.string()), -}); -export type PuzzleAgentSessionProcedureResult = __Infer; - -export const PuzzleAgentSessionRow = __t.object("PuzzleAgentSessionRow", { - sessionId: __t.string(), - ownerUserId: __t.string(), - seedText: __t.string(), - currentTurn: __t.u32(), - progressPercent: __t.u32(), - get stage() { - return PuzzleAgentStage; - }, - anchorPackJson: __t.string(), - draftJson: __t.option(__t.string()), - lastAssistantReply: __t.option(__t.string()), - publishedProfileId: __t.option(__t.string()), - createdAt: __t.timestamp(), - updatedAt: __t.timestamp(), -}); -export type PuzzleAgentSessionRow = __Infer; - -// The tagged union or sum type for the algebraic type `PuzzleAgentStage`. -export const PuzzleAgentStage = __t.enum("PuzzleAgentStage", { - CollectingAnchors: __t.unit(), - DraftReady: __t.unit(), - ImageRefining: __t.unit(), - ReadyToPublish: __t.unit(), - Published: __t.unit(), -}); -export type PuzzleAgentStage = __Infer; - -export const PuzzleDraftCompileInput = __t.object("PuzzleDraftCompileInput", { - sessionId: __t.string(), - ownerUserId: __t.string(), - compiledAtMicros: __t.i64(), -}); -export type PuzzleDraftCompileInput = __Infer; - -export const PuzzleGeneratedImagesSaveInput = __t.object("PuzzleGeneratedImagesSaveInput", { - sessionId: __t.string(), - ownerUserId: __t.string(), - candidatesJson: __t.string(), - savedAtMicros: __t.i64(), -}); -export type PuzzleGeneratedImagesSaveInput = __Infer; - -// The tagged union or sum type for the algebraic type `PuzzlePublicationStatus`. -export const PuzzlePublicationStatus = __t.enum("PuzzlePublicationStatus", { - Draft: __t.unit(), - Published: __t.unit(), -}); -export type PuzzlePublicationStatus = __Infer; - -export const PuzzlePublishInput = __t.object("PuzzlePublishInput", { - sessionId: __t.string(), - ownerUserId: __t.string(), - workId: __t.string(), - profileId: __t.string(), - authorDisplayName: __t.string(), - levelName: __t.option(__t.string()), - summary: __t.option(__t.string()), - themeTags: __t.option(__t.array(__t.string())), - publishedAtMicros: __t.i64(), -}); -export type PuzzlePublishInput = __Infer; - -export const PuzzleRunDragInput = __t.object("PuzzleRunDragInput", { - runId: __t.string(), - ownerUserId: __t.string(), - pieceId: __t.string(), - targetRow: __t.u32(), - targetCol: __t.u32(), - draggedAtMicros: __t.i64(), -}); -export type PuzzleRunDragInput = __Infer; - -export const PuzzleRunGetInput = __t.object("PuzzleRunGetInput", { - runId: __t.string(), - ownerUserId: __t.string(), -}); -export type PuzzleRunGetInput = __Infer; - -export const PuzzleRunNextLevelInput = __t.object("PuzzleRunNextLevelInput", { - runId: __t.string(), - ownerUserId: __t.string(), - advancedAtMicros: __t.i64(), -}); -export type PuzzleRunNextLevelInput = __Infer; - -export const PuzzleRunProcedureResult = __t.object("PuzzleRunProcedureResult", { - ok: __t.bool(), - runJson: __t.option(__t.string()), - errorMessage: __t.option(__t.string()), -}); -export type PuzzleRunProcedureResult = __Infer; - -export const PuzzleRunStartInput = __t.object("PuzzleRunStartInput", { - runId: __t.string(), - ownerUserId: __t.string(), - profileId: __t.string(), - startedAtMicros: __t.i64(), -}); -export type PuzzleRunStartInput = __Infer; - -export const PuzzleRunSwapInput = __t.object("PuzzleRunSwapInput", { - runId: __t.string(), - ownerUserId: __t.string(), - firstPieceId: __t.string(), - secondPieceId: __t.string(), - swappedAtMicros: __t.i64(), -}); -export type PuzzleRunSwapInput = __Infer; - -export const PuzzleRuntimeRunRow = __t.object("PuzzleRuntimeRunRow", { - runId: __t.string(), - ownerUserId: __t.string(), - entryProfileId: __t.string(), - currentProfileId: __t.string(), - clearedLevelCount: __t.u32(), - currentLevelIndex: __t.u32(), - currentGridSize: __t.u32(), - playedProfileIdsJson: __t.string(), - previousLevelTagsJson: __t.string(), - snapshotJson: __t.string(), - createdAt: __t.timestamp(), - updatedAt: __t.timestamp(), -}); -export type PuzzleRuntimeRunRow = __Infer; - -export const PuzzleSelectCoverImageInput = __t.object("PuzzleSelectCoverImageInput", { - sessionId: __t.string(), - ownerUserId: __t.string(), - candidateId: __t.string(), - selectedAtMicros: __t.i64(), -}); -export type PuzzleSelectCoverImageInput = __Infer; - -export const PuzzleWorkDeleteInput = __t.object("PuzzleWorkDeleteInput", { - profileId: __t.string(), - ownerUserId: __t.string(), -}); -export type PuzzleWorkDeleteInput = __Infer; - -export const PuzzleWorkGetInput = __t.object("PuzzleWorkGetInput", { - profileId: __t.string(), -}); -export type PuzzleWorkGetInput = __Infer; - -export const PuzzleWorkProcedureResult = __t.object("PuzzleWorkProcedureResult", { - ok: __t.bool(), - itemJson: __t.option(__t.string()), - errorMessage: __t.option(__t.string()), -}); -export type PuzzleWorkProcedureResult = __Infer; - -export const PuzzleWorkProfileRow = __t.object("PuzzleWorkProfileRow", { - profileId: __t.string(), - workId: __t.string(), - ownerUserId: __t.string(), - sourceSessionId: __t.option(__t.string()), - authorDisplayName: __t.string(), - levelName: __t.string(), - summary: __t.string(), - themeTagsJson: __t.string(), - coverImageSrc: __t.option(__t.string()), - coverAssetId: __t.option(__t.string()), - get publicationStatus() { - return PuzzlePublicationStatus; - }, - playCount: __t.u32(), - anchorPackJson: __t.string(), - publishReady: __t.bool(), - createdAt: __t.timestamp(), - updatedAt: __t.timestamp(), - publishedAt: __t.option(__t.timestamp()), -}); -export type PuzzleWorkProfileRow = __Infer; - -export const PuzzleWorkUpsertInput = __t.object("PuzzleWorkUpsertInput", { - profileId: __t.string(), - ownerUserId: __t.string(), - levelName: __t.string(), - summary: __t.string(), - themeTags: __t.array(__t.string()), - coverImageSrc: __t.option(__t.string()), - coverAssetId: __t.option(__t.string()), - updatedAtMicros: __t.i64(), -}); -export type PuzzleWorkUpsertInput = __Infer; - -export const PuzzleWorksListInput = __t.object("PuzzleWorksListInput", { - ownerUserId: __t.string(), -}); -export type PuzzleWorksListInput = __Infer; - -export const PuzzleWorksProcedureResult = __t.object("PuzzleWorksProcedureResult", { - ok: __t.bool(), - itemsJson: __t.option(__t.string()), - errorMessage: __t.option(__t.string()), -}); -export type PuzzleWorksProcedureResult = __Infer; - -export const QuestCompletionAckInput = __t.object("QuestCompletionAckInput", { - questId: __t.string(), - updatedAtMicros: __t.i64(), -}); -export type QuestCompletionAckInput = __Infer; - -export const QuestHostileNpcDefeatedSignal = __t.object("QuestHostileNpcDefeatedSignal", { - sceneId: __t.option(__t.string()), - hostileNpcId: __t.string(), -}); -export type QuestHostileNpcDefeatedSignal = __Infer; - -export const QuestItemDeliveredSignal = __t.object("QuestItemDeliveredSignal", { - npcId: __t.string(), - itemId: __t.string(), - quantity: __t.u32(), -}); -export type QuestItemDeliveredSignal = __Infer; - -export const QuestLog = __t.object("QuestLog", { - logId: __t.string(), - questId: __t.string(), - runtimeSessionId: __t.string(), - actorUserId: __t.string(), - get eventKind() { - return QuestLogEventKind; - }, - get statusAfter() { - return QuestStatus; - }, - get signalKind() { - return __t.option(QuestSignalKind); - }, - get signal() { - return __t.option(QuestProgressSignal); - }, - stepId: __t.option(__t.string()), - stepProgress: __t.option(__t.u32()), - createdAt: __t.timestamp(), -}); -export type QuestLog = __Infer; - -// The tagged union or sum type for the algebraic type `QuestLogEventKind`. -export const QuestLogEventKind = __t.enum("QuestLogEventKind", { - Accepted: __t.unit(), - Progressed: __t.unit(), - Completed: __t.unit(), - CompletionAcknowledged: __t.unit(), - TurnedIn: __t.unit(), -}); -export type QuestLogEventKind = __Infer; - -export const QuestNarrativeBindingSnapshot = __t.object("QuestNarrativeBindingSnapshot", { - get origin() { - return QuestNarrativeOrigin; - }, - get narrativeType() { - return QuestNarrativeType; - }, - dramaticNeed: __t.string(), - issuerGoal: __t.string(), - playerHook: __t.string(), - worldReason: __t.string(), - followupHooks: __t.array(__t.string()), -}); -export type QuestNarrativeBindingSnapshot = __Infer; - -// The tagged union or sum type for the algebraic type `QuestNarrativeOrigin`. -export const QuestNarrativeOrigin = __t.enum("QuestNarrativeOrigin", { - AiCompiled: __t.unit(), - FallbackBuilder: __t.unit(), -}); -export type QuestNarrativeOrigin = __Infer; - -// The tagged union or sum type for the algebraic type `QuestNarrativeType`. -export const QuestNarrativeType = __t.enum("QuestNarrativeType", { - Bounty: __t.unit(), - Escort: __t.unit(), - Investigation: __t.unit(), - Retrieval: __t.unit(), - Relationship: __t.unit(), - Trial: __t.unit(), -}); -export type QuestNarrativeType = __Infer; - -export const QuestNpcSparCompletedSignal = __t.object("QuestNpcSparCompletedSignal", { - npcId: __t.string(), -}); -export type QuestNpcSparCompletedSignal = __Infer; - -export const QuestNpcTalkCompletedSignal = __t.object("QuestNpcTalkCompletedSignal", { - npcId: __t.string(), -}); -export type QuestNpcTalkCompletedSignal = __Infer; - -// The tagged union or sum type for the algebraic type `QuestObjectiveKind`. -export const QuestObjectiveKind = __t.enum("QuestObjectiveKind", { - DefeatHostileNpc: __t.unit(), - InspectTreasure: __t.unit(), - SparWithNpc: __t.unit(), - TalkToNpc: __t.unit(), - ReachScene: __t.unit(), - DeliverItem: __t.unit(), -}); -export type QuestObjectiveKind = __Infer; - -export const QuestObjectiveSnapshot = __t.object("QuestObjectiveSnapshot", { - get kind() { - return QuestObjectiveKind; - }, - targetHostileNpcId: __t.option(__t.string()), - targetNpcId: __t.option(__t.string()), - targetSceneId: __t.option(__t.string()), - targetItemId: __t.option(__t.string()), - requiredCount: __t.u32(), -}); -export type QuestObjectiveSnapshot = __Infer; - -// The tagged union or sum type for the algebraic type `QuestProgressSignal`. -export const QuestProgressSignal = __t.enum("QuestProgressSignal", { - get HostileNpcDefeated() { - return QuestHostileNpcDefeatedSignal; - }, - get TreasureInspected() { - return QuestTreasureInspectedSignal; - }, - get NpcSparCompleted() { - return QuestNpcSparCompletedSignal; - }, - get NpcTalkCompleted() { - return QuestNpcTalkCompletedSignal; - }, - get SceneReached() { - return QuestSceneReachedSignal; - }, - get ItemDelivered() { - return QuestItemDeliveredSignal; - }, -}); -export type QuestProgressSignal = __Infer; - -export const QuestRecord = __t.object("QuestRecord", { - questId: __t.string(), - runtimeSessionId: __t.string(), - storySessionId: __t.option(__t.string()), - actorUserId: __t.string(), - issuerNpcId: __t.string(), - issuerNpcName: __t.string(), - sceneId: __t.option(__t.string()), - chapterId: __t.option(__t.string()), - actId: __t.option(__t.string()), - threadId: __t.option(__t.string()), - contractId: __t.option(__t.string()), - title: __t.string(), - description: __t.string(), - summary: __t.string(), - get objective() { - return QuestObjectiveSnapshot; - }, - progress: __t.u32(), - get status() { - return QuestStatus; - }, - completionNotified: __t.bool(), - get reward() { - return QuestRewardSnapshot; - }, - rewardText: __t.string(), - get narrativeBinding() { - return QuestNarrativeBindingSnapshot; - }, - get steps() { - return __t.array(QuestStepSnapshot); - }, - activeStepId: __t.option(__t.string()), - visibleStage: __t.u32(), - hiddenFlags: __t.array(__t.string()), - discoveredFactIds: __t.array(__t.string()), - relatedCarrierIds: __t.array(__t.string()), - consequenceIds: __t.array(__t.string()), - createdAt: __t.timestamp(), - updatedAt: __t.timestamp(), - completedAt: __t.option(__t.timestamp()), - turnedInAt: __t.option(__t.timestamp()), -}); -export type QuestRecord = __Infer; - -export const QuestRecordInput = __t.object("QuestRecordInput", { - questId: __t.string(), - runtimeSessionId: __t.string(), - storySessionId: __t.option(__t.string()), - actorUserId: __t.string(), - issuerNpcId: __t.string(), - issuerNpcName: __t.string(), - sceneId: __t.option(__t.string()), - chapterId: __t.option(__t.string()), - actId: __t.option(__t.string()), - threadId: __t.option(__t.string()), - contractId: __t.option(__t.string()), - title: __t.string(), - description: __t.string(), - summary: __t.string(), - get status() { - return QuestStatus; - }, - completionNotified: __t.bool(), - get reward() { - return QuestRewardSnapshot; - }, - rewardText: __t.string(), - get narrativeBinding() { - return QuestNarrativeBindingSnapshot; - }, - get steps() { - return __t.array(QuestStepSnapshot); - }, - activeStepId: __t.option(__t.string()), - visibleStage: __t.u32(), - hiddenFlags: __t.array(__t.string()), - discoveredFactIds: __t.array(__t.string()), - relatedCarrierIds: __t.array(__t.string()), - consequenceIds: __t.array(__t.string()), - createdAtMicros: __t.i64(), -}); -export type QuestRecordInput = __Infer; - -// The tagged union or sum type for the algebraic type `QuestRewardEquipmentSlot`. -export const QuestRewardEquipmentSlot = __t.enum("QuestRewardEquipmentSlot", { - Weapon: __t.unit(), - Armor: __t.unit(), - Relic: __t.unit(), -}); -export type QuestRewardEquipmentSlot = __Infer; - -export const QuestRewardIntel = __t.object("QuestRewardIntel", { - rumorText: __t.string(), - unlockedSceneId: __t.option(__t.string()), -}); -export type QuestRewardIntel = __Infer; - -export const QuestRewardItem = __t.object("QuestRewardItem", { - itemId: __t.string(), - category: __t.string(), - name: __t.string(), - description: __t.option(__t.string()), - quantity: __t.u32(), - get rarity() { - return QuestRewardItemRarity; - }, - tags: __t.array(__t.string()), - stackable: __t.bool(), - stackKey: __t.string(), - get equipmentSlotId() { - return __t.option(QuestRewardEquipmentSlot); - }, -}); -export type QuestRewardItem = __Infer; - -// The tagged union or sum type for the algebraic type `QuestRewardItemRarity`. -export const QuestRewardItemRarity = __t.enum("QuestRewardItemRarity", { - Common: __t.unit(), - Uncommon: __t.unit(), - Rare: __t.unit(), - Epic: __t.unit(), - Legendary: __t.unit(), -}); -export type QuestRewardItemRarity = __Infer; - -export const QuestRewardSnapshot = __t.object("QuestRewardSnapshot", { - affinityBonus: __t.i32(), - currency: __t.i64(), - experience: __t.option(__t.u32()), - get items() { - return __t.array(QuestRewardItem); - }, - get intel() { - return __t.option(QuestRewardIntel); - }, - storyHint: __t.option(__t.string()), -}); -export type QuestRewardSnapshot = __Infer; - -export const QuestSceneReachedSignal = __t.object("QuestSceneReachedSignal", { - sceneId: __t.string(), -}); -export type QuestSceneReachedSignal = __Infer; - -export const QuestSignalApplyInput = __t.object("QuestSignalApplyInput", { - questId: __t.string(), - get signal() { - return QuestProgressSignal; - }, - updatedAtMicros: __t.i64(), -}); -export type QuestSignalApplyInput = __Infer; - -// The tagged union or sum type for the algebraic type `QuestSignalKind`. -export const QuestSignalKind = __t.enum("QuestSignalKind", { - HostileNpcDefeated: __t.unit(), - TreasureInspected: __t.unit(), - NpcSparCompleted: __t.unit(), - NpcTalkCompleted: __t.unit(), - SceneReached: __t.unit(), - ItemDelivered: __t.unit(), -}); -export type QuestSignalKind = __Infer; - -// The tagged union or sum type for the algebraic type `QuestStatus`. -export const QuestStatus = __t.enum("QuestStatus", { - Active: __t.unit(), - ReadyToTurnIn: __t.unit(), - Completed: __t.unit(), - TurnedIn: __t.unit(), - Failed: __t.unit(), - Expired: __t.unit(), -}); -export type QuestStatus = __Infer; - -export const QuestStepSnapshot = __t.object("QuestStepSnapshot", { - stepId: __t.string(), - get kind() { - return QuestObjectiveKind; - }, - targetHostileNpcId: __t.option(__t.string()), - targetNpcId: __t.option(__t.string()), - targetSceneId: __t.option(__t.string()), - targetItemId: __t.option(__t.string()), - requiredCount: __t.u32(), - progress: __t.u32(), - title: __t.string(), - revealText: __t.string(), - completeText: __t.string(), -}); -export type QuestStepSnapshot = __Infer; - -export const QuestTreasureInspectedSignal = __t.object("QuestTreasureInspectedSignal", { - sceneId: __t.option(__t.string()), -}); -export type QuestTreasureInspectedSignal = __Infer; - -export const QuestTurnInInput = __t.object("QuestTurnInInput", { - questId: __t.string(), - turnedInAtMicros: __t.i64(), -}); -export type QuestTurnInInput = __Infer; - -export const RefreshSession = __t.object("RefreshSession", { - sessionId: __t.string(), - userId: __t.string(), - refreshTokenHash: __t.string(), - issuedByProvider: __t.string(), - clientInfoJson: __t.string(), - expiresAt: __t.string(), - revokedAt: __t.option(__t.string()), - createdAt: __t.string(), - updatedAt: __t.string(), - lastSeenAt: __t.string(), -}); -export type RefreshSession = __Infer; - -export const ResolveCombatActionInput = __t.object("ResolveCombatActionInput", { - battleStateId: __t.string(), - functionId: __t.string(), - actionText: __t.string(), - baseDamage: __t.i32(), - manaCost: __t.i32(), - heal: __t.i32(), - manaRestore: __t.i32(), - counterMultiplierBasisPoints: __t.u32(), - updatedAtMicros: __t.i64(), -}); -export type ResolveCombatActionInput = __Infer; - -export const ResolveCombatActionProcedureResult = __t.object("ResolveCombatActionProcedureResult", { - ok: __t.bool(), - get result() { - return __t.option(ResolveCombatActionResult); - }, - errorMessage: __t.option(__t.string()), -}); -export type ResolveCombatActionProcedureResult = __Infer; - -export const ResolveCombatActionResult = __t.object("ResolveCombatActionResult", { - get snapshot() { - return BattleStateSnapshot; - }, - damageDealt: __t.i32(), - damageTaken: __t.i32(), - get outcome() { - return CombatOutcome; - }, -}); -export type ResolveCombatActionResult = __Infer; - -export const ResolveNpcBattleInteractionInput = __t.object("ResolveNpcBattleInteractionInput", { - get npcInteraction() { - return ResolveNpcInteractionInput; - }, - storySessionId: __t.string(), - actorUserId: __t.string(), - battleStateId: __t.option(__t.string()), - playerHp: __t.i32(), - playerMaxHp: __t.i32(), - playerMana: __t.i32(), - playerMaxMana: __t.i32(), - targetHp: __t.i32(), - targetMaxHp: __t.i32(), - experienceReward: __t.u32(), - get rewardItems() { - return __t.array(RuntimeItemRewardItemSnapshot); - }, -}); -export type ResolveNpcBattleInteractionInput = __Infer; - -export const ResolveNpcInteractionInput = __t.object("ResolveNpcInteractionInput", { - runtimeSessionId: __t.string(), - npcId: __t.string(), - npcName: __t.string(), - interactionFunctionId: __t.string(), - releaseNpcId: __t.option(__t.string()), - updatedAtMicros: __t.i64(), -}); -export type ResolveNpcInteractionInput = __Infer; - -export const ResolveNpcSocialActionInput = __t.object("ResolveNpcSocialActionInput", { - runtimeSessionId: __t.string(), - npcId: __t.string(), - npcName: __t.string(), - get actionKind() { - return NpcSocialActionKind; - }, - affinityGainOverride: __t.option(__t.i32()), - note: __t.option(__t.string()), - updatedAtMicros: __t.i64(), -}); -export type ResolveNpcSocialActionInput = __Infer; - -// The tagged union or sum type for the algebraic type `RpgAgentDraftCardKind`. -export const RpgAgentDraftCardKind = __t.enum("RpgAgentDraftCardKind", { - World: __t.unit(), - Camp: __t.unit(), - Faction: __t.unit(), - Character: __t.unit(), - Landmark: __t.unit(), - Thread: __t.unit(), - Chapter: __t.unit(), - SceneChapter: __t.unit(), - Carrier: __t.unit(), - SidequestSeed: __t.unit(), -}); -export type RpgAgentDraftCardKind = __Infer; - -// The tagged union or sum type for the algebraic type `RpgAgentDraftCardStatus`. -export const RpgAgentDraftCardStatus = __t.enum("RpgAgentDraftCardStatus", { - Suggested: __t.unit(), - Confirmed: __t.unit(), - Locked: __t.unit(), - Warning: __t.unit(), -}); -export type RpgAgentDraftCardStatus = __Infer; - -// The tagged union or sum type for the algebraic type `RpgAgentMessageKind`. -export const RpgAgentMessageKind = __t.enum("RpgAgentMessageKind", { - Chat: __t.unit(), - Clarification: __t.unit(), - Summary: __t.unit(), - Checkpoint: __t.unit(), - Warning: __t.unit(), - ActionResult: __t.unit(), -}); -export type RpgAgentMessageKind = __Infer; - -// The tagged union or sum type for the algebraic type `RpgAgentMessageRole`. -export const RpgAgentMessageRole = __t.enum("RpgAgentMessageRole", { - User: __t.unit(), - Assistant: __t.unit(), - System: __t.unit(), -}); -export type RpgAgentMessageRole = __Infer; - -// The tagged union or sum type for the algebraic type `RpgAgentOperationStatus`. -export const RpgAgentOperationStatus = __t.enum("RpgAgentOperationStatus", { - Queued: __t.unit(), - Running: __t.unit(), - Completed: __t.unit(), - Failed: __t.unit(), -}); -export type RpgAgentOperationStatus = __Infer; - -// The tagged union or sum type for the algebraic type `RpgAgentOperationType`. -export const RpgAgentOperationType = __t.enum("RpgAgentOperationType", { - ProcessMessage: __t.unit(), - DraftFoundation: __t.unit(), - UpdateDraftCard: __t.unit(), - SyncResultProfile: __t.unit(), - GenerateCharacters: __t.unit(), - GenerateLandmarks: __t.unit(), - DeleteCharacters: __t.unit(), - DeleteLandmarks: __t.unit(), - GenerateRoleAssets: __t.unit(), - SyncRoleAssets: __t.unit(), - GenerateSceneAssets: __t.unit(), - SyncSceneAssets: __t.unit(), - ExpandLongTail: __t.unit(), - PublishWorld: __t.unit(), - RevertCheckpoint: __t.unit(), -}); -export type RpgAgentOperationType = __Infer; - -// The tagged union or sum type for the algebraic type `RpgAgentStage`. -export const RpgAgentStage = __t.enum("RpgAgentStage", { - CollectingIntent: __t.unit(), - Clarifying: __t.unit(), - FoundationReview: __t.unit(), - ObjectRefining: __t.unit(), - VisualRefining: __t.unit(), - LongTailReview: __t.unit(), - ReadyToPublish: __t.unit(), - Published: __t.unit(), - Error: __t.unit(), -}); -export type RpgAgentStage = __Infer; - -export const RuntimeBrowseHistoryClearInput = __t.object("RuntimeBrowseHistoryClearInput", { - userId: __t.string(), -}); -export type RuntimeBrowseHistoryClearInput = __Infer; - -export const RuntimeBrowseHistoryListInput = __t.object("RuntimeBrowseHistoryListInput", { - userId: __t.string(), -}); -export type RuntimeBrowseHistoryListInput = __Infer; - -export const RuntimeBrowseHistoryProcedureResult = __t.object("RuntimeBrowseHistoryProcedureResult", { - ok: __t.bool(), - get entries() { - return __t.array(RuntimeBrowseHistorySnapshot); - }, - errorMessage: __t.option(__t.string()), -}); -export type RuntimeBrowseHistoryProcedureResult = __Infer; - -export const RuntimeBrowseHistorySnapshot = __t.object("RuntimeBrowseHistorySnapshot", { - browseHistoryId: __t.string(), - userId: __t.string(), - ownerUserId: __t.string(), - profileId: __t.string(), - worldName: __t.string(), - subtitle: __t.string(), - summaryText: __t.string(), - coverImageSrc: __t.option(__t.string()), - get themeMode() { - return RuntimeBrowseHistoryThemeMode; - }, - authorDisplayName: __t.string(), - visitedAtMicros: __t.i64(), - createdAtMicros: __t.i64(), - updatedAtMicros: __t.i64(), -}); -export type RuntimeBrowseHistorySnapshot = __Infer; - -export const RuntimeBrowseHistorySyncInput = __t.object("RuntimeBrowseHistorySyncInput", { - userId: __t.string(), - get entries() { - return __t.array(RuntimeBrowseHistoryWriteInput); - }, - updatedAtMicros: __t.i64(), -}); -export type RuntimeBrowseHistorySyncInput = __Infer; - -// The tagged union or sum type for the algebraic type `RuntimeBrowseHistoryThemeMode`. -export const RuntimeBrowseHistoryThemeMode = __t.enum("RuntimeBrowseHistoryThemeMode", { - Martial: __t.unit(), - Arcane: __t.unit(), - Machina: __t.unit(), - Tide: __t.unit(), - Rift: __t.unit(), - Mythic: __t.unit(), -}); -export type RuntimeBrowseHistoryThemeMode = __Infer; - -export const RuntimeBrowseHistoryWriteInput = __t.object("RuntimeBrowseHistoryWriteInput", { - ownerUserId: __t.string(), - profileId: __t.string(), - worldName: __t.string(), - subtitle: __t.option(__t.string()), - summaryText: __t.option(__t.string()), - coverImageSrc: __t.option(__t.string()), - themeMode: __t.option(__t.string()), - authorDisplayName: __t.option(__t.string()), - visitedAt: __t.option(__t.string()), -}); -export type RuntimeBrowseHistoryWriteInput = __Infer; - -export const RuntimeInventoryStateProcedureResult = __t.object("RuntimeInventoryStateProcedureResult", { - ok: __t.bool(), - get snapshot() { - return __t.option(RuntimeInventoryStateSnapshot); - }, - errorMessage: __t.option(__t.string()), -}); -export type RuntimeInventoryStateProcedureResult = __Infer; - -export const RuntimeInventoryStateQueryInput = __t.object("RuntimeInventoryStateQueryInput", { - runtimeSessionId: __t.string(), - actorUserId: __t.string(), -}); -export type RuntimeInventoryStateQueryInput = __Infer; - -export const RuntimeInventoryStateSnapshot = __t.object("RuntimeInventoryStateSnapshot", { - runtimeSessionId: __t.string(), - actorUserId: __t.string(), - get backpackItems() { - return __t.array(InventorySlotSnapshot); - }, - get equipmentItems() { - return __t.array(InventorySlotSnapshot); - }, -}); -export type RuntimeInventoryStateSnapshot = __Infer; - -// The tagged union or sum type for the algebraic type `RuntimeItemEquipmentSlot`. -export const RuntimeItemEquipmentSlot = __t.enum("RuntimeItemEquipmentSlot", { - Weapon: __t.unit(), - Armor: __t.unit(), - Relic: __t.unit(), -}); -export type RuntimeItemEquipmentSlot = __Infer; - -// The tagged union or sum type for the algebraic type `RuntimeItemRewardItemRarity`. -export const RuntimeItemRewardItemRarity = __t.enum("RuntimeItemRewardItemRarity", { - Common: __t.unit(), - Uncommon: __t.unit(), - Rare: __t.unit(), - Epic: __t.unit(), - Legendary: __t.unit(), -}); -export type RuntimeItemRewardItemRarity = __Infer; - -export const RuntimeItemRewardItemSnapshot = __t.object("RuntimeItemRewardItemSnapshot", { - itemId: __t.string(), - category: __t.string(), - itemName: __t.string(), - description: __t.option(__t.string()), - quantity: __t.u32(), - get rarity() { - return RuntimeItemRewardItemRarity; - }, - tags: __t.array(__t.string()), - stackable: __t.bool(), - stackKey: __t.string(), - get equipmentSlotId() { - return __t.option(RuntimeItemEquipmentSlot); - }, -}); -export type RuntimeItemRewardItemSnapshot = __Infer; - -// The tagged union or sum type for the algebraic type `RuntimePlatformTheme`. -export const RuntimePlatformTheme = __t.enum("RuntimePlatformTheme", { - Light: __t.unit(), - Dark: __t.unit(), -}); -export type RuntimePlatformTheme = __Infer; - -export const RuntimeProfileDashboardGetInput = __t.object("RuntimeProfileDashboardGetInput", { - userId: __t.string(), -}); -export type RuntimeProfileDashboardGetInput = __Infer; - -export const RuntimeProfileDashboardProcedureResult = __t.object("RuntimeProfileDashboardProcedureResult", { - ok: __t.bool(), - get record() { - return __t.option(RuntimeProfileDashboardSnapshot); - }, - errorMessage: __t.option(__t.string()), -}); -export type RuntimeProfileDashboardProcedureResult = __Infer; - -export const RuntimeProfileDashboardSnapshot = __t.object("RuntimeProfileDashboardSnapshot", { - userId: __t.string(), - walletBalance: __t.u64(), - totalPlayTimeMs: __t.u64(), - playedWorldCount: __t.u32(), - updatedAtMicros: __t.option(__t.i64()), -}); -export type RuntimeProfileDashboardSnapshot = __Infer; - -export const RuntimeProfileMembershipBenefitSnapshot = __t.object("RuntimeProfileMembershipBenefitSnapshot", { - benefitName: __t.string(), - normalValue: __t.string(), - monthValue: __t.string(), - seasonValue: __t.string(), - yearValue: __t.string(), -}); -export type RuntimeProfileMembershipBenefitSnapshot = __Infer; - -export const RuntimeProfileMembershipSnapshot = __t.object("RuntimeProfileMembershipSnapshot", { - userId: __t.string(), - get status() { - return RuntimeProfileMembershipStatus; - }, - get tier() { - return RuntimeProfileMembershipTier; - }, - startedAtMicros: __t.option(__t.i64()), - expiresAtMicros: __t.option(__t.i64()), - updatedAtMicros: __t.option(__t.i64()), -}); -export type RuntimeProfileMembershipSnapshot = __Infer; - -// The tagged union or sum type for the algebraic type `RuntimeProfileMembershipStatus`. -export const RuntimeProfileMembershipStatus = __t.enum("RuntimeProfileMembershipStatus", { - Normal: __t.unit(), - Active: __t.unit(), -}); -export type RuntimeProfileMembershipStatus = __Infer; - -// The tagged union or sum type for the algebraic type `RuntimeProfileMembershipTier`. -export const RuntimeProfileMembershipTier = __t.enum("RuntimeProfileMembershipTier", { - Normal: __t.unit(), - Month: __t.unit(), - Season: __t.unit(), - Year: __t.unit(), -}); -export type RuntimeProfileMembershipTier = __Infer; - -export const RuntimeProfilePlayStatsGetInput = __t.object("RuntimeProfilePlayStatsGetInput", { - userId: __t.string(), -}); -export type RuntimeProfilePlayStatsGetInput = __Infer; - -export const RuntimeProfilePlayStatsProcedureResult = __t.object("RuntimeProfilePlayStatsProcedureResult", { - ok: __t.bool(), - get record() { - return __t.option(RuntimeProfilePlayStatsSnapshot); - }, - errorMessage: __t.option(__t.string()), -}); -export type RuntimeProfilePlayStatsProcedureResult = __Infer; - -export const RuntimeProfilePlayStatsSnapshot = __t.object("RuntimeProfilePlayStatsSnapshot", { - userId: __t.string(), - totalPlayTimeMs: __t.u64(), - get playedWorks() { - return __t.array(RuntimeProfilePlayedWorldSnapshot); - }, - updatedAtMicros: __t.option(__t.i64()), -}); -export type RuntimeProfilePlayStatsSnapshot = __Infer; - -export const RuntimeProfilePlayedWorldSnapshot = __t.object("RuntimeProfilePlayedWorldSnapshot", { - playedWorldId: __t.string(), - userId: __t.string(), - worldKey: __t.string(), - ownerUserId: __t.option(__t.string()), - profileId: __t.option(__t.string()), - worldType: __t.option(__t.string()), - worldTitle: __t.string(), - worldSubtitle: __t.string(), - firstPlayedAtMicros: __t.i64(), - lastPlayedAtMicros: __t.i64(), - lastObservedPlayTimeMs: __t.u64(), -}); -export type RuntimeProfilePlayedWorldSnapshot = __Infer; - -export const RuntimeProfileRechargeCenterGetInput = __t.object("RuntimeProfileRechargeCenterGetInput", { - userId: __t.string(), -}); -export type RuntimeProfileRechargeCenterGetInput = __Infer; - -export const RuntimeProfileRechargeCenterProcedureResult = __t.object("RuntimeProfileRechargeCenterProcedureResult", { - ok: __t.bool(), - get record() { - return __t.option(RuntimeProfileRechargeCenterSnapshot); - }, - get order() { - return __t.option(RuntimeProfileRechargeOrderSnapshot); - }, - errorMessage: __t.option(__t.string()), -}); -export type RuntimeProfileRechargeCenterProcedureResult = __Infer; - -export const RuntimeProfileRechargeCenterSnapshot = __t.object("RuntimeProfileRechargeCenterSnapshot", { - userId: __t.string(), - walletBalance: __t.u64(), - get membership() { - return RuntimeProfileMembershipSnapshot; - }, - get pointProducts() { - return __t.array(RuntimeProfileRechargeProductSnapshot); - }, - get membershipProducts() { - return __t.array(RuntimeProfileRechargeProductSnapshot); - }, - get benefits() { - return __t.array(RuntimeProfileMembershipBenefitSnapshot); - }, - get latestOrder() { - return __t.option(RuntimeProfileRechargeOrderSnapshot); - }, - hasPointsRecharged: __t.bool(), -}); -export type RuntimeProfileRechargeCenterSnapshot = __Infer; - -export const RuntimeProfileRechargeOrderCreateInput = __t.object("RuntimeProfileRechargeOrderCreateInput", { - userId: __t.string(), - productId: __t.string(), - paymentChannel: __t.string(), - createdAtMicros: __t.i64(), -}); -export type RuntimeProfileRechargeOrderCreateInput = __Infer; - -export const RuntimeProfileRechargeOrderSnapshot = __t.object("RuntimeProfileRechargeOrderSnapshot", { - orderId: __t.string(), - userId: __t.string(), - productId: __t.string(), - productTitle: __t.string(), - get kind() { - return RuntimeProfileRechargeProductKind; - }, - amountCents: __t.u64(), - get status() { - return RuntimeProfileRechargeOrderStatus; - }, - paymentChannel: __t.string(), - paidAtMicros: __t.i64(), - createdAtMicros: __t.i64(), - pointsDelta: __t.i64(), - membershipExpiresAtMicros: __t.option(__t.i64()), -}); -export type RuntimeProfileRechargeOrderSnapshot = __Infer; - -// The tagged union or sum type for the algebraic type `RuntimeProfileRechargeOrderStatus`. -export const RuntimeProfileRechargeOrderStatus = __t.enum("RuntimeProfileRechargeOrderStatus", { - Paid: __t.unit(), -}); -export type RuntimeProfileRechargeOrderStatus = __Infer; - -// The tagged union or sum type for the algebraic type `RuntimeProfileRechargeProductKind`. -export const RuntimeProfileRechargeProductKind = __t.enum("RuntimeProfileRechargeProductKind", { - Points: __t.unit(), - Membership: __t.unit(), -}); -export type RuntimeProfileRechargeProductKind = __Infer; - -export const RuntimeProfileRechargeProductSnapshot = __t.object("RuntimeProfileRechargeProductSnapshot", { - productId: __t.string(), - title: __t.string(), - priceCents: __t.u64(), - get kind() { - return RuntimeProfileRechargeProductKind; - }, - pointsAmount: __t.u64(), - bonusPoints: __t.u64(), - durationDays: __t.u32(), - badgeLabel: __t.string(), - description: __t.string(), - get tier() { - return RuntimeProfileMembershipTier; - }, -}); -export type RuntimeProfileRechargeProductSnapshot = __Infer; - -export const RuntimeProfileSaveArchiveListInput = __t.object("RuntimeProfileSaveArchiveListInput", { - userId: __t.string(), -}); -export type RuntimeProfileSaveArchiveListInput = __Infer; - -export const RuntimeProfileSaveArchiveProcedureResult = __t.object("RuntimeProfileSaveArchiveProcedureResult", { - ok: __t.bool(), - get entries() { - return __t.array(RuntimeProfileSaveArchiveSnapshot); - }, - get record() { - return __t.option(RuntimeProfileSaveArchiveSnapshot); - }, - get currentSnapshot() { - return __t.option(RuntimeSnapshot); - }, - errorMessage: __t.option(__t.string()), -}); -export type RuntimeProfileSaveArchiveProcedureResult = __Infer; - -export const RuntimeProfileSaveArchiveResumeInput = __t.object("RuntimeProfileSaveArchiveResumeInput", { - userId: __t.string(), - worldKey: __t.string(), -}); -export type RuntimeProfileSaveArchiveResumeInput = __Infer; - -export const RuntimeProfileSaveArchiveSnapshot = __t.object("RuntimeProfileSaveArchiveSnapshot", { - archiveId: __t.string(), - userId: __t.string(), - worldKey: __t.string(), - ownerUserId: __t.option(__t.string()), - profileId: __t.option(__t.string()), - worldType: __t.option(__t.string()), - worldName: __t.string(), - subtitle: __t.string(), - summaryText: __t.string(), - coverImageSrc: __t.option(__t.string()), - savedAtMicros: __t.i64(), - bottomTab: __t.string(), - gameStateJson: __t.string(), - currentStoryJson: __t.option(__t.string()), - createdAtMicros: __t.i64(), - updatedAtMicros: __t.i64(), -}); -export type RuntimeProfileSaveArchiveSnapshot = __Infer; - -export const RuntimeProfileWalletLedgerEntrySnapshot = __t.object("RuntimeProfileWalletLedgerEntrySnapshot", { - walletLedgerId: __t.string(), - userId: __t.string(), - amountDelta: __t.i64(), - balanceAfter: __t.u64(), - get sourceType() { - return RuntimeProfileWalletLedgerSourceType; - }, - createdAtMicros: __t.i64(), -}); -export type RuntimeProfileWalletLedgerEntrySnapshot = __Infer; - -export const RuntimeProfileWalletLedgerListInput = __t.object("RuntimeProfileWalletLedgerListInput", { - userId: __t.string(), -}); -export type RuntimeProfileWalletLedgerListInput = __Infer; - -export const RuntimeProfileWalletLedgerProcedureResult = __t.object("RuntimeProfileWalletLedgerProcedureResult", { - ok: __t.bool(), - get entries() { - return __t.array(RuntimeProfileWalletLedgerEntrySnapshot); - }, - errorMessage: __t.option(__t.string()), -}); -export type RuntimeProfileWalletLedgerProcedureResult = __Infer; - -// The tagged union or sum type for the algebraic type `RuntimeProfileWalletLedgerSourceType`. -export const RuntimeProfileWalletLedgerSourceType = __t.enum("RuntimeProfileWalletLedgerSourceType", { - SnapshotSync: __t.unit(), - InviteInviterReward: __t.unit(), - InviteInviteeReward: __t.unit(), - PointsRecharge: __t.unit(), -}); -export type RuntimeProfileWalletLedgerSourceType = __Infer; - -export const RuntimeReferralInviteCenterGetInput = __t.object("RuntimeReferralInviteCenterGetInput", { - userId: __t.string(), -}); -export type RuntimeReferralInviteCenterGetInput = __Infer; - -export const RuntimeReferralInviteCenterProcedureResult = __t.object("RuntimeReferralInviteCenterProcedureResult", { - ok: __t.bool(), - get record() { - return __t.option(RuntimeReferralInviteCenterSnapshot); - }, - errorMessage: __t.option(__t.string()), -}); -export type RuntimeReferralInviteCenterProcedureResult = __Infer; - -export const RuntimeReferralInviteCenterSnapshot = __t.object("RuntimeReferralInviteCenterSnapshot", { - userId: __t.string(), - inviteCode: __t.string(), - inviteLinkPath: __t.string(), - invitedCount: __t.u32(), - rewardedInviteCount: __t.u32(), - todayInviterRewardCount: __t.u32(), - todayInviterRewardRemaining: __t.u32(), - rewardPoints: __t.u64(), - hasRedeemedCode: __t.bool(), - boundInviterUserId: __t.option(__t.string()), - boundAtMicros: __t.option(__t.i64()), - updatedAtMicros: __t.i64(), -}); -export type RuntimeReferralInviteCenterSnapshot = __Infer; - -export const RuntimeReferralRedeemInput = __t.object("RuntimeReferralRedeemInput", { - userId: __t.string(), - inviteCode: __t.string(), - updatedAtMicros: __t.i64(), -}); -export type RuntimeReferralRedeemInput = __Infer; - -export const RuntimeReferralRedeemProcedureResult = __t.object("RuntimeReferralRedeemProcedureResult", { - ok: __t.bool(), - get record() { - return __t.option(RuntimeReferralRedeemSnapshot); - }, - errorMessage: __t.option(__t.string()), -}); -export type RuntimeReferralRedeemProcedureResult = __Infer; - -export const RuntimeReferralRedeemSnapshot = __t.object("RuntimeReferralRedeemSnapshot", { - get center() { - return RuntimeReferralInviteCenterSnapshot; - }, - inviteeRewardGranted: __t.bool(), - inviterRewardGranted: __t.bool(), - inviteeBalanceAfter: __t.u64(), - inviterBalanceAfter: __t.u64(), -}); -export type RuntimeReferralRedeemSnapshot = __Infer; - -export const RuntimeSetting = __t.object("RuntimeSetting", { - userId: __t.string(), - musicVolume: __t.f32(), - get platformTheme() { - return RuntimePlatformTheme; - }, - createdAt: __t.timestamp(), - updatedAt: __t.timestamp(), -}); -export type RuntimeSetting = __Infer; - -export const RuntimeSettingGetInput = __t.object("RuntimeSettingGetInput", { - userId: __t.string(), -}); -export type RuntimeSettingGetInput = __Infer; - -export const RuntimeSettingProcedureResult = __t.object("RuntimeSettingProcedureResult", { - ok: __t.bool(), - get record() { - return __t.option(RuntimeSettingSnapshot); - }, - errorMessage: __t.option(__t.string()), -}); -export type RuntimeSettingProcedureResult = __Infer; - -export const RuntimeSettingSnapshot = __t.object("RuntimeSettingSnapshot", { - userId: __t.string(), - musicVolume: __t.f32(), - get platformTheme() { - return RuntimePlatformTheme; - }, - createdAtMicros: __t.i64(), - updatedAtMicros: __t.i64(), -}); -export type RuntimeSettingSnapshot = __Infer; - -export const RuntimeSettingUpsertInput = __t.object("RuntimeSettingUpsertInput", { - userId: __t.string(), - musicVolume: __t.f32(), - get platformTheme() { - return RuntimePlatformTheme; - }, - updatedAtMicros: __t.i64(), -}); -export type RuntimeSettingUpsertInput = __Infer; - -export const RuntimeSnapshot = __t.object("RuntimeSnapshot", { - userId: __t.string(), - version: __t.u32(), - savedAtMicros: __t.i64(), - bottomTab: __t.string(), - gameStateJson: __t.string(), - currentStoryJson: __t.option(__t.string()), - createdAtMicros: __t.i64(), - updatedAtMicros: __t.i64(), -}); -export type RuntimeSnapshot = __Infer; - -export const RuntimeSnapshotDeleteInput = __t.object("RuntimeSnapshotDeleteInput", { - userId: __t.string(), -}); -export type RuntimeSnapshotDeleteInput = __Infer; - -export const RuntimeSnapshotGetInput = __t.object("RuntimeSnapshotGetInput", { - userId: __t.string(), -}); -export type RuntimeSnapshotGetInput = __Infer; - -export const RuntimeSnapshotProcedureResult = __t.object("RuntimeSnapshotProcedureResult", { - ok: __t.bool(), - get record() { - return __t.option(RuntimeSnapshot); - }, - errorMessage: __t.option(__t.string()), -}); -export type RuntimeSnapshotProcedureResult = __Infer; - -export const RuntimeSnapshotRow = __t.object("RuntimeSnapshotRow", { - userId: __t.string(), - version: __t.u32(), - savedAt: __t.timestamp(), - bottomTab: __t.string(), - gameStateJson: __t.string(), - currentStoryJson: __t.option(__t.string()), - createdAt: __t.timestamp(), - updatedAt: __t.timestamp(), -}); -export type RuntimeSnapshotRow = __Infer; - -export const RuntimeSnapshotUpsertInput = __t.object("RuntimeSnapshotUpsertInput", { - userId: __t.string(), - savedAtMicros: __t.i64(), - bottomTab: __t.string(), - gameStateJson: __t.string(), - currentStoryJson: __t.option(__t.string()), - updatedAtMicros: __t.i64(), -}); -export type RuntimeSnapshotUpsertInput = __Infer; - -export const StoryContinueInput = __t.object("StoryContinueInput", { - storySessionId: __t.string(), - eventId: __t.string(), - narrativeText: __t.string(), - choiceFunctionId: __t.option(__t.string()), - updatedAtMicros: __t.i64(), -}); -export type StoryContinueInput = __Infer; - -export const StoryEvent = __t.object("StoryEvent", { - eventId: __t.string(), - storySessionId: __t.string(), - get eventKind() { - return StoryEventKind; - }, - narrativeText: __t.string(), - choiceFunctionId: __t.option(__t.string()), - createdAt: __t.timestamp(), -}); -export type StoryEvent = __Infer; - -// The tagged union or sum type for the algebraic type `StoryEventKind`. -export const StoryEventKind = __t.enum("StoryEventKind", { - SessionStarted: __t.unit(), - StoryContinued: __t.unit(), -}); -export type StoryEventKind = __Infer; - -export const StoryEventSnapshot = __t.object("StoryEventSnapshot", { - eventId: __t.string(), - storySessionId: __t.string(), - get eventKind() { - return StoryEventKind; - }, - narrativeText: __t.string(), - choiceFunctionId: __t.option(__t.string()), - createdAtMicros: __t.i64(), -}); -export type StoryEventSnapshot = __Infer; - -export const StorySession = __t.object("StorySession", { - storySessionId: __t.string(), - runtimeSessionId: __t.string(), - actorUserId: __t.string(), - worldProfileId: __t.string(), - initialPrompt: __t.string(), - openingSummary: __t.option(__t.string()), - latestNarrativeText: __t.string(), - latestChoiceFunctionId: __t.option(__t.string()), - get status() { - return StorySessionStatus; - }, - version: __t.u32(), - createdAt: __t.timestamp(), - updatedAt: __t.timestamp(), -}); -export type StorySession = __Infer; - -export const StorySessionInput = __t.object("StorySessionInput", { - storySessionId: __t.string(), - runtimeSessionId: __t.string(), - actorUserId: __t.string(), - worldProfileId: __t.string(), - initialPrompt: __t.string(), - openingSummary: __t.option(__t.string()), - createdAtMicros: __t.i64(), -}); -export type StorySessionInput = __Infer; - -export const StorySessionProcedureResult = __t.object("StorySessionProcedureResult", { - ok: __t.bool(), - get session() { - return __t.option(StorySessionSnapshot); - }, - get event() { - return __t.option(StoryEventSnapshot); - }, - errorMessage: __t.option(__t.string()), -}); -export type StorySessionProcedureResult = __Infer; - -export const StorySessionSnapshot = __t.object("StorySessionSnapshot", { - storySessionId: __t.string(), - runtimeSessionId: __t.string(), - actorUserId: __t.string(), - worldProfileId: __t.string(), - initialPrompt: __t.string(), - openingSummary: __t.option(__t.string()), - latestNarrativeText: __t.string(), - latestChoiceFunctionId: __t.option(__t.string()), - get status() { - return StorySessionStatus; - }, - version: __t.u32(), - createdAtMicros: __t.i64(), - updatedAtMicros: __t.i64(), -}); -export type StorySessionSnapshot = __Infer; - -export const StorySessionStateInput = __t.object("StorySessionStateInput", { - storySessionId: __t.string(), -}); -export type StorySessionStateInput = __Infer; - -export const StorySessionStateProcedureResult = __t.object("StorySessionStateProcedureResult", { - ok: __t.bool(), - get session() { - return __t.option(StorySessionSnapshot); - }, - get events() { - return __t.array(StoryEventSnapshot); - }, - errorMessage: __t.option(__t.string()), -}); -export type StorySessionStateProcedureResult = __Infer; - -// The tagged union or sum type for the algebraic type `StorySessionStatus`. -export const StorySessionStatus = __t.enum("StorySessionStatus", { - Active: __t.unit(), - Completed: __t.unit(), - Archived: __t.unit(), -}); -export type StorySessionStatus = __Infer; - -// The tagged union or sum type for the algebraic type `TreasureInteractionAction`. -export const TreasureInteractionAction = __t.enum("TreasureInteractionAction", { - Inspect: __t.unit(), - Leave: __t.unit(), - Secure: __t.unit(), -}); -export type TreasureInteractionAction = __Infer; - -export const TreasureRecord = __t.object("TreasureRecord", { - treasureRecordId: __t.string(), - runtimeSessionId: __t.string(), - storySessionId: __t.string(), - actorUserId: __t.string(), - encounterId: __t.string(), - encounterName: __t.string(), - sceneId: __t.option(__t.string()), - sceneName: __t.option(__t.string()), - get action() { - return TreasureInteractionAction; - }, - get rewardItems() { - return __t.array(RuntimeItemRewardItemSnapshot); - }, - rewardHp: __t.u32(), - rewardMana: __t.u32(), - rewardCurrency: __t.u32(), - storyHint: __t.option(__t.string()), - createdAt: __t.timestamp(), - updatedAt: __t.timestamp(), -}); -export type TreasureRecord = __Infer; - -export const TreasureRecordProcedureResult = __t.object("TreasureRecordProcedureResult", { - ok: __t.bool(), - get record() { - return __t.option(TreasureRecordSnapshot); - }, - errorMessage: __t.option(__t.string()), -}); -export type TreasureRecordProcedureResult = __Infer; - -export const TreasureRecordSnapshot = __t.object("TreasureRecordSnapshot", { - treasureRecordId: __t.string(), - runtimeSessionId: __t.string(), - storySessionId: __t.string(), - actorUserId: __t.string(), - encounterId: __t.string(), - encounterName: __t.string(), - sceneId: __t.option(__t.string()), - sceneName: __t.option(__t.string()), - get action() { - return TreasureInteractionAction; - }, - get rewardItems() { - return __t.array(RuntimeItemRewardItemSnapshot); - }, - rewardHp: __t.u32(), - rewardMana: __t.u32(), - rewardCurrency: __t.u32(), - storyHint: __t.option(__t.string()), - createdAtMicros: __t.i64(), - updatedAtMicros: __t.i64(), -}); -export type TreasureRecordSnapshot = __Infer; - -export const TreasureResolveInput = __t.object("TreasureResolveInput", { - treasureRecordId: __t.string(), - runtimeSessionId: __t.string(), - storySessionId: __t.string(), - actorUserId: __t.string(), - encounterId: __t.string(), - encounterName: __t.string(), - sceneId: __t.option(__t.string()), - sceneName: __t.option(__t.string()), - get action() { - return TreasureInteractionAction; - }, - get rewardItems() { - return __t.array(RuntimeItemRewardItemSnapshot); - }, - rewardHp: __t.u32(), - rewardMana: __t.u32(), - rewardCurrency: __t.u32(), - storyHint: __t.option(__t.string()), - createdAtMicros: __t.i64(), - updatedAtMicros: __t.i64(), -}); -export type TreasureResolveInput = __Infer; - -export const UnequipInventoryItemInput = __t.object("UnequipInventoryItemInput", { - slotId: __t.string(), -}); -export type UnequipInventoryItemInput = __Infer; - -export const UserAccount = __t.object("UserAccount", { - userId: __t.string(), - publicUserCode: __t.string(), - username: __t.string(), - displayName: __t.string(), - phoneNumberMasked: __t.option(__t.string()), - phoneNumberE164: __t.option(__t.string()), - loginMethod: __t.string(), - bindingStatus: __t.string(), - wechatBound: __t.bool(), - passwordHash: __t.string(), - passwordLoginEnabled: __t.bool(), - tokenVersion: __t.u64(), -}); -export type UserAccount = __Infer; - -export const UserBrowseHistory = __t.object("UserBrowseHistory", { - browseHistoryId: __t.string(), - userId: __t.string(), - ownerUserId: __t.string(), - profileId: __t.string(), - worldName: __t.string(), - subtitle: __t.string(), - summaryText: __t.string(), - coverImageSrc: __t.option(__t.string()), - get themeMode() { - return RuntimeBrowseHistoryThemeMode; - }, - authorDisplayName: __t.string(), - visitedAt: __t.timestamp(), - createdAt: __t.timestamp(), - updatedAt: __t.timestamp(), -}); -export type UserBrowseHistory = __Infer; - diff --git a/src/spacetime/generated/types/procedures.ts b/src/spacetime/generated/types/procedures.ts deleted file mode 100644 index 8aef98e9..00000000 --- a/src/spacetime/generated/types/procedures.ts +++ /dev/null @@ -1,307 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -/* eslint-disable */ -/* tslint:disable */ -import { type Infer as __Infer } from "spacetimedb"; - -// Import all procedure arg schemas -import * as AdvancePuzzleNextLevelProcedure from "../advance_puzzle_next_level_procedure"; -import * as AppendAiTextChunkAndReturnProcedure from "../append_ai_text_chunk_and_return_procedure"; -import * as ApplyChapterProgressionLedgerEntryAndReturnProcedure from "../apply_chapter_progression_ledger_entry_and_return_procedure"; -import * as AttachAiResultReferenceAndReturnProcedure from "../attach_ai_result_reference_and_return_procedure"; -import * as BeginStorySessionAndReturnProcedure from "../begin_story_session_and_return_procedure"; -import * as BindAssetObjectToEntityAndReturnProcedure from "../bind_asset_object_to_entity_and_return_procedure"; -import * as CancelAiTaskAndReturnProcedure from "../cancel_ai_task_and_return_procedure"; -import * as ClearPlatformBrowseHistoryAndReturnProcedure from "../clear_platform_browse_history_and_return_procedure"; -import * as CompileBigFishDraftProcedure from "../compile_big_fish_draft_procedure"; -import * as CompileCustomWorldPublishedProfileProcedure from "../compile_custom_world_published_profile_procedure"; -import * as CompilePuzzleAgentDraftProcedure from "../compile_puzzle_agent_draft_procedure"; -import * as CompleteAiStageAndReturnProcedure from "../complete_ai_stage_and_return_procedure"; -import * as CompleteAiTaskAndReturnProcedure from "../complete_ai_task_and_return_procedure"; -import * as ConfirmAssetObjectAndReturnProcedure from "../confirm_asset_object_and_return_procedure"; -import * as ContinueStoryAndReturnProcedure from "../continue_story_and_return_procedure"; -import * as CreateAiTaskAndReturnProcedure from "../create_ai_task_and_return_procedure"; -import * as CreateBattleStateAndReturnProcedure from "../create_battle_state_and_return_procedure"; -import * as CreateBigFishSessionProcedure from "../create_big_fish_session_procedure"; -import * as CreateCustomWorldAgentSessionProcedure from "../create_custom_world_agent_session_procedure"; -import * as CreateProfileRechargeOrderAndReturnProcedure from "../create_profile_recharge_order_and_return_procedure"; -import * as CreatePuzzleAgentSessionProcedure from "../create_puzzle_agent_session_procedure"; -import * as DeleteBigFishWorkProcedure from "../delete_big_fish_work_procedure"; -import * as DeleteCustomWorldAgentSessionProcedure from "../delete_custom_world_agent_session_procedure"; -import * as DeleteCustomWorldProfileAndReturnProcedure from "../delete_custom_world_profile_and_return_procedure"; -import * as DeletePuzzleWorkProcedure from "../delete_puzzle_work_procedure"; -import * as DeleteRuntimeSnapshotAndReturnProcedure from "../delete_runtime_snapshot_and_return_procedure"; -import * as DragPuzzlePieceOrGroupProcedure from "../drag_puzzle_piece_or_group_procedure"; -import * as ExecuteCustomWorldAgentActionProcedure from "../execute_custom_world_agent_action_procedure"; -import * as ExportAuthStoreSnapshotFromTablesProcedure from "../export_auth_store_snapshot_from_tables_procedure"; -import * as FailAiTaskAndReturnProcedure from "../fail_ai_task_and_return_procedure"; -import * as FinalizeBigFishAgentMessageTurnProcedure from "../finalize_big_fish_agent_message_turn_procedure"; -import * as FinalizeCustomWorldAgentMessageTurnProcedure from "../finalize_custom_world_agent_message_turn_procedure"; -import * as FinalizePuzzleAgentMessageTurnProcedure from "../finalize_puzzle_agent_message_turn_procedure"; -import * as GenerateBigFishAssetProcedure from "../generate_big_fish_asset_procedure"; -import * as GetAuthStoreSnapshotProcedure from "../get_auth_store_snapshot_procedure"; -import * as GetBattleStateProcedure from "../get_battle_state_procedure"; -import * as GetBigFishRunProcedure from "../get_big_fish_run_procedure"; -import * as GetBigFishSessionProcedure from "../get_big_fish_session_procedure"; -import * as GetChapterProgressionProcedure from "../get_chapter_progression_procedure"; -import * as GetCustomWorldAgentCardDetailProcedure from "../get_custom_world_agent_card_detail_procedure"; -import * as GetCustomWorldAgentOperationProcedure from "../get_custom_world_agent_operation_procedure"; -import * as GetCustomWorldAgentSessionProcedure from "../get_custom_world_agent_session_procedure"; -import * as GetCustomWorldGalleryDetailProcedure from "../get_custom_world_gallery_detail_procedure"; -import * as GetCustomWorldGalleryDetailByCodeProcedure from "../get_custom_world_gallery_detail_by_code_procedure"; -import * as GetCustomWorldLibraryDetailProcedure from "../get_custom_world_library_detail_procedure"; -import * as GetPlayerProgressionOrDefaultProcedure from "../get_player_progression_or_default_procedure"; -import * as GetProfileDashboardProcedure from "../get_profile_dashboard_procedure"; -import * as GetProfilePlayStatsProcedure from "../get_profile_play_stats_procedure"; -import * as GetProfileRechargeCenterProcedure from "../get_profile_recharge_center_procedure"; -import * as GetProfileReferralInviteCenterProcedure from "../get_profile_referral_invite_center_procedure"; -import * as GetPuzzleAgentSessionProcedure from "../get_puzzle_agent_session_procedure"; -import * as GetPuzzleGalleryDetailProcedure from "../get_puzzle_gallery_detail_procedure"; -import * as GetPuzzleRunProcedure from "../get_puzzle_run_procedure"; -import * as GetPuzzleWorkDetailProcedure from "../get_puzzle_work_detail_procedure"; -import * as GetRuntimeInventoryStateProcedure from "../get_runtime_inventory_state_procedure"; -import * as GetRuntimeSettingOrDefaultProcedure from "../get_runtime_setting_or_default_procedure"; -import * as GetRuntimeSnapshotProcedure from "../get_runtime_snapshot_procedure"; -import * as GetStorySessionStateProcedure from "../get_story_session_state_procedure"; -import * as GrantPlayerProgressionExperienceAndReturnProcedure from "../grant_player_progression_experience_and_return_procedure"; -import * as ImportAuthStoreSnapshotProcedure from "../import_auth_store_snapshot_procedure"; -import * as ListBigFishWorksProcedure from "../list_big_fish_works_procedure"; -import * as ListCustomWorldGalleryEntriesProcedure from "../list_custom_world_gallery_entries_procedure"; -import * as ListCustomWorldProfilesProcedure from "../list_custom_world_profiles_procedure"; -import * as ListCustomWorldWorksProcedure from "../list_custom_world_works_procedure"; -import * as ListPlatformBrowseHistoryProcedure from "../list_platform_browse_history_procedure"; -import * as ListProfileSaveArchivesProcedure from "../list_profile_save_archives_procedure"; -import * as ListProfileWalletLedgerProcedure from "../list_profile_wallet_ledger_procedure"; -import * as ListPuzzleGalleryProcedure from "../list_puzzle_gallery_procedure"; -import * as ListPuzzleWorksProcedure from "../list_puzzle_works_procedure"; -import * as PublishBigFishGameProcedure from "../publish_big_fish_game_procedure"; -import * as PublishCustomWorldProfileAndReturnProcedure from "../publish_custom_world_profile_and_return_procedure"; -import * as PublishCustomWorldWorldProcedure from "../publish_custom_world_world_procedure"; -import * as PublishPuzzleWorkProcedure from "../publish_puzzle_work_procedure"; -import * as RedeemProfileReferralInviteCodeProcedure from "../redeem_profile_referral_invite_code_procedure"; -import * as ResolveCombatActionAndReturnProcedure from "../resolve_combat_action_and_return_procedure"; -import * as ResolveNpcBattleInteractionAndReturnProcedure from "../resolve_npc_battle_interaction_and_return_procedure"; -import * as ResolveNpcInteractionAndReturnProcedure from "../resolve_npc_interaction_and_return_procedure"; -import * as ResolveNpcSocialActionAndReturnProcedure from "../resolve_npc_social_action_and_return_procedure"; -import * as ResolveTreasureInteractionAndReturnProcedure from "../resolve_treasure_interaction_and_return_procedure"; -import * as ResumeProfileSaveArchiveAndReturnProcedure from "../resume_profile_save_archive_and_return_procedure"; -import * as SavePuzzleGeneratedImagesProcedure from "../save_puzzle_generated_images_procedure"; -import * as SelectPuzzleCoverImageProcedure from "../select_puzzle_cover_image_procedure"; -import * as StartBigFishRunProcedure from "../start_big_fish_run_procedure"; -import * as StartPuzzleRunProcedure from "../start_puzzle_run_procedure"; -import * as SubmitBigFishInputProcedure from "../submit_big_fish_input_procedure"; -import * as SubmitBigFishMessageProcedure from "../submit_big_fish_message_procedure"; -import * as SubmitCustomWorldAgentMessageProcedure from "../submit_custom_world_agent_message_procedure"; -import * as SubmitPuzzleAgentMessageProcedure from "../submit_puzzle_agent_message_procedure"; -import * as SwapPuzzlePiecesProcedure from "../swap_puzzle_pieces_procedure"; -import * as UnpublishCustomWorldProfileAndReturnProcedure from "../unpublish_custom_world_profile_and_return_procedure"; -import * as UpdatePuzzleWorkProcedure from "../update_puzzle_work_procedure"; -import * as UpsertAuthStoreSnapshotProcedure from "../upsert_auth_store_snapshot_procedure"; -import * as UpsertChapterProgressionAndReturnProcedure from "../upsert_chapter_progression_and_return_procedure"; -import * as UpsertCustomWorldAgentOperationProgressProcedure from "../upsert_custom_world_agent_operation_progress_procedure"; -import * as UpsertCustomWorldProfileAndReturnProcedure from "../upsert_custom_world_profile_and_return_procedure"; -import * as UpsertNpcStateAndReturnProcedure from "../upsert_npc_state_and_return_procedure"; -import * as UpsertPlatformBrowseHistoryAndReturnProcedure from "../upsert_platform_browse_history_and_return_procedure"; -import * as UpsertRuntimeSettingAndReturnProcedure from "../upsert_runtime_setting_and_return_procedure"; -import * as UpsertRuntimeSnapshotAndReturnProcedure from "../upsert_runtime_snapshot_and_return_procedure"; - -export type AdvancePuzzleNextLevelArgs = __Infer; -export type AdvancePuzzleNextLevelResult = __Infer; -export type AppendAiTextChunkAndReturnArgs = __Infer; -export type AppendAiTextChunkAndReturnResult = __Infer; -export type ApplyChapterProgressionLedgerEntryAndReturnArgs = __Infer; -export type ApplyChapterProgressionLedgerEntryAndReturnResult = __Infer; -export type AttachAiResultReferenceAndReturnArgs = __Infer; -export type AttachAiResultReferenceAndReturnResult = __Infer; -export type BeginStorySessionAndReturnArgs = __Infer; -export type BeginStorySessionAndReturnResult = __Infer; -export type BindAssetObjectToEntityAndReturnArgs = __Infer; -export type BindAssetObjectToEntityAndReturnResult = __Infer; -export type CancelAiTaskAndReturnArgs = __Infer; -export type CancelAiTaskAndReturnResult = __Infer; -export type ClearPlatformBrowseHistoryAndReturnArgs = __Infer; -export type ClearPlatformBrowseHistoryAndReturnResult = __Infer; -export type CompileBigFishDraftArgs = __Infer; -export type CompileBigFishDraftResult = __Infer; -export type CompileCustomWorldPublishedProfileArgs = __Infer; -export type CompileCustomWorldPublishedProfileResult = __Infer; -export type CompilePuzzleAgentDraftArgs = __Infer; -export type CompilePuzzleAgentDraftResult = __Infer; -export type CompleteAiStageAndReturnArgs = __Infer; -export type CompleteAiStageAndReturnResult = __Infer; -export type CompleteAiTaskAndReturnArgs = __Infer; -export type CompleteAiTaskAndReturnResult = __Infer; -export type ConfirmAssetObjectAndReturnArgs = __Infer; -export type ConfirmAssetObjectAndReturnResult = __Infer; -export type ContinueStoryAndReturnArgs = __Infer; -export type ContinueStoryAndReturnResult = __Infer; -export type CreateAiTaskAndReturnArgs = __Infer; -export type CreateAiTaskAndReturnResult = __Infer; -export type CreateBattleStateAndReturnArgs = __Infer; -export type CreateBattleStateAndReturnResult = __Infer; -export type CreateBigFishSessionArgs = __Infer; -export type CreateBigFishSessionResult = __Infer; -export type CreateCustomWorldAgentSessionArgs = __Infer; -export type CreateCustomWorldAgentSessionResult = __Infer; -export type CreateProfileRechargeOrderAndReturnArgs = __Infer; -export type CreateProfileRechargeOrderAndReturnResult = __Infer; -export type CreatePuzzleAgentSessionArgs = __Infer; -export type CreatePuzzleAgentSessionResult = __Infer; -export type DeleteBigFishWorkArgs = __Infer; -export type DeleteBigFishWorkResult = __Infer; -export type DeleteCustomWorldAgentSessionArgs = __Infer; -export type DeleteCustomWorldAgentSessionResult = __Infer; -export type DeleteCustomWorldProfileAndReturnArgs = __Infer; -export type DeleteCustomWorldProfileAndReturnResult = __Infer; -export type DeletePuzzleWorkArgs = __Infer; -export type DeletePuzzleWorkResult = __Infer; -export type DeleteRuntimeSnapshotAndReturnArgs = __Infer; -export type DeleteRuntimeSnapshotAndReturnResult = __Infer; -export type DragPuzzlePieceOrGroupArgs = __Infer; -export type DragPuzzlePieceOrGroupResult = __Infer; -export type ExecuteCustomWorldAgentActionArgs = __Infer; -export type ExecuteCustomWorldAgentActionResult = __Infer; -export type ExportAuthStoreSnapshotFromTablesArgs = __Infer; -export type ExportAuthStoreSnapshotFromTablesResult = __Infer; -export type FailAiTaskAndReturnArgs = __Infer; -export type FailAiTaskAndReturnResult = __Infer; -export type FinalizeBigFishAgentMessageTurnArgs = __Infer; -export type FinalizeBigFishAgentMessageTurnResult = __Infer; -export type FinalizeCustomWorldAgentMessageTurnArgs = __Infer; -export type FinalizeCustomWorldAgentMessageTurnResult = __Infer; -export type FinalizePuzzleAgentMessageTurnArgs = __Infer; -export type FinalizePuzzleAgentMessageTurnResult = __Infer; -export type GenerateBigFishAssetArgs = __Infer; -export type GenerateBigFishAssetResult = __Infer; -export type GetAuthStoreSnapshotArgs = __Infer; -export type GetAuthStoreSnapshotResult = __Infer; -export type GetBattleStateArgs = __Infer; -export type GetBattleStateResult = __Infer; -export type GetBigFishRunArgs = __Infer; -export type GetBigFishRunResult = __Infer; -export type GetBigFishSessionArgs = __Infer; -export type GetBigFishSessionResult = __Infer; -export type GetChapterProgressionArgs = __Infer; -export type GetChapterProgressionResult = __Infer; -export type GetCustomWorldAgentCardDetailArgs = __Infer; -export type GetCustomWorldAgentCardDetailResult = __Infer; -export type GetCustomWorldAgentOperationArgs = __Infer; -export type GetCustomWorldAgentOperationResult = __Infer; -export type GetCustomWorldAgentSessionArgs = __Infer; -export type GetCustomWorldAgentSessionResult = __Infer; -export type GetCustomWorldGalleryDetailArgs = __Infer; -export type GetCustomWorldGalleryDetailResult = __Infer; -export type GetCustomWorldGalleryDetailByCodeArgs = __Infer; -export type GetCustomWorldGalleryDetailByCodeResult = __Infer; -export type GetCustomWorldLibraryDetailArgs = __Infer; -export type GetCustomWorldLibraryDetailResult = __Infer; -export type GetPlayerProgressionOrDefaultArgs = __Infer; -export type GetPlayerProgressionOrDefaultResult = __Infer; -export type GetProfileDashboardArgs = __Infer; -export type GetProfileDashboardResult = __Infer; -export type GetProfilePlayStatsArgs = __Infer; -export type GetProfilePlayStatsResult = __Infer; -export type GetProfileRechargeCenterArgs = __Infer; -export type GetProfileRechargeCenterResult = __Infer; -export type GetProfileReferralInviteCenterArgs = __Infer; -export type GetProfileReferralInviteCenterResult = __Infer; -export type GetPuzzleAgentSessionArgs = __Infer; -export type GetPuzzleAgentSessionResult = __Infer; -export type GetPuzzleGalleryDetailArgs = __Infer; -export type GetPuzzleGalleryDetailResult = __Infer; -export type GetPuzzleRunArgs = __Infer; -export type GetPuzzleRunResult = __Infer; -export type GetPuzzleWorkDetailArgs = __Infer; -export type GetPuzzleWorkDetailResult = __Infer; -export type GetRuntimeInventoryStateArgs = __Infer; -export type GetRuntimeInventoryStateResult = __Infer; -export type GetRuntimeSettingOrDefaultArgs = __Infer; -export type GetRuntimeSettingOrDefaultResult = __Infer; -export type GetRuntimeSnapshotArgs = __Infer; -export type GetRuntimeSnapshotResult = __Infer; -export type GetStorySessionStateArgs = __Infer; -export type GetStorySessionStateResult = __Infer; -export type GrantPlayerProgressionExperienceAndReturnArgs = __Infer; -export type GrantPlayerProgressionExperienceAndReturnResult = __Infer; -export type ImportAuthStoreSnapshotArgs = __Infer; -export type ImportAuthStoreSnapshotResult = __Infer; -export type ListBigFishWorksArgs = __Infer; -export type ListBigFishWorksResult = __Infer; -export type ListCustomWorldGalleryEntriesArgs = __Infer; -export type ListCustomWorldGalleryEntriesResult = __Infer; -export type ListCustomWorldProfilesArgs = __Infer; -export type ListCustomWorldProfilesResult = __Infer; -export type ListCustomWorldWorksArgs = __Infer; -export type ListCustomWorldWorksResult = __Infer; -export type ListPlatformBrowseHistoryArgs = __Infer; -export type ListPlatformBrowseHistoryResult = __Infer; -export type ListProfileSaveArchivesArgs = __Infer; -export type ListProfileSaveArchivesResult = __Infer; -export type ListProfileWalletLedgerArgs = __Infer; -export type ListProfileWalletLedgerResult = __Infer; -export type ListPuzzleGalleryArgs = __Infer; -export type ListPuzzleGalleryResult = __Infer; -export type ListPuzzleWorksArgs = __Infer; -export type ListPuzzleWorksResult = __Infer; -export type PublishBigFishGameArgs = __Infer; -export type PublishBigFishGameResult = __Infer; -export type PublishCustomWorldProfileAndReturnArgs = __Infer; -export type PublishCustomWorldProfileAndReturnResult = __Infer; -export type PublishCustomWorldWorldArgs = __Infer; -export type PublishCustomWorldWorldResult = __Infer; -export type PublishPuzzleWorkArgs = __Infer; -export type PublishPuzzleWorkResult = __Infer; -export type RedeemProfileReferralInviteCodeArgs = __Infer; -export type RedeemProfileReferralInviteCodeResult = __Infer; -export type ResolveCombatActionAndReturnArgs = __Infer; -export type ResolveCombatActionAndReturnResult = __Infer; -export type ResolveNpcBattleInteractionAndReturnArgs = __Infer; -export type ResolveNpcBattleInteractionAndReturnResult = __Infer; -export type ResolveNpcInteractionAndReturnArgs = __Infer; -export type ResolveNpcInteractionAndReturnResult = __Infer; -export type ResolveNpcSocialActionAndReturnArgs = __Infer; -export type ResolveNpcSocialActionAndReturnResult = __Infer; -export type ResolveTreasureInteractionAndReturnArgs = __Infer; -export type ResolveTreasureInteractionAndReturnResult = __Infer; -export type ResumeProfileSaveArchiveAndReturnArgs = __Infer; -export type ResumeProfileSaveArchiveAndReturnResult = __Infer; -export type SavePuzzleGeneratedImagesArgs = __Infer; -export type SavePuzzleGeneratedImagesResult = __Infer; -export type SelectPuzzleCoverImageArgs = __Infer; -export type SelectPuzzleCoverImageResult = __Infer; -export type StartBigFishRunArgs = __Infer; -export type StartBigFishRunResult = __Infer; -export type StartPuzzleRunArgs = __Infer; -export type StartPuzzleRunResult = __Infer; -export type SubmitBigFishInputArgs = __Infer; -export type SubmitBigFishInputResult = __Infer; -export type SubmitBigFishMessageArgs = __Infer; -export type SubmitBigFishMessageResult = __Infer; -export type SubmitCustomWorldAgentMessageArgs = __Infer; -export type SubmitCustomWorldAgentMessageResult = __Infer; -export type SubmitPuzzleAgentMessageArgs = __Infer; -export type SubmitPuzzleAgentMessageResult = __Infer; -export type SwapPuzzlePiecesArgs = __Infer; -export type SwapPuzzlePiecesResult = __Infer; -export type UnpublishCustomWorldProfileAndReturnArgs = __Infer; -export type UnpublishCustomWorldProfileAndReturnResult = __Infer; -export type UpdatePuzzleWorkArgs = __Infer; -export type UpdatePuzzleWorkResult = __Infer; -export type UpsertAuthStoreSnapshotArgs = __Infer; -export type UpsertAuthStoreSnapshotResult = __Infer; -export type UpsertChapterProgressionAndReturnArgs = __Infer; -export type UpsertChapterProgressionAndReturnResult = __Infer; -export type UpsertCustomWorldAgentOperationProgressArgs = __Infer; -export type UpsertCustomWorldAgentOperationProgressResult = __Infer; -export type UpsertCustomWorldProfileAndReturnArgs = __Infer; -export type UpsertCustomWorldProfileAndReturnResult = __Infer; -export type UpsertNpcStateAndReturnArgs = __Infer; -export type UpsertNpcStateAndReturnResult = __Infer; -export type UpsertPlatformBrowseHistoryAndReturnArgs = __Infer; -export type UpsertPlatformBrowseHistoryAndReturnResult = __Infer; -export type UpsertRuntimeSettingAndReturnArgs = __Infer; -export type UpsertRuntimeSettingAndReturnResult = __Infer; -export type UpsertRuntimeSnapshotAndReturnArgs = __Infer; -export type UpsertRuntimeSnapshotAndReturnResult = __Infer; - diff --git a/src/spacetime/generated/types/reducers.ts b/src/spacetime/generated/types/reducers.ts deleted file mode 100644 index 9f8b72f5..00000000 --- a/src/spacetime/generated/types/reducers.ts +++ /dev/null @@ -1,58 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -/* eslint-disable */ -/* tslint:disable */ -import { type Infer as __Infer } from "spacetimedb"; - -// Import all reducer arg schemas -import AcceptQuestReducer from "../accept_quest_reducer"; -import AcknowledgeQuestCompletionReducer from "../acknowledge_quest_completion_reducer"; -import ApplyChapterProgressionLedgerEntryReducer from "../apply_chapter_progression_ledger_entry_reducer"; -import ApplyInventoryMutationReducer from "../apply_inventory_mutation_reducer"; -import ApplyQuestSignalReducer from "../apply_quest_signal_reducer"; -import BeginStorySessionReducer from "../begin_story_session_reducer"; -import BindAssetObjectToEntityReducer from "../bind_asset_object_to_entity_reducer"; -import ConfirmAssetObjectReducer from "../confirm_asset_object_reducer"; -import ContinueStoryReducer from "../continue_story_reducer"; -import CreateAiTaskReducer from "../create_ai_task_reducer"; -import CreateBattleStateReducer from "../create_battle_state_reducer"; -import GrantPlayerProgressionExperienceReducer from "../grant_player_progression_experience_reducer"; -import PublishCustomWorldProfileReducer from "../publish_custom_world_profile_reducer"; -import ResolveCombatActionReducer from "../resolve_combat_action_reducer"; -import ResolveNpcInteractionReducer from "../resolve_npc_interaction_reducer"; -import ResolveNpcSocialActionReducer from "../resolve_npc_social_action_reducer"; -import ResolveTreasureInteractionReducer from "../resolve_treasure_interaction_reducer"; -import StartAiTaskReducer from "../start_ai_task_reducer"; -import StartAiTaskStageReducer from "../start_ai_task_stage_reducer"; -import TurnInQuestReducer from "../turn_in_quest_reducer"; -import UnpublishCustomWorldProfileReducer from "../unpublish_custom_world_profile_reducer"; -import UpsertChapterProgressionReducer from "../upsert_chapter_progression_reducer"; -import UpsertCustomWorldProfileReducer from "../upsert_custom_world_profile_reducer"; -import UpsertNpcStateReducer from "../upsert_npc_state_reducer"; - -export type AcceptQuestParams = __Infer; -export type AcknowledgeQuestCompletionParams = __Infer; -export type ApplyChapterProgressionLedgerEntryParams = __Infer; -export type ApplyInventoryMutationParams = __Infer; -export type ApplyQuestSignalParams = __Infer; -export type BeginStorySessionParams = __Infer; -export type BindAssetObjectToEntityParams = __Infer; -export type ConfirmAssetObjectParams = __Infer; -export type ContinueStoryParams = __Infer; -export type CreateAiTaskParams = __Infer; -export type CreateBattleStateParams = __Infer; -export type GrantPlayerProgressionExperienceParams = __Infer; -export type PublishCustomWorldProfileParams = __Infer; -export type ResolveCombatActionParams = __Infer; -export type ResolveNpcInteractionParams = __Infer; -export type ResolveNpcSocialActionParams = __Infer; -export type ResolveTreasureInteractionParams = __Infer; -export type StartAiTaskParams = __Infer; -export type StartAiTaskStageParams = __Infer; -export type TurnInQuestParams = __Infer; -export type UnpublishCustomWorldProfileParams = __Infer; -export type UpsertChapterProgressionParams = __Infer; -export type UpsertCustomWorldProfileParams = __Infer; -export type UpsertNpcStateParams = __Infer; - diff --git a/src/spacetime/generated/unpublish_custom_world_profile_and_return_procedure.ts b/src/spacetime/generated/unpublish_custom_world_profile_and_return_procedure.ts deleted file mode 100644 index efba6fae..00000000 --- a/src/spacetime/generated/unpublish_custom_world_profile_and_return_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - CustomWorldLibraryMutationResult, - CustomWorldProfileUnpublishInput, -} from "./types"; - -export const params = { - get input() { - return CustomWorldProfileUnpublishInput; - }, -}; -export const returnType = CustomWorldLibraryMutationResult \ No newline at end of file diff --git a/src/spacetime/generated/unpublish_custom_world_profile_reducer.ts b/src/spacetime/generated/unpublish_custom_world_profile_reducer.ts deleted file mode 100644 index 50f1ae46..00000000 --- a/src/spacetime/generated/unpublish_custom_world_profile_reducer.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - CustomWorldProfileUnpublishInput, -} from "./types"; - -export default { - get input() { - return CustomWorldProfileUnpublishInput; - }, -}; diff --git a/src/spacetime/generated/update_puzzle_work_procedure.ts b/src/spacetime/generated/update_puzzle_work_procedure.ts deleted file mode 100644 index af32974a..00000000 --- a/src/spacetime/generated/update_puzzle_work_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - PuzzleWorkProcedureResult, - PuzzleWorkUpsertInput, -} from "./types"; - -export const params = { - get input() { - return PuzzleWorkUpsertInput; - }, -}; -export const returnType = PuzzleWorkProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/upsert_auth_store_snapshot_procedure.ts b/src/spacetime/generated/upsert_auth_store_snapshot_procedure.ts deleted file mode 100644 index e8838fa9..00000000 --- a/src/spacetime/generated/upsert_auth_store_snapshot_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - AuthStoreSnapshotProcedureResult, - AuthStoreSnapshotUpsertInput, -} from "./types"; - -export const params = { - get input() { - return AuthStoreSnapshotUpsertInput; - }, -}; -export const returnType = AuthStoreSnapshotProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/upsert_chapter_progression_and_return_procedure.ts b/src/spacetime/generated/upsert_chapter_progression_and_return_procedure.ts deleted file mode 100644 index b378575c..00000000 --- a/src/spacetime/generated/upsert_chapter_progression_and_return_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - ChapterProgressionProcedureResult, - ChapterProgressionInput, -} from "./types"; - -export const params = { - get input() { - return ChapterProgressionInput; - }, -}; -export const returnType = ChapterProgressionProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/upsert_chapter_progression_reducer.ts b/src/spacetime/generated/upsert_chapter_progression_reducer.ts deleted file mode 100644 index fe28b9f9..00000000 --- a/src/spacetime/generated/upsert_chapter_progression_reducer.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - ChapterProgressionInput, -} from "./types"; - -export default { - get input() { - return ChapterProgressionInput; - }, -}; diff --git a/src/spacetime/generated/upsert_custom_world_agent_operation_progress_procedure.ts b/src/spacetime/generated/upsert_custom_world_agent_operation_progress_procedure.ts deleted file mode 100644 index 510d1e0c..00000000 --- a/src/spacetime/generated/upsert_custom_world_agent_operation_progress_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - CustomWorldAgentOperationProcedureResult, - CustomWorldAgentOperationProgressInput, -} from "./types"; - -export const params = { - get input() { - return CustomWorldAgentOperationProgressInput; - }, -}; -export const returnType = CustomWorldAgentOperationProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/upsert_custom_world_profile_and_return_procedure.ts b/src/spacetime/generated/upsert_custom_world_profile_and_return_procedure.ts deleted file mode 100644 index ab5744fd..00000000 --- a/src/spacetime/generated/upsert_custom_world_profile_and_return_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - CustomWorldLibraryMutationResult, - CustomWorldProfileUpsertInput, -} from "./types"; - -export const params = { - get input() { - return CustomWorldProfileUpsertInput; - }, -}; -export const returnType = CustomWorldLibraryMutationResult \ No newline at end of file diff --git a/src/spacetime/generated/upsert_custom_world_profile_reducer.ts b/src/spacetime/generated/upsert_custom_world_profile_reducer.ts deleted file mode 100644 index fcb6f263..00000000 --- a/src/spacetime/generated/upsert_custom_world_profile_reducer.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - CustomWorldProfileUpsertInput, -} from "./types"; - -export default { - get input() { - return CustomWorldProfileUpsertInput; - }, -}; diff --git a/src/spacetime/generated/upsert_npc_state_and_return_procedure.ts b/src/spacetime/generated/upsert_npc_state_and_return_procedure.ts deleted file mode 100644 index f5d5911f..00000000 --- a/src/spacetime/generated/upsert_npc_state_and_return_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - NpcStateProcedureResult, - NpcStateUpsertInput, -} from "./types"; - -export const params = { - get input() { - return NpcStateUpsertInput; - }, -}; -export const returnType = NpcStateProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/upsert_npc_state_reducer.ts b/src/spacetime/generated/upsert_npc_state_reducer.ts deleted file mode 100644 index 6bd78868..00000000 --- a/src/spacetime/generated/upsert_npc_state_reducer.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - NpcStateUpsertInput, -} from "./types"; - -export default { - get input() { - return NpcStateUpsertInput; - }, -}; diff --git a/src/spacetime/generated/upsert_platform_browse_history_and_return_procedure.ts b/src/spacetime/generated/upsert_platform_browse_history_and_return_procedure.ts deleted file mode 100644 index a6c788fc..00000000 --- a/src/spacetime/generated/upsert_platform_browse_history_and_return_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - RuntimeBrowseHistoryProcedureResult, - RuntimeBrowseHistorySyncInput, -} from "./types"; - -export const params = { - get input() { - return RuntimeBrowseHistorySyncInput; - }, -}; -export const returnType = RuntimeBrowseHistoryProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/upsert_runtime_setting_and_return_procedure.ts b/src/spacetime/generated/upsert_runtime_setting_and_return_procedure.ts deleted file mode 100644 index f3436299..00000000 --- a/src/spacetime/generated/upsert_runtime_setting_and_return_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - RuntimeSettingProcedureResult, - RuntimeSettingUpsertInput, -} from "./types"; - -export const params = { - get input() { - return RuntimeSettingUpsertInput; - }, -}; -export const returnType = RuntimeSettingProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/upsert_runtime_snapshot_and_return_procedure.ts b/src/spacetime/generated/upsert_runtime_snapshot_and_return_procedure.ts deleted file mode 100644 index b9e5c57c..00000000 --- a/src/spacetime/generated/upsert_runtime_snapshot_and_return_procedure.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -import { - RuntimeSnapshotProcedureResult, - RuntimeSnapshotUpsertInput, -} from "./types"; - -export const params = { - get input() { - return RuntimeSnapshotUpsertInput; - }, -}; -export const returnType = RuntimeSnapshotProcedureResult \ No newline at end of file diff --git a/src/spacetime/generated/user_account_table.ts b/src/spacetime/generated/user_account_table.ts deleted file mode 100644 index fde50e7f..00000000 --- a/src/spacetime/generated/user_account_table.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; - -export default __t.row({ - userId: __t.string().primaryKey().name("user_id"), - publicUserCode: __t.string().name("public_user_code"), - username: __t.string(), - displayName: __t.string().name("display_name"), - phoneNumberMasked: __t.option(__t.string()).name("phone_number_masked"), - phoneNumberE164: __t.option(__t.string()).name("phone_number_e_164"), - loginMethod: __t.string().name("login_method"), - bindingStatus: __t.string().name("binding_status"), - wechatBound: __t.bool().name("wechat_bound"), - passwordHash: __t.string().name("password_hash"), - passwordLoginEnabled: __t.bool().name("password_login_enabled"), - tokenVersion: __t.u64().name("token_version"), -}); diff --git a/src/spacetime/generated/user_browse_history_table.ts b/src/spacetime/generated/user_browse_history_table.ts deleted file mode 100644 index e0357508..00000000 --- a/src/spacetime/generated/user_browse_history_table.ts +++ /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. - -/* eslint-disable */ -/* tslint:disable */ -import { - TypeBuilder as __TypeBuilder, - t as __t, - type AlgebraicTypeType as __AlgebraicTypeType, - type Infer as __Infer, -} from "spacetimedb"; -import { - RuntimeBrowseHistoryThemeMode, -} from "./types"; - - -export default __t.row({ - browseHistoryId: __t.string().primaryKey().name("browse_history_id"), - userId: __t.string().name("user_id"), - ownerUserId: __t.string().name("owner_user_id"), - profileId: __t.string().name("profile_id"), - worldName: __t.string().name("world_name"), - subtitle: __t.string(), - summaryText: __t.string().name("summary_text"), - coverImageSrc: __t.option(__t.string()).name("cover_image_src"), - get themeMode() { - return RuntimeBrowseHistoryThemeMode.name("theme_mode"); - }, - authorDisplayName: __t.string().name("author_display_name"), - visitedAt: __t.timestamp().name("visited_at"), - createdAt: __t.timestamp().name("created_at"), - updatedAt: __t.timestamp().name("updated_at"), -});