Skip to content

Commit 5b2d7ea

Browse files
committed
## Go SDK Changes Detected:
* `Unkey.Apis.ListKeys()`: `response.Data.[].Identity.Meta` **Changed** **Breaking** ⚠️ * `Unkey.Identities.GetIdentity()`: `response.Data.Meta` **Changed** **Breaking** ⚠️ * `Unkey.Identities.ListIdentities()`: `response.Data.[].Meta` **Changed** **Breaking** ⚠️ * `Unkey.Identities.UpdateIdentity()`: `response.Data.Meta` **Changed** **Breaking** ⚠️ * `Unkey.Keys.GetKey()`: `response.Data.Identity.Meta` **Changed** **Breaking** ⚠️ * `Unkey.Keys.VerifyKey()`: `response.Data.Identity.Meta` **Changed** **Breaking** ⚠️ * `Unkey.Keys.Whoami()`: `response.Data.Identity.Meta` **Changed** **Breaking** ⚠️
1 parent b8177ac commit 5b2d7ea

File tree

170 files changed

+3300
-1330
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

170 files changed

+3300
-1330
lines changed

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
speakeasyVersion: 1.615.2
1+
speakeasyVersion: 1.636.3
22
sources:
33
api:
44
sourceNamespace: api
5-
sourceRevisionDigest: sha256:2b29d50cb6c702debaeebd9002b0c09e852e91b802bf9403c7c70f89c8b71803
6-
sourceBlobDigest: sha256:cddba09dae51c1f5280e80777202159e984ebff0bb6fdf621630aad4f3957020
5+
sourceRevisionDigest: sha256:49160277eb4d9301ae6e0c0afb072dbd7e78d1eba4b6ebdd5192f857a3256a26
6+
sourceBlobDigest: sha256:af4fa53b36a2aa9157db7ee229d4c5e61201ebee79345469d75600c8bd66f6b7
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1757936620
9+
- speakeasy-sdk-regen-1759796414
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:2b29d50cb6c702debaeebd9002b0c09e852e91b802bf9403c7c70f89c8b71803
24-
sourceBlobDigest: sha256:cddba09dae51c1f5280e80777202159e984ebff0bb6fdf621630aad4f3957020
23+
sourceRevisionDigest: sha256:49160277eb4d9301ae6e0c0afb072dbd7e78d1eba4b6ebdd5192f857a3256a26
24+
sourceBlobDigest: sha256:af4fa53b36a2aa9157db7ee229d4c5e61201ebee79345469d75600c8bd66f6b7
2525
codeSamplesNamespace: api-go-code-samples
26-
codeSamplesRevisionDigest: sha256:84ce2daf3df69a111de8c9033f94284e9d21f1db0800bda5062d4a31b5199b63
26+
codeSamplesRevisionDigest: sha256:cb3eb7bfc92f0a3d05fd681efe14fa930c6e750e474d157c7797174e50a022b1
2727
api-py:
2828
source: api-python
2929
sourceNamespace: api-python

