Skip to content

Commit a5a8121

Browse files
authored
Merge pull request #15 from unkeyed/speakeasy-sdk-regen-1756254031
chore: 🐝 Update SDK - Generate API-GO 2.0.3
2 parents e05d7ba + 0b50b65 commit a5a8121

38 files changed

+327
-102
lines changed

β€Ž.speakeasy/workflow.lockβ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sources:
66
sourceBlobDigest: sha256:cddba09dae51c1f5280e80777202159e984ebff0bb6fdf621630aad4f3957020
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1756254475
9+
- speakeasy-sdk-regen-1756254031
1010
- 2.0.0
1111
api-python:
1212
sourceNamespace: api-python
@@ -20,10 +20,10 @@ targets:
2020
api-go:
2121
source: api
2222
sourceNamespace: api
23-
sourceRevisionDigest: sha256:4d64149507e9582b047c020bf2d234e4b8a54e66d4da6d9c99b1e390c2e351dd
24-
sourceBlobDigest: sha256:db7750be975342c83bdaad2500d0a670973a82aa3663b542d61be9b1a4a807e7
23+
sourceRevisionDigest: sha256:2b29d50cb6c702debaeebd9002b0c09e852e91b802bf9403c7c70f89c8b71803
24+
sourceBlobDigest: sha256:cddba09dae51c1f5280e80777202159e984ebff0bb6fdf621630aad4f3957020
2525
codeSamplesNamespace: api-go-code-samples
26-
codeSamplesRevisionDigest: sha256:b4ffeaa0a6ac670558e26f155c0ed154c29fa2387c999ae94361722b0864d890
26+
codeSamplesRevisionDigest: sha256:155e73ba809c8cde99dba7f8b004c30929a3cfe4bbd3fc86462f5b16aae15877
2727
api-py:
2828
source: api-python
2929
sourceNamespace: api-python

β€Žapi/go/.gitignoreβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.env
2+
.env.local
13
# .gitignore
24
.DS_Store
35
**/.speakeasy/temp/

