Preserve partial creation replies on stream failure
Some checks failed
CI / verify (push) Has been cancelled

This commit is contained in:
kdletters
2026-05-05 11:31:50 +08:00
parent 100fee7e7a
commit 995661e7cc
299 changed files with 13805 additions and 1429 deletions

View File

@@ -1,7 +1,7 @@
// 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).
// This was generated using spacetimedb cli version 2.1.0 (commit 10a4779b1338eff3708493d87496b51842a7c412).
#![allow(unused, clippy::all)]
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
@@ -48,10 +48,14 @@ pub mod ai_text_chunk_append_input_type;
pub mod ai_text_chunk_snapshot_type;
pub mod ai_text_chunk_table;
pub mod ai_text_chunk_type;
pub mod analytics_bucket_metric_type;
pub mod analytics_date_dimension_ensure_input_type;
pub mod analytics_date_dimension_seed_input_type;
pub mod analytics_date_dimension_table;
pub mod analytics_date_dimension_type;
pub mod analytics_granularity_type;
pub mod analytics_metric_query_input_type;
pub mod analytics_metric_query_procedure_result_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;
@@ -162,6 +166,7 @@ pub mod compile_big_fish_draft_procedure;
pub mod compile_custom_world_published_profile_procedure;
pub mod compile_match_3_d_draft_procedure;
pub mod compile_puzzle_agent_draft_procedure;
pub mod compile_square_hole_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;
@@ -179,6 +184,7 @@ pub mod create_custom_world_agent_session_procedure;
pub mod create_match_3_d_agent_session_procedure;
pub mod create_profile_recharge_order_and_return_procedure;
pub mod create_puzzle_agent_session_procedure;
pub mod create_square_hole_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;
@@ -261,7 +267,9 @@ pub mod delete_custom_world_profile_and_return_procedure;
pub mod delete_match_3_d_work_procedure;
pub mod delete_puzzle_work_procedure;
pub mod delete_runtime_snapshot_and_return_procedure;
pub mod delete_square_hole_work_procedure;
pub mod drag_puzzle_piece_or_group_procedure;
pub mod drop_square_hole_shape_procedure;
pub mod ensure_analytics_date_dimension_for_date_reducer;
pub mod equip_inventory_item_input_type;
pub mod execute_custom_world_agent_action_procedure;
@@ -272,7 +280,9 @@ pub mod finalize_big_fish_agent_message_turn_procedure;
pub mod finalize_custom_world_agent_message_turn_procedure;
pub mod finalize_match_3_d_agent_message_turn_procedure;
pub mod finalize_puzzle_agent_message_turn_procedure;
pub mod finalize_square_hole_agent_message_turn_procedure;
pub mod finish_match_3_d_time_up_procedure;
pub mod finish_square_hole_time_up_procedure;
pub mod generate_big_fish_asset_procedure;
pub mod get_auth_store_snapshot_procedure;
pub mod get_battle_state_procedure;
@@ -301,6 +311,9 @@ 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_square_hole_agent_session_procedure;
pub mod get_square_hole_run_procedure;
pub mod get_square_hole_work_detail_procedure;
pub mod get_story_session_state_procedure;
pub mod grant_inventory_item_input_type;
pub mod grant_new_user_registration_wallet_reward_procedure;
@@ -332,6 +345,7 @@ 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 list_square_hole_works_procedure;
pub mod match_3_d_agent_message_finalize_input_type;
pub mod match_3_d_agent_message_row_type;
pub mod match_3_d_agent_message_submit_input_type;
@@ -419,6 +433,7 @@ pub mod publish_custom_world_profile_reducer;
pub mod publish_custom_world_world_procedure;
pub mod publish_match_3_d_work_procedure;
pub mod publish_puzzle_work_procedure;
pub mod publish_square_hole_work_procedure;
pub mod put_database_migration_import_chunk_procedure;
pub mod puzzle_agent_message_finalize_input_type;
pub mod puzzle_agent_message_kind_type;
@@ -465,6 +480,7 @@ pub mod puzzle_work_remix_input_type;
pub mod puzzle_work_upsert_input_type;
pub mod puzzle_works_list_input_type;
pub mod puzzle_works_procedure_result_type;
pub mod query_analytics_metric_procedure;
pub mod quest_completion_ack_input_type;
pub mod quest_hostile_npc_defeated_signal_type;
pub mod quest_item_delivered_signal_type;
@@ -523,6 +539,7 @@ pub mod resolve_npc_social_action_reducer;
pub mod resolve_treasure_interaction_and_return_procedure;
pub mod resolve_treasure_interaction_reducer;
pub mod restart_match_3_d_run_procedure;
pub mod restart_square_hole_run_procedure;
pub mod resume_profile_save_archive_and_return_procedure;
pub mod revoke_database_migration_operator_procedure;
pub mod rpg_agent_draft_card_kind_type;
@@ -630,12 +647,43 @@ pub mod save_puzzle_form_draft_procedure;
pub mod save_puzzle_generated_images_procedure;
pub mod seed_analytics_date_dimensions_reducer;
pub mod select_puzzle_cover_image_procedure;
pub mod square_hole_agent_message_finalize_input_type;
pub mod square_hole_agent_message_row_type;
pub mod square_hole_agent_message_submit_input_type;
pub mod square_hole_agent_message_table;
pub mod square_hole_agent_session_create_input_type;
pub mod square_hole_agent_session_get_input_type;
pub mod square_hole_agent_session_procedure_result_type;
pub mod square_hole_agent_session_row_type;
pub mod square_hole_agent_session_table;
pub mod square_hole_draft_compile_input_type;
pub mod square_hole_drop_shape_procedure_result_type;
pub mod square_hole_run_drop_input_type;
pub mod square_hole_run_get_input_type;
pub mod square_hole_run_procedure_result_type;
pub mod square_hole_run_restart_input_type;
pub mod square_hole_run_start_input_type;
pub mod square_hole_run_stop_input_type;
pub mod square_hole_run_time_up_input_type;
pub mod square_hole_runtime_run_row_type;
pub mod square_hole_runtime_run_table;
pub mod square_hole_work_delete_input_type;
pub mod square_hole_work_get_input_type;
pub mod square_hole_work_procedure_result_type;
pub mod square_hole_work_profile_row_type;
pub mod square_hole_work_profile_table;
pub mod square_hole_work_publish_input_type;
pub mod square_hole_work_update_input_type;
pub mod square_hole_works_list_input_type;
pub mod square_hole_works_procedure_result_type;
pub mod start_ai_task_reducer;
pub mod start_ai_task_stage_reducer;
pub mod start_big_fish_run_procedure;
pub mod start_match_3_d_run_procedure;
pub mod start_puzzle_run_procedure;
pub mod start_square_hole_run_procedure;
pub mod stop_match_3_d_run_procedure;
pub mod stop_square_hole_run_procedure;
pub mod story_continue_input_type;
pub mod story_event_kind_type;
pub mod story_event_snapshot_type;
@@ -655,6 +703,7 @@ pub mod submit_custom_world_agent_message_procedure;
pub mod submit_match_3_d_agent_message_procedure;
pub mod submit_puzzle_agent_message_procedure;
pub mod submit_puzzle_leaderboard_entry_procedure;
pub mod submit_square_hole_agent_message_procedure;
pub mod swap_puzzle_pieces_procedure;
pub mod tracking_daily_stat_table;
pub mod tracking_daily_stat_type;
@@ -673,6 +722,7 @@ pub mod unpublish_custom_world_profile_reducer;
pub mod update_match_3_d_work_procedure;
pub mod update_puzzle_run_pause_procedure;
pub mod update_puzzle_work_procedure;
pub mod update_square_hole_work_procedure;
pub mod upsert_auth_store_snapshot_procedure;
pub mod upsert_chapter_progression_and_return_procedure;
pub mod upsert_chapter_progression_reducer;
@@ -690,12 +740,6 @@ pub mod user_account_type;
pub mod user_browse_history_table;
pub mod user_browse_history_type;
pub mod analytics_bucket_metric_type;
pub mod analytics_granularity_type;
pub mod analytics_metric_query_input_type;
pub mod analytics_metric_query_procedure_result_type;
pub mod query_analytics_metric_procedure;
pub use accept_quest_reducer::accept_quest;
pub use acknowledge_quest_completion_reducer::acknowledge_quest_completion;
pub use admin_disable_profile_redeem_code_procedure::admin_disable_profile_redeem_code;
@@ -738,11 +782,11 @@ pub use ai_text_chunk_append_input_type::AiTextChunkAppendInput;
pub use ai_text_chunk_snapshot_type::AiTextChunkSnapshot;
pub use ai_text_chunk_table::*;
pub use ai_text_chunk_type::AiTextChunk;
pub use analytics_bucket_metric_type::AnalyticsBucketMetric;
pub use analytics_date_dimension_ensure_input_type::AnalyticsDateDimensionEnsureInput;
pub use analytics_date_dimension_seed_input_type::AnalyticsDateDimensionSeedInput;
pub use analytics_date_dimension_table::*;
pub use analytics_date_dimension_type::AnalyticsDateDimension;
pub use analytics_bucket_metric_type::AnalyticsBucketMetric;
pub use analytics_granularity_type::AnalyticsGranularity;
pub use analytics_metric_query_input_type::AnalyticsMetricQueryInput;
pub use analytics_metric_query_procedure_result_type::AnalyticsMetricQueryProcedureResult;
@@ -856,6 +900,7 @@ 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_match_3_d_draft_procedure::compile_match_3_d_draft;
pub use compile_puzzle_agent_draft_procedure::compile_puzzle_agent_draft;
pub use compile_square_hole_draft_procedure::compile_square_hole_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;
@@ -873,6 +918,7 @@ pub use create_custom_world_agent_session_procedure::create_custom_world_agent_s
pub use create_match_3_d_agent_session_procedure::create_match_3_d_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 create_square_hole_agent_session_procedure::create_square_hole_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;
@@ -955,7 +1001,9 @@ pub use delete_custom_world_profile_and_return_procedure::delete_custom_world_pr
pub use delete_match_3_d_work_procedure::delete_match_3_d_work;
pub use delete_puzzle_work_procedure::delete_puzzle_work;
pub use delete_runtime_snapshot_and_return_procedure::delete_runtime_snapshot_and_return;
pub use delete_square_hole_work_procedure::delete_square_hole_work;
pub use drag_puzzle_piece_or_group_procedure::drag_puzzle_piece_or_group;
pub use drop_square_hole_shape_procedure::drop_square_hole_shape;
pub use ensure_analytics_date_dimension_for_date_reducer::ensure_analytics_date_dimension_for_date;
pub use equip_inventory_item_input_type::EquipInventoryItemInput;
pub use execute_custom_world_agent_action_procedure::execute_custom_world_agent_action;
@@ -966,7 +1014,9 @@ pub use finalize_big_fish_agent_message_turn_procedure::finalize_big_fish_agent_
pub use finalize_custom_world_agent_message_turn_procedure::finalize_custom_world_agent_message_turn;
pub use finalize_match_3_d_agent_message_turn_procedure::finalize_match_3_d_agent_message_turn;
pub use finalize_puzzle_agent_message_turn_procedure::finalize_puzzle_agent_message_turn;
pub use finalize_square_hole_agent_message_turn_procedure::finalize_square_hole_agent_message_turn;
pub use finish_match_3_d_time_up_procedure::finish_match_3_d_time_up;
pub use finish_square_hole_time_up_procedure::finish_square_hole_time_up;
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;
@@ -988,7 +1038,6 @@ 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_profile_task_center_procedure::get_profile_task_center;
pub use query_analytics_metric_procedure::query_analytics_metric;
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;
@@ -996,6 +1045,9 @@ 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_square_hole_agent_session_procedure::get_square_hole_agent_session;
pub use get_square_hole_run_procedure::get_square_hole_run;
pub use get_square_hole_work_detail_procedure::get_square_hole_work_detail;
pub use get_story_session_state_procedure::get_story_session_state;
pub use grant_inventory_item_input_type::GrantInventoryItemInput;
pub use grant_new_user_registration_wallet_reward_procedure::grant_new_user_registration_wallet_reward;
@@ -1027,6 +1079,7 @@ 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 list_square_hole_works_procedure::list_square_hole_works;
pub use match_3_d_agent_message_finalize_input_type::Match3DAgentMessageFinalizeInput;
pub use match_3_d_agent_message_row_type::Match3DAgentMessageRow;
pub use match_3_d_agent_message_submit_input_type::Match3DAgentMessageSubmitInput;
@@ -1114,6 +1167,7 @@ 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_match_3_d_work_procedure::publish_match_3_d_work;
pub use publish_puzzle_work_procedure::publish_puzzle_work;
pub use publish_square_hole_work_procedure::publish_square_hole_work;
pub use put_database_migration_import_chunk_procedure::put_database_migration_import_chunk;
pub use puzzle_agent_message_finalize_input_type::PuzzleAgentMessageFinalizeInput;
pub use puzzle_agent_message_kind_type::PuzzleAgentMessageKind;
@@ -1160,6 +1214,7 @@ pub use puzzle_work_remix_input_type::PuzzleWorkRemixInput;
pub use puzzle_work_upsert_input_type::PuzzleWorkUpsertInput;
pub use puzzle_works_list_input_type::PuzzleWorksListInput;
pub use puzzle_works_procedure_result_type::PuzzleWorksProcedureResult;
pub use query_analytics_metric_procedure::query_analytics_metric;
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;
@@ -1218,6 +1273,7 @@ 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 restart_match_3_d_run_procedure::restart_match_3_d_run;
pub use restart_square_hole_run_procedure::restart_square_hole_run;
pub use resume_profile_save_archive_and_return_procedure::resume_profile_save_archive_and_return;
pub use revoke_database_migration_operator_procedure::revoke_database_migration_operator;
pub use rpg_agent_draft_card_kind_type::RpgAgentDraftCardKind;
@@ -1325,12 +1381,43 @@ pub use save_puzzle_form_draft_procedure::save_puzzle_form_draft;
pub use save_puzzle_generated_images_procedure::save_puzzle_generated_images;
pub use seed_analytics_date_dimensions_reducer::seed_analytics_date_dimensions;
pub use select_puzzle_cover_image_procedure::select_puzzle_cover_image;
pub use square_hole_agent_message_finalize_input_type::SquareHoleAgentMessageFinalizeInput;
pub use square_hole_agent_message_row_type::SquareHoleAgentMessageRow;
pub use square_hole_agent_message_submit_input_type::SquareHoleAgentMessageSubmitInput;
pub use square_hole_agent_message_table::*;
pub use square_hole_agent_session_create_input_type::SquareHoleAgentSessionCreateInput;
pub use square_hole_agent_session_get_input_type::SquareHoleAgentSessionGetInput;
pub use square_hole_agent_session_procedure_result_type::SquareHoleAgentSessionProcedureResult;
pub use square_hole_agent_session_row_type::SquareHoleAgentSessionRow;
pub use square_hole_agent_session_table::*;
pub use square_hole_draft_compile_input_type::SquareHoleDraftCompileInput;
pub use square_hole_drop_shape_procedure_result_type::SquareHoleDropShapeProcedureResult;
pub use square_hole_run_drop_input_type::SquareHoleRunDropInput;
pub use square_hole_run_get_input_type::SquareHoleRunGetInput;
pub use square_hole_run_procedure_result_type::SquareHoleRunProcedureResult;
pub use square_hole_run_restart_input_type::SquareHoleRunRestartInput;
pub use square_hole_run_start_input_type::SquareHoleRunStartInput;
pub use square_hole_run_stop_input_type::SquareHoleRunStopInput;
pub use square_hole_run_time_up_input_type::SquareHoleRunTimeUpInput;
pub use square_hole_runtime_run_row_type::SquareHoleRuntimeRunRow;
pub use square_hole_runtime_run_table::*;
pub use square_hole_work_delete_input_type::SquareHoleWorkDeleteInput;
pub use square_hole_work_get_input_type::SquareHoleWorkGetInput;
pub use square_hole_work_procedure_result_type::SquareHoleWorkProcedureResult;
pub use square_hole_work_profile_row_type::SquareHoleWorkProfileRow;
pub use square_hole_work_profile_table::*;
pub use square_hole_work_publish_input_type::SquareHoleWorkPublishInput;
pub use square_hole_work_update_input_type::SquareHoleWorkUpdateInput;
pub use square_hole_works_list_input_type::SquareHoleWorksListInput;
pub use square_hole_works_procedure_result_type::SquareHoleWorksProcedureResult;
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_match_3_d_run_procedure::start_match_3_d_run;
pub use start_puzzle_run_procedure::start_puzzle_run;
pub use start_square_hole_run_procedure::start_square_hole_run;
pub use stop_match_3_d_run_procedure::stop_match_3_d_run;
pub use stop_square_hole_run_procedure::stop_square_hole_run;
pub use story_continue_input_type::StoryContinueInput;
pub use story_event_kind_type::StoryEventKind;
pub use story_event_snapshot_type::StoryEventSnapshot;
@@ -1350,6 +1437,7 @@ pub use submit_custom_world_agent_message_procedure::submit_custom_world_agent_m
pub use submit_match_3_d_agent_message_procedure::submit_match_3_d_agent_message;
pub use submit_puzzle_agent_message_procedure::submit_puzzle_agent_message;
pub use submit_puzzle_leaderboard_entry_procedure::submit_puzzle_leaderboard_entry;
pub use submit_square_hole_agent_message_procedure::submit_square_hole_agent_message;
pub use swap_puzzle_pieces_procedure::swap_puzzle_pieces;
pub use tracking_daily_stat_table::*;
pub use tracking_daily_stat_type::TrackingDailyStat;
@@ -1368,6 +1456,7 @@ pub use unpublish_custom_world_profile_reducer::unpublish_custom_world_profile;
pub use update_match_3_d_work_procedure::update_match_3_d_work;
pub use update_puzzle_run_pause_procedure::update_puzzle_run_pause;
pub use update_puzzle_work_procedure::update_puzzle_work;
pub use update_square_hole_work_procedure::update_square_hole_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;
@@ -1717,6 +1806,10 @@ pub struct DbUpdate {
refresh_session: __sdk::TableUpdate<RefreshSession>,
runtime_setting: __sdk::TableUpdate<RuntimeSetting>,
runtime_snapshot: __sdk::TableUpdate<RuntimeSnapshotRow>,
square_hole_agent_message: __sdk::TableUpdate<SquareHoleAgentMessageRow>,
square_hole_agent_session: __sdk::TableUpdate<SquareHoleAgentSessionRow>,
square_hole_runtime_run: __sdk::TableUpdate<SquareHoleRuntimeRunRow>,
square_hole_work_profile: __sdk::TableUpdate<SquareHoleWorkProfileRow>,
story_event: __sdk::TableUpdate<StoryEvent>,
story_session: __sdk::TableUpdate<StorySession>,
tracking_daily_stat: __sdk::TableUpdate<TrackingDailyStat>,
@@ -1914,6 +2007,18 @@ impl TryFrom<__ws::v2::TransactionUpdate> for DbUpdate {
"runtime_snapshot" => db_update
.runtime_snapshot
.append(runtime_snapshot_table::parse_table_update(table_update)?),
"square_hole_agent_message" => db_update.square_hole_agent_message.append(
square_hole_agent_message_table::parse_table_update(table_update)?,
),
"square_hole_agent_session" => db_update.square_hole_agent_session.append(
square_hole_agent_session_table::parse_table_update(table_update)?,
),
"square_hole_runtime_run" => db_update.square_hole_runtime_run.append(
square_hole_runtime_run_table::parse_table_update(table_update)?,
),
"square_hole_work_profile" => db_update.square_hole_work_profile.append(
square_hole_work_profile_table::parse_table_update(table_update)?,
),
"story_event" => db_update
.story_event
.append(story_event_table::parse_table_update(table_update)?),
@@ -2259,6 +2364,30 @@ impl __sdk::DbUpdate for DbUpdate {
diff.runtime_snapshot = cache
.apply_diff_to_table::<RuntimeSnapshotRow>("runtime_snapshot", &self.runtime_snapshot)
.with_updates_by_pk(|row| &row.user_id);
diff.square_hole_agent_message = cache
.apply_diff_to_table::<SquareHoleAgentMessageRow>(
"square_hole_agent_message",
&self.square_hole_agent_message,
)
.with_updates_by_pk(|row| &row.message_id);
diff.square_hole_agent_session = cache
.apply_diff_to_table::<SquareHoleAgentSessionRow>(
"square_hole_agent_session",
&self.square_hole_agent_session,
)
.with_updates_by_pk(|row| &row.session_id);
diff.square_hole_runtime_run = cache
.apply_diff_to_table::<SquareHoleRuntimeRunRow>(
"square_hole_runtime_run",
&self.square_hole_runtime_run,
)
.with_updates_by_pk(|row| &row.run_id);
diff.square_hole_work_profile = cache
.apply_diff_to_table::<SquareHoleWorkProfileRow>(
"square_hole_work_profile",
&self.square_hole_work_profile,
)
.with_updates_by_pk(|row| &row.profile_id);
diff.story_event = cache
.apply_diff_to_table::<StoryEvent>("story_event", &self.story_event)
.with_updates_by_pk(|row| &row.event_id);
@@ -2473,6 +2602,18 @@ impl __sdk::DbUpdate for DbUpdate {
"runtime_snapshot" => db_update
.runtime_snapshot
.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?),
"square_hole_agent_message" => db_update
.square_hole_agent_message
.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?),
"square_hole_agent_session" => db_update
.square_hole_agent_session
.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?),
"square_hole_runtime_run" => db_update
.square_hole_runtime_run
.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?),
"square_hole_work_profile" => db_update
.square_hole_work_profile
.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)?),
@@ -2687,6 +2828,18 @@ impl __sdk::DbUpdate for DbUpdate {
"runtime_snapshot" => db_update
.runtime_snapshot
.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?),
"square_hole_agent_message" => db_update
.square_hole_agent_message
.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?),
"square_hole_agent_session" => db_update
.square_hole_agent_session
.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?),
"square_hole_runtime_run" => db_update
.square_hole_runtime_run
.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?),
"square_hole_work_profile" => db_update
.square_hole_work_profile
.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)?),
@@ -2783,6 +2936,10 @@ pub struct AppliedDiff<'r> {
refresh_session: __sdk::TableAppliedDiff<'r, RefreshSession>,
runtime_setting: __sdk::TableAppliedDiff<'r, RuntimeSetting>,
runtime_snapshot: __sdk::TableAppliedDiff<'r, RuntimeSnapshotRow>,
square_hole_agent_message: __sdk::TableAppliedDiff<'r, SquareHoleAgentMessageRow>,
square_hole_agent_session: __sdk::TableAppliedDiff<'r, SquareHoleAgentSessionRow>,
square_hole_runtime_run: __sdk::TableAppliedDiff<'r, SquareHoleRuntimeRunRow>,
square_hole_work_profile: __sdk::TableAppliedDiff<'r, SquareHoleWorkProfileRow>,
story_event: __sdk::TableAppliedDiff<'r, StoryEvent>,
story_session: __sdk::TableAppliedDiff<'r, StorySession>,
tracking_daily_stat: __sdk::TableAppliedDiff<'r, TrackingDailyStat>,
@@ -3087,6 +3244,26 @@ impl<'r> __sdk::AppliedDiff<'r> for AppliedDiff<'r> {
&self.runtime_snapshot,
event,
);
callbacks.invoke_table_row_callbacks::<SquareHoleAgentMessageRow>(
"square_hole_agent_message",
&self.square_hole_agent_message,
event,
);
callbacks.invoke_table_row_callbacks::<SquareHoleAgentSessionRow>(
"square_hole_agent_session",
&self.square_hole_agent_session,
event,
);
callbacks.invoke_table_row_callbacks::<SquareHoleRuntimeRunRow>(
"square_hole_runtime_run",
&self.square_hole_runtime_run,
event,
);
callbacks.invoke_table_row_callbacks::<SquareHoleWorkProfileRow>(
"square_hole_work_profile",
&self.square_hole_work_profile,
event,
);
callbacks.invoke_table_row_callbacks::<StoryEvent>("story_event", &self.story_event, event);
callbacks.invoke_table_row_callbacks::<StorySession>(
"story_session",
@@ -3373,19 +3550,19 @@ impl __sdk::SubscriptionHandle for SubscriptionHandle {
/// either a [`DbConnection`] or an [`EventContext`] and operate on either.
pub trait RemoteDbContext:
__sdk::DbContext<
DbView = RemoteTables,
Reducers = RemoteReducers,
SubscriptionBuilder = __sdk::SubscriptionBuilder<RemoteModule>,
>
DbView = RemoteTables,
Reducers = RemoteReducers,
SubscriptionBuilder = __sdk::SubscriptionBuilder<RemoteModule>,
>
{
}
impl<
Ctx: __sdk::DbContext<
Ctx: __sdk::DbContext<
DbView = RemoteTables,
Reducers = RemoteReducers,
SubscriptionBuilder = __sdk::SubscriptionBuilder<RemoteModule>,
>,
> RemoteDbContext for Ctx
> RemoteDbContext for Ctx
{
}
@@ -3838,6 +4015,10 @@ impl __sdk::SpacetimeModule for RemoteModule {
refresh_session_table::register_table(client_cache);
runtime_setting_table::register_table(client_cache);
runtime_snapshot_table::register_table(client_cache);
square_hole_agent_message_table::register_table(client_cache);
square_hole_agent_session_table::register_table(client_cache);
square_hole_runtime_run_table::register_table(client_cache);
square_hole_work_profile_table::register_table(client_cache);
story_event_table::register_table(client_cache);
story_session_table::register_table(client_cache);
tracking_daily_stat_table::register_table(client_cache);
@@ -3907,6 +4088,10 @@ impl __sdk::SpacetimeModule for RemoteModule {
"refresh_session",
"runtime_setting",
"runtime_snapshot",
"square_hole_agent_message",
"square_hole_agent_session",
"square_hole_runtime_run",
"square_hole_work_profile",
"story_event",
"story_session",
"tracking_daily_stat",