1
This commit is contained in:
@@ -0,0 +1,179 @@
|
|||||||
|
# Custom World Agent 大模型对话恢复设计
|
||||||
|
|
||||||
|
日期:`2026-04-22`
|
||||||
|
|
||||||
|
## 1. 背景
|
||||||
|
|
||||||
|
当前 Rust `server-rs` 里的 Custom World Agent 聊天链路已经接上了会话、消息、operation 与 SSE 外壳,但**并没有真正调用大模型生成聊天回复**。
|
||||||
|
|
||||||
|
现状问题:
|
||||||
|
|
||||||
|
1. `submit_custom_world_agent_message` 在 `spacetime-module` 中直接写死 assistant 回复。
|
||||||
|
2. `/api/runtime/custom-world/agent/sessions/:sessionId/messages/stream` 只是把最后一条 assistant 文案一次性回放给前端。
|
||||||
|
3. 旧 `server-node` 已经实现过完整的大模型单轮推理链,包括:
|
||||||
|
- 动态状态识别
|
||||||
|
- 原样提示词拼装
|
||||||
|
- 流式 `replyText` 截取
|
||||||
|
- 回合结束后的 anchor / creator intent / readiness / clarification / suggested action 派生
|
||||||
|
|
||||||
|
用户本轮要求是:
|
||||||
|
|
||||||
|
1. 恢复 Agent 聊天对话使用大模型推理生成回复。
|
||||||
|
2. 把之前 Node 的提示词和后台流程恢复到 Rust 后端。
|
||||||
|
3. **禁止修改提示词正文。**
|
||||||
|
|
||||||
|
## 2. 目标
|
||||||
|
|
||||||
|
本轮只恢复 Custom World Agent 聊天主链的真实推理闭环:
|
||||||
|
|
||||||
|
1. 用户发消息后,assistant 回复必须来自大模型。
|
||||||
|
2. SSE `reply_delta` 必须来自真实流式推理增量。
|
||||||
|
3. 回合结束后要把 session 派生状态一次性回写到 SpacetimeDB。
|
||||||
|
4. 旧 Node `eightAnchorPrompts.ts` 的提示词正文保持原样,不改中文文案。
|
||||||
|
|
||||||
|
## 3. 约束
|
||||||
|
|
||||||
|
### 3.1 SpacetimeDB 约束
|
||||||
|
|
||||||
|
SpacetimeDB reducer / procedure 必须保持确定性,因此:
|
||||||
|
|
||||||
|
1. 禁止在 `spacetime-module` 内直接发起 LLM 网络请求。
|
||||||
|
2. LLM 调用必须放在 `api-server`。
|
||||||
|
3. `spacetime-module` 只负责提交消息、记录 operation、回写最终结果。
|
||||||
|
|
||||||
|
### 3.2 提示词冻结约束
|
||||||
|
|
||||||
|
本轮严格复用旧 Node 的以下提示词内容:
|
||||||
|
|
||||||
|
1. `server-node/src/prompts/eightAnchorPrompts.ts`
|
||||||
|
2. `BASE_SYSTEM_PROMPT`
|
||||||
|
3. `GLOBAL_HARD_RULES`
|
||||||
|
4. `MODE_RULES`
|
||||||
|
5. `USER_SIGNAL_RULES`
|
||||||
|
6. `QUICK_FILL_EXTRA_RULES`
|
||||||
|
7. `STATE_INFERENCE_SYSTEM_PROMPT`
|
||||||
|
8. `STATE_INFERENCE_OUTPUT_CONTRACT`
|
||||||
|
9. `OUTPUT_CONTRACT_REMINDER`
|
||||||
|
|
||||||
|
允许做的只有:
|
||||||
|
|
||||||
|
1. Rust 字符串字面量搬运
|
||||||
|
2. Rust 函数式重组
|
||||||
|
3. Rust/Serde 语法等价改写
|
||||||
|
|
||||||
|
不允许:
|
||||||
|
|
||||||
|
1. 修改提示词正文
|
||||||
|
2. 调整规则措辞
|
||||||
|
3. 替换成新的 prompt 版本
|
||||||
|
|
||||||
|
## 4. 目标链路
|
||||||
|
|
||||||
|
恢复后的消息链路改成两阶段:
|
||||||
|
|
||||||
|
### 4.1 阶段 A:提交消息
|
||||||
|
|
||||||
|
`submit_custom_world_agent_message`
|
||||||
|
|
||||||
|
职责:
|
||||||
|
|
||||||
|
1. 校验 session / message / operation id。
|
||||||
|
2. 只写入 user message。
|
||||||
|
3. 创建 `process_message` operation。
|
||||||
|
4. operation 初始状态写为 `running`。
|
||||||
|
5. 不直接写 assistant message。
|
||||||
|
6. 不直接推进 progress / stage / current_turn。
|
||||||
|
|
||||||
|
### 4.2 阶段 B:完成单轮推理
|
||||||
|
|
||||||
|
`finalize_custom_world_agent_message_turn`
|
||||||
|
|
||||||
|
职责:
|
||||||
|
|
||||||
|
1. 校验 session 与 operation 所属关系。
|
||||||
|
2. 追加 assistant message。
|
||||||
|
3. 回写 session 聚合字段:
|
||||||
|
- `current_turn`
|
||||||
|
- `progress_percent`
|
||||||
|
- `stage`
|
||||||
|
- `focus_card_id`
|
||||||
|
- `anchor_content_json`
|
||||||
|
- `creator_intent_json`
|
||||||
|
- `creator_intent_readiness_json`
|
||||||
|
- `anchor_pack_json`
|
||||||
|
- `draft_profile_json`
|
||||||
|
- `last_assistant_reply`
|
||||||
|
- `pending_clarifications_json`
|
||||||
|
- `suggested_actions_json`
|
||||||
|
- `recommended_replies_json`
|
||||||
|
- `quality_findings_json`
|
||||||
|
- `asset_coverage_json`
|
||||||
|
3. 更新对应 operation 为 `completed` 或 `failed`。
|
||||||
|
|
||||||
|
## 5. `api-server` 责任
|
||||||
|
|
||||||
|
`api-server` 新增 Custom World Agent turn service,负责:
|
||||||
|
|
||||||
|
1. 读取当前 session 快照。
|
||||||
|
2. 按旧 Node 逻辑构造 chat history。
|
||||||
|
3. 先走“动态状态识别”推理。
|
||||||
|
4. 再走“正式单轮输出”推理。
|
||||||
|
5. 流式阶段从 JSON 片段里增量截取 `replyText`,持续往 SSE 发 `reply_delta`。
|
||||||
|
6. 回合结束后派生:
|
||||||
|
- creator intent
|
||||||
|
- readiness
|
||||||
|
- pending clarifications
|
||||||
|
- suggested actions
|
||||||
|
- anchor pack
|
||||||
|
- draft profile
|
||||||
|
- quality findings
|
||||||
|
- asset coverage
|
||||||
|
7. 最后调用 SpacetimeDB finalize procedure 回写真相。
|
||||||
|
|
||||||
|
## 6. 旧 Node 逻辑恢复范围
|
||||||
|
|
||||||
|
本轮恢复以下旧 Node 行为:
|
||||||
|
|
||||||
|
1. `eightAnchorPrompts.ts`
|
||||||
|
2. `eightAnchorSingleTurnService.ts`
|
||||||
|
3. `customWorldAgentMessageTurnService.ts`
|
||||||
|
4. `customWorldAgentClarificationService.ts`
|
||||||
|
5. `customWorldAgentIntentExtractionService.ts`
|
||||||
|
6. `customWorldAgentSuggestedActionService.ts`
|
||||||
|
7. `eightAnchorCompatibilityService.ts` 中聊天链需要的 anchor / progress 派生
|
||||||
|
|
||||||
|
本轮不强制一比一恢复整条结果页重编译链,只恢复聊天链真正依赖的最小派生结果。
|
||||||
|
|
||||||
|
## 7. SSE 口径
|
||||||
|
|
||||||
|
恢复后 `/messages/stream` 必须按以下顺序输出:
|
||||||
|
|
||||||
|
1. 多个 `reply_delta`
|
||||||
|
2. 一个 `session`
|
||||||
|
3. 一个 `done`
|
||||||
|
|
||||||
|
错误时输出:
|
||||||
|
|
||||||
|
1. `error`
|
||||||
|
|
||||||
|
要求:
|
||||||
|
|
||||||
|
1. `reply_delta.text` 来源于 `platform-llm.stream_text(...)` 的真实增量。
|
||||||
|
2. `session` 必须来自 finalize 完成后的最新 session 真相。
|
||||||
|
|
||||||
|
## 8. 验收
|
||||||
|
|
||||||
|
1. 用户发一条 Agent 消息后,assistant 回复不再是固定文案。
|
||||||
|
2. `quickFillRequested=true` 时,推理结果仍遵循旧 Node 的 `force_complete` 逻辑。
|
||||||
|
3. SSE 能先看到逐步增长的 `reply_delta`,而不是一次性整段返回。
|
||||||
|
4. finalize 完成后,前端拿到的 session 中:
|
||||||
|
- `lastAssistantReply`
|
||||||
|
- `messages`
|
||||||
|
- `currentTurn`
|
||||||
|
- `progressPercent`
|
||||||
|
- `stage`
|
||||||
|
- `pendingClarifications`
|
||||||
|
- `suggestedActions`
|
||||||
|
已被真实更新。
|
||||||
|
5. 提示词正文未被改写。
|
||||||
|
|
||||||
@@ -99,10 +99,9 @@
|
|||||||
这次实际是前后端两层边界叠加:
|
这次实际是前后端两层边界叠加:
|
||||||
|
|
||||||
1. Node 代理路由 `server-node/src/routes/puzzleProxyRoutes.ts` 已经完成外层 JWT 校验,并把用户 id 通过内部转发头带给 Rust API。
|
1. Node 代理路由 `server-node/src/routes/puzzleProxyRoutes.ts` 已经完成外层 JWT 校验,并把用户 id 通过内部转发头带给 Rust API。
|
||||||
2. Rust API `server-rs/crates/api-server/src/auth.rs` 之前只允许 `big-fish` 路径信任这类内部转发头,没有把 `/api/runtime/puzzle/**` 纳入白名单。
|
2. Rust API `server-rs/crates/api-server/src/auth.rs` 现已允许 `/api/runtime/puzzle/**` 复用内部已鉴权转发头;如果本地进程未重启到新代码,仍可能出现旧行为。
|
||||||
3. 因此拼图代理链路会在 Node 首层通过后,Rust 二跳再次因为“缺少 Bearer”返回 `401`。
|
3. 前端 `fetchWithApiAuth(...)` 在“首个 401 -> refresh 成功 -> 重试后的业务请求仍 401”时,旧实现会把刚刷新到的 token 清掉并广播一次全局鉴权变更。
|
||||||
4. 前端 `fetchWithApiAuth(...)` 在“首个 401 -> refresh 成功 -> 重试后的业务请求仍 401”时,又会把刚刷新到的 token 清掉并广播一次全局鉴权变更。
|
4. `AuthGate` 监听到事件后重新 hydrate,平台入口又重新预取拼图作品列表,于是形成循环。
|
||||||
5. `AuthGate` 监听到事件后重新 hydrate,平台入口又重新预取拼图作品列表,于是形成循环。
|
|
||||||
|
|
||||||
### 6.3 修复策略
|
### 6.3 修复策略
|
||||||
|
|
||||||
@@ -110,7 +109,8 @@
|
|||||||
- `/api/runtime/big-fish/**`
|
- `/api/runtime/big-fish/**`
|
||||||
- `/api/runtime/puzzle/**`
|
- `/api/runtime/puzzle/**`
|
||||||
2. 前端 `fetchWithApiAuth(...)` 调整 401 后置处理:
|
2. 前端 `fetchWithApiAuth(...)` 调整 401 后置处理:
|
||||||
- 只有“尚未尝试 refresh”的 401,才清 token 并广播鉴权变化
|
- refresh 成功后不再立即广播全局鉴权变化
|
||||||
|
- 只有“尚未尝试 refresh 且最终确认登录态失效”的 401,才清 token 并广播鉴权变化
|
||||||
- 若 refresh 已成功,但重试请求仍返回 401,则保留新 token,把失败收敛为当前业务请求自身错误
|
- 若 refresh 已成功,但重试请求仍返回 401,则保留新 token,把失败收敛为当前业务请求自身错误
|
||||||
3. 补充请求层回归测试,覆盖“refresh 成功但重试仍 401”的场景。
|
3. 补充请求层回归测试,覆盖“refresh 成功但重试仍 401”的场景。
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
## 文档列表
|
## 文档列表
|
||||||
|
|
||||||
|
- [CUSTOM_WORLD_AGENT_LLM_REPLY_RESTORE_2026-04-22.md](./CUSTOM_WORLD_AGENT_LLM_REPLY_RESTORE_2026-04-22.md):恢复 Custom World Agent 聊天必须走大模型推理的 Rust 落地方案,冻结 submit/finalize 两阶段职责、旧 Node 提示词原样搬运、SSE 流式回复与 session 回写边界。
|
||||||
- [CREATION_HUB_CARD_ACTIONS_2026-04-22.md](./CREATION_HUB_CARD_ACTIONS_2026-04-22.md):冻结创作中心作品卡“体验 / 删除”入口的最小落地语义,明确 RPG 已发布作品软删除、卡片直达运行时,以及暂不扩草稿 / 拼图删除契约。
|
- [CREATION_HUB_CARD_ACTIONS_2026-04-22.md](./CREATION_HUB_CARD_ACTIONS_2026-04-22.md):冻结创作中心作品卡“体验 / 删除”入口的最小落地语义,明确 RPG 已发布作品软删除、卡片直达运行时,以及暂不扩草稿 / 拼图删除契约。
|
||||||
- [CREATION_CATEGORY_OPENING_TIMEOUT_GUARD_FIX_2026-04-22.md](./CREATION_CATEGORY_OPENING_TIMEOUT_GUARD_FIX_2026-04-22.md):记录创作中心点击类别后长时间停留在“正在开启”的根因与修复口径,收口前端创建会话启动超时、中文错误提示以及 Big Fish / 拼图代理上游超时兜底。
|
- [CREATION_CATEGORY_OPENING_TIMEOUT_GUARD_FIX_2026-04-22.md](./CREATION_CATEGORY_OPENING_TIMEOUT_GUARD_FIX_2026-04-22.md):记录创作中心点击类别后长时间停留在“正在开启”的根因与修复口径,收口前端创建会话启动超时、中文错误提示以及 Big Fish / 拼图代理上游超时兜底。
|
||||||
- [RUST_LOCAL_AND_REMOTE_DEPLOYMENT_SCRIPTS_2026-04-22.md](./RUST_LOCAL_AND_REMOTE_DEPLOYMENT_SCRIPTS_2026-04-22.md):冻结 Rust 本地一键联调脚本与 Ubuntu 发布包构建脚本的执行口径,覆盖 `npm run dev:rust`、`npm run build:rust:ubuntu`、Vite release、Linux `api-server`、SpacetimeDB wasm、启动停止脚本、默认 scp 上传和安全清库开关。
|
- [RUST_LOCAL_AND_REMOTE_DEPLOYMENT_SCRIPTS_2026-04-22.md](./RUST_LOCAL_AND_REMOTE_DEPLOYMENT_SCRIPTS_2026-04-22.md):冻结 Rust 本地一键联调脚本与 Ubuntu 发布包构建脚本的执行口径,覆盖 `npm run dev:rust`、`npm run build:rust:ubuntu`、Vite release、Linux `api-server`、SpacetimeDB wasm、启动停止脚本、默认 scp 上传和安全清库开关。
|
||||||
|
|||||||
23
server-rs/Cargo.lock
generated
23
server-rs/Cargo.lock
generated
@@ -69,6 +69,7 @@ checksum = "170433209e817da6aae2c51aa0dd443009a613425dd041ebfb2492d1c4c11a25"
|
|||||||
name = "api-server"
|
name = "api-server"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
"async-stream",
|
||||||
"axum",
|
"axum",
|
||||||
"base64 0.22.1",
|
"base64 0.22.1",
|
||||||
"bytes",
|
"bytes",
|
||||||
@@ -145,6 +146,28 @@ version = "0.7.6"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50"
|
checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "async-stream"
|
||||||
|
version = "0.3.6"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "0b5a71a6f37880a80d1d7f19efd781e4b5de42c88f0722cc13bcb6cc2cfe8476"
|
||||||
|
dependencies = [
|
||||||
|
"async-stream-impl",
|
||||||
|
"futures-core",
|
||||||
|
"pin-project-lite",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "async-stream-impl"
|
||||||
|
version = "0.3.6"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "c7c24de15d275a1ecfd47a380fb4d5ec9bfe0933f309ed5e705b775596a3574d"
|
||||||
|
dependencies = [
|
||||||
|
"proc-macro2",
|
||||||
|
"quote",
|
||||||
|
"syn",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "atomic-waker"
|
name = "atomic-waker"
|
||||||
version = "1.1.2"
|
version = "1.1.2"
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ version.workspace = true
|
|||||||
license.workspace = true
|
license.workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
async-stream = "0.3"
|
||||||
axum = "0.8"
|
axum = "0.8"
|
||||||
base64 = "0.22"
|
base64 = "0.22"
|
||||||
bytes = "1"
|
bytes = "1"
|
||||||
|
|||||||
@@ -41,6 +41,9 @@ use std::convert::Infallible;
|
|||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
api_response::json_success_body, auth::AuthenticatedAccessToken, http_error::AppError,
|
api_response::json_success_body, auth::AuthenticatedAccessToken, http_error::AppError,
|
||||||
|
custom_world_agent_turn::{
|
||||||
|
CustomWorldAgentTurnRequest, build_finalize_record_input, run_custom_world_agent_turn,
|
||||||
|
},
|
||||||
request_context::RequestContext, state::AppState,
|
request_context::RequestContext, state::AppState,
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -528,21 +531,56 @@ pub async fn submit_custom_world_agent_message(
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let owner_user_id = authenticated.claims().user_id().to_string();
|
||||||
|
let operation_id = build_prefixed_uuid_id("operation-");
|
||||||
|
let submitted_at_micros = current_utc_micros();
|
||||||
let operation = state
|
let operation = state
|
||||||
.spacetime_client()
|
.spacetime_client()
|
||||||
.submit_custom_world_agent_message(CustomWorldAgentMessageSubmitRecordInput {
|
.submit_custom_world_agent_message(CustomWorldAgentMessageSubmitRecordInput {
|
||||||
session_id,
|
session_id: session_id.clone(),
|
||||||
owner_user_id: authenticated.claims().user_id().to_string(),
|
owner_user_id: owner_user_id.clone(),
|
||||||
user_message_id: client_message_id,
|
user_message_id: client_message_id,
|
||||||
user_message_text: message_text,
|
user_message_text: message_text,
|
||||||
operation_id: build_prefixed_uuid_id("operation-"),
|
operation_id: operation_id.clone(),
|
||||||
submitted_at_micros: current_utc_micros(),
|
submitted_at_micros,
|
||||||
})
|
})
|
||||||
.await
|
.await
|
||||||
.map_err(|error| {
|
.map_err(|error| {
|
||||||
custom_world_error_response(&request_context, map_custom_world_client_error(error))
|
custom_world_error_response(&request_context, map_custom_world_client_error(error))
|
||||||
})?;
|
})?;
|
||||||
|
|
||||||
|
let session = state
|
||||||
|
.spacetime_client()
|
||||||
|
.get_custom_world_agent_session(session_id.clone(), owner_user_id.clone())
|
||||||
|
.await
|
||||||
|
.map_err(|error| {
|
||||||
|
custom_world_error_response(&request_context, map_custom_world_client_error(error))
|
||||||
|
})?;
|
||||||
|
let turn_result = run_custom_world_agent_turn(
|
||||||
|
CustomWorldAgentTurnRequest {
|
||||||
|
llm_client: state.llm_client(),
|
||||||
|
session: &session,
|
||||||
|
quick_fill_requested: payload.quick_fill_requested.unwrap_or(false),
|
||||||
|
focus_card_id: payload.focus_card_id.clone(),
|
||||||
|
},
|
||||||
|
|_| {},
|
||||||
|
)
|
||||||
|
.await;
|
||||||
|
state
|
||||||
|
.spacetime_client()
|
||||||
|
.finalize_custom_world_agent_message(build_finalize_record_input(
|
||||||
|
session_id,
|
||||||
|
owner_user_id,
|
||||||
|
operation_id,
|
||||||
|
format!("assistant-{}", operation.operation_id),
|
||||||
|
turn_result,
|
||||||
|
current_utc_micros(),
|
||||||
|
))
|
||||||
|
.await
|
||||||
|
.map_err(|error| {
|
||||||
|
custom_world_error_response(&request_context, map_custom_world_client_error(error))
|
||||||
|
})?;
|
||||||
|
|
||||||
Ok(json_success_body(
|
Ok(json_success_body(
|
||||||
Some(&request_context),
|
Some(&request_context),
|
||||||
json!({
|
json!({
|
||||||
@@ -591,7 +629,7 @@ pub async fn stream_custom_world_agent_message(
|
|||||||
}
|
}
|
||||||
|
|
||||||
let owner_user_id = authenticated.claims().user_id().to_string();
|
let owner_user_id = authenticated.claims().user_id().to_string();
|
||||||
state
|
let operation = state
|
||||||
.spacetime_client()
|
.spacetime_client()
|
||||||
.submit_custom_world_agent_message(CustomWorldAgentMessageSubmitRecordInput {
|
.submit_custom_world_agent_message(CustomWorldAgentMessageSubmitRecordInput {
|
||||||
session_id: session_id.clone(),
|
session_id: session_id.clone(),
|
||||||
@@ -607,31 +645,63 @@ pub async fn stream_custom_world_agent_message(
|
|||||||
})?;
|
})?;
|
||||||
|
|
||||||
let session = state
|
let session = state
|
||||||
|
.spacetime_client()
|
||||||
|
.get_custom_world_agent_session(session_id.clone(), owner_user_id.clone())
|
||||||
|
.await
|
||||||
|
.map_err(|error| {
|
||||||
|
custom_world_error_response(&request_context, map_custom_world_client_error(error))
|
||||||
|
})?;
|
||||||
|
let mut reply_updates = Vec::<String>::new();
|
||||||
|
let turn_result = run_custom_world_agent_turn(
|
||||||
|
CustomWorldAgentTurnRequest {
|
||||||
|
llm_client: state.llm_client(),
|
||||||
|
session: &session,
|
||||||
|
quick_fill_requested: payload.quick_fill_requested.unwrap_or(false),
|
||||||
|
focus_card_id: payload.focus_card_id.clone(),
|
||||||
|
},
|
||||||
|
|text| {
|
||||||
|
reply_updates.push(text.to_string());
|
||||||
|
},
|
||||||
|
)
|
||||||
|
.await;
|
||||||
|
state
|
||||||
|
.spacetime_client()
|
||||||
|
.finalize_custom_world_agent_message(build_finalize_record_input(
|
||||||
|
session_id.clone(),
|
||||||
|
owner_user_id.clone(),
|
||||||
|
operation.operation_id.clone(),
|
||||||
|
format!("assistant-{}", operation.operation_id),
|
||||||
|
turn_result,
|
||||||
|
current_utc_micros(),
|
||||||
|
))
|
||||||
|
.await
|
||||||
|
.map_err(|error| {
|
||||||
|
custom_world_error_response(&request_context, map_custom_world_client_error(error))
|
||||||
|
})?;
|
||||||
|
let final_session = state
|
||||||
.spacetime_client()
|
.spacetime_client()
|
||||||
.get_custom_world_agent_session(session_id, owner_user_id)
|
.get_custom_world_agent_session(session_id, owner_user_id)
|
||||||
.await
|
.await
|
||||||
.map_err(|error| {
|
.map_err(|error| {
|
||||||
custom_world_error_response(&request_context, map_custom_world_client_error(error))
|
custom_world_error_response(&request_context, map_custom_world_client_error(error))
|
||||||
})?;
|
})?;
|
||||||
let session_response = map_custom_world_agent_session_response(session);
|
let session_response = map_custom_world_agent_session_response(final_session);
|
||||||
let reply_text = resolve_stream_reply_text(&session_response);
|
|
||||||
|
|
||||||
// 这里仍保持“一次性返回完整事件序列”的兼容语义;
|
let mut events = reply_updates
|
||||||
// SSE 编码、标准响应头与 body frame 交给 Axum 内建实现维护。
|
.into_iter()
|
||||||
let events = vec![
|
.map(|text| custom_world_sse_json_event("reply_delta", json!({ "text": text })))
|
||||||
custom_world_sse_json_event("reply_delta", json!({ "text": reply_text }))
|
.collect::<Result<Vec<_>, _>>()
|
||||||
.map_err(|error| custom_world_error_response(&request_context, error))?,
|
.map_err(|error| custom_world_error_response(&request_context, error))?;
|
||||||
|
events.push(
|
||||||
custom_world_sse_json_event("session", json!({ "session": session_response }))
|
custom_world_sse_json_event("session", json!({ "session": session_response }))
|
||||||
.map_err(|error| custom_world_error_response(&request_context, error))?,
|
.map_err(|error| custom_world_error_response(&request_context, error))?,
|
||||||
|
);
|
||||||
|
events.push(
|
||||||
custom_world_sse_json_event("done", json!({ "ok": true }))
|
custom_world_sse_json_event("done", json!({ "ok": true }))
|
||||||
.map_err(|error| custom_world_error_response(&request_context, error))?,
|
.map_err(|error| custom_world_error_response(&request_context, error))?,
|
||||||
];
|
|
||||||
let stream = tokio_stream::iter(
|
|
||||||
events
|
|
||||||
.into_iter()
|
|
||||||
.map(|event| Ok::<Event, Infallible>(event)),
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
let stream = tokio_stream::iter(events.into_iter().map(|event| Ok::<Event, Infallible>(event)));
|
||||||
Ok(Sse::new(stream).into_response())
|
Ok(Sse::new(stream).into_response())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
2011
server-rs/crates/api-server/src/custom_world_agent_turn.rs
Normal file
2011
server-rs/crates/api-server/src/custom_world_agent_turn.rs
Normal file
File diff suppressed because it is too large
Load Diff
@@ -11,6 +11,7 @@ mod character_animation_assets;
|
|||||||
mod character_visual_assets;
|
mod character_visual_assets;
|
||||||
mod config;
|
mod config;
|
||||||
mod custom_world;
|
mod custom_world;
|
||||||
|
mod custom_world_agent_turn;
|
||||||
mod custom_world_ai;
|
mod custom_world_ai;
|
||||||
mod error_middleware;
|
mod error_middleware;
|
||||||
mod health;
|
mod health;
|
||||||
|
|||||||
@@ -508,6 +508,35 @@ pub struct CustomWorldAgentMessageSubmitInput {
|
|||||||
pub submitted_at_micros: i64,
|
pub submitted_at_micros: i64,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg_attr(feature = "spacetime-types", derive(SpacetimeType))]
|
||||||
|
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
|
||||||
|
pub struct CustomWorldAgentMessageFinalizeInput {
|
||||||
|
pub session_id: String,
|
||||||
|
pub owner_user_id: String,
|
||||||
|
pub operation_id: String,
|
||||||
|
pub assistant_message_id: String,
|
||||||
|
pub assistant_reply_text: String,
|
||||||
|
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<String>,
|
||||||
|
pub anchor_content_json: String,
|
||||||
|
pub creator_intent_json: Option<String>,
|
||||||
|
pub creator_intent_readiness_json: String,
|
||||||
|
pub anchor_pack_json: Option<String>,
|
||||||
|
pub draft_profile_json: Option<String>,
|
||||||
|
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<String>,
|
||||||
|
pub updated_at_micros: i64,
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg_attr(feature = "spacetime-types", derive(SpacetimeType))]
|
#[cfg_attr(feature = "spacetime-types", derive(SpacetimeType))]
|
||||||
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
|
||||||
pub struct CustomWorldAgentOperationGetInput {
|
pub struct CustomWorldAgentOperationGetInput {
|
||||||
@@ -1070,6 +1099,47 @@ pub fn validate_custom_world_agent_message_submit_input(
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn validate_custom_world_agent_message_finalize_input(
|
||||||
|
input: &CustomWorldAgentMessageFinalizeInput,
|
||||||
|
) -> Result<(), CustomWorldFieldError> {
|
||||||
|
if input.owner_user_id.trim().is_empty() {
|
||||||
|
return Err(CustomWorldFieldError::MissingOwnerUserId);
|
||||||
|
}
|
||||||
|
|
||||||
|
validate_custom_world_agent_message_fields(
|
||||||
|
&input.assistant_message_id,
|
||||||
|
&input.session_id,
|
||||||
|
&input.assistant_reply_text,
|
||||||
|
)?;
|
||||||
|
validate_custom_world_agent_operation_fields(
|
||||||
|
&input.operation_id,
|
||||||
|
&input.session_id,
|
||||||
|
&input.phase_label,
|
||||||
|
input.operation_progress,
|
||||||
|
)?;
|
||||||
|
validate_custom_world_agent_session_fields(
|
||||||
|
&input.session_id,
|
||||||
|
&input.owner_user_id,
|
||||||
|
&input.anchor_content_json,
|
||||||
|
&input.creator_intent_readiness_json,
|
||||||
|
&input.pending_clarifications_json,
|
||||||
|
&input.asset_coverage_json,
|
||||||
|
input.progress_percent,
|
||||||
|
)?;
|
||||||
|
ensure_json_object(&input.anchor_content_json)?;
|
||||||
|
ensure_optional_json_object(input.creator_intent_json.as_deref())?;
|
||||||
|
ensure_json_object(&input.creator_intent_readiness_json)?;
|
||||||
|
ensure_optional_json_object(input.anchor_pack_json.as_deref())?;
|
||||||
|
ensure_optional_json_object(input.draft_profile_json.as_deref())?;
|
||||||
|
ensure_json_array(&input.pending_clarifications_json)?;
|
||||||
|
ensure_json_array(&input.suggested_actions_json)?;
|
||||||
|
ensure_json_array(&input.recommended_replies_json)?;
|
||||||
|
ensure_json_array(&input.quality_findings_json)?;
|
||||||
|
ensure_json_object(&input.asset_coverage_json)?;
|
||||||
|
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
|
|
||||||
pub fn validate_custom_world_agent_operation_get_input(
|
pub fn validate_custom_world_agent_operation_get_input(
|
||||||
input: &CustomWorldAgentOperationGetInput,
|
input: &CustomWorldAgentOperationGetInput,
|
||||||
) -> Result<(), CustomWorldFieldError> {
|
) -> Result<(), CustomWorldFieldError> {
|
||||||
@@ -1656,6 +1726,41 @@ mod tests {
|
|||||||
assert_eq!(error, CustomWorldFieldError::MissingProfileId);
|
assert_eq!(error, CustomWorldFieldError::MissingProfileId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn agent_message_finalize_requires_valid_json_payloads() {
|
||||||
|
let error = validate_custom_world_agent_message_finalize_input(
|
||||||
|
&CustomWorldAgentMessageFinalizeInput {
|
||||||
|
session_id: "session_001".to_string(),
|
||||||
|
owner_user_id: "user_001".to_string(),
|
||||||
|
operation_id: "operation_001".to_string(),
|
||||||
|
assistant_message_id: "message_001".to_string(),
|
||||||
|
assistant_reply_text: "已生成回复".to_string(),
|
||||||
|
phase_label: "消息已处理".to_string(),
|
||||||
|
phase_detail: "这一轮已完成推理并写回".to_string(),
|
||||||
|
operation_status: RpgAgentOperationStatus::Completed,
|
||||||
|
operation_progress: 100,
|
||||||
|
stage: RpgAgentStage::FoundationReview,
|
||||||
|
progress_percent: 100,
|
||||||
|
focus_card_id: None,
|
||||||
|
anchor_content_json: "[]".to_string(),
|
||||||
|
creator_intent_json: Some("{}".to_string()),
|
||||||
|
creator_intent_readiness_json: "{}".to_string(),
|
||||||
|
anchor_pack_json: Some("{}".to_string()),
|
||||||
|
draft_profile_json: Some("{}".to_string()),
|
||||||
|
pending_clarifications_json: "[]".to_string(),
|
||||||
|
suggested_actions_json: "[]".to_string(),
|
||||||
|
recommended_replies_json: "[]".to_string(),
|
||||||
|
quality_findings_json: "[]".to_string(),
|
||||||
|
asset_coverage_json: "{}".to_string(),
|
||||||
|
error_message: None,
|
||||||
|
updated_at_micros: 1,
|
||||||
|
},
|
||||||
|
)
|
||||||
|
.expect_err("invalid anchor content should fail");
|
||||||
|
|
||||||
|
assert_eq!(error, CustomWorldFieldError::InvalidJsonPayload);
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn published_profile_compile_merges_legacy_theme_and_latest_assets() {
|
fn published_profile_compile_merges_legacy_theme_and_latest_assets() {
|
||||||
let snapshot = build_custom_world_published_profile_compile_snapshot(
|
let snapshot = build_custom_world_published_profile_compile_snapshot(
|
||||||
|
|||||||
@@ -154,6 +154,7 @@ use crate::module_bindings::{
|
|||||||
CustomWorldAgentActionExecuteInput as BindingCustomWorldAgentActionExecuteInput,
|
CustomWorldAgentActionExecuteInput as BindingCustomWorldAgentActionExecuteInput,
|
||||||
CustomWorldAgentActionExecuteResult as BindingCustomWorldAgentActionExecuteResult,
|
CustomWorldAgentActionExecuteResult as BindingCustomWorldAgentActionExecuteResult,
|
||||||
CustomWorldAgentCardDetailGetInput as BindingCustomWorldAgentCardDetailGetInput,
|
CustomWorldAgentCardDetailGetInput as BindingCustomWorldAgentCardDetailGetInput,
|
||||||
|
CustomWorldAgentMessageFinalizeInput as BindingCustomWorldAgentMessageFinalizeInput,
|
||||||
CustomWorldAgentMessageSnapshot as BindingCustomWorldAgentMessageSnapshot,
|
CustomWorldAgentMessageSnapshot as BindingCustomWorldAgentMessageSnapshot,
|
||||||
CustomWorldAgentMessageSubmitInput as BindingCustomWorldAgentMessageSubmitInput,
|
CustomWorldAgentMessageSubmitInput as BindingCustomWorldAgentMessageSubmitInput,
|
||||||
CustomWorldAgentOperationGetInput as BindingCustomWorldAgentOperationGetInput,
|
CustomWorldAgentOperationGetInput as BindingCustomWorldAgentOperationGetInput,
|
||||||
@@ -290,6 +291,7 @@ use crate::module_bindings::{
|
|||||||
drag_puzzle_piece_or_group_procedure::drag_puzzle_piece_or_group as _,
|
drag_puzzle_piece_or_group_procedure::drag_puzzle_piece_or_group as _,
|
||||||
execute_custom_world_agent_action_procedure::execute_custom_world_agent_action as _,
|
execute_custom_world_agent_action_procedure::execute_custom_world_agent_action as _,
|
||||||
fail_ai_task_and_return_procedure::fail_ai_task_and_return as _,
|
fail_ai_task_and_return_procedure::fail_ai_task_and_return as _,
|
||||||
|
finalize_custom_world_agent_message_turn_procedure::finalize_custom_world_agent_message_turn as _,
|
||||||
generate_big_fish_asset_procedure::generate_big_fish_asset as _,
|
generate_big_fish_asset_procedure::generate_big_fish_asset as _,
|
||||||
get_battle_state_procedure::get_battle_state as _,
|
get_battle_state_procedure::get_battle_state as _,
|
||||||
get_big_fish_run_procedure::get_big_fish_run as _,
|
get_big_fish_run_procedure::get_big_fish_run as _,
|
||||||
@@ -1627,6 +1629,53 @@ impl SpacetimeClient {
|
|||||||
.await
|
.await
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub async fn finalize_custom_world_agent_message(
|
||||||
|
&self,
|
||||||
|
input: CustomWorldAgentMessageFinalizeRecordInput,
|
||||||
|
) -> Result<CustomWorldAgentOperationRecord, SpacetimeClientError> {
|
||||||
|
let procedure_input = BindingCustomWorldAgentMessageFinalizeInput {
|
||||||
|
session_id: input.session_id,
|
||||||
|
owner_user_id: input.owner_user_id,
|
||||||
|
operation_id: input.operation_id,
|
||||||
|
assistant_message_id: input.assistant_message_id,
|
||||||
|
assistant_reply_text: input.assistant_reply_text,
|
||||||
|
phase_label: input.phase_label,
|
||||||
|
phase_detail: input.phase_detail,
|
||||||
|
operation_status: parse_rpg_agent_operation_status_record(
|
||||||
|
input.operation_status.as_str(),
|
||||||
|
)?,
|
||||||
|
operation_progress: input.operation_progress,
|
||||||
|
stage: parse_rpg_agent_stage_record(input.stage.as_str())?,
|
||||||
|
progress_percent: input.progress_percent,
|
||||||
|
focus_card_id: input.focus_card_id,
|
||||||
|
anchor_content_json: input.anchor_content_json,
|
||||||
|
creator_intent_json: input.creator_intent_json,
|
||||||
|
creator_intent_readiness_json: input.creator_intent_readiness_json,
|
||||||
|
anchor_pack_json: input.anchor_pack_json,
|
||||||
|
draft_profile_json: input.draft_profile_json,
|
||||||
|
pending_clarifications_json: input.pending_clarifications_json,
|
||||||
|
suggested_actions_json: input.suggested_actions_json,
|
||||||
|
recommended_replies_json: input.recommended_replies_json,
|
||||||
|
quality_findings_json: input.quality_findings_json,
|
||||||
|
asset_coverage_json: input.asset_coverage_json,
|
||||||
|
error_message: input.error_message,
|
||||||
|
updated_at_micros: input.updated_at_micros,
|
||||||
|
};
|
||||||
|
|
||||||
|
self.call_after_connect(move |connection, sender| {
|
||||||
|
connection.procedures().finalize_custom_world_agent_message_turn_then(
|
||||||
|
procedure_input,
|
||||||
|
move |_, result| {
|
||||||
|
let mapped = result
|
||||||
|
.map_err(|error| SpacetimeClientError::Procedure(error.to_string()))
|
||||||
|
.and_then(map_custom_world_agent_operation_procedure_result);
|
||||||
|
send_once(&sender, mapped);
|
||||||
|
},
|
||||||
|
);
|
||||||
|
})
|
||||||
|
.await
|
||||||
|
}
|
||||||
|
|
||||||
pub async fn get_custom_world_agent_operation(
|
pub async fn get_custom_world_agent_operation(
|
||||||
&self,
|
&self,
|
||||||
session_id: String,
|
session_id: String,
|
||||||
@@ -4806,6 +4855,25 @@ fn map_rpg_agent_stage(value: crate::module_bindings::RpgAgentStage) -> String {
|
|||||||
.to_string()
|
.to_string()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn parse_rpg_agent_stage_record(
|
||||||
|
value: &str,
|
||||||
|
) -> Result<crate::module_bindings::RpgAgentStage, SpacetimeClientError> {
|
||||||
|
match value.trim() {
|
||||||
|
"collecting_intent" => Ok(crate::module_bindings::RpgAgentStage::CollectingIntent),
|
||||||
|
"clarifying" => Ok(crate::module_bindings::RpgAgentStage::Clarifying),
|
||||||
|
"foundation_review" => Ok(crate::module_bindings::RpgAgentStage::FoundationReview),
|
||||||
|
"object_refining" => Ok(crate::module_bindings::RpgAgentStage::ObjectRefining),
|
||||||
|
"visual_refining" => Ok(crate::module_bindings::RpgAgentStage::VisualRefining),
|
||||||
|
"long_tail_review" => Ok(crate::module_bindings::RpgAgentStage::LongTailReview),
|
||||||
|
"ready_to_publish" => Ok(crate::module_bindings::RpgAgentStage::ReadyToPublish),
|
||||||
|
"published" => Ok(crate::module_bindings::RpgAgentStage::Published),
|
||||||
|
"error" => Ok(crate::module_bindings::RpgAgentStage::Error),
|
||||||
|
other => Err(SpacetimeClientError::Runtime(format!(
|
||||||
|
"未知 rpg agent stage: {other}"
|
||||||
|
))),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fn format_rpg_agent_message_role(
|
fn format_rpg_agent_message_role(
|
||||||
value: crate::module_bindings::RpgAgentMessageRole,
|
value: crate::module_bindings::RpgAgentMessageRole,
|
||||||
) -> &'static str {
|
) -> &'static str {
|
||||||
@@ -4862,6 +4930,20 @@ fn format_rpg_agent_operation_status(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn parse_rpg_agent_operation_status_record(
|
||||||
|
value: &str,
|
||||||
|
) -> Result<crate::module_bindings::RpgAgentOperationStatus, SpacetimeClientError> {
|
||||||
|
match value.trim() {
|
||||||
|
"queued" => Ok(crate::module_bindings::RpgAgentOperationStatus::Queued),
|
||||||
|
"running" => Ok(crate::module_bindings::RpgAgentOperationStatus::Running),
|
||||||
|
"completed" => Ok(crate::module_bindings::RpgAgentOperationStatus::Completed),
|
||||||
|
"failed" => Ok(crate::module_bindings::RpgAgentOperationStatus::Failed),
|
||||||
|
other => Err(SpacetimeClientError::Runtime(format!(
|
||||||
|
"未知 rpg agent operation status: {other}"
|
||||||
|
))),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fn format_rpg_agent_draft_card_kind(
|
fn format_rpg_agent_draft_card_kind(
|
||||||
value: crate::module_bindings::RpgAgentDraftCardKind,
|
value: crate::module_bindings::RpgAgentDraftCardKind,
|
||||||
) -> &'static str {
|
) -> &'static str {
|
||||||
@@ -5701,6 +5783,34 @@ pub struct CustomWorldAgentMessageSubmitRecordInput {
|
|||||||
pub submitted_at_micros: i64,
|
pub submitted_at_micros: i64,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||||
|
pub struct CustomWorldAgentMessageFinalizeRecordInput {
|
||||||
|
pub session_id: String,
|
||||||
|
pub owner_user_id: String,
|
||||||
|
pub operation_id: String,
|
||||||
|
pub assistant_message_id: String,
|
||||||
|
pub assistant_reply_text: String,
|
||||||
|
pub phase_label: String,
|
||||||
|
pub phase_detail: String,
|
||||||
|
pub operation_status: String,
|
||||||
|
pub operation_progress: u32,
|
||||||
|
pub stage: String,
|
||||||
|
pub progress_percent: u32,
|
||||||
|
pub focus_card_id: Option<String>,
|
||||||
|
pub anchor_content_json: String,
|
||||||
|
pub creator_intent_json: Option<String>,
|
||||||
|
pub creator_intent_readiness_json: String,
|
||||||
|
pub anchor_pack_json: Option<String>,
|
||||||
|
pub draft_profile_json: Option<String>,
|
||||||
|
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<String>,
|
||||||
|
pub updated_at_micros: i64,
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Eq)]
|
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||||
pub struct CustomWorldAgentActionExecuteRecordInput {
|
pub struct CustomWorldAgentActionExecuteRecordInput {
|
||||||
pub session_id: String,
|
pub session_id: String,
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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;
|
use super::quest_record_input_type::QuestRecordInput;
|
||||||
|
|
||||||
@@ -14,7 +19,9 @@ pub(super) struct AcceptQuestArgs {
|
|||||||
|
|
||||||
impl From<AcceptQuestArgs> for super::Reducer {
|
impl From<AcceptQuestArgs> for super::Reducer {
|
||||||
fn from(args: AcceptQuestArgs) -> Self {
|
fn from(args: AcceptQuestArgs) -> Self {
|
||||||
Self::AcceptQuest { input: args.input }
|
Self::AcceptQuest {
|
||||||
|
input: args.input,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -33,7 +40,8 @@ pub trait accept_quest {
|
|||||||
/// The reducer will run asynchronously in the future,
|
/// The reducer will run asynchronously in the future,
|
||||||
/// and this method provides no way to listen for its completion status.
|
/// 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.
|
/// /// Use [`accept_quest:accept_quest_then`] to run a callback after the reducer completes.
|
||||||
fn accept_quest(&self, input: QuestRecordInput) -> __sdk::Result<()> {
|
fn accept_quest(&self, input: QuestRecordInput,
|
||||||
|
) -> __sdk::Result<()> {
|
||||||
self.accept_quest_then(input, |_, _| {})
|
self.accept_quest_then(input, |_, _| {})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -47,10 +55,8 @@ pub trait accept_quest {
|
|||||||
&self,
|
&self,
|
||||||
input: QuestRecordInput,
|
input: QuestRecordInput,
|
||||||
|
|
||||||
callback: impl FnOnce(
|
callback: impl FnOnce(&super::ReducerEventContext, Result<Result<(), String>, __sdk::InternalError>)
|
||||||
&super::ReducerEventContext,
|
+ Send
|
||||||
Result<Result<(), String>, __sdk::InternalError>,
|
|
||||||
) + Send
|
|
||||||
+ 'static,
|
+ 'static,
|
||||||
) -> __sdk::Result<()>;
|
) -> __sdk::Result<()>;
|
||||||
}
|
}
|
||||||
@@ -60,13 +66,11 @@ impl accept_quest for super::RemoteReducers {
|
|||||||
&self,
|
&self,
|
||||||
input: QuestRecordInput,
|
input: QuestRecordInput,
|
||||||
|
|
||||||
callback: impl FnOnce(
|
callback: impl FnOnce(&super::ReducerEventContext, Result<Result<(), String>, __sdk::InternalError>)
|
||||||
&super::ReducerEventContext,
|
+ Send
|
||||||
Result<Result<(), String>, __sdk::InternalError>,
|
|
||||||
) + Send
|
|
||||||
+ 'static,
|
+ 'static,
|
||||||
) -> __sdk::Result<()> {
|
) -> __sdk::Result<()> {
|
||||||
self.imp
|
self.imp.invoke_reducer_with_callback(AcceptQuestArgs { input, }, callback)
|
||||||
.invoke_reducer_with_callback(AcceptQuestArgs { input }, callback)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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;
|
use super::quest_completion_ack_input_type::QuestCompletionAckInput;
|
||||||
|
|
||||||
@@ -14,7 +19,9 @@ pub(super) struct AcknowledgeQuestCompletionArgs {
|
|||||||
|
|
||||||
impl From<AcknowledgeQuestCompletionArgs> for super::Reducer {
|
impl From<AcknowledgeQuestCompletionArgs> for super::Reducer {
|
||||||
fn from(args: AcknowledgeQuestCompletionArgs) -> Self {
|
fn from(args: AcknowledgeQuestCompletionArgs) -> Self {
|
||||||
Self::AcknowledgeQuestCompletion { input: args.input }
|
Self::AcknowledgeQuestCompletion {
|
||||||
|
input: args.input,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -33,7 +40,8 @@ pub trait acknowledge_quest_completion {
|
|||||||
/// The reducer will run asynchronously in the future,
|
/// The reducer will run asynchronously in the future,
|
||||||
/// and this method provides no way to listen for its completion status.
|
/// 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.
|
/// /// 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<()> {
|
fn acknowledge_quest_completion(&self, input: QuestCompletionAckInput,
|
||||||
|
) -> __sdk::Result<()> {
|
||||||
self.acknowledge_quest_completion_then(input, |_, _| {})
|
self.acknowledge_quest_completion_then(input, |_, _| {})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -47,10 +55,8 @@ pub trait acknowledge_quest_completion {
|
|||||||
&self,
|
&self,
|
||||||
input: QuestCompletionAckInput,
|
input: QuestCompletionAckInput,
|
||||||
|
|
||||||
callback: impl FnOnce(
|
callback: impl FnOnce(&super::ReducerEventContext, Result<Result<(), String>, __sdk::InternalError>)
|
||||||
&super::ReducerEventContext,
|
+ Send
|
||||||
Result<Result<(), String>, __sdk::InternalError>,
|
|
||||||
) + Send
|
|
||||||
+ 'static,
|
+ 'static,
|
||||||
) -> __sdk::Result<()>;
|
) -> __sdk::Result<()>;
|
||||||
}
|
}
|
||||||
@@ -60,13 +66,11 @@ impl acknowledge_quest_completion for super::RemoteReducers {
|
|||||||
&self,
|
&self,
|
||||||
input: QuestCompletionAckInput,
|
input: QuestCompletionAckInput,
|
||||||
|
|
||||||
callback: impl FnOnce(
|
callback: impl FnOnce(&super::ReducerEventContext, Result<Result<(), String>, __sdk::InternalError>)
|
||||||
&super::ReducerEventContext,
|
+ Send
|
||||||
Result<Result<(), String>, __sdk::InternalError>,
|
|
||||||
) + Send
|
|
||||||
+ 'static,
|
+ 'static,
|
||||||
) -> __sdk::Result<()> {
|
) -> __sdk::Result<()> {
|
||||||
self.imp
|
self.imp.invoke_reducer_with_callback(AcknowledgeQuestCompletionArgs { input, }, callback)
|
||||||
.invoke_reducer_with_callback(AcknowledgeQuestCompletionArgs { input }, callback)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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_next_level_input_type::PuzzleRunNextLevelInput;
|
||||||
use super::puzzle_run_procedure_result_type::PuzzleRunProcedureResult;
|
use super::puzzle_run_procedure_result_type::PuzzleRunProcedureResult;
|
||||||
@@ -13,6 +18,7 @@ struct AdvancePuzzleNextLevelArgs {
|
|||||||
pub input: PuzzleRunNextLevelInput,
|
pub input: PuzzleRunNextLevelInput,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AdvancePuzzleNextLevelArgs {
|
impl __sdk::InModule for AdvancePuzzleNextLevelArgs {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
@@ -22,7 +28,8 @@ impl __sdk::InModule for AdvancePuzzleNextLevelArgs {
|
|||||||
///
|
///
|
||||||
/// Implemented for [`super::RemoteProcedures`].
|
/// Implemented for [`super::RemoteProcedures`].
|
||||||
pub trait advance_puzzle_next_level {
|
pub trait advance_puzzle_next_level {
|
||||||
fn advance_puzzle_next_level(&self, input: PuzzleRunNextLevelInput) {
|
fn advance_puzzle_next_level(&self, input: PuzzleRunNextLevelInput,
|
||||||
|
) {
|
||||||
self.advance_puzzle_next_level_then(input, |_, _| {});
|
self.advance_puzzle_next_level_then(input, |_, _| {});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -30,11 +37,7 @@ pub trait advance_puzzle_next_level {
|
|||||||
&self,
|
&self,
|
||||||
input: PuzzleRunNextLevelInput,
|
input: PuzzleRunNextLevelInput,
|
||||||
|
|
||||||
__callback: impl FnOnce(
|
__callback: impl FnOnce(&super::ProcedureEventContext, Result<PuzzleRunProcedureResult, __sdk::InternalError>) + Send + 'static,
|
||||||
&super::ProcedureEventContext,
|
|
||||||
Result<PuzzleRunProcedureResult, __sdk::InternalError>,
|
|
||||||
) + Send
|
|
||||||
+ 'static,
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -43,17 +46,13 @@ impl advance_puzzle_next_level for super::RemoteProcedures {
|
|||||||
&self,
|
&self,
|
||||||
input: PuzzleRunNextLevelInput,
|
input: PuzzleRunNextLevelInput,
|
||||||
|
|
||||||
__callback: impl FnOnce(
|
__callback: impl FnOnce(&super::ProcedureEventContext, Result<PuzzleRunProcedureResult, __sdk::InternalError>) + Send + 'static,
|
||||||
&super::ProcedureEventContext,
|
|
||||||
Result<PuzzleRunProcedureResult, __sdk::InternalError>,
|
|
||||||
) + Send
|
|
||||||
+ 'static,
|
|
||||||
) {
|
) {
|
||||||
self.imp
|
self.imp.invoke_procedure_with_callback::<_, PuzzleRunProcedureResult>(
|
||||||
.invoke_procedure_with_callback::<_, PuzzleRunProcedureResult>(
|
|
||||||
"advance_puzzle_next_level",
|
"advance_puzzle_next_level",
|
||||||
AdvancePuzzleNextLevelArgs { input },
|
AdvancePuzzleNextLevelArgs { input, },
|
||||||
__callback,
|
__callback,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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;
|
use super::ai_result_reference_kind_type::AiResultReferenceKind;
|
||||||
|
|
||||||
@@ -12,10 +17,12 @@ pub struct AiResultReferenceInput {
|
|||||||
pub task_id: String,
|
pub task_id: String,
|
||||||
pub reference_kind: AiResultReferenceKind,
|
pub reference_kind: AiResultReferenceKind,
|
||||||
pub reference_id: String,
|
pub reference_id: String,
|
||||||
pub label: Option<String>,
|
pub label: Option::<String>,
|
||||||
pub created_at_micros: i64,
|
pub created_at_micros: i64,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AiResultReferenceInput {
|
impl __sdk::InModule for AiResultReferenceInput {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![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)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
@@ -19,8 +24,12 @@ pub enum AiResultReferenceKind {
|
|||||||
RuntimeItemRecord,
|
RuntimeItemRecord,
|
||||||
|
|
||||||
AssetObject,
|
AssetObject,
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AiResultReferenceKind {
|
impl __sdk::InModule for AiResultReferenceKind {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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;
|
use super::ai_result_reference_kind_type::AiResultReferenceKind;
|
||||||
|
|
||||||
@@ -13,10 +18,12 @@ pub struct AiResultReferenceSnapshot {
|
|||||||
pub task_id: String,
|
pub task_id: String,
|
||||||
pub reference_kind: AiResultReferenceKind,
|
pub reference_kind: AiResultReferenceKind,
|
||||||
pub reference_id: String,
|
pub reference_id: String,
|
||||||
pub label: Option<String>,
|
pub label: Option::<String>,
|
||||||
pub created_at_micros: i64,
|
pub created_at_micros: i64,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AiResultReferenceSnapshot {
|
impl __sdk::InModule for AiResultReferenceSnapshot {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,9 +2,14 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, clippy::all)]
|
||||||
use super::ai_result_reference_kind_type::AiResultReferenceKind;
|
use spacetimedb_sdk::__codegen::{
|
||||||
|
self as __sdk,
|
||||||
|
__lib,
|
||||||
|
__sats,
|
||||||
|
__ws,
|
||||||
|
};
|
||||||
use super::ai_result_reference_type::AiResultReference;
|
use super::ai_result_reference_type::AiResultReference;
|
||||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
use super::ai_result_reference_kind_type::AiResultReferenceKind;
|
||||||
|
|
||||||
/// Table handle for the table `ai_result_reference`.
|
/// Table handle for the table `ai_result_reference`.
|
||||||
///
|
///
|
||||||
@@ -32,9 +37,7 @@ pub trait AiResultReferenceTableAccess {
|
|||||||
impl AiResultReferenceTableAccess for super::RemoteTables {
|
impl AiResultReferenceTableAccess for super::RemoteTables {
|
||||||
fn ai_result_reference(&self) -> AiResultReferenceTableHandle<'_> {
|
fn ai_result_reference(&self) -> AiResultReferenceTableHandle<'_> {
|
||||||
AiResultReferenceTableHandle {
|
AiResultReferenceTableHandle {
|
||||||
imp: self
|
imp: self.imp.get_table::<AiResultReference>("ai_result_reference"),
|
||||||
.imp
|
|
||||||
.get_table::<AiResultReference>("ai_result_reference"),
|
|
||||||
ctx: std::marker::PhantomData,
|
ctx: std::marker::PhantomData,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -47,12 +50,8 @@ impl<'ctx> __sdk::Table for AiResultReferenceTableHandle<'ctx> {
|
|||||||
type Row = AiResultReference;
|
type Row = AiResultReference;
|
||||||
type EventContext = super::EventContext;
|
type EventContext = super::EventContext;
|
||||||
|
|
||||||
fn count(&self) -> u64 {
|
fn count(&self) -> u64 { self.imp.count() }
|
||||||
self.imp.count()
|
fn iter(&self) -> impl Iterator<Item = AiResultReference> + '_ { self.imp.iter() }
|
||||||
}
|
|
||||||
fn iter(&self) -> impl Iterator<Item = AiResultReference> + '_ {
|
|
||||||
self.imp.iter()
|
|
||||||
}
|
|
||||||
|
|
||||||
type InsertCallbackId = AiResultReferenceInsertCallbackId;
|
type InsertCallbackId = AiResultReferenceInsertCallbackId;
|
||||||
|
|
||||||
@@ -114,9 +113,7 @@ impl<'ctx> AiResultReferenceTableHandle<'ctx> {
|
|||||||
/// Get a handle on the `result_reference_row_id` unique index on the table `ai_result_reference`.
|
/// Get a handle on the `result_reference_row_id` unique index on the table `ai_result_reference`.
|
||||||
pub fn result_reference_row_id(&self) -> AiResultReferenceResultReferenceRowIdUnique<'ctx> {
|
pub fn result_reference_row_id(&self) -> AiResultReferenceResultReferenceRowIdUnique<'ctx> {
|
||||||
AiResultReferenceResultReferenceRowIdUnique {
|
AiResultReferenceResultReferenceRowIdUnique {
|
||||||
imp: self
|
imp: self.imp.get_unique_constraint::<String>("result_reference_row_id"),
|
||||||
.imp
|
|
||||||
.get_unique_constraint::<String>("result_reference_row_id"),
|
|
||||||
phantom: std::marker::PhantomData,
|
phantom: std::marker::PhantomData,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -132,10 +129,9 @@ impl<'ctx> AiResultReferenceResultReferenceRowIdUnique<'ctx> {
|
|||||||
|
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
pub(super) fn register_table(client_cache: &mut __sdk::ClientCache<super::RemoteModule>) {
|
pub(super) fn register_table(client_cache: &mut __sdk::ClientCache<super::RemoteModule>) {
|
||||||
|
|
||||||
let _table = client_cache.get_or_make_table::<AiResultReference>("ai_result_reference");
|
let _table = client_cache.get_or_make_table::<AiResultReference>("ai_result_reference");
|
||||||
_table.add_unique_constraint::<String>("result_reference_row_id", |row| {
|
_table.add_unique_constraint::<String>("result_reference_row_id", |row| &row.result_reference_row_id);
|
||||||
&row.result_reference_row_id
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
@@ -143,9 +139,10 @@ pub(super) fn parse_table_update(
|
|||||||
raw_updates: __ws::v2::TableUpdate,
|
raw_updates: __ws::v2::TableUpdate,
|
||||||
) -> __sdk::Result<__sdk::TableUpdate<AiResultReference>> {
|
) -> __sdk::Result<__sdk::TableUpdate<AiResultReference>> {
|
||||||
__sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| {
|
__sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| {
|
||||||
__sdk::InternalError::failed_parse("TableUpdate<AiResultReference>", "TableUpdate")
|
__sdk::InternalError::failed_parse(
|
||||||
.with_cause(e)
|
"TableUpdate<AiResultReference>",
|
||||||
.into()
|
"TableUpdate",
|
||||||
|
).with_cause(e).into()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -164,3 +161,4 @@ impl ai_result_referenceQueryTableAccess for __sdk::QueryTableAccessor {
|
|||||||
__sdk::__query_builder::Table::new("ai_result_reference")
|
__sdk::__query_builder::Table::new("ai_result_reference")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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;
|
use super::ai_result_reference_kind_type::AiResultReferenceKind;
|
||||||
|
|
||||||
@@ -14,14 +19,16 @@ pub struct AiResultReference {
|
|||||||
pub task_id: String,
|
pub task_id: String,
|
||||||
pub reference_kind: AiResultReferenceKind,
|
pub reference_kind: AiResultReferenceKind,
|
||||||
pub reference_id: String,
|
pub reference_id: String,
|
||||||
pub label: Option<String>,
|
pub label: Option::<String>,
|
||||||
pub created_at: __sdk::Timestamp,
|
pub created_at: __sdk::Timestamp,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AiResultReference {
|
impl __sdk::InModule for AiResultReference {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// Column accessor struct for the table `AiResultReference`.
|
/// Column accessor struct for the table `AiResultReference`.
|
||||||
///
|
///
|
||||||
/// Provides typed access to columns for query building.
|
/// Provides typed access to columns for query building.
|
||||||
@@ -31,7 +38,7 @@ pub struct AiResultReferenceCols {
|
|||||||
pub task_id: __sdk::__query_builder::Col<AiResultReference, String>,
|
pub task_id: __sdk::__query_builder::Col<AiResultReference, String>,
|
||||||
pub reference_kind: __sdk::__query_builder::Col<AiResultReference, AiResultReferenceKind>,
|
pub reference_kind: __sdk::__query_builder::Col<AiResultReference, AiResultReferenceKind>,
|
||||||
pub reference_id: __sdk::__query_builder::Col<AiResultReference, String>,
|
pub reference_id: __sdk::__query_builder::Col<AiResultReference, String>,
|
||||||
pub label: __sdk::__query_builder::Col<AiResultReference, Option<String>>,
|
pub label: __sdk::__query_builder::Col<AiResultReference, Option::<String>>,
|
||||||
pub created_at: __sdk::__query_builder::Col<AiResultReference, __sdk::Timestamp>,
|
pub created_at: __sdk::__query_builder::Col<AiResultReference, __sdk::Timestamp>,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -39,16 +46,14 @@ impl __sdk::__query_builder::HasCols for AiResultReference {
|
|||||||
type Cols = AiResultReferenceCols;
|
type Cols = AiResultReferenceCols;
|
||||||
fn cols(table_name: &'static str) -> Self::Cols {
|
fn cols(table_name: &'static str) -> Self::Cols {
|
||||||
AiResultReferenceCols {
|
AiResultReferenceCols {
|
||||||
result_reference_row_id: __sdk::__query_builder::Col::new(
|
result_reference_row_id: __sdk::__query_builder::Col::new(table_name, "result_reference_row_id"),
|
||||||
table_name,
|
|
||||||
"result_reference_row_id",
|
|
||||||
),
|
|
||||||
result_ref_id: __sdk::__query_builder::Col::new(table_name, "result_ref_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"),
|
task_id: __sdk::__query_builder::Col::new(table_name, "task_id"),
|
||||||
reference_kind: __sdk::__query_builder::Col::new(table_name, "reference_kind"),
|
reference_kind: __sdk::__query_builder::Col::new(table_name, "reference_kind"),
|
||||||
reference_id: __sdk::__query_builder::Col::new(table_name, "reference_id"),
|
reference_id: __sdk::__query_builder::Col::new(table_name, "reference_id"),
|
||||||
label: __sdk::__query_builder::Col::new(table_name, "label"),
|
label: __sdk::__query_builder::Col::new(table_name, "label"),
|
||||||
created_at: __sdk::__query_builder::Col::new(table_name, "created_at"),
|
created_at: __sdk::__query_builder::Col::new(table_name, "created_at"),
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -65,13 +70,12 @@ impl __sdk::__query_builder::HasIxCols for AiResultReference {
|
|||||||
type IxCols = AiResultReferenceIxCols;
|
type IxCols = AiResultReferenceIxCols;
|
||||||
fn ix_cols(table_name: &'static str) -> Self::IxCols {
|
fn ix_cols(table_name: &'static str) -> Self::IxCols {
|
||||||
AiResultReferenceIxCols {
|
AiResultReferenceIxCols {
|
||||||
result_reference_row_id: __sdk::__query_builder::IxCol::new(
|
result_reference_row_id: __sdk::__query_builder::IxCol::new(table_name, "result_reference_row_id"),
|
||||||
table_name,
|
|
||||||
"result_reference_row_id",
|
|
||||||
),
|
|
||||||
task_id: __sdk::__query_builder::IxCol::new(table_name, "task_id"),
|
task_id: __sdk::__query_builder::IxCol::new(table_name, "task_id"),
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl __sdk::__query_builder::CanBeLookupTable for AiResultReference {}
|
impl __sdk::__query_builder::CanBeLookupTable for AiResultReference {}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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_kind_type::AiTaskStageKind;
|
||||||
|
|
||||||
@@ -11,12 +16,14 @@ use super::ai_task_stage_kind_type::AiTaskStageKind;
|
|||||||
pub struct AiStageCompletionInput {
|
pub struct AiStageCompletionInput {
|
||||||
pub task_id: String,
|
pub task_id: String,
|
||||||
pub stage_kind: AiTaskStageKind,
|
pub stage_kind: AiTaskStageKind,
|
||||||
pub text_output: Option<String>,
|
pub text_output: Option::<String>,
|
||||||
pub structured_payload_json: Option<String>,
|
pub structured_payload_json: Option::<String>,
|
||||||
pub warning_messages: Vec<String>,
|
pub warning_messages: Vec::<String>,
|
||||||
pub completed_at_micros: i64,
|
pub completed_at_micros: i64,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AiStageCompletionInput {
|
impl __sdk::InModule for AiStageCompletionInput {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,13 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![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)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
@@ -11,6 +17,8 @@ pub struct AiTaskCancelInput {
|
|||||||
pub completed_at_micros: i64,
|
pub completed_at_micros: i64,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AiTaskCancelInput {
|
impl __sdk::InModule for AiTaskCancelInput {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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_kind_type::AiTaskKind;
|
||||||
use super::ai_task_stage_blueprint_type::AiTaskStageBlueprint;
|
use super::ai_task_stage_blueprint_type::AiTaskStageBlueprint;
|
||||||
@@ -15,12 +20,14 @@ pub struct AiTaskCreateInput {
|
|||||||
pub owner_user_id: String,
|
pub owner_user_id: String,
|
||||||
pub request_label: String,
|
pub request_label: String,
|
||||||
pub source_module: String,
|
pub source_module: String,
|
||||||
pub source_entity_id: Option<String>,
|
pub source_entity_id: Option::<String>,
|
||||||
pub request_payload_json: Option<String>,
|
pub request_payload_json: Option::<String>,
|
||||||
pub stages: Vec<AiTaskStageBlueprint>,
|
pub stages: Vec::<AiTaskStageBlueprint>,
|
||||||
pub created_at_micros: i64,
|
pub created_at_micros: i64,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AiTaskCreateInput {
|
impl __sdk::InModule for AiTaskCreateInput {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,13 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![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)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
@@ -12,6 +18,8 @@ pub struct AiTaskFailureInput {
|
|||||||
pub completed_at_micros: i64,
|
pub completed_at_micros: i64,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AiTaskFailureInput {
|
impl __sdk::InModule for AiTaskFailureInput {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,13 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![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)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
@@ -11,6 +17,8 @@ pub struct AiTaskFinishInput {
|
|||||||
pub completed_at_micros: i64,
|
pub completed_at_micros: i64,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AiTaskFinishInput {
|
impl __sdk::InModule for AiTaskFinishInput {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![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)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
@@ -19,8 +24,12 @@ pub enum AiTaskKind {
|
|||||||
QuestIntent,
|
QuestIntent,
|
||||||
|
|
||||||
RuntimeItemIntent,
|
RuntimeItemIntent,
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AiTaskKind {
|
impl __sdk::InModule for AiTaskKind {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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_task_snapshot_type::AiTaskSnapshot;
|
||||||
use super::ai_text_chunk_snapshot_type::AiTextChunkSnapshot;
|
use super::ai_text_chunk_snapshot_type::AiTextChunkSnapshot;
|
||||||
@@ -11,11 +16,13 @@ use super::ai_text_chunk_snapshot_type::AiTextChunkSnapshot;
|
|||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
pub struct AiTaskProcedureResult {
|
pub struct AiTaskProcedureResult {
|
||||||
pub ok: bool,
|
pub ok: bool,
|
||||||
pub task: Option<AiTaskSnapshot>,
|
pub task: Option::<AiTaskSnapshot>,
|
||||||
pub text_chunk: Option<AiTextChunkSnapshot>,
|
pub text_chunk: Option::<AiTextChunkSnapshot>,
|
||||||
pub error_message: Option<String>,
|
pub error_message: Option::<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AiTaskProcedureResult {
|
impl __sdk::InModule for AiTaskProcedureResult {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,12 +2,17 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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_snapshot_type::AiResultReferenceSnapshot;
|
|
||||||
use super::ai_task_kind_type::AiTaskKind;
|
use super::ai_task_kind_type::AiTaskKind;
|
||||||
use super::ai_task_stage_snapshot_type::AiTaskStageSnapshot;
|
|
||||||
use super::ai_task_status_type::AiTaskStatus;
|
use super::ai_task_status_type::AiTaskStatus;
|
||||||
|
use super::ai_task_stage_snapshot_type::AiTaskStageSnapshot;
|
||||||
|
use super::ai_result_reference_snapshot_type::AiResultReferenceSnapshot;
|
||||||
|
|
||||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
@@ -17,21 +22,23 @@ pub struct AiTaskSnapshot {
|
|||||||
pub owner_user_id: String,
|
pub owner_user_id: String,
|
||||||
pub request_label: String,
|
pub request_label: String,
|
||||||
pub source_module: String,
|
pub source_module: String,
|
||||||
pub source_entity_id: Option<String>,
|
pub source_entity_id: Option::<String>,
|
||||||
pub request_payload_json: Option<String>,
|
pub request_payload_json: Option::<String>,
|
||||||
pub status: AiTaskStatus,
|
pub status: AiTaskStatus,
|
||||||
pub failure_message: Option<String>,
|
pub failure_message: Option::<String>,
|
||||||
pub stages: Vec<AiTaskStageSnapshot>,
|
pub stages: Vec::<AiTaskStageSnapshot>,
|
||||||
pub result_references: Vec<AiResultReferenceSnapshot>,
|
pub result_references: Vec::<AiResultReferenceSnapshot>,
|
||||||
pub latest_text_output: Option<String>,
|
pub latest_text_output: Option::<String>,
|
||||||
pub latest_structured_payload_json: Option<String>,
|
pub latest_structured_payload_json: Option::<String>,
|
||||||
pub version: u32,
|
pub version: u32,
|
||||||
pub created_at_micros: i64,
|
pub created_at_micros: i64,
|
||||||
pub started_at_micros: Option<i64>,
|
pub started_at_micros: Option::<i64>,
|
||||||
pub completed_at_micros: Option<i64>,
|
pub completed_at_micros: Option::<i64>,
|
||||||
pub updated_at_micros: i64,
|
pub updated_at_micros: i64,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AiTaskSnapshot {
|
impl __sdk::InModule for AiTaskSnapshot {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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_kind_type::AiTaskStageKind;
|
||||||
|
|
||||||
@@ -15,6 +20,8 @@ pub struct AiTaskStageBlueprint {
|
|||||||
pub order: u32,
|
pub order: u32,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AiTaskStageBlueprint {
|
impl __sdk::InModule for AiTaskStageBlueprint {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![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)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
@@ -17,8 +22,12 @@ pub enum AiTaskStageKind {
|
|||||||
NormalizeResult,
|
NormalizeResult,
|
||||||
|
|
||||||
PersistResult,
|
PersistResult,
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AiTaskStageKind {
|
impl __sdk::InModule for AiTaskStageKind {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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_kind_type::AiTaskStageKind;
|
||||||
use super::ai_task_stage_status_type::AiTaskStageStatus;
|
use super::ai_task_stage_status_type::AiTaskStageStatus;
|
||||||
@@ -15,13 +20,15 @@ pub struct AiTaskStageSnapshot {
|
|||||||
pub detail: String,
|
pub detail: String,
|
||||||
pub order: u32,
|
pub order: u32,
|
||||||
pub status: AiTaskStageStatus,
|
pub status: AiTaskStageStatus,
|
||||||
pub text_output: Option<String>,
|
pub text_output: Option::<String>,
|
||||||
pub structured_payload_json: Option<String>,
|
pub structured_payload_json: Option::<String>,
|
||||||
pub warning_messages: Vec<String>,
|
pub warning_messages: Vec::<String>,
|
||||||
pub started_at_micros: Option<i64>,
|
pub started_at_micros: Option::<i64>,
|
||||||
pub completed_at_micros: Option<i64>,
|
pub completed_at_micros: Option::<i64>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AiTaskStageSnapshot {
|
impl __sdk::InModule for AiTaskStageSnapshot {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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_kind_type::AiTaskStageKind;
|
||||||
|
|
||||||
@@ -14,6 +19,8 @@ pub struct AiTaskStageStartInput {
|
|||||||
pub started_at_micros: i64,
|
pub started_at_micros: i64,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AiTaskStageStartInput {
|
impl __sdk::InModule for AiTaskStageStartInput {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![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)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
@@ -15,8 +20,12 @@ pub enum AiTaskStageStatus {
|
|||||||
Completed,
|
Completed,
|
||||||
|
|
||||||
Skipped,
|
Skipped,
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AiTaskStageStatus {
|
impl __sdk::InModule for AiTaskStageStatus {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,10 +2,15 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, clippy::all)]
|
||||||
|
use spacetimedb_sdk::__codegen::{
|
||||||
|
self as __sdk,
|
||||||
|
__lib,
|
||||||
|
__sats,
|
||||||
|
__ws,
|
||||||
|
};
|
||||||
|
use super::ai_task_stage_type::AiTaskStage;
|
||||||
use super::ai_task_stage_kind_type::AiTaskStageKind;
|
use super::ai_task_stage_kind_type::AiTaskStageKind;
|
||||||
use super::ai_task_stage_status_type::AiTaskStageStatus;
|
use super::ai_task_stage_status_type::AiTaskStageStatus;
|
||||||
use super::ai_task_stage_type::AiTaskStage;
|
|
||||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
|
||||||
|
|
||||||
/// Table handle for the table `ai_task_stage`.
|
/// Table handle for the table `ai_task_stage`.
|
||||||
///
|
///
|
||||||
@@ -46,12 +51,8 @@ impl<'ctx> __sdk::Table for AiTaskStageTableHandle<'ctx> {
|
|||||||
type Row = AiTaskStage;
|
type Row = AiTaskStage;
|
||||||
type EventContext = super::EventContext;
|
type EventContext = super::EventContext;
|
||||||
|
|
||||||
fn count(&self) -> u64 {
|
fn count(&self) -> u64 { self.imp.count() }
|
||||||
self.imp.count()
|
fn iter(&self) -> impl Iterator<Item = AiTaskStage> + '_ { self.imp.iter() }
|
||||||
}
|
|
||||||
fn iter(&self) -> impl Iterator<Item = AiTaskStage> + '_ {
|
|
||||||
self.imp.iter()
|
|
||||||
}
|
|
||||||
|
|
||||||
type InsertCallbackId = AiTaskStageInsertCallbackId;
|
type InsertCallbackId = AiTaskStageInsertCallbackId;
|
||||||
|
|
||||||
@@ -129,6 +130,7 @@ impl<'ctx> AiTaskStageTaskStageIdUnique<'ctx> {
|
|||||||
|
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
pub(super) fn register_table(client_cache: &mut __sdk::ClientCache<super::RemoteModule>) {
|
pub(super) fn register_table(client_cache: &mut __sdk::ClientCache<super::RemoteModule>) {
|
||||||
|
|
||||||
let _table = client_cache.get_or_make_table::<AiTaskStage>("ai_task_stage");
|
let _table = client_cache.get_or_make_table::<AiTaskStage>("ai_task_stage");
|
||||||
_table.add_unique_constraint::<String>("task_stage_id", |row| &row.task_stage_id);
|
_table.add_unique_constraint::<String>("task_stage_id", |row| &row.task_stage_id);
|
||||||
}
|
}
|
||||||
@@ -138,9 +140,10 @@ pub(super) fn parse_table_update(
|
|||||||
raw_updates: __ws::v2::TableUpdate,
|
raw_updates: __ws::v2::TableUpdate,
|
||||||
) -> __sdk::Result<__sdk::TableUpdate<AiTaskStage>> {
|
) -> __sdk::Result<__sdk::TableUpdate<AiTaskStage>> {
|
||||||
__sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| {
|
__sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| {
|
||||||
__sdk::InternalError::failed_parse("TableUpdate<AiTaskStage>", "TableUpdate")
|
__sdk::InternalError::failed_parse(
|
||||||
.with_cause(e)
|
"TableUpdate<AiTaskStage>",
|
||||||
.into()
|
"TableUpdate",
|
||||||
|
).with_cause(e).into()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -159,3 +162,4 @@ impl ai_task_stageQueryTableAccess for __sdk::QueryTableAccessor {
|
|||||||
__sdk::__query_builder::Table::new("ai_task_stage")
|
__sdk::__query_builder::Table::new("ai_task_stage")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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_kind_type::AiTaskStageKind;
|
||||||
use super::ai_task_stage_status_type::AiTaskStageStatus;
|
use super::ai_task_stage_status_type::AiTaskStageStatus;
|
||||||
@@ -17,17 +22,19 @@ pub struct AiTaskStage {
|
|||||||
pub detail: String,
|
pub detail: String,
|
||||||
pub stage_order: u32,
|
pub stage_order: u32,
|
||||||
pub status: AiTaskStageStatus,
|
pub status: AiTaskStageStatus,
|
||||||
pub text_output: Option<String>,
|
pub text_output: Option::<String>,
|
||||||
pub structured_payload_json: Option<String>,
|
pub structured_payload_json: Option::<String>,
|
||||||
pub warning_messages: Vec<String>,
|
pub warning_messages: Vec::<String>,
|
||||||
pub started_at: Option<__sdk::Timestamp>,
|
pub started_at: Option::<__sdk::Timestamp>,
|
||||||
pub completed_at: Option<__sdk::Timestamp>,
|
pub completed_at: Option::<__sdk::Timestamp>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AiTaskStage {
|
impl __sdk::InModule for AiTaskStage {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// Column accessor struct for the table `AiTaskStage`.
|
/// Column accessor struct for the table `AiTaskStage`.
|
||||||
///
|
///
|
||||||
/// Provides typed access to columns for query building.
|
/// Provides typed access to columns for query building.
|
||||||
@@ -39,11 +46,11 @@ pub struct AiTaskStageCols {
|
|||||||
pub detail: __sdk::__query_builder::Col<AiTaskStage, String>,
|
pub detail: __sdk::__query_builder::Col<AiTaskStage, String>,
|
||||||
pub stage_order: __sdk::__query_builder::Col<AiTaskStage, u32>,
|
pub stage_order: __sdk::__query_builder::Col<AiTaskStage, u32>,
|
||||||
pub status: __sdk::__query_builder::Col<AiTaskStage, AiTaskStageStatus>,
|
pub status: __sdk::__query_builder::Col<AiTaskStage, AiTaskStageStatus>,
|
||||||
pub text_output: __sdk::__query_builder::Col<AiTaskStage, Option<String>>,
|
pub text_output: __sdk::__query_builder::Col<AiTaskStage, Option::<String>>,
|
||||||
pub structured_payload_json: __sdk::__query_builder::Col<AiTaskStage, Option<String>>,
|
pub structured_payload_json: __sdk::__query_builder::Col<AiTaskStage, Option::<String>>,
|
||||||
pub warning_messages: __sdk::__query_builder::Col<AiTaskStage, Vec<String>>,
|
pub warning_messages: __sdk::__query_builder::Col<AiTaskStage, Vec::<String>>,
|
||||||
pub started_at: __sdk::__query_builder::Col<AiTaskStage, Option<__sdk::Timestamp>>,
|
pub started_at: __sdk::__query_builder::Col<AiTaskStage, Option::<__sdk::Timestamp>>,
|
||||||
pub completed_at: __sdk::__query_builder::Col<AiTaskStage, Option<__sdk::Timestamp>>,
|
pub completed_at: __sdk::__query_builder::Col<AiTaskStage, Option::<__sdk::Timestamp>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl __sdk::__query_builder::HasCols for AiTaskStage {
|
impl __sdk::__query_builder::HasCols for AiTaskStage {
|
||||||
@@ -58,13 +65,11 @@ impl __sdk::__query_builder::HasCols for AiTaskStage {
|
|||||||
stage_order: __sdk::__query_builder::Col::new(table_name, "stage_order"),
|
stage_order: __sdk::__query_builder::Col::new(table_name, "stage_order"),
|
||||||
status: __sdk::__query_builder::Col::new(table_name, "status"),
|
status: __sdk::__query_builder::Col::new(table_name, "status"),
|
||||||
text_output: __sdk::__query_builder::Col::new(table_name, "text_output"),
|
text_output: __sdk::__query_builder::Col::new(table_name, "text_output"),
|
||||||
structured_payload_json: __sdk::__query_builder::Col::new(
|
structured_payload_json: __sdk::__query_builder::Col::new(table_name, "structured_payload_json"),
|
||||||
table_name,
|
|
||||||
"structured_payload_json",
|
|
||||||
),
|
|
||||||
warning_messages: __sdk::__query_builder::Col::new(table_name, "warning_messages"),
|
warning_messages: __sdk::__query_builder::Col::new(table_name, "warning_messages"),
|
||||||
started_at: __sdk::__query_builder::Col::new(table_name, "started_at"),
|
started_at: __sdk::__query_builder::Col::new(table_name, "started_at"),
|
||||||
completed_at: __sdk::__query_builder::Col::new(table_name, "completed_at"),
|
completed_at: __sdk::__query_builder::Col::new(table_name, "completed_at"),
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -83,8 +88,10 @@ impl __sdk::__query_builder::HasIxCols for AiTaskStage {
|
|||||||
AiTaskStageIxCols {
|
AiTaskStageIxCols {
|
||||||
task_id: __sdk::__query_builder::IxCol::new(table_name, "task_id"),
|
task_id: __sdk::__query_builder::IxCol::new(table_name, "task_id"),
|
||||||
task_stage_id: __sdk::__query_builder::IxCol::new(table_name, "task_stage_id"),
|
task_stage_id: __sdk::__query_builder::IxCol::new(table_name, "task_stage_id"),
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl __sdk::__query_builder::CanBeLookupTable for AiTaskStage {}
|
impl __sdk::__query_builder::CanBeLookupTable for AiTaskStage {}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,13 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![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)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
@@ -11,6 +17,8 @@ pub struct AiTaskStartInput {
|
|||||||
pub started_at_micros: i64,
|
pub started_at_micros: i64,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AiTaskStartInput {
|
impl __sdk::InModule for AiTaskStartInput {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![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)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
@@ -17,8 +22,12 @@ pub enum AiTaskStatus {
|
|||||||
Failed,
|
Failed,
|
||||||
|
|
||||||
Cancelled,
|
Cancelled,
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AiTaskStatus {
|
impl __sdk::InModule for AiTaskStatus {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,10 +2,15 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, clippy::all)]
|
||||||
|
use spacetimedb_sdk::__codegen::{
|
||||||
|
self as __sdk,
|
||||||
|
__lib,
|
||||||
|
__sats,
|
||||||
|
__ws,
|
||||||
|
};
|
||||||
|
use super::ai_task_type::AiTask;
|
||||||
use super::ai_task_kind_type::AiTaskKind;
|
use super::ai_task_kind_type::AiTaskKind;
|
||||||
use super::ai_task_status_type::AiTaskStatus;
|
use super::ai_task_status_type::AiTaskStatus;
|
||||||
use super::ai_task_type::AiTask;
|
|
||||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
|
||||||
|
|
||||||
/// Table handle for the table `ai_task`.
|
/// Table handle for the table `ai_task`.
|
||||||
///
|
///
|
||||||
@@ -46,12 +51,8 @@ impl<'ctx> __sdk::Table for AiTaskTableHandle<'ctx> {
|
|||||||
type Row = AiTask;
|
type Row = AiTask;
|
||||||
type EventContext = super::EventContext;
|
type EventContext = super::EventContext;
|
||||||
|
|
||||||
fn count(&self) -> u64 {
|
fn count(&self) -> u64 { self.imp.count() }
|
||||||
self.imp.count()
|
fn iter(&self) -> impl Iterator<Item = AiTask> + '_ { self.imp.iter() }
|
||||||
}
|
|
||||||
fn iter(&self) -> impl Iterator<Item = AiTask> + '_ {
|
|
||||||
self.imp.iter()
|
|
||||||
}
|
|
||||||
|
|
||||||
type InsertCallbackId = AiTaskInsertCallbackId;
|
type InsertCallbackId = AiTaskInsertCallbackId;
|
||||||
|
|
||||||
@@ -129,6 +130,7 @@ impl<'ctx> AiTaskTaskIdUnique<'ctx> {
|
|||||||
|
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
pub(super) fn register_table(client_cache: &mut __sdk::ClientCache<super::RemoteModule>) {
|
pub(super) fn register_table(client_cache: &mut __sdk::ClientCache<super::RemoteModule>) {
|
||||||
|
|
||||||
let _table = client_cache.get_or_make_table::<AiTask>("ai_task");
|
let _table = client_cache.get_or_make_table::<AiTask>("ai_task");
|
||||||
_table.add_unique_constraint::<String>("task_id", |row| &row.task_id);
|
_table.add_unique_constraint::<String>("task_id", |row| &row.task_id);
|
||||||
}
|
}
|
||||||
@@ -138,9 +140,10 @@ pub(super) fn parse_table_update(
|
|||||||
raw_updates: __ws::v2::TableUpdate,
|
raw_updates: __ws::v2::TableUpdate,
|
||||||
) -> __sdk::Result<__sdk::TableUpdate<AiTask>> {
|
) -> __sdk::Result<__sdk::TableUpdate<AiTask>> {
|
||||||
__sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| {
|
__sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| {
|
||||||
__sdk::InternalError::failed_parse("TableUpdate<AiTask>", "TableUpdate")
|
__sdk::InternalError::failed_parse(
|
||||||
.with_cause(e)
|
"TableUpdate<AiTask>",
|
||||||
.into()
|
"TableUpdate",
|
||||||
|
).with_cause(e).into()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -159,3 +162,4 @@ impl ai_taskQueryTableAccess for __sdk::QueryTableAccessor {
|
|||||||
__sdk::__query_builder::Table::new("ai_task")
|
__sdk::__query_builder::Table::new("ai_task")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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_kind_type::AiTaskKind;
|
||||||
use super::ai_task_status_type::AiTaskStatus;
|
use super::ai_task_status_type::AiTaskStatus;
|
||||||
@@ -15,23 +20,25 @@ pub struct AiTask {
|
|||||||
pub owner_user_id: String,
|
pub owner_user_id: String,
|
||||||
pub request_label: String,
|
pub request_label: String,
|
||||||
pub source_module: String,
|
pub source_module: String,
|
||||||
pub source_entity_id: Option<String>,
|
pub source_entity_id: Option::<String>,
|
||||||
pub request_payload_json: Option<String>,
|
pub request_payload_json: Option::<String>,
|
||||||
pub status: AiTaskStatus,
|
pub status: AiTaskStatus,
|
||||||
pub failure_message: Option<String>,
|
pub failure_message: Option::<String>,
|
||||||
pub latest_text_output: Option<String>,
|
pub latest_text_output: Option::<String>,
|
||||||
pub latest_structured_payload_json: Option<String>,
|
pub latest_structured_payload_json: Option::<String>,
|
||||||
pub version: u32,
|
pub version: u32,
|
||||||
pub created_at: __sdk::Timestamp,
|
pub created_at: __sdk::Timestamp,
|
||||||
pub started_at: Option<__sdk::Timestamp>,
|
pub started_at: Option::<__sdk::Timestamp>,
|
||||||
pub completed_at: Option<__sdk::Timestamp>,
|
pub completed_at: Option::<__sdk::Timestamp>,
|
||||||
pub updated_at: __sdk::Timestamp,
|
pub updated_at: __sdk::Timestamp,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AiTask {
|
impl __sdk::InModule for AiTask {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// Column accessor struct for the table `AiTask`.
|
/// Column accessor struct for the table `AiTask`.
|
||||||
///
|
///
|
||||||
/// Provides typed access to columns for query building.
|
/// Provides typed access to columns for query building.
|
||||||
@@ -41,16 +48,16 @@ pub struct AiTaskCols {
|
|||||||
pub owner_user_id: __sdk::__query_builder::Col<AiTask, String>,
|
pub owner_user_id: __sdk::__query_builder::Col<AiTask, String>,
|
||||||
pub request_label: __sdk::__query_builder::Col<AiTask, String>,
|
pub request_label: __sdk::__query_builder::Col<AiTask, String>,
|
||||||
pub source_module: __sdk::__query_builder::Col<AiTask, String>,
|
pub source_module: __sdk::__query_builder::Col<AiTask, String>,
|
||||||
pub source_entity_id: __sdk::__query_builder::Col<AiTask, Option<String>>,
|
pub source_entity_id: __sdk::__query_builder::Col<AiTask, Option::<String>>,
|
||||||
pub request_payload_json: __sdk::__query_builder::Col<AiTask, Option<String>>,
|
pub request_payload_json: __sdk::__query_builder::Col<AiTask, Option::<String>>,
|
||||||
pub status: __sdk::__query_builder::Col<AiTask, AiTaskStatus>,
|
pub status: __sdk::__query_builder::Col<AiTask, AiTaskStatus>,
|
||||||
pub failure_message: __sdk::__query_builder::Col<AiTask, Option<String>>,
|
pub failure_message: __sdk::__query_builder::Col<AiTask, Option::<String>>,
|
||||||
pub latest_text_output: __sdk::__query_builder::Col<AiTask, Option<String>>,
|
pub latest_text_output: __sdk::__query_builder::Col<AiTask, Option::<String>>,
|
||||||
pub latest_structured_payload_json: __sdk::__query_builder::Col<AiTask, Option<String>>,
|
pub latest_structured_payload_json: __sdk::__query_builder::Col<AiTask, Option::<String>>,
|
||||||
pub version: __sdk::__query_builder::Col<AiTask, u32>,
|
pub version: __sdk::__query_builder::Col<AiTask, u32>,
|
||||||
pub created_at: __sdk::__query_builder::Col<AiTask, __sdk::Timestamp>,
|
pub created_at: __sdk::__query_builder::Col<AiTask, __sdk::Timestamp>,
|
||||||
pub started_at: __sdk::__query_builder::Col<AiTask, Option<__sdk::Timestamp>>,
|
pub started_at: __sdk::__query_builder::Col<AiTask, Option::<__sdk::Timestamp>>,
|
||||||
pub completed_at: __sdk::__query_builder::Col<AiTask, Option<__sdk::Timestamp>>,
|
pub completed_at: __sdk::__query_builder::Col<AiTask, Option::<__sdk::Timestamp>>,
|
||||||
pub updated_at: __sdk::__query_builder::Col<AiTask, __sdk::Timestamp>,
|
pub updated_at: __sdk::__query_builder::Col<AiTask, __sdk::Timestamp>,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -64,22 +71,17 @@ impl __sdk::__query_builder::HasCols for AiTask {
|
|||||||
request_label: __sdk::__query_builder::Col::new(table_name, "request_label"),
|
request_label: __sdk::__query_builder::Col::new(table_name, "request_label"),
|
||||||
source_module: __sdk::__query_builder::Col::new(table_name, "source_module"),
|
source_module: __sdk::__query_builder::Col::new(table_name, "source_module"),
|
||||||
source_entity_id: __sdk::__query_builder::Col::new(table_name, "source_entity_id"),
|
source_entity_id: __sdk::__query_builder::Col::new(table_name, "source_entity_id"),
|
||||||
request_payload_json: __sdk::__query_builder::Col::new(
|
request_payload_json: __sdk::__query_builder::Col::new(table_name, "request_payload_json"),
|
||||||
table_name,
|
|
||||||
"request_payload_json",
|
|
||||||
),
|
|
||||||
status: __sdk::__query_builder::Col::new(table_name, "status"),
|
status: __sdk::__query_builder::Col::new(table_name, "status"),
|
||||||
failure_message: __sdk::__query_builder::Col::new(table_name, "failure_message"),
|
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_text_output: __sdk::__query_builder::Col::new(table_name, "latest_text_output"),
|
||||||
latest_structured_payload_json: __sdk::__query_builder::Col::new(
|
latest_structured_payload_json: __sdk::__query_builder::Col::new(table_name, "latest_structured_payload_json"),
|
||||||
table_name,
|
|
||||||
"latest_structured_payload_json",
|
|
||||||
),
|
|
||||||
version: __sdk::__query_builder::Col::new(table_name, "version"),
|
version: __sdk::__query_builder::Col::new(table_name, "version"),
|
||||||
created_at: __sdk::__query_builder::Col::new(table_name, "created_at"),
|
created_at: __sdk::__query_builder::Col::new(table_name, "created_at"),
|
||||||
started_at: __sdk::__query_builder::Col::new(table_name, "started_at"),
|
started_at: __sdk::__query_builder::Col::new(table_name, "started_at"),
|
||||||
completed_at: __sdk::__query_builder::Col::new(table_name, "completed_at"),
|
completed_at: __sdk::__query_builder::Col::new(table_name, "completed_at"),
|
||||||
updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"),
|
updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"),
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -102,8 +104,10 @@ impl __sdk::__query_builder::HasIxCols for AiTask {
|
|||||||
status: __sdk::__query_builder::IxCol::new(table_name, "status"),
|
status: __sdk::__query_builder::IxCol::new(table_name, "status"),
|
||||||
task_id: __sdk::__query_builder::IxCol::new(table_name, "task_id"),
|
task_id: __sdk::__query_builder::IxCol::new(table_name, "task_id"),
|
||||||
task_kind: __sdk::__query_builder::IxCol::new(table_name, "task_kind"),
|
task_kind: __sdk::__query_builder::IxCol::new(table_name, "task_kind"),
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl __sdk::__query_builder::CanBeLookupTable for AiTask {}
|
impl __sdk::__query_builder::CanBeLookupTable for AiTask {}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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_kind_type::AiTaskStageKind;
|
||||||
|
|
||||||
@@ -16,6 +21,8 @@ pub struct AiTextChunkAppendInput {
|
|||||||
pub created_at_micros: i64,
|
pub created_at_micros: i64,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AiTextChunkAppendInput {
|
impl __sdk::InModule for AiTextChunkAppendInput {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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_kind_type::AiTaskStageKind;
|
||||||
|
|
||||||
@@ -17,6 +22,8 @@ pub struct AiTextChunkSnapshot {
|
|||||||
pub created_at_micros: i64,
|
pub created_at_micros: i64,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AiTextChunkSnapshot {
|
impl __sdk::InModule for AiTextChunkSnapshot {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,9 +2,14 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, clippy::all)]
|
||||||
use super::ai_task_stage_kind_type::AiTaskStageKind;
|
use spacetimedb_sdk::__codegen::{
|
||||||
|
self as __sdk,
|
||||||
|
__lib,
|
||||||
|
__sats,
|
||||||
|
__ws,
|
||||||
|
};
|
||||||
use super::ai_text_chunk_type::AiTextChunk;
|
use super::ai_text_chunk_type::AiTextChunk;
|
||||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
use super::ai_task_stage_kind_type::AiTaskStageKind;
|
||||||
|
|
||||||
/// Table handle for the table `ai_text_chunk`.
|
/// Table handle for the table `ai_text_chunk`.
|
||||||
///
|
///
|
||||||
@@ -45,12 +50,8 @@ impl<'ctx> __sdk::Table for AiTextChunkTableHandle<'ctx> {
|
|||||||
type Row = AiTextChunk;
|
type Row = AiTextChunk;
|
||||||
type EventContext = super::EventContext;
|
type EventContext = super::EventContext;
|
||||||
|
|
||||||
fn count(&self) -> u64 {
|
fn count(&self) -> u64 { self.imp.count() }
|
||||||
self.imp.count()
|
fn iter(&self) -> impl Iterator<Item = AiTextChunk> + '_ { self.imp.iter() }
|
||||||
}
|
|
||||||
fn iter(&self) -> impl Iterator<Item = AiTextChunk> + '_ {
|
|
||||||
self.imp.iter()
|
|
||||||
}
|
|
||||||
|
|
||||||
type InsertCallbackId = AiTextChunkInsertCallbackId;
|
type InsertCallbackId = AiTextChunkInsertCallbackId;
|
||||||
|
|
||||||
@@ -112,9 +113,7 @@ impl<'ctx> AiTextChunkTableHandle<'ctx> {
|
|||||||
/// Get a handle on the `text_chunk_row_id` unique index on the table `ai_text_chunk`.
|
/// Get a handle on the `text_chunk_row_id` unique index on the table `ai_text_chunk`.
|
||||||
pub fn text_chunk_row_id(&self) -> AiTextChunkTextChunkRowIdUnique<'ctx> {
|
pub fn text_chunk_row_id(&self) -> AiTextChunkTextChunkRowIdUnique<'ctx> {
|
||||||
AiTextChunkTextChunkRowIdUnique {
|
AiTextChunkTextChunkRowIdUnique {
|
||||||
imp: self
|
imp: self.imp.get_unique_constraint::<String>("text_chunk_row_id"),
|
||||||
.imp
|
|
||||||
.get_unique_constraint::<String>("text_chunk_row_id"),
|
|
||||||
phantom: std::marker::PhantomData,
|
phantom: std::marker::PhantomData,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -130,6 +129,7 @@ impl<'ctx> AiTextChunkTextChunkRowIdUnique<'ctx> {
|
|||||||
|
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
pub(super) fn register_table(client_cache: &mut __sdk::ClientCache<super::RemoteModule>) {
|
pub(super) fn register_table(client_cache: &mut __sdk::ClientCache<super::RemoteModule>) {
|
||||||
|
|
||||||
let _table = client_cache.get_or_make_table::<AiTextChunk>("ai_text_chunk");
|
let _table = client_cache.get_or_make_table::<AiTextChunk>("ai_text_chunk");
|
||||||
_table.add_unique_constraint::<String>("text_chunk_row_id", |row| &row.text_chunk_row_id);
|
_table.add_unique_constraint::<String>("text_chunk_row_id", |row| &row.text_chunk_row_id);
|
||||||
}
|
}
|
||||||
@@ -139,9 +139,10 @@ pub(super) fn parse_table_update(
|
|||||||
raw_updates: __ws::v2::TableUpdate,
|
raw_updates: __ws::v2::TableUpdate,
|
||||||
) -> __sdk::Result<__sdk::TableUpdate<AiTextChunk>> {
|
) -> __sdk::Result<__sdk::TableUpdate<AiTextChunk>> {
|
||||||
__sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| {
|
__sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| {
|
||||||
__sdk::InternalError::failed_parse("TableUpdate<AiTextChunk>", "TableUpdate")
|
__sdk::InternalError::failed_parse(
|
||||||
.with_cause(e)
|
"TableUpdate<AiTextChunk>",
|
||||||
.into()
|
"TableUpdate",
|
||||||
|
).with_cause(e).into()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -160,3 +161,4 @@ impl ai_text_chunkQueryTableAccess for __sdk::QueryTableAccessor {
|
|||||||
__sdk::__query_builder::Table::new("ai_text_chunk")
|
__sdk::__query_builder::Table::new("ai_text_chunk")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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_kind_type::AiTaskStageKind;
|
||||||
|
|
||||||
@@ -18,10 +23,12 @@ pub struct AiTextChunk {
|
|||||||
pub created_at: __sdk::Timestamp,
|
pub created_at: __sdk::Timestamp,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AiTextChunk {
|
impl __sdk::InModule for AiTextChunk {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// Column accessor struct for the table `AiTextChunk`.
|
/// Column accessor struct for the table `AiTextChunk`.
|
||||||
///
|
///
|
||||||
/// Provides typed access to columns for query building.
|
/// Provides typed access to columns for query building.
|
||||||
@@ -46,6 +53,7 @@ impl __sdk::__query_builder::HasCols for AiTextChunk {
|
|||||||
sequence: __sdk::__query_builder::Col::new(table_name, "sequence"),
|
sequence: __sdk::__query_builder::Col::new(table_name, "sequence"),
|
||||||
delta_text: __sdk::__query_builder::Col::new(table_name, "delta_text"),
|
delta_text: __sdk::__query_builder::Col::new(table_name, "delta_text"),
|
||||||
created_at: __sdk::__query_builder::Col::new(table_name, "created_at"),
|
created_at: __sdk::__query_builder::Col::new(table_name, "created_at"),
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -64,8 +72,10 @@ impl __sdk::__query_builder::HasIxCols for AiTextChunk {
|
|||||||
AiTextChunkIxCols {
|
AiTextChunkIxCols {
|
||||||
task_id: __sdk::__query_builder::IxCol::new(table_name, "task_id"),
|
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"),
|
text_chunk_row_id: __sdk::__query_builder::IxCol::new(table_name, "text_chunk_row_id"),
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl __sdk::__query_builder::CanBeLookupTable for AiTextChunk {}
|
impl __sdk::__query_builder::CanBeLookupTable for AiTextChunk {}
|
||||||
|
|
||||||
|
|||||||
@@ -2,10 +2,15 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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_text_chunk_append_input_type::AiTextChunkAppendInput;
|
use super::ai_text_chunk_append_input_type::AiTextChunkAppendInput;
|
||||||
|
use super::ai_task_procedure_result_type::AiTaskProcedureResult;
|
||||||
|
|
||||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
@@ -13,6 +18,7 @@ struct AppendAiTextChunkAndReturnArgs {
|
|||||||
pub input: AiTextChunkAppendInput,
|
pub input: AiTextChunkAppendInput,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AppendAiTextChunkAndReturnArgs {
|
impl __sdk::InModule for AppendAiTextChunkAndReturnArgs {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
@@ -22,7 +28,8 @@ impl __sdk::InModule for AppendAiTextChunkAndReturnArgs {
|
|||||||
///
|
///
|
||||||
/// Implemented for [`super::RemoteProcedures`].
|
/// Implemented for [`super::RemoteProcedures`].
|
||||||
pub trait append_ai_text_chunk_and_return {
|
pub trait append_ai_text_chunk_and_return {
|
||||||
fn append_ai_text_chunk_and_return(&self, input: AiTextChunkAppendInput) {
|
fn append_ai_text_chunk_and_return(&self, input: AiTextChunkAppendInput,
|
||||||
|
) {
|
||||||
self.append_ai_text_chunk_and_return_then(input, |_, _| {});
|
self.append_ai_text_chunk_and_return_then(input, |_, _| {});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -30,11 +37,7 @@ pub trait append_ai_text_chunk_and_return {
|
|||||||
&self,
|
&self,
|
||||||
input: AiTextChunkAppendInput,
|
input: AiTextChunkAppendInput,
|
||||||
|
|
||||||
__callback: impl FnOnce(
|
__callback: impl FnOnce(&super::ProcedureEventContext, Result<AiTaskProcedureResult, __sdk::InternalError>) + Send + 'static,
|
||||||
&super::ProcedureEventContext,
|
|
||||||
Result<AiTaskProcedureResult, __sdk::InternalError>,
|
|
||||||
) + Send
|
|
||||||
+ 'static,
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -43,17 +46,13 @@ impl append_ai_text_chunk_and_return for super::RemoteProcedures {
|
|||||||
&self,
|
&self,
|
||||||
input: AiTextChunkAppendInput,
|
input: AiTextChunkAppendInput,
|
||||||
|
|
||||||
__callback: impl FnOnce(
|
__callback: impl FnOnce(&super::ProcedureEventContext, Result<AiTaskProcedureResult, __sdk::InternalError>) + Send + 'static,
|
||||||
&super::ProcedureEventContext,
|
|
||||||
Result<AiTaskProcedureResult, __sdk::InternalError>,
|
|
||||||
) + Send
|
|
||||||
+ 'static,
|
|
||||||
) {
|
) {
|
||||||
self.imp
|
self.imp.invoke_procedure_with_callback::<_, AiTaskProcedureResult>(
|
||||||
.invoke_procedure_with_callback::<_, AiTaskProcedureResult>(
|
|
||||||
"append_ai_text_chunk_and_return",
|
"append_ai_text_chunk_and_return",
|
||||||
AppendAiTextChunkAndReturnArgs { input },
|
AppendAiTextChunkAndReturnArgs { input, },
|
||||||
__callback,
|
__callback,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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_ledger_input_type::ChapterProgressionLedgerInput;
|
||||||
use super::chapter_progression_procedure_result_type::ChapterProgressionProcedureResult;
|
use super::chapter_progression_procedure_result_type::ChapterProgressionProcedureResult;
|
||||||
@@ -13,6 +18,7 @@ struct ApplyChapterProgressionLedgerEntryAndReturnArgs {
|
|||||||
pub input: ChapterProgressionLedgerInput,
|
pub input: ChapterProgressionLedgerInput,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for ApplyChapterProgressionLedgerEntryAndReturnArgs {
|
impl __sdk::InModule for ApplyChapterProgressionLedgerEntryAndReturnArgs {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
@@ -22,9 +28,7 @@ impl __sdk::InModule for ApplyChapterProgressionLedgerEntryAndReturnArgs {
|
|||||||
///
|
///
|
||||||
/// Implemented for [`super::RemoteProcedures`].
|
/// Implemented for [`super::RemoteProcedures`].
|
||||||
pub trait apply_chapter_progression_ledger_entry_and_return {
|
pub trait apply_chapter_progression_ledger_entry_and_return {
|
||||||
fn apply_chapter_progression_ledger_entry_and_return(
|
fn apply_chapter_progression_ledger_entry_and_return(&self, input: ChapterProgressionLedgerInput,
|
||||||
&self,
|
|
||||||
input: ChapterProgressionLedgerInput,
|
|
||||||
) {
|
) {
|
||||||
self.apply_chapter_progression_ledger_entry_and_return_then(input, |_, _| {});
|
self.apply_chapter_progression_ledger_entry_and_return_then(input, |_, _| {});
|
||||||
}
|
}
|
||||||
@@ -33,11 +37,7 @@ pub trait apply_chapter_progression_ledger_entry_and_return {
|
|||||||
&self,
|
&self,
|
||||||
input: ChapterProgressionLedgerInput,
|
input: ChapterProgressionLedgerInput,
|
||||||
|
|
||||||
__callback: impl FnOnce(
|
__callback: impl FnOnce(&super::ProcedureEventContext, Result<ChapterProgressionProcedureResult, __sdk::InternalError>) + Send + 'static,
|
||||||
&super::ProcedureEventContext,
|
|
||||||
Result<ChapterProgressionProcedureResult, __sdk::InternalError>,
|
|
||||||
) + Send
|
|
||||||
+ 'static,
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -46,17 +46,13 @@ impl apply_chapter_progression_ledger_entry_and_return for super::RemoteProcedur
|
|||||||
&self,
|
&self,
|
||||||
input: ChapterProgressionLedgerInput,
|
input: ChapterProgressionLedgerInput,
|
||||||
|
|
||||||
__callback: impl FnOnce(
|
__callback: impl FnOnce(&super::ProcedureEventContext, Result<ChapterProgressionProcedureResult, __sdk::InternalError>) + Send + 'static,
|
||||||
&super::ProcedureEventContext,
|
|
||||||
Result<ChapterProgressionProcedureResult, __sdk::InternalError>,
|
|
||||||
) + Send
|
|
||||||
+ 'static,
|
|
||||||
) {
|
) {
|
||||||
self.imp
|
self.imp.invoke_procedure_with_callback::<_, ChapterProgressionProcedureResult>(
|
||||||
.invoke_procedure_with_callback::<_, ChapterProgressionProcedureResult>(
|
|
||||||
"apply_chapter_progression_ledger_entry_and_return",
|
"apply_chapter_progression_ledger_entry_and_return",
|
||||||
ApplyChapterProgressionLedgerEntryAndReturnArgs { input },
|
ApplyChapterProgressionLedgerEntryAndReturnArgs { input, },
|
||||||
__callback,
|
__callback,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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_ledger_input_type::ChapterProgressionLedgerInput;
|
||||||
|
|
||||||
@@ -14,7 +19,9 @@ pub(super) struct ApplyChapterProgressionLedgerEntryArgs {
|
|||||||
|
|
||||||
impl From<ApplyChapterProgressionLedgerEntryArgs> for super::Reducer {
|
impl From<ApplyChapterProgressionLedgerEntryArgs> for super::Reducer {
|
||||||
fn from(args: ApplyChapterProgressionLedgerEntryArgs) -> Self {
|
fn from(args: ApplyChapterProgressionLedgerEntryArgs) -> Self {
|
||||||
Self::ApplyChapterProgressionLedgerEntry { input: args.input }
|
Self::ApplyChapterProgressionLedgerEntry {
|
||||||
|
input: args.input,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -33,9 +40,7 @@ pub trait apply_chapter_progression_ledger_entry {
|
|||||||
/// The reducer will run asynchronously in the future,
|
/// The reducer will run asynchronously in the future,
|
||||||
/// and this method provides no way to listen for its completion status.
|
/// 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.
|
/// /// 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(
|
fn apply_chapter_progression_ledger_entry(&self, input: ChapterProgressionLedgerInput,
|
||||||
&self,
|
|
||||||
input: ChapterProgressionLedgerInput,
|
|
||||||
) -> __sdk::Result<()> {
|
) -> __sdk::Result<()> {
|
||||||
self.apply_chapter_progression_ledger_entry_then(input, |_, _| {})
|
self.apply_chapter_progression_ledger_entry_then(input, |_, _| {})
|
||||||
}
|
}
|
||||||
@@ -50,10 +55,8 @@ pub trait apply_chapter_progression_ledger_entry {
|
|||||||
&self,
|
&self,
|
||||||
input: ChapterProgressionLedgerInput,
|
input: ChapterProgressionLedgerInput,
|
||||||
|
|
||||||
callback: impl FnOnce(
|
callback: impl FnOnce(&super::ReducerEventContext, Result<Result<(), String>, __sdk::InternalError>)
|
||||||
&super::ReducerEventContext,
|
+ Send
|
||||||
Result<Result<(), String>, __sdk::InternalError>,
|
|
||||||
) + Send
|
|
||||||
+ 'static,
|
+ 'static,
|
||||||
) -> __sdk::Result<()>;
|
) -> __sdk::Result<()>;
|
||||||
}
|
}
|
||||||
@@ -63,15 +66,11 @@ impl apply_chapter_progression_ledger_entry for super::RemoteReducers {
|
|||||||
&self,
|
&self,
|
||||||
input: ChapterProgressionLedgerInput,
|
input: ChapterProgressionLedgerInput,
|
||||||
|
|
||||||
callback: impl FnOnce(
|
callback: impl FnOnce(&super::ReducerEventContext, Result<Result<(), String>, __sdk::InternalError>)
|
||||||
&super::ReducerEventContext,
|
+ Send
|
||||||
Result<Result<(), String>, __sdk::InternalError>,
|
|
||||||
) + Send
|
|
||||||
+ 'static,
|
+ 'static,
|
||||||
) -> __sdk::Result<()> {
|
) -> __sdk::Result<()> {
|
||||||
self.imp.invoke_reducer_with_callback(
|
self.imp.invoke_reducer_with_callback(ApplyChapterProgressionLedgerEntryArgs { input, }, callback)
|
||||||
ApplyChapterProgressionLedgerEntryArgs { input },
|
|
||||||
callback,
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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;
|
use super::inventory_mutation_input_type::InventoryMutationInput;
|
||||||
|
|
||||||
@@ -14,7 +19,9 @@ pub(super) struct ApplyInventoryMutationArgs {
|
|||||||
|
|
||||||
impl From<ApplyInventoryMutationArgs> for super::Reducer {
|
impl From<ApplyInventoryMutationArgs> for super::Reducer {
|
||||||
fn from(args: ApplyInventoryMutationArgs) -> Self {
|
fn from(args: ApplyInventoryMutationArgs) -> Self {
|
||||||
Self::ApplyInventoryMutation { input: args.input }
|
Self::ApplyInventoryMutation {
|
||||||
|
input: args.input,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -33,7 +40,8 @@ pub trait apply_inventory_mutation {
|
|||||||
/// The reducer will run asynchronously in the future,
|
/// The reducer will run asynchronously in the future,
|
||||||
/// and this method provides no way to listen for its completion status.
|
/// 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.
|
/// /// 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<()> {
|
fn apply_inventory_mutation(&self, input: InventoryMutationInput,
|
||||||
|
) -> __sdk::Result<()> {
|
||||||
self.apply_inventory_mutation_then(input, |_, _| {})
|
self.apply_inventory_mutation_then(input, |_, _| {})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -47,10 +55,8 @@ pub trait apply_inventory_mutation {
|
|||||||
&self,
|
&self,
|
||||||
input: InventoryMutationInput,
|
input: InventoryMutationInput,
|
||||||
|
|
||||||
callback: impl FnOnce(
|
callback: impl FnOnce(&super::ReducerEventContext, Result<Result<(), String>, __sdk::InternalError>)
|
||||||
&super::ReducerEventContext,
|
+ Send
|
||||||
Result<Result<(), String>, __sdk::InternalError>,
|
|
||||||
) + Send
|
|
||||||
+ 'static,
|
+ 'static,
|
||||||
) -> __sdk::Result<()>;
|
) -> __sdk::Result<()>;
|
||||||
}
|
}
|
||||||
@@ -60,13 +66,11 @@ impl apply_inventory_mutation for super::RemoteReducers {
|
|||||||
&self,
|
&self,
|
||||||
input: InventoryMutationInput,
|
input: InventoryMutationInput,
|
||||||
|
|
||||||
callback: impl FnOnce(
|
callback: impl FnOnce(&super::ReducerEventContext, Result<Result<(), String>, __sdk::InternalError>)
|
||||||
&super::ReducerEventContext,
|
+ Send
|
||||||
Result<Result<(), String>, __sdk::InternalError>,
|
|
||||||
) + Send
|
|
||||||
+ 'static,
|
+ 'static,
|
||||||
) -> __sdk::Result<()> {
|
) -> __sdk::Result<()> {
|
||||||
self.imp
|
self.imp.invoke_reducer_with_callback(ApplyInventoryMutationArgs { input, }, callback)
|
||||||
.invoke_reducer_with_callback(ApplyInventoryMutationArgs { input }, callback)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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;
|
use super::quest_signal_apply_input_type::QuestSignalApplyInput;
|
||||||
|
|
||||||
@@ -14,7 +19,9 @@ pub(super) struct ApplyQuestSignalArgs {
|
|||||||
|
|
||||||
impl From<ApplyQuestSignalArgs> for super::Reducer {
|
impl From<ApplyQuestSignalArgs> for super::Reducer {
|
||||||
fn from(args: ApplyQuestSignalArgs) -> Self {
|
fn from(args: ApplyQuestSignalArgs) -> Self {
|
||||||
Self::ApplyQuestSignal { input: args.input }
|
Self::ApplyQuestSignal {
|
||||||
|
input: args.input,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -33,7 +40,8 @@ pub trait apply_quest_signal {
|
|||||||
/// The reducer will run asynchronously in the future,
|
/// The reducer will run asynchronously in the future,
|
||||||
/// and this method provides no way to listen for its completion status.
|
/// 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.
|
/// /// 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<()> {
|
fn apply_quest_signal(&self, input: QuestSignalApplyInput,
|
||||||
|
) -> __sdk::Result<()> {
|
||||||
self.apply_quest_signal_then(input, |_, _| {})
|
self.apply_quest_signal_then(input, |_, _| {})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -47,10 +55,8 @@ pub trait apply_quest_signal {
|
|||||||
&self,
|
&self,
|
||||||
input: QuestSignalApplyInput,
|
input: QuestSignalApplyInput,
|
||||||
|
|
||||||
callback: impl FnOnce(
|
callback: impl FnOnce(&super::ReducerEventContext, Result<Result<(), String>, __sdk::InternalError>)
|
||||||
&super::ReducerEventContext,
|
+ Send
|
||||||
Result<Result<(), String>, __sdk::InternalError>,
|
|
||||||
) + Send
|
|
||||||
+ 'static,
|
+ 'static,
|
||||||
) -> __sdk::Result<()>;
|
) -> __sdk::Result<()>;
|
||||||
}
|
}
|
||||||
@@ -60,13 +66,11 @@ impl apply_quest_signal for super::RemoteReducers {
|
|||||||
&self,
|
&self,
|
||||||
input: QuestSignalApplyInput,
|
input: QuestSignalApplyInput,
|
||||||
|
|
||||||
callback: impl FnOnce(
|
callback: impl FnOnce(&super::ReducerEventContext, Result<Result<(), String>, __sdk::InternalError>)
|
||||||
&super::ReducerEventContext,
|
+ Send
|
||||||
Result<Result<(), String>, __sdk::InternalError>,
|
|
||||||
) + Send
|
|
||||||
+ 'static,
|
+ 'static,
|
||||||
) -> __sdk::Result<()> {
|
) -> __sdk::Result<()> {
|
||||||
self.imp
|
self.imp.invoke_reducer_with_callback(ApplyQuestSignalArgs { input, }, callback)
|
||||||
.invoke_reducer_with_callback(ApplyQuestSignalArgs { input }, callback)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,13 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![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)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
@@ -13,11 +19,13 @@ pub struct AssetEntityBindingInput {
|
|||||||
pub entity_id: String,
|
pub entity_id: String,
|
||||||
pub slot: String,
|
pub slot: String,
|
||||||
pub asset_kind: String,
|
pub asset_kind: String,
|
||||||
pub owner_user_id: Option<String>,
|
pub owner_user_id: Option::<String>,
|
||||||
pub profile_id: Option<String>,
|
pub profile_id: Option::<String>,
|
||||||
pub updated_at_micros: i64,
|
pub updated_at_micros: i64,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AssetEntityBindingInput {
|
impl __sdk::InModule for AssetEntityBindingInput {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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;
|
use super::asset_entity_binding_snapshot_type::AssetEntityBindingSnapshot;
|
||||||
|
|
||||||
@@ -10,10 +15,12 @@ use super::asset_entity_binding_snapshot_type::AssetEntityBindingSnapshot;
|
|||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
pub struct AssetEntityBindingProcedureResult {
|
pub struct AssetEntityBindingProcedureResult {
|
||||||
pub ok: bool,
|
pub ok: bool,
|
||||||
pub record: Option<AssetEntityBindingSnapshot>,
|
pub record: Option::<AssetEntityBindingSnapshot>,
|
||||||
pub error_message: Option<String>,
|
pub error_message: Option::<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AssetEntityBindingProcedureResult {
|
impl __sdk::InModule for AssetEntityBindingProcedureResult {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,13 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![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)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
@@ -13,12 +19,14 @@ pub struct AssetEntityBindingSnapshot {
|
|||||||
pub entity_id: String,
|
pub entity_id: String,
|
||||||
pub slot: String,
|
pub slot: String,
|
||||||
pub asset_kind: String,
|
pub asset_kind: String,
|
||||||
pub owner_user_id: Option<String>,
|
pub owner_user_id: Option::<String>,
|
||||||
pub profile_id: Option<String>,
|
pub profile_id: Option::<String>,
|
||||||
pub created_at_micros: i64,
|
pub created_at_micros: i64,
|
||||||
pub updated_at_micros: i64,
|
pub updated_at_micros: i64,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AssetEntityBindingSnapshot {
|
impl __sdk::InModule for AssetEntityBindingSnapshot {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,13 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, clippy::all)]
|
||||||
|
use spacetimedb_sdk::__codegen::{
|
||||||
|
self as __sdk,
|
||||||
|
__lib,
|
||||||
|
__sats,
|
||||||
|
__ws,
|
||||||
|
};
|
||||||
use super::asset_entity_binding_type::AssetEntityBinding;
|
use super::asset_entity_binding_type::AssetEntityBinding;
|
||||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
|
||||||
|
|
||||||
/// Table handle for the table `asset_entity_binding`.
|
/// Table handle for the table `asset_entity_binding`.
|
||||||
///
|
///
|
||||||
@@ -31,9 +36,7 @@ pub trait AssetEntityBindingTableAccess {
|
|||||||
impl AssetEntityBindingTableAccess for super::RemoteTables {
|
impl AssetEntityBindingTableAccess for super::RemoteTables {
|
||||||
fn asset_entity_binding(&self) -> AssetEntityBindingTableHandle<'_> {
|
fn asset_entity_binding(&self) -> AssetEntityBindingTableHandle<'_> {
|
||||||
AssetEntityBindingTableHandle {
|
AssetEntityBindingTableHandle {
|
||||||
imp: self
|
imp: self.imp.get_table::<AssetEntityBinding>("asset_entity_binding"),
|
||||||
.imp
|
|
||||||
.get_table::<AssetEntityBinding>("asset_entity_binding"),
|
|
||||||
ctx: std::marker::PhantomData,
|
ctx: std::marker::PhantomData,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -46,12 +49,8 @@ impl<'ctx> __sdk::Table for AssetEntityBindingTableHandle<'ctx> {
|
|||||||
type Row = AssetEntityBinding;
|
type Row = AssetEntityBinding;
|
||||||
type EventContext = super::EventContext;
|
type EventContext = super::EventContext;
|
||||||
|
|
||||||
fn count(&self) -> u64 {
|
fn count(&self) -> u64 { self.imp.count() }
|
||||||
self.imp.count()
|
fn iter(&self) -> impl Iterator<Item = AssetEntityBinding> + '_ { self.imp.iter() }
|
||||||
}
|
|
||||||
fn iter(&self) -> impl Iterator<Item = AssetEntityBinding> + '_ {
|
|
||||||
self.imp.iter()
|
|
||||||
}
|
|
||||||
|
|
||||||
type InsertCallbackId = AssetEntityBindingInsertCallbackId;
|
type InsertCallbackId = AssetEntityBindingInsertCallbackId;
|
||||||
|
|
||||||
@@ -129,6 +128,7 @@ impl<'ctx> AssetEntityBindingBindingIdUnique<'ctx> {
|
|||||||
|
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
pub(super) fn register_table(client_cache: &mut __sdk::ClientCache<super::RemoteModule>) {
|
pub(super) fn register_table(client_cache: &mut __sdk::ClientCache<super::RemoteModule>) {
|
||||||
|
|
||||||
let _table = client_cache.get_or_make_table::<AssetEntityBinding>("asset_entity_binding");
|
let _table = client_cache.get_or_make_table::<AssetEntityBinding>("asset_entity_binding");
|
||||||
_table.add_unique_constraint::<String>("binding_id", |row| &row.binding_id);
|
_table.add_unique_constraint::<String>("binding_id", |row| &row.binding_id);
|
||||||
}
|
}
|
||||||
@@ -138,9 +138,10 @@ pub(super) fn parse_table_update(
|
|||||||
raw_updates: __ws::v2::TableUpdate,
|
raw_updates: __ws::v2::TableUpdate,
|
||||||
) -> __sdk::Result<__sdk::TableUpdate<AssetEntityBinding>> {
|
) -> __sdk::Result<__sdk::TableUpdate<AssetEntityBinding>> {
|
||||||
__sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| {
|
__sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| {
|
||||||
__sdk::InternalError::failed_parse("TableUpdate<AssetEntityBinding>", "TableUpdate")
|
__sdk::InternalError::failed_parse(
|
||||||
.with_cause(e)
|
"TableUpdate<AssetEntityBinding>",
|
||||||
.into()
|
"TableUpdate",
|
||||||
|
).with_cause(e).into()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -159,3 +160,4 @@ impl asset_entity_bindingQueryTableAccess for __sdk::QueryTableAccessor {
|
|||||||
__sdk::__query_builder::Table::new("asset_entity_binding")
|
__sdk::__query_builder::Table::new("asset_entity_binding")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,13 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![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)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
@@ -13,16 +19,18 @@ pub struct AssetEntityBinding {
|
|||||||
pub entity_id: String,
|
pub entity_id: String,
|
||||||
pub slot: String,
|
pub slot: String,
|
||||||
pub asset_kind: String,
|
pub asset_kind: String,
|
||||||
pub owner_user_id: Option<String>,
|
pub owner_user_id: Option::<String>,
|
||||||
pub profile_id: Option<String>,
|
pub profile_id: Option::<String>,
|
||||||
pub created_at: __sdk::Timestamp,
|
pub created_at: __sdk::Timestamp,
|
||||||
pub updated_at: __sdk::Timestamp,
|
pub updated_at: __sdk::Timestamp,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AssetEntityBinding {
|
impl __sdk::InModule for AssetEntityBinding {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// Column accessor struct for the table `AssetEntityBinding`.
|
/// Column accessor struct for the table `AssetEntityBinding`.
|
||||||
///
|
///
|
||||||
/// Provides typed access to columns for query building.
|
/// Provides typed access to columns for query building.
|
||||||
@@ -33,8 +41,8 @@ pub struct AssetEntityBindingCols {
|
|||||||
pub entity_id: __sdk::__query_builder::Col<AssetEntityBinding, String>,
|
pub entity_id: __sdk::__query_builder::Col<AssetEntityBinding, String>,
|
||||||
pub slot: __sdk::__query_builder::Col<AssetEntityBinding, String>,
|
pub slot: __sdk::__query_builder::Col<AssetEntityBinding, String>,
|
||||||
pub asset_kind: __sdk::__query_builder::Col<AssetEntityBinding, String>,
|
pub asset_kind: __sdk::__query_builder::Col<AssetEntityBinding, String>,
|
||||||
pub owner_user_id: __sdk::__query_builder::Col<AssetEntityBinding, Option<String>>,
|
pub owner_user_id: __sdk::__query_builder::Col<AssetEntityBinding, Option::<String>>,
|
||||||
pub profile_id: __sdk::__query_builder::Col<AssetEntityBinding, Option<String>>,
|
pub profile_id: __sdk::__query_builder::Col<AssetEntityBinding, Option::<String>>,
|
||||||
pub created_at: __sdk::__query_builder::Col<AssetEntityBinding, __sdk::Timestamp>,
|
pub created_at: __sdk::__query_builder::Col<AssetEntityBinding, __sdk::Timestamp>,
|
||||||
pub updated_at: __sdk::__query_builder::Col<AssetEntityBinding, __sdk::Timestamp>,
|
pub updated_at: __sdk::__query_builder::Col<AssetEntityBinding, __sdk::Timestamp>,
|
||||||
}
|
}
|
||||||
@@ -53,6 +61,7 @@ impl __sdk::__query_builder::HasCols for AssetEntityBinding {
|
|||||||
profile_id: __sdk::__query_builder::Col::new(table_name, "profile_id"),
|
profile_id: __sdk::__query_builder::Col::new(table_name, "profile_id"),
|
||||||
created_at: __sdk::__query_builder::Col::new(table_name, "created_at"),
|
created_at: __sdk::__query_builder::Col::new(table_name, "created_at"),
|
||||||
updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"),
|
updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"),
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -71,8 +80,10 @@ impl __sdk::__query_builder::HasIxCols for AssetEntityBinding {
|
|||||||
AssetEntityBindingIxCols {
|
AssetEntityBindingIxCols {
|
||||||
asset_object_id: __sdk::__query_builder::IxCol::new(table_name, "asset_object_id"),
|
asset_object_id: __sdk::__query_builder::IxCol::new(table_name, "asset_object_id"),
|
||||||
binding_id: __sdk::__query_builder::IxCol::new(table_name, "binding_id"),
|
binding_id: __sdk::__query_builder::IxCol::new(table_name, "binding_id"),
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl __sdk::__query_builder::CanBeLookupTable for AssetEntityBinding {}
|
impl __sdk::__query_builder::CanBeLookupTable for AssetEntityBinding {}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![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)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
@@ -11,8 +16,12 @@ pub enum AssetObjectAccessPolicy {
|
|||||||
Private,
|
Private,
|
||||||
|
|
||||||
PublicRead,
|
PublicRead,
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AssetObjectAccessPolicy {
|
impl __sdk::InModule for AssetObjectAccessPolicy {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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;
|
use super::asset_object_upsert_snapshot_type::AssetObjectUpsertSnapshot;
|
||||||
|
|
||||||
@@ -10,10 +15,12 @@ use super::asset_object_upsert_snapshot_type::AssetObjectUpsertSnapshot;
|
|||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
pub struct AssetObjectProcedureResult {
|
pub struct AssetObjectProcedureResult {
|
||||||
pub ok: bool,
|
pub ok: bool,
|
||||||
pub record: Option<AssetObjectUpsertSnapshot>,
|
pub record: Option::<AssetObjectUpsertSnapshot>,
|
||||||
pub error_message: Option<String>,
|
pub error_message: Option::<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AssetObjectProcedureResult {
|
impl __sdk::InModule for AssetObjectProcedureResult {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,9 +2,14 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, clippy::all)]
|
||||||
use super::asset_object_access_policy_type::AssetObjectAccessPolicy;
|
use spacetimedb_sdk::__codegen::{
|
||||||
|
self as __sdk,
|
||||||
|
__lib,
|
||||||
|
__sats,
|
||||||
|
__ws,
|
||||||
|
};
|
||||||
use super::asset_object_type::AssetObject;
|
use super::asset_object_type::AssetObject;
|
||||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
use super::asset_object_access_policy_type::AssetObjectAccessPolicy;
|
||||||
|
|
||||||
/// Table handle for the table `asset_object`.
|
/// Table handle for the table `asset_object`.
|
||||||
///
|
///
|
||||||
@@ -45,12 +50,8 @@ impl<'ctx> __sdk::Table for AssetObjectTableHandle<'ctx> {
|
|||||||
type Row = AssetObject;
|
type Row = AssetObject;
|
||||||
type EventContext = super::EventContext;
|
type EventContext = super::EventContext;
|
||||||
|
|
||||||
fn count(&self) -> u64 {
|
fn count(&self) -> u64 { self.imp.count() }
|
||||||
self.imp.count()
|
fn iter(&self) -> impl Iterator<Item = AssetObject> + '_ { self.imp.iter() }
|
||||||
}
|
|
||||||
fn iter(&self) -> impl Iterator<Item = AssetObject> + '_ {
|
|
||||||
self.imp.iter()
|
|
||||||
}
|
|
||||||
|
|
||||||
type InsertCallbackId = AssetObjectInsertCallbackId;
|
type InsertCallbackId = AssetObjectInsertCallbackId;
|
||||||
|
|
||||||
@@ -128,6 +129,7 @@ impl<'ctx> AssetObjectAssetObjectIdUnique<'ctx> {
|
|||||||
|
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
pub(super) fn register_table(client_cache: &mut __sdk::ClientCache<super::RemoteModule>) {
|
pub(super) fn register_table(client_cache: &mut __sdk::ClientCache<super::RemoteModule>) {
|
||||||
|
|
||||||
let _table = client_cache.get_or_make_table::<AssetObject>("asset_object");
|
let _table = client_cache.get_or_make_table::<AssetObject>("asset_object");
|
||||||
_table.add_unique_constraint::<String>("asset_object_id", |row| &row.asset_object_id);
|
_table.add_unique_constraint::<String>("asset_object_id", |row| &row.asset_object_id);
|
||||||
}
|
}
|
||||||
@@ -137,9 +139,10 @@ pub(super) fn parse_table_update(
|
|||||||
raw_updates: __ws::v2::TableUpdate,
|
raw_updates: __ws::v2::TableUpdate,
|
||||||
) -> __sdk::Result<__sdk::TableUpdate<AssetObject>> {
|
) -> __sdk::Result<__sdk::TableUpdate<AssetObject>> {
|
||||||
__sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| {
|
__sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| {
|
||||||
__sdk::InternalError::failed_parse("TableUpdate<AssetObject>", "TableUpdate")
|
__sdk::InternalError::failed_parse(
|
||||||
.with_cause(e)
|
"TableUpdate<AssetObject>",
|
||||||
.into()
|
"TableUpdate",
|
||||||
|
).with_cause(e).into()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -158,3 +161,4 @@ impl asset_objectQueryTableAccess for __sdk::QueryTableAccessor {
|
|||||||
__sdk::__query_builder::Table::new("asset_object")
|
__sdk::__query_builder::Table::new("asset_object")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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;
|
use super::asset_object_access_policy_type::AssetObjectAccessPolicy;
|
||||||
|
|
||||||
@@ -13,23 +18,25 @@ pub struct AssetObject {
|
|||||||
pub bucket: String,
|
pub bucket: String,
|
||||||
pub object_key: String,
|
pub object_key: String,
|
||||||
pub access_policy: AssetObjectAccessPolicy,
|
pub access_policy: AssetObjectAccessPolicy,
|
||||||
pub content_type: Option<String>,
|
pub content_type: Option::<String>,
|
||||||
pub content_length: u64,
|
pub content_length: u64,
|
||||||
pub content_hash: Option<String>,
|
pub content_hash: Option::<String>,
|
||||||
pub version: u32,
|
pub version: u32,
|
||||||
pub source_job_id: Option<String>,
|
pub source_job_id: Option::<String>,
|
||||||
pub owner_user_id: Option<String>,
|
pub owner_user_id: Option::<String>,
|
||||||
pub profile_id: Option<String>,
|
pub profile_id: Option::<String>,
|
||||||
pub entity_id: Option<String>,
|
pub entity_id: Option::<String>,
|
||||||
pub asset_kind: String,
|
pub asset_kind: String,
|
||||||
pub created_at: __sdk::Timestamp,
|
pub created_at: __sdk::Timestamp,
|
||||||
pub updated_at: __sdk::Timestamp,
|
pub updated_at: __sdk::Timestamp,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AssetObject {
|
impl __sdk::InModule for AssetObject {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// Column accessor struct for the table `AssetObject`.
|
/// Column accessor struct for the table `AssetObject`.
|
||||||
///
|
///
|
||||||
/// Provides typed access to columns for query building.
|
/// Provides typed access to columns for query building.
|
||||||
@@ -38,14 +45,14 @@ pub struct AssetObjectCols {
|
|||||||
pub bucket: __sdk::__query_builder::Col<AssetObject, String>,
|
pub bucket: __sdk::__query_builder::Col<AssetObject, String>,
|
||||||
pub object_key: __sdk::__query_builder::Col<AssetObject, String>,
|
pub object_key: __sdk::__query_builder::Col<AssetObject, String>,
|
||||||
pub access_policy: __sdk::__query_builder::Col<AssetObject, AssetObjectAccessPolicy>,
|
pub access_policy: __sdk::__query_builder::Col<AssetObject, AssetObjectAccessPolicy>,
|
||||||
pub content_type: __sdk::__query_builder::Col<AssetObject, Option<String>>,
|
pub content_type: __sdk::__query_builder::Col<AssetObject, Option::<String>>,
|
||||||
pub content_length: __sdk::__query_builder::Col<AssetObject, u64>,
|
pub content_length: __sdk::__query_builder::Col<AssetObject, u64>,
|
||||||
pub content_hash: __sdk::__query_builder::Col<AssetObject, Option<String>>,
|
pub content_hash: __sdk::__query_builder::Col<AssetObject, Option::<String>>,
|
||||||
pub version: __sdk::__query_builder::Col<AssetObject, u32>,
|
pub version: __sdk::__query_builder::Col<AssetObject, u32>,
|
||||||
pub source_job_id: __sdk::__query_builder::Col<AssetObject, Option<String>>,
|
pub source_job_id: __sdk::__query_builder::Col<AssetObject, Option::<String>>,
|
||||||
pub owner_user_id: __sdk::__query_builder::Col<AssetObject, Option<String>>,
|
pub owner_user_id: __sdk::__query_builder::Col<AssetObject, Option::<String>>,
|
||||||
pub profile_id: __sdk::__query_builder::Col<AssetObject, Option<String>>,
|
pub profile_id: __sdk::__query_builder::Col<AssetObject, Option::<String>>,
|
||||||
pub entity_id: __sdk::__query_builder::Col<AssetObject, Option<String>>,
|
pub entity_id: __sdk::__query_builder::Col<AssetObject, Option::<String>>,
|
||||||
pub asset_kind: __sdk::__query_builder::Col<AssetObject, String>,
|
pub asset_kind: __sdk::__query_builder::Col<AssetObject, String>,
|
||||||
pub created_at: __sdk::__query_builder::Col<AssetObject, __sdk::Timestamp>,
|
pub created_at: __sdk::__query_builder::Col<AssetObject, __sdk::Timestamp>,
|
||||||
pub updated_at: __sdk::__query_builder::Col<AssetObject, __sdk::Timestamp>,
|
pub updated_at: __sdk::__query_builder::Col<AssetObject, __sdk::Timestamp>,
|
||||||
@@ -70,6 +77,7 @@ impl __sdk::__query_builder::HasCols for AssetObject {
|
|||||||
asset_kind: __sdk::__query_builder::Col::new(table_name, "asset_kind"),
|
asset_kind: __sdk::__query_builder::Col::new(table_name, "asset_kind"),
|
||||||
created_at: __sdk::__query_builder::Col::new(table_name, "created_at"),
|
created_at: __sdk::__query_builder::Col::new(table_name, "created_at"),
|
||||||
updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"),
|
updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"),
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -88,8 +96,10 @@ impl __sdk::__query_builder::HasIxCols for AssetObject {
|
|||||||
AssetObjectIxCols {
|
AssetObjectIxCols {
|
||||||
asset_kind: __sdk::__query_builder::IxCol::new(table_name, "asset_kind"),
|
asset_kind: __sdk::__query_builder::IxCol::new(table_name, "asset_kind"),
|
||||||
asset_object_id: __sdk::__query_builder::IxCol::new(table_name, "asset_object_id"),
|
asset_object_id: __sdk::__query_builder::IxCol::new(table_name, "asset_object_id"),
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl __sdk::__query_builder::CanBeLookupTable for AssetObject {}
|
impl __sdk::__query_builder::CanBeLookupTable for AssetObject {}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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;
|
use super::asset_object_access_policy_type::AssetObjectAccessPolicy;
|
||||||
|
|
||||||
@@ -13,18 +18,20 @@ pub struct AssetObjectUpsertInput {
|
|||||||
pub bucket: String,
|
pub bucket: String,
|
||||||
pub object_key: String,
|
pub object_key: String,
|
||||||
pub access_policy: AssetObjectAccessPolicy,
|
pub access_policy: AssetObjectAccessPolicy,
|
||||||
pub content_type: Option<String>,
|
pub content_type: Option::<String>,
|
||||||
pub content_length: u64,
|
pub content_length: u64,
|
||||||
pub content_hash: Option<String>,
|
pub content_hash: Option::<String>,
|
||||||
pub version: u32,
|
pub version: u32,
|
||||||
pub source_job_id: Option<String>,
|
pub source_job_id: Option::<String>,
|
||||||
pub owner_user_id: Option<String>,
|
pub owner_user_id: Option::<String>,
|
||||||
pub profile_id: Option<String>,
|
pub profile_id: Option::<String>,
|
||||||
pub entity_id: Option<String>,
|
pub entity_id: Option::<String>,
|
||||||
pub asset_kind: String,
|
pub asset_kind: String,
|
||||||
pub updated_at_micros: i64,
|
pub updated_at_micros: i64,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AssetObjectUpsertInput {
|
impl __sdk::InModule for AssetObjectUpsertInput {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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;
|
use super::asset_object_access_policy_type::AssetObjectAccessPolicy;
|
||||||
|
|
||||||
@@ -13,19 +18,21 @@ pub struct AssetObjectUpsertSnapshot {
|
|||||||
pub bucket: String,
|
pub bucket: String,
|
||||||
pub object_key: String,
|
pub object_key: String,
|
||||||
pub access_policy: AssetObjectAccessPolicy,
|
pub access_policy: AssetObjectAccessPolicy,
|
||||||
pub content_type: Option<String>,
|
pub content_type: Option::<String>,
|
||||||
pub content_length: u64,
|
pub content_length: u64,
|
||||||
pub content_hash: Option<String>,
|
pub content_hash: Option::<String>,
|
||||||
pub version: u32,
|
pub version: u32,
|
||||||
pub source_job_id: Option<String>,
|
pub source_job_id: Option::<String>,
|
||||||
pub owner_user_id: Option<String>,
|
pub owner_user_id: Option::<String>,
|
||||||
pub profile_id: Option<String>,
|
pub profile_id: Option::<String>,
|
||||||
pub entity_id: Option<String>,
|
pub entity_id: Option::<String>,
|
||||||
pub asset_kind: String,
|
pub asset_kind: String,
|
||||||
pub created_at_micros: i64,
|
pub created_at_micros: i64,
|
||||||
pub updated_at_micros: i64,
|
pub updated_at_micros: i64,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AssetObjectUpsertSnapshot {
|
impl __sdk::InModule for AssetObjectUpsertSnapshot {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,10 +2,15 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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_input_type::AiResultReferenceInput;
|
|
||||||
use super::ai_task_procedure_result_type::AiTaskProcedureResult;
|
use super::ai_task_procedure_result_type::AiTaskProcedureResult;
|
||||||
|
use super::ai_result_reference_input_type::AiResultReferenceInput;
|
||||||
|
|
||||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
@@ -13,6 +18,7 @@ struct AttachAiResultReferenceAndReturnArgs {
|
|||||||
pub input: AiResultReferenceInput,
|
pub input: AiResultReferenceInput,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AttachAiResultReferenceAndReturnArgs {
|
impl __sdk::InModule for AttachAiResultReferenceAndReturnArgs {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
@@ -22,7 +28,8 @@ impl __sdk::InModule for AttachAiResultReferenceAndReturnArgs {
|
|||||||
///
|
///
|
||||||
/// Implemented for [`super::RemoteProcedures`].
|
/// Implemented for [`super::RemoteProcedures`].
|
||||||
pub trait attach_ai_result_reference_and_return {
|
pub trait attach_ai_result_reference_and_return {
|
||||||
fn attach_ai_result_reference_and_return(&self, input: AiResultReferenceInput) {
|
fn attach_ai_result_reference_and_return(&self, input: AiResultReferenceInput,
|
||||||
|
) {
|
||||||
self.attach_ai_result_reference_and_return_then(input, |_, _| {});
|
self.attach_ai_result_reference_and_return_then(input, |_, _| {});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -30,11 +37,7 @@ pub trait attach_ai_result_reference_and_return {
|
|||||||
&self,
|
&self,
|
||||||
input: AiResultReferenceInput,
|
input: AiResultReferenceInput,
|
||||||
|
|
||||||
__callback: impl FnOnce(
|
__callback: impl FnOnce(&super::ProcedureEventContext, Result<AiTaskProcedureResult, __sdk::InternalError>) + Send + 'static,
|
||||||
&super::ProcedureEventContext,
|
|
||||||
Result<AiTaskProcedureResult, __sdk::InternalError>,
|
|
||||||
) + Send
|
|
||||||
+ 'static,
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -43,17 +46,13 @@ impl attach_ai_result_reference_and_return for super::RemoteProcedures {
|
|||||||
&self,
|
&self,
|
||||||
input: AiResultReferenceInput,
|
input: AiResultReferenceInput,
|
||||||
|
|
||||||
__callback: impl FnOnce(
|
__callback: impl FnOnce(&super::ProcedureEventContext, Result<AiTaskProcedureResult, __sdk::InternalError>) + Send + 'static,
|
||||||
&super::ProcedureEventContext,
|
|
||||||
Result<AiTaskProcedureResult, __sdk::InternalError>,
|
|
||||||
) + Send
|
|
||||||
+ 'static,
|
|
||||||
) {
|
) {
|
||||||
self.imp
|
self.imp.invoke_procedure_with_callback::<_, AiTaskProcedureResult>(
|
||||||
.invoke_procedure_with_callback::<_, AiTaskProcedureResult>(
|
|
||||||
"attach_ai_result_reference_and_return",
|
"attach_ai_result_reference_and_return",
|
||||||
AttachAiResultReferenceAndReturnArgs { input },
|
AttachAiResultReferenceAndReturnArgs { input, },
|
||||||
__callback,
|
__callback,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![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)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
@@ -11,8 +16,12 @@ pub enum BattleMode {
|
|||||||
Fight,
|
Fight,
|
||||||
|
|
||||||
Spar,
|
Spar,
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for BattleMode {
|
impl __sdk::InModule for BattleMode {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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_mode_type::BattleMode;
|
||||||
use super::runtime_item_reward_item_snapshot_type::RuntimeItemRewardItemSnapshot;
|
use super::runtime_item_reward_item_snapshot_type::RuntimeItemRewardItemSnapshot;
|
||||||
@@ -14,7 +19,7 @@ pub struct BattleStateInput {
|
|||||||
pub story_session_id: String,
|
pub story_session_id: String,
|
||||||
pub runtime_session_id: String,
|
pub runtime_session_id: String,
|
||||||
pub actor_user_id: String,
|
pub actor_user_id: String,
|
||||||
pub chapter_id: Option<String>,
|
pub chapter_id: Option::<String>,
|
||||||
pub target_npc_id: String,
|
pub target_npc_id: String,
|
||||||
pub target_name: String,
|
pub target_name: String,
|
||||||
pub battle_mode: BattleMode,
|
pub battle_mode: BattleMode,
|
||||||
@@ -25,10 +30,12 @@ pub struct BattleStateInput {
|
|||||||
pub target_hp: i32,
|
pub target_hp: i32,
|
||||||
pub target_max_hp: i32,
|
pub target_max_hp: i32,
|
||||||
pub experience_reward: u32,
|
pub experience_reward: u32,
|
||||||
pub reward_items: Vec<RuntimeItemRewardItemSnapshot>,
|
pub reward_items: Vec::<RuntimeItemRewardItemSnapshot>,
|
||||||
pub created_at_micros: i64,
|
pub created_at_micros: i64,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for BattleStateInput {
|
impl __sdk::InModule for BattleStateInput {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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::battle_state_snapshot_type::BattleStateSnapshot;
|
||||||
|
|
||||||
@@ -10,10 +15,12 @@ use super::battle_state_snapshot_type::BattleStateSnapshot;
|
|||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
pub struct BattleStateProcedureResult {
|
pub struct BattleStateProcedureResult {
|
||||||
pub ok: bool,
|
pub ok: bool,
|
||||||
pub snapshot: Option<BattleStateSnapshot>,
|
pub snapshot: Option::<BattleStateSnapshot>,
|
||||||
pub error_message: Option<String>,
|
pub error_message: Option::<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for BattleStateProcedureResult {
|
impl __sdk::InModule for BattleStateProcedureResult {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,13 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![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)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
@@ -10,6 +16,8 @@ pub struct BattleStateQueryInput {
|
|||||||
pub battle_state_id: String,
|
pub battle_state_id: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for BattleStateQueryInput {
|
impl __sdk::InModule for BattleStateQueryInput {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,12 +2,17 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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_mode_type::BattleMode;
|
||||||
use super::battle_status_type::BattleStatus;
|
use super::battle_status_type::BattleStatus;
|
||||||
use super::combat_outcome_type::CombatOutcome;
|
|
||||||
use super::runtime_item_reward_item_snapshot_type::RuntimeItemRewardItemSnapshot;
|
use super::runtime_item_reward_item_snapshot_type::RuntimeItemRewardItemSnapshot;
|
||||||
|
use super::combat_outcome_type::CombatOutcome;
|
||||||
|
|
||||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
@@ -16,7 +21,7 @@ pub struct BattleStateSnapshot {
|
|||||||
pub story_session_id: String,
|
pub story_session_id: String,
|
||||||
pub runtime_session_id: String,
|
pub runtime_session_id: String,
|
||||||
pub actor_user_id: String,
|
pub actor_user_id: String,
|
||||||
pub chapter_id: Option<String>,
|
pub chapter_id: Option::<String>,
|
||||||
pub target_npc_id: String,
|
pub target_npc_id: String,
|
||||||
pub target_name: String,
|
pub target_name: String,
|
||||||
pub battle_mode: BattleMode,
|
pub battle_mode: BattleMode,
|
||||||
@@ -28,11 +33,11 @@ pub struct BattleStateSnapshot {
|
|||||||
pub target_hp: i32,
|
pub target_hp: i32,
|
||||||
pub target_max_hp: i32,
|
pub target_max_hp: i32,
|
||||||
pub experience_reward: u32,
|
pub experience_reward: u32,
|
||||||
pub reward_items: Vec<RuntimeItemRewardItemSnapshot>,
|
pub reward_items: Vec::<RuntimeItemRewardItemSnapshot>,
|
||||||
pub turn_index: u32,
|
pub turn_index: u32,
|
||||||
pub last_action_function_id: Option<String>,
|
pub last_action_function_id: Option::<String>,
|
||||||
pub last_action_text: Option<String>,
|
pub last_action_text: Option::<String>,
|
||||||
pub last_result_text: Option<String>,
|
pub last_result_text: Option::<String>,
|
||||||
pub last_damage_dealt: i32,
|
pub last_damage_dealt: i32,
|
||||||
pub last_damage_taken: i32,
|
pub last_damage_taken: i32,
|
||||||
pub last_outcome: CombatOutcome,
|
pub last_outcome: CombatOutcome,
|
||||||
@@ -41,6 +46,8 @@ pub struct BattleStateSnapshot {
|
|||||||
pub updated_at_micros: i64,
|
pub updated_at_micros: i64,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for BattleStateSnapshot {
|
impl __sdk::InModule for BattleStateSnapshot {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,12 +2,17 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, clippy::all)]
|
||||||
use super::battle_mode_type::BattleMode;
|
use spacetimedb_sdk::__codegen::{
|
||||||
|
self as __sdk,
|
||||||
|
__lib,
|
||||||
|
__sats,
|
||||||
|
__ws,
|
||||||
|
};
|
||||||
use super::battle_state_type::BattleState;
|
use super::battle_state_type::BattleState;
|
||||||
|
use super::battle_mode_type::BattleMode;
|
||||||
use super::battle_status_type::BattleStatus;
|
use super::battle_status_type::BattleStatus;
|
||||||
use super::combat_outcome_type::CombatOutcome;
|
|
||||||
use super::runtime_item_reward_item_snapshot_type::RuntimeItemRewardItemSnapshot;
|
use super::runtime_item_reward_item_snapshot_type::RuntimeItemRewardItemSnapshot;
|
||||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
use super::combat_outcome_type::CombatOutcome;
|
||||||
|
|
||||||
/// Table handle for the table `battle_state`.
|
/// Table handle for the table `battle_state`.
|
||||||
///
|
///
|
||||||
@@ -48,12 +53,8 @@ impl<'ctx> __sdk::Table for BattleStateTableHandle<'ctx> {
|
|||||||
type Row = BattleState;
|
type Row = BattleState;
|
||||||
type EventContext = super::EventContext;
|
type EventContext = super::EventContext;
|
||||||
|
|
||||||
fn count(&self) -> u64 {
|
fn count(&self) -> u64 { self.imp.count() }
|
||||||
self.imp.count()
|
fn iter(&self) -> impl Iterator<Item = BattleState> + '_ { self.imp.iter() }
|
||||||
}
|
|
||||||
fn iter(&self) -> impl Iterator<Item = BattleState> + '_ {
|
|
||||||
self.imp.iter()
|
|
||||||
}
|
|
||||||
|
|
||||||
type InsertCallbackId = BattleStateInsertCallbackId;
|
type InsertCallbackId = BattleStateInsertCallbackId;
|
||||||
|
|
||||||
@@ -131,6 +132,7 @@ impl<'ctx> BattleStateBattleStateIdUnique<'ctx> {
|
|||||||
|
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
pub(super) fn register_table(client_cache: &mut __sdk::ClientCache<super::RemoteModule>) {
|
pub(super) fn register_table(client_cache: &mut __sdk::ClientCache<super::RemoteModule>) {
|
||||||
|
|
||||||
let _table = client_cache.get_or_make_table::<BattleState>("battle_state");
|
let _table = client_cache.get_or_make_table::<BattleState>("battle_state");
|
||||||
_table.add_unique_constraint::<String>("battle_state_id", |row| &row.battle_state_id);
|
_table.add_unique_constraint::<String>("battle_state_id", |row| &row.battle_state_id);
|
||||||
}
|
}
|
||||||
@@ -140,9 +142,10 @@ pub(super) fn parse_table_update(
|
|||||||
raw_updates: __ws::v2::TableUpdate,
|
raw_updates: __ws::v2::TableUpdate,
|
||||||
) -> __sdk::Result<__sdk::TableUpdate<BattleState>> {
|
) -> __sdk::Result<__sdk::TableUpdate<BattleState>> {
|
||||||
__sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| {
|
__sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| {
|
||||||
__sdk::InternalError::failed_parse("TableUpdate<BattleState>", "TableUpdate")
|
__sdk::InternalError::failed_parse(
|
||||||
.with_cause(e)
|
"TableUpdate<BattleState>",
|
||||||
.into()
|
"TableUpdate",
|
||||||
|
).with_cause(e).into()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -161,3 +164,4 @@ impl battle_stateQueryTableAccess for __sdk::QueryTableAccessor {
|
|||||||
__sdk::__query_builder::Table::new("battle_state")
|
__sdk::__query_builder::Table::new("battle_state")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,12 +2,17 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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_mode_type::BattleMode;
|
||||||
use super::battle_status_type::BattleStatus;
|
use super::battle_status_type::BattleStatus;
|
||||||
use super::combat_outcome_type::CombatOutcome;
|
|
||||||
use super::runtime_item_reward_item_snapshot_type::RuntimeItemRewardItemSnapshot;
|
use super::runtime_item_reward_item_snapshot_type::RuntimeItemRewardItemSnapshot;
|
||||||
|
use super::combat_outcome_type::CombatOutcome;
|
||||||
|
|
||||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
@@ -16,7 +21,7 @@ pub struct BattleState {
|
|||||||
pub story_session_id: String,
|
pub story_session_id: String,
|
||||||
pub runtime_session_id: String,
|
pub runtime_session_id: String,
|
||||||
pub actor_user_id: String,
|
pub actor_user_id: String,
|
||||||
pub chapter_id: Option<String>,
|
pub chapter_id: Option::<String>,
|
||||||
pub target_npc_id: String,
|
pub target_npc_id: String,
|
||||||
pub target_name: String,
|
pub target_name: String,
|
||||||
pub battle_mode: BattleMode,
|
pub battle_mode: BattleMode,
|
||||||
@@ -28,11 +33,11 @@ pub struct BattleState {
|
|||||||
pub target_hp: i32,
|
pub target_hp: i32,
|
||||||
pub target_max_hp: i32,
|
pub target_max_hp: i32,
|
||||||
pub experience_reward: u32,
|
pub experience_reward: u32,
|
||||||
pub reward_items: Vec<RuntimeItemRewardItemSnapshot>,
|
pub reward_items: Vec::<RuntimeItemRewardItemSnapshot>,
|
||||||
pub turn_index: u32,
|
pub turn_index: u32,
|
||||||
pub last_action_function_id: Option<String>,
|
pub last_action_function_id: Option::<String>,
|
||||||
pub last_action_text: Option<String>,
|
pub last_action_text: Option::<String>,
|
||||||
pub last_result_text: Option<String>,
|
pub last_result_text: Option::<String>,
|
||||||
pub last_damage_dealt: i32,
|
pub last_damage_dealt: i32,
|
||||||
pub last_damage_taken: i32,
|
pub last_damage_taken: i32,
|
||||||
pub last_outcome: CombatOutcome,
|
pub last_outcome: CombatOutcome,
|
||||||
@@ -41,10 +46,12 @@ pub struct BattleState {
|
|||||||
pub updated_at: __sdk::Timestamp,
|
pub updated_at: __sdk::Timestamp,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for BattleState {
|
impl __sdk::InModule for BattleState {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// Column accessor struct for the table `BattleState`.
|
/// Column accessor struct for the table `BattleState`.
|
||||||
///
|
///
|
||||||
/// Provides typed access to columns for query building.
|
/// Provides typed access to columns for query building.
|
||||||
@@ -53,7 +60,7 @@ pub struct BattleStateCols {
|
|||||||
pub story_session_id: __sdk::__query_builder::Col<BattleState, String>,
|
pub story_session_id: __sdk::__query_builder::Col<BattleState, String>,
|
||||||
pub runtime_session_id: __sdk::__query_builder::Col<BattleState, String>,
|
pub runtime_session_id: __sdk::__query_builder::Col<BattleState, String>,
|
||||||
pub actor_user_id: __sdk::__query_builder::Col<BattleState, String>,
|
pub actor_user_id: __sdk::__query_builder::Col<BattleState, String>,
|
||||||
pub chapter_id: __sdk::__query_builder::Col<BattleState, Option<String>>,
|
pub chapter_id: __sdk::__query_builder::Col<BattleState, Option::<String>>,
|
||||||
pub target_npc_id: __sdk::__query_builder::Col<BattleState, String>,
|
pub target_npc_id: __sdk::__query_builder::Col<BattleState, String>,
|
||||||
pub target_name: __sdk::__query_builder::Col<BattleState, String>,
|
pub target_name: __sdk::__query_builder::Col<BattleState, String>,
|
||||||
pub battle_mode: __sdk::__query_builder::Col<BattleState, BattleMode>,
|
pub battle_mode: __sdk::__query_builder::Col<BattleState, BattleMode>,
|
||||||
@@ -65,11 +72,11 @@ pub struct BattleStateCols {
|
|||||||
pub target_hp: __sdk::__query_builder::Col<BattleState, i32>,
|
pub target_hp: __sdk::__query_builder::Col<BattleState, i32>,
|
||||||
pub target_max_hp: __sdk::__query_builder::Col<BattleState, i32>,
|
pub target_max_hp: __sdk::__query_builder::Col<BattleState, i32>,
|
||||||
pub experience_reward: __sdk::__query_builder::Col<BattleState, u32>,
|
pub experience_reward: __sdk::__query_builder::Col<BattleState, u32>,
|
||||||
pub reward_items: __sdk::__query_builder::Col<BattleState, Vec<RuntimeItemRewardItemSnapshot>>,
|
pub reward_items: __sdk::__query_builder::Col<BattleState, Vec::<RuntimeItemRewardItemSnapshot>>,
|
||||||
pub turn_index: __sdk::__query_builder::Col<BattleState, u32>,
|
pub turn_index: __sdk::__query_builder::Col<BattleState, u32>,
|
||||||
pub last_action_function_id: __sdk::__query_builder::Col<BattleState, Option<String>>,
|
pub last_action_function_id: __sdk::__query_builder::Col<BattleState, Option::<String>>,
|
||||||
pub last_action_text: __sdk::__query_builder::Col<BattleState, Option<String>>,
|
pub last_action_text: __sdk::__query_builder::Col<BattleState, Option::<String>>,
|
||||||
pub last_result_text: __sdk::__query_builder::Col<BattleState, Option<String>>,
|
pub last_result_text: __sdk::__query_builder::Col<BattleState, Option::<String>>,
|
||||||
pub last_damage_dealt: __sdk::__query_builder::Col<BattleState, i32>,
|
pub last_damage_dealt: __sdk::__query_builder::Col<BattleState, i32>,
|
||||||
pub last_damage_taken: __sdk::__query_builder::Col<BattleState, i32>,
|
pub last_damage_taken: __sdk::__query_builder::Col<BattleState, i32>,
|
||||||
pub last_outcome: __sdk::__query_builder::Col<BattleState, CombatOutcome>,
|
pub last_outcome: __sdk::__query_builder::Col<BattleState, CombatOutcome>,
|
||||||
@@ -100,10 +107,7 @@ impl __sdk::__query_builder::HasCols for BattleState {
|
|||||||
experience_reward: __sdk::__query_builder::Col::new(table_name, "experience_reward"),
|
experience_reward: __sdk::__query_builder::Col::new(table_name, "experience_reward"),
|
||||||
reward_items: __sdk::__query_builder::Col::new(table_name, "reward_items"),
|
reward_items: __sdk::__query_builder::Col::new(table_name, "reward_items"),
|
||||||
turn_index: __sdk::__query_builder::Col::new(table_name, "turn_index"),
|
turn_index: __sdk::__query_builder::Col::new(table_name, "turn_index"),
|
||||||
last_action_function_id: __sdk::__query_builder::Col::new(
|
last_action_function_id: __sdk::__query_builder::Col::new(table_name, "last_action_function_id"),
|
||||||
table_name,
|
|
||||||
"last_action_function_id",
|
|
||||||
),
|
|
||||||
last_action_text: __sdk::__query_builder::Col::new(table_name, "last_action_text"),
|
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_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"),
|
last_damage_dealt: __sdk::__query_builder::Col::new(table_name, "last_damage_dealt"),
|
||||||
@@ -112,6 +116,7 @@ impl __sdk::__query_builder::HasCols for BattleState {
|
|||||||
version: __sdk::__query_builder::Col::new(table_name, "version"),
|
version: __sdk::__query_builder::Col::new(table_name, "version"),
|
||||||
created_at: __sdk::__query_builder::Col::new(table_name, "created_at"),
|
created_at: __sdk::__query_builder::Col::new(table_name, "created_at"),
|
||||||
updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"),
|
updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"),
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -132,13 +137,12 @@ impl __sdk::__query_builder::HasIxCols for BattleState {
|
|||||||
BattleStateIxCols {
|
BattleStateIxCols {
|
||||||
actor_user_id: __sdk::__query_builder::IxCol::new(table_name, "actor_user_id"),
|
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"),
|
battle_state_id: __sdk::__query_builder::IxCol::new(table_name, "battle_state_id"),
|
||||||
runtime_session_id: __sdk::__query_builder::IxCol::new(
|
runtime_session_id: __sdk::__query_builder::IxCol::new(table_name, "runtime_session_id"),
|
||||||
table_name,
|
|
||||||
"runtime_session_id",
|
|
||||||
),
|
|
||||||
story_session_id: __sdk::__query_builder::IxCol::new(table_name, "story_session_id"),
|
story_session_id: __sdk::__query_builder::IxCol::new(table_name, "story_session_id"),
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl __sdk::__query_builder::CanBeLookupTable for BattleState {}
|
impl __sdk::__query_builder::CanBeLookupTable for BattleState {}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![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)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
@@ -13,8 +18,12 @@ pub enum BattleStatus {
|
|||||||
Resolved,
|
Resolved,
|
||||||
|
|
||||||
Aborted,
|
Aborted,
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for BattleStatus {
|
impl __sdk::InModule for BattleStatus {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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_input_type::StorySessionInput;
|
||||||
use super::story_session_procedure_result_type::StorySessionProcedureResult;
|
use super::story_session_procedure_result_type::StorySessionProcedureResult;
|
||||||
@@ -13,6 +18,7 @@ struct BeginStorySessionAndReturnArgs {
|
|||||||
pub input: StorySessionInput,
|
pub input: StorySessionInput,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for BeginStorySessionAndReturnArgs {
|
impl __sdk::InModule for BeginStorySessionAndReturnArgs {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
@@ -22,7 +28,8 @@ impl __sdk::InModule for BeginStorySessionAndReturnArgs {
|
|||||||
///
|
///
|
||||||
/// Implemented for [`super::RemoteProcedures`].
|
/// Implemented for [`super::RemoteProcedures`].
|
||||||
pub trait begin_story_session_and_return {
|
pub trait begin_story_session_and_return {
|
||||||
fn begin_story_session_and_return(&self, input: StorySessionInput) {
|
fn begin_story_session_and_return(&self, input: StorySessionInput,
|
||||||
|
) {
|
||||||
self.begin_story_session_and_return_then(input, |_, _| {});
|
self.begin_story_session_and_return_then(input, |_, _| {});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -30,11 +37,7 @@ pub trait begin_story_session_and_return {
|
|||||||
&self,
|
&self,
|
||||||
input: StorySessionInput,
|
input: StorySessionInput,
|
||||||
|
|
||||||
__callback: impl FnOnce(
|
__callback: impl FnOnce(&super::ProcedureEventContext, Result<StorySessionProcedureResult, __sdk::InternalError>) + Send + 'static,
|
||||||
&super::ProcedureEventContext,
|
|
||||||
Result<StorySessionProcedureResult, __sdk::InternalError>,
|
|
||||||
) + Send
|
|
||||||
+ 'static,
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -43,17 +46,13 @@ impl begin_story_session_and_return for super::RemoteProcedures {
|
|||||||
&self,
|
&self,
|
||||||
input: StorySessionInput,
|
input: StorySessionInput,
|
||||||
|
|
||||||
__callback: impl FnOnce(
|
__callback: impl FnOnce(&super::ProcedureEventContext, Result<StorySessionProcedureResult, __sdk::InternalError>) + Send + 'static,
|
||||||
&super::ProcedureEventContext,
|
|
||||||
Result<StorySessionProcedureResult, __sdk::InternalError>,
|
|
||||||
) + Send
|
|
||||||
+ 'static,
|
|
||||||
) {
|
) {
|
||||||
self.imp
|
self.imp.invoke_procedure_with_callback::<_, StorySessionProcedureResult>(
|
||||||
.invoke_procedure_with_callback::<_, StorySessionProcedureResult>(
|
|
||||||
"begin_story_session_and_return",
|
"begin_story_session_and_return",
|
||||||
BeginStorySessionAndReturnArgs { input },
|
BeginStorySessionAndReturnArgs { input, },
|
||||||
__callback,
|
__callback,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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_input_type::StorySessionInput;
|
||||||
|
|
||||||
@@ -14,7 +19,9 @@ pub(super) struct BeginStorySessionArgs {
|
|||||||
|
|
||||||
impl From<BeginStorySessionArgs> for super::Reducer {
|
impl From<BeginStorySessionArgs> for super::Reducer {
|
||||||
fn from(args: BeginStorySessionArgs) -> Self {
|
fn from(args: BeginStorySessionArgs) -> Self {
|
||||||
Self::BeginStorySession { input: args.input }
|
Self::BeginStorySession {
|
||||||
|
input: args.input,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -33,7 +40,8 @@ pub trait begin_story_session {
|
|||||||
/// The reducer will run asynchronously in the future,
|
/// The reducer will run asynchronously in the future,
|
||||||
/// and this method provides no way to listen for its completion status.
|
/// 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.
|
/// /// 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<()> {
|
fn begin_story_session(&self, input: StorySessionInput,
|
||||||
|
) -> __sdk::Result<()> {
|
||||||
self.begin_story_session_then(input, |_, _| {})
|
self.begin_story_session_then(input, |_, _| {})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -47,10 +55,8 @@ pub trait begin_story_session {
|
|||||||
&self,
|
&self,
|
||||||
input: StorySessionInput,
|
input: StorySessionInput,
|
||||||
|
|
||||||
callback: impl FnOnce(
|
callback: impl FnOnce(&super::ReducerEventContext, Result<Result<(), String>, __sdk::InternalError>)
|
||||||
&super::ReducerEventContext,
|
+ Send
|
||||||
Result<Result<(), String>, __sdk::InternalError>,
|
|
||||||
) + Send
|
|
||||||
+ 'static,
|
+ 'static,
|
||||||
) -> __sdk::Result<()>;
|
) -> __sdk::Result<()>;
|
||||||
}
|
}
|
||||||
@@ -60,13 +66,11 @@ impl begin_story_session for super::RemoteReducers {
|
|||||||
&self,
|
&self,
|
||||||
input: StorySessionInput,
|
input: StorySessionInput,
|
||||||
|
|
||||||
callback: impl FnOnce(
|
callback: impl FnOnce(&super::ReducerEventContext, Result<Result<(), String>, __sdk::InternalError>)
|
||||||
&super::ReducerEventContext,
|
+ Send
|
||||||
Result<Result<(), String>, __sdk::InternalError>,
|
|
||||||
) + Send
|
|
||||||
+ 'static,
|
+ 'static,
|
||||||
) -> __sdk::Result<()> {
|
) -> __sdk::Result<()> {
|
||||||
self.imp
|
self.imp.invoke_reducer_with_callback(BeginStorySessionArgs { input, }, callback)
|
||||||
.invoke_reducer_with_callback(BeginStorySessionArgs { input }, callback)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![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)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
@@ -15,8 +20,12 @@ pub enum BigFishAgentMessageKind {
|
|||||||
ActionResult,
|
ActionResult,
|
||||||
|
|
||||||
Warning,
|
Warning,
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for BigFishAgentMessageKind {
|
impl __sdk::InModule for BigFishAgentMessageKind {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![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)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
@@ -13,8 +18,12 @@ pub enum BigFishAgentMessageRole {
|
|||||||
Assistant,
|
Assistant,
|
||||||
|
|
||||||
System,
|
System,
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for BigFishAgentMessageRole {
|
impl __sdk::InModule for BigFishAgentMessageRole {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,10 +2,15 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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_kind_type::BigFishAgentMessageKind;
|
|
||||||
use super::big_fish_agent_message_role_type::BigFishAgentMessageRole;
|
use super::big_fish_agent_message_role_type::BigFishAgentMessageRole;
|
||||||
|
use super::big_fish_agent_message_kind_type::BigFishAgentMessageKind;
|
||||||
|
|
||||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
@@ -18,6 +23,8 @@ pub struct BigFishAgentMessageSnapshot {
|
|||||||
pub created_at_micros: i64,
|
pub created_at_micros: i64,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for BigFishAgentMessageSnapshot {
|
impl __sdk::InModule for BigFishAgentMessageSnapshot {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,10 +2,15 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, clippy::all)]
|
||||||
use super::big_fish_agent_message_kind_type::BigFishAgentMessageKind;
|
use spacetimedb_sdk::__codegen::{
|
||||||
use super::big_fish_agent_message_role_type::BigFishAgentMessageRole;
|
self as __sdk,
|
||||||
|
__lib,
|
||||||
|
__sats,
|
||||||
|
__ws,
|
||||||
|
};
|
||||||
use super::big_fish_agent_message_type::BigFishAgentMessage;
|
use super::big_fish_agent_message_type::BigFishAgentMessage;
|
||||||
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;
|
||||||
|
|
||||||
/// Table handle for the table `big_fish_agent_message`.
|
/// Table handle for the table `big_fish_agent_message`.
|
||||||
///
|
///
|
||||||
@@ -33,9 +38,7 @@ pub trait BigFishAgentMessageTableAccess {
|
|||||||
impl BigFishAgentMessageTableAccess for super::RemoteTables {
|
impl BigFishAgentMessageTableAccess for super::RemoteTables {
|
||||||
fn big_fish_agent_message(&self) -> BigFishAgentMessageTableHandle<'_> {
|
fn big_fish_agent_message(&self) -> BigFishAgentMessageTableHandle<'_> {
|
||||||
BigFishAgentMessageTableHandle {
|
BigFishAgentMessageTableHandle {
|
||||||
imp: self
|
imp: self.imp.get_table::<BigFishAgentMessage>("big_fish_agent_message"),
|
||||||
.imp
|
|
||||||
.get_table::<BigFishAgentMessage>("big_fish_agent_message"),
|
|
||||||
ctx: std::marker::PhantomData,
|
ctx: std::marker::PhantomData,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -48,12 +51,8 @@ impl<'ctx> __sdk::Table for BigFishAgentMessageTableHandle<'ctx> {
|
|||||||
type Row = BigFishAgentMessage;
|
type Row = BigFishAgentMessage;
|
||||||
type EventContext = super::EventContext;
|
type EventContext = super::EventContext;
|
||||||
|
|
||||||
fn count(&self) -> u64 {
|
fn count(&self) -> u64 { self.imp.count() }
|
||||||
self.imp.count()
|
fn iter(&self) -> impl Iterator<Item = BigFishAgentMessage> + '_ { self.imp.iter() }
|
||||||
}
|
|
||||||
fn iter(&self) -> impl Iterator<Item = BigFishAgentMessage> + '_ {
|
|
||||||
self.imp.iter()
|
|
||||||
}
|
|
||||||
|
|
||||||
type InsertCallbackId = BigFishAgentMessageInsertCallbackId;
|
type InsertCallbackId = BigFishAgentMessageInsertCallbackId;
|
||||||
|
|
||||||
@@ -131,6 +130,7 @@ impl<'ctx> BigFishAgentMessageMessageIdUnique<'ctx> {
|
|||||||
|
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
pub(super) fn register_table(client_cache: &mut __sdk::ClientCache<super::RemoteModule>) {
|
pub(super) fn register_table(client_cache: &mut __sdk::ClientCache<super::RemoteModule>) {
|
||||||
|
|
||||||
let _table = client_cache.get_or_make_table::<BigFishAgentMessage>("big_fish_agent_message");
|
let _table = client_cache.get_or_make_table::<BigFishAgentMessage>("big_fish_agent_message");
|
||||||
_table.add_unique_constraint::<String>("message_id", |row| &row.message_id);
|
_table.add_unique_constraint::<String>("message_id", |row| &row.message_id);
|
||||||
}
|
}
|
||||||
@@ -140,9 +140,10 @@ pub(super) fn parse_table_update(
|
|||||||
raw_updates: __ws::v2::TableUpdate,
|
raw_updates: __ws::v2::TableUpdate,
|
||||||
) -> __sdk::Result<__sdk::TableUpdate<BigFishAgentMessage>> {
|
) -> __sdk::Result<__sdk::TableUpdate<BigFishAgentMessage>> {
|
||||||
__sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| {
|
__sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| {
|
||||||
__sdk::InternalError::failed_parse("TableUpdate<BigFishAgentMessage>", "TableUpdate")
|
__sdk::InternalError::failed_parse(
|
||||||
.with_cause(e)
|
"TableUpdate<BigFishAgentMessage>",
|
||||||
.into()
|
"TableUpdate",
|
||||||
|
).with_cause(e).into()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -161,3 +162,4 @@ impl big_fish_agent_messageQueryTableAccess for __sdk::QueryTableAccessor {
|
|||||||
__sdk::__query_builder::Table::new("big_fish_agent_message")
|
__sdk::__query_builder::Table::new("big_fish_agent_message")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,10 +2,15 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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_kind_type::BigFishAgentMessageKind;
|
|
||||||
use super::big_fish_agent_message_role_type::BigFishAgentMessageRole;
|
use super::big_fish_agent_message_role_type::BigFishAgentMessageRole;
|
||||||
|
use super::big_fish_agent_message_kind_type::BigFishAgentMessageKind;
|
||||||
|
|
||||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
@@ -18,10 +23,12 @@ pub struct BigFishAgentMessage {
|
|||||||
pub created_at: __sdk::Timestamp,
|
pub created_at: __sdk::Timestamp,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for BigFishAgentMessage {
|
impl __sdk::InModule for BigFishAgentMessage {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// Column accessor struct for the table `BigFishAgentMessage`.
|
/// Column accessor struct for the table `BigFishAgentMessage`.
|
||||||
///
|
///
|
||||||
/// Provides typed access to columns for query building.
|
/// Provides typed access to columns for query building.
|
||||||
@@ -44,6 +51,7 @@ impl __sdk::__query_builder::HasCols for BigFishAgentMessage {
|
|||||||
kind: __sdk::__query_builder::Col::new(table_name, "kind"),
|
kind: __sdk::__query_builder::Col::new(table_name, "kind"),
|
||||||
text: __sdk::__query_builder::Col::new(table_name, "text"),
|
text: __sdk::__query_builder::Col::new(table_name, "text"),
|
||||||
created_at: __sdk::__query_builder::Col::new(table_name, "created_at"),
|
created_at: __sdk::__query_builder::Col::new(table_name, "created_at"),
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -62,8 +70,10 @@ impl __sdk::__query_builder::HasIxCols for BigFishAgentMessage {
|
|||||||
BigFishAgentMessageIxCols {
|
BigFishAgentMessageIxCols {
|
||||||
message_id: __sdk::__query_builder::IxCol::new(table_name, "message_id"),
|
message_id: __sdk::__query_builder::IxCol::new(table_name, "message_id"),
|
||||||
session_id: __sdk::__query_builder::IxCol::new(table_name, "session_id"),
|
session_id: __sdk::__query_builder::IxCol::new(table_name, "session_id"),
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl __sdk::__query_builder::CanBeLookupTable for BigFishAgentMessage {}
|
impl __sdk::__query_builder::CanBeLookupTable for BigFishAgentMessage {}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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;
|
use super::big_fish_anchor_status_type::BigFishAnchorStatus;
|
||||||
|
|
||||||
@@ -15,6 +20,8 @@ pub struct BigFishAnchorItem {
|
|||||||
pub status: BigFishAnchorStatus,
|
pub status: BigFishAnchorStatus,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for BigFishAnchorItem {
|
impl __sdk::InModule for BigFishAnchorItem {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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;
|
use super::big_fish_anchor_item_type::BigFishAnchorItem;
|
||||||
|
|
||||||
@@ -15,6 +20,8 @@ pub struct BigFishAnchorPack {
|
|||||||
pub risk_tempo: BigFishAnchorItem,
|
pub risk_tempo: BigFishAnchorItem,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for BigFishAnchorPack {
|
impl __sdk::InModule for BigFishAnchorPack {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![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)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
@@ -15,8 +20,12 @@ pub enum BigFishAnchorStatus {
|
|||||||
Missing,
|
Missing,
|
||||||
|
|
||||||
Locked,
|
Locked,
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for BigFishAnchorStatus {
|
impl __sdk::InModule for BigFishAnchorStatus {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,13 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![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)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
@@ -12,9 +18,11 @@ pub struct BigFishAssetCoverage {
|
|||||||
pub background_ready: bool,
|
pub background_ready: bool,
|
||||||
pub required_level_count: u32,
|
pub required_level_count: u32,
|
||||||
pub publish_ready: bool,
|
pub publish_ready: bool,
|
||||||
pub blockers: Vec<String>,
|
pub blockers: Vec::<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for BigFishAssetCoverage {
|
impl __sdk::InModule for BigFishAssetCoverage {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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_kind_type::BigFishAssetKind;
|
||||||
|
|
||||||
@@ -12,11 +17,13 @@ pub struct BigFishAssetGenerateInput {
|
|||||||
pub session_id: String,
|
pub session_id: String,
|
||||||
pub owner_user_id: String,
|
pub owner_user_id: String,
|
||||||
pub asset_kind: BigFishAssetKind,
|
pub asset_kind: BigFishAssetKind,
|
||||||
pub level: Option<u32>,
|
pub level: Option::<u32>,
|
||||||
pub motion_key: Option<String>,
|
pub motion_key: Option::<String>,
|
||||||
pub generated_at_micros: i64,
|
pub generated_at_micros: i64,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for BigFishAssetGenerateInput {
|
impl __sdk::InModule for BigFishAssetGenerateInput {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![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)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
@@ -13,8 +18,12 @@ pub enum BigFishAssetKind {
|
|||||||
LevelMotion,
|
LevelMotion,
|
||||||
|
|
||||||
StageBackground,
|
StageBackground,
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for BigFishAssetKind {
|
impl __sdk::InModule for BigFishAssetKind {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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_kind_type::BigFishAssetKind;
|
||||||
use super::big_fish_asset_status_type::BigFishAssetStatus;
|
use super::big_fish_asset_status_type::BigFishAssetStatus;
|
||||||
@@ -13,14 +18,16 @@ pub struct BigFishAssetSlotSnapshot {
|
|||||||
pub slot_id: String,
|
pub slot_id: String,
|
||||||
pub session_id: String,
|
pub session_id: String,
|
||||||
pub asset_kind: BigFishAssetKind,
|
pub asset_kind: BigFishAssetKind,
|
||||||
pub level: Option<u32>,
|
pub level: Option::<u32>,
|
||||||
pub motion_key: Option<String>,
|
pub motion_key: Option::<String>,
|
||||||
pub status: BigFishAssetStatus,
|
pub status: BigFishAssetStatus,
|
||||||
pub asset_url: Option<String>,
|
pub asset_url: Option::<String>,
|
||||||
pub prompt_snapshot: String,
|
pub prompt_snapshot: String,
|
||||||
pub updated_at_micros: i64,
|
pub updated_at_micros: i64,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for BigFishAssetSlotSnapshot {
|
impl __sdk::InModule for BigFishAssetSlotSnapshot {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,10 +2,15 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, clippy::all)]
|
||||||
use super::big_fish_asset_kind_type::BigFishAssetKind;
|
use spacetimedb_sdk::__codegen::{
|
||||||
|
self as __sdk,
|
||||||
|
__lib,
|
||||||
|
__sats,
|
||||||
|
__ws,
|
||||||
|
};
|
||||||
use super::big_fish_asset_slot_type::BigFishAssetSlot;
|
use super::big_fish_asset_slot_type::BigFishAssetSlot;
|
||||||
|
use super::big_fish_asset_kind_type::BigFishAssetKind;
|
||||||
use super::big_fish_asset_status_type::BigFishAssetStatus;
|
use super::big_fish_asset_status_type::BigFishAssetStatus;
|
||||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
|
||||||
|
|
||||||
/// Table handle for the table `big_fish_asset_slot`.
|
/// Table handle for the table `big_fish_asset_slot`.
|
||||||
///
|
///
|
||||||
@@ -33,9 +38,7 @@ pub trait BigFishAssetSlotTableAccess {
|
|||||||
impl BigFishAssetSlotTableAccess for super::RemoteTables {
|
impl BigFishAssetSlotTableAccess for super::RemoteTables {
|
||||||
fn big_fish_asset_slot(&self) -> BigFishAssetSlotTableHandle<'_> {
|
fn big_fish_asset_slot(&self) -> BigFishAssetSlotTableHandle<'_> {
|
||||||
BigFishAssetSlotTableHandle {
|
BigFishAssetSlotTableHandle {
|
||||||
imp: self
|
imp: self.imp.get_table::<BigFishAssetSlot>("big_fish_asset_slot"),
|
||||||
.imp
|
|
||||||
.get_table::<BigFishAssetSlot>("big_fish_asset_slot"),
|
|
||||||
ctx: std::marker::PhantomData,
|
ctx: std::marker::PhantomData,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -48,12 +51,8 @@ impl<'ctx> __sdk::Table for BigFishAssetSlotTableHandle<'ctx> {
|
|||||||
type Row = BigFishAssetSlot;
|
type Row = BigFishAssetSlot;
|
||||||
type EventContext = super::EventContext;
|
type EventContext = super::EventContext;
|
||||||
|
|
||||||
fn count(&self) -> u64 {
|
fn count(&self) -> u64 { self.imp.count() }
|
||||||
self.imp.count()
|
fn iter(&self) -> impl Iterator<Item = BigFishAssetSlot> + '_ { self.imp.iter() }
|
||||||
}
|
|
||||||
fn iter(&self) -> impl Iterator<Item = BigFishAssetSlot> + '_ {
|
|
||||||
self.imp.iter()
|
|
||||||
}
|
|
||||||
|
|
||||||
type InsertCallbackId = BigFishAssetSlotInsertCallbackId;
|
type InsertCallbackId = BigFishAssetSlotInsertCallbackId;
|
||||||
|
|
||||||
@@ -131,6 +130,7 @@ impl<'ctx> BigFishAssetSlotSlotIdUnique<'ctx> {
|
|||||||
|
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
pub(super) fn register_table(client_cache: &mut __sdk::ClientCache<super::RemoteModule>) {
|
pub(super) fn register_table(client_cache: &mut __sdk::ClientCache<super::RemoteModule>) {
|
||||||
|
|
||||||
let _table = client_cache.get_or_make_table::<BigFishAssetSlot>("big_fish_asset_slot");
|
let _table = client_cache.get_or_make_table::<BigFishAssetSlot>("big_fish_asset_slot");
|
||||||
_table.add_unique_constraint::<String>("slot_id", |row| &row.slot_id);
|
_table.add_unique_constraint::<String>("slot_id", |row| &row.slot_id);
|
||||||
}
|
}
|
||||||
@@ -140,9 +140,10 @@ pub(super) fn parse_table_update(
|
|||||||
raw_updates: __ws::v2::TableUpdate,
|
raw_updates: __ws::v2::TableUpdate,
|
||||||
) -> __sdk::Result<__sdk::TableUpdate<BigFishAssetSlot>> {
|
) -> __sdk::Result<__sdk::TableUpdate<BigFishAssetSlot>> {
|
||||||
__sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| {
|
__sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| {
|
||||||
__sdk::InternalError::failed_parse("TableUpdate<BigFishAssetSlot>", "TableUpdate")
|
__sdk::InternalError::failed_parse(
|
||||||
.with_cause(e)
|
"TableUpdate<BigFishAssetSlot>",
|
||||||
.into()
|
"TableUpdate",
|
||||||
|
).with_cause(e).into()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -161,3 +162,4 @@ impl big_fish_asset_slotQueryTableAccess for __sdk::QueryTableAccessor {
|
|||||||
__sdk::__query_builder::Table::new("big_fish_asset_slot")
|
__sdk::__query_builder::Table::new("big_fish_asset_slot")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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_kind_type::BigFishAssetKind;
|
||||||
use super::big_fish_asset_status_type::BigFishAssetStatus;
|
use super::big_fish_asset_status_type::BigFishAssetStatus;
|
||||||
@@ -13,18 +18,20 @@ pub struct BigFishAssetSlot {
|
|||||||
pub slot_id: String,
|
pub slot_id: String,
|
||||||
pub session_id: String,
|
pub session_id: String,
|
||||||
pub asset_kind: BigFishAssetKind,
|
pub asset_kind: BigFishAssetKind,
|
||||||
pub level: Option<u32>,
|
pub level: Option::<u32>,
|
||||||
pub motion_key: Option<String>,
|
pub motion_key: Option::<String>,
|
||||||
pub status: BigFishAssetStatus,
|
pub status: BigFishAssetStatus,
|
||||||
pub asset_url: Option<String>,
|
pub asset_url: Option::<String>,
|
||||||
pub prompt_snapshot: String,
|
pub prompt_snapshot: String,
|
||||||
pub updated_at: __sdk::Timestamp,
|
pub updated_at: __sdk::Timestamp,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for BigFishAssetSlot {
|
impl __sdk::InModule for BigFishAssetSlot {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// Column accessor struct for the table `BigFishAssetSlot`.
|
/// Column accessor struct for the table `BigFishAssetSlot`.
|
||||||
///
|
///
|
||||||
/// Provides typed access to columns for query building.
|
/// Provides typed access to columns for query building.
|
||||||
@@ -32,10 +39,10 @@ pub struct BigFishAssetSlotCols {
|
|||||||
pub slot_id: __sdk::__query_builder::Col<BigFishAssetSlot, String>,
|
pub slot_id: __sdk::__query_builder::Col<BigFishAssetSlot, String>,
|
||||||
pub session_id: __sdk::__query_builder::Col<BigFishAssetSlot, String>,
|
pub session_id: __sdk::__query_builder::Col<BigFishAssetSlot, String>,
|
||||||
pub asset_kind: __sdk::__query_builder::Col<BigFishAssetSlot, BigFishAssetKind>,
|
pub asset_kind: __sdk::__query_builder::Col<BigFishAssetSlot, BigFishAssetKind>,
|
||||||
pub level: __sdk::__query_builder::Col<BigFishAssetSlot, Option<u32>>,
|
pub level: __sdk::__query_builder::Col<BigFishAssetSlot, Option::<u32>>,
|
||||||
pub motion_key: __sdk::__query_builder::Col<BigFishAssetSlot, Option<String>>,
|
pub motion_key: __sdk::__query_builder::Col<BigFishAssetSlot, Option::<String>>,
|
||||||
pub status: __sdk::__query_builder::Col<BigFishAssetSlot, BigFishAssetStatus>,
|
pub status: __sdk::__query_builder::Col<BigFishAssetSlot, BigFishAssetStatus>,
|
||||||
pub asset_url: __sdk::__query_builder::Col<BigFishAssetSlot, Option<String>>,
|
pub asset_url: __sdk::__query_builder::Col<BigFishAssetSlot, Option::<String>>,
|
||||||
pub prompt_snapshot: __sdk::__query_builder::Col<BigFishAssetSlot, String>,
|
pub prompt_snapshot: __sdk::__query_builder::Col<BigFishAssetSlot, String>,
|
||||||
pub updated_at: __sdk::__query_builder::Col<BigFishAssetSlot, __sdk::Timestamp>,
|
pub updated_at: __sdk::__query_builder::Col<BigFishAssetSlot, __sdk::Timestamp>,
|
||||||
}
|
}
|
||||||
@@ -53,6 +60,7 @@ impl __sdk::__query_builder::HasCols for BigFishAssetSlot {
|
|||||||
asset_url: __sdk::__query_builder::Col::new(table_name, "asset_url"),
|
asset_url: __sdk::__query_builder::Col::new(table_name, "asset_url"),
|
||||||
prompt_snapshot: __sdk::__query_builder::Col::new(table_name, "prompt_snapshot"),
|
prompt_snapshot: __sdk::__query_builder::Col::new(table_name, "prompt_snapshot"),
|
||||||
updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"),
|
updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"),
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -71,8 +79,10 @@ impl __sdk::__query_builder::HasIxCols for BigFishAssetSlot {
|
|||||||
BigFishAssetSlotIxCols {
|
BigFishAssetSlotIxCols {
|
||||||
session_id: __sdk::__query_builder::IxCol::new(table_name, "session_id"),
|
session_id: __sdk::__query_builder::IxCol::new(table_name, "session_id"),
|
||||||
slot_id: __sdk::__query_builder::IxCol::new(table_name, "slot_id"),
|
slot_id: __sdk::__query_builder::IxCol::new(table_name, "slot_id"),
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl __sdk::__query_builder::CanBeLookupTable for BigFishAssetSlot {}
|
impl __sdk::__query_builder::CanBeLookupTable for BigFishAssetSlot {}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![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)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
@@ -11,8 +16,12 @@ pub enum BigFishAssetStatus {
|
|||||||
Missing,
|
Missing,
|
||||||
|
|
||||||
Ready,
|
Ready,
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for BigFishAssetStatus {
|
impl __sdk::InModule for BigFishAssetStatus {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,13 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![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)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
@@ -17,6 +23,8 @@ pub struct BigFishBackgroundBlueprint {
|
|||||||
pub background_prompt_seed: String,
|
pub background_prompt_seed: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for BigFishBackgroundBlueprint {
|
impl __sdk::InModule for BigFishBackgroundBlueprint {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,9 +2,14 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, clippy::all)]
|
||||||
|
use spacetimedb_sdk::__codegen::{
|
||||||
|
self as __sdk,
|
||||||
|
__lib,
|
||||||
|
__sats,
|
||||||
|
__ws,
|
||||||
|
};
|
||||||
use super::big_fish_creation_session_type::BigFishCreationSession;
|
use super::big_fish_creation_session_type::BigFishCreationSession;
|
||||||
use super::big_fish_creation_stage_type::BigFishCreationStage;
|
use super::big_fish_creation_stage_type::BigFishCreationStage;
|
||||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
|
||||||
|
|
||||||
/// Table handle for the table `big_fish_creation_session`.
|
/// Table handle for the table `big_fish_creation_session`.
|
||||||
///
|
///
|
||||||
@@ -32,9 +37,7 @@ pub trait BigFishCreationSessionTableAccess {
|
|||||||
impl BigFishCreationSessionTableAccess for super::RemoteTables {
|
impl BigFishCreationSessionTableAccess for super::RemoteTables {
|
||||||
fn big_fish_creation_session(&self) -> BigFishCreationSessionTableHandle<'_> {
|
fn big_fish_creation_session(&self) -> BigFishCreationSessionTableHandle<'_> {
|
||||||
BigFishCreationSessionTableHandle {
|
BigFishCreationSessionTableHandle {
|
||||||
imp: self
|
imp: self.imp.get_table::<BigFishCreationSession>("big_fish_creation_session"),
|
||||||
.imp
|
|
||||||
.get_table::<BigFishCreationSession>("big_fish_creation_session"),
|
|
||||||
ctx: std::marker::PhantomData,
|
ctx: std::marker::PhantomData,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -47,12 +50,8 @@ impl<'ctx> __sdk::Table for BigFishCreationSessionTableHandle<'ctx> {
|
|||||||
type Row = BigFishCreationSession;
|
type Row = BigFishCreationSession;
|
||||||
type EventContext = super::EventContext;
|
type EventContext = super::EventContext;
|
||||||
|
|
||||||
fn count(&self) -> u64 {
|
fn count(&self) -> u64 { self.imp.count() }
|
||||||
self.imp.count()
|
fn iter(&self) -> impl Iterator<Item = BigFishCreationSession> + '_ { self.imp.iter() }
|
||||||
}
|
|
||||||
fn iter(&self) -> impl Iterator<Item = BigFishCreationSession> + '_ {
|
|
||||||
self.imp.iter()
|
|
||||||
}
|
|
||||||
|
|
||||||
type InsertCallbackId = BigFishCreationSessionInsertCallbackId;
|
type InsertCallbackId = BigFishCreationSessionInsertCallbackId;
|
||||||
|
|
||||||
@@ -130,8 +129,8 @@ impl<'ctx> BigFishCreationSessionSessionIdUnique<'ctx> {
|
|||||||
|
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
pub(super) fn register_table(client_cache: &mut __sdk::ClientCache<super::RemoteModule>) {
|
pub(super) fn register_table(client_cache: &mut __sdk::ClientCache<super::RemoteModule>) {
|
||||||
let _table =
|
|
||||||
client_cache.get_or_make_table::<BigFishCreationSession>("big_fish_creation_session");
|
let _table = client_cache.get_or_make_table::<BigFishCreationSession>("big_fish_creation_session");
|
||||||
_table.add_unique_constraint::<String>("session_id", |row| &row.session_id);
|
_table.add_unique_constraint::<String>("session_id", |row| &row.session_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -140,9 +139,10 @@ pub(super) fn parse_table_update(
|
|||||||
raw_updates: __ws::v2::TableUpdate,
|
raw_updates: __ws::v2::TableUpdate,
|
||||||
) -> __sdk::Result<__sdk::TableUpdate<BigFishCreationSession>> {
|
) -> __sdk::Result<__sdk::TableUpdate<BigFishCreationSession>> {
|
||||||
__sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| {
|
__sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| {
|
||||||
__sdk::InternalError::failed_parse("TableUpdate<BigFishCreationSession>", "TableUpdate")
|
__sdk::InternalError::failed_parse(
|
||||||
.with_cause(e)
|
"TableUpdate<BigFishCreationSession>",
|
||||||
.into()
|
"TableUpdate",
|
||||||
|
).with_cause(e).into()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -161,3 +161,4 @@ impl big_fish_creation_sessionQueryTableAccess for __sdk::QueryTableAccessor {
|
|||||||
__sdk::__query_builder::Table::new("big_fish_creation_session")
|
__sdk::__query_builder::Table::new("big_fish_creation_session")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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_creation_stage_type::BigFishCreationStage;
|
||||||
|
|
||||||
@@ -16,18 +21,20 @@ pub struct BigFishCreationSession {
|
|||||||
pub progress_percent: u32,
|
pub progress_percent: u32,
|
||||||
pub stage: BigFishCreationStage,
|
pub stage: BigFishCreationStage,
|
||||||
pub anchor_pack_json: String,
|
pub anchor_pack_json: String,
|
||||||
pub draft_json: Option<String>,
|
pub draft_json: Option::<String>,
|
||||||
pub asset_coverage_json: String,
|
pub asset_coverage_json: String,
|
||||||
pub last_assistant_reply: Option<String>,
|
pub last_assistant_reply: Option::<String>,
|
||||||
pub publish_ready: bool,
|
pub publish_ready: bool,
|
||||||
pub created_at: __sdk::Timestamp,
|
pub created_at: __sdk::Timestamp,
|
||||||
pub updated_at: __sdk::Timestamp,
|
pub updated_at: __sdk::Timestamp,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for BigFishCreationSession {
|
impl __sdk::InModule for BigFishCreationSession {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// Column accessor struct for the table `BigFishCreationSession`.
|
/// Column accessor struct for the table `BigFishCreationSession`.
|
||||||
///
|
///
|
||||||
/// Provides typed access to columns for query building.
|
/// Provides typed access to columns for query building.
|
||||||
@@ -39,9 +46,9 @@ pub struct BigFishCreationSessionCols {
|
|||||||
pub progress_percent: __sdk::__query_builder::Col<BigFishCreationSession, u32>,
|
pub progress_percent: __sdk::__query_builder::Col<BigFishCreationSession, u32>,
|
||||||
pub stage: __sdk::__query_builder::Col<BigFishCreationSession, BigFishCreationStage>,
|
pub stage: __sdk::__query_builder::Col<BigFishCreationSession, BigFishCreationStage>,
|
||||||
pub anchor_pack_json: __sdk::__query_builder::Col<BigFishCreationSession, String>,
|
pub anchor_pack_json: __sdk::__query_builder::Col<BigFishCreationSession, String>,
|
||||||
pub draft_json: __sdk::__query_builder::Col<BigFishCreationSession, Option<String>>,
|
pub draft_json: __sdk::__query_builder::Col<BigFishCreationSession, Option::<String>>,
|
||||||
pub asset_coverage_json: __sdk::__query_builder::Col<BigFishCreationSession, String>,
|
pub asset_coverage_json: __sdk::__query_builder::Col<BigFishCreationSession, String>,
|
||||||
pub last_assistant_reply: __sdk::__query_builder::Col<BigFishCreationSession, Option<String>>,
|
pub last_assistant_reply: __sdk::__query_builder::Col<BigFishCreationSession, Option::<String>>,
|
||||||
pub publish_ready: __sdk::__query_builder::Col<BigFishCreationSession, bool>,
|
pub publish_ready: __sdk::__query_builder::Col<BigFishCreationSession, bool>,
|
||||||
pub created_at: __sdk::__query_builder::Col<BigFishCreationSession, __sdk::Timestamp>,
|
pub created_at: __sdk::__query_builder::Col<BigFishCreationSession, __sdk::Timestamp>,
|
||||||
pub updated_at: __sdk::__query_builder::Col<BigFishCreationSession, __sdk::Timestamp>,
|
pub updated_at: __sdk::__query_builder::Col<BigFishCreationSession, __sdk::Timestamp>,
|
||||||
@@ -59,17 +66,12 @@ impl __sdk::__query_builder::HasCols for BigFishCreationSession {
|
|||||||
stage: __sdk::__query_builder::Col::new(table_name, "stage"),
|
stage: __sdk::__query_builder::Col::new(table_name, "stage"),
|
||||||
anchor_pack_json: __sdk::__query_builder::Col::new(table_name, "anchor_pack_json"),
|
anchor_pack_json: __sdk::__query_builder::Col::new(table_name, "anchor_pack_json"),
|
||||||
draft_json: __sdk::__query_builder::Col::new(table_name, "draft_json"),
|
draft_json: __sdk::__query_builder::Col::new(table_name, "draft_json"),
|
||||||
asset_coverage_json: __sdk::__query_builder::Col::new(
|
asset_coverage_json: __sdk::__query_builder::Col::new(table_name, "asset_coverage_json"),
|
||||||
table_name,
|
last_assistant_reply: __sdk::__query_builder::Col::new(table_name, "last_assistant_reply"),
|
||||||
"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"),
|
publish_ready: __sdk::__query_builder::Col::new(table_name, "publish_ready"),
|
||||||
created_at: __sdk::__query_builder::Col::new(table_name, "created_at"),
|
created_at: __sdk::__query_builder::Col::new(table_name, "created_at"),
|
||||||
updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"),
|
updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"),
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -88,8 +90,10 @@ impl __sdk::__query_builder::HasIxCols for BigFishCreationSession {
|
|||||||
BigFishCreationSessionIxCols {
|
BigFishCreationSessionIxCols {
|
||||||
owner_user_id: __sdk::__query_builder::IxCol::new(table_name, "owner_user_id"),
|
owner_user_id: __sdk::__query_builder::IxCol::new(table_name, "owner_user_id"),
|
||||||
session_id: __sdk::__query_builder::IxCol::new(table_name, "session_id"),
|
session_id: __sdk::__query_builder::IxCol::new(table_name, "session_id"),
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl __sdk::__query_builder::CanBeLookupTable for BigFishCreationSession {}
|
impl __sdk::__query_builder::CanBeLookupTable for BigFishCreationSession {}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![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)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
@@ -17,8 +22,12 @@ pub enum BigFishCreationStage {
|
|||||||
ReadyToPublish,
|
ReadyToPublish,
|
||||||
|
|
||||||
Published,
|
Published,
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for BigFishCreationStage {
|
impl __sdk::InModule for BigFishCreationStage {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,13 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![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)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
@@ -12,6 +18,8 @@ pub struct BigFishDraftCompileInput {
|
|||||||
pub compiled_at_micros: i64,
|
pub compiled_at_micros: i64,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for BigFishDraftCompileInput {
|
impl __sdk::InModule for BigFishDraftCompileInput {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,10 +2,15 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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_background_blueprint_type::BigFishBackgroundBlueprint;
|
|
||||||
use super::big_fish_level_blueprint_type::BigFishLevelBlueprint;
|
use super::big_fish_level_blueprint_type::BigFishLevelBlueprint;
|
||||||
|
use super::big_fish_background_blueprint_type::BigFishBackgroundBlueprint;
|
||||||
use super::big_fish_runtime_params_type::BigFishRuntimeParams;
|
use super::big_fish_runtime_params_type::BigFishRuntimeParams;
|
||||||
|
|
||||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
@@ -15,11 +20,13 @@ pub struct BigFishGameDraft {
|
|||||||
pub subtitle: String,
|
pub subtitle: String,
|
||||||
pub core_fun: String,
|
pub core_fun: String,
|
||||||
pub ecology_theme: String,
|
pub ecology_theme: String,
|
||||||
pub levels: Vec<BigFishLevelBlueprint>,
|
pub levels: Vec::<BigFishLevelBlueprint>,
|
||||||
pub background: BigFishBackgroundBlueprint,
|
pub background: BigFishBackgroundBlueprint,
|
||||||
pub runtime_params: BigFishRuntimeParams,
|
pub runtime_params: BigFishRuntimeParams,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for BigFishGameDraft {
|
impl __sdk::InModule for BigFishGameDraft {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,13 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![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)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
@@ -14,12 +20,14 @@ pub struct BigFishLevelBlueprint {
|
|||||||
pub size_ratio: f32,
|
pub size_ratio: f32,
|
||||||
pub visual_prompt_seed: String,
|
pub visual_prompt_seed: String,
|
||||||
pub motion_prompt_seed: String,
|
pub motion_prompt_seed: String,
|
||||||
pub merge_source_level: Option<u32>,
|
pub merge_source_level: Option::<u32>,
|
||||||
pub prey_window: Vec<u32>,
|
pub prey_window: Vec::<u32>,
|
||||||
pub threat_window: Vec<u32>,
|
pub threat_window: Vec::<u32>,
|
||||||
pub is_final_level: bool,
|
pub is_final_level: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for BigFishLevelBlueprint {
|
impl __sdk::InModule for BigFishLevelBlueprint {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,13 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![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)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
@@ -15,6 +21,8 @@ pub struct BigFishMessageSubmitInput {
|
|||||||
pub submitted_at_micros: i64,
|
pub submitted_at_micros: i64,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for BigFishMessageSubmitInput {
|
impl __sdk::InModule for BigFishMessageSubmitInput {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,13 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![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)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
@@ -12,6 +18,8 @@ pub struct BigFishPublishInput {
|
|||||||
pub published_at_micros: i64,
|
pub published_at_micros: i64,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for BigFishPublishInput {
|
impl __sdk::InModule for BigFishPublishInput {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,13 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![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)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
@@ -11,6 +17,8 @@ pub struct BigFishRunGetInput {
|
|||||||
pub owner_user_id: String,
|
pub owner_user_id: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for BigFishRunGetInput {
|
impl __sdk::InModule for BigFishRunGetInput {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,13 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![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)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
@@ -14,6 +20,8 @@ pub struct BigFishRunInputSubmitInput {
|
|||||||
pub submitted_at_micros: i64,
|
pub submitted_at_micros: i64,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for BigFishRunInputSubmitInput {
|
impl __sdk::InModule for BigFishRunInputSubmitInput {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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;
|
use super::big_fish_runtime_snapshot_type::BigFishRuntimeSnapshot;
|
||||||
|
|
||||||
@@ -10,10 +15,12 @@ use super::big_fish_runtime_snapshot_type::BigFishRuntimeSnapshot;
|
|||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
pub struct BigFishRunProcedureResult {
|
pub struct BigFishRunProcedureResult {
|
||||||
pub ok: bool,
|
pub ok: bool,
|
||||||
pub run: Option<BigFishRuntimeSnapshot>,
|
pub run: Option::<BigFishRuntimeSnapshot>,
|
||||||
pub error_message: Option<String>,
|
pub error_message: Option::<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for BigFishRunProcedureResult {
|
impl __sdk::InModule for BigFishRunProcedureResult {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,13 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![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)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
@@ -13,6 +19,8 @@ pub struct BigFishRunStartInput {
|
|||||||
pub started_at_micros: i64,
|
pub started_at_micros: i64,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for BigFishRunStartInput {
|
impl __sdk::InModule for BigFishRunStartInput {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![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)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
@@ -13,8 +18,12 @@ pub enum BigFishRunStatus {
|
|||||||
Won,
|
Won,
|
||||||
|
|
||||||
Failed,
|
Failed,
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for BigFishRunStatus {
|
impl __sdk::InModule for BigFishRunStatus {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, 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;
|
use super::big_fish_vector_2_type::BigFishVector2;
|
||||||
|
|
||||||
@@ -16,6 +21,8 @@ pub struct BigFishRuntimeEntity {
|
|||||||
pub offscreen_seconds: f32,
|
pub offscreen_seconds: f32,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for BigFishRuntimeEntity {
|
impl __sdk::InModule for BigFishRuntimeEntity {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,13 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![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)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
@@ -13,11 +19,13 @@ pub struct BigFishRuntimeParams {
|
|||||||
pub leader_move_speed: f32,
|
pub leader_move_speed: f32,
|
||||||
pub follower_catch_up_speed: f32,
|
pub follower_catch_up_speed: f32,
|
||||||
pub offscreen_cull_seconds: f32,
|
pub offscreen_cull_seconds: f32,
|
||||||
pub prey_spawn_delta_levels: Vec<u32>,
|
pub prey_spawn_delta_levels: Vec::<u32>,
|
||||||
pub threat_spawn_delta_levels: Vec<u32>,
|
pub threat_spawn_delta_levels: Vec::<u32>,
|
||||||
pub win_level: u32,
|
pub win_level: u32,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for BigFishRuntimeParams {
|
impl __sdk::InModule for BigFishRuntimeParams {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,9 +2,14 @@
|
|||||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||||
|
|
||||||
#![allow(unused, clippy::all)]
|
#![allow(unused, clippy::all)]
|
||||||
use super::big_fish_run_status_type::BigFishRunStatus;
|
use spacetimedb_sdk::__codegen::{
|
||||||
|
self as __sdk,
|
||||||
|
__lib,
|
||||||
|
__sats,
|
||||||
|
__ws,
|
||||||
|
};
|
||||||
use super::big_fish_runtime_run_type::BigFishRuntimeRun;
|
use super::big_fish_runtime_run_type::BigFishRuntimeRun;
|
||||||
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
use super::big_fish_run_status_type::BigFishRunStatus;
|
||||||
|
|
||||||
/// Table handle for the table `big_fish_runtime_run`.
|
/// Table handle for the table `big_fish_runtime_run`.
|
||||||
///
|
///
|
||||||
@@ -32,9 +37,7 @@ pub trait BigFishRuntimeRunTableAccess {
|
|||||||
impl BigFishRuntimeRunTableAccess for super::RemoteTables {
|
impl BigFishRuntimeRunTableAccess for super::RemoteTables {
|
||||||
fn big_fish_runtime_run(&self) -> BigFishRuntimeRunTableHandle<'_> {
|
fn big_fish_runtime_run(&self) -> BigFishRuntimeRunTableHandle<'_> {
|
||||||
BigFishRuntimeRunTableHandle {
|
BigFishRuntimeRunTableHandle {
|
||||||
imp: self
|
imp: self.imp.get_table::<BigFishRuntimeRun>("big_fish_runtime_run"),
|
||||||
.imp
|
|
||||||
.get_table::<BigFishRuntimeRun>("big_fish_runtime_run"),
|
|
||||||
ctx: std::marker::PhantomData,
|
ctx: std::marker::PhantomData,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -47,12 +50,8 @@ impl<'ctx> __sdk::Table for BigFishRuntimeRunTableHandle<'ctx> {
|
|||||||
type Row = BigFishRuntimeRun;
|
type Row = BigFishRuntimeRun;
|
||||||
type EventContext = super::EventContext;
|
type EventContext = super::EventContext;
|
||||||
|
|
||||||
fn count(&self) -> u64 {
|
fn count(&self) -> u64 { self.imp.count() }
|
||||||
self.imp.count()
|
fn iter(&self) -> impl Iterator<Item = BigFishRuntimeRun> + '_ { self.imp.iter() }
|
||||||
}
|
|
||||||
fn iter(&self) -> impl Iterator<Item = BigFishRuntimeRun> + '_ {
|
|
||||||
self.imp.iter()
|
|
||||||
}
|
|
||||||
|
|
||||||
type InsertCallbackId = BigFishRuntimeRunInsertCallbackId;
|
type InsertCallbackId = BigFishRuntimeRunInsertCallbackId;
|
||||||
|
|
||||||
@@ -130,6 +129,7 @@ impl<'ctx> BigFishRuntimeRunRunIdUnique<'ctx> {
|
|||||||
|
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
pub(super) fn register_table(client_cache: &mut __sdk::ClientCache<super::RemoteModule>) {
|
pub(super) fn register_table(client_cache: &mut __sdk::ClientCache<super::RemoteModule>) {
|
||||||
|
|
||||||
let _table = client_cache.get_or_make_table::<BigFishRuntimeRun>("big_fish_runtime_run");
|
let _table = client_cache.get_or_make_table::<BigFishRuntimeRun>("big_fish_runtime_run");
|
||||||
_table.add_unique_constraint::<String>("run_id", |row| &row.run_id);
|
_table.add_unique_constraint::<String>("run_id", |row| &row.run_id);
|
||||||
}
|
}
|
||||||
@@ -139,9 +139,10 @@ pub(super) fn parse_table_update(
|
|||||||
raw_updates: __ws::v2::TableUpdate,
|
raw_updates: __ws::v2::TableUpdate,
|
||||||
) -> __sdk::Result<__sdk::TableUpdate<BigFishRuntimeRun>> {
|
) -> __sdk::Result<__sdk::TableUpdate<BigFishRuntimeRun>> {
|
||||||
__sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| {
|
__sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| {
|
||||||
__sdk::InternalError::failed_parse("TableUpdate<BigFishRuntimeRun>", "TableUpdate")
|
__sdk::InternalError::failed_parse(
|
||||||
.with_cause(e)
|
"TableUpdate<BigFishRuntimeRun>",
|
||||||
.into()
|
"TableUpdate",
|
||||||
|
).with_cause(e).into()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -160,3 +161,4 @@ impl big_fish_runtime_runQueryTableAccess for __sdk::QueryTableAccessor {
|
|||||||
__sdk::__query_builder::Table::new("big_fish_runtime_run")
|
__sdk::__query_builder::Table::new("big_fish_runtime_run")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user