持久化认证状态到 SpacetimeDB 正式表
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
use super::*;
|
||||
use crate::mapper::*;
|
||||
|
||||
impl SpacetimeClient {
|
||||
pub async fn list_custom_world_profiles(
|
||||
@@ -21,7 +22,6 @@ impl SpacetimeClient {
|
||||
.await
|
||||
}
|
||||
|
||||
|
||||
pub async fn get_custom_world_library_detail(
|
||||
&self,
|
||||
owner_user_id: String,
|
||||
@@ -45,12 +45,11 @@ impl SpacetimeClient {
|
||||
.await
|
||||
}
|
||||
|
||||
|
||||
pub async fn upsert_custom_world_profile(
|
||||
&self,
|
||||
input: CustomWorldProfileUpsertRecordInput,
|
||||
) -> Result<CustomWorldLibraryMutationRecord, SpacetimeClientError> {
|
||||
let procedure_input = map_custom_world_profile_upsert_input(input);
|
||||
let procedure_input = input.into();
|
||||
|
||||
self.call_after_connect(move |connection, sender| {
|
||||
connection
|
||||
@@ -65,7 +64,6 @@ impl SpacetimeClient {
|
||||
.await
|
||||
}
|
||||
|
||||
|
||||
pub async fn publish_custom_world_profile(
|
||||
&self,
|
||||
profile_id: String,
|
||||
@@ -97,7 +95,6 @@ impl SpacetimeClient {
|
||||
.await
|
||||
}
|
||||
|
||||
|
||||
pub async fn unpublish_custom_world_profile(
|
||||
&self,
|
||||
profile_id: String,
|
||||
@@ -128,7 +125,6 @@ impl SpacetimeClient {
|
||||
.await
|
||||
}
|
||||
|
||||
|
||||
pub async fn delete_custom_world_profile(
|
||||
&self,
|
||||
profile_id: String,
|
||||
@@ -154,7 +150,6 @@ impl SpacetimeClient {
|
||||
.await
|
||||
}
|
||||
|
||||
|
||||
pub async fn list_custom_world_gallery_entries(
|
||||
&self,
|
||||
) -> Result<Vec<CustomWorldGalleryEntryRecord>, SpacetimeClientError> {
|
||||
@@ -171,7 +166,6 @@ impl SpacetimeClient {
|
||||
.await
|
||||
}
|
||||
|
||||
|
||||
pub async fn get_custom_world_gallery_detail(
|
||||
&self,
|
||||
owner_user_id: String,
|
||||
@@ -195,7 +189,6 @@ impl SpacetimeClient {
|
||||
.await
|
||||
}
|
||||
|
||||
|
||||
pub async fn get_custom_world_gallery_detail_by_code(
|
||||
&self,
|
||||
public_work_code: String,
|
||||
@@ -215,12 +208,11 @@ impl SpacetimeClient {
|
||||
.await
|
||||
}
|
||||
|
||||
|
||||
pub async fn publish_custom_world_world(
|
||||
&self,
|
||||
input: CustomWorldPublishWorldRecordInput,
|
||||
) -> Result<CustomWorldPublishWorldRecord, SpacetimeClientError> {
|
||||
let procedure_input = map_custom_world_publish_world_input(input);
|
||||
let procedure_input = input.into();
|
||||
|
||||
self.call_after_connect(move |connection, sender| {
|
||||
connection.procedures().publish_custom_world_world_then(
|
||||
@@ -236,7 +228,6 @@ impl SpacetimeClient {
|
||||
.await
|
||||
}
|
||||
|
||||
|
||||
pub async fn create_custom_world_agent_session(
|
||||
&self,
|
||||
input: CustomWorldAgentSessionCreateRecordInput,
|
||||
@@ -275,7 +266,6 @@ impl SpacetimeClient {
|
||||
.await
|
||||
}
|
||||
|
||||
|
||||
pub async fn get_custom_world_agent_session(
|
||||
&self,
|
||||
session_id: String,
|
||||
@@ -300,7 +290,6 @@ impl SpacetimeClient {
|
||||
.await
|
||||
}
|
||||
|
||||
|
||||
pub async fn list_custom_world_works(
|
||||
&self,
|
||||
owner_user_id: String,
|
||||
@@ -321,7 +310,6 @@ impl SpacetimeClient {
|
||||
.await
|
||||
}
|
||||
|
||||
|
||||
pub async fn get_custom_world_agent_card_detail(
|
||||
&self,
|
||||
session_id: String,
|
||||
@@ -347,7 +335,6 @@ impl SpacetimeClient {
|
||||
.await
|
||||
}
|
||||
|
||||
|
||||
pub async fn execute_custom_world_agent_action(
|
||||
&self,
|
||||
input: CustomWorldAgentActionExecuteRecordInput,
|
||||
@@ -374,7 +361,6 @@ impl SpacetimeClient {
|
||||
.await
|
||||
}
|
||||
|
||||
|
||||
pub async fn submit_custom_world_agent_message(
|
||||
&self,
|
||||
input: CustomWorldAgentMessageSubmitRecordInput,
|
||||
@@ -401,7 +387,6 @@ impl SpacetimeClient {
|
||||
.await
|
||||
}
|
||||
|
||||
|
||||
pub async fn finalize_custom_world_agent_message(
|
||||
&self,
|
||||
input: CustomWorldAgentMessageFinalizeRecordInput,
|
||||
@@ -451,7 +436,6 @@ impl SpacetimeClient {
|
||||
.await
|
||||
}
|
||||
|
||||
|
||||
pub async fn get_custom_world_agent_operation(
|
||||
&self,
|
||||
session_id: String,
|
||||
@@ -476,6 +460,4 @@ impl SpacetimeClient {
|
||||
})
|
||||
.await
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user