From 96bcef45fa8ca00fac4ecb36eaae75b3b3d61391 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 10 Apr 2024 10:46:44 +0000 Subject: [PATCH] feat(api): update via SDK Studio (#288) --- api.md | 14 ++- src/resources/url-scanner/index.ts | 4 +- src/resources/url-scanner/scans.ts | 36 +++---- src/resources/url-scanner/url-scanner.ts | 4 +- .../access/applications/applications.ts | 1 + .../zero-trust/access/applications/index.ts | 1 + .../access/applications/user-policy-checks.ts | 13 ++- .../access/users/active-sessions.ts | 7 +- .../access/users/last-seen-identity.ts | 7 +- src/resources/zero-trust/dex/dex.ts | 24 ++--- .../zero-trust/dex/http-tests/http-tests.ts | 2 +- src/resources/zero-trust/dex/index.ts | 2 +- src/resources/zero-trust/dex/tests/tests.ts | 2 +- .../zero-trust/dex/traceroute-tests.ts | 2 +- .../zero-trust/gateway/configurations.ts | 98 +++++++++---------- src/resources/zero-trust/gateway/gateway.ts | 5 +- src/resources/zero-trust/gateway/index.ts | 12 +-- src/resources/zero-trust/gateway/locations.ts | 42 -------- src/resources/zero-trust/gateway/logging.ts | 57 +++++++---- .../zero-trust/gateway/proxy-endpoints.ts | 24 ----- src/resources/zero-trust/index.ts | 2 +- src/resources/zero-trust/networks/index.ts | 4 +- src/resources/zero-trust/networks/networks.ts | 2 +- .../zero-trust/networks/routes/index.ts | 2 +- .../zero-trust/networks/routes/routes.ts | 38 +++---- src/resources/zero-trust/zero-trust.ts | 2 +- 26 files changed, 173 insertions(+), 234 deletions(-) diff --git a/api.md b/api.md index 3df66c0307..4367c5c6c4 100644 --- a/api.md +++ b/api.md @@ -4368,6 +4368,7 @@ Methods: Types: +- UserPolicyCheckGeo - UserPolicyCheckListResponse Methods: @@ -4570,9 +4571,9 @@ Methods: Types: +- DeviceExperienceMonitor - NetworkPath - Percentiles -- UnnamedSchemaRefBf9e2abcf1b78a6cab8e6e29e2228a11 ### Colos @@ -4895,10 +4896,10 @@ Types: - CustomCertificateSettings - ExtendedEmailMatching - FipsSettings +- GatewayConfigurationSettings - NotificationSettings - ProtocolDetection - TLSSettings -- UnnamedSchemaRef055aaf3918bf29f81c09d394a864182e - ConfigurationUpdateResponse - ConfigurationEditResponse - ConfigurationGetResponse @@ -4946,7 +4947,6 @@ Types: - Location - LocationNetwork -- UnnamedSchemaRef1b37523fdb0ae5806cd8e062492aab66 - LocationDeleteResponse Methods: @@ -4962,7 +4962,6 @@ Methods: Types: - LoggingSetting -- UnnamedSchemaRefE86eeb84b7e922c35cfb0031a6309f7b Methods: @@ -4975,7 +4974,6 @@ Types: - GatewayIPs - ProxyEndpoint -- UnnamedSchemaRef4753ee81779d0e57189420079abab61e - ProxyEndpointDeleteResponse Methods: @@ -5012,9 +5010,9 @@ Methods: Types: +- NetworkRoute - Route - Teamnet -- UnnamedSchemaRefC125d35cbb7f93aab989cd19bd764ed6 Methods: @@ -5168,8 +5166,8 @@ Methods: Types: -- UnnamedSchemaRef3750739f772bbdf0bb00d6634ccc0631 -- UnnamedSchemaRef6d7a78acccfc753a8e931b1c4e72b6a6 +- URLScannerDomain +- URLScannerTask - ScanCreateResponse - ScanGetResponse - ScanHarResponse diff --git a/src/resources/url-scanner/index.ts b/src/resources/url-scanner/index.ts index e35825d332..733ee66421 100644 --- a/src/resources/url-scanner/index.ts +++ b/src/resources/url-scanner/index.ts @@ -2,8 +2,8 @@ export { URLScanner } from './url-scanner'; export { - UnnamedSchemaRef3750739f772bbdf0bb00d6634ccc0631, - UnnamedSchemaRef6d7a78acccfc753a8e931b1c4e72b6a6, + URLScannerDomain, + URLScannerTask, ScanCreateResponse, ScanGetResponse, ScanHarResponse, diff --git a/src/resources/url-scanner/scans.ts b/src/resources/url-scanner/scans.ts index 26c822fefe..a7f68a1d73 100644 --- a/src/resources/url-scanner/scans.ts +++ b/src/resources/url-scanner/scans.ts @@ -75,10 +75,18 @@ export class Scans extends APIResource { } } -export interface UnnamedSchemaRef3750739f772bbdf0bb00d6634ccc0631 { +export interface URLScannerDomain { + id: number; + + name: string; + + super_category_id?: number; +} + +export interface URLScannerTask { effectiveUrl: string; - errors: Array; + errors: Array; location: string; @@ -97,20 +105,12 @@ export interface UnnamedSchemaRef3750739f772bbdf0bb00d6634ccc0631 { visibility: string; } -export namespace UnnamedSchemaRef3750739f772bbdf0bb00d6634ccc0631 { +export namespace URLScannerTask { export interface Error { message: string; } } -export interface UnnamedSchemaRef6d7a78acccfc753a8e931b1c4e72b6a6 { - id: number; - - name: string; - - super_category_id?: number; -} - export interface ScanCreateResponse { /** * Time when url was submitted for scanning. @@ -205,7 +205,7 @@ export namespace ScanGetResponse { export namespace Processors { export interface Categories { - content: Array; + content: Array; risks: Array; } @@ -582,18 +582,18 @@ export namespace ScanGetResponse { export interface Categories { inherited: Categories.Inherited; - content?: Array; + content?: Array; - risks?: Array; + risks?: Array; } export namespace Categories { export interface Inherited { - content?: Array; + content?: Array; from?: string; - risks?: Array; + risks?: Array; } } @@ -833,8 +833,8 @@ export interface ScanScreenshotParams { } export namespace Scans { - export import UnnamedSchemaRef3750739f772bbdf0bb00d6634ccc0631 = ScansAPI.UnnamedSchemaRef3750739f772bbdf0bb00d6634ccc0631; - export import UnnamedSchemaRef6d7a78acccfc753a8e931b1c4e72b6a6 = ScansAPI.UnnamedSchemaRef6d7a78acccfc753a8e931b1c4e72b6a6; + export import URLScannerDomain = ScansAPI.URLScannerDomain; + export import URLScannerTask = ScansAPI.URLScannerTask; export import ScanCreateResponse = ScansAPI.ScanCreateResponse; export import ScanGetResponse = ScansAPI.ScanGetResponse; export import ScanHarResponse = ScansAPI.ScanHarResponse; diff --git a/src/resources/url-scanner/url-scanner.ts b/src/resources/url-scanner/url-scanner.ts index 02aea3bc02..61118a4d31 100644 --- a/src/resources/url-scanner/url-scanner.ts +++ b/src/resources/url-scanner/url-scanner.ts @@ -171,8 +171,8 @@ export interface URLScannerScanParams { export namespace URLScanner { export import Scans = ScansAPI.Scans; - export import UnnamedSchemaRef3750739f772bbdf0bb00d6634ccc0631 = ScansAPI.UnnamedSchemaRef3750739f772bbdf0bb00d6634ccc0631; - export import UnnamedSchemaRef6d7a78acccfc753a8e931b1c4e72b6a6 = ScansAPI.UnnamedSchemaRef6d7a78acccfc753a8e931b1c4e72b6a6; + export import URLScannerDomain = ScansAPI.URLScannerDomain; + export import URLScannerTask = ScansAPI.URLScannerTask; export import ScanCreateResponse = ScansAPI.ScanCreateResponse; export import ScanGetResponse = ScansAPI.ScanGetResponse; export import ScanHarResponse = ScansAPI.ScanHarResponse; diff --git a/src/resources/zero-trust/access/applications/applications.ts b/src/resources/zero-trust/access/applications/applications.ts index f24a191d60..b48961f310 100644 --- a/src/resources/zero-trust/access/applications/applications.ts +++ b/src/resources/zero-trust/access/applications/applications.ts @@ -2696,6 +2696,7 @@ export namespace Applications { export import CADeleteParams = CAsAPI.CADeleteParams; export import CAGetParams = CAsAPI.CAGetParams; export import UserPolicyChecks = UserPolicyChecksAPI.UserPolicyChecks; + export import UserPolicyCheckGeo = UserPolicyChecksAPI.UserPolicyCheckGeo; export import UserPolicyCheckListResponse = UserPolicyChecksAPI.UserPolicyCheckListResponse; export import UserPolicyCheckListParams = UserPolicyChecksAPI.UserPolicyCheckListParams; export import Policies = PoliciesAPI.Policies; diff --git a/src/resources/zero-trust/access/applications/index.ts b/src/resources/zero-trust/access/applications/index.ts index 557f249bb8..402ff73e70 100644 --- a/src/resources/zero-trust/access/applications/index.ts +++ b/src/resources/zero-trust/access/applications/index.ts @@ -50,6 +50,7 @@ export { CAs, } from './cas'; export { + UserPolicyCheckGeo, UserPolicyCheckListResponse, UserPolicyCheckListParams, UserPolicyChecks, diff --git a/src/resources/zero-trust/access/applications/user-policy-checks.ts b/src/resources/zero-trust/access/applications/user-policy-checks.ts index 3ce35cbfd6..a7eb1f9c4b 100644 --- a/src/resources/zero-trust/access/applications/user-policy-checks.ts +++ b/src/resources/zero-trust/access/applications/user-policy-checks.ts @@ -54,6 +54,10 @@ export class UserPolicyChecks extends APIResource { } } +export interface UserPolicyCheckGeo { + country?: string; +} + export interface UserPolicyCheckListResponse { app_state?: UserPolicyCheckListResponse.AppState; @@ -87,7 +91,7 @@ export namespace UserPolicyCheckListResponse { email?: string; - geo?: UserIdentity.Geo; + geo?: UserPolicyChecksAPI.UserPolicyCheckGeo; iat?: number; @@ -104,12 +108,6 @@ export namespace UserPolicyCheckListResponse { version?: number; } - - export namespace UserIdentity { - export interface Geo { - country?: string; - } - } } export interface UserPolicyCheckListParams { @@ -125,6 +123,7 @@ export interface UserPolicyCheckListParams { } export namespace UserPolicyChecks { + export import UserPolicyCheckGeo = UserPolicyChecksAPI.UserPolicyCheckGeo; export import UserPolicyCheckListResponse = UserPolicyChecksAPI.UserPolicyCheckListResponse; export import UserPolicyCheckListParams = UserPolicyChecksAPI.UserPolicyCheckListParams; } diff --git a/src/resources/zero-trust/access/users/active-sessions.ts b/src/resources/zero-trust/access/users/active-sessions.ts index 665f99307d..f3ce0964f9 100644 --- a/src/resources/zero-trust/access/users/active-sessions.ts +++ b/src/resources/zero-trust/access/users/active-sessions.ts @@ -3,6 +3,7 @@ import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; import * as ActiveSessionsAPI from 'cloudflare/resources/zero-trust/access/users/active-sessions'; +import * as UserPolicyChecksAPI from 'cloudflare/resources/zero-trust/access/applications/user-policy-checks'; import { SinglePage } from 'cloudflare/pagination'; export class ActiveSessions extends APIResource { @@ -90,7 +91,7 @@ export interface ActiveSessionGetResponse { email?: string; - geo?: ActiveSessionGetResponse.Geo; + geo?: UserPolicyChecksAPI.UserPolicyCheckGeo; iat?: number; @@ -148,10 +149,6 @@ export namespace ActiveSessionGetResponse { } } - export interface Geo { - country?: string; - } - export interface IDP { id?: string; diff --git a/src/resources/zero-trust/access/users/last-seen-identity.ts b/src/resources/zero-trust/access/users/last-seen-identity.ts index 18b84e2d1c..890d45bd70 100644 --- a/src/resources/zero-trust/access/users/last-seen-identity.ts +++ b/src/resources/zero-trust/access/users/last-seen-identity.ts @@ -3,6 +3,7 @@ import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; import * as LastSeenIdentityAPI from 'cloudflare/resources/zero-trust/access/users/last-seen-identity'; +import * as UserPolicyChecksAPI from 'cloudflare/resources/zero-trust/access/applications/user-policy-checks'; export class LastSeenIdentity extends APIResource { /** @@ -33,7 +34,7 @@ export interface Identity { email?: string; - geo?: Identity.Geo; + geo?: UserPolicyChecksAPI.UserPolicyCheckGeo; iat?: number; @@ -89,10 +90,6 @@ export namespace Identity { } } - export interface Geo { - country?: string; - } - export interface IDP { id?: string; diff --git a/src/resources/zero-trust/dex/dex.ts b/src/resources/zero-trust/dex/dex.ts index e971085326..8e280e3e66 100644 --- a/src/resources/zero-trust/dex/dex.ts +++ b/src/resources/zero-trust/dex/dex.ts @@ -19,6 +19,17 @@ export class DEX extends APIResource { tracerouteTests: TracerouteTestsAPI.TracerouteTests = new TracerouteTestsAPI.TracerouteTests(this._client); } +export interface DeviceExperienceMonitor { + id: string; + + /** + * Whether the policy is the default for the account + */ + default: boolean; + + name: string; +} + export interface NetworkPath { /** * API Resource UUID tag. @@ -121,21 +132,10 @@ export interface Percentiles { p99?: number | null; } -export interface UnnamedSchemaRefBf9e2abcf1b78a6cab8e6e29e2228a11 { - id: string; - - /** - * Whether the policy is the default for the account - */ - default: boolean; - - name: string; -} - export namespace DEX { + export import DeviceExperienceMonitor = DEXAPI.DeviceExperienceMonitor; export import NetworkPath = DEXAPI.NetworkPath; export import Percentiles = DEXAPI.Percentiles; - export import UnnamedSchemaRefBf9e2abcf1b78a6cab8e6e29e2228a11 = DEXAPI.UnnamedSchemaRefBf9e2abcf1b78a6cab8e6e29e2228a11; export import Colos = ColosAPI.Colos; export import ColoListResponse = ColosAPI.ColoListResponse; export import ColoListResponsesSinglePage = ColosAPI.ColoListResponsesSinglePage; 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 0cf0520d78..ae8271b6e6 100644 --- a/src/resources/zero-trust/dex/http-tests/http-tests.ts +++ b/src/resources/zero-trust/dex/http-tests/http-tests.ts @@ -55,7 +55,7 @@ export interface HTTPDetails { */ name?: string; - target_policies?: Array; + target_policies?: Array; targeted?: boolean; } diff --git a/src/resources/zero-trust/dex/index.ts b/src/resources/zero-trust/dex/index.ts index 74297d55ca..2a885b9afa 100644 --- a/src/resources/zero-trust/dex/index.ts +++ b/src/resources/zero-trust/dex/index.ts @@ -8,6 +8,7 @@ export { TestListResponsesV4PagePagination, } from './tests/index'; export { ColoListResponse, ColoListParams, ColoListResponsesSinglePage, Colos } from './colos'; +export { DeviceExperienceMonitor, NetworkPath, Percentiles, DEX } from './dex'; export { HTTPDetails, HTTPTestGetParams, HTTPTests } from './http-tests/index'; export { LiveStat, @@ -16,7 +17,6 @@ export { FleetStatusOverTimeParams, FleetStatus, } from './fleet-status/index'; -export { NetworkPath, Percentiles, UnnamedSchemaRefBf9e2abcf1b78a6cab8e6e29e2228a11, DEX } from './dex'; export { Traceroute, TracerouteTestPercentilesResponse, diff --git a/src/resources/zero-trust/dex/tests/tests.ts b/src/resources/zero-trust/dex/tests/tests.ts index de8f885ded..6a74c8e91c 100644 --- a/src/resources/zero-trust/dex/tests/tests.ts +++ b/src/resources/zero-trust/dex/tests/tests.ts @@ -111,7 +111,7 @@ export namespace Tests { */ method?: string; - target_policies?: Array; + target_policies?: Array; targeted?: boolean; diff --git a/src/resources/zero-trust/dex/traceroute-tests.ts b/src/resources/zero-trust/dex/traceroute-tests.ts index 311a80ca95..1de3982461 100644 --- a/src/resources/zero-trust/dex/traceroute-tests.ts +++ b/src/resources/zero-trust/dex/traceroute-tests.ts @@ -79,7 +79,7 @@ export interface Traceroute { */ name: string; - target_policies?: Array; + target_policies?: Array; targeted?: boolean; diff --git a/src/resources/zero-trust/gateway/configurations.ts b/src/resources/zero-trust/gateway/configurations.ts index 76a41a841c..55e957bb1a 100644 --- a/src/resources/zero-trust/gateway/configurations.ts +++ b/src/resources/zero-trust/gateway/configurations.ts @@ -211,52 +211,10 @@ export interface FipsSettings { tls?: boolean; } -/** - * Configure a message to display on the user's device when an antivirus search is - * performed. - */ -export interface NotificationSettings { - /** - * Set notification on - */ - enabled?: boolean; - - /** - * Customize the message shown in the notification. - */ - msg?: string; - - /** - * Optional URL to direct users to additional information. If not set, the - * notification will open a block page. - */ - support_url?: string; -} - -/** - * Protocol Detection settings. - */ -export interface ProtocolDetection { - /** - * Enable detecting protocol on initial bytes of client traffic. - */ - enabled?: boolean; -} - -/** - * TLS interception settings. - */ -export interface TLSSettings { - /** - * Enable inspecting encrypted HTTP traffic. - */ - enabled?: boolean; -} - /** * account settings. */ -export interface UnnamedSchemaRef055aaf3918bf29f81c09d394a864182e { +export interface GatewayConfigurationSettings { /** * Activity log settings. */ @@ -308,6 +266,48 @@ export interface UnnamedSchemaRef055aaf3918bf29f81c09d394a864182e { tls_decrypt?: TLSSettings; } +/** + * Configure a message to display on the user's device when an antivirus search is + * performed. + */ +export interface NotificationSettings { + /** + * Set notification on + */ + enabled?: boolean; + + /** + * Customize the message shown in the notification. + */ + msg?: string; + + /** + * Optional URL to direct users to additional information. If not set, the + * notification will open a block page. + */ + support_url?: string; +} + +/** + * Protocol Detection settings. + */ +export interface ProtocolDetection { + /** + * Enable detecting protocol on initial bytes of client traffic. + */ + enabled?: boolean; +} + +/** + * TLS interception settings. + */ +export interface TLSSettings { + /** + * Enable inspecting encrypted HTTP traffic. + */ + enabled?: boolean; +} + /** * account settings. */ @@ -317,7 +317,7 @@ export interface ConfigurationUpdateResponse { /** * account settings. */ - settings?: UnnamedSchemaRef055aaf3918bf29f81c09d394a864182e; + settings?: GatewayConfigurationSettings; updated_at?: string; } @@ -331,7 +331,7 @@ export interface ConfigurationEditResponse { /** * account settings. */ - settings?: UnnamedSchemaRef055aaf3918bf29f81c09d394a864182e; + settings?: GatewayConfigurationSettings; updated_at?: string; } @@ -345,7 +345,7 @@ export interface ConfigurationGetResponse { /** * account settings. */ - settings?: UnnamedSchemaRef055aaf3918bf29f81c09d394a864182e; + settings?: GatewayConfigurationSettings; updated_at?: string; } @@ -359,7 +359,7 @@ export interface ConfigurationUpdateParams { /** * Body param: account settings. */ - settings?: UnnamedSchemaRef055aaf3918bf29f81c09d394a864182e; + settings?: GatewayConfigurationSettings; } export interface ConfigurationEditParams { @@ -371,7 +371,7 @@ export interface ConfigurationEditParams { /** * Body param: account settings. */ - settings?: UnnamedSchemaRef055aaf3918bf29f81c09d394a864182e; + settings?: GatewayConfigurationSettings; } export interface ConfigurationGetParams { @@ -387,10 +387,10 @@ export namespace Configurations { export import CustomCertificateSettings = ConfigurationsAPI.CustomCertificateSettings; export import ExtendedEmailMatching = ConfigurationsAPI.ExtendedEmailMatching; export import FipsSettings = ConfigurationsAPI.FipsSettings; + export import GatewayConfigurationSettings = ConfigurationsAPI.GatewayConfigurationSettings; export import NotificationSettings = ConfigurationsAPI.NotificationSettings; export import ProtocolDetection = ConfigurationsAPI.ProtocolDetection; export import TLSSettings = ConfigurationsAPI.TLSSettings; - export import UnnamedSchemaRef055aaf3918bf29f81c09d394a864182e = ConfigurationsAPI.UnnamedSchemaRef055aaf3918bf29f81c09d394a864182e; export import ConfigurationUpdateResponse = ConfigurationsAPI.ConfigurationUpdateResponse; export import ConfigurationEditResponse = ConfigurationsAPI.ConfigurationEditResponse; export import ConfigurationGetResponse = ConfigurationsAPI.ConfigurationGetResponse; diff --git a/src/resources/zero-trust/gateway/gateway.ts b/src/resources/zero-trust/gateway/gateway.ts index 623e47050f..ef7e8786f3 100644 --- a/src/resources/zero-trust/gateway/gateway.ts +++ b/src/resources/zero-trust/gateway/gateway.ts @@ -119,10 +119,10 @@ export namespace Gateway { export import CustomCertificateSettings = ConfigurationsAPI.CustomCertificateSettings; export import ExtendedEmailMatching = ConfigurationsAPI.ExtendedEmailMatching; export import FipsSettings = ConfigurationsAPI.FipsSettings; + export import GatewayConfigurationSettings = ConfigurationsAPI.GatewayConfigurationSettings; export import NotificationSettings = ConfigurationsAPI.NotificationSettings; export import ProtocolDetection = ConfigurationsAPI.ProtocolDetection; export import TLSSettings = ConfigurationsAPI.TLSSettings; - export import UnnamedSchemaRef055aaf3918bf29f81c09d394a864182e = ConfigurationsAPI.UnnamedSchemaRef055aaf3918bf29f81c09d394a864182e; export import ConfigurationUpdateResponse = ConfigurationsAPI.ConfigurationUpdateResponse; export import ConfigurationEditResponse = ConfigurationsAPI.ConfigurationEditResponse; export import ConfigurationGetResponse = ConfigurationsAPI.ConfigurationGetResponse; @@ -146,7 +146,6 @@ export namespace Gateway { export import Locations = LocationsAPI.Locations; export import Location = LocationsAPI.Location; export import LocationNetwork = LocationsAPI.LocationNetwork; - export import UnnamedSchemaRef1b37523fdb0ae5806cd8e062492aab66 = LocationsAPI.UnnamedSchemaRef1b37523fdb0ae5806cd8e062492aab66; export import LocationDeleteResponse = LocationsAPI.LocationDeleteResponse; export import LocationsSinglePage = LocationsAPI.LocationsSinglePage; export import LocationCreateParams = LocationsAPI.LocationCreateParams; @@ -156,13 +155,11 @@ export namespace Gateway { export import LocationGetParams = LocationsAPI.LocationGetParams; export import Logging = LoggingAPI.Logging; export import LoggingSetting = LoggingAPI.LoggingSetting; - export import UnnamedSchemaRefE86eeb84b7e922c35cfb0031a6309f7b = LoggingAPI.UnnamedSchemaRefE86eeb84b7e922c35cfb0031a6309f7b; export import LoggingUpdateParams = LoggingAPI.LoggingUpdateParams; export import LoggingGetParams = LoggingAPI.LoggingGetParams; export import ProxyEndpoints = ProxyEndpointsAPI.ProxyEndpoints; export import GatewayIPs = ProxyEndpointsAPI.GatewayIPs; export import ProxyEndpoint = ProxyEndpointsAPI.ProxyEndpoint; - export import UnnamedSchemaRef4753ee81779d0e57189420079abab61e = ProxyEndpointsAPI.UnnamedSchemaRef4753ee81779d0e57189420079abab61e; export import ProxyEndpointDeleteResponse = ProxyEndpointsAPI.ProxyEndpointDeleteResponse; export import ProxyEndpointsSinglePage = ProxyEndpointsAPI.ProxyEndpointsSinglePage; export import ProxyEndpointCreateParams = ProxyEndpointsAPI.ProxyEndpointCreateParams; diff --git a/src/resources/zero-trust/gateway/index.ts b/src/resources/zero-trust/gateway/index.ts index 376945f477..5fed89f9c6 100644 --- a/src/resources/zero-trust/gateway/index.ts +++ b/src/resources/zero-trust/gateway/index.ts @@ -9,10 +9,10 @@ export { CustomCertificateSettings, ExtendedEmailMatching, FipsSettings, + GatewayConfigurationSettings, NotificationSettings, ProtocolDetection, TLSSettings, - UnnamedSchemaRef055aaf3918bf29f81c09d394a864182e, ConfigurationUpdateResponse, ConfigurationEditResponse, ConfigurationGetResponse, @@ -49,7 +49,6 @@ export { export { GatewayIPs, ProxyEndpoint, - UnnamedSchemaRef4753ee81779d0e57189420079abab61e, ProxyEndpointDeleteResponse, ProxyEndpointCreateParams, ProxyEndpointListParams, @@ -84,7 +83,6 @@ export { export { Location, LocationNetwork, - UnnamedSchemaRef1b37523fdb0ae5806cd8e062492aab66, LocationDeleteResponse, LocationCreateParams, LocationUpdateParams, @@ -94,10 +92,4 @@ export { LocationsSinglePage, Locations, } from './locations'; -export { - LoggingSetting, - UnnamedSchemaRefE86eeb84b7e922c35cfb0031a6309f7b, - LoggingUpdateParams, - LoggingGetParams, - Logging, -} from './logging'; +export { LoggingSetting, LoggingUpdateParams, LoggingGetParams, Logging } from './logging'; diff --git a/src/resources/zero-trust/gateway/locations.ts b/src/resources/zero-trust/gateway/locations.ts index c0c940a2a8..fd55b3d3f0 100644 --- a/src/resources/zero-trust/gateway/locations.ts +++ b/src/resources/zero-trust/gateway/locations.ts @@ -132,47 +132,6 @@ export interface LocationNetwork { network: string; } -export interface UnnamedSchemaRef1b37523fdb0ae5806cd8e062492aab66 { - id?: string; - - /** - * True if the location is the default location. - */ - client_default?: boolean; - - created_at?: string; - - /** - * The DNS over HTTPS domain to send DNS requests to. This field is auto-generated - * by Gateway. - */ - doh_subdomain?: string; - - /** - * True if the location needs to resolve EDNS queries. - */ - ecs_support?: boolean; - - /** - * IPV6 destination ip assigned to this location. DNS requests sent to this IP will - * counted as the request under this location. This field is auto-generated by - * Gateway. - */ - ip?: string; - - /** - * The name of the location. - */ - name?: string; - - /** - * A list of network ranges that requests from this location would originate from. - */ - networks?: Array; - - updated_at?: string; -} - export type LocationDeleteResponse = unknown | string | null; export interface LocationCreateParams { @@ -254,7 +213,6 @@ export interface LocationGetParams { export namespace Locations { export import Location = LocationsAPI.Location; export import LocationNetwork = LocationsAPI.LocationNetwork; - export import UnnamedSchemaRef1b37523fdb0ae5806cd8e062492aab66 = LocationsAPI.UnnamedSchemaRef1b37523fdb0ae5806cd8e062492aab66; export import LocationDeleteResponse = LocationsAPI.LocationDeleteResponse; export import LocationsSinglePage = LocationsAPI.LocationsSinglePage; export import LocationCreateParams = LocationsAPI.LocationCreateParams; diff --git a/src/resources/zero-trust/gateway/logging.ts b/src/resources/zero-trust/gateway/logging.ts index b03b5d6286..d11d230be9 100644 --- a/src/resources/zero-trust/gateway/logging.ts +++ b/src/resources/zero-trust/gateway/logging.ts @@ -40,27 +40,29 @@ export interface LoggingSetting { /** * Logging settings by rule type. */ - settings_by_rule_type?: UnnamedSchemaRefE86eeb84b7e922c35cfb0031a6309f7b; + settings_by_rule_type?: LoggingSetting.SettingsByRuleType; } -/** - * Logging settings by rule type. - */ -export interface UnnamedSchemaRefE86eeb84b7e922c35cfb0031a6309f7b { +export namespace LoggingSetting { /** - * Logging settings for DNS firewall. + * Logging settings by rule type. */ - dns?: unknown; + export interface SettingsByRuleType { + /** + * Logging settings for DNS firewall. + */ + dns?: unknown; - /** - * Logging settings for HTTP/HTTPS firewall. - */ - http?: unknown; + /** + * Logging settings for HTTP/HTTPS firewall. + */ + http?: unknown; - /** - * Logging settings for Network firewall. - */ - l4?: unknown; + /** + * Logging settings for Network firewall. + */ + l4?: unknown; + } } export interface LoggingUpdateParams { @@ -79,7 +81,29 @@ export interface LoggingUpdateParams { /** * Body param: Logging settings by rule type. */ - settings_by_rule_type?: UnnamedSchemaRefE86eeb84b7e922c35cfb0031a6309f7b; + settings_by_rule_type?: LoggingUpdateParams.SettingsByRuleType; +} + +export namespace LoggingUpdateParams { + /** + * Logging settings by rule type. + */ + export interface SettingsByRuleType { + /** + * Logging settings for DNS firewall. + */ + dns?: unknown; + + /** + * Logging settings for HTTP/HTTPS firewall. + */ + http?: unknown; + + /** + * Logging settings for Network firewall. + */ + l4?: unknown; + } } export interface LoggingGetParams { @@ -88,7 +112,6 @@ export interface LoggingGetParams { export namespace Logging { export import LoggingSetting = LoggingAPI.LoggingSetting; - export import UnnamedSchemaRefE86eeb84b7e922c35cfb0031a6309f7b = LoggingAPI.UnnamedSchemaRefE86eeb84b7e922c35cfb0031a6309f7b; export import LoggingUpdateParams = LoggingAPI.LoggingUpdateParams; export import LoggingGetParams = LoggingAPI.LoggingGetParams; } diff --git a/src/resources/zero-trust/gateway/proxy-endpoints.ts b/src/resources/zero-trust/gateway/proxy-endpoints.ts index 4f584378fc..8e82a964bf 100644 --- a/src/resources/zero-trust/gateway/proxy-endpoints.ts +++ b/src/resources/zero-trust/gateway/proxy-endpoints.ts @@ -117,29 +117,6 @@ export interface ProxyEndpoint { updated_at?: string; } -export interface UnnamedSchemaRef4753ee81779d0e57189420079abab61e { - id?: string; - - created_at?: string; - - /** - * A list of CIDRs to restrict ingress connections. - */ - ips?: Array; - - /** - * The name of the proxy endpoint. - */ - name?: string; - - /** - * The subdomain to be used as the destination in the proxy client. - */ - subdomain?: string; - - updated_at?: string; -} - export type ProxyEndpointDeleteResponse = unknown | string | null; export interface ProxyEndpointCreateParams { @@ -199,7 +176,6 @@ export interface ProxyEndpointGetParams { export namespace ProxyEndpoints { export import GatewayIPs = ProxyEndpointsAPI.GatewayIPs; export import ProxyEndpoint = ProxyEndpointsAPI.ProxyEndpoint; - export import UnnamedSchemaRef4753ee81779d0e57189420079abab61e = ProxyEndpointsAPI.UnnamedSchemaRef4753ee81779d0e57189420079abab61e; export import ProxyEndpointDeleteResponse = ProxyEndpointsAPI.ProxyEndpointDeleteResponse; export import ProxyEndpointsSinglePage = ProxyEndpointsAPI.ProxyEndpointsSinglePage; export import ProxyEndpointCreateParams = ProxyEndpointsAPI.ProxyEndpointCreateParams; diff --git a/src/resources/zero-trust/index.ts b/src/resources/zero-trust/index.ts index b7c759549b..070d3c70ea 100644 --- a/src/resources/zero-trust/index.ts +++ b/src/resources/zero-trust/index.ts @@ -33,6 +33,7 @@ export { DevicesSinglePage, Devices, } from './devices/index'; +export { DeviceExperienceMonitor, NetworkPath, Percentiles, DEX } from './dex/index'; export { GatewayCreateResponse, GatewayListResponse, @@ -50,7 +51,6 @@ export { OrganizationRevokeUsersParams, Organizations, } from './organizations'; -export { NetworkPath, Percentiles, UnnamedSchemaRefBf9e2abcf1b78a6cab8e6e29e2228a11, DEX } from './dex/index'; export { Networks } from './networks/index'; export { Seat, SeatEditResponse, SeatEditParams, Seats } from './seats'; export { diff --git a/src/resources/zero-trust/networks/index.ts b/src/resources/zero-trust/networks/index.ts index 101f5ceb96..af26d7c41a 100644 --- a/src/resources/zero-trust/networks/index.ts +++ b/src/resources/zero-trust/networks/index.ts @@ -1,10 +1,9 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -export { Networks } from './networks'; export { + NetworkRoute, Route, Teamnet, - UnnamedSchemaRefC125d35cbb7f93aab989cd19bd764ed6, RouteCreateParams, RouteListParams, RouteDeleteParams, @@ -12,6 +11,7 @@ export { TeamnetsV4PagePaginationArray, Routes, } from './routes/index'; +export { Networks } from './networks'; export { VirtualNetwork, VirtualNetworkCreateResponse, diff --git a/src/resources/zero-trust/networks/networks.ts b/src/resources/zero-trust/networks/networks.ts index b490266e3f..cc44391cd5 100644 --- a/src/resources/zero-trust/networks/networks.ts +++ b/src/resources/zero-trust/networks/networks.ts @@ -11,9 +11,9 @@ export class Networks extends APIResource { export namespace Networks { export import Routes = RoutesAPI.Routes; + export import NetworkRoute = RoutesAPI.NetworkRoute; export import Route = RoutesAPI.Route; export import Teamnet = RoutesAPI.Teamnet; - export import UnnamedSchemaRefC125d35cbb7f93aab989cd19bd764ed6 = RoutesAPI.UnnamedSchemaRefC125d35cbb7f93aab989cd19bd764ed6; export import TeamnetsV4PagePaginationArray = RoutesAPI.TeamnetsV4PagePaginationArray; export import RouteCreateParams = RoutesAPI.RouteCreateParams; export import RouteListParams = RoutesAPI.RouteListParams; diff --git a/src/resources/zero-trust/networks/routes/index.ts b/src/resources/zero-trust/networks/routes/index.ts index 9a429b1ab6..8b38b59ed1 100644 --- a/src/resources/zero-trust/networks/routes/index.ts +++ b/src/resources/zero-trust/networks/routes/index.ts @@ -3,9 +3,9 @@ export { IPGetParams, IPs } from './ips'; export { NetworkCreateParams, NetworkDeleteParams, NetworkEditParams, Networks } from './networks'; export { + NetworkRoute, Route, Teamnet, - UnnamedSchemaRefC125d35cbb7f93aab989cd19bd764ed6, RouteCreateParams, RouteListParams, RouteDeleteParams, diff --git a/src/resources/zero-trust/networks/routes/routes.ts b/src/resources/zero-trust/networks/routes/routes.ts index 27ec85131a..6c1028ca93 100644 --- a/src/resources/zero-trust/networks/routes/routes.ts +++ b/src/resources/zero-trust/networks/routes/routes.ts @@ -66,7 +66,7 @@ export class Routes extends APIResource { export class TeamnetsV4PagePaginationArray extends V4PagePaginationArray {} -export interface Route { +export interface NetworkRoute { /** * UUID of the route. */ @@ -106,7 +106,7 @@ export interface Route { virtual_network_id?: unknown; } -export interface Teamnet { +export interface Route { /** * UUID of the route. */ @@ -133,35 +133,20 @@ export interface Teamnet { */ network?: string; - /** - * The type of tunnel. - */ - tun_type?: 'cfd_tunnel' | 'warp_connector' | 'ip_sec' | 'gre' | 'cni'; - /** * UUID of the Cloudflare Tunnel serving the route. */ tunnel_id?: unknown; - /** - * The user-friendly name of the Cloudflare Tunnel serving the route. - */ - tunnel_name?: unknown; - /** * UUID of the Tunnel Virtual Network this route belongs to. If no virtual networks * are configured, the route is assigned to the default virtual network of the * account. */ virtual_network_id?: unknown; - - /** - * A user-friendly name for the virtual network. - */ - virtual_network_name?: string; } -export interface UnnamedSchemaRefC125d35cbb7f93aab989cd19bd764ed6 { +export interface Teamnet { /** * UUID of the route. */ @@ -188,17 +173,32 @@ export interface UnnamedSchemaRefC125d35cbb7f93aab989cd19bd764ed6 { */ network?: string; + /** + * The type of tunnel. + */ + tun_type?: 'cfd_tunnel' | 'warp_connector' | 'ip_sec' | 'gre' | 'cni'; + /** * UUID of the Cloudflare Tunnel serving the route. */ tunnel_id?: unknown; + /** + * The user-friendly name of the Cloudflare Tunnel serving the route. + */ + tunnel_name?: unknown; + /** * UUID of the Tunnel Virtual Network this route belongs to. If no virtual networks * are configured, the route is assigned to the default virtual network of the * account. */ virtual_network_id?: unknown; + + /** + * A user-friendly name for the virtual network. + */ + virtual_network_name?: string; } export interface RouteCreateParams { @@ -325,9 +325,9 @@ export interface RouteEditParams { } export namespace Routes { + export import NetworkRoute = RoutesAPI.NetworkRoute; export import Route = RoutesAPI.Route; export import Teamnet = RoutesAPI.Teamnet; - export import UnnamedSchemaRefC125d35cbb7f93aab989cd19bd764ed6 = RoutesAPI.UnnamedSchemaRefC125d35cbb7f93aab989cd19bd764ed6; export import TeamnetsV4PagePaginationArray = RoutesAPI.TeamnetsV4PagePaginationArray; export import RouteCreateParams = RoutesAPI.RouteCreateParams; export import RouteListParams = RoutesAPI.RouteListParams; diff --git a/src/resources/zero-trust/zero-trust.ts b/src/resources/zero-trust/zero-trust.ts index 9c1bfdc499..c75b1f7375 100644 --- a/src/resources/zero-trust/zero-trust.ts +++ b/src/resources/zero-trust/zero-trust.ts @@ -66,9 +66,9 @@ export namespace ZeroTrust { export import Access = AccessAPI.Access; export import AccessRule = AccessAPI.AccessRule; export import DEX = DEXAPI.DEX; + export import DeviceExperienceMonitor = DEXAPI.DeviceExperienceMonitor; export import NetworkPath = DEXAPI.NetworkPath; export import Percentiles = DEXAPI.Percentiles; - export import UnnamedSchemaRefBf9e2abcf1b78a6cab8e6e29e2228a11 = DEXAPI.UnnamedSchemaRefBf9e2abcf1b78a6cab8e6e29e2228a11; export import Tunnels = TunnelsAPI.Tunnels; export import Tunnel = TunnelsAPI.Tunnel; export import WARPConnectorTunnel = TunnelsAPI.WARPConnectorTunnel;