api/go/.speakeasy/gen.lock

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
lockVersion: 2.0.0
22
id: 1e71104d-54d7-4d66-ad20-a43a13855261
33
management:
4-
docChecksum: 7971b462ec1e4feb676e32f5b3fcf2ff
4+
docChecksum: 325f5f52486df37a314c5d3fbeab0a23
55
docVersion: 2.0.0
6-
speakeasyVersion: 1.615.2
7-
generationVersion: 2.698.4
8-
releaseVersion: 2.0.9
9-
configChecksum: 073f75c1ca28933e772bcda4a0701e6d
6+
speakeasyVersion: 1.636.3
7+
generationVersion: 2.723.11
8+
releaseVersion: 2.1.0
9+
configChecksum: f354b33cbceacbda44e03c3f8429c0bb
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.6
17+
core: 3.11.1
1818
defaultEnabledRetries: 0.2.0
1919
envVarSecurityUsage: 0.3.2
2020
globalSecurity: 2.82.12
@@ -24,7 +24,7 @@ features:
2424
ignores: 2.81.1
2525
intellisenseMarkdownSupport: 0.1.0
2626
nameOverrides: 2.81.2
27-
nullables: 0.1.1
27+
nullables: 0.2.1
2828
pagination: 2.82.4
2929
responseFormat: 0.1.2
3030
retries: 2.84.2
@@ -196,7 +196,6 @@ generatedFiles:
196196
- docs/models/components/emptyresponse.md
197197
- docs/models/components/httpmetadata.md
198198
- docs/models/components/identity.md
199-
- docs/models/components/identitymeta.md
200199
- docs/models/components/keycreditsdata.md
201200
- docs/models/components/keycreditsrefill.md
202201
- docs/models/components/keycreditsrefillinterval.md
@@ -342,7 +341,6 @@ generatedFiles:
342341
- docs/sdks/keys/README.md
343342
- docs/sdks/permissions/README.md
344343
- docs/sdks/ratelimit/README.md
345-
- docs/sdks/unkey/README.md
346344
- go.mod
347345
- identities.go
348346
- internal/config/sdkconfiguration.go
@@ -361,13 +359,14 @@ generatedFiles:
361359
- keys.go
362360
- models/apierrors/apierror.go
363361
- models/operations/options.go
362+
- optionalnullable/optionalnullable.go
363+
- optionalnullable/optionalnullable_test.go
364364
- permissions.go
365365
- ratelimit.go
366366
- retry/config.go
367367
- types/bigint.go
368368
- types/date.go
369369
- types/datetime.go
370-
- types/decimal.go
371370
- types/pointers.go
372371
- unkey.go
373372
examples:
@@ -596,7 +595,7 @@ examples:
596595
application/json: {"identity": "user_abc123"}
597596
responses:
598597
"200":
599-
application/json: {"meta": {"requestId": "req_01H9TQPP77V5E48E9SH0BG0ZQX"}, "data": {"id": "id_1234567890abcdef", "externalId": "user_123", "meta": {}, "ratelimits": [{"id": "rl_1234567890abcdef", "name": "requests", "limit": 1000, "duration": 60000, "autoApply": true}]}}
598+
application/json: {"meta": {"requestId": "req_01H9TQPP77V5E48E9SH0BG0ZQX"}, "data": {"id": "id_1234567890abcdef", "externalId": "user_123", "meta": {"email": "[email protected]", "name": "Alice Smith", "plan": "premium"}, "ratelimits": [{"id": "rl_1234567890abcdef", "name": "requests", "limit": 1000, "duration": 60000, "autoApply": true}]}}
600599
missingPermission:
601600
requestBody:
602601
application/json: {"identity": "user_abc123"}
@@ -1305,3 +1304,12 @@ examples:
13051304
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"}}
13061305
examplesVersion: 1.0.2
13071306
generatedTests: {}
1307+
releaseNotes: |
1308+
## Go SDK Changes Detected:
1309+
* `Unkey.Apis.ListKeys()`: `response.Data.[].Identity.Meta` **Changed** **Breaking** :warning:
1310+
* `Unkey.Identities.GetIdentity()`: `response.Data.Meta` **Changed** **Breaking** :warning:
1311+
* `Unkey.Identities.ListIdentities()`: `response.Data.[].Meta` **Changed** **Breaking** :warning:
1312+
* `Unkey.Identities.UpdateIdentity()`: `response.Data.Meta` **Changed** **Breaking** :warning:
1313+
* `Unkey.Keys.GetKey()`: `response.Data.Identity.Meta` **Changed** **Breaking** :warning:
1314+
* `Unkey.Keys.VerifyKey()`: `response.Data.Identity.Meta` **Changed** **Breaking** :warning:
1315+
* `Unkey.Keys.Whoami()`: `response.Data.Identity.Meta` **Changed** **Breaking** :warning:

