@@ -87,7 +87,7 @@
|
|||||||
4. 重新执行:
|
4. 重新执行:
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
spacetime generate --no-config --lang rust --out-dir D:\Genarrative\server-rs\crates\spacetime-client\src\module_bindings --module-path D:\Genarrative\server-rs\crates\spacetime-module --include-private --yes
|
npm run spacetime:generate
|
||||||
```
|
```
|
||||||
|
|
||||||
说明:
|
说明:
|
||||||
|
|||||||
@@ -107,7 +107,7 @@
|
|||||||
```bash
|
```bash
|
||||||
spacetime start --listen-addr 127.0.0.1:3000
|
spacetime start --listen-addr 127.0.0.1:3000
|
||||||
spacetime publish genarrative-dev --server local --yes --module-path server-rs/crates/spacetime-module
|
spacetime publish genarrative-dev --server local --yes --module-path server-rs/crates/spacetime-module
|
||||||
spacetime generate --lang rust --out-dir server-rs/crates/spacetime-client/src/module_bindings --module-path server-rs/crates/spacetime-module --include-private --yes
|
npm run spacetime:generate
|
||||||
```
|
```
|
||||||
|
|
||||||
## 5. 为什么当前阶段不用 CLI 文本解析
|
## 5. 为什么当前阶段不用 CLI 文本解析
|
||||||
|
|||||||
@@ -195,7 +195,7 @@
|
|||||||
1. `cargo check -p module-story --manifest-path D:\\Genarrative\\server-rs\\Cargo.toml`
|
1. `cargo check -p module-story --manifest-path D:\\Genarrative\\server-rs\\Cargo.toml`
|
||||||
2. `cargo check -p spacetime-module --manifest-path D:\\Genarrative\\server-rs\\Cargo.toml`
|
2. `cargo check -p spacetime-module --manifest-path D:\\Genarrative\\server-rs\\Cargo.toml`
|
||||||
3. `cargo check -p spacetime-module --target wasm32-unknown-unknown --manifest-path D:\\Genarrative\\server-rs\\Cargo.toml`
|
3. `cargo check -p spacetime-module --target wasm32-unknown-unknown --manifest-path D:\\Genarrative\\server-rs\\Cargo.toml`
|
||||||
4. `spacetime generate --no-config --lang rust --out-dir D:\\Genarrative\\server-rs\\crates\\spacetime-client\\src\\module_bindings --module-path D:\\Genarrative\\server-rs\\crates\\spacetime-module --include-private --yes`
|
4. `npm run spacetime:generate`
|
||||||
5. `cargo check -p spacetime-client --manifest-path D:\\Genarrative\\server-rs\\Cargo.toml`
|
5. `cargo check -p spacetime-client --manifest-path D:\\Genarrative\\server-rs\\Cargo.toml`
|
||||||
6. `cargo check -p api-server --manifest-path D:\\Genarrative\\server-rs\\Cargo.toml`
|
6. `cargo check -p api-server --manifest-path D:\\Genarrative\\server-rs\\Cargo.toml`
|
||||||
7. `npm run check:encoding`
|
7. `npm run check:encoding`
|
||||||
@@ -234,7 +234,7 @@
|
|||||||
|
|
||||||
同时,本轮还完成了以下工程收口:
|
同时,本轮还完成了以下工程收口:
|
||||||
|
|
||||||
1. 已重新执行 `spacetime generate --no-config --lang rust --out-dir D:\\Genarrative\\server-rs\\crates\\spacetime-client\\src\\module_bindings --module-path D:\\Genarrative\\server-rs\\crates\\spacetime-module --include-private --yes`。
|
1. 已重新执行 `npm run spacetime:generate`。
|
||||||
2. 已把 `spacetime-client` 中 battle query 的占位实现替换为真实 procedure 调用。
|
2. 已把 `spacetime-client` 中 battle query 的占位实现替换为真实 procedure 调用。
|
||||||
3. 已再次执行 `cargo check -p spacetime-client --manifest-path D:\\Genarrative\\server-rs\\Cargo.toml` 与 `cargo check -p api-server --manifest-path D:\\Genarrative\\server-rs\\Cargo.toml` 并通过。
|
3. 已再次执行 `cargo check -p spacetime-client --manifest-path D:\\Genarrative\\server-rs\\Cargo.toml` 与 `cargo check -p api-server --manifest-path D:\\Genarrative\\server-rs\\Cargo.toml` 并通过。
|
||||||
|
|
||||||
|
|||||||
@@ -340,7 +340,7 @@ finalScore = tagSimilarityScore * 0.7 + sameAuthorScore * 0.3;
|
|||||||
4. `cargo check -p module-puzzle`
|
4. `cargo check -p module-puzzle`
|
||||||
5. `cargo check -p shared-contracts`
|
5. `cargo check -p shared-contracts`
|
||||||
6. `cargo check -p spacetime-module`
|
6. `cargo check -p spacetime-module`
|
||||||
7. `spacetime generate --no-config --lang rust --out-dir server-rs/crates/spacetime-client/src/module_bindings --module-path server-rs/crates/spacetime-module --include-private --yes`
|
7. `npm run spacetime:generate`
|
||||||
8. `cargo check -p spacetime-client`
|
8. `cargo check -p spacetime-client`
|
||||||
9. `cargo check -p api-server`
|
9. `cargo check -p api-server`
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
## 文档列表
|
## 文档列表
|
||||||
|
|
||||||
|
- [RPG_AND_AGENT_CHAT_TRUE_SSE_STREAMING_2026-04-26.md](./RPG_AND_AGENT_CHAT_TRUE_SSE_STREAMING_2026-04-26.md):记录 RPG 运行时 NPC 聊天、RPG/自定义世界 Agent 与大鱼 Agent 从“拼完整 SSE 字符串后一次性返回”改为 `mpsc + Sse<Event>` 真流式输出的后端落地口径。
|
||||||
- [RPG_BATTLE_HEALTHBAR_AND_ACTION_PRESENTATION_FIX_2026-04-26.md](./RPG_BATTLE_HEALTHBAR_AND_ACTION_PRESENTATION_FIX_2026-04-26.md):记录 RPG 战斗血条安全锚点、服务端战斗回包前端短表现,以及 `battle_use_skill` 指定技能兜底结算的修复口径。
|
- [RPG_BATTLE_HEALTHBAR_AND_ACTION_PRESENTATION_FIX_2026-04-26.md](./RPG_BATTLE_HEALTHBAR_AND_ACTION_PRESENTATION_FIX_2026-04-26.md):记录 RPG 战斗血条安全锚点、服务端战斗回包前端短表现,以及 `battle_use_skill` 指定技能兜底结算的修复口径。
|
||||||
- [SPACETIMEDB_TABLE_CATALOG.md](./SPACETIMEDB_TABLE_CATALOG.md):持续维护当前 SpacetimeDB 表目录,按领域说明每张表的作用、字段结构、索引和常用 `spacetime sql` 查询模板。
|
- [SPACETIMEDB_TABLE_CATALOG.md](./SPACETIMEDB_TABLE_CATALOG.md):持续维护当前 SpacetimeDB 表目录,按领域说明每张表的作用、字段结构、索引和常用 `spacetime sql` 查询模板。
|
||||||
- [RPG_OPENING_SCENE_ACT_IMAGE_PRESENTATION_SYNC_2026-04-26.md](./RPG_OPENING_SCENE_ACT_IMAGE_PRESENTATION_SYNC_2026-04-26.md):记录开局场景与普通场景复用同一场景展示解析服务,修复列表幕缩略图和详情幕背景预览图片不一致的问题。
|
- [RPG_OPENING_SCENE_ACT_IMAGE_PRESENTATION_SYNC_2026-04-26.md](./RPG_OPENING_SCENE_ACT_IMAGE_PRESENTATION_SYNC_2026-04-26.md):记录开局场景与普通场景复用同一场景展示解析服务,修复列表幕缩略图和详情幕背景预览图片不一致的问题。
|
||||||
|
|||||||
@@ -0,0 +1,51 @@
|
|||||||
|
# RPG 与 Agent 聊天真流式 SSE 修复(2026-04-26)
|
||||||
|
|
||||||
|
## 背景
|
||||||
|
|
||||||
|
RPG 运行时 NPC 聊天和创作 Agent 聊天此前都使用 `platform-llm.stream_text(...)`,但部分 HTTP handler 会把 `reply_delta` 先拼进内存字符串,等模型完整返回、建议生成和会话落库完成后才一次性响应。前端虽然消费的是 SSE 协议,实际体验仍接近非流式。
|
||||||
|
|
||||||
|
本次落地把这类路由改成真正边生成边输出:
|
||||||
|
|
||||||
|
1. RPG 运行时 NPC 聊天:`POST /api/runtime/chat/npc/turn/stream`
|
||||||
|
2. RPG/自定义世界创作 Agent:`POST /api/runtime/custom-world/agent/sessions/:sessionId/messages/stream`
|
||||||
|
3. 大鱼吃小鱼创作 Agent:`POST /api/runtime/big-fish/agent/sessions/:sessionId/messages/stream`
|
||||||
|
|
||||||
|
拼图 Agent 已经使用同类 `mpsc + Sse<Event>` 结构,本轮只作为参照,不重复改动。
|
||||||
|
|
||||||
|
## 设计约束
|
||||||
|
|
||||||
|
1. 前端 SSE contract 不变,继续消费 `reply_delta / complete / session / done / error`。
|
||||||
|
2. `reply_delta` 必须在模型生成过程中实时发送,不再等待完整 handler 结束。
|
||||||
|
3. Agent 的最终 `session` 仍必须等 SpacetimeDB `finalize_*` 成功后再发送,保证前端真相态与表内状态一致。
|
||||||
|
4. RPG NPC 聊天的建议、好感变化、敌对终止判定仍在完整回复后计算,最终通过 `complete` 一次性返回。
|
||||||
|
5. LLM 不可用或失败时,RPG NPC 聊天继续走确定性兜底,仍发送至少一条 `reply_delta` 和 `complete`。
|
||||||
|
|
||||||
|
## 落地方案
|
||||||
|
|
||||||
|
### Axum SSE 输出
|
||||||
|
|
||||||
|
相关 handler 改为返回 `Sse::new(async_stream::stream! { ... })`。模型回调不能直接 `yield`,因此使用:
|
||||||
|
|
||||||
|
1. `tokio::sync::mpsc::unbounded_channel::<String>()`
|
||||||
|
2. LLM turn 回调把最新可见回复写入 `reply_tx`
|
||||||
|
3. 外层 `tokio::select!` 同时等待 LLM 完成和 `reply_rx.recv()`
|
||||||
|
4. 每次收到文本立即 `yield Event::default().event("reply_delta")`
|
||||||
|
|
||||||
|
### Agent 写回顺序
|
||||||
|
|
||||||
|
Agent 路由保持原有 submit/finalize 分工:
|
||||||
|
|
||||||
|
1. `submit_*_message` 先写入用户消息与 operation。
|
||||||
|
2. `run_*_agent_turn` 运行模型,同时把 `replyText` 增量推给 SSE。
|
||||||
|
3. turn 完成后构造 `finalize_*_agent_message` 输入并写回 SpacetimeDB。
|
||||||
|
4. finalize 成功后再读取或映射最新 session,发送 `session` 和 `done`。
|
||||||
|
5. finalize 失败时发送 `error` 并结束 SSE。
|
||||||
|
|
||||||
|
## 验收
|
||||||
|
|
||||||
|
1. `cargo fmt -p api-server`
|
||||||
|
2. `cargo check -p api-server`
|
||||||
|
3. `cargo test -p api-server runtime_chat`
|
||||||
|
4. `cargo test -p api-server creation_agent_llm_turn`
|
||||||
|
5. `node scripts/check-encoding.mjs docs/technical/RPG_AND_AGENT_CHAT_TRUE_SSE_STREAMING_2026-04-26.md server-rs/crates/api-server/src/runtime_chat.rs server-rs/crates/api-server/src/custom_world.rs server-rs/crates/api-server/src/big_fish.rs docs/technical/README.md`
|
||||||
|
6. 修改后端代码后,使用 `npm run api-server:maincloud` 重启后端。
|
||||||
@@ -47,6 +47,7 @@
|
|||||||
- 优先 `LlmClient.stream_text(...)` 生成 `reply_delta`。
|
- 优先 `LlmClient.stream_text(...)` 生成 `reply_delta`。
|
||||||
- 再调用 `request_text(...)` 生成建议。
|
- 再调用 `request_text(...)` 生成建议。
|
||||||
- 计算 `affinityDelta / affinityText / chatDirective` 后输出 `complete`。
|
- 计算 `affinityDelta / affinityText / chatDirective` 后输出 `complete`。
|
||||||
|
- SSE stream 返回给 Axum 时要求 `'static`,进入 stream 的玩家输入必须先转成 owned `String`,不能把 handler 栈上的 `&str` 借入 stream。
|
||||||
3. 修改 `server-rs/crates/api-server/src/auth.rs`
|
3. 修改 `server-rs/crates/api-server/src/auth.rs`
|
||||||
- `allows_internal_forwarded_auth(...)` 允许 `/api/runtime/chat/`,与 big-fish、puzzle 的内部转发鉴权策略保持一致。
|
- `allows_internal_forwarded_auth(...)` 允许 `/api/runtime/chat/`,与 big-fish、puzzle 的内部转发鉴权策略保持一致。
|
||||||
- 单测覆盖 `/api/runtime/chat/npc/turn/stream`,防止后续新增 runtime 路由时再次遗漏内部转发白名单。
|
- 单测覆盖 `/api/runtime/chat/npc/turn/stream`,防止后续新增 runtime 路由时再次遗漏内部转发白名单。
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ npm run dev:rust
|
|||||||
1. 检查 `cargo`、`node` 与 `spacetime` CLI。
|
1. 检查 `cargo`、`node` 与 `spacetime` CLI。
|
||||||
2. Windows Git Bash 下如 `server-rs/.spacetimedb/local/bin/current/spacetimedb-cli.exe` 不存在,先把本机 `spacetime` 所在安装目录的 `bin/` 与 `spacetime.exe` 同步到 `server-rs/.spacetimedb/local/`。
|
2. Windows Git Bash 下如 `server-rs/.spacetimedb/local/bin/current/spacetimedb-cli.exe` 不存在,先把本机 `spacetime` 所在安装目录的 `bin/` 与 `spacetime.exe` 同步到 `server-rs/.spacetimedb/local/`。
|
||||||
3. 启动 `spacetime --root-dir=server-rs/.spacetimedb/local start --edition standalone --listen-addr 127.0.0.1:3101`,确保本地数据库与 SpacetimeDB 内部日志不会落到开发者全局目录。
|
3. 启动 `spacetime --root-dir=server-rs/.spacetimedb/local start --edition standalone --listen-addr 127.0.0.1:3101`,确保本地数据库与 SpacetimeDB 内部日志不会落到开发者全局目录。
|
||||||
4. 等待 `spacetime --root-dir=server-rs/.spacetimedb/local server ping http://127.0.0.1:3101` 可用。
|
4. 等待 `spacetime --root-dir=server-rs/.spacetimedb/local server ping http://127.0.0.1:3101` 可用;判定标准必须包含输出中的 `Server is online:`,不能只依赖 CLI 退出码,因为 SpacetimeDB CLI `2.1.0` 在 `502 Bad Gateway` 时也可能返回退出码 `0`。
|
||||||
5. 执行 `spacetime --root-dir=server-rs/.spacetimedb/local publish <本地数据库名> --server http://127.0.0.1:3101 --module-path server-rs/crates/spacetime-module -c=on-conflict --yes`,确保 publish 的签名身份与 standalone 的本地控制库一致,并在当前开发阶段允许新版模块表结构变化且发生 schema 冲突时清除旧模块数据。
|
5. 执行 `spacetime --root-dir=server-rs/.spacetimedb/local publish <本地数据库名> --server http://127.0.0.1:3101 --module-path server-rs/crates/spacetime-module -c=on-conflict --yes`,确保 publish 的签名身份与 standalone 的本地控制库一致,并在当前开发阶段允许新版模块表结构变化且发生 schema 冲突时清除旧模块数据。
|
||||||
6. 注入 `GENARRATIVE_API_*` 与 `GENARRATIVE_SPACETIME_*` 后启动 `cargo run -p api-server`;直接运行 `api-server` 时,如未显式设置 `GENARRATIVE_SPACETIME_DATABASE`,服务端也会向上查找 `spacetime.local.json` 作为本地默认库名。
|
6. 注入 `GENARRATIVE_API_*` 与 `GENARRATIVE_SPACETIME_*` 后启动 `cargo run -p api-server`;直接运行 `api-server` 时,如未显式设置 `GENARRATIVE_SPACETIME_DATABASE`,服务端也会向上查找 `spacetime.local.json` 作为本地默认库名。
|
||||||
7. 等待 `http://127.0.0.1:<api-port>/healthz` 返回 HTTP 响应后再启动 Vite,避免前端初始化请求早于 Rust `api-server` 监听完成并在终端刷出 `ECONNREFUSED 127.0.0.1:<api-port>`。
|
7. 等待 `http://127.0.0.1:<api-port>/healthz` 返回 HTTP 响应后再启动 Vite,避免前端初始化请求早于 Rust `api-server` 监听完成并在终端刷出 `ECONNREFUSED 127.0.0.1:<api-port>`。
|
||||||
@@ -65,6 +65,23 @@ npm run dev:rust
|
|||||||
./scripts/dev-rust-stack.sh --preserve-database
|
./scripts/dev-rust-stack.sh --preserve-database
|
||||||
```
|
```
|
||||||
|
|
||||||
|
bindings 生成:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run spacetime:generate
|
||||||
|
npm run spacetime:generate -- --rust-only
|
||||||
|
```
|
||||||
|
|
||||||
|
生成规则:
|
||||||
|
|
||||||
|
1. `npm run spacetime:generate` 是本仓库刷新 SpacetimeDB Rust client bindings 的唯一推荐入口。
|
||||||
|
2. 前端不直连 SpacetimeDB,不生成 TypeScript bindings;前端只通过 Rust `api-server` 暴露的 HTTP / SSE contract 访问后端。
|
||||||
|
3. Rust bindings 不生成私有表绑定,不追加 `--include-private`,生成到短临时目录后同步到 `server-rs/crates/spacetime-client/src/module_bindings`。
|
||||||
|
4. Windows 下 SpacetimeDB CLI `2.1.0` 会在生成结束后把所有生成文件路径一次性传给 formatter;Rust bindings 文件较多,若直接输出到仓库深目录,可能触发 `Could not format generated files: 文件名或扩展名太长。`。该错误不是单个最长文件路径超过限制,而是 formatter 子进程参数总长超过 Windows `CreateProcess` 限制。
|
||||||
|
5. CLI 在上述 formatter 失败时仍可能返回退出码 `0`;脚本会捕获输出,只要出现 `Could not format generated files` 就视为失败。
|
||||||
|
6. 根目录 `spacetime.json` 不配置 `generate` 目标,避免裸 `spacetime generate` 在 Windows 上直接碰到 Rust formatter 路径总长限制,也避免误生成前端 bindings。
|
||||||
|
7. 不直接手写或局部补 `server-rs/crates/spacetime-client/src/module_bindings` 下的生成文件;schema 变化后重新执行本脚本,并补跑编码检查与对应类型检查。
|
||||||
|
|
||||||
日志提取:
|
日志提取:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@@ -86,6 +103,7 @@ npm run dev:rust:logs -- --follow
|
|||||||
2. `spacetime --root-dir=server-rs/.spacetimedb/local list --server http://127.0.0.1:3101` 应能看到 `spacetime.local.json` 中的库名;若没有,执行 `spacetime --root-dir=server-rs/.spacetimedb/local publish <本地数据库名> --server http://127.0.0.1:3101 --module-path server-rs/crates/spacetime-module -c=on-conflict --yes`。
|
2. `spacetime --root-dir=server-rs/.spacetimedb/local list --server http://127.0.0.1:3101` 应能看到 `spacetime.local.json` 中的库名;若没有,执行 `spacetime --root-dir=server-rs/.spacetimedb/local publish <本地数据库名> --server http://127.0.0.1:3101 --module-path server-rs/crates/spacetime-module -c=on-conflict --yes`。
|
||||||
3. 发布库名与 `GENARRATIVE_SPACETIME_DATABASE` 不一致时,`/api/runtime/custom-world-gallery` 会从 Rust `api-server` 返回 `502`,前端首页只能展示空态或错误提示,无法自行修复。
|
3. 发布库名与 `GENARRATIVE_SPACETIME_DATABASE` 不一致时,`/api/runtime/custom-world-gallery` 会从 Rust `api-server` 返回 `502`,前端首页只能展示空态或错误提示,无法自行修复。
|
||||||
4. 如果 Vite 输出 `/api/auth/refresh`、`/api/auth/login-options` 或 `/api/runtime/custom-world-gallery` 的 `ECONNREFUSED`,先确认当前脚本是否已经打印 `等待 api-server 就绪` 并通过;正常情况下 Vite 只会在 `/healthz` 可访问后启动,不应再因为 Rust 监听未完成而代理失败。
|
4. 如果 Vite 输出 `/api/auth/refresh`、`/api/auth/login-options` 或 `/api/runtime/custom-world-gallery` 的 `ECONNREFUSED`,先确认当前脚本是否已经打印 `等待 api-server 就绪` 并通过;正常情况下 Vite 只会在 `/healthz` 可访问后启动,不应再因为 Rust 监听未完成而代理失败。
|
||||||
|
5. 如果 `spacetime server ping` 打印 `Server could not be reached (502 Bad Gateway)`,即使命令退出码为 `0` 也必须视为未就绪;脚本会继续等待新启动实例,或在 root-dir 已被其他实例占用时输出占用进程。
|
||||||
|
|
||||||
编译警告治理:
|
编译警告治理:
|
||||||
|
|
||||||
@@ -93,6 +111,12 @@ npm run dev:rust:logs -- --follow
|
|||||||
2. 仅供测试断言使用的辅助函数使用 `#[cfg(test)]` 限定,避免进入 `cargo run -p api-server` 的普通二进制编译。
|
2. 仅供测试断言使用的辅助函数使用 `#[cfg(test)]` 限定,避免进入 `cargo run -p api-server` 的普通二进制编译。
|
||||||
3. 已无调用入口且无迁移价值的映射函数直接删除;如果后续新增同类 SpacetimeDB 记录映射,再按实际调用路径补回,避免提前保留死代码。
|
3. 已无调用入口且无迁移价值的映射函数直接删除;如果后续新增同类 SpacetimeDB 记录映射,再按实际调用路径补回,避免提前保留死代码。
|
||||||
|
|
||||||
|
Maincloud API 重启补充:
|
||||||
|
|
||||||
|
1. `npm run api-server:maincloud` 会先读取 `.env`、`.env.local`,把 `GENARRATIVE_SPACETIME_MAINCLOUD_*` 映射为 `api-server` 使用的 `GENARRATIVE_SPACETIME_*`,再运行 `cargo run -p api-server --manifest-path server-rs/Cargo.toml`。
|
||||||
|
2. Windows 下脚本会尽力停止本仓库 `server-rs/target/debug/api-server.exe` 对应的旧进程,避免 cargo 重新编译时 exe 被占用。
|
||||||
|
3. 旧进程已经退出或清理过程中出现瞬时等待失败时,不应阻断新的 `api-server` 启动;脚本只记录清理失败并继续启动。
|
||||||
|
|
||||||
## 3. Ubuntu 发布包脚本
|
## 3. Ubuntu 发布包脚本
|
||||||
|
|
||||||
入口:
|
入口:
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ spacetime publish xushi-p4wfr --server http://127.0.0.1:3101 --module-path D:\Ge
|
|||||||
publish 成功后,继续执行:
|
publish 成功后,继续执行:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
spacetime generate --no-config --lang rust --out-dir D:\Genarrative\server-rs\crates\spacetime-client\src\module_bindings --module-path D:\Genarrative\server-rs\crates\spacetime-module --include-private --yes
|
npm run spacetime:generate
|
||||||
```
|
```
|
||||||
|
|
||||||
要求:
|
要求:
|
||||||
|
|||||||
@@ -164,19 +164,18 @@ Stage 5 已接入 agent `publish_world` action,但调用方仍需要显式提
|
|||||||
本仓默认刷新命令:
|
本仓默认刷新命令:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
spacetime generate --no-config --lang rust --out-dir server-rs/crates/spacetime-client/src/module_bindings --module-path server-rs/crates/spacetime-module --include-private --yes
|
npm run spacetime:generate
|
||||||
```
|
```
|
||||||
|
|
||||||
如果当前工作树里存在其他并行 `cargo build/test/check` 导致 `spacetime generate` 内部构建长期卡在锁竞争,则先在独立目标目录编译 wasm,再使用 `--bin-path` 生成:
|
如果当前工作树里存在其他并行 `cargo build/test/check` 导致 `spacetime generate` 内部构建长期卡在锁竞争,则先结束占锁任务后重新执行仓库脚本;脚本内部会使用短临时目录生成公开 Rust bindings,不生成私有表绑定。
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
CARGO_TARGET_DIR=server-rs/target-spacetime-bindgen cargo build --manifest-path server-rs/crates/spacetime-module/Cargo.toml --target wasm32-unknown-unknown --release
|
npm run spacetime:generate
|
||||||
spacetime generate --no-config --lang rust --out-dir server-rs/crates/spacetime-client/src/module_bindings --bin-path server-rs/target-spacetime-bindgen/wasm32-unknown-unknown/release/spacetime_module.wasm --include-private --yes
|
|
||||||
```
|
```
|
||||||
|
|
||||||
这样做的目的固定如下:
|
这样做的目的固定如下:
|
||||||
|
|
||||||
1. 避开根目录 `spacetime.json` 多 generate target 对单次 Rust 生成的参数冲突。
|
1. 避开根目录 `spacetime.json` 误触发前端 bindings 或私有表 bindings 生成。
|
||||||
2. 避开共享 `target/` 目录被其他任务占锁时的构建阻塞。
|
2. 避开共享 `target/` 目录被其他任务占锁时的构建阻塞。
|
||||||
3. 保证 `create_custom_world_agent_session` / `get_custom_world_agent_session` 这类新 procedure 与输入输出类型能同步进入 Rust bindings。
|
3. 保证 `create_custom_world_agent_session` / `get_custom_world_agent_session` 这类新 procedure 与输入输出类型能同步进入 Rust bindings。
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
"dev:rust:logs": "node scripts/run-bash-script.mjs scripts/spacetime-logs-local.sh",
|
"dev:rust:logs": "node scripts/run-bash-script.mjs scripts/spacetime-logs-local.sh",
|
||||||
"dev:web": "node scripts/dev-web-rust.mjs",
|
"dev:web": "node scripts/dev-web-rust.mjs",
|
||||||
"spacetime:publish:maincloud": "node scripts/run-bash-script.mjs scripts/spacetime-publish-maincloud.sh",
|
"spacetime:publish:maincloud": "node scripts/run-bash-script.mjs scripts/spacetime-publish-maincloud.sh",
|
||||||
|
"spacetime:generate": "node scripts/generate-spacetime-bindings.mjs",
|
||||||
"api-server:maincloud": "node scripts/api-server-maincloud.mjs",
|
"api-server:maincloud": "node scripts/api-server-maincloud.mjs",
|
||||||
"deploy:rust:remote": "node scripts/run-bash-script.mjs scripts/deploy-rust-remote.sh",
|
"deploy:rust:remote": "node scripts/run-bash-script.mjs scripts/deploy-rust-remote.sh",
|
||||||
"build:rust:ubuntu": "node scripts/run-bash-script.mjs scripts/deploy-rust-remote.sh",
|
"build:rust:ubuntu": "node scripts/run-bash-script.mjs scripts/deploy-rust-remote.sh",
|
||||||
|
|||||||
@@ -67,15 +67,21 @@ function stopExistingWindowsApiServer() {
|
|||||||
|
|
||||||
// Windows 下 cargo 重新编译时无法覆盖仍在运行的 exe,只清理本仓库 target 内的旧进程。
|
// Windows 下 cargo 重新编译时无法覆盖仍在运行的 exe,只清理本仓库 target 内的旧进程。
|
||||||
const command = [
|
const command = [
|
||||||
|
'$ErrorActionPreference = "Continue"',
|
||||||
'$target = [System.IO.Path]::GetFullPath($env:GENARRATIVE_API_SERVER_EXE_TARGET)',
|
'$target = [System.IO.Path]::GetFullPath($env:GENARRATIVE_API_SERVER_EXE_TARGET)',
|
||||||
'$processes = Get-Process -Name api-server -ErrorAction SilentlyContinue | Where-Object {',
|
'$processes = Get-Process -Name api-server -ErrorAction SilentlyContinue | Where-Object {',
|
||||||
' $_.Path -and ([System.IO.Path]::GetFullPath($_.Path) -ieq $target)',
|
' $_.Path -and ([System.IO.Path]::GetFullPath($_.Path) -ieq $target)',
|
||||||
'}',
|
'}',
|
||||||
'foreach ($process in $processes) {',
|
'foreach ($process in $processes) {',
|
||||||
' Stop-Process -Id $process.Id -Force',
|
' try {',
|
||||||
' Wait-Process -Id $process.Id -Timeout 5 -ErrorAction SilentlyContinue',
|
' Stop-Process -Id $process.Id -Force -ErrorAction Stop',
|
||||||
' Write-Output $process.Id',
|
' Wait-Process -Id $process.Id -Timeout 5 -ErrorAction SilentlyContinue',
|
||||||
|
' Write-Output $process.Id',
|
||||||
|
' } catch {',
|
||||||
|
' Write-Error "[api-server:maincloud] 忽略旧进程清理瞬时失败 pid=$($process.Id): $($_.Exception.Message)"',
|
||||||
|
' }',
|
||||||
'}',
|
'}',
|
||||||
|
'exit 0',
|
||||||
].join('\n');
|
].join('\n');
|
||||||
|
|
||||||
const output = execFileSync(
|
const output = execFileSync(
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ wait_for_spacetime() {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if spacetime --root-dir="${root_dir}" server ping "${server}" >/dev/null 2>&1; then
|
if is_spacetime_ready "${server}" "${root_dir}"; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -92,8 +92,14 @@ wait_for_spacetime() {
|
|||||||
is_spacetime_ready() {
|
is_spacetime_ready() {
|
||||||
local server="$1"
|
local server="$1"
|
||||||
local root_dir="$2"
|
local root_dir="$2"
|
||||||
|
local output
|
||||||
|
|
||||||
spacetime --root-dir="${root_dir}" server ping "${server}" >/dev/null 2>&1
|
if ! output="$(spacetime --root-dir="${root_dir}" server ping "${server}" 2>&1)"; then
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# SpacetimeDB CLI 2.1.0 在 502 Bad Gateway 时仍可能返回 0,不能只依赖退出码。
|
||||||
|
[[ "${output}" == *"Server is online:"* ]]
|
||||||
}
|
}
|
||||||
|
|
||||||
describe_spacetime_root_owner() {
|
describe_spacetime_root_owner() {
|
||||||
|
|||||||
207
scripts/generate-spacetime-bindings.mjs
Normal file
207
scripts/generate-spacetime-bindings.mjs
Normal file
@@ -0,0 +1,207 @@
|
|||||||
|
import {spawn} from 'node:child_process';
|
||||||
|
import {existsSync} from 'node:fs';
|
||||||
|
import {cp, mkdir, readdir, rm, stat} from 'node:fs/promises';
|
||||||
|
import path from 'node:path';
|
||||||
|
import {fileURLToPath} from 'node:url';
|
||||||
|
|
||||||
|
const SCRIPT_DIR = path.dirname(fileURLToPath(import.meta.url));
|
||||||
|
const REPO_ROOT = path.resolve(SCRIPT_DIR, '..');
|
||||||
|
const MODULE_PATH = path.join(REPO_ROOT, 'server-rs', 'crates', 'spacetime-module');
|
||||||
|
|
||||||
|
const TARGETS = [
|
||||||
|
{
|
||||||
|
name: 'Rust',
|
||||||
|
lang: 'rust',
|
||||||
|
tempName: 'rs',
|
||||||
|
outDir: path.join(
|
||||||
|
REPO_ROOT,
|
||||||
|
'server-rs',
|
||||||
|
'crates',
|
||||||
|
'spacetime-client',
|
||||||
|
'src',
|
||||||
|
'module_bindings',
|
||||||
|
),
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
const args = new Set(process.argv.slice(2));
|
||||||
|
const KNOWN_ARGS = new Set(['--rust-only']);
|
||||||
|
|
||||||
|
for (const arg of args) {
|
||||||
|
if (!KNOWN_ARGS.has(arg)) {
|
||||||
|
console.error(`[spacetime:generate] 未知参数: ${arg}`);
|
||||||
|
process.exit(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!existsSync(path.join(MODULE_PATH, 'Cargo.toml'))) {
|
||||||
|
console.error(`[spacetime:generate] 未找到模块: ${MODULE_PATH}`);
|
||||||
|
process.exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
const tempRoot = resolveTempRoot();
|
||||||
|
assertSafeTempRoot(tempRoot);
|
||||||
|
const selectedTargets = TARGETS.filter((target) => shouldRunTarget(target.lang));
|
||||||
|
|
||||||
|
if (selectedTargets.length === 0) {
|
||||||
|
console.error('[spacetime:generate] 没有需要生成的目标。');
|
||||||
|
process.exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
await mkdir(tempRoot, {recursive: true});
|
||||||
|
|
||||||
|
for (const target of selectedTargets) {
|
||||||
|
const tempOutDir = path.join(tempRoot, target.tempName);
|
||||||
|
await recreateTempDir(tempOutDir);
|
||||||
|
|
||||||
|
console.log(`[spacetime:generate] 生成 ${target.name} bindings 到短路径: ${tempOutDir}`);
|
||||||
|
await run('spacetime', buildGenerateArgs(target, tempOutDir));
|
||||||
|
|
||||||
|
const fileCount = await countFiles(tempOutDir);
|
||||||
|
if (fileCount === 0) {
|
||||||
|
throw new Error(`${target.name} bindings 未生成任何文件。`);
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log(`[spacetime:generate] 同步 ${fileCount} 个文件到 ${target.outDir}`);
|
||||||
|
await replaceGeneratedDir(tempOutDir, target.outDir);
|
||||||
|
}
|
||||||
|
|
||||||
|
await rm(tempRoot, {recursive: true, force: true});
|
||||||
|
console.log('[spacetime:generate] bindings 生成完成。');
|
||||||
|
|
||||||
|
function shouldRunTarget(lang) {
|
||||||
|
if (args.has('--rust-only')) {
|
||||||
|
return lang === 'rust';
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
function resolveTempRoot() {
|
||||||
|
if (process.env.GENARRATIVE_BINDGEN_TEMP_ROOT) {
|
||||||
|
return path.resolve(process.env.GENARRATIVE_BINDGEN_TEMP_ROOT);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Windows 下 SpacetimeDB CLI 2.1.0 会把所有生成文件路径一次性传给 formatter;
|
||||||
|
// Rust bindings 文件数较多,输出到仓库深目录时容易触发 CreateProcess 路径总长限制。
|
||||||
|
if (process.platform === 'win32') {
|
||||||
|
return path.join(path.parse(REPO_ROOT).root, '.genarrative-bindgen');
|
||||||
|
}
|
||||||
|
|
||||||
|
return path.join(REPO_ROOT, 'tmp', 'spacetime-bindgen');
|
||||||
|
}
|
||||||
|
|
||||||
|
async function recreateTempDir(dir) {
|
||||||
|
assertInside(dir, tempRoot, '临时生成目录');
|
||||||
|
await rm(dir, {recursive: true, force: true});
|
||||||
|
await mkdir(dir, {recursive: true});
|
||||||
|
}
|
||||||
|
|
||||||
|
async function replaceGeneratedDir(fromDir, toDir) {
|
||||||
|
assertInside(toDir, REPO_ROOT, '仓库生成目录');
|
||||||
|
await rm(toDir, {recursive: true, force: true});
|
||||||
|
await mkdir(path.dirname(toDir), {recursive: true});
|
||||||
|
await cp(fromDir, toDir, {recursive: true});
|
||||||
|
}
|
||||||
|
|
||||||
|
function assertInside(candidate, parent, label) {
|
||||||
|
const relative = path.relative(path.resolve(parent), path.resolve(candidate));
|
||||||
|
if (relative === '' || relative.startsWith('..') || path.isAbsolute(relative)) {
|
||||||
|
throw new Error(`${label} 不在预期目录内: ${candidate}`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function assertSafeTempRoot(dir) {
|
||||||
|
const resolved = path.resolve(dir);
|
||||||
|
const parsed = path.parse(resolved);
|
||||||
|
const basename = path.basename(resolved).toLowerCase();
|
||||||
|
|
||||||
|
if (resolved === path.resolve(REPO_ROOT) || resolved === parsed.root) {
|
||||||
|
throw new Error(`临时根目录不允许指向仓库或磁盘根目录: ${resolved}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!basename.includes('bindgen')) {
|
||||||
|
throw new Error(`临时根目录必须是明确的 bindings 生成目录: ${resolved}`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function buildGenerateArgs(target, outDir) {
|
||||||
|
const generateArgs = [
|
||||||
|
'generate',
|
||||||
|
'--no-config',
|
||||||
|
'--lang',
|
||||||
|
target.lang,
|
||||||
|
'--out-dir',
|
||||||
|
outDir,
|
||||||
|
'--module-path',
|
||||||
|
MODULE_PATH,
|
||||||
|
'--yes',
|
||||||
|
];
|
||||||
|
|
||||||
|
return generateArgs;
|
||||||
|
}
|
||||||
|
|
||||||
|
function run(command, commandArgs) {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
const child = spawn(command, commandArgs, {
|
||||||
|
cwd: REPO_ROOT,
|
||||||
|
env: process.env,
|
||||||
|
shell: false,
|
||||||
|
stdio: ['ignore', 'pipe', 'pipe'],
|
||||||
|
});
|
||||||
|
|
||||||
|
let output = '';
|
||||||
|
|
||||||
|
child.stdout.on('data', (chunk) => {
|
||||||
|
const text = chunk.toString();
|
||||||
|
output += text;
|
||||||
|
process.stdout.write(text);
|
||||||
|
});
|
||||||
|
|
||||||
|
child.stderr.on('data', (chunk) => {
|
||||||
|
const text = chunk.toString();
|
||||||
|
output += text;
|
||||||
|
process.stderr.write(text);
|
||||||
|
});
|
||||||
|
|
||||||
|
child.on('error', reject);
|
||||||
|
child.on('exit', (code, signal) => {
|
||||||
|
if (signal) {
|
||||||
|
reject(new Error(`${command} 被信号中断: ${signal}`));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (output.includes('Could not format generated files')) {
|
||||||
|
reject(new Error(`${command} 生成后格式化失败。`));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (code === 0) {
|
||||||
|
resolve();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
reject(new Error(`${command} 退出码: ${code ?? 'unknown'}`));
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
async function countFiles(dir) {
|
||||||
|
let count = 0;
|
||||||
|
const entries = await readdir(dir, {withFileTypes: true});
|
||||||
|
|
||||||
|
for (const entry of entries) {
|
||||||
|
const entryPath = path.join(dir, entry.name);
|
||||||
|
|
||||||
|
if (entry.isDirectory()) {
|
||||||
|
count += await countFiles(entryPath);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (entry.isFile() || (await stat(entryPath)).isFile()) {
|
||||||
|
count += 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return count;
|
||||||
|
}
|
||||||
@@ -1,13 +1,17 @@
|
|||||||
use std::{
|
use std::{
|
||||||
collections::BTreeMap,
|
collections::BTreeMap,
|
||||||
|
convert::Infallible,
|
||||||
time::{Duration, Instant, SystemTime, UNIX_EPOCH},
|
time::{Duration, Instant, SystemTime, UNIX_EPOCH},
|
||||||
};
|
};
|
||||||
|
|
||||||
use axum::{
|
use axum::{
|
||||||
Json,
|
Json,
|
||||||
extract::{Extension, Path, State, rejection::JsonRejection},
|
extract::{Extension, Path, State, rejection::JsonRejection},
|
||||||
http::{HeaderName, StatusCode, header},
|
http::StatusCode,
|
||||||
response::{IntoResponse, Response},
|
response::{
|
||||||
|
IntoResponse, Response,
|
||||||
|
sse::{Event, Sse},
|
||||||
|
},
|
||||||
};
|
};
|
||||||
use module_assets::{
|
use module_assets::{
|
||||||
AssetObjectAccessPolicy, AssetObjectFieldError, build_asset_entity_binding_input,
|
AssetObjectAccessPolicy, AssetObjectFieldError, build_asset_entity_binding_input,
|
||||||
@@ -323,93 +327,107 @@ pub async fn stream_big_fish_message(
|
|||||||
big_fish_error_response(&request_context, map_big_fish_client_error(error))
|
big_fish_error_response(&request_context, map_big_fish_client_error(error))
|
||||||
})?;
|
})?;
|
||||||
let quick_fill_requested = payload.quick_fill_requested.unwrap_or(false);
|
let quick_fill_requested = payload.quick_fill_requested.unwrap_or(false);
|
||||||
let mut draft_writer = AiGenerationDraftWriter::new(AiGenerationDraftContext::new(
|
let state = state.clone();
|
||||||
"big_fish",
|
let session_id_for_stream = session_id.clone();
|
||||||
owner_user_id.as_str(),
|
let owner_user_id_for_stream = owner_user_id.clone();
|
||||||
session_id.as_str(),
|
let client_message_id_for_stream = payload.client_message_id.clone();
|
||||||
payload.client_message_id.as_str(),
|
let stream = async_stream::stream! {
|
||||||
"大鱼吃小鱼模板生成草稿",
|
let mut draft_writer = AiGenerationDraftWriter::new(AiGenerationDraftContext::new(
|
||||||
));
|
|
||||||
if let Err(error) = draft_writer.ensure_started(state.spacetime_client()).await {
|
|
||||||
tracing::warn!(error = %error, "大鱼吃小鱼模板生成草稿任务启动失败,主生成流程继续执行");
|
|
||||||
}
|
|
||||||
let draft_sink = AiGenerationDraftSink::new(
|
|
||||||
AiGenerationDraftContext::new(
|
|
||||||
"big_fish",
|
"big_fish",
|
||||||
owner_user_id.as_str(),
|
owner_user_id_for_stream.as_str(),
|
||||||
session_id.as_str(),
|
session_id_for_stream.as_str(),
|
||||||
payload.client_message_id.as_str(),
|
client_message_id_for_stream.as_str(),
|
||||||
"大鱼吃小鱼模板生成草稿",
|
"大鱼吃小鱼模板生成草稿",
|
||||||
),
|
));
|
||||||
state.spacetime_client().clone(),
|
if let Err(error) = draft_writer.ensure_started(state.spacetime_client()).await {
|
||||||
);
|
tracing::warn!(error = %error, "大鱼吃小鱼模板生成草稿任务启动失败,主生成流程继续执行");
|
||||||
let mut streamed_reply_text = String::new();
|
}
|
||||||
let turn_result = run_big_fish_agent_turn(
|
let (reply_tx, mut reply_rx) = tokio::sync::mpsc::unbounded_channel::<String>();
|
||||||
BigFishAgentTurnRequest {
|
// 与 RPG/拼图 Agent 保持同一语义:回复先流式展示,session 真相仍等 finalize 后下发。
|
||||||
llm_client: state.llm_client(),
|
let turn_result = {
|
||||||
session: &submitted_session,
|
let run_turn = run_big_fish_agent_turn(
|
||||||
quick_fill_requested,
|
BigFishAgentTurnRequest {
|
||||||
},
|
llm_client: state.llm_client(),
|
||||||
|text| {
|
session: &submitted_session,
|
||||||
draft_sink.persist_visible_text_async(text);
|
quick_fill_requested,
|
||||||
streamed_reply_text = text.to_string();
|
},
|
||||||
},
|
move |text| {
|
||||||
)
|
let _ = reply_tx.send(text.to_string());
|
||||||
.await;
|
},
|
||||||
if !streamed_reply_text.is_empty() {
|
);
|
||||||
draft_writer
|
tokio::pin!(run_turn);
|
||||||
.persist_visible_text(state.spacetime_client(), streamed_reply_text.as_str())
|
|
||||||
.await;
|
|
||||||
}
|
|
||||||
let reply_text = match &turn_result {
|
|
||||||
Ok(result) => result.assistant_reply_text.clone(),
|
|
||||||
Err(error) => error.to_string(),
|
|
||||||
};
|
|
||||||
let finalize_input = match turn_result {
|
|
||||||
Ok(turn_result) => build_finalize_record_input(
|
|
||||||
session_id.clone(),
|
|
||||||
owner_user_id.clone(),
|
|
||||||
build_prefixed_uuid_id("big-fish-message-"),
|
|
||||||
turn_result,
|
|
||||||
current_utc_micros(),
|
|
||||||
),
|
|
||||||
Err(error) => build_failed_finalize_record_input(
|
|
||||||
session_id.clone(),
|
|
||||||
owner_user_id.clone(),
|
|
||||||
&submitted_session,
|
|
||||||
error.to_string(),
|
|
||||||
current_utc_micros(),
|
|
||||||
),
|
|
||||||
};
|
|
||||||
let session = state
|
|
||||||
.spacetime_client()
|
|
||||||
.finalize_big_fish_agent_message(finalize_input)
|
|
||||||
.await
|
|
||||||
.map_err(|error| {
|
|
||||||
big_fish_error_response(&request_context, map_big_fish_client_error(error))
|
|
||||||
})?;
|
|
||||||
|
|
||||||
let session_response = map_big_fish_session_response(session);
|
loop {
|
||||||
let mut sse_body = String::new();
|
// 每个 replyText 增量同时写草稿表并推给 SSE,避免前端等待完整模型响应。
|
||||||
append_sse_event(
|
tokio::select! {
|
||||||
&request_context,
|
result = &mut run_turn => break result,
|
||||||
&mut sse_body,
|
maybe_text = reply_rx.recv() => {
|
||||||
"reply_delta",
|
if let Some(text) = maybe_text {
|
||||||
&json!({ "text": if streamed_reply_text.is_empty() { reply_text } else { streamed_reply_text } }),
|
draft_writer
|
||||||
)?;
|
.persist_visible_text(state.spacetime_client(), text.as_str())
|
||||||
append_sse_event(
|
.await;
|
||||||
&request_context,
|
yield Ok::<Event, Infallible>(big_fish_sse_json_event_or_error(
|
||||||
&mut sse_body,
|
"reply_delta",
|
||||||
"session",
|
json!({ "text": text }),
|
||||||
&json!({ "session": session_response }),
|
));
|
||||||
)?;
|
}
|
||||||
append_sse_event(
|
}
|
||||||
&request_context,
|
}
|
||||||
&mut sse_body,
|
}
|
||||||
"done",
|
};
|
||||||
&json!({ "ok": true }),
|
|
||||||
)?;
|
while let Some(text) = reply_rx.recv().await {
|
||||||
Ok(build_event_stream_response(sse_body))
|
draft_writer
|
||||||
|
.persist_visible_text(state.spacetime_client(), text.as_str())
|
||||||
|
.await;
|
||||||
|
yield Ok::<Event, Infallible>(big_fish_sse_json_event_or_error(
|
||||||
|
"reply_delta",
|
||||||
|
json!({ "text": text }),
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
|
let finalize_input = match turn_result {
|
||||||
|
Ok(turn_result) => build_finalize_record_input(
|
||||||
|
session_id_for_stream.clone(),
|
||||||
|
owner_user_id_for_stream.clone(),
|
||||||
|
build_prefixed_uuid_id("big-fish-message-"),
|
||||||
|
turn_result,
|
||||||
|
current_utc_micros(),
|
||||||
|
),
|
||||||
|
Err(error) => build_failed_finalize_record_input(
|
||||||
|
session_id_for_stream.clone(),
|
||||||
|
owner_user_id_for_stream.clone(),
|
||||||
|
&submitted_session,
|
||||||
|
error.to_string(),
|
||||||
|
current_utc_micros(),
|
||||||
|
),
|
||||||
|
};
|
||||||
|
let session = match state
|
||||||
|
.spacetime_client()
|
||||||
|
.finalize_big_fish_agent_message(finalize_input)
|
||||||
|
.await
|
||||||
|
{
|
||||||
|
Ok(session) => session,
|
||||||
|
Err(error) => {
|
||||||
|
yield Ok::<Event, Infallible>(big_fish_sse_json_event_or_error(
|
||||||
|
"error",
|
||||||
|
json!({ "message": error.to_string() }),
|
||||||
|
));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
let session_response = map_big_fish_session_response(session);
|
||||||
|
yield Ok::<Event, Infallible>(big_fish_sse_json_event_or_error(
|
||||||
|
"session",
|
||||||
|
json!({ "session": session_response }),
|
||||||
|
));
|
||||||
|
yield Ok::<Event, Infallible>(big_fish_sse_json_event_or_error(
|
||||||
|
"done",
|
||||||
|
json!({ "ok": true }),
|
||||||
|
));
|
||||||
|
};
|
||||||
|
Ok(Sse::new(stream).into_response())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn execute_big_fish_action(
|
pub async fn execute_big_fish_action(
|
||||||
@@ -1706,40 +1724,20 @@ fn big_fish_bad_request(request_context: &RequestContext, message: &str) -> Resp
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn append_sse_event(
|
fn big_fish_sse_json_event_or_error(event_name: &str, payload: Value) -> Event {
|
||||||
request_context: &RequestContext,
|
match serde_json::to_string(&payload) {
|
||||||
body: &mut String,
|
Ok(payload_text) => Event::default().event(event_name).data(payload_text),
|
||||||
event: &str,
|
Err(_) => big_fish_sse_error_event_message("SSE payload 序列化失败".to_string()),
|
||||||
payload: &Value,
|
}
|
||||||
) -> Result<(), Response> {
|
|
||||||
let payload_text = serde_json::to_string(payload).map_err(|error| {
|
|
||||||
big_fish_error_response(
|
|
||||||
request_context,
|
|
||||||
AppError::from_status(StatusCode::INTERNAL_SERVER_ERROR).with_details(json!({
|
|
||||||
"provider": "big-fish",
|
|
||||||
"message": format!("SSE payload 序列化失败:{error}"),
|
|
||||||
})),
|
|
||||||
)
|
|
||||||
})?;
|
|
||||||
body.push_str("event: ");
|
|
||||||
body.push_str(event);
|
|
||||||
body.push('\n');
|
|
||||||
body.push_str("data: ");
|
|
||||||
body.push_str(&payload_text);
|
|
||||||
body.push_str("\n\n");
|
|
||||||
Ok(())
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn build_event_stream_response(body: String) -> Response {
|
fn big_fish_sse_error_event_message(message: String) -> Event {
|
||||||
(
|
let payload = format!(
|
||||||
[
|
"{{\"message\":{}}}",
|
||||||
(header::CONTENT_TYPE, "text/event-stream; charset=utf-8"),
|
serde_json::to_string(&message)
|
||||||
(header::CACHE_CONTROL, "no-cache"),
|
.unwrap_or_else(|_| "\"SSE 错误事件序列化失败\"".to_string())
|
||||||
(HeaderName::from_static("x-accel-buffering"), "no"),
|
);
|
||||||
],
|
Event::default().event("error").data(payload)
|
||||||
body,
|
|
||||||
)
|
|
||||||
.into_response()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn map_big_fish_client_error(error: SpacetimeClientError) -> AppError {
|
fn map_big_fish_client_error(error: SpacetimeClientError) -> AppError {
|
||||||
|
|||||||
@@ -901,34 +901,49 @@ pub async fn stream_custom_world_agent_message(
|
|||||||
if let Err(error) = draft_writer.ensure_started(state.spacetime_client()).await {
|
if let Err(error) = draft_writer.ensure_started(state.spacetime_client()).await {
|
||||||
tracing::warn!(error = %error, "自定义世界模板生成草稿任务启动失败,主生成流程继续执行");
|
tracing::warn!(error = %error, "自定义世界模板生成草稿任务启动失败,主生成流程继续执行");
|
||||||
}
|
}
|
||||||
let draft_sink = AiGenerationDraftSink::new(
|
let (reply_tx, mut reply_rx) = tokio::sync::mpsc::unbounded_channel::<String>();
|
||||||
AiGenerationDraftContext::new(
|
// Agent turn 仍负责完整 JSON 解析和最终写回;这里把 replyText 增量桥接成前端可见的 SSE 分片。
|
||||||
"custom_world",
|
let turn_result = {
|
||||||
owner_user_id_for_stream.as_str(),
|
let run_turn = run_custom_world_agent_turn(
|
||||||
session_id_for_stream.as_str(),
|
CustomWorldAgentTurnRequest {
|
||||||
operation_id.as_str(),
|
llm_client: state.llm_client(),
|
||||||
"自定义世界模板生成草稿",
|
session: &session,
|
||||||
),
|
quick_fill_requested,
|
||||||
state.spacetime_client().clone(),
|
focus_card_id,
|
||||||
);
|
},
|
||||||
// 聊天回复必须等本轮模型解析、进度与会话快照全部落库后,
|
move |text| {
|
||||||
// 再随最终 session 一次性返回,避免玩家先看到回复而进度仍停在旧状态。
|
let _ = reply_tx.send(text.to_string());
|
||||||
let turn_result = run_custom_world_agent_turn(
|
},
|
||||||
CustomWorldAgentTurnRequest {
|
);
|
||||||
llm_client: state.llm_client(),
|
tokio::pin!(run_turn);
|
||||||
session: &session,
|
|
||||||
quick_fill_requested,
|
loop {
|
||||||
focus_card_id,
|
// 不等待最终 session 落库即可先推送回复进度;session/done 仍在 finalize 成功后发送。
|
||||||
},
|
tokio::select! {
|
||||||
move |text| {
|
result = &mut run_turn => break result,
|
||||||
draft_sink.persist_visible_text_async(text);
|
maybe_text = reply_rx.recv() => {
|
||||||
},
|
if let Some(text) = maybe_text {
|
||||||
)
|
draft_writer
|
||||||
.await;
|
.persist_visible_text(state.spacetime_client(), text.as_str())
|
||||||
if let Ok(result) = &turn_result {
|
.await;
|
||||||
|
yield Ok::<Event, Infallible>(custom_world_sse_json_event_or_error(
|
||||||
|
"reply_delta",
|
||||||
|
json!({ "text": text }),
|
||||||
|
));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
while let Some(text) = reply_rx.recv().await {
|
||||||
draft_writer
|
draft_writer
|
||||||
.persist_visible_text(state.spacetime_client(), result.assistant_reply_text.as_str())
|
.persist_visible_text(state.spacetime_client(), text.as_str())
|
||||||
.await;
|
.await;
|
||||||
|
yield Ok::<Event, Infallible>(custom_world_sse_json_event_or_error(
|
||||||
|
"reply_delta",
|
||||||
|
json!({ "text": text }),
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
let finalize_input = match turn_result {
|
let finalize_input = match turn_result {
|
||||||
|
|||||||
@@ -1,12 +1,16 @@
|
|||||||
use axum::{
|
use axum::{
|
||||||
Json,
|
Json,
|
||||||
extract::{Extension, State},
|
extract::{Extension, State},
|
||||||
http::{StatusCode, header},
|
http::StatusCode,
|
||||||
response::{IntoResponse, Response},
|
response::{
|
||||||
|
IntoResponse, Response,
|
||||||
|
sse::{Event, Sse},
|
||||||
|
},
|
||||||
};
|
};
|
||||||
use platform_llm::{LlmMessage, LlmTextRequest};
|
use platform_llm::{LlmMessage, LlmTextRequest};
|
||||||
use serde::Deserialize;
|
use serde::Deserialize;
|
||||||
use serde_json::{Value, json};
|
use serde_json::{Value, json};
|
||||||
|
use std::convert::Infallible;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
http_error::AppError,
|
http_error::AppError,
|
||||||
@@ -58,7 +62,7 @@ pub async fn stream_runtime_npc_chat_turn(
|
|||||||
let npc_name = read_string_field(&payload.encounter, "npcName")
|
let npc_name = read_string_field(&payload.encounter, "npcName")
|
||||||
.or_else(|| read_string_field(&payload.encounter, "name"))
|
.or_else(|| read_string_field(&payload.encounter, "name"))
|
||||||
.unwrap_or_else(|| "对方".to_string());
|
.unwrap_or_else(|| "对方".to_string());
|
||||||
let player_message = payload.player_message.trim();
|
let player_message = payload.player_message.trim().to_string();
|
||||||
if player_message.is_empty() && !payload.npc_initiates_conversation {
|
if player_message.is_empty() && !payload.npc_initiates_conversation {
|
||||||
return Err(runtime_chat_error_response(
|
return Err(runtime_chat_error_response(
|
||||||
&request_context,
|
&request_context,
|
||||||
@@ -69,75 +73,106 @@ pub async fn stream_runtime_npc_chat_turn(
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
let llm_result =
|
let stream = async_stream::stream! {
|
||||||
generate_llm_npc_chat_turn(&state, &request_context, &payload, &npc_name).await;
|
let (reply_tx, mut reply_rx) = tokio::sync::mpsc::unbounded_channel::<String>();
|
||||||
let (mut body, npc_reply, suggestions, function_suggestions, force_exit) = match llm_result {
|
// `platform-llm` 在当前任务内持续回调增量文本;外层用 channel 把增量转成真正的 SSE 分片。
|
||||||
Some(result) => result,
|
let llm_turn = generate_llm_npc_chat_turn(
|
||||||
None => {
|
&state,
|
||||||
let npc_reply = build_deterministic_npc_reply(
|
&payload,
|
||||||
npc_name.as_str(),
|
&npc_name,
|
||||||
player_message,
|
move |text| {
|
||||||
payload.npc_initiates_conversation,
|
let _ = reply_tx.send(text.to_string());
|
||||||
);
|
},
|
||||||
let force_exit = should_force_chat_exit(payload.chat_directive.as_ref())
|
);
|
||||||
|| should_hostile_chat_breakoff_deterministically(
|
tokio::pin!(llm_turn);
|
||||||
player_message,
|
|
||||||
payload.chat_directive.as_ref(),
|
let llm_result = loop {
|
||||||
);
|
// 模型尚未结束时优先把已收到的累计回复推出去,避免等完整建议生成后才一次性返回。
|
||||||
let suggestions = if force_exit {
|
tokio::select! {
|
||||||
Vec::new()
|
result = &mut llm_turn => break result,
|
||||||
} else {
|
maybe_text = reply_rx.recv() => {
|
||||||
build_deterministic_chat_suggestions(npc_name.as_str(), player_message)
|
if let Some(text) = maybe_text {
|
||||||
};
|
yield Ok::<Event, Infallible>(runtime_chat_sse_json_event_or_error(
|
||||||
let function_suggestions = if force_exit {
|
"reply_delta",
|
||||||
Vec::new()
|
json!({ "text": text }),
|
||||||
} else {
|
));
|
||||||
build_fallback_function_suggestions(payload.chat_directive.as_ref())
|
}
|
||||||
};
|
}
|
||||||
let mut body = String::new();
|
}
|
||||||
append_sse_event(
|
};
|
||||||
&request_context,
|
|
||||||
&mut body,
|
while let Some(text) = reply_rx.recv().await {
|
||||||
|
yield Ok::<Event, Infallible>(runtime_chat_sse_json_event_or_error(
|
||||||
"reply_delta",
|
"reply_delta",
|
||||||
&json!({ "text": npc_reply }),
|
json!({ "text": text }),
|
||||||
)?;
|
));
|
||||||
(
|
|
||||||
body,
|
|
||||||
npc_reply,
|
|
||||||
suggestions,
|
|
||||||
function_suggestions,
|
|
||||||
force_exit,
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
};
|
|
||||||
|
|
||||||
let chatted_count = read_number_field(&payload.npc_state, "chattedCount").unwrap_or(0.0);
|
let (npc_reply, suggestions, function_suggestions, force_exit) = match llm_result {
|
||||||
let affinity_delta = if payload.npc_initiates_conversation {
|
Some(result) => result,
|
||||||
0
|
None => {
|
||||||
} else {
|
let npc_reply = build_deterministic_npc_reply(
|
||||||
compute_npc_chat_affinity_delta(player_message, npc_reply.as_str(), chatted_count)
|
npc_name.as_str(),
|
||||||
};
|
player_message.as_str(),
|
||||||
let complete_payload = json!({
|
payload.npc_initiates_conversation,
|
||||||
"npcReply": npc_reply,
|
);
|
||||||
"affinityDelta": affinity_delta,
|
let force_exit = should_force_chat_exit(payload.chat_directive.as_ref())
|
||||||
"affinityText": describe_affinity_shift(affinity_delta),
|
|| should_hostile_chat_breakoff_deterministically(
|
||||||
"suggestions": suggestions,
|
player_message.as_str(),
|
||||||
"functionSuggestions": function_suggestions,
|
payload.chat_directive.as_ref(),
|
||||||
"pendingQuestOffer": null,
|
);
|
||||||
"chatDirective": build_completion_directive(payload.chat_directive.as_ref(), force_exit),
|
let suggestions = if force_exit {
|
||||||
});
|
Vec::new()
|
||||||
|
} else {
|
||||||
|
build_deterministic_chat_suggestions(npc_name.as_str(), player_message.as_str())
|
||||||
|
};
|
||||||
|
let function_suggestions = if force_exit {
|
||||||
|
Vec::new()
|
||||||
|
} else {
|
||||||
|
build_fallback_function_suggestions(payload.chat_directive.as_ref())
|
||||||
|
};
|
||||||
|
yield Ok::<Event, Infallible>(runtime_chat_sse_json_event_or_error(
|
||||||
|
"reply_delta",
|
||||||
|
json!({ "text": npc_reply }),
|
||||||
|
));
|
||||||
|
(npc_reply, suggestions, function_suggestions, force_exit)
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
append_sse_event(&request_context, &mut body, "complete", &complete_payload)?;
|
let chatted_count = read_number_field(&payload.npc_state, "chattedCount").unwrap_or(0.0);
|
||||||
body.push_str("data: [DONE]\n\n");
|
let affinity_delta = if payload.npc_initiates_conversation {
|
||||||
Ok(build_event_stream_response(body))
|
0
|
||||||
|
} else {
|
||||||
|
compute_npc_chat_affinity_delta(player_message.as_str(), npc_reply.as_str(), chatted_count)
|
||||||
|
};
|
||||||
|
let complete_payload = json!({
|
||||||
|
"npcReply": npc_reply,
|
||||||
|
"affinityDelta": affinity_delta,
|
||||||
|
"affinityText": describe_affinity_shift(affinity_delta),
|
||||||
|
"suggestions": suggestions,
|
||||||
|
"functionSuggestions": function_suggestions,
|
||||||
|
"pendingQuestOffer": null,
|
||||||
|
"chatDirective": build_completion_directive(payload.chat_directive.as_ref(), force_exit),
|
||||||
|
});
|
||||||
|
|
||||||
|
yield Ok::<Event, Infallible>(runtime_chat_sse_json_event_or_error(
|
||||||
|
"complete",
|
||||||
|
complete_payload,
|
||||||
|
));
|
||||||
|
yield Ok::<Event, Infallible>(Event::default().data("[DONE]"));
|
||||||
|
};
|
||||||
|
Ok(Sse::new(stream).into_response())
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn generate_llm_npc_chat_turn(
|
async fn generate_llm_npc_chat_turn<F>(
|
||||||
state: &AppState,
|
state: &AppState,
|
||||||
request_context: &RequestContext,
|
|
||||||
payload: &NpcChatTurnRequest,
|
payload: &NpcChatTurnRequest,
|
||||||
npc_name: &str,
|
npc_name: &str,
|
||||||
) -> Option<(String, String, Vec<String>, Vec<Value>, bool)> {
|
mut on_reply_update: F,
|
||||||
|
) -> Option<(String, Vec<String>, Vec<Value>, bool)>
|
||||||
|
where
|
||||||
|
F: FnMut(&str),
|
||||||
|
{
|
||||||
let llm_client = state.llm_client()?;
|
let llm_client = state.llm_client()?;
|
||||||
let character = payload
|
let character = payload
|
||||||
.character
|
.character
|
||||||
@@ -160,7 +195,6 @@ async fn generate_llm_npc_chat_turn(
|
|||||||
chat_directive: payload.chat_directive.as_ref(),
|
chat_directive: payload.chat_directive.as_ref(),
|
||||||
};
|
};
|
||||||
|
|
||||||
let mut body = String::new();
|
|
||||||
let reply_prompt = build_npc_chat_turn_reply_prompt(&prompt_input);
|
let reply_prompt = build_npc_chat_turn_reply_prompt(&prompt_input);
|
||||||
let mut reply_request = LlmTextRequest::new(vec![
|
let mut reply_request = LlmTextRequest::new(vec![
|
||||||
LlmMessage::system(NPC_CHAT_TURN_REPLY_SYSTEM_PROMPT),
|
LlmMessage::system(NPC_CHAT_TURN_REPLY_SYSTEM_PROMPT),
|
||||||
@@ -171,12 +205,7 @@ async fn generate_llm_npc_chat_turn(
|
|||||||
|
|
||||||
let reply_response = llm_client
|
let reply_response = llm_client
|
||||||
.stream_text(reply_request, |delta| {
|
.stream_text(reply_request, |delta| {
|
||||||
let _ = append_sse_event(
|
on_reply_update(delta.accumulated_text.as_str());
|
||||||
request_context,
|
|
||||||
&mut body,
|
|
||||||
"reply_delta",
|
|
||||||
&json!({ "text": delta.accumulated_text }),
|
|
||||||
);
|
|
||||||
})
|
})
|
||||||
.await
|
.await
|
||||||
.ok()?;
|
.ok()?;
|
||||||
@@ -189,7 +218,7 @@ async fn generate_llm_npc_chat_turn(
|
|||||||
});
|
});
|
||||||
|
|
||||||
if should_force_chat_exit(payload.chat_directive.as_ref()) {
|
if should_force_chat_exit(payload.chat_directive.as_ref()) {
|
||||||
return Some((body, npc_reply, Vec::new(), Vec::new(), true));
|
return Some((npc_reply, Vec::new(), Vec::new(), true));
|
||||||
}
|
}
|
||||||
|
|
||||||
let suggestion_prompt =
|
let suggestion_prompt =
|
||||||
@@ -224,13 +253,7 @@ async fn generate_llm_npc_chat_turn(
|
|||||||
suggestions = build_fallback_npc_chat_suggestions(payload.player_message.as_str());
|
suggestions = build_fallback_npc_chat_suggestions(payload.player_message.as_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
Some((
|
Some((npc_reply, suggestions, function_suggestions, force_exit))
|
||||||
body,
|
|
||||||
npc_reply,
|
|
||||||
suggestions,
|
|
||||||
function_suggestions,
|
|
||||||
force_exit,
|
|
||||||
))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn build_deterministic_npc_reply(
|
fn build_deterministic_npc_reply(
|
||||||
@@ -595,39 +618,20 @@ fn describe_affinity_shift(affinity_delta: i32) -> &'static str {
|
|||||||
"这轮对话暂时没有带来明显关系变化。"
|
"这轮对话暂时没有带来明显关系变化。"
|
||||||
}
|
}
|
||||||
|
|
||||||
fn append_sse_event(
|
fn runtime_chat_sse_json_event_or_error(event_name: &str, payload: Value) -> Event {
|
||||||
request_context: &RequestContext,
|
match serde_json::to_string(&payload) {
|
||||||
body: &mut String,
|
Ok(payload_text) => Event::default().event(event_name).data(payload_text),
|
||||||
event: &str,
|
Err(_) => runtime_chat_sse_error_event_message("SSE payload 序列化失败".to_string()),
|
||||||
payload: &Value,
|
}
|
||||||
) -> Result<(), Response> {
|
|
||||||
let payload_text = serde_json::to_string(payload).map_err(|error| {
|
|
||||||
runtime_chat_error_response(
|
|
||||||
request_context,
|
|
||||||
AppError::from_status(StatusCode::INTERNAL_SERVER_ERROR).with_details(json!({
|
|
||||||
"provider": "runtime-chat",
|
|
||||||
"message": format!("SSE payload 序列化失败:{error}"),
|
|
||||||
})),
|
|
||||||
)
|
|
||||||
})?;
|
|
||||||
body.push_str("event: ");
|
|
||||||
body.push_str(event);
|
|
||||||
body.push('\n');
|
|
||||||
body.push_str("data: ");
|
|
||||||
body.push_str(&payload_text);
|
|
||||||
body.push_str("\n\n");
|
|
||||||
Ok(())
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn build_event_stream_response(body: String) -> Response {
|
fn runtime_chat_sse_error_event_message(message: String) -> Event {
|
||||||
(
|
let payload = format!(
|
||||||
[
|
"{{\"message\":{}}}",
|
||||||
(header::CONTENT_TYPE, "text/event-stream; charset=utf-8"),
|
serde_json::to_string(&message)
|
||||||
(header::CACHE_CONTROL, "no-cache"),
|
.unwrap_or_else(|_| "\"SSE 错误事件序列化失败\"".to_string())
|
||||||
],
|
);
|
||||||
body,
|
Event::default().event("error").data(payload)
|
||||||
)
|
|
||||||
.into_response()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn runtime_chat_error_response(request_context: &RequestContext, error: AppError) -> Response {
|
fn runtime_chat_error_response(request_context: &RequestContext, error: AppError) -> Response {
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
当前目录已不再只是占位,当前阶段已经落下:
|
当前目录已不再只是占位,当前阶段已经落下:
|
||||||
|
|
||||||
1. 通过 `spacetime generate --lang rust --include-private` 生成的最小 Rust bindings
|
1. 通过 `npm run spacetime:generate -- --rust-only` 生成的公开 Rust bindings
|
||||||
2. `DbConnection` 连接封装
|
2. `DbConnection` 连接封装
|
||||||
3. `confirm_asset_object_and_return` procedure 的最小调用适配
|
3. `confirm_asset_object_and_return` procedure 的最小调用适配
|
||||||
4. `bind_asset_object_to_entity_and_return` procedure 的最小调用适配
|
4. `bind_asset_object_to_entity_and_return` procedure 的最小调用适配
|
||||||
@@ -33,9 +33,11 @@
|
|||||||
|
|
||||||
`src/module_bindings` 目录下的 Rust 文件统一视为 SpacetimeDB CLI 生成产物,后续维护必须遵守:
|
`src/module_bindings` 目录下的 Rust 文件统一视为 SpacetimeDB CLI 生成产物,后续维护必须遵守:
|
||||||
|
|
||||||
1. 只允许通过 `spacetime generate --lang rust` 刷新,不允许手工修改。
|
1. 只允许通过仓库根目录 `npm run spacetime:generate -- --rust-only` 刷新,不允许手工修改。
|
||||||
2. 不允许对该目录执行 `rustfmt`,避免把 CLI 原始输出改写成额外格式化噪音。
|
2. 不生成私有表绑定,不追加 `--include-private`;如后端需要读取私有表,应先在 `api-server` 或模块层补明确 contract,而不是让客户端 crate 直接依赖私有表结构。
|
||||||
3. `src/lib.rs` 已通过 `#[rustfmt::skip] pub mod module_bindings;` 显式阻止 workspace 级 `cargo fmt` 继续递归格式化该目录。
|
3. 不允许对该目录额外执行 `rustfmt`,生成物格式只接受 SpacetimeDB CLI 生成阶段自身输出。
|
||||||
|
4. `src/lib.rs` 已通过 `#[rustfmt::skip] pub mod module_bindings;` 显式阻止 workspace 级 `cargo fmt` 继续递归格式化该目录。
|
||||||
|
5. Windows 下直接把 Rust bindings 输出到本目录时,SpacetimeDB CLI `2.1.0` 的生成后 formatter 可能因为路径参数总长触发 `文件名或扩展名太长`;仓库脚本会先输出到短临时目录,再同步回本目录。
|
||||||
|
|
||||||
### 2.1.1 绑定缺文件恢复流程
|
### 2.1.1 绑定缺文件恢复流程
|
||||||
|
|
||||||
|
|||||||
@@ -2,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
self as __sdk,
|
|
||||||
__lib,
|
|
||||||
__sats,
|
|
||||||
__ws,
|
|
||||||
};
|
|
||||||
|
|
||||||
use super::quest_record_input_type::QuestRecordInput;
|
use super::quest_record_input_type::QuestRecordInput;
|
||||||
|
|
||||||
@@ -19,10 +14,8 @@ 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 {
|
Self::AcceptQuest { input: args.input }
|
||||||
input: args.input,
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl __sdk::InModule for AcceptQuestArgs {
|
impl __sdk::InModule for AcceptQuestArgs {
|
||||||
@@ -40,9 +33,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,
|
fn accept_quest(&self, input: QuestRecordInput) -> __sdk::Result<()> {
|
||||||
) -> __sdk::Result<()> {
|
self.accept_quest_then(input, |_, _| {})
|
||||||
self.accept_quest_then(input, |_, _| {})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Request that the remote module invoke the reducer `accept_quest` to run as soon as possible,
|
/// Request that the remote module invoke the reducer `accept_quest` to run as soon as possible,
|
||||||
@@ -70,7 +62,7 @@ impl accept_quest for super::RemoteReducers {
|
|||||||
+ Send
|
+ Send
|
||||||
+ 'static,
|
+ 'static,
|
||||||
) -> __sdk::Result<()> {
|
) -> __sdk::Result<()> {
|
||||||
self.imp.invoke_reducer_with_callback(AcceptQuestArgs { input, }, callback)
|
self.imp
|
||||||
|
.invoke_reducer_with_callback(AcceptQuestArgs { input }, callback)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
self as __sdk,
|
|
||||||
__lib,
|
|
||||||
__sats,
|
|
||||||
__ws,
|
|
||||||
};
|
|
||||||
|
|
||||||
use super::quest_completion_ack_input_type::QuestCompletionAckInput;
|
use super::quest_completion_ack_input_type::QuestCompletionAckInput;
|
||||||
|
|
||||||
@@ -19,10 +14,8 @@ 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 {
|
Self::AcknowledgeQuestCompletion { input: args.input }
|
||||||
input: args.input,
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl __sdk::InModule for AcknowledgeQuestCompletionArgs {
|
impl __sdk::InModule for AcknowledgeQuestCompletionArgs {
|
||||||
@@ -40,9 +33,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,
|
fn acknowledge_quest_completion(&self, input: QuestCompletionAckInput) -> __sdk::Result<()> {
|
||||||
) -> __sdk::Result<()> {
|
self.acknowledge_quest_completion_then(input, |_, _| {})
|
||||||
self.acknowledge_quest_completion_then(input, |_, _| {})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Request that the remote module invoke the reducer `acknowledge_quest_completion` to run as soon as possible,
|
/// Request that the remote module invoke the reducer `acknowledge_quest_completion` to run as soon as possible,
|
||||||
@@ -70,7 +62,7 @@ impl acknowledge_quest_completion for super::RemoteReducers {
|
|||||||
+ Send
|
+ Send
|
||||||
+ 'static,
|
+ 'static,
|
||||||
) -> __sdk::Result<()> {
|
) -> __sdk::Result<()> {
|
||||||
self.imp.invoke_reducer_with_callback(AcknowledgeQuestCompletionArgs { input, }, callback)
|
self.imp
|
||||||
|
.invoke_reducer_with_callback(AcknowledgeQuestCompletionArgs { input }, callback)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,23 +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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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;
|
||||||
|
|
||||||
#[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)]
|
||||||
struct AdvancePuzzleNextLevelArgs {
|
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;
|
||||||
}
|
}
|
||||||
@@ -28,16 +22,19 @@ 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, |_, _| {});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn advance_puzzle_next_level_then(
|
fn advance_puzzle_next_level_then(
|
||||||
&self,
|
&self,
|
||||||
input: PuzzleRunNextLevelInput,
|
input: PuzzleRunNextLevelInput,
|
||||||
|
|
||||||
__callback: impl FnOnce(&super::ProcedureEventContext, Result<PuzzleRunProcedureResult, __sdk::InternalError>) + Send + 'static,
|
__callback: impl FnOnce(
|
||||||
|
&super::ProcedureEventContext,
|
||||||
|
Result<PuzzleRunProcedureResult, __sdk::InternalError>,
|
||||||
|
) + Send
|
||||||
|
+ 'static,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -46,13 +43,17 @@ impl advance_puzzle_next_level for super::RemoteProcedures {
|
|||||||
&self,
|
&self,
|
||||||
input: PuzzleRunNextLevelInput,
|
input: PuzzleRunNextLevelInput,
|
||||||
|
|
||||||
__callback: impl FnOnce(&super::ProcedureEventContext, Result<PuzzleRunProcedureResult, __sdk::InternalError>) + Send + 'static,
|
__callback: impl FnOnce(
|
||||||
|
&super::ProcedureEventContext,
|
||||||
|
Result<PuzzleRunProcedureResult, __sdk::InternalError>,
|
||||||
|
) + Send
|
||||||
|
+ 'static,
|
||||||
) {
|
) {
|
||||||
self.imp.invoke_procedure_with_callback::<_, PuzzleRunProcedureResult>(
|
self.imp
|
||||||
"advance_puzzle_next_level",
|
.invoke_procedure_with_callback::<_, PuzzleRunProcedureResult>(
|
||||||
AdvancePuzzleNextLevelArgs { input, },
|
"advance_puzzle_next_level",
|
||||||
__callback,
|
AdvancePuzzleNextLevelArgs { input },
|
||||||
);
|
__callback,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
self as __sdk,
|
|
||||||
__lib,
|
|
||||||
__sats,
|
|
||||||
__ws,
|
|
||||||
};
|
|
||||||
|
|
||||||
use super::ai_result_reference_kind_type::AiResultReferenceKind;
|
use super::ai_result_reference_kind_type::AiResultReferenceKind;
|
||||||
|
|
||||||
@@ -17,12 +12,10 @@ 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,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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)]
|
||||||
@@ -24,12 +19,8 @@ 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,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
self as __sdk,
|
|
||||||
__lib,
|
|
||||||
__sats,
|
|
||||||
__ws,
|
|
||||||
};
|
|
||||||
|
|
||||||
use super::ai_result_reference_kind_type::AiResultReferenceKind;
|
use super::ai_result_reference_kind_type::AiResultReferenceKind;
|
||||||
|
|
||||||
@@ -18,12 +13,10 @@ 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,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
self as __sdk,
|
|
||||||
__lib,
|
|
||||||
__sats,
|
|
||||||
__ws,
|
|
||||||
};
|
|
||||||
|
|
||||||
use super::ai_result_reference_kind_type::AiResultReferenceKind;
|
use super::ai_result_reference_kind_type::AiResultReferenceKind;
|
||||||
|
|
||||||
@@ -19,16 +14,14 @@ 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.
|
||||||
@@ -38,7 +31,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>,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -46,14 +39,16 @@ 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(table_name, "result_reference_row_id"),
|
result_reference_row_id: __sdk::__query_builder::Col::new(
|
||||||
|
table_name,
|
||||||
|
"result_reference_row_id",
|
||||||
|
),
|
||||||
result_ref_id: __sdk::__query_builder::Col::new(table_name, "result_ref_id"),
|
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"),
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -70,12 +65,13 @@ 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(table_name, "result_reference_row_id"),
|
result_reference_row_id: __sdk::__query_builder::IxCol::new(
|
||||||
|
table_name,
|
||||||
|
"result_reference_row_id",
|
||||||
|
),
|
||||||
task_id: __sdk::__query_builder::IxCol::new(table_name, "task_id"),
|
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,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
self as __sdk,
|
|
||||||
__lib,
|
|
||||||
__sats,
|
|
||||||
__ws,
|
|
||||||
};
|
|
||||||
|
|
||||||
use super::ai_task_stage_kind_type::AiTaskStageKind;
|
use super::ai_task_stage_kind_type::AiTaskStageKind;
|
||||||
|
|
||||||
@@ -16,14 +11,12 @@ 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,13 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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 +11,6 @@ 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,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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;
|
||||||
@@ -20,14 +15,12 @@ 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,13 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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)]
|
||||||
@@ -18,8 +12,6 @@ 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,13 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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 +11,6 @@ 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,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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)]
|
||||||
@@ -24,12 +19,8 @@ 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,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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;
|
||||||
@@ -16,13 +11,11 @@ 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,17 +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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
self as __sdk,
|
|
||||||
__lib,
|
|
||||||
__sats,
|
|
||||||
__ws,
|
|
||||||
};
|
|
||||||
|
|
||||||
use super::ai_task_kind_type::AiTaskKind;
|
|
||||||
use super::ai_task_status_type::AiTaskStatus;
|
|
||||||
use super::ai_task_stage_snapshot_type::AiTaskStageSnapshot;
|
|
||||||
use super::ai_result_reference_snapshot_type::AiResultReferenceSnapshot;
|
use super::ai_result_reference_snapshot_type::AiResultReferenceSnapshot;
|
||||||
|
use super::ai_task_kind_type::AiTaskKind;
|
||||||
|
use super::ai_task_stage_snapshot_type::AiTaskStageSnapshot;
|
||||||
|
use super::ai_task_status_type::AiTaskStatus;
|
||||||
|
|
||||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
@@ -22,23 +17,21 @@ 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,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
self as __sdk,
|
|
||||||
__lib,
|
|
||||||
__sats,
|
|
||||||
__ws,
|
|
||||||
};
|
|
||||||
|
|
||||||
use super::ai_task_stage_kind_type::AiTaskStageKind;
|
use super::ai_task_stage_kind_type::AiTaskStageKind;
|
||||||
|
|
||||||
@@ -20,8 +15,6 @@ 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,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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)]
|
||||||
@@ -22,12 +17,8 @@ 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,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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;
|
||||||
@@ -20,15 +15,13 @@ 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,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
self as __sdk,
|
|
||||||
__lib,
|
|
||||||
__sats,
|
|
||||||
__ws,
|
|
||||||
};
|
|
||||||
|
|
||||||
use super::ai_task_stage_kind_type::AiTaskStageKind;
|
use super::ai_task_stage_kind_type::AiTaskStageKind;
|
||||||
|
|
||||||
@@ -19,8 +14,6 @@ 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,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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)]
|
||||||
@@ -20,12 +15,8 @@ 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,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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;
|
||||||
@@ -22,19 +17,17 @@ 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.
|
||||||
@@ -46,11 +39,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 {
|
||||||
@@ -65,11 +58,13 @@ 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(table_name, "structured_payload_json"),
|
structured_payload_json: __sdk::__query_builder::Col::new(
|
||||||
|
table_name,
|
||||||
|
"structured_payload_json",
|
||||||
|
),
|
||||||
warning_messages: __sdk::__query_builder::Col::new(table_name, "warning_messages"),
|
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"),
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -88,10 +83,8 @@ 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,13 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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 +11,6 @@ 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,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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)]
|
||||||
@@ -22,12 +17,8 @@ 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,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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;
|
||||||
@@ -20,25 +15,23 @@ 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.
|
||||||
@@ -48,16 +41,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>,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -71,17 +64,22 @@ 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(table_name, "request_payload_json"),
|
request_payload_json: __sdk::__query_builder::Col::new(
|
||||||
|
table_name,
|
||||||
|
"request_payload_json",
|
||||||
|
),
|
||||||
status: __sdk::__query_builder::Col::new(table_name, "status"),
|
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(table_name, "latest_structured_payload_json"),
|
latest_structured_payload_json: __sdk::__query_builder::Col::new(
|
||||||
|
table_name,
|
||||||
|
"latest_structured_payload_json",
|
||||||
|
),
|
||||||
version: __sdk::__query_builder::Col::new(table_name, "version"),
|
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"),
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -104,10 +102,8 @@ 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,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
self as __sdk,
|
|
||||||
__lib,
|
|
||||||
__sats,
|
|
||||||
__ws,
|
|
||||||
};
|
|
||||||
|
|
||||||
use super::ai_task_stage_kind_type::AiTaskStageKind;
|
use super::ai_task_stage_kind_type::AiTaskStageKind;
|
||||||
|
|
||||||
@@ -21,8 +16,6 @@ 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,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
self as __sdk,
|
|
||||||
__lib,
|
|
||||||
__sats,
|
|
||||||
__ws,
|
|
||||||
};
|
|
||||||
|
|
||||||
use super::ai_task_stage_kind_type::AiTaskStageKind;
|
use super::ai_task_stage_kind_type::AiTaskStageKind;
|
||||||
|
|
||||||
@@ -22,8 +17,6 @@ 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,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
self as __sdk,
|
|
||||||
__lib,
|
|
||||||
__sats,
|
|
||||||
__ws,
|
|
||||||
};
|
|
||||||
|
|
||||||
use super::ai_task_stage_kind_type::AiTaskStageKind;
|
use super::ai_task_stage_kind_type::AiTaskStageKind;
|
||||||
|
|
||||||
@@ -23,12 +18,10 @@ 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.
|
||||||
@@ -53,7 +46,6 @@ 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"),
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -72,10 +64,8 @@ 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,23 +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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
self as __sdk,
|
|
||||||
__lib,
|
|
||||||
__sats,
|
|
||||||
__ws,
|
|
||||||
};
|
|
||||||
|
|
||||||
use super::ai_text_chunk_append_input_type::AiTextChunkAppendInput;
|
|
||||||
use super::ai_task_procedure_result_type::AiTaskProcedureResult;
|
use super::ai_task_procedure_result_type::AiTaskProcedureResult;
|
||||||
|
use super::ai_text_chunk_append_input_type::AiTextChunkAppendInput;
|
||||||
|
|
||||||
#[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)]
|
||||||
struct AppendAiTextChunkAndReturnArgs {
|
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;
|
||||||
}
|
}
|
||||||
@@ -28,16 +22,19 @@ 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, |_, _| {});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn append_ai_text_chunk_and_return_then(
|
fn append_ai_text_chunk_and_return_then(
|
||||||
&self,
|
&self,
|
||||||
input: AiTextChunkAppendInput,
|
input: AiTextChunkAppendInput,
|
||||||
|
|
||||||
__callback: impl FnOnce(&super::ProcedureEventContext, Result<AiTaskProcedureResult, __sdk::InternalError>) + Send + 'static,
|
__callback: impl FnOnce(
|
||||||
|
&super::ProcedureEventContext,
|
||||||
|
Result<AiTaskProcedureResult, __sdk::InternalError>,
|
||||||
|
) + Send
|
||||||
|
+ 'static,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -46,13 +43,17 @@ impl append_ai_text_chunk_and_return for super::RemoteProcedures {
|
|||||||
&self,
|
&self,
|
||||||
input: AiTextChunkAppendInput,
|
input: AiTextChunkAppendInput,
|
||||||
|
|
||||||
__callback: impl FnOnce(&super::ProcedureEventContext, Result<AiTaskProcedureResult, __sdk::InternalError>) + Send + 'static,
|
__callback: impl FnOnce(
|
||||||
|
&super::ProcedureEventContext,
|
||||||
|
Result<AiTaskProcedureResult, __sdk::InternalError>,
|
||||||
|
) + Send
|
||||||
|
+ 'static,
|
||||||
) {
|
) {
|
||||||
self.imp.invoke_procedure_with_callback::<_, AiTaskProcedureResult>(
|
self.imp
|
||||||
"append_ai_text_chunk_and_return",
|
.invoke_procedure_with_callback::<_, AiTaskProcedureResult>(
|
||||||
AppendAiTextChunkAndReturnArgs { input, },
|
"append_ai_text_chunk_and_return",
|
||||||
__callback,
|
AppendAiTextChunkAndReturnArgs { input },
|
||||||
);
|
__callback,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,23 +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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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;
|
||||||
|
|
||||||
#[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)]
|
||||||
struct ApplyChapterProgressionLedgerEntryAndReturnArgs {
|
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;
|
||||||
}
|
}
|
||||||
@@ -28,16 +22,22 @@ 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(&self, input: ChapterProgressionLedgerInput,
|
fn apply_chapter_progression_ledger_entry_and_return(
|
||||||
) {
|
&self,
|
||||||
self.apply_chapter_progression_ledger_entry_and_return_then(input, |_, _| {});
|
input: ChapterProgressionLedgerInput,
|
||||||
|
) {
|
||||||
|
self.apply_chapter_progression_ledger_entry_and_return_then(input, |_, _| {});
|
||||||
}
|
}
|
||||||
|
|
||||||
fn apply_chapter_progression_ledger_entry_and_return_then(
|
fn apply_chapter_progression_ledger_entry_and_return_then(
|
||||||
&self,
|
&self,
|
||||||
input: ChapterProgressionLedgerInput,
|
input: ChapterProgressionLedgerInput,
|
||||||
|
|
||||||
__callback: impl FnOnce(&super::ProcedureEventContext, Result<ChapterProgressionProcedureResult, __sdk::InternalError>) + Send + 'static,
|
__callback: impl FnOnce(
|
||||||
|
&super::ProcedureEventContext,
|
||||||
|
Result<ChapterProgressionProcedureResult, __sdk::InternalError>,
|
||||||
|
) + Send
|
||||||
|
+ 'static,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -46,13 +46,17 @@ impl apply_chapter_progression_ledger_entry_and_return for super::RemoteProcedur
|
|||||||
&self,
|
&self,
|
||||||
input: ChapterProgressionLedgerInput,
|
input: ChapterProgressionLedgerInput,
|
||||||
|
|
||||||
__callback: impl FnOnce(&super::ProcedureEventContext, Result<ChapterProgressionProcedureResult, __sdk::InternalError>) + Send + 'static,
|
__callback: impl FnOnce(
|
||||||
|
&super::ProcedureEventContext,
|
||||||
|
Result<ChapterProgressionProcedureResult, __sdk::InternalError>,
|
||||||
|
) + Send
|
||||||
|
+ 'static,
|
||||||
) {
|
) {
|
||||||
self.imp.invoke_procedure_with_callback::<_, ChapterProgressionProcedureResult>(
|
self.imp
|
||||||
"apply_chapter_progression_ledger_entry_and_return",
|
.invoke_procedure_with_callback::<_, ChapterProgressionProcedureResult>(
|
||||||
ApplyChapterProgressionLedgerEntryAndReturnArgs { input, },
|
"apply_chapter_progression_ledger_entry_and_return",
|
||||||
__callback,
|
ApplyChapterProgressionLedgerEntryAndReturnArgs { input },
|
||||||
);
|
__callback,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
self as __sdk,
|
|
||||||
__lib,
|
|
||||||
__sats,
|
|
||||||
__ws,
|
|
||||||
};
|
|
||||||
|
|
||||||
use super::chapter_progression_ledger_input_type::ChapterProgressionLedgerInput;
|
use super::chapter_progression_ledger_input_type::ChapterProgressionLedgerInput;
|
||||||
|
|
||||||
@@ -19,10 +14,8 @@ 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 {
|
Self::ApplyChapterProgressionLedgerEntry { input: args.input }
|
||||||
input: args.input,
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl __sdk::InModule for ApplyChapterProgressionLedgerEntryArgs {
|
impl __sdk::InModule for ApplyChapterProgressionLedgerEntryArgs {
|
||||||
@@ -40,9 +33,11 @@ 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(&self, input: ChapterProgressionLedgerInput,
|
fn apply_chapter_progression_ledger_entry(
|
||||||
) -> __sdk::Result<()> {
|
&self,
|
||||||
self.apply_chapter_progression_ledger_entry_then(input, |_, _| {})
|
input: ChapterProgressionLedgerInput,
|
||||||
|
) -> __sdk::Result<()> {
|
||||||
|
self.apply_chapter_progression_ledger_entry_then(input, |_, _| {})
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Request that the remote module invoke the reducer `apply_chapter_progression_ledger_entry` to run as soon as possible,
|
/// Request that the remote module invoke the reducer `apply_chapter_progression_ledger_entry` to run as soon as possible,
|
||||||
@@ -70,7 +65,9 @@ impl apply_chapter_progression_ledger_entry for super::RemoteReducers {
|
|||||||
+ Send
|
+ Send
|
||||||
+ 'static,
|
+ 'static,
|
||||||
) -> __sdk::Result<()> {
|
) -> __sdk::Result<()> {
|
||||||
self.imp.invoke_reducer_with_callback(ApplyChapterProgressionLedgerEntryArgs { input, }, callback)
|
self.imp.invoke_reducer_with_callback(
|
||||||
|
ApplyChapterProgressionLedgerEntryArgs { input },
|
||||||
|
callback,
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
self as __sdk,
|
|
||||||
__lib,
|
|
||||||
__sats,
|
|
||||||
__ws,
|
|
||||||
};
|
|
||||||
|
|
||||||
use super::inventory_mutation_input_type::InventoryMutationInput;
|
use super::inventory_mutation_input_type::InventoryMutationInput;
|
||||||
|
|
||||||
@@ -19,10 +14,8 @@ 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 {
|
Self::ApplyInventoryMutation { input: args.input }
|
||||||
input: args.input,
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl __sdk::InModule for ApplyInventoryMutationArgs {
|
impl __sdk::InModule for ApplyInventoryMutationArgs {
|
||||||
@@ -40,9 +33,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,
|
fn apply_inventory_mutation(&self, input: InventoryMutationInput) -> __sdk::Result<()> {
|
||||||
) -> __sdk::Result<()> {
|
self.apply_inventory_mutation_then(input, |_, _| {})
|
||||||
self.apply_inventory_mutation_then(input, |_, _| {})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Request that the remote module invoke the reducer `apply_inventory_mutation` to run as soon as possible,
|
/// Request that the remote module invoke the reducer `apply_inventory_mutation` to run as soon as possible,
|
||||||
@@ -70,7 +62,7 @@ impl apply_inventory_mutation for super::RemoteReducers {
|
|||||||
+ Send
|
+ Send
|
||||||
+ 'static,
|
+ 'static,
|
||||||
) -> __sdk::Result<()> {
|
) -> __sdk::Result<()> {
|
||||||
self.imp.invoke_reducer_with_callback(ApplyInventoryMutationArgs { input, }, callback)
|
self.imp
|
||||||
|
.invoke_reducer_with_callback(ApplyInventoryMutationArgs { input }, callback)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
self as __sdk,
|
|
||||||
__lib,
|
|
||||||
__sats,
|
|
||||||
__ws,
|
|
||||||
};
|
|
||||||
|
|
||||||
use super::quest_signal_apply_input_type::QuestSignalApplyInput;
|
use super::quest_signal_apply_input_type::QuestSignalApplyInput;
|
||||||
|
|
||||||
@@ -19,10 +14,8 @@ 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 {
|
Self::ApplyQuestSignal { input: args.input }
|
||||||
input: args.input,
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl __sdk::InModule for ApplyQuestSignalArgs {
|
impl __sdk::InModule for ApplyQuestSignalArgs {
|
||||||
@@ -40,9 +33,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,
|
fn apply_quest_signal(&self, input: QuestSignalApplyInput) -> __sdk::Result<()> {
|
||||||
) -> __sdk::Result<()> {
|
self.apply_quest_signal_then(input, |_, _| {})
|
||||||
self.apply_quest_signal_then(input, |_, _| {})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Request that the remote module invoke the reducer `apply_quest_signal` to run as soon as possible,
|
/// Request that the remote module invoke the reducer `apply_quest_signal` to run as soon as possible,
|
||||||
@@ -70,7 +62,7 @@ impl apply_quest_signal for super::RemoteReducers {
|
|||||||
+ Send
|
+ Send
|
||||||
+ 'static,
|
+ 'static,
|
||||||
) -> __sdk::Result<()> {
|
) -> __sdk::Result<()> {
|
||||||
self.imp.invoke_reducer_with_callback(ApplyQuestSignalArgs { input, }, callback)
|
self.imp
|
||||||
|
.invoke_reducer_with_callback(ApplyQuestSignalArgs { input }, callback)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,13 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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,13 +13,11 @@ 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,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
self as __sdk,
|
|
||||||
__lib,
|
|
||||||
__sats,
|
|
||||||
__ws,
|
|
||||||
};
|
|
||||||
|
|
||||||
use super::asset_entity_binding_snapshot_type::AssetEntityBindingSnapshot;
|
use super::asset_entity_binding_snapshot_type::AssetEntityBindingSnapshot;
|
||||||
|
|
||||||
@@ -15,12 +10,10 @@ 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,13 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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,14 +13,12 @@ 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,13 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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,18 +13,16 @@ 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.
|
||||||
@@ -41,8 +33,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>,
|
||||||
}
|
}
|
||||||
@@ -61,7 +53,6 @@ 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"),
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -80,10 +71,8 @@ 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,13 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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)]
|
||||||
@@ -16,15 +10,13 @@ pub struct AssetHistoryEntrySnapshot {
|
|||||||
pub asset_object_id: String,
|
pub asset_object_id: String,
|
||||||
pub asset_kind: String,
|
pub asset_kind: String,
|
||||||
pub image_src: String,
|
pub image_src: 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 created_at_micros: i64,
|
pub created_at_micros: i64,
|
||||||
pub updated_at_micros: i64,
|
pub updated_at_micros: i64,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AssetHistoryEntrySnapshot {
|
impl __sdk::InModule for AssetHistoryEntrySnapshot {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,13 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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 +11,6 @@ pub struct AssetHistoryListInput {
|
|||||||
pub limit: u32,
|
pub limit: u32,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AssetHistoryListInput {
|
impl __sdk::InModule for AssetHistoryListInput {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
self as __sdk,
|
|
||||||
__lib,
|
|
||||||
__sats,
|
|
||||||
__ws,
|
|
||||||
};
|
|
||||||
|
|
||||||
use super::asset_history_entry_snapshot_type::AssetHistoryEntrySnapshot;
|
use super::asset_history_entry_snapshot_type::AssetHistoryEntrySnapshot;
|
||||||
|
|
||||||
@@ -15,12 +10,10 @@ use super::asset_history_entry_snapshot_type::AssetHistoryEntrySnapshot;
|
|||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
pub struct AssetHistoryListResult {
|
pub struct AssetHistoryListResult {
|
||||||
pub ok: bool,
|
pub ok: bool,
|
||||||
pub entries: Vec::<AssetHistoryEntrySnapshot>,
|
pub entries: Vec<AssetHistoryEntrySnapshot>,
|
||||||
pub error_message: Option::<String>,
|
pub error_message: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AssetHistoryListResult {
|
impl __sdk::InModule for AssetHistoryListResult {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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)]
|
||||||
@@ -16,12 +11,8 @@ 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,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
self as __sdk,
|
|
||||||
__lib,
|
|
||||||
__sats,
|
|
||||||
__ws,
|
|
||||||
};
|
|
||||||
|
|
||||||
use super::asset_object_upsert_snapshot_type::AssetObjectUpsertSnapshot;
|
use super::asset_object_upsert_snapshot_type::AssetObjectUpsertSnapshot;
|
||||||
|
|
||||||
@@ -15,12 +10,10 @@ 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,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
self as __sdk,
|
|
||||||
__lib,
|
|
||||||
__sats,
|
|
||||||
__ws,
|
|
||||||
};
|
|
||||||
|
|
||||||
use super::asset_object_access_policy_type::AssetObjectAccessPolicy;
|
use super::asset_object_access_policy_type::AssetObjectAccessPolicy;
|
||||||
|
|
||||||
@@ -18,25 +13,23 @@ 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.
|
||||||
@@ -45,14 +38,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>,
|
||||||
@@ -77,7 +70,6 @@ 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"),
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -96,10 +88,8 @@ 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,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
self as __sdk,
|
|
||||||
__lib,
|
|
||||||
__sats,
|
|
||||||
__ws,
|
|
||||||
};
|
|
||||||
|
|
||||||
use super::asset_object_access_policy_type::AssetObjectAccessPolicy;
|
use super::asset_object_access_policy_type::AssetObjectAccessPolicy;
|
||||||
|
|
||||||
@@ -18,20 +13,18 @@ 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,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
self as __sdk,
|
|
||||||
__lib,
|
|
||||||
__sats,
|
|
||||||
__ws,
|
|
||||||
};
|
|
||||||
|
|
||||||
use super::asset_object_access_policy_type::AssetObjectAccessPolicy;
|
use super::asset_object_access_policy_type::AssetObjectAccessPolicy;
|
||||||
|
|
||||||
@@ -18,21 +13,19 @@ 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,23 +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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
self as __sdk,
|
|
||||||
__lib,
|
|
||||||
__sats,
|
|
||||||
__ws,
|
|
||||||
};
|
|
||||||
|
|
||||||
use super::ai_task_procedure_result_type::AiTaskProcedureResult;
|
|
||||||
use super::ai_result_reference_input_type::AiResultReferenceInput;
|
use super::ai_result_reference_input_type::AiResultReferenceInput;
|
||||||
|
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)]
|
||||||
struct AttachAiResultReferenceAndReturnArgs {
|
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;
|
||||||
}
|
}
|
||||||
@@ -28,16 +22,19 @@ 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, |_, _| {});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn attach_ai_result_reference_and_return_then(
|
fn attach_ai_result_reference_and_return_then(
|
||||||
&self,
|
&self,
|
||||||
input: AiResultReferenceInput,
|
input: AiResultReferenceInput,
|
||||||
|
|
||||||
__callback: impl FnOnce(&super::ProcedureEventContext, Result<AiTaskProcedureResult, __sdk::InternalError>) + Send + 'static,
|
__callback: impl FnOnce(
|
||||||
|
&super::ProcedureEventContext,
|
||||||
|
Result<AiTaskProcedureResult, __sdk::InternalError>,
|
||||||
|
) + Send
|
||||||
|
+ 'static,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -46,13 +43,17 @@ impl attach_ai_result_reference_and_return for super::RemoteProcedures {
|
|||||||
&self,
|
&self,
|
||||||
input: AiResultReferenceInput,
|
input: AiResultReferenceInput,
|
||||||
|
|
||||||
__callback: impl FnOnce(&super::ProcedureEventContext, Result<AiTaskProcedureResult, __sdk::InternalError>) + Send + 'static,
|
__callback: impl FnOnce(
|
||||||
|
&super::ProcedureEventContext,
|
||||||
|
Result<AiTaskProcedureResult, __sdk::InternalError>,
|
||||||
|
) + Send
|
||||||
|
+ 'static,
|
||||||
) {
|
) {
|
||||||
self.imp.invoke_procedure_with_callback::<_, AiTaskProcedureResult>(
|
self.imp
|
||||||
"attach_ai_result_reference_and_return",
|
.invoke_procedure_with_callback::<_, AiTaskProcedureResult>(
|
||||||
AttachAiResultReferenceAndReturnArgs { input, },
|
"attach_ai_result_reference_and_return",
|
||||||
__callback,
|
AttachAiResultReferenceAndReturnArgs { input },
|
||||||
);
|
__callback,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,13 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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,18 +11,16 @@ pub struct AuthIdentity {
|
|||||||
pub user_id: String,
|
pub user_id: String,
|
||||||
pub provider: String,
|
pub provider: String,
|
||||||
pub provider_uid: String,
|
pub provider_uid: String,
|
||||||
pub provider_union_id: Option::<String>,
|
pub provider_union_id: Option<String>,
|
||||||
pub phone_e_164: Option::<String>,
|
pub phone_e_164: Option<String>,
|
||||||
pub display_name: Option::<String>,
|
pub display_name: Option<String>,
|
||||||
pub avatar_url: Option::<String>,
|
pub avatar_url: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AuthIdentity {
|
impl __sdk::InModule for AuthIdentity {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// Column accessor struct for the table `AuthIdentity`.
|
/// Column accessor struct for the table `AuthIdentity`.
|
||||||
///
|
///
|
||||||
/// Provides typed access to columns for query building.
|
/// Provides typed access to columns for query building.
|
||||||
@@ -37,10 +29,10 @@ pub struct AuthIdentityCols {
|
|||||||
pub user_id: __sdk::__query_builder::Col<AuthIdentity, String>,
|
pub user_id: __sdk::__query_builder::Col<AuthIdentity, String>,
|
||||||
pub provider: __sdk::__query_builder::Col<AuthIdentity, String>,
|
pub provider: __sdk::__query_builder::Col<AuthIdentity, String>,
|
||||||
pub provider_uid: __sdk::__query_builder::Col<AuthIdentity, String>,
|
pub provider_uid: __sdk::__query_builder::Col<AuthIdentity, String>,
|
||||||
pub provider_union_id: __sdk::__query_builder::Col<AuthIdentity, Option::<String>>,
|
pub provider_union_id: __sdk::__query_builder::Col<AuthIdentity, Option<String>>,
|
||||||
pub phone_e_164: __sdk::__query_builder::Col<AuthIdentity, Option::<String>>,
|
pub phone_e_164: __sdk::__query_builder::Col<AuthIdentity, Option<String>>,
|
||||||
pub display_name: __sdk::__query_builder::Col<AuthIdentity, Option::<String>>,
|
pub display_name: __sdk::__query_builder::Col<AuthIdentity, Option<String>>,
|
||||||
pub avatar_url: __sdk::__query_builder::Col<AuthIdentity, Option::<String>>,
|
pub avatar_url: __sdk::__query_builder::Col<AuthIdentity, Option<String>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl __sdk::__query_builder::HasCols for AuthIdentity {
|
impl __sdk::__query_builder::HasCols for AuthIdentity {
|
||||||
@@ -55,7 +47,6 @@ impl __sdk::__query_builder::HasCols for AuthIdentity {
|
|||||||
phone_e_164: __sdk::__query_builder::Col::new(table_name, "phone_e_164"),
|
phone_e_164: __sdk::__query_builder::Col::new(table_name, "phone_e_164"),
|
||||||
display_name: __sdk::__query_builder::Col::new(table_name, "display_name"),
|
display_name: __sdk::__query_builder::Col::new(table_name, "display_name"),
|
||||||
avatar_url: __sdk::__query_builder::Col::new(table_name, "avatar_url"),
|
avatar_url: __sdk::__query_builder::Col::new(table_name, "avatar_url"),
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -74,10 +65,8 @@ impl __sdk::__query_builder::HasIxCols for AuthIdentity {
|
|||||||
AuthIdentityIxCols {
|
AuthIdentityIxCols {
|
||||||
identity_id: __sdk::__query_builder::IxCol::new(table_name, "identity_id"),
|
identity_id: __sdk::__query_builder::IxCol::new(table_name, "identity_id"),
|
||||||
user_id: __sdk::__query_builder::IxCol::new(table_name, "user_id"),
|
user_id: __sdk::__query_builder::IxCol::new(table_name, "user_id"),
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl __sdk::__query_builder::CanBeLookupTable for AuthIdentity {}
|
impl __sdk::__query_builder::CanBeLookupTable for AuthIdentity {}
|
||||||
|
|
||||||
|
|||||||
@@ -2,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
self as __sdk,
|
|
||||||
__lib,
|
|
||||||
__sats,
|
|
||||||
__ws,
|
|
||||||
};
|
|
||||||
|
|
||||||
use super::auth_store_snapshot_import_record_type::AuthStoreSnapshotImportRecord;
|
use super::auth_store_snapshot_import_record_type::AuthStoreSnapshotImportRecord;
|
||||||
|
|
||||||
@@ -15,12 +10,10 @@ use super::auth_store_snapshot_import_record_type::AuthStoreSnapshotImportRecord
|
|||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
pub struct AuthStoreSnapshotImportProcedureResult {
|
pub struct AuthStoreSnapshotImportProcedureResult {
|
||||||
pub ok: bool,
|
pub ok: bool,
|
||||||
pub record: Option::<AuthStoreSnapshotImportRecord>,
|
pub record: Option<AuthStoreSnapshotImportRecord>,
|
||||||
pub error_message: Option::<String>,
|
pub error_message: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AuthStoreSnapshotImportProcedureResult {
|
impl __sdk::InModule for AuthStoreSnapshotImportProcedureResult {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,13 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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)]
|
||||||
@@ -18,8 +12,6 @@ pub struct AuthStoreSnapshotImportRecord {
|
|||||||
pub imported_refresh_session_count: u32,
|
pub imported_refresh_session_count: u32,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AuthStoreSnapshotImportRecord {
|
impl __sdk::InModule for AuthStoreSnapshotImportRecord {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
self as __sdk,
|
|
||||||
__lib,
|
|
||||||
__sats,
|
|
||||||
__ws,
|
|
||||||
};
|
|
||||||
|
|
||||||
use super::auth_store_snapshot_record_type::AuthStoreSnapshotRecord;
|
use super::auth_store_snapshot_record_type::AuthStoreSnapshotRecord;
|
||||||
|
|
||||||
@@ -15,12 +10,10 @@ use super::auth_store_snapshot_record_type::AuthStoreSnapshotRecord;
|
|||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
pub struct AuthStoreSnapshotProcedureResult {
|
pub struct AuthStoreSnapshotProcedureResult {
|
||||||
pub ok: bool,
|
pub ok: bool,
|
||||||
pub record: Option::<AuthStoreSnapshotRecord>,
|
pub record: Option<AuthStoreSnapshotRecord>,
|
||||||
pub error_message: Option::<String>,
|
pub error_message: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AuthStoreSnapshotProcedureResult {
|
impl __sdk::InModule for AuthStoreSnapshotProcedureResult {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,23 +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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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)]
|
||||||
pub struct AuthStoreSnapshotRecord {
|
pub struct AuthStoreSnapshotRecord {
|
||||||
pub snapshot_json: Option::<String>,
|
pub snapshot_json: Option<String>,
|
||||||
pub updated_at_micros: Option::<i64>,
|
pub updated_at_micros: Option<i64>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AuthStoreSnapshotRecord {
|
impl __sdk::InModule for AuthStoreSnapshotRecord {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,13 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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)]
|
||||||
@@ -18,12 +12,10 @@ pub struct AuthStoreSnapshot {
|
|||||||
pub updated_at: __sdk::Timestamp,
|
pub updated_at: __sdk::Timestamp,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AuthStoreSnapshot {
|
impl __sdk::InModule for AuthStoreSnapshot {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// Column accessor struct for the table `AuthStoreSnapshot`.
|
/// Column accessor struct for the table `AuthStoreSnapshot`.
|
||||||
///
|
///
|
||||||
/// Provides typed access to columns for query building.
|
/// Provides typed access to columns for query building.
|
||||||
@@ -40,7 +32,6 @@ impl __sdk::__query_builder::HasCols for AuthStoreSnapshot {
|
|||||||
snapshot_id: __sdk::__query_builder::Col::new(table_name, "snapshot_id"),
|
snapshot_id: __sdk::__query_builder::Col::new(table_name, "snapshot_id"),
|
||||||
snapshot_json: __sdk::__query_builder::Col::new(table_name, "snapshot_json"),
|
snapshot_json: __sdk::__query_builder::Col::new(table_name, "snapshot_json"),
|
||||||
updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"),
|
updated_at: __sdk::__query_builder::Col::new(table_name, "updated_at"),
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -57,10 +48,8 @@ impl __sdk::__query_builder::HasIxCols for AuthStoreSnapshot {
|
|||||||
fn ix_cols(table_name: &'static str) -> Self::IxCols {
|
fn ix_cols(table_name: &'static str) -> Self::IxCols {
|
||||||
AuthStoreSnapshotIxCols {
|
AuthStoreSnapshotIxCols {
|
||||||
snapshot_id: __sdk::__query_builder::IxCol::new(table_name, "snapshot_id"),
|
snapshot_id: __sdk::__query_builder::IxCol::new(table_name, "snapshot_id"),
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl __sdk::__query_builder::CanBeLookupTable for AuthStoreSnapshot {}
|
impl __sdk::__query_builder::CanBeLookupTable for AuthStoreSnapshot {}
|
||||||
|
|
||||||
|
|||||||
@@ -2,13 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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 +11,6 @@ pub struct AuthStoreSnapshotUpsertInput {
|
|||||||
pub updated_at_micros: i64,
|
pub updated_at_micros: i64,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for AuthStoreSnapshotUpsertInput {
|
impl __sdk::InModule for AuthStoreSnapshotUpsertInput {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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)]
|
||||||
@@ -16,12 +11,8 @@ 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,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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;
|
||||||
@@ -19,7 +14,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,
|
||||||
@@ -30,12 +25,10 @@ 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,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
self as __sdk,
|
|
||||||
__lib,
|
|
||||||
__sats,
|
|
||||||
__ws,
|
|
||||||
};
|
|
||||||
|
|
||||||
use super::battle_state_snapshot_type::BattleStateSnapshot;
|
use super::battle_state_snapshot_type::BattleStateSnapshot;
|
||||||
|
|
||||||
@@ -15,12 +10,10 @@ 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,13 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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)]
|
||||||
@@ -16,8 +10,6 @@ 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,17 +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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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::runtime_item_reward_item_snapshot_type::RuntimeItemRewardItemSnapshot;
|
|
||||||
use super::combat_outcome_type::CombatOutcome;
|
use super::combat_outcome_type::CombatOutcome;
|
||||||
|
use super::runtime_item_reward_item_snapshot_type::RuntimeItemRewardItemSnapshot;
|
||||||
|
|
||||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
@@ -21,7 +16,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,
|
||||||
@@ -33,11 +28,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,
|
||||||
@@ -46,8 +41,6 @@ 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,17 +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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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::runtime_item_reward_item_snapshot_type::RuntimeItemRewardItemSnapshot;
|
|
||||||
use super::combat_outcome_type::CombatOutcome;
|
use super::combat_outcome_type::CombatOutcome;
|
||||||
|
use super::runtime_item_reward_item_snapshot_type::RuntimeItemRewardItemSnapshot;
|
||||||
|
|
||||||
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
|
||||||
#[sats(crate = __lib)]
|
#[sats(crate = __lib)]
|
||||||
@@ -21,7 +16,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,
|
||||||
@@ -33,11 +28,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,
|
||||||
@@ -46,12 +41,10 @@ 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.
|
||||||
@@ -60,7 +53,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>,
|
||||||
@@ -72,11 +65,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>,
|
||||||
@@ -107,7 +100,10 @@ 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(table_name, "last_action_function_id"),
|
last_action_function_id: __sdk::__query_builder::Col::new(
|
||||||
|
table_name,
|
||||||
|
"last_action_function_id",
|
||||||
|
),
|
||||||
last_action_text: __sdk::__query_builder::Col::new(table_name, "last_action_text"),
|
last_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"),
|
||||||
@@ -116,7 +112,6 @@ 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"),
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -137,12 +132,13 @@ 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(table_name, "runtime_session_id"),
|
runtime_session_id: __sdk::__query_builder::IxCol::new(
|
||||||
|
table_name,
|
||||||
|
"runtime_session_id",
|
||||||
|
),
|
||||||
story_session_id: __sdk::__query_builder::IxCol::new(table_name, "story_session_id"),
|
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,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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)]
|
||||||
@@ -18,12 +13,8 @@ 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,23 +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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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;
|
||||||
|
|
||||||
#[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)]
|
||||||
struct BeginStorySessionAndReturnArgs {
|
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;
|
||||||
}
|
}
|
||||||
@@ -28,16 +22,19 @@ 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, |_, _| {});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn begin_story_session_and_return_then(
|
fn begin_story_session_and_return_then(
|
||||||
&self,
|
&self,
|
||||||
input: StorySessionInput,
|
input: StorySessionInput,
|
||||||
|
|
||||||
__callback: impl FnOnce(&super::ProcedureEventContext, Result<StorySessionProcedureResult, __sdk::InternalError>) + Send + 'static,
|
__callback: impl FnOnce(
|
||||||
|
&super::ProcedureEventContext,
|
||||||
|
Result<StorySessionProcedureResult, __sdk::InternalError>,
|
||||||
|
) + Send
|
||||||
|
+ 'static,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -46,13 +43,17 @@ impl begin_story_session_and_return for super::RemoteProcedures {
|
|||||||
&self,
|
&self,
|
||||||
input: StorySessionInput,
|
input: StorySessionInput,
|
||||||
|
|
||||||
__callback: impl FnOnce(&super::ProcedureEventContext, Result<StorySessionProcedureResult, __sdk::InternalError>) + Send + 'static,
|
__callback: impl FnOnce(
|
||||||
|
&super::ProcedureEventContext,
|
||||||
|
Result<StorySessionProcedureResult, __sdk::InternalError>,
|
||||||
|
) + Send
|
||||||
|
+ 'static,
|
||||||
) {
|
) {
|
||||||
self.imp.invoke_procedure_with_callback::<_, StorySessionProcedureResult>(
|
self.imp
|
||||||
"begin_story_session_and_return",
|
.invoke_procedure_with_callback::<_, StorySessionProcedureResult>(
|
||||||
BeginStorySessionAndReturnArgs { input, },
|
"begin_story_session_and_return",
|
||||||
__callback,
|
BeginStorySessionAndReturnArgs { input },
|
||||||
);
|
__callback,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
self as __sdk,
|
|
||||||
__lib,
|
|
||||||
__sats,
|
|
||||||
__ws,
|
|
||||||
};
|
|
||||||
|
|
||||||
use super::story_session_input_type::StorySessionInput;
|
use super::story_session_input_type::StorySessionInput;
|
||||||
|
|
||||||
@@ -19,10 +14,8 @@ 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 {
|
Self::BeginStorySession { input: args.input }
|
||||||
input: args.input,
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl __sdk::InModule for BeginStorySessionArgs {
|
impl __sdk::InModule for BeginStorySessionArgs {
|
||||||
@@ -40,9 +33,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,
|
fn begin_story_session(&self, input: StorySessionInput) -> __sdk::Result<()> {
|
||||||
) -> __sdk::Result<()> {
|
self.begin_story_session_then(input, |_, _| {})
|
||||||
self.begin_story_session_then(input, |_, _| {})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Request that the remote module invoke the reducer `begin_story_session` to run as soon as possible,
|
/// Request that the remote module invoke the reducer `begin_story_session` to run as soon as possible,
|
||||||
@@ -70,7 +62,7 @@ impl begin_story_session for super::RemoteReducers {
|
|||||||
+ Send
|
+ Send
|
||||||
+ 'static,
|
+ 'static,
|
||||||
) -> __sdk::Result<()> {
|
) -> __sdk::Result<()> {
|
||||||
self.imp.invoke_reducer_with_callback(BeginStorySessionArgs { input, }, callback)
|
self.imp
|
||||||
|
.invoke_reducer_with_callback(BeginStorySessionArgs { input }, callback)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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)]
|
||||||
@@ -20,12 +15,8 @@ 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,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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)]
|
||||||
@@ -18,12 +13,8 @@ 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,15 +2,10 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
self as __sdk,
|
|
||||||
__lib,
|
|
||||||
__sats,
|
|
||||||
__ws,
|
|
||||||
};
|
|
||||||
|
|
||||||
use super::big_fish_agent_message_role_type::BigFishAgentMessageRole;
|
|
||||||
use super::big_fish_agent_message_kind_type::BigFishAgentMessageKind;
|
use super::big_fish_agent_message_kind_type::BigFishAgentMessageKind;
|
||||||
|
use super::big_fish_agent_message_role_type::BigFishAgentMessageRole;
|
||||||
|
|
||||||
#[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)]
|
||||||
@@ -23,8 +18,6 @@ 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,15 +2,10 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
self as __sdk,
|
|
||||||
__lib,
|
|
||||||
__sats,
|
|
||||||
__ws,
|
|
||||||
};
|
|
||||||
|
|
||||||
use super::big_fish_agent_message_role_type::BigFishAgentMessageRole;
|
|
||||||
use super::big_fish_agent_message_kind_type::BigFishAgentMessageKind;
|
use super::big_fish_agent_message_kind_type::BigFishAgentMessageKind;
|
||||||
|
use super::big_fish_agent_message_role_type::BigFishAgentMessageRole;
|
||||||
|
|
||||||
#[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)]
|
||||||
@@ -23,12 +18,10 @@ 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.
|
||||||
@@ -51,7 +44,6 @@ 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"),
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -70,10 +62,8 @@ 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,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
self as __sdk,
|
|
||||||
__lib,
|
|
||||||
__sats,
|
|
||||||
__ws,
|
|
||||||
};
|
|
||||||
|
|
||||||
use super::big_fish_anchor_status_type::BigFishAnchorStatus;
|
use super::big_fish_anchor_status_type::BigFishAnchorStatus;
|
||||||
|
|
||||||
@@ -20,8 +15,6 @@ 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,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
self as __sdk,
|
|
||||||
__lib,
|
|
||||||
__sats,
|
|
||||||
__ws,
|
|
||||||
};
|
|
||||||
|
|
||||||
use super::big_fish_anchor_item_type::BigFishAnchorItem;
|
use super::big_fish_anchor_item_type::BigFishAnchorItem;
|
||||||
|
|
||||||
@@ -20,8 +15,6 @@ 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,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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)]
|
||||||
@@ -20,12 +15,8 @@ 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,13 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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)]
|
||||||
@@ -18,11 +12,9 @@ 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,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
self as __sdk,
|
|
||||||
__lib,
|
|
||||||
__sats,
|
|
||||||
__ws,
|
|
||||||
};
|
|
||||||
|
|
||||||
use super::big_fish_asset_kind_type::BigFishAssetKind;
|
use super::big_fish_asset_kind_type::BigFishAssetKind;
|
||||||
|
|
||||||
@@ -17,14 +12,12 @@ 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 asset_url: Option::<String>,
|
pub asset_url: 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,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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)]
|
||||||
@@ -18,12 +13,8 @@ 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,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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;
|
||||||
@@ -18,16 +13,14 @@ 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,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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;
|
||||||
@@ -18,20 +13,18 @@ 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.
|
||||||
@@ -39,10 +32,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>,
|
||||||
}
|
}
|
||||||
@@ -60,7 +53,6 @@ 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"),
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -79,10 +71,8 @@ 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,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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)]
|
||||||
@@ -16,12 +11,8 @@ 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,13 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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)]
|
||||||
@@ -23,8 +17,6 @@ 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,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
self as __sdk,
|
|
||||||
__lib,
|
|
||||||
__sats,
|
|
||||||
__ws,
|
|
||||||
};
|
|
||||||
|
|
||||||
use super::big_fish_creation_stage_type::BigFishCreationStage;
|
use super::big_fish_creation_stage_type::BigFishCreationStage;
|
||||||
|
|
||||||
@@ -21,20 +16,18 @@ 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.
|
||||||
@@ -46,9 +39,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>,
|
||||||
@@ -66,12 +59,17 @@ 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(table_name, "asset_coverage_json"),
|
asset_coverage_json: __sdk::__query_builder::Col::new(
|
||||||
last_assistant_reply: __sdk::__query_builder::Col::new(table_name, "last_assistant_reply"),
|
table_name,
|
||||||
|
"asset_coverage_json",
|
||||||
|
),
|
||||||
|
last_assistant_reply: __sdk::__query_builder::Col::new(
|
||||||
|
table_name,
|
||||||
|
"last_assistant_reply",
|
||||||
|
),
|
||||||
publish_ready: __sdk::__query_builder::Col::new(table_name, "publish_ready"),
|
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"),
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -90,10 +88,8 @@ 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,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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)]
|
||||||
@@ -22,12 +17,8 @@ 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,13 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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)]
|
||||||
@@ -18,8 +12,6 @@ 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,15 +2,10 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
self as __sdk,
|
|
||||||
__lib,
|
|
||||||
__sats,
|
|
||||||
__ws,
|
|
||||||
};
|
|
||||||
|
|
||||||
use super::big_fish_level_blueprint_type::BigFishLevelBlueprint;
|
|
||||||
use super::big_fish_background_blueprint_type::BigFishBackgroundBlueprint;
|
use super::big_fish_background_blueprint_type::BigFishBackgroundBlueprint;
|
||||||
|
use super::big_fish_level_blueprint_type::BigFishLevelBlueprint;
|
||||||
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)]
|
||||||
@@ -20,13 +15,11 @@ 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,13 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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)]
|
||||||
@@ -20,14 +14,12 @@ 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,12 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
self as __sdk,
|
|
||||||
__lib,
|
|
||||||
__sats,
|
|
||||||
__ws,
|
|
||||||
};
|
|
||||||
|
|
||||||
use super::big_fish_creation_stage_type::BigFishCreationStage;
|
use super::big_fish_creation_stage_type::BigFishCreationStage;
|
||||||
|
|
||||||
@@ -16,17 +11,15 @@ use super::big_fish_creation_stage_type::BigFishCreationStage;
|
|||||||
pub struct BigFishMessageFinalizeInput {
|
pub struct BigFishMessageFinalizeInput {
|
||||||
pub session_id: String,
|
pub session_id: String,
|
||||||
pub owner_user_id: String,
|
pub owner_user_id: String,
|
||||||
pub assistant_message_id: Option::<String>,
|
pub assistant_message_id: Option<String>,
|
||||||
pub assistant_reply_text: Option::<String>,
|
pub assistant_reply_text: Option<String>,
|
||||||
pub stage: BigFishCreationStage,
|
pub stage: BigFishCreationStage,
|
||||||
pub progress_percent: u32,
|
pub progress_percent: u32,
|
||||||
pub anchor_pack_json: String,
|
pub anchor_pack_json: String,
|
||||||
pub error_message: Option::<String>,
|
pub error_message: Option<String>,
|
||||||
pub updated_at_micros: i64,
|
pub updated_at_micros: i64,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl __sdk::InModule for BigFishMessageFinalizeInput {
|
impl __sdk::InModule for BigFishMessageFinalizeInput {
|
||||||
type Module = super::RemoteModule;
|
type Module = super::RemoteModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,13 +2,7 @@
|
|||||||
// 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::{
|
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
|
||||||
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)]
|
||||||
@@ -21,8 +15,6 @@ 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user