β€Žapi/go/.speakeasy/gen.lockβ€Ž

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
lockVersion: 2.0.0
22
id: 1e71104d-54d7-4d66-ad20-a43a13855261
33
management:
4-
docChecksum: 2429216e9412a2205c264a18850bba67
4+
docChecksum: 7971b462ec1e4feb676e32f5b3fcf2ff
55
docVersion: 2.0.0
6-
speakeasyVersion: 1.604.2
7-
generationVersion: 2.683.1
8-
releaseVersion: 2.0.2
9-
configChecksum: 856bbb55fc7e73845a218e8f3da27b5c
6+
speakeasyVersion: 1.615.2
7+
generationVersion: 2.698.4
8+
releaseVersion: 2.0.3
9+
configChecksum: 4fa3b6934d12594351db0b124900a874
1010
repoURL: https://github.com/unkeyed/sdks.git
1111
repoSubDirectory: api/go
1212
installationURL: https://github.com/unkeyed/sdks/api/go
1313
features:
1414
go:
1515
additionalDependencies: 0.1.0
1616
constsAndDefaults: 0.1.12
17-
core: 3.9.3
17+
core: 3.9.6
1818
defaultEnabledRetries: 0.2.0
1919
envVarSecurityUsage: 0.3.2
20-
globalSecurity: 2.82.11
20+
globalSecurity: 2.82.12
2121
globalSecurityCallbacks: 0.1.0
2222
globalSecurityFlattening: 0.1.0
2323
globalServerURLs: 2.82.3
@@ -34,6 +34,7 @@ generatedFiles:
3434
- /models/apierrors/badrequesterrorresponse.go
3535
- /models/apierrors/conflicterrorresponse.go
3636
- /models/apierrors/forbiddenerrorresponse.go
37+
- /models/apierrors/goneerrorresponse.go
3738
- /models/apierrors/internalservererrorresponse.go
3839
- /models/apierrors/notfounderrorresponse.go
3940
- /models/apierrors/preconditionfailederrorresponse.go
@@ -56,6 +57,8 @@ generatedFiles:
5657
- /models/components/ratelimitresponse.go
5758
- /models/components/role.go
5859
- /models/components/security.go
60+
- /models/components/updatekeycreditsdata.go
61+
- /models/components/updatekeycreditsrefill.go
5962
- /models/components/v2apiscreateapirequestbody.go
6063
- /models/components/v2apiscreateapiresponsebody.go
6164
- /models/components/v2apiscreateapiresponsedata.go
@@ -182,6 +185,7 @@ generatedFiles:
182185
- docs/models/apierrors/badrequesterrorresponse.md
183186
- docs/models/apierrors/conflicterrorresponse.md
184187
- docs/models/apierrors/forbiddenerrorresponse.md
188+
- docs/models/apierrors/goneerrorresponse.md
185189
- docs/models/apierrors/internalservererrorresponse.md
186190
- docs/models/apierrors/notfounderrorresponse.md
187191
- docs/models/apierrors/preconditionfailederrorresponse.md
@@ -193,9 +197,9 @@ generatedFiles:
193197
- docs/models/components/httpmetadata.md
194198
- docs/models/components/identity.md
195199
- docs/models/components/identitymeta.md
196-
- docs/models/components/interval.md
197200
- docs/models/components/keycreditsdata.md
198201
- docs/models/components/keycreditsrefill.md
202+
- docs/models/components/keycreditsrefillinterval.md
199203
- docs/models/components/keyresponsedata.md
200204
- docs/models/components/keysverifykeycredits.md
201205
- docs/models/components/keysverifykeyratelimit.md
@@ -208,6 +212,9 @@ generatedFiles:
208212
- docs/models/components/ratelimitresponse.md
209213
- docs/models/components/role.md
210214
- docs/models/components/security.md
215+
- docs/models/components/updatekeycreditsdata.md
216+
- docs/models/components/updatekeycreditsrefill.md
217+
- docs/models/components/updatekeycreditsrefillinterval.md
211218
- docs/models/components/v2apiscreateapirequestbody.md
212219
- docs/models/components/v2apiscreateapiresponsebody.md
213220
- docs/models/components/v2apiscreateapiresponsedata.md
@@ -1139,6 +1146,8 @@ examples:
11391146
application/json: {"meta": {"requestId": "req_123"}, "error": {"detail": "Property foo is required but is missing.", "status": 404, "title": "Not Found", "type": "https://unkey.com/docs/errors/unkey/resource/not_found"}}
11401147
"500":
11411148
application/json: {"meta": {"requestId": "req_123"}, "error": {"detail": "Property foo is required but is missing.", "status": 404, "title": "Not Found", "type": "https://unkey.com/docs/errors/unkey/resource/not_found"}}
1149+
"410":
1150+
application/json: {"meta": {"requestId": "req_123"}, "error": {"detail": "Property foo is required but is missing.", "status": 404, "title": "Not Found", "type": "https://unkey.com/docs/errors/unkey/resource/not_found"}}
11421151
ipLimit:
11431152
requestBody:
11441153
application/json: {"namespace": "auth.login", "cost": 5, "duration": 60000, "identifier": "203.0.113.42", "limit": 5}
@@ -1155,6 +1164,8 @@ examples:
11551164
application/json: {"meta": {"requestId": "req_123"}, "error": {"detail": "Property foo is required but is missing.", "status": 404, "title": "Not Found", "type": "https://unkey.com/docs/errors/unkey/resource/not_found"}}
11561165
"500":
11571166
application/json: {"meta": {"requestId": "req_123"}, "error": {"detail": "Property foo is required but is missing.", "status": 404, "title": "Not Found", "type": "https://unkey.com/docs/errors/unkey/resource/not_found"}}
1167+
"410":
1168+
application/json: {"meta": {"requestId": "req_123"}, "error": {"detail": "Property foo is required but is missing.", "status": 404, "title": "Not Found", "type": "https://unkey.com/docs/errors/unkey/resource/not_found"}}
11581169
weightedCost:
11591170
requestBody:
11601171
application/json: {"namespace": "api.heavy_operations", "cost": 5, "duration": 3600000, "identifier": "user_def456", "limit": 50}
@@ -1171,6 +1182,8 @@ examples:
11711182
application/json: {"meta": {"requestId": "req_123"}, "error": {"detail": "Property foo is required but is missing.", "status": 404, "title": "Not Found", "type": "https://unkey.com/docs/errors/unkey/resource/not_found"}}
11721183
"500":
11731184
application/json: {"meta": {"requestId": "req_123"}, "error": {"detail": "Property foo is required but is missing.", "status": 404, "title": "Not Found", "type": "https://unkey.com/docs/errors/unkey/resource/not_found"}}
1185+
"410":
1186+
application/json: {"meta": {"requestId": "req_123"}, "error": {"detail": "Property foo is required but is missing.", "status": 404, "title": "Not Found", "type": "https://unkey.com/docs/errors/unkey/resource/not_found"}}
11741187
allowed:
11751188
requestBody:
11761189
application/json: {"namespace": "sms.sign_up", "cost": 5, "duration": 60000, "identifier": "user_12345", "limit": 1000}
@@ -1292,3 +1305,4 @@ examples:
12921305
application/json: {"meta": {"requestId": "req_123"}, "error": {"detail": "Property foo is required but is missing.", "status": 404, "title": "Not Found", "type": "https://unkey.com/docs/errors/unkey/resource/not_found"}}
12931306
examplesVersion: 1.0.2
12941307
generatedTests: {}
1308+
releaseNotes: "## Go SDK Changes Detected:\n* `Unkey.Keys.UpdateKey()`: \n * `request.Request.Credits` **Changed**\n* `Unkey.Ratelimit.Limit()`: `error.status[410]` **Added**\n"

