Skip to content

Commit 455b40f

Browse files
feat(api): api update
1 parent 4630ec7 commit 455b40f

File tree

4 files changed

+28
-6
lines changed

4 files changed

+28
-6
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1793
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c56ab457f4ea2aab2ad3b66f82c677c8196d5ad1e7fb4874579b9d7b2355a26c.yml
3-
openapi_spec_hash: 7cf4fecd0d141df5ab7d1e3d98c1a407
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-88044265dcef2c68ec26e486f2a6eb3b846e85b338387f3d623f1e5c5ccee8d2.yml
3+
openapi_spec_hash: 65aa487039344e9b4f8a2e3ef908f93c
44
config_hash: 04c3e87def66bed3001640fca84ff9c5

src/resources/ai-gateway/ai-gateway.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,8 @@ export interface AIGatewayCreateResponse {
240240
logpush?: boolean;
241241

242242
logpush_public_key?: string | null;
243+
244+
store_id?: string | null;
243245
}
244246

245247
export interface AIGatewayUpdateResponse {
@@ -279,6 +281,8 @@ export interface AIGatewayUpdateResponse {
279281
logpush?: boolean;
280282

281283
logpush_public_key?: string | null;
284+
285+
store_id?: string | null;
282286
}
283287

284288
export interface AIGatewayListResponse {
@@ -318,6 +322,8 @@ export interface AIGatewayListResponse {
318322
logpush?: boolean;
319323

320324
logpush_public_key?: string | null;
325+
326+
store_id?: string | null;
321327
}
322328

323329
export interface AIGatewayDeleteResponse {
@@ -357,6 +363,8 @@ export interface AIGatewayDeleteResponse {
357363
logpush?: boolean;
358364

359365
logpush_public_key?: string | null;
366+
367+
store_id?: string | null;
360368
}
361369

362370
export interface AIGatewayGetResponse {
@@ -396,6 +404,8 @@ export interface AIGatewayGetResponse {
396404
logpush?: boolean;
397405

398406
logpush_public_key?: string | null;
407+
408+
store_id?: string | null;
399409
}
400410

401411
export interface AIGatewayCreateParams {
@@ -525,6 +535,11 @@ export interface AIGatewayUpdateParams {
525535
* Body param:
526536
*/
527537
logpush_public_key?: string | null;
538+
539+
/**
540+
* Body param:
541+
*/
542+
store_id?: string | null;
528543
}
529544

530545
export interface AIGatewayListParams extends V4PagePaginationArrayParams {

src/resources/ai-gateway/logs.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ export namespace LogListParams {
408408
| 'created_at'
409409
| 'request_content_type'
410410
| 'response_content_type'
411+
| 'request_type'
411412
| 'success'
412413
| 'cached'
413414
| 'provider'
@@ -420,11 +421,13 @@ export namespace LogListParams {
420421
| 'duration'
421422
| 'feedback'
422423
| 'event_id'
423-
| 'request_type'
424424
| 'metadata.key'
425425
| 'metadata.value'
426426
| 'prompts.prompt_id'
427-
| 'prompts.version_id';
427+
| 'prompts.version_id'
428+
| 'authentication'
429+
| 'wholesale'
430+
| 'compatibilityMode';
428431

429432
operator: 'eq' | 'neq' | 'contains' | 'lt' | 'gt';
430433

@@ -477,6 +480,7 @@ export namespace LogDeleteParams {
477480
| 'created_at'
478481
| 'request_content_type'
479482
| 'response_content_type'
483+
| 'request_type'
480484
| 'success'
481485
| 'cached'
482486
| 'provider'
@@ -489,11 +493,13 @@ export namespace LogDeleteParams {
489493
| 'duration'
490494
| 'feedback'
491495
| 'event_id'
492-
| 'request_type'
493496
| 'metadata.key'
494497
| 'metadata.value'
495498
| 'prompts.prompt_id'
496-
| 'prompts.version_id';
499+
| 'prompts.version_id'
500+
| 'authentication'
501+
| 'wholesale'
502+
| 'compatibilityMode';
497503

498504
operator: 'eq' | 'neq' | 'contains' | 'lt' | 'gt';
499505

tests/api-resources/ai-gateway/ai-gateway.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ describe('resource aiGateway', () => {
8181
log_management_strategy: 'STOP_INSERTING',
8282
logpush: true,
8383
logpush_public_key: 'xxxxxxxxxxxxxxxx',
84+
store_id: 'store_id',
8485
});
8586
});
8687

0 commit comments

Comments
 (0)