Skip to content
Open
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
744 changes: 372 additions & 372 deletions api/api.gen.go

Large diffs are not rendered by default.

746 changes: 373 additions & 373 deletions api/client/go/client.gen.go

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions api/openapi.cloud.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23943,7 +23943,7 @@ components:
securitySchemes:
CloudTokenAuth:
type: http
scheme: Bearer
scheme: bearer
description: Cloud API token.
CloudCookieAuth:
type: apiKey
Expand All @@ -23952,7 +23952,7 @@ components:
description: Cloud API web app cookie.
CloudPortalTokenAuth:
type: http
scheme: Bearer
scheme: bearer
description: Cloud consumer portal token.
servers:
- url: https://openmeter.cloud
Expand Down
2 changes: 1 addition & 1 deletion api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24983,7 +24983,7 @@ components:
securitySchemes:
PortalTokenAuth:
type: http
scheme: Bearer
scheme: bearer
description: Consumer portal token.
servers:
- url: https://127.0.0.1
Expand Down
23 changes: 22 additions & 1 deletion api/spec/src/auth.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,25 @@ using TypeSpec.Http;
* Consumer portal token.
*/
@friendlyName("PortalTokenAuth")
model PortalTokenAuth is BearerAuth;
model PortalTokenAuth is LowercaseBearerAuth;

/**
* Bearer authentication (also called token authentication) is an HTTP authentication scheme that involves security tokens called bearer tokens.
* The name “Bearer authentication” can be understood as “give access to the bearer of this token.” The bearer token is a cryptic string, usually generated by the server in response to a login request.
* The client must send this token in the Authorization header when making requests to protected resources:
* ```
* Authorization: Bearer <token>
* ```
*/
@friendlyName("BearerAuth")
model LowercaseBearerAuth {
/**
* Http authentication
*/
type: AuthType.http;

/**
* Bearer auth scheme
*/
scheme: "bearer";
}
4 changes: 2 additions & 2 deletions api/spec/src/cloud/auth.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ using TypeSpec.Http;
* Cloud API token.
*/
@friendlyName("CloudTokenAuth")
model CloudTokenAuth is BearerAuth;
model CloudTokenAuth is LowercaseBearerAuth;

/**
* Cloud API web app cookie.
Expand All @@ -16,4 +16,4 @@ model CloudCookieAuth is ApiKeyAuth<ApiKeyLocation.cookie, "__session">;
* Cloud consumer portal token.
*/
@friendlyName("CloudPortalTokenAuth")
model CloudPortalTokenAuth is BearerAuth;
model CloudPortalTokenAuth is LowercaseBearerAuth;
Loading