Skip to content

Commit 2a87192

Browse files
chore(api): update composite API spec
1 parent 9b6e363 commit 2a87192

File tree

3 files changed

+66
-2
lines changed

3 files changed

+66
-2
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: 1826
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-15982839c3e7b1be15bee16e97c5dcef8397120052303cf3fc3b2b75d9bee219.yml
3-
openapi_spec_hash: 6d2e235e75f6ce217b0b84c07c6f5aac
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4657939509b22fbb5173496eadf2123dd05ffee207d3a2a65fc1081c05ef47bc.yml
3+
openapi_spec_hash: 325116243c29ae9b18a1ebeddda8f24f
44
config_hash: 59212900ef3970ac3c41ca2537fabe7b

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

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,8 @@ export interface AIGatewayCreateResponse {
243243

244244
logpush_public_key?: string | null;
245245

246+
otel?: Array<AIGatewayCreateResponse.Otel> | null;
247+
246248
store_id?: string | null;
247249

248250
stripe?: AIGatewayCreateResponse.Stripe | null;
@@ -277,6 +279,14 @@ export namespace AIGatewayCreateResponse {
277279
}
278280
}
279281

282+
export interface Otel {
283+
authorization: string;
284+
285+
headers: { [key: string]: string };
286+
287+
url: string;
288+
}
289+
280290
export interface Stripe {
281291
authorization: string;
282292

@@ -330,6 +340,8 @@ export interface AIGatewayUpdateResponse {
330340

331341
logpush_public_key?: string | null;
332342

343+
otel?: Array<AIGatewayUpdateResponse.Otel> | null;
344+
333345
store_id?: string | null;
334346

335347
stripe?: AIGatewayUpdateResponse.Stripe | null;
@@ -364,6 +376,14 @@ export namespace AIGatewayUpdateResponse {
364376
}
365377
}
366378

379+
export interface Otel {
380+
authorization: string;
381+
382+
headers: { [key: string]: string };
383+
384+
url: string;
385+
}
386+
367387
export interface Stripe {
368388
authorization: string;
369389

@@ -417,6 +437,8 @@ export interface AIGatewayListResponse {
417437

418438
logpush_public_key?: string | null;
419439

440+
otel?: Array<AIGatewayListResponse.Otel> | null;
441+
420442
store_id?: string | null;
421443

422444
stripe?: AIGatewayListResponse.Stripe | null;
@@ -451,6 +473,14 @@ export namespace AIGatewayListResponse {
451473
}
452474
}
453475

476+
export interface Otel {
477+
authorization: string;
478+
479+
headers: { [key: string]: string };
480+
481+
url: string;
482+
}
483+
454484
export interface Stripe {
455485
authorization: string;
456486

@@ -504,6 +534,8 @@ export interface AIGatewayDeleteResponse {
504534

505535
logpush_public_key?: string | null;
506536

537+
otel?: Array<AIGatewayDeleteResponse.Otel> | null;
538+
507539
store_id?: string | null;
508540

509541
stripe?: AIGatewayDeleteResponse.Stripe | null;
@@ -538,6 +570,14 @@ export namespace AIGatewayDeleteResponse {
538570
}
539571
}
540572

573+
export interface Otel {
574+
authorization: string;
575+
576+
headers: { [key: string]: string };
577+
578+
url: string;
579+
}
580+
541581
export interface Stripe {
542582
authorization: string;
543583

@@ -591,6 +631,8 @@ export interface AIGatewayGetResponse {
591631

592632
logpush_public_key?: string | null;
593633

634+
otel?: Array<AIGatewayGetResponse.Otel> | null;
635+
594636
store_id?: string | null;
595637

596638
stripe?: AIGatewayGetResponse.Stripe | null;
@@ -625,6 +667,14 @@ export namespace AIGatewayGetResponse {
625667
}
626668
}
627669

670+
export interface Otel {
671+
authorization: string;
672+
673+
headers: { [key: string]: string };
674+
675+
url: string;
676+
}
677+
628678
export interface Stripe {
629679
authorization: string;
630680

@@ -771,6 +821,11 @@ export interface AIGatewayUpdateParams {
771821
*/
772822
logpush_public_key?: string | null;
773823

824+
/**
825+
* Body param:
826+
*/
827+
otel?: Array<AIGatewayUpdateParams.Otel> | null;
828+
774829
/**
775830
* Body param:
776831
*/
@@ -811,6 +866,14 @@ export namespace AIGatewayUpdateParams {
811866
}
812867
}
813868

869+
export interface Otel {
870+
authorization: string;
871+
872+
headers: { [key: string]: string };
873+
874+
url: string;
875+
}
876+
814877
export interface Stripe {
815878
authorization: string;
816879

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ describe('resource aiGateway', () => {
8282
log_management_strategy: 'STOP_INSERTING',
8383
logpush: true,
8484
logpush_public_key: 'xxxxxxxxxxxxxxxx',
85+
otel: [{ authorization: 'authorization', headers: { foo: 'string' }, url: 'url' }],
8586
store_id: 'store_id',
8687
stripe: { authorization: 'authorization', usage_events: [{ payload: 'payload' }] },
8788
});

0 commit comments

Comments
 (0)