β€Žapi/go/RELEASES.mdβ€Ž

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,14 @@ Based on:
1818
### Generated
1919
- [go v2.0.2] api/go
2020
### Releases
21-
- [Go v2.0.2] https://github.com/unkeyed/sdks/releases/tag/api/go/v2.0.2 - api/go
21+
- [Go v2.0.2] https://github.com/unkeyed/sdks/releases/tag/api/go/v2.0.2 - api/go
22+
23+
## 2025-09-12 12:38:10
24+
### Changes
25+
Based on:
26+
- OpenAPI Doc
27+
- Speakeasy CLI 1.615.2 (2.698.4) https://github.com/speakeasy-api/speakeasy
28+
### Generated
29+
- [go v2.0.3] api/go
30+
### Releases
31+
- [Go v2.0.3] https://github.com/unkeyed/sdks/releases/tag/api/go/v2.0.3 - api/go
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# GoneErrorResponse
2+
3+
Error response when the requested resource has been soft-deleted and is no longer available. This occurs when:
4+
- The resource has been marked as deleted but still exists in the database
5+
- The resource is intentionally unavailable but could potentially be restored
6+
- The resource cannot be restored through the API or dashboard
7+
8+
To resolve this error, contact support if you need the resource restored.
9+
10+
11+
## Fields
12+
13+
| Field | Type | Required | Description |
14+
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
15+
| `Meta` | [components.Meta](../../models/components/meta.md) | :heavy_check_mark: | Metadata object included in every API response. This provides context about the request and is essential for debugging, audit trails, and support inquiries. The `requestId` is particularly important when troubleshooting issues with the Unkey support team. |
16+
| `Error` | [components.BaseError](../../models/components/baseerror.md) | :heavy_check_mark: | Base error structure following Problem Details for HTTP APIs (RFC 7807). This provides a standardized way to carry machine-readable details of errors in HTTP response content. |

β€Žapi/go/docs/models/components/interval.mdβ€Ž

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

β€Žapi/go/docs/models/components/keycreditsrefill.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ Configuration for automatic credit refill behavior.
77

88
| Field | Type | Required | Description | Example |
99
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
10-
| `Interval` | [components.Interval](../../models/components/interval.md) | :heavy_check_mark: | How often credits are automatically refilled. | daily |
10+
| `Interval` | [components.KeyCreditsRefillInterval](../../models/components/keycreditsrefillinterval.md) | :heavy_check_mark: | How often credits are automatically refilled. | daily |
1111
| `Amount` | *int64* | :heavy_check_mark: | Number of credits to add during each refill cycle. | 1000 |
1212
| `RefillDay` | **int64* | :heavy_minus_sign: | Day of the month for monthly refills (1-31).<br/>Only required when interval is 'monthly'.<br/>For days beyond the month's length, refill occurs on the last day of the month.<br/> | 15 |
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# KeyCreditsRefillInterval
2+
3+
How often credits are automatically refilled.
4+
5+
6+
## Values
7+
8+
| Name | Value |
9+
| --------------------------------- | --------------------------------- |
10+
| `KeyCreditsRefillIntervalDaily` | daily |
11+
| `KeyCreditsRefillIntervalMonthly` | monthly |

0 commit comments

Comments
Β (0)