Skip to content

Commit 6fafbd3

Browse files
qstearnsclaude
andcommitted
fix: enforce MaxLength(36) for Slack app name and remove debug logging
- Change Goa design MaxLength from 60 to 36 for createSlackApp and updateSlackApp name fields, matching server-side validation - Remove debug logging from upload.tsx and assets/impl.go - Keep improved sniffMimeType error message with content type details - Remove deprecated comment from schema.sql - Regenerate SDK Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4eb7eb1 commit 6fafbd3

File tree

19 files changed

+141
-201
lines changed

19 files changed

+141
-201
lines changed

.speakeasy/out.openapi.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13379,7 +13379,7 @@ components:
1337913379
type: string
1338013380
description: Display name for the Slack app
1338113381
minLength: 1
13382-
maxLength: 60
13382+
maxLength: 36
1338313383
system_prompt:
1338413384
type: string
1338513385
description: System prompt for the Slack app
@@ -17924,7 +17924,7 @@ components:
1792417924
type: string
1792517925
description: New display name for the Slack app
1792617926
minLength: 1
17927-
maxLength: 60
17927+
maxLength: 36
1792817928
system_prompt:
1792917929
type: string
1793017930
description: System prompt for the Slack app

.speakeasy/workflow.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@ speakeasyVersion: 1.700.2
22
sources:
33
Gram-Internal:
44
sourceNamespace: gram-api-description
5-
sourceRevisionDigest: sha256:72c1efb94f71f0c60facddc2746b531d78664d524aaf274eb084305dc99ee03f
6-
sourceBlobDigest: sha256:9fc411f5729c6d083561cfd7cc879ae62d53b5eae4ddc12edb49b4b09ba46179
5+
sourceRevisionDigest: sha256:18b4401c56501c36bc65024d3f124153259b4f521fb27df6214848057ec3da2a
6+
sourceBlobDigest: sha256:5c9698f4cef7d019ea542d1a5ea311cae25f6cdc4b891becc0edc56f2b153a77
77
tags:
88
- latest
99
- 0.0.1
1010
targets:
1111
gram-internal:
1212
source: Gram-Internal
1313
sourceNamespace: gram-api-description
14-
sourceRevisionDigest: sha256:72c1efb94f71f0c60facddc2746b531d78664d524aaf274eb084305dc99ee03f
15-
sourceBlobDigest: sha256:9fc411f5729c6d083561cfd7cc879ae62d53b5eae4ddc12edb49b4b09ba46179
14+
sourceRevisionDigest: sha256:18b4401c56501c36bc65024d3f124153259b4f521fb27df6214848057ec3da2a
15+
sourceBlobDigest: sha256:5c9698f4cef7d019ea542d1a5ea311cae25f6cdc4b891becc0edc56f2b153a77
1616
codeSamplesNamespace: gram-api-description-typescript-code-samples
1717
codeSamplesRevisionDigest: sha256:68f704bdf8ef8132bf3f1380927f943b8de07ea66f9bd466759a598b72d0a05d
1818
workflow:

client/dashboard/src/components/upload.tsx

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,6 @@ export function useAssetImageUploadHandler(
1313
const { fetch } = useFetcher();
1414

1515
return async (file: File) => {
16-
console.log(
17-
"[upload] file:",
18-
file.name,
19-
"type:",
20-
file.type,
21-
"size:",
22-
file.size,
23-
);
24-
2516
const res = await fetch("/rpc/assets.uploadImage", {
2617
method: "POST",
2718
body: file,
@@ -31,12 +22,8 @@ export function useAssetImageUploadHandler(
3122
},
3223
});
3324

34-
console.log("[upload] response status:", res.status, res.statusText);
35-
3625
if (!res.ok) {
37-
const body = await res.text();
38-
console.error("[upload] error body:", body);
39-
throw new Error(`Upload failed: ${res.status} ${body}`);
26+
throw new Error("Upload failed");
4027
}
4128

4229
const assetResult: UploadImageResult = await res.json();

client/sdk/.speakeasy/gen.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/sdk/.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/sdk/jsr.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/sdk/package.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/sdk/src/lib/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
5959
export const SDK_METADATA = {
6060
language: "typescript",
6161
openapiDocVersion: "0.0.1",
62-
sdkVersion: "0.27.12",
62+
sdkVersion: "0.27.13",
6363
genVersion: "2.801.2",
64-
userAgent: "speakeasy-sdk/typescript 0.27.12 2.801.2 0.0.1 @gram/client",
64+
userAgent: "speakeasy-sdk/typescript 0.27.13 2.801.2 0.0.1 @gram/client",
6565
} as const;

server/database/schema.sql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,6 @@ CREATE TABLE IF NOT EXISTS chat_resolution_messages (
867867
CONSTRAINT chat_resolution_messages_message_id_fkey FOREIGN KEY (message_id) REFERENCES chat_messages(id) ON DELETE CASCADE
868868
);
869869

870-
-- Deprecated: kept for backwards compatibility; new code uses slack_apps.
871870
CREATE TABLE IF NOT EXISTS slack_app_connections (
872871
slack_team_id TEXT NOT NULL,
873872
organization_id TEXT NOT NULL,

server/design/slack/design.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ var _ = Service("slack", func() {
146146
security.ProjectPayload()
147147
Attribute("name", String, "Display name for the Slack app", func() {
148148
MinLength(1)
149-
MaxLength(60)
149+
MaxLength(36)
150150
})
151151
Attribute("toolset_ids", ArrayOf(String), "Toolset IDs to attach to this app")
152152
Attribute("system_prompt", String, "System prompt for the Slack app")
@@ -255,7 +255,7 @@ var _ = Service("slack", func() {
255255
})
256256
Attribute("name", String, "New display name for the Slack app", func() {
257257
MinLength(1)
258-
MaxLength(60)
258+
MaxLength(36)
259259
})
260260
Attribute("system_prompt", String, "System prompt for the Slack app")
261261
Attribute("icon_asset_id", String, "Asset ID for the app icon", func() {

0 commit comments

Comments
 (0)