Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
feat(types): added signatures for application keys rps limit
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-ep committed Oct 5, 2023
1 parent fe3860e commit 2dd47b0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/types/application-keys.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export interface ApplicationKey extends ApplicationKeyBase, Identifiable {
id: string
client_id: string
client_secret?: string
reserved_rate_limit: number | null
meta: {
timestamps: {
created_at: string
Expand All @@ -17,6 +18,12 @@ export interface ApplicationKey extends ApplicationKeyBase, Identifiable {
}
}

interface MetaReservedRps {
meta: {
total_reserved_rate_limit: number
}
}

export interface ApplicationKeyResponse extends Resource<ApplicationKey> {
links: {
self: string
Expand All @@ -31,7 +38,7 @@ export interface ApplicationKeysEndpoint extends CrudQueryableResource<
never,
never
> {
All(): Promise<ResourcePage<ApplicationKey>>
All(): Promise<ResourcePage<ApplicationKey> & MetaReservedRps>
Create(body: ApplicationKeyBase): Promise<ApplicationKeyResponse>
Delete(id: string): Promise<{}>
}

0 comments on commit 2dd47b0

Please sign in to comment.