diff --git a/.stats.yml b/.stats.yml index 62a18d0f9d..b3c2fa72c4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1321 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7080386fb1d04dafc80523803a44e41bab56e2907c13694ced938d02a3abb9d5.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a18a8d7f1f80a39beb83a6541eb29dea4a69df37444aeb85493c94256c11d3a6.yml diff --git a/src/resources/zero-trust/dex/colos.ts b/src/resources/zero-trust/dex/colos.ts index fc346633b7..6b3118b3c4 100644 --- a/src/resources/zero-trust/dex/colos.ts +++ b/src/resources/zero-trust/dex/colos.ts @@ -34,14 +34,14 @@ export interface ColoListParams { account_id: string; /** - * Query param: Start time for connection period in RFC3339 (ISO 8601) format. + * Query param: End time for connection period in RFC3339 (ISO 8601) format. */ - from: string; + timeEnd: string; /** - * Query param: End time for connection period in RFC3339 (ISO 8601) format. + * Query param: Start time for connection period in RFC3339 (ISO 8601) format. */ - to: string; + timeStart: string; /** * Query param: Type of usage that colos should be sorted by. If unspecified, diff --git a/src/resources/zero-trust/dex/fleet-status/devices.ts b/src/resources/zero-trust/dex/fleet-status/devices.ts index 56673bb399..c00efc5891 100644 --- a/src/resources/zero-trust/dex/fleet-status/devices.ts +++ b/src/resources/zero-trust/dex/fleet-status/devices.ts @@ -70,21 +70,12 @@ export interface DeviceListParams extends V4PagePaginationArrayParams { /** * Query param: Timestamp in ISO format */ - from: string; - - /** - * Query param: Source: - * - * - `hourly` - device details aggregated hourly, up to 7 days prior - * - `last_seen` - device details, up to 24 hours prior - * - `raw` - device details, up to 7 days prior - */ - source: 'last_seen' | 'hourly' | 'raw'; + time_end: string; /** * Query param: Timestamp in ISO format */ - to: string; + time_start: string; /** * Query param: Cloudflare colo diff --git a/src/resources/zero-trust/dex/fleet-status/fleet-status.ts b/src/resources/zero-trust/dex/fleet-status/fleet-status.ts index 375c6dad38..e97748168c 100644 --- a/src/resources/zero-trust/dex/fleet-status/fleet-status.ts +++ b/src/resources/zero-trust/dex/fleet-status/fleet-status.ts @@ -90,12 +90,12 @@ export interface FleetStatusOverTimeParams { /** * Query param: Timestamp in ISO format */ - from: string; + time_end: string; /** * Query param: Timestamp in ISO format */ - to: string; + time_start: string; /** * Query param: Cloudflare colo diff --git a/src/resources/zero-trust/dex/http-tests/http-tests.ts b/src/resources/zero-trust/dex/http-tests/http-tests.ts index 67896668ab..a13d165644 100644 --- a/src/resources/zero-trust/dex/http-tests/http-tests.ts +++ b/src/resources/zero-trust/dex/http-tests/http-tests.ts @@ -186,11 +186,6 @@ export interface HTTPTestGetParams { */ account_id: string; - /** - * Query param: Start time for aggregate metrics in ISO ms - */ - from: string; - /** * Query param: Time interval for aggregate time slots. */ @@ -199,7 +194,12 @@ export interface HTTPTestGetParams { /** * Query param: End time for aggregate metrics in ISO ms */ - to: string; + timeEnd: string; + + /** + * Query param: Start time for aggregate metrics in ISO ms + */ + timeStart: string; /** * Query param: Optionally filter result stats to a Cloudflare colo. Cannot be used diff --git a/src/resources/zero-trust/dex/http-tests/percentiles.ts b/src/resources/zero-trust/dex/http-tests/percentiles.ts index 17da53d347..338c444690 100644 --- a/src/resources/zero-trust/dex/http-tests/percentiles.ts +++ b/src/resources/zero-trust/dex/http-tests/percentiles.ts @@ -67,14 +67,14 @@ export interface PercentileGetParams { account_id: string; /** - * Query param: Start time for aggregate metrics in ISO format + * Query param: End time for aggregate metrics in ISO format */ - from: string; + timeEnd: string; /** - * Query param: End time for aggregate metrics in ISO format + * Query param: Start time for aggregate metrics in ISO format */ - to: string; + timeStart: string; /** * Query param: Optionally filter result stats to a Cloudflare colo. Cannot be used diff --git a/src/resources/zero-trust/dex/traceroute-test-results/network-path.ts b/src/resources/zero-trust/dex/traceroute-test-results/network-path.ts index 8b9c96a598..556051e047 100644 --- a/src/resources/zero-trust/dex/traceroute-test-results/network-path.ts +++ b/src/resources/zero-trust/dex/traceroute-test-results/network-path.ts @@ -35,6 +35,11 @@ export interface NetworkPathGetResponse { */ resultId: string; + /** + * date time of this traceroute test + */ + time_start: string; + /** * name of the device associated with this network path response */ diff --git a/src/resources/zero-trust/dex/traceroute-tests.ts b/src/resources/zero-trust/dex/traceroute-tests.ts index a8c705c63c..bc48c0494e 100644 --- a/src/resources/zero-trust/dex/traceroute-tests.ts +++ b/src/resources/zero-trust/dex/traceroute-tests.ts @@ -248,11 +248,6 @@ export interface TracerouteTestGetParams { */ account_id: string; - /** - * Query param: Start time for aggregate metrics in ISO ms - */ - from: string; - /** * Query param: Time interval for aggregate time slots. */ @@ -261,7 +256,12 @@ export interface TracerouteTestGetParams { /** * Query param: End time for aggregate metrics in ISO ms */ - to: string; + timeEnd: string; + + /** + * Query param: Start time for aggregate metrics in ISO ms + */ + timeStart: string; /** * Query param: Optionally filter result stats to a Cloudflare colo. Cannot be used @@ -287,11 +287,6 @@ export interface TracerouteTestNetworkPathParams { */ deviceId: string; - /** - * Query param: Start time for aggregate metrics in ISO ms - */ - from: string; - /** * Query param: Time interval for aggregate time slots. */ @@ -300,7 +295,12 @@ export interface TracerouteTestNetworkPathParams { /** * Query param: End time for aggregate metrics in ISO ms */ - to: string; + timeEnd: string; + + /** + * Query param: Start time for aggregate metrics in ISO ms + */ + timeStart: string; } export interface TracerouteTestPercentilesParams { @@ -310,14 +310,14 @@ export interface TracerouteTestPercentilesParams { account_id: string; /** - * Query param: Start time for aggregate metrics in ISO format + * Query param: End time for aggregate metrics in ISO format */ - from: string; + timeEnd: string; /** - * Query param: End time for aggregate metrics in ISO format + * Query param: Start time for aggregate metrics in ISO format */ - to: string; + timeStart: string; /** * Query param: Optionally filter result stats to a Cloudflare colo. Cannot be used diff --git a/tests/api-resources/zero-trust/dex/colos.test.ts b/tests/api-resources/zero-trust/dex/colos.test.ts index bb9a5e195f..a581c19e97 100644 --- a/tests/api-resources/zero-trust/dex/colos.test.ts +++ b/tests/api-resources/zero-trust/dex/colos.test.ts @@ -13,8 +13,8 @@ describe('resource colos', () => { test('list: only required params', async () => { const responsePromise = cloudflare.zeroTrust.dex.colos.list({ account_id: '01a7362d577a6c3019a474fd6f485823', - from: '2023-08-20T20:45:00Z', - to: '2023-08-24T20:45:00Z', + timeEnd: '2023-08-24T20:45:00Z', + timeStart: '2023-08-20T20:45:00Z', }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -28,8 +28,8 @@ describe('resource colos', () => { test('list: required and optional params', async () => { const response = await cloudflare.zeroTrust.dex.colos.list({ account_id: '01a7362d577a6c3019a474fd6f485823', - from: '2023-08-20T20:45:00Z', - to: '2023-08-24T20:45:00Z', + timeEnd: '2023-08-24T20:45:00Z', + timeStart: '2023-08-20T20:45:00Z', sortBy: 'fleet-status-usage', }); }); diff --git a/tests/api-resources/zero-trust/dex/fleet-status/devices.test.ts b/tests/api-resources/zero-trust/dex/fleet-status/devices.test.ts index 56c104301e..ccde92e202 100644 --- a/tests/api-resources/zero-trust/dex/fleet-status/devices.test.ts +++ b/tests/api-resources/zero-trust/dex/fleet-status/devices.test.ts @@ -14,11 +14,10 @@ describe('resource devices', () => { test.skip('list: only required params', async () => { const responsePromise = cloudflare.zeroTrust.dex.fleetStatus.devices.list({ account_id: '01a7362d577a6c3019a474fd6f485823', - from: '2023-10-11T00:00:00Z', page: 1, per_page: 10, - source: 'last_seen', - to: '2023-10-11T00:00:00Z', + time_end: '2023-10-11T00:00:00Z', + time_start: '2023-10-11T00:00:00Z', }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -33,11 +32,10 @@ describe('resource devices', () => { test.skip('list: required and optional params', async () => { const response = await cloudflare.zeroTrust.dex.fleetStatus.devices.list({ account_id: '01a7362d577a6c3019a474fd6f485823', - from: '2023-10-11T00:00:00Z', page: 1, per_page: 10, - source: 'last_seen', - to: '2023-10-11T00:00:00Z', + time_end: '2023-10-11T00:00:00Z', + time_start: '2023-10-11T00:00:00Z', colo: 'SJC', device_id: 'cb49c27f-7f97-49c5-b6f3-f7c01ead0fd7', mode: 'proxy', diff --git a/tests/api-resources/zero-trust/dex/fleet-status/fleet-status.test.ts b/tests/api-resources/zero-trust/dex/fleet-status/fleet-status.test.ts index 6dd8dbd1ee..c2f6a67ffb 100644 --- a/tests/api-resources/zero-trust/dex/fleet-status/fleet-status.test.ts +++ b/tests/api-resources/zero-trust/dex/fleet-status/fleet-status.test.ts @@ -34,8 +34,8 @@ describe('resource fleetStatus', () => { test('overTime: only required params', async () => { const responsePromise = cloudflare.zeroTrust.dex.fleetStatus.overTime({ account_id: '01a7362d577a6c3019a474fd6f485823', - from: '2023-10-11T00:00:00Z', - to: '2023-10-11T00:00:00Z', + time_end: '2023-10-11T00:00:00Z', + time_start: '2023-10-11T00:00:00Z', }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -49,8 +49,8 @@ describe('resource fleetStatus', () => { test('overTime: required and optional params', async () => { const response = await cloudflare.zeroTrust.dex.fleetStatus.overTime({ account_id: '01a7362d577a6c3019a474fd6f485823', - from: '2023-10-11T00:00:00Z', - to: '2023-10-11T00:00:00Z', + time_end: '2023-10-11T00:00:00Z', + time_start: '2023-10-11T00:00:00Z', colo: 'SJC', device_id: 'cb49c27f-7f97-49c5-b6f3-f7c01ead0fd7', }); diff --git a/tests/api-resources/zero-trust/dex/http-tests/http-tests.test.ts b/tests/api-resources/zero-trust/dex/http-tests/http-tests.test.ts index 97c2cf14b6..1c99e460e3 100644 --- a/tests/api-resources/zero-trust/dex/http-tests/http-tests.test.ts +++ b/tests/api-resources/zero-trust/dex/http-tests/http-tests.test.ts @@ -13,9 +13,9 @@ describe('resource httpTests', () => { test('get: only required params', async () => { const responsePromise = cloudflare.zeroTrust.dex.httpTests.get('f174e90a-fafe-4643-bbbc-4a0ed4fc8415', { account_id: '01a7362d577a6c3019a474fd6f485823', - from: '1689520412000', interval: 'minute', - to: '1689606812000', + timeEnd: '1689606812000', + timeStart: '1689520412000', }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -29,9 +29,9 @@ describe('resource httpTests', () => { test('get: required and optional params', async () => { const response = await cloudflare.zeroTrust.dex.httpTests.get('f174e90a-fafe-4643-bbbc-4a0ed4fc8415', { account_id: '01a7362d577a6c3019a474fd6f485823', - from: '1689520412000', interval: 'minute', - to: '1689606812000', + timeEnd: '1689606812000', + timeStart: '1689520412000', colo: 'string', deviceId: ['string', 'string', 'string'], }); diff --git a/tests/api-resources/zero-trust/dex/http-tests/percentiles.test.ts b/tests/api-resources/zero-trust/dex/http-tests/percentiles.test.ts index 323cdc1fb4..ec7f21993a 100644 --- a/tests/api-resources/zero-trust/dex/http-tests/percentiles.test.ts +++ b/tests/api-resources/zero-trust/dex/http-tests/percentiles.test.ts @@ -15,8 +15,8 @@ describe('resource percentiles', () => { 'f174e90a-fafe-4643-bbbc-4a0ed4fc8415', { account_id: '01a7362d577a6c3019a474fd6f485823', - from: '2023-09-20T17:00:00Z', - to: '2023-09-20T17:00:00Z', + timeEnd: '2023-09-20T17:00:00Z', + timeStart: '2023-09-20T17:00:00Z', }, ); const rawResponse = await responsePromise.asResponse(); @@ -33,8 +33,8 @@ describe('resource percentiles', () => { 'f174e90a-fafe-4643-bbbc-4a0ed4fc8415', { account_id: '01a7362d577a6c3019a474fd6f485823', - from: '2023-09-20T17:00:00Z', - to: '2023-09-20T17:00:00Z', + timeEnd: '2023-09-20T17:00:00Z', + timeStart: '2023-09-20T17:00:00Z', colo: 'string', deviceId: ['string', 'string', 'string'], }, diff --git a/tests/api-resources/zero-trust/dex/traceroute-tests.test.ts b/tests/api-resources/zero-trust/dex/traceroute-tests.test.ts index d51cba88eb..44fdd4a7c9 100644 --- a/tests/api-resources/zero-trust/dex/traceroute-tests.test.ts +++ b/tests/api-resources/zero-trust/dex/traceroute-tests.test.ts @@ -15,9 +15,9 @@ describe('resource tracerouteTests', () => { 'f174e90a-fafe-4643-bbbc-4a0ed4fc8415', { account_id: '01a7362d577a6c3019a474fd6f485823', - from: '1689520412000', interval: 'minute', - to: '1689606812000', + timeEnd: '1689606812000', + timeStart: '1689520412000', }, ); const rawResponse = await responsePromise.asResponse(); @@ -34,9 +34,9 @@ describe('resource tracerouteTests', () => { 'f174e90a-fafe-4643-bbbc-4a0ed4fc8415', { account_id: '01a7362d577a6c3019a474fd6f485823', - from: '1689520412000', interval: 'minute', - to: '1689606812000', + timeEnd: '1689606812000', + timeStart: '1689520412000', colo: 'string', deviceId: ['string', 'string', 'string'], }, @@ -49,9 +49,9 @@ describe('resource tracerouteTests', () => { { account_id: '01a7362d577a6c3019a474fd6f485823', deviceId: 'string', - from: '1689520412000', interval: 'minute', - to: '1689606812000', + timeEnd: '1689606812000', + timeStart: '1689520412000', }, ); const rawResponse = await responsePromise.asResponse(); @@ -69,9 +69,9 @@ describe('resource tracerouteTests', () => { { account_id: '01a7362d577a6c3019a474fd6f485823', deviceId: 'string', - from: '1689520412000', interval: 'minute', - to: '1689606812000', + timeEnd: '1689606812000', + timeStart: '1689520412000', }, ); }); @@ -81,8 +81,8 @@ describe('resource tracerouteTests', () => { 'f174e90a-fafe-4643-bbbc-4a0ed4fc8415', { account_id: '01a7362d577a6c3019a474fd6f485823', - from: '2023-09-20T17:00:00Z', - to: '2023-09-20T17:00:00Z', + timeEnd: '2023-09-20T17:00:00Z', + timeStart: '2023-09-20T17:00:00Z', }, ); const rawResponse = await responsePromise.asResponse(); @@ -99,8 +99,8 @@ describe('resource tracerouteTests', () => { 'f174e90a-fafe-4643-bbbc-4a0ed4fc8415', { account_id: '01a7362d577a6c3019a474fd6f485823', - from: '2023-09-20T17:00:00Z', - to: '2023-09-20T17:00:00Z', + timeEnd: '2023-09-20T17:00:00Z', + timeStart: '2023-09-20T17:00:00Z', colo: 'string', deviceId: ['string', 'string', 'string'], },