Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: 🐝 Update SDK - Generate 0.10.0 #50

Merged
merged 1 commit into from
Nov 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
lockVersion: 2.0.0
id: 4fc4737a-135f-4840-8e6d-42a2b2a2884b
management:
docChecksum: f56588fc2d036bcae3411872cb7a4f6b
docChecksum: 957bade817085c900e9e156fe28f22de
docVersion: 1.0.0
speakeasyVersion: 1.422.1
generationVersion: 2.438.15
releaseVersion: 0.9.5
configChecksum: 2ed914345363c8de34fb47a258642372
speakeasyVersion: 1.424.0
generationVersion: 2.445.1
releaseVersion: 0.10.0
configChecksum: f05f5642b3717c2fef64128e2da1d736
repoURL: https://github.com/unkeyed/unkey-go.git
installationURL: https://github.com/unkeyed/unkey-go
features:
go:
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.6
core: 3.5.13
core: 3.5.14
defaultEnabledRetries: 0.2.0
deprecations: 2.81.1
envVarSecurityUsage: 0.3.1
Expand All @@ -28,6 +28,7 @@ features:
responseFormat: 0.1.2
retries: 2.83.0
sdkHooks: 0.1.0
tests: 0.6.0
unions: 2.85.9
generatedFiles:
- .gitattributes
Expand Down Expand Up @@ -333,7 +334,7 @@ examples:
keyId: "key_1234"
responses:
"200":
application/json: {"id": "key_1234", "start": "sk_5j1", "workspaceId": "ws_1234", "apiId": "api_1234", "name": "Customer X", "ownerId": "user_123", "meta": {"roles": ["admin", "user"], "stripeCustomerId": "cus_1234"}, "createdAt": 0, "updatedAt": 0, "expires": 0, "remaining": 1000, "refill": {"interval": "daily", "amount": 100, "lastRefillAt": 100}, "ratelimit": {"async": true, "limit": 10, "duration": 60}, "roles": ["admin", "finance"], "permissions": ["domain.dns.create_record", "finance.read_receipt"], "enabled": true}
application/json: {"id": "key_1234", "start": "sk_5j1", "workspaceId": "ws_1234", "apiId": "api_1234", "name": "Customer X", "ownerId": "user_123", "meta": {"roles": ["admin", "user"], "stripeCustomerId": "cus_1234"}, "createdAt": 0, "updatedAt": 0, "expires": 0, "remaining": 1000, "refill": {"interval": "daily", "amount": 100, "refillDay": 15, "lastRefillAt": 100}, "ratelimit": {"async": true, "limit": 10, "duration": 60}, "roles": ["admin", "finance"], "permissions": ["domain.dns.create_record", "finance.read_receipt"], "enabled": true}
"400":
application/json: {"error": {"code": "BAD_REQUEST", "docs": "https://unkey.dev/docs/api-reference/errors/code/BAD_REQUEST", "message": "<value>", "requestId": "req_1234"}}
"401":
Expand Down Expand Up @@ -371,7 +372,7 @@ examples:
createKey:
speakeasy-default-create-key:
requestBody:
application/json: {"apiId": "api_123", "name": "my key", "externalId": "team_123", "meta": {"billingTier": "PRO", "trialEnds": "2023-06-16T17:16:37.161Z"}, "roles": ["admin", "finance"], "permissions": ["domains.create_record", "say_hello"], "expires": 1623869797161, "remaining": 1000, "refill": {"interval": "daily", "amount": 100}, "ratelimit": {"type": "fast", "limit": 10, "duration": 60000}, "enabled": false}
application/json: {"apiId": "api_123", "name": "my key", "externalId": "team_123", "meta": {"billingTier": "PRO", "trialEnds": "2023-06-16T17:16:37.161Z"}, "roles": ["admin", "finance"], "permissions": ["domains.create_record", "say_hello"], "expires": 1623869797161, "remaining": 1000, "refill": {"interval": "monthly", "amount": 100, "refillDay": 15}, "ratelimit": {"type": "fast", "limit": 10, "duration": 60000}, "enabled": false}
responses:
"200":
application/json: {"keyId": "key_123", "key": "prefix_xxxxxxxxx"}
Expand Down Expand Up @@ -652,7 +653,7 @@ examples:
limit: 100
responses:
"200":
application/json: {"keys": [{"id": "key_1234", "start": "sk_5j1", "workspaceId": "ws_1234", "apiId": "api_1234", "name": "Customer X", "ownerId": "user_123", "meta": {"roles": ["admin", "user"], "stripeCustomerId": "cus_1234"}, "createdAt": 0, "updatedAt": 0, "expires": 0, "remaining": 1000, "refill": {"interval": "daily", "amount": 100, "lastRefillAt": 100}, "ratelimit": {"async": true, "limit": 10, "duration": 60}, "roles": ["admin", "finance"], "permissions": ["domain.dns.create_record", "finance.read_receipt"], "enabled": true}, {"id": "key_1234", "start": "sk_5j1", "workspaceId": "ws_1234", "apiId": "api_1234", "name": "Customer X", "ownerId": "user_123", "meta": {"roles": ["admin", "user"], "stripeCustomerId": "cus_1234"}, "createdAt": 0, "updatedAt": 0, "expires": 0, "remaining": 1000, "refill": {"interval": "daily", "amount": 100, "lastRefillAt": 100}, "ratelimit": {"async": true, "limit": 10, "duration": 60}, "roles": ["admin", "finance"], "permissions": ["domain.dns.create_record", "finance.read_receipt"], "enabled": true}], "cursor": "eyJrZXkiOiJrZXlfMTIzNCJ9", "total": 688970}
application/json: {"keys": [{"id": "key_1234", "start": "sk_5j1", "workspaceId": "ws_1234", "apiId": "api_1234", "name": "Customer X", "ownerId": "user_123", "meta": {"roles": ["admin", "user"], "stripeCustomerId": "cus_1234"}, "createdAt": 0, "updatedAt": 0, "expires": 0, "remaining": 1000, "refill": {"interval": "daily", "amount": 100, "refillDay": 15, "lastRefillAt": 100}, "ratelimit": {"async": true, "limit": 10, "duration": 60}, "roles": ["admin", "finance"], "permissions": ["domain.dns.create_record", "finance.read_receipt"], "enabled": true}, {"id": "key_1234", "start": "sk_5j1", "workspaceId": "ws_1234", "apiId": "api_1234", "name": "Customer X", "ownerId": "user_123", "meta": {"roles": ["admin", "user"], "stripeCustomerId": "cus_1234"}, "createdAt": 0, "updatedAt": 0, "expires": 0, "remaining": 1000, "refill": {"interval": "daily", "amount": 100, "refillDay": 15, "lastRefillAt": 100}, "ratelimit": {"async": true, "limit": 10, "duration": 60}, "roles": ["admin", "finance"], "permissions": ["domain.dns.create_record", "finance.read_receipt"], "enabled": true}], "cursor": "eyJrZXkiOiJrZXlfMTIzNCJ9", "total": 688970}
"400":
application/json: {"error": {"code": "BAD_REQUEST", "docs": "https://unkey.dev/docs/api-reference/errors/code/BAD_REQUEST", "message": "<value>", "requestId": "req_1234"}}
"401":
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: true
go:
version: 0.9.5
version: 0.10.0
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
clientServerStatusCodesAsErrors: true
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
speakeasyVersion: 1.422.1
speakeasyVersion: 1.424.0
sources:
openapi.json:
sourceNamespace: openapi-json
sourceRevisionDigest: sha256:83052d10b562ee373d66b562b62e25ef9cc1b75b88c8fef8e05b48c99efb53d0
sourceBlobDigest: sha256:43668944807ad4c9cb429c37c516be26fe2a14b9165957d22d277e6eee6ed55c
sourceRevisionDigest: sha256:5b4d353e01dd74e0ac9a8b521d71e5c97ffe1a654d77d3d8036b2e783bd08612
sourceBlobDigest: sha256:f03ba20fc32a90e85dacb81cd6f3b52c07e2a8a3dabda2f7186120b67c4d94ef
tags:
- latest
- main
targets:
go:
source: openapi.json
sourceNamespace: openapi-json
sourceRevisionDigest: sha256:83052d10b562ee373d66b562b62e25ef9cc1b75b88c8fef8e05b48c99efb53d0
sourceBlobDigest: sha256:43668944807ad4c9cb429c37c516be26fe2a14b9165957d22d277e6eee6ed55c
sourceRevisionDigest: sha256:5b4d353e01dd74e0ac9a8b521d71e5c97ffe1a654d77d3d8036b2e783bd08612
sourceBlobDigest: sha256:f03ba20fc32a90e85dacb81cd6f3b52c07e2a8a3dabda2f7186120b67c4d94ef
codeSamplesNamespace: openapi-json-code-samples
codeSamplesRevisionDigest: sha256:6120e6bd38b7b13362ae9167c517e492d8afb26c9ca537184ce393ee4b8aa23f
codeSamplesRevisionDigest: sha256:4df0c16b687b1fbf319e382a23a0398699310d4173f21f3a4dfec5f6f7abb2e9
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
* [Server Selection](#server-selection)
* [Custom HTTP Client](#custom-http-client)
* [Authentication](#authentication)
* [Special Types](#special-types)
<!-- End Table of Contents [toc] -->

<!-- Start SDK Installation [installation] -->
Expand Down Expand Up @@ -371,12 +370,6 @@ func main() {
```
<!-- End Authentication [security] -->

<!-- Start Special Types [types] -->
## Special Types


<!-- End Special Types [types] -->

<!-- Start Retries [retries] -->
## Retries

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,4 +258,14 @@ Based on:
### Generated
- [go v0.9.5] .
### Releases
- [Go v0.9.5] https://github.com/unkeyed/unkey-go/releases/tag/v0.9.5 - .
- [Go v0.9.5] https://github.com/unkeyed/unkey-go/releases/tag/v0.9.5 - .

## 2024-11-03 00:32:48
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.424.0 (2.445.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.10.0] .
### Releases
- [Go v0.10.0] https://github.com/unkeyed/unkey-go/releases/tag/v0.10.0 - .
2 changes: 1 addition & 1 deletion docs/models/components/interval.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Interval

Determines the rate at which verifications will be refilled.
Determines the rate at which verifications will be refilled. When 'daily' is set for 'interval' 'refillDay' will be set to null.


## Values
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/key.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
| `UpdatedAt` | **int64* | :heavy_minus_sign: | The unix timestamp in milliseconds when the key was last updated | 0 |
| `Expires` | **int64* | :heavy_minus_sign: | The unix timestamp in milliseconds when the key will expire. If this field is null or undefined, the key is not expiring. | 0 |
| `Remaining` | **int64* | :heavy_minus_sign: | The number of requests that can be made with this key before it becomes invalid. If this field is null or undefined, the key has no request limit. | 1000 |
| `Refill` | [*components.Refill](../../models/components/refill.md) | :heavy_minus_sign: | Unkey allows you to refill remaining verifications on a key on a regular interval. | {<br/>"interval": "daily",<br/>"amount": 10<br/>} |
| `Refill` | [*components.Refill](../../models/components/refill.md) | :heavy_minus_sign: | Unkey allows you to refill remaining verifications on a key on a regular interval. | {<br/>"interval": "monthly",<br/>"amount": 10,<br/>"refillDay": 10<br/>} |
| `Ratelimit` | [*components.Ratelimit](../../models/components/ratelimit.md) | :heavy_minus_sign: | Unkey comes with per-key ratelimiting out of the box. | {<br/>"async": true,<br/>"limit": 10,<br/>"duration": 60<br/>} |
| `Roles` | []*string* | :heavy_minus_sign: | All roles this key belongs to | [<br/>"admin",<br/>"finance"<br/>] |
| `Permissions` | []*string* | :heavy_minus_sign: | All permissions this key has | [<br/>"domain.dns.create_record",<br/>"finance.read_receipt"<br/>] |
Expand Down
Loading
Loading