api/go/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,6 @@ func main() {
258258
* [ListOverrides](docs/sdks/ratelimit/README.md#listoverrides) - List ratelimit overrides
259259
* [SetOverride](docs/sdks/ratelimit/README.md#setoverride) - Set ratelimit override
260260

261-
262261
</details>
263262
<!-- End Available Resources and Operations [operations] -->
264263

@@ -289,7 +288,7 @@ func main() {
289288
)
290289

291290
res, err := s.Identities.ListIdentities(ctx, components.V2IdentitiesListIdentitiesRequestBody{
292-
Limit: unkey.Int64(50),
291+
Limit: unkey.Pointer[int64](50),
293292
})
294293
if err != nil {
295294
log.Fatal(err)

api/go/RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,14 @@ Based on:
3838
### Generated
3939
- [go v2.0.9] api/go
4040
### Releases
41-
- [Go v2.0.9] https://github.com/unkeyed/sdks/releases/tag/api/go/v2.0.9 - api/go
41+
- [Go v2.0.9] https://github.com/unkeyed/sdks/releases/tag/api/go/v2.0.9 - api/go
42+
43+
## 2025-10-13 08:51:56
44+
### Changes
45+
Based on:
46+
- OpenAPI Doc
47+
- Speakeasy CLI 1.636.3 (2.723.11) https://github.com/speakeasy-api/speakeasy
48+
### Generated
49+
- [go v2.1.0] api/go
50+
### Releases
51+
- [Go v2.1.0] https://github.com/unkeyed/sdks/releases/tag/api/go/v2.1.0 - api/go

api/go/apis.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func (s *Apis) CreateAPI(ctx context.Context, request components.V2ApisCreateAPI
7373
BaseURL: baseURL,
7474
Context: ctx,
7575
OperationID: "createApi",
76-
OAuth2Scopes: []string{},
76+
OAuth2Scopes: nil,
7777
SecuritySource: s.sdkConfiguration.Security,
7878
}
7979
bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "Request", "json", `request:"mediaType=application/json"`)
@@ -388,7 +388,7 @@ func (s *Apis) DeleteAPI(ctx context.Context, request components.V2ApisDeleteAPI
388388
BaseURL: baseURL,
389389
Context: ctx,
390390
OperationID: "deleteApi",
391-
OAuth2Scopes: []string{},
391+
OAuth2Scopes: nil,
392392
SecuritySource: s.sdkConfiguration.Security,
393393
}
394394
bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "Request", "json", `request:"mediaType=application/json"`)
@@ -741,7 +741,7 @@ func (s *Apis) GetAPI(ctx context.Context, request components.V2ApisGetAPIReques
741741
BaseURL: baseURL,
742742
Context: ctx,
743743
OperationID: "getApi",
744-
OAuth2Scopes: []string{},
744+
OAuth2Scopes: nil,
745745
SecuritySource: s.sdkConfiguration.Security,
746746
}
747747
bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "Request", "json", `request:"mediaType=application/json"`)
@@ -1081,7 +1081,7 @@ func (s *Apis) ListKeys(ctx context.Context, request components.V2ApisListKeysRe
10811081
BaseURL: baseURL,
10821082
Context: ctx,
10831083
OperationID: "listKeys",
1084-
OAuth2Scopes: []string{},
1084+
OAuth2Scopes: nil,
10851085
SecuritySource: s.sdkConfiguration.Security,
10861086
}
10871087
bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "Request", "json", `request:"mediaType=application/json"`)

api/go/docs/models/components/identity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ |
88
| `ID` | *string* | :heavy_check_mark: | Identity ID |
99
| `ExternalID` | *string* | :heavy_check_mark: | External identity ID |
10-
| `Meta` | [*components.IdentityMeta](../../models/components/identitymeta.md) | :heavy_minus_sign: | Identity metadata |
10+
| `Meta` | map[string]*any* | :heavy_minus_sign: | Identity metadata |
1111
| `Ratelimits` | [][components.RatelimitResponse](../../models/components/ratelimitresponse.md) | :heavy_minus_sign: | Identity ratelimits |

api/go/docs/models/components/identitymeta.md

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

