Skip to content

Commit 87ce3eb

Browse files
stainless-app[bot]meorphis
authored andcommitted
feat(api): api update (#2309)
1 parent eb28cc2 commit 87ce3eb

File tree

7 files changed

+83
-37
lines changed

7 files changed

+83
-37
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: 1488
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-fee9d85436424e5c77534fd3dcd19c5ea9719f4a4ad5bad168489377c7c4c09d.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ec93436d15bbd89482ee65b633607110b8dda7c4955138041022dbf71a0c0cfb.yml

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

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@ export interface AIGatewayCreateResponse {
146146
*/
147147
id: string;
148148

149+
account_id: string;
150+
151+
account_tag: string;
152+
149153
cache_invalidate_on_update: boolean;
150154

151155
cache_ttl: number | null;
@@ -154,6 +158,8 @@ export interface AIGatewayCreateResponse {
154158

155159
created_at: string;
156160

161+
internal_id: string;
162+
157163
modified_at: string;
158164

159165
rate_limiting_interval: number | null;
@@ -173,6 +179,10 @@ export interface AIGatewayUpdateResponse {
173179
*/
174180
id: string;
175181

182+
account_id: string;
183+
184+
account_tag: string;
185+
176186
cache_invalidate_on_update: boolean;
177187

178188
cache_ttl: number | null;
@@ -181,6 +191,8 @@ export interface AIGatewayUpdateResponse {
181191

182192
created_at: string;
183193

194+
internal_id: string;
195+
184196
modified_at: string;
185197

186198
rate_limiting_interval: number | null;
@@ -200,6 +212,10 @@ export interface AIGatewayListResponse {
200212
*/
201213
id: string;
202214

215+
account_id: string;
216+
217+
account_tag: string;
218+
203219
cache_invalidate_on_update: boolean;
204220

205221
cache_ttl: number | null;
@@ -208,6 +224,8 @@ export interface AIGatewayListResponse {
208224

209225
created_at: string;
210226

227+
internal_id: string;
228+
211229
modified_at: string;
212230

213231
rate_limiting_interval: number | null;
@@ -227,6 +245,10 @@ export interface AIGatewayDeleteResponse {
227245
*/
228246
id: string;
229247

248+
account_id: string;
249+
250+
account_tag: string;
251+
230252
cache_invalidate_on_update: boolean;
231253

232254
cache_ttl: number | null;
@@ -235,6 +257,8 @@ export interface AIGatewayDeleteResponse {
235257

236258
created_at: string;
237259

260+
internal_id: string;
261+
238262
modified_at: string;
239263

240264
rate_limiting_interval: number | null;
@@ -254,6 +278,10 @@ export interface AIGatewayGetResponse {
254278
*/
255279
id: string;
256280

281+
account_id: string;
282+
283+
account_tag: string;
284+
257285
cache_invalidate_on_update: boolean;
258286

259287
cache_ttl: number | null;
@@ -262,6 +290,8 @@ export interface AIGatewayGetResponse {
262290

263291
created_at: string;
264292

293+
internal_id: string;
294+
265295
modified_at: string;
266296

267297
rate_limiting_interval: number | null;
@@ -380,16 +410,6 @@ export interface AIGatewayListParams extends V4PagePaginationArrayParams {
380410
*/
381411
account_id: string;
382412

383-
/**
384-
* Query param: Order By Column Name
385-
*/
386-
order_by?: string;
387-
388-
/**
389-
* Query param: Order By Direction
390-
*/
391-
order_by_direction?: 'asc' | 'desc';
392-
393413
/**
394414
* Query param: Search by id
395415
*/

src/resources/ai-gateway/datasets.ts

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ export class DatasetListResponsesV4PagePaginationArray extends V4PagePaginationA
9898
export interface DatasetCreateResponse {
9999
id: string;
100100

101+
account_id: string;
102+
103+
account_tag: string;
104+
101105
created_at: string;
102106

103107
enable: boolean;
@@ -140,6 +144,10 @@ export namespace DatasetCreateResponse {
140144
export interface DatasetUpdateResponse {
141145
id: string;
142146

147+
account_id: string;
148+
149+
account_tag: string;
150+
143151
created_at: string;
144152

145153
enable: boolean;
@@ -182,6 +190,10 @@ export namespace DatasetUpdateResponse {
182190
export interface DatasetListResponse {
183191
id: string;
184192

193+
account_id: string;
194+
195+
account_tag: string;
196+
185197
created_at: string;
186198

187199
enable: boolean;
@@ -224,6 +236,10 @@ export namespace DatasetListResponse {
224236
export interface DatasetDeleteResponse {
225237
id: string;
226238

239+
account_id: string;
240+
241+
account_tag: string;
242+
227243
created_at: string;
228244

229245
enable: boolean;
@@ -266,6 +282,10 @@ export namespace DatasetDeleteResponse {
266282
export interface DatasetGetResponse {
267283
id: string;
268284

285+
account_id: string;
286+
287+
account_tag: string;
288+
269289
created_at: string;
270290

271291
enable: boolean;
@@ -411,16 +431,6 @@ export interface DatasetListParams extends V4PagePaginationArrayParams {
411431
*/
412432
name?: string;
413433

414-
/**
415-
* Query param: Order By Column Name
416-
*/
417-
order_by?: string;
418-
419-
/**
420-
* Query param: Order By Direction
421-
*/
422-
order_by_direction?: 'asc' | 'desc';
423-
424434
/**
425435
* Query param: Search by id, name, filters
426436
*/

src/resources/ai-gateway/evaluations.ts

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ export class EvaluationListResponsesV4PagePaginationArray extends V4PagePaginati
8080
export interface EvaluationCreateResponse {
8181
id: string;
8282

83+
account_id: string;
84+
85+
account_tag: string;
86+
8387
created_at: string;
8488

8589
datasets: Array<EvaluationCreateResponse.Dataset>;
@@ -104,6 +108,10 @@ export namespace EvaluationCreateResponse {
104108
export interface Dataset {
105109
id: string;
106110

111+
account_id: string;
112+
113+
account_tag: string;
114+
107115
created_at: string;
108116

109117
enable: boolean;
@@ -167,6 +175,10 @@ export namespace EvaluationCreateResponse {
167175
export interface EvaluationListResponse {
168176
id: string;
169177

178+
account_id: string;
179+
180+
account_tag: string;
181+
170182
created_at: string;
171183

172184
datasets: Array<EvaluationListResponse.Dataset>;
@@ -191,6 +203,10 @@ export namespace EvaluationListResponse {
191203
export interface Dataset {
192204
id: string;
193205

206+
account_id: string;
207+
208+
account_tag: string;
209+
194210
created_at: string;
195211

196212
enable: boolean;
@@ -254,6 +270,10 @@ export namespace EvaluationListResponse {
254270
export interface EvaluationDeleteResponse {
255271
id: string;
256272

273+
account_id: string;
274+
275+
account_tag: string;
276+
257277
created_at: string;
258278

259279
datasets: Array<EvaluationDeleteResponse.Dataset>;
@@ -278,6 +298,10 @@ export namespace EvaluationDeleteResponse {
278298
export interface Dataset {
279299
id: string;
280300

301+
account_id: string;
302+
303+
account_tag: string;
304+
281305
created_at: string;
282306

283307
enable: boolean;
@@ -341,6 +365,10 @@ export namespace EvaluationDeleteResponse {
341365
export interface EvaluationGetResponse {
342366
id: string;
343367

368+
account_id: string;
369+
370+
account_tag: string;
371+
344372
created_at: string;
345373

346374
datasets: Array<EvaluationGetResponse.Dataset>;
@@ -365,6 +393,10 @@ export namespace EvaluationGetResponse {
365393
export interface Dataset {
366394
id: string;
367395

396+
account_id: string;
397+
398+
account_tag: string;
399+
368400
created_at: string;
369401

370402
enable: boolean;
@@ -458,16 +490,6 @@ export interface EvaluationListParams extends V4PagePaginationArrayParams {
458490
*/
459491
name?: string;
460492

461-
/**
462-
* Query param: Order By Column Name
463-
*/
464-
order_by?: string;
465-
466-
/**
467-
* Query param: Order By Direction
468-
*/
469-
order_by_direction?: 'asc' | 'desc';
470-
471493
/**
472494
* Query param:
473495
*/

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,6 @@ describe('resource aiGateway', () => {
9292
test('list: required and optional params', async () => {
9393
const response = await client.aiGateway.list({
9494
account_id: '3ebbcb006d4d46d7bb6a8c7f14676cb0',
95-
order_by: 'order_by',
96-
order_by_direction: 'asc',
9795
page: 1,
9896
per_page: 1,
9997
search: 'search',

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,6 @@ describe('resource datasets', () => {
7878
account_id: '3ebbcb006d4d46d7bb6a8c7f14676cb0',
7979
enable: true,
8080
name: 'name',
81-
order_by: 'order_by',
82-
order_by_direction: 'asc',
8381
page: 1,
8482
per_page: 1,
8583
search: 'search',

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ describe('resource evaluations', () => {
5252
const response = await client.aiGateway.evaluations.list('my-gateway', {
5353
account_id: '3ebbcb006d4d46d7bb6a8c7f14676cb0',
5454
name: 'name',
55-
order_by: 'order_by',
56-
order_by_direction: 'asc',
5755
page: 1,
5856
per_page: 1,
5957
processed: true,

0 commit comments

Comments
 (0)