Skip to content

Commit 464c2ee

Browse files
feat: Fix API key request model SDK metadata
1 parent 342f436 commit 464c2ee

5 files changed

Lines changed: 2 additions & 36 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 117
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-54d9016df9730e65881df9f694df4f33620b0c032f177849d36ccc426cd42fa8.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-3b34d85c005a4058ac1faaea092615af577d12cee6e420f102de57339251672d.yml
33
openapi_spec_hash: fad386b8e8712e6639ed9689e9dfc070
4-
config_hash: 58396d6c1fafaf72b26596b9117edf48
4+
config_hash: 0f222358f24700d1811c5d27078a3849

api.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,9 +372,7 @@ Methods:
372372
Types:
373373

374374
- <code><a href="./src/resources/api-keys.ts">APIKey</a></code>
375-
- <code><a href="./src/resources/api-keys.ts">CreateAPIKeyRequest</a></code>
376375
- <code><a href="./src/resources/api-keys.ts">CreatedAPIKey</a></code>
377-
- <code><a href="./src/resources/api-keys.ts">UpdateAPIKeyRequest</a></code>
378376

379377
Methods:
380378

src/client.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ import {
2626
APIKeyUpdateParams,
2727
APIKeys,
2828
APIKeysOffsetPagination,
29-
CreateAPIKeyRequest,
3029
CreatedAPIKey,
31-
UpdateAPIKeyRequest,
3230
} from './resources/api-keys';
3331
import { AppListParams, AppListResponse, AppListResponsesOffsetPagination, Apps } from './resources/apps';
3432
import {
@@ -1133,9 +1131,7 @@ export declare namespace Kernel {
11331131
export {
11341132
APIKeys as APIKeys,
11351133
type APIKey as APIKey,
1136-
type CreateAPIKeyRequest as CreateAPIKeyRequest,
11371134
type CreatedAPIKey as CreatedAPIKey,
1138-
type UpdateAPIKeyRequest as UpdateAPIKeyRequest,
11391135
type APIKeysOffsetPagination as APIKeysOffsetPagination,
11401136
type APIKeyCreateParams as APIKeyCreateParams,
11411137
type APIKeyUpdateParams as APIKeyUpdateParams,

src/resources/api-keys.ts

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -147,23 +147,6 @@ export namespace APIKey {
147147
}
148148
}
149149

150-
export interface CreateAPIKeyRequest {
151-
/**
152-
* API key name (1-255 characters)
153-
*/
154-
name: string;
155-
156-
/**
157-
* Number of days until expiry, up to 3650. Use null for never.
158-
*/
159-
days_to_expire?: number | null;
160-
161-
/**
162-
* Unique project identifier
163-
*/
164-
project_id?: string | null;
165-
}
166-
167150
/**
168151
* API key returned immediately after creation. Includes the plaintext key once.
169152
*/
@@ -174,13 +157,6 @@ export interface CreatedAPIKey extends APIKey {
174157
key: string;
175158
}
176159

177-
export interface UpdateAPIKeyRequest {
178-
/**
179-
* New API key name
180-
*/
181-
name: string;
182-
}
183-
184160
export interface APIKeyCreateParams {
185161
/**
186162
* API key name (1-255 characters)
@@ -210,9 +186,7 @@ export interface APIKeyListParams extends OffsetPaginationParams {}
210186
export declare namespace APIKeys {
211187
export {
212188
type APIKey as APIKey,
213-
type CreateAPIKeyRequest as CreateAPIKeyRequest,
214189
type CreatedAPIKey as CreatedAPIKey,
215-
type UpdateAPIKeyRequest as UpdateAPIKeyRequest,
216190
type APIKeysOffsetPagination as APIKeysOffsetPagination,
217191
type APIKeyCreateParams as APIKeyCreateParams,
218192
type APIKeyUpdateParams as APIKeyUpdateParams,

src/resources/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ export * from './shared';
44
export {
55
APIKeys,
66
type APIKey,
7-
type CreateAPIKeyRequest,
87
type CreatedAPIKey,
9-
type UpdateAPIKeyRequest,
108
type APIKeyCreateParams,
119
type APIKeyUpdateParams,
1210
type APIKeyListParams,

0 commit comments

Comments
 (0)