api/go/docs/sdks/apis/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,8 @@ func main() {
268268

269269
res, err := s.Apis.ListKeys(ctx, components.V2ApisListKeysRequestBody{
270270
APIID: "api_1234abcd",
271-
Cursor: unkey.String("key_1234abcd"),
272-
ExternalID: unkey.String("user_1234abcd"),
271+
Cursor: unkey.Pointer("key_1234abcd"),
272+
ExternalID: unkey.Pointer("user_1234abcd"),
273273
})
274274
if err != nil {
275275
log.Fatal(err)

api/go/docs/sdks/identities/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ func main() {
245245
)
246246

247247
res, err := s.Identities.ListIdentities(ctx, components.V2IdentitiesListIdentitiesRequestBody{
248-
Limit: unkey.Int64(50),
248+
Limit: unkey.Pointer[int64](50),
249249
})
250250
if err != nil {
251251
log.Fatal(err)

api/go/docs/sdks/keys/README.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,10 @@ func main() {
219219

220220
res, err := s.Keys.CreateKey(ctx, components.V2KeysCreateKeyRequestBody{
221221
APIID: "api_1234abcd",
222-
Prefix: unkey.String("prod"),
223-
Name: unkey.String("Payment Service Production Key"),
224-
ByteLength: unkey.Int64(24),
225-
ExternalID: unkey.String("user_1234abcd"),
222+
Prefix: unkey.Pointer("prod"),
223+
Name: unkey.Pointer("Payment Service Production Key"),
224+
ByteLength: unkey.Pointer[int64](24),
225+
ExternalID: unkey.Pointer("user_1234abcd"),
226226
Meta: map[string]any{
227227
"plan": "enterprise",
228228
"featureFlags": map[string]any{
@@ -244,21 +244,21 @@ func main() {
244244
"documents.write",
245245
"settings.view",
246246
},
247-
Expires: unkey.Int64(1704067200000),
247+
Expires: unkey.Pointer[int64](1704067200000),
248248
Credits: &components.KeyCreditsData{
249-
Remaining: unkey.Int64(1000),
249+
Remaining: unkey.Pointer[int64](1000),
250250
Refill: &components.KeyCreditsRefill{
251251
Interval: components.KeyCreditsRefillIntervalDaily,
252252
Amount: 1000,
253-
RefillDay: unkey.Int64(15),
253+
RefillDay: unkey.Pointer[int64](15),
254254
},
255255
},
256256
Ratelimits: []components.RatelimitRequest{
257257
components.RatelimitRequest{
258258
Name: "requests",
259259
Limit: 100,
260260
Duration: 60000,
261-
AutoApply: unkey.Bool(true),
261+
AutoApply: unkey.Pointer(true),
262262
},
263263
components.RatelimitRequest{
264264
Name: "heavy_operations",
@@ -892,7 +892,7 @@ func main() {
892892

893893
res, err := s.Keys.UpdateCredits(ctx, components.V2KeysUpdateCreditsRequestBody{
894894
KeyID: "key_2cGKbMxRyIzhCxo1Idjz8q",
895-
Value: unkey.Int64(1000),
895+
Value: unkey.Pointer[int64](1000),
896896
Operation: components.OperationSet,
897897
})
898898
if err != nil {
@@ -969,8 +969,8 @@ func main() {
969969

970970
res, err := s.Keys.UpdateKey(ctx, components.V2KeysUpdateKeyRequestBody{
971971
KeyID: "key_2cGKbMxRyIzhCxo1Idjz8q",
972-
Name: unkey.String("Payment Service Production Key"),
973-
ExternalID: unkey.String("user_912a841d"),
972+
Name: unkey.Pointer("Payment Service Production Key"),
973+
ExternalID: unkey.Pointer("user_912a841d"),
974974
Meta: map[string]any{
975975
"plan": "enterprise",
976976
"limits": map[string]any{
@@ -993,13 +993,13 @@ func main() {
993993
},
994994
"lastBillingDate": "2023-10-15",
995995
},
996-
Expires: unkey.Int64(1704067200000),
996+
Expires: unkey.Pointer[int64](1704067200000),
997997
Credits: &components.UpdateKeyCreditsData{
998-
Remaining: unkey.Int64(1000),
998+
Remaining: unkey.Pointer[int64](1000),
999999
Refill: &components.UpdateKeyCreditsRefill{
10001000
Interval: components.UpdateKeyCreditsRefillIntervalDaily,
10011001
Amount: 1000,
1002-
RefillDay: unkey.Int64(15),
1002+
RefillDay: unkey.Pointer[int64](15),
10031003
},
10041004
},
10051005
Ratelimits: []components.RatelimitRequest{
@@ -1009,7 +1009,7 @@ func main() {
10091009
Duration: 350222,
10101010
},
10111011
},
1012-
Enabled: unkey.Bool(true),
1012+
Enabled: unkey.Pointer(true),
10131013
Roles: []string{
10141014
"api_admin",
10151015
"billing_reader",
@@ -1104,16 +1104,16 @@ func main() {
11041104
"clientVersion=2.3.0",
11051105
"feature=premium",
11061106
},
1107-
Permissions: unkey.String("documents.read AND users.view"),
1107+
Permissions: unkey.Pointer("documents.read AND users.view"),
11081108
Credits: &components.KeysVerifyKeyCredits{
11091109
Cost: 5,
11101110
},
11111111
Ratelimits: []components.KeysVerifyKeyRatelimit{
11121112
components.KeysVerifyKeyRatelimit{
11131113
Name: "tokens",
1114-
Cost: unkey.Int64(2),
1115-
Limit: unkey.Int64(50),
1116-
Duration: unkey.Int64(600000),
1114+
Cost: unkey.Pointer[int64](2),
1115+
Limit: unkey.Pointer[int64](50),
1116+
Duration: unkey.Pointer[int64](600000),
11171117
},
11181118
},
11191119
})

0 commit comments

Comments
 (0)