🌐 AI搜索 & 代理 主页
Skip to content

Commit 41666da

Browse files
feat(api): api update (#2378)
1 parent d2ad09f commit 41666da

File tree

3 files changed

+45
-1
lines changed

3 files changed

+45
-1
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 1525
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-baf072b3e0148bf6027b511051fec2b581649ec179c05523cdbf8e7774f389e2.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d44df38b0300879ca2f6cae588a5a8c3fe74cf2df8cd44c35b62ff41f7e255f4.yml

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

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,10 @@ export interface AIGatewayCreateResponse {
168168

169169
rate_limiting_technique: 'fixed' | 'sliding';
170170

171+
authentication?: boolean;
172+
173+
log_management?: number | null;
174+
171175
logpush?: boolean;
172176

173177
logpush_public_key?: string | null;
@@ -201,6 +205,10 @@ export interface AIGatewayUpdateResponse {
201205

202206
rate_limiting_technique: 'fixed' | 'sliding';
203207

208+
authentication?: boolean;
209+
210+
log_management?: number | null;
211+
204212
logpush?: boolean;
205213

206214
logpush_public_key?: string | null;
@@ -234,6 +242,10 @@ export interface AIGatewayListResponse {
234242

235243
rate_limiting_technique: 'fixed' | 'sliding';
236244

245+
authentication?: boolean;
246+
247+
log_management?: number | null;
248+
237249
logpush?: boolean;
238250

239251
logpush_public_key?: string | null;
@@ -267,6 +279,10 @@ export interface AIGatewayDeleteResponse {
267279

268280
rate_limiting_technique: 'fixed' | 'sliding';
269281

282+
authentication?: boolean;
283+
284+
log_management?: number | null;
285+
270286
logpush?: boolean;
271287

272288
logpush_public_key?: string | null;
@@ -300,6 +316,10 @@ export interface AIGatewayGetResponse {
300316

301317
rate_limiting_technique: 'fixed' | 'sliding';
302318

319+
authentication?: boolean;
320+
321+
log_management?: number | null;
322+
303323
logpush?: boolean;
304324

305325
logpush_public_key?: string | null;
@@ -346,6 +366,16 @@ export interface AIGatewayCreateParams {
346366
*/
347367
rate_limiting_technique: 'fixed' | 'sliding';
348368

369+
/**
370+
* Body param:
371+
*/
372+
authentication?: boolean;
373+
374+
/**
375+
* Body param:
376+
*/
377+
log_management?: number | null;
378+
349379
/**
350380
* Body param:
351381
*/
@@ -393,6 +423,16 @@ export interface AIGatewayUpdateParams {
393423
*/
394424
rate_limiting_technique: 'fixed' | 'sliding';
395425

426+
/**
427+
* Body param:
428+
*/
429+
authentication?: boolean;
430+
431+
/**
432+
* Body param:
433+
*/
434+
log_management?: number | null;
435+
396436
/**
397437
* Body param:
398438
*/

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ describe('resource aiGateway', () => {
4040
rate_limiting_interval: 0,
4141
rate_limiting_limit: 0,
4242
rate_limiting_technique: 'fixed',
43+
authentication: true,
44+
log_management: 10000,
4345
logpush: true,
4446
logpush_public_key: 'xxxxxxxxxxxxxxxx',
4547
});
@@ -73,6 +75,8 @@ describe('resource aiGateway', () => {
7375
rate_limiting_interval: 0,
7476
rate_limiting_limit: 0,
7577
rate_limiting_technique: 'fixed',
78+
authentication: true,
79+
log_management: 10000,
7680
logpush: true,
7781
logpush_public_key: 'xxxxxxxxxxxxxxxx',
7882
});

0 commit comments

Comments
 (0)