rivet-sdk
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseZoom Rivet SDK
Zoom Rivet SDK
Background reference for Zoom Rivet as a JavaScript and TypeScript server framework for Zoom integrations.
Implementation guidance for Zoom Rivet (JavaScript/TypeScript) as a server-side framework for:
- OAuth and token handling
- Webhook event consumption
- Typed REST API endpoint wrappers
- Multi-module server composition
Official docs:
- https://developers.zoom.us/docs/rivet/
- https://developers.zoom.us/docs/rivet/javascript/
- https://zoom.github.io/rivet-javascript/
Reference samples:
作为适用于Zoom集成的JavaScript和TypeScript服务器框架,Zoom Rivet的背景参考资料。
针对Zoom Rivet(JavaScript/TypeScript)作为服务器端框架的实现指南,适用于:
- OAuth与令牌处理
- Webhook事件消费
- 类型化REST API端点封装器
- 多模块服务器组合
官方文档:
- https://developers.zoom.us/docs/rivet/
- https://developers.zoom.us/docs/rivet/javascript/
- https://zoom.github.io/rivet-javascript/
参考示例:
Routing Guardrail
路由指引
- Rivet SDK is a Node.js framework that bundles Zoom auth handling, webhook receivers, and typed API wrappers.
- Rivet is recommended for faster server-side scaffolding, but it is not mandatory.
- At planning start, confirm preference:
Do you want Rivet SDK, or direct OAuth + REST without Rivet?- Use Rivet when the user wants a Node.js server that combines Zoom auth + webhooks + API calls with minimal glue code.
- If the user only needs direct API calls from an existing backend, chain with ../rest-api/SKILL.md.
- If the user is focused on Zoom Team Chat app cards/commands behavior, chain with ../team-chat/SKILL.md.
- If the user needs SDK embed (Meeting SDK/Video SDK client runtime), route to ../meeting-sdk/SKILL.md or ../video-sdk/SKILL.md.
- Rivet SDK是一款Node.js框架,整合了Zoom认证处理、Webhook接收器和类型化API封装器。
- 推荐使用Rivet来加快服务器端脚手架搭建,但并非强制要求。
- 在规划初期,确认偏好:
您希望使用Rivet SDK,还是不使用Rivet的直接OAuth + REST方案?- 当用户需要一个结合Zoom认证+Webhook+API调用且只需极少粘合代码的Node.js服务器时,使用Rivet。
- 如果用户仅需要从现有后端直接调用API,请关联../rest-api/SKILL.md。
- 如果用户专注于Zoom团队聊天应用卡片/命令行为,请关联../team-chat/SKILL.md。
- 如果用户需要SDK嵌入(Meeting SDK/Video SDK客户端运行时),请转向../meeting-sdk/SKILL.md或../video-sdk/SKILL.md。
Quick Links
快速链接
Start here:
- concepts/architecture-and-lifecycle.md
- scenarios/high-level-scenarios.md
- examples/getting-started-pattern.md
- examples/multi-client-pattern.md
- references/rivet-reference-map.md
- references/versioning-and-compatibility.md
- references/samples-validation.md
- references/source-map.md
- references/environment-variables.md
- troubleshooting/common-issues.md
- RUNBOOK.md
- rivet-sdk.md
从以下内容开始:
- concepts/architecture-and-lifecycle.md
- scenarios/high-level-scenarios.md
- examples/getting-started-pattern.md
- examples/multi-client-pattern.md
- references/rivet-reference-map.md
- references/versioning-and-compatibility.md
- references/samples-validation.md
- references/source-map.md
- references/environment-variables.md
- troubleshooting/common-issues.md
- RUNBOOK.md
- rivet-sdk.md
Common Lifecycle Pattern
通用生命周期模式
- Choose modules and auth model per module (Client Credentials, User OAuth, S2S OAuth, Video SDK JWT).
- Instantiate client(s) with credentials, webhook secret, and per-module port.
- Register event handlers (or shortcuts).
webEventConsumer.event(...) - Implement API calls through .
client.endpoints.* - Start receiver(s) and expose webhook endpoint(s) () to Zoom.
/zoom/events - Persist tokens/state for OAuth workloads and enforce signature verification.
- Monitor module-specific failures and rotate secrets/version with changelog cadence.
- 根据每个模块选择模块和认证模型(客户端凭证、用户OAuth、S2S OAuth、Video SDK JWT)。
- 使用凭证、Webhook密钥和每个模块的端口实例化客户端。
- 注册事件处理器(或快捷方式)。
webEventConsumer.event(...) - 通过实现API调用。
client.endpoints.* - 启动接收器并向Zoom暴露Webhook端点()。
/zoom/events - 为OAuth工作负载持久化令牌/状态,并强制执行签名验证。
- 监控特定模块的故障,并按照变更日志节奏轮换密钥/版本。
High-Level Scenarios
高级场景
- Team Chat slash-command bot + Team Chat data API enrichment.
- Multi-module backend (Users + Meetings + Team Chat + Phone) sharing one process.
- Video SDK telemetry backend using module event stream + API surfaces.
videosdk - ISV orchestration layer with tenant-aware token storage and per-module webhooks.
- AWS Lambda webhook processor with Rivet .
AwsLambdaReceiver
See scenarios/high-level-scenarios.md for details.
- 团队聊天斜杠命令机器人 + 团队聊天数据API增强。
- 多模块后端(用户 + 会议 + 团队聊天 + 电话)共享一个进程。
- 使用模块事件流 + API接口的Video SDK遥测后端。
videosdk - 具备租户感知令牌存储和按模块Webhook的ISV编排层。
- 使用Rivet 的AWS Lambda Webhook处理器。
AwsLambdaReceiver
详情请见scenarios/high-level-scenarios.md。
Chaining
关联内容
- OAuth architecture and grant selection: ../oauth/SKILL.md
- API endpoint semantics and request payload details: ../rest-api/SKILL.md
- Team Chat app cards, command and bot UX: ../team-chat/SKILL.md
- Video SDK API-specific behavior and BYOS context: ../video-sdk/SKILL.md
- OAuth架构与授权类型选择:../oauth/SKILL.md
- API端点语义与请求负载详情:../rest-api/SKILL.md
- 团队聊天应用卡片、命令与机器人用户体验:../team-chat/SKILL.md
- Video SDK特定API行为与BYOS上下文:../video-sdk/SKILL.md
Environment Variables
环境变量
- See references/environment-variables.md for standardized keys and where to find each value.
.env
- 标准化密钥及各值的获取位置,请见references/environment-variables.md。
.env
Operations
运维
- RUNBOOK.md - 5-minute preflight and debugging checklist.
- RUNBOOK.md - 5分钟预检与调试清单。