Skip to content
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
172 changes: 84 additions & 88 deletions go/apps/api/openapi/gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 6 additions & 13 deletions go/apps/api/openapi/openapi-generated.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Code generated by generate_bundle.go; DO NOT EDIT.
# Generated at: 2025-07-24T13:37:52Z
# Generated at: 2025-07-28T10:13:32Z
# Source: openapi-split.yaml

components:
Expand Down Expand Up @@ -1393,18 +1393,8 @@ components:
type: object
additionalProperties: false
required:
- apiId
- key
properties:
apiId:
type: string
minLength: 3
maxLength: 255
pattern: "^[a-zA-Z0-9_]+$"
description: |
The API namespace this key belongs to.
Ensures environment isolation (dev keys can't access prod data).
example: api_1234
key:
type: string
minLength: 1
Expand Down Expand Up @@ -1466,7 +1456,7 @@ components:
meta:
$ref: "#/components/schemas/Meta"
data:
"$ref": "#/components/schemas/KeysVerifyKeyResponseData"
"$ref": "#/components/schemas/V2KeysVerifyKeyResponseData"
additionalProperties: false
V2LivenessResponseBody:
type: object
Expand Down Expand Up @@ -2782,8 +2772,9 @@ components:
minimum: 0
description: Optionally override the duration of the rate limit window duration.
example: 600000
KeysVerifyKeyResponseData:
V2KeysVerifyKeyResponseData:
type: object
additionalProperties: false
properties:
valid:
type: boolean
Expand Down Expand Up @@ -4973,6 +4964,8 @@ paths:
Your root key needs one of:
- `api.*.verify_key` (verify keys in any API)
- `api.<api_id>.verify_key` (verify keys in specific API)

If you are getting a NOT_FOUND error, ensure your root key has the required verify key permissions.
operationId: verifyKey
requestBody:
content:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,15 @@ examples:
apiId: api_1234abcd
key: sk_1234abcdef
withPermissions:
summary: Check permissions
summary: Check permissions
description: Verify key has required permissions
value:
apiId: api_1234abcd
key: sk_1234abcdef
permissions: "documents.read"
required:
- apiId
- key
properties:
apiId:
type: string
minLength: 3
maxLength: 255
pattern: "^[a-zA-Z0-9_]+$"
description: |
The API namespace this key belongs to.
Ensures environment isolation (dev keys can't access prod data).
example: api_1234
key:
type: string
minLength: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ properties:
meta:
$ref: "../../../../common/Meta.yaml"
data:
"$ref": "./KeysVerifyKeyResponseData.yaml"
"$ref": "./V2KeysVerifyKeyResponseData.yaml"
additionalProperties: false
examples:
validKey:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
type: object
additionalProperties: false
properties:
valid:
type: boolean
Expand Down
2 changes: 2 additions & 0 deletions go/apps/api/openapi/spec/paths/v2/keys/verifyKey/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ post:
Your root key needs one of:
- `api.*.verify_key` (verify keys in any API)
- `api.<api_id>.verify_key` (verify keys in specific API)

If you are getting a NOT_FOUND error, ensure your root key has the required verify key permissions.
operationId: verifyKey
x-speakeasy-name-override: verifyKey
security:
Expand Down
Loading