From d05b9311d8f3b41fc400bd314775c835265faa16 Mon Sep 17 00:00:00 2001 From: Jeremy Daer Date: Fri, 20 Nov 2026 07:20:39 -0800 Subject: [PATCH] Bump hey-sdk/go to v0.36.0 https://github.com/basecamp/hey-sdk/releases/tag/v0.36.0 --- go.mod | 2 +- go.sum | 4 +- internal/mcpserver/model/PROVENANCE.json | 4 +- internal/mcpserver/model/behavior-model.json | 33 +++ internal/mcpserver/model/openapi.json | 205 ++++++++++++++++++- nix/package.nix | 2 +- 6 files changed, 243 insertions(+), 7 deletions(-) diff --git a/go.mod b/go.mod index 91d4e5bf..96a08b71 100644 --- a/go.mod +++ b/go.mod @@ -10,7 +10,7 @@ require ( charm.land/glamour/v2 v2.0.1 charm.land/lipgloss/v2 v2.0.6 github.com/basecamp/actioncable-client/go/v2 v2.0.2 - github.com/basecamp/hey-sdk/go v0.35.1 + github.com/basecamp/hey-sdk/go v0.36.0 github.com/basecamp/mcp v0.0.0-20261119020105-1a6d02c5380a github.com/charmbracelet/x/ansi v0.11.9 github.com/fsnotify/fsnotify v1.10.1 diff --git a/go.sum b/go.sum index f414ba73..eda592cd 100644 --- a/go.sum +++ b/go.sum @@ -91,8 +91,8 @@ github.com/aymerick/douceur v0.2.0 h1:Mv+mAeH1Q+n9Fr+oyamOlAkUNPWPlA8PPGR0QAaYuP github.com/aymerick/douceur v0.2.0/go.mod h1:wlT5vV2O3h55X9m7iVYN0TBM0NH/MmbLnd30/FjWUq4= github.com/basecamp/actioncable-client/go/v2 v2.0.2 h1:h2Sl15gj2lI/EX5E0EUxjyYgf0LF9Gn1zqEUInSrUpc= github.com/basecamp/actioncable-client/go/v2 v2.0.2/go.mod h1:3Y0N9V5LXclT5nQWcPhq/+6rj4eKXgKAX8dx15X8yB8= -github.com/basecamp/hey-sdk/go v0.35.1 h1:azrn9JoilQaQ3QDBtZb4hiROmQFUyEIWWVWFq65wSTw= -github.com/basecamp/hey-sdk/go v0.35.1/go.mod h1:g4+w+Htmntp03iF9L7afzWyPVYeQzxFUYONlw9r4R+s= +github.com/basecamp/hey-sdk/go v0.36.0 h1:E9Kphswzt/730D3acMFrzo2EeSyd947IpNq5aOHskhs= +github.com/basecamp/hey-sdk/go v0.36.0/go.mod h1:g4+w+Htmntp03iF9L7afzWyPVYeQzxFUYONlw9r4R+s= github.com/basecamp/mcp v0.0.0-20261119020105-1a6d02c5380a h1:5SI0hmC3B5wLusmAG917J9HGWnU2JLV+S2Ek8A0ABxk= github.com/basecamp/mcp v0.0.0-20261119020105-1a6d02c5380a/go.mod h1:K3sgTH90CIR6Ed0XPnivIBqNIpw6aeOlcXThBrZ+2gc= github.com/bmatcuk/doublestar v1.1.1/go.mod h1:UD6OnuiIn0yFxxA2le/rnRU1G4RaI4UvFv1sNto9p6w= diff --git a/internal/mcpserver/model/PROVENANCE.json b/internal/mcpserver/model/PROVENANCE.json index 2fefd961..2ea1b4e9 100644 --- a/internal/mcpserver/model/PROVENANCE.json +++ b/internal/mcpserver/model/PROVENANCE.json @@ -1,7 +1,7 @@ { "source": "github.com/basecamp/hey-sdk", - "commit": "8edac1066c638b8f479dba20645802658c59eb26", - "ref": "go/v0.35.1", + "commit": "6c50bd44d711961a40b23850b60e7c036ed7d540", + "ref": "go/v0.36.0", "files": ["behavior-model.json", "openapi.json"], "synced_by": "scripts/sync-mcp-model.sh" } diff --git a/internal/mcpserver/model/behavior-model.json b/internal/mcpserver/model/behavior-model.json index 0614f1c5..fc7dbb83 100644 --- a/internal/mcpserver/model/behavior-model.json +++ b/internal/mcpserver/model/behavior-model.json @@ -2045,6 +2045,24 @@ "unsigned": false, "untrusted_content": false }, + "RestoreEntry": { + "destructive": false, + "idempotent": true, + "no_redirect": false, + "open_world": false, + "readonly": false, + "retry": { + "backoff": "exponential", + "base_delay_ms": 1000, + "max": 2, + "retry_on": [ + 429, + 503 + ] + }, + "unsigned": false, + "untrusted_content": false + }, "RestoreTopic": { "destructive": false, "idempotent": true, @@ -2279,6 +2297,21 @@ "unsigned": false, "untrusted_content": false }, + "UndoTopicSend": { + "destructive": false, + "idempotent": false, + "no_redirect": false, + "open_world": false, + "readonly": false, + "retry": { + "backoff": "exponential", + "base_delay_ms": 1000, + "max": 1, + "retry_on": [] + }, + "unsigned": false, + "untrusted_content": false + }, "UnfilePostings": { "destructive": false, "idempotent": true, diff --git a/internal/mcpserver/model/openapi.json b/internal/mcpserver/model/openapi.json index 998ad8b5..a71cb978 100644 --- a/internal/mcpserver/model/openapi.json +++ b/internal/mcpserver/model/openapi.json @@ -7539,6 +7539,104 @@ "x-hey-untrusted-content": true } }, + "/entries/{entryId}/status/active.json": { + "put": { + "description": "Restore an entry from the trash (Entries::StatusController#active): a trashed draft\nbecomes a draft again, and a trashed message that had been sent or received returns to\nits thread. An entry that is not in the trash is left as it is, so asking twice is\nharmless. HEY first delivers an entry Undo Send still holds, as its other status changes\ndo, so this is not a way to call a send back (UndoTopicSend is).\n\nThe entry alone is restored, never its topic. A draft that was the only entry of its\ntopic took the topic to the trash with it (DeleteDraft), and restoring just the entry\nleaves a draft on a trashed topic, which HEY empties from the trash with the rest:\nrestore that one with RestoreTopic, which brings back the topic and the draft together.\nThis operation is for a draft trashed out of a thread that stayed, which RestoreTopic\nleaves in the trash.\n\nHEY answers with a redirect and no body, 303 to the entry's topic. A generated client\nfollows it and reads the thread; Go's wrapper takes the redirect as the answer.\nTypeScript's client follows no redirect: there the 303 arrives as an error whose status\nis 303, and that status is the restore having gone through. A scoped token needs write,\nand send as well when the draft is scheduled to send, since a draft keeps its schedule\nin the trash.", + "operationId": "RestoreEntry", + "parameters": [ + { + "name": "entryId", + "in": "path", + "schema": { + "type": "integer", + "format": "int64" + }, + "required": true + }, + { + "name": "filtered_account_id", + "in": "query", + "description": "Optional account filter, an id from GetIdentity's accounts[].id. Reads that filter by account narrow to that account. Omit it to leave the filter unset, and what an unfiltered request returns depends on the operation. Some operations ignore it. To choose a sending address, use an operation's explicit sender-selection fields rather than relying on this filter. GetIdentity also lists accounts the filter does not accept, and an id HEY does not recognize or cannot use for this identity can leave the filter unset instead of returning an error.", + "required": false, + "schema": { + "type": "integer", + "format": "int64" + }, + "x-hey-account-scope": true + } + ], + "responses": { + "200": { + "description": "RestoreEntry 200 response" + }, + "401": { + "description": "UnauthorizedError 401 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UnauthorizedErrorResponseContent" + } + } + } + }, + "403": { + "description": "ForbiddenError 403 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ForbiddenErrorResponseContent" + } + } + } + }, + "404": { + "description": "NotFoundError 404 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotFoundErrorResponseContent" + } + } + } + }, + "500": { + "description": "InternalServerError 500 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InternalServerErrorResponseContent" + } + } + } + }, + "503": { + "description": "ServiceUnavailableError 503 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ServiceUnavailableErrorResponseContent" + } + } + } + } + }, + "tags": [ + "Entries" + ], + "x-hey-destructive": false, + "x-hey-open-world": false, + "x-hey-retry": { + "maxAttempts": 2, + "baseDelayMs": 1000, + "backoff": "exponential", + "retryOn": [ + 429, + 503 + ] + }, + "x-hey-untrusted-content": false + } + }, "/entries/{entryId}/status/spam.json": { "put": { "description": "Mark an entry as spam. Denies the sender when every thread from them is already spam.", @@ -12787,6 +12885,111 @@ "x-hey-untrusted-content": false } }, + "/topics/{topicId}/undo_send.json": { + "post": { + "description": "Call back the last message the caller sent on a topic, while Undo Send still holds it\n(Topics::UndoSendsController#create). The message returns to Drafts, unsent. HEY picks\nthe message: the caller's last delayed entry on the topic, which need not be the one a\ncaller has in mind when two were sent to one thread within the delay. A reply that broke\nout into a thread of its own is called back on that thread, the one SentMessage's\ntopic_id names, and returns to the thread it answered.\n\nHEY answers a success with a redirect and no body, 303 to the draft: /messages/{entryId}/edit\nfor a new message, /topics/{topicId}?expanded_draft={entryId} for a reply. That Location\nis the only place HEY names the entry it called back. A generated client follows the\nredirect and reads the draft or its thread, which says the undo went through and not\nwhich entry it was; the Go, Rust, Kotlin and Swift conveniences send it without\nfollowing and answer the entry. TypeScript's client follows no redirect: there the 303\narrives as an error whose status is 303, and that status is the undo having gone through.\nWith nothing left to call back (the delay ran out and the message went, or none was held)\nHEY answers 400 and changes nothing. A scoped token needs write.\n\nNever sent again after a failure: a second undo calls back the next delayed entry.", + "operationId": "UndoTopicSend", + "parameters": [ + { + "name": "topicId", + "in": "path", + "schema": { + "type": "integer", + "format": "int64" + }, + "required": true + }, + { + "name": "filtered_account_id", + "in": "query", + "description": "Optional account filter, an id from GetIdentity's accounts[].id. Reads that filter by account narrow to that account. Omit it to leave the filter unset, and what an unfiltered request returns depends on the operation. Some operations ignore it. To choose a sending address, use an operation's explicit sender-selection fields rather than relying on this filter. GetIdentity also lists accounts the filter does not accept, and an id HEY does not recognize or cannot use for this identity can leave the filter unset instead of returning an error.", + "required": false, + "schema": { + "type": "integer", + "format": "int64" + }, + "x-hey-account-scope": true + } + ], + "responses": { + "200": { + "description": "UndoTopicSend 200 response" + }, + "400": { + "description": "BadRequestError 400 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BadRequestErrorResponseContent" + } + } + } + }, + "401": { + "description": "UnauthorizedError 401 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UnauthorizedErrorResponseContent" + } + } + } + }, + "403": { + "description": "ForbiddenError 403 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ForbiddenErrorResponseContent" + } + } + } + }, + "404": { + "description": "NotFoundError 404 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotFoundErrorResponseContent" + } + } + } + }, + "500": { + "description": "InternalServerError 500 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InternalServerErrorResponseContent" + } + } + } + }, + "503": { + "description": "ServiceUnavailableError 503 response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ServiceUnavailableErrorResponseContent" + } + } + } + } + }, + "tags": [ + "Topics" + ], + "x-hey-destructive": false, + "x-hey-open-world": false, + "x-hey-retry": { + "maxAttempts": 1, + "baseDelayMs": 1000, + "backoff": "exponential", + "retryOn": [] + }, + "x-hey-untrusted-content": false + } + }, "/topics/{topicId}/workflows/{workflowId}/stagings": { "patch": { "description": "Move a staged topic to a workflow stage.", @@ -16823,7 +17026,7 @@ }, "undo_action": { "type": "string", - "description": "Where to POST to call the message back, present only while delayed, and never for a\ntoken narrower than full scope: HEY offers such a token no Undo Send." + "description": "Where to POST to call the message back (UndoTopicSend), present only while delayed,\nand only for a token that can follow it: a scoped token is offered Undo Send when it\nholds write, approved since HEY widened write to cover it." }, "undo_timeout": { "type": "integer", diff --git a/nix/package.nix b/nix/package.nix index 7360ab7c..adf53ee5 100644 --- a/nix/package.nix +++ b/nix/package.nix @@ -18,7 +18,7 @@ buildGoModule.override { inherit go; } (finalAttrs: { # To update: run `make update-nix-hash` (Docker). It rewrites this quoted # value in place, so keep it a string literal rather than lib.fakeHash. - vendorHash = "sha256-HTzwLc9C5b+RY+fvg3i8mPz1fR8CxKkp6wiKHhNceSY="; + vendorHash = "sha256-MrLwWGSaf9kppXPHe5xaqfnT3ELJHseUc3VD6DH0U5Q="; subPackages = [ "cmd/hey" ];