Skip to content

Commit e7769f2

Browse files
stainless-app[bot]meorphis
authored andcommitted
feat(api): api update (#2258)
1 parent 90aa09d commit e7769f2

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 1480
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-940940879e4920ccdb9e851d6a4f0f3c313303b4917c6e3c49e81b7e44f1506c.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-18ccd4bfa5225ea54ecb087df6d6542117dc16f65b932d7e33a3e05d6c8e3c7e.yml

src/resources/accounts/logs/audit.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -225,16 +225,16 @@ export interface AuditListParams extends CursorLimitPaginationParams {
225225
account_id: string;
226226

227227
/**
228-
* Query param: Filters actions based on a given timestamp, returning only logs
229-
* that occurred before the specified date.
228+
* Query param: Filters actions based on a given timestamp in the format
229+
* yyyy-mm-dd, returning only logs that occurred on and before the specified date.
230230
*/
231-
before: string | string;
231+
before: string;
232232

233233
/**
234-
* Query param: Filters actions based on a given timestamp, returning only logs
235-
* that occurred after the specified date.
234+
* Query param: Filters actions based on a given timestamp in the format
235+
* yyyy-mm-dd, returning only logs that occurred on and after the specified date.
236236
*/
237-
since: string | string;
237+
since: string;
238238

239239
/**
240240
* Query param: Filters by the account name.

tests/api-resources/accounts/logs/audit.test.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ describe('resource audit', () => {
1313
test('list: only required params', async () => {
1414
const responsePromise = client.accounts.logs.audit.list({
1515
account_id: 'a67e14daa5f8dceeb91fe5449ba496ef',
16-
before: '2014-10-30',
17-
since: '2014-10-30',
16+
before: '2024-10-31',
17+
since: '2024-10-30',
1818
});
1919
const rawResponse = await responsePromise.asResponse();
2020
expect(rawResponse).toBeInstanceOf(Response);
@@ -28,8 +28,8 @@ describe('resource audit', () => {
2828
test('list: required and optional params', async () => {
2929
const response = await client.accounts.logs.audit.list({
3030
account_id: 'a67e14daa5f8dceeb91fe5449ba496ef',
31-
before: '2014-10-30',
32-
since: '2014-10-30',
31+
before: '2024-10-31',
32+
since: '2024-10-30',
3333
account_name: 'account_name',
3434
action_result: 'success',
3535
action_type: 'create',

0 commit comments

Comments
 (0)