Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(db): regenerate DingTalk sqlc output (#7177)

Multica Eve7e92c58f5394
diff --git a/server/pkg/db/generated/dingtalk.sql.go b/server/pkg/db/generated/dingtalk.sql.go
index 6066a177fb..082a34a742 100644
--- a/server/pkg/db/generated/dingtalk.sql.go
+++ b/server/pkg/db/generated/dingtalk.sql.go
@@ -158,7 +158,6 @@ func (q *Queries) DingTalkGroupRouteMatchesAgent(ctx context.Context, arg DingTa
}
const discoverDingTalkGroupRoute = `-- name: DiscoverDingTalkGroupRoute :one
-
WITH workspace_guard AS MATERIALIZED (
SELECT w.id
FROM workspace w
@@ -220,9 +219,6 @@ type DiscoverDingTalkGroupRouteRow struct {
AgentActive bool `json:"agent_active"`
}
-// DingTalk-specific installation identity operations. The underlying channel_*
-// tables are shared, but these replacement semantics belong to DingTalk's BYO
-// AppKey model and deliberately stay out of the shared channel query surface.
// Persist a group only after the shared inbound router has accepted the @bot
// message and validated the sender's identity/workspace membership. The INSERT
// default is the installation's agent; a later admin reassignment survives
@@ -352,6 +348,7 @@ func (q *Queries) ListDingTalkGroupRoutesByWorkspace(ctx context.Context, worksp
}
const listDingTalkUserBindingsForMember = `-- name: ListDingTalkUserBindingsForMember :many
+
SELECT installation_id, channel_user_id
FROM channel_user_binding
WHERE workspace_id = $1
@@ -370,6 +367,9 @@ type ListDingTalkUserBindingsForMemberRow struct {
ChannelUserID string `json:"channel_user_id"`
}
+// DingTalk-specific installation identity operations. The underlying channel_*
+// tables are shared, but these replacement semantics belong to DingTalk's BYO
+// AppKey model and deliberately stay out of the shared channel query surface.
// Returns only the requesting Multica member's DingTalk identities. The
// installation list is member-visible, so returning every member's staff id
// here would expose staff ID values more broadly than necessary.