Skip to content

Commit 6657c89

Browse files
committed
chore: re-apply manual patches after regen
1 parent cbcb3c5 commit 6657c89

24 files changed

Lines changed: 1161 additions & 1693 deletions

.fernignore

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,17 @@ AGENTS.md
6868
# examples), playwright (make browser), vite + terser (pinned for the .npmrc
6969
# minimum-release-age + strict-peer-deps policy, not used directly), and bump
7070
# @types/node forward to ^20. Swap to package.json.bak before regen.
71-
package.json.bak
71+
package.json
7272

7373
# src/api/resources/manage/resources/v1/resources/projects/resources/keys/client/Client.ts:
7474
# keep manage.v1.projects.keys.create(request?) source-compatible with older
7575
# callers that omit the request body. Swap to .bak before regen.
76-
src/api/resources/manage/resources/v1/resources/projects/resources/keys/client/Client.ts.bak
76+
src/api/resources/manage/resources/v1/resources/projects/resources/keys/client/Client.ts
7777

7878
# src/api/types/CreateKeyV1Request.ts: preserve the old exported
7979
# CreateKeyV1RequestOne alias alongside CreateKeyV1Request. Swap to .bak before
8080
# regen.
81-
src/api/types/CreateKeyV1Request.ts.bak
81+
src/api/types/CreateKeyV1Request.ts
8282

8383
# src/api/resources/agent/resources/v1/types/AgentV1Settings.ts: backward-compat
8484
# patch for the AgentV1Settings.Agent namespace. The 2026-05-06 regen restructured
@@ -92,7 +92,7 @@ src/api/types/CreateKeyV1Request.ts.bak
9292
# want it in types. Mirrors the Python SDK's compat shims for the same regen.
9393
# Regression coverage in tests/unit/compat-aliases.test.ts.
9494
# Swap to .bak before regen.
95-
src/api/resources/agent/resources/v1/types/AgentV1Settings.ts.bak
95+
src/api/resources/agent/resources/v1/types/AgentV1Settings.ts
9696

9797
# src/api/types/DeepgramListenProviderV2.ts: the 2026-06-16 regen replaced the
9898
# `language_hint` (string | string[]) field with `language_hints?: string[]` and
@@ -103,15 +103,15 @@ src/api/resources/agent/resources/v1/types/AgentV1Settings.ts.bak
103103
# SDK's DeepgramListenProviderV2LanguageHint shim. Also re-adds the deprecated
104104
# `language_hint` field (renamed to `language_hints` by the regen) as an optional
105105
# compat field so existing call sites keep compiling. Swap to .bak before regen.
106-
src/api/types/DeepgramListenProviderV2.ts.bak
106+
src/api/types/DeepgramListenProviderV2.ts
107107

108108
# src/api/resources/listen/resources/v2/types/ListenV2CloseStream.ts: the 2026-06-16
109109
# regen corrected the `type` field to the literal "CloseStream" and dropped the
110110
# `ListenV2CloseStream.Type` namespace (which wrongly included "Finalize"/"KeepAlive"
111111
# copied from v1's control-message enum). We restore the `Type` namespace with ONLY
112112
# the valid "CloseStream" value so existing `ListenV2CloseStream.Type` references keep
113113
# compiling without resurrecting the invalid values. Swap to .bak before regen.
114-
src/api/resources/listen/resources/v2/types/ListenV2CloseStream.ts.bak
114+
src/api/resources/listen/resources/v2/types/ListenV2CloseStream.ts
115115

116116
# NOTE: AgentV1SettingsAgentListenProvider.ts was UNFROZEN in the 2026-06-16 regen.
117117
# The generator now emits a type structurally equal to
@@ -124,7 +124,7 @@ src/api/resources/listen/resources/v2/types/ListenV2CloseStream.ts.bak
124124
# `examples/browser/deepgram.js` bundle produced by `make browser-serve`, which
125125
# is .gitignored but not biome-ignored. We restore `useIgnoreFile: true` so the
126126
# generated browser artifact stays out of lint. Swap to .bak before regen.
127-
biome.json.bak
127+
biome.json
128128

129129
# src/api/resources/agent/resources/v1/types/AgentV1SettingsAgentContextListenProvider.ts:
130130
# the 2026-05-14 regen consolidated listen-provider sub-types into top-level
@@ -134,7 +134,7 @@ biome.json.bak
134134
# DeepgramListenProviderV2.LanguageHint so deep imports keep resolving.
135135
# Regression coverage in tests/unit/compat-aliases.test.ts.
136136
# Swap to .bak before regen.
137-
src/api/resources/agent/resources/v1/types/AgentV1SettingsAgentContextListenProvider.ts.bak
137+
src/api/resources/agent/resources/v1/types/AgentV1SettingsAgentContextListenProvider.ts
138138

139139
# src/Client.ts: the 2026-05-14 regen switched the `client.fetch()` passthrough
140140
# helper's default baseUrl from `base` (api.deepgram.com) to `agentRest`
@@ -143,18 +143,18 @@ src/api/resources/agent/resources/v1/types/AgentV1SettingsAgentContextListenProv
143143
# supported in the SDK and should default to the canonical Deepgram REST host.
144144
# Likely a Fern generator artifact — when the upstream fix lands, drop this
145145
# entry. Swap to .bak before regen.
146-
src/Client.ts.bak
146+
src/Client.ts
147147

148148
# src/version.ts is the single source of truth for the SDK version. It carries the
149149
# inline `// x-release-please-version` marker and is the only file release-please
150150
# updates for the version (see .github/release-please-config.json extra-files).
151151
# Fern emits it without the marker, so we freeze it to preserve the marker.
152152
# Swap to .bak before regen.
153-
src/version.ts.bak
153+
src/version.ts
154154

155155
# src/BaseClient.ts is frozen only to keep its one-line patch deriving the SDK
156156
# version from src/version.ts (`import { SDK_VERSION }` + ``@deepgram/sdk/${SDK_VERSION}``)
157157
# instead of Fern's hardcoded version string — so the User-Agent never drifts and
158158
# the version lives in exactly one place. Re-apply that import patch after regen;
159159
# take all of Fern's other BaseClient changes. Swap to .bak before regen.
160-
src/BaseClient.ts.bak
160+
src/BaseClient.ts

biome.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"$schema": "https://biomejs.dev/schemas/2.4.10/schema.json",
33
"root": true,
44
"vcs": {
5-
"enabled": false
5+
"clientKind": "git",
6+
"enabled": true,
7+
"useIgnoreFile": true
68
},
79
"files": {
810
"ignoreUnknown": true,

biome.json.bak

Lines changed: 0 additions & 76 deletions
This file was deleted.

package.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@deepgram/sdk",
3-
"version": "5.5.1",
3+
"version": "5.5.0",
44
"private": false,
55
"repository": {
66
"type": "git",
@@ -538,9 +538,15 @@
538538
"@types/ws": "^8.18.1",
539539
"vitest": "^4.1.1",
540540
"msw": "2.11.2",
541-
"@types/node": "^20.0.0",
541+
"@types/node": "^20.17.57",
542542
"typescript": "~5.9.3",
543-
"@biomejs/biome": "2.4.10"
543+
"@biomejs/biome": "2.4.10",
544+
"@commitlint/cli": "20.5.0",
545+
"@commitlint/config-conventional": "20.0.0",
546+
"tsx": "4.20.6",
547+
"playwright": "1.59.1",
548+
"vite": "6.4.2",
549+
"terser": "5.46.1"
544550
},
545551
"browser": {
546552
"fs": false,

0 commit comments

Comments
 (0)