web-api: type is_stoppable and date_status_processing_expire on conversations.list agent statuses

未关闭 适合新手
#2,900 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
72/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript
领域
api

调研方向

先阅读 scripts/generate-web-api-types.sh 和 slackapi/java-slack-sdk's json-logs/samples/api 中记录的 API 响应。检查 conversations.list 和 users.conversations 示例中的 agent 状态,然后跟进生成流程,了解它们如何定义 AgentStatus。生成的响应类型在两个响应中都包含这两个可选字段,并与 ConversationsHistoryResponse 一致,即为完成。

由索引模型根据 Issue 内容生成。

描述

area:typescript enhancement pkg:web-api
Summary

In #2899, the AgentStatus type in ConversationsListResponse and UsersConversationsResponse has only agent_bot_user_id and status, while ConversationsHistoryResponse already types it with date_status_processing_expire and is_stoppable too. On conversations.list, agent_statuses was any[] before #2899, so code that reads those two fields from a conversations.list agent session no longer compiles.

Expected

AgentStatus in ConversationsListResponse and UsersConversationsResponse matches ConversationsHistoryResponse, with date_status_processing_expire?: number and is_stoppable?: boolean.

Approach

These types are generated by scripts/generate-web-api-types.sh from the recorded responses in slackapi/java-slack-sdk json-logs/samples/api. Once the recorded conversations.list and users.conversations responses include agent statuses with these fields, the next regeneration picks them up.

Raised in review: https://github.com/slackapi/node-slack-sdk/pull/2899#discussion_r4793467957

主要语言
TypeScript
星标
3.4k
派生
693
平均合并
1 天 10 小时
30 天内合并 PR
75

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

slackapi/node-slack-sdk 的其他 Issue

查看 slackapi/node-slack-sdk 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。