Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Apr 10, 2024
1 parent 4c56e68 commit 070b79b
Show file tree
Hide file tree
Showing 36 changed files with 137 additions and 580 deletions.
29 changes: 10 additions & 19 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -3246,8 +3246,8 @@ Methods:
Types:

- <code><a href="./src/resources/magic-transit/magic-transit.ts">HealthCheck</a></code>
- <code><a href="./src/resources/magic-transit/magic-transit.ts">HealthCheckRate</a></code>
- <code><a href="./src/resources/magic-transit/magic-transit.ts">HealthCheckType</a></code>
- <code><a href="./src/resources/magic-transit/magic-transit.ts">UnnamedSchemaRefEebdc868ce7f7ae92e23438caa84e7b5</a></code>

## CfInterconnects

Expand Down Expand Up @@ -3418,7 +3418,6 @@ Methods:
Types:

- <code><a href="./src/resources/magic-network-monitoring/configs/configs.ts">Configuration</a></code>
- <code><a href="./src/resources/magic-network-monitoring/configs/configs.ts">UnnamedSchemaRef621ca3f6ea9a96427c902b0d14279ff8</a></code>

Methods:

Expand All @@ -3439,7 +3438,6 @@ Methods:
Types:

- <code><a href="./src/resources/magic-network-monitoring/rules/rules.ts">MagicNetworkMonitoringRule</a></code>
- <code><a href="./src/resources/magic-network-monitoring/rules/rules.ts">UnnamedSchemaRef99ba74ba6027c3c87ca03d4e81cfc16d</a></code>

Methods:

Expand Down Expand Up @@ -3628,7 +3626,6 @@ Types:
- <code><a href="./src/resources/rules/lists/lists.ts">Hostname</a></code>
- <code><a href="./src/resources/rules/lists/lists.ts">List</a></code>
- <code><a href="./src/resources/rules/lists/lists.ts">Redirect</a></code>
- <code><a href="./src/resources/rules/lists/lists.ts">UnnamedSchemaRefE706d5e8367564544e2991af82ebb07a</a></code>
- <code><a href="./src/resources/rules/lists/lists.ts">ListDeleteResponse</a></code>

Methods:
Expand All @@ -3643,7 +3640,7 @@ Methods:

Types:

- <code><a href="./src/resources/rules/lists/bulk-operations.ts">UnnamedSchemaRefCc279fb99baf6a166db5c4e790a8c6cd</a></code>
- <code><a href="./src/resources/rules/lists/bulk-operations.ts">OperationStatus</a></code>
- <code><a href="./src/resources/rules/lists/bulk-operations.ts">BulkOperationGetResponse</a></code>

Methods:
Expand All @@ -3654,8 +3651,8 @@ Methods:

Types:

- <code><a href="./src/resources/rules/lists/items.ts">UnnamedSchemaRef34bb6e31800bc0207c083affa12d2775</a></code>
- <code><a href="./src/resources/rules/lists/items.ts">UnnamedSchemaRef46621d4d5b6644caae5c9167b8e28865</a></code>
- <code><a href="./src/resources/rules/lists/items.ts">ListCursor</a></code>
- <code><a href="./src/resources/rules/lists/items.ts">ListItem</a></code>
- <code><a href="./src/resources/rules/lists/items.ts">ItemCreateResponse</a></code>
- <code><a href="./src/resources/rules/lists/items.ts">ItemUpdateResponse</a></code>
- <code><a href="./src/resources/rules/lists/items.ts">ItemListResponse</a></code>
Expand All @@ -3678,7 +3675,6 @@ Types:

- <code><a href="./src/resources/storage/analytics.ts">Components</a></code>
- <code><a href="./src/resources/storage/analytics.ts">Schema</a></code>
- <code><a href="./src/resources/storage/analytics.ts">UnnamedSchemaRef608bee5065f7314d6fa572b89a1910f7</a></code>

Methods:

Expand Down Expand Up @@ -3875,7 +3871,7 @@ Methods:

Types:

- <code><a href="./src/resources/alerting/alerting.ts">UnnamedSchemaRefD6e23adacaca017802aaa484a8b3f405</a></code>
- <code><a href="./src/resources/alerting/alerting.ts">Alert</a></code>

## AvailableAlerts

Expand Down Expand Up @@ -4102,9 +4098,9 @@ Methods:

Types:

- <code><a href="./src/resources/zero-trust/devices/dex-tests.ts">DEXTest</a></code>
- <code><a href="./src/resources/zero-trust/devices/dex-tests.ts">SchemaData</a></code>
- <code><a href="./src/resources/zero-trust/devices/dex-tests.ts">SchemaHTTP</a></code>
- <code><a href="./src/resources/zero-trust/devices/dex-tests.ts">UnnamedSchemaRef15fd6ef0641450fd873ffb71715170c9</a></code>
- <code><a href="./src/resources/zero-trust/devices/dex-tests.ts">DEXTestDeleteResponse</a></code>

Methods:
Expand All @@ -4120,7 +4116,6 @@ Methods:
Types:

- <code><a href="./src/resources/zero-trust/devices/networks.ts">DeviceNetwork</a></code>
- <code><a href="./src/resources/zero-trust/devices/networks.ts">UnnamedSchemaRefD2b048663faf5e0cd5c90501b71171de</a></code>
- <code><a href="./src/resources/zero-trust/devices/networks.ts">NetworkDeleteResponse</a></code>

Methods:
Expand All @@ -4136,7 +4131,6 @@ Methods:
Types:

- <code><a href="./src/resources/zero-trust/devices/policies/policies.ts">SettingsPolicy</a></code>
- <code><a href="./src/resources/zero-trust/devices/policies/policies.ts">UnnamedSchemaRefF636ff9f2cb41ff4b715cf8ed8515581</a></code>
- <code><a href="./src/resources/zero-trust/devices/policies/policies.ts">PolicyDeleteResponse</a></code>

Methods:
Expand All @@ -4162,7 +4156,6 @@ Methods:
Types:

- <code><a href="./src/resources/zero-trust/devices/policies/excludes.ts">SplitTunnelExclude</a></code>
- <code><a href="./src/resources/zero-trust/devices/policies/excludes.ts">UnnamedSchemaRef0462afe1a32ee90b1999d4277af59fa8</a></code>
- <code><a href="./src/resources/zero-trust/devices/policies/excludes.ts">ExcludeUpdateResponse</a></code>
- <code><a href="./src/resources/zero-trust/devices/policies/excludes.ts">ExcludeGetResponse</a></code>

Expand All @@ -4177,7 +4170,7 @@ Methods:
Types:

- <code><a href="./src/resources/zero-trust/devices/policies/fallback-domains.ts">FallbackDomain</a></code>
- <code><a href="./src/resources/zero-trust/devices/policies/fallback-domains.ts">UnnamedSchemaRef1fbf91ecd61792c751fead58dc8005e6</a></code>
- <code><a href="./src/resources/zero-trust/devices/policies/fallback-domains.ts">FallbackDomainPolicy</a></code>
- <code><a href="./src/resources/zero-trust/devices/policies/fallback-domains.ts">FallbackDomainUpdateResponse</a></code>
- <code><a href="./src/resources/zero-trust/devices/policies/fallback-domains.ts">FallbackDomainGetResponse</a></code>

Expand All @@ -4192,7 +4185,6 @@ Methods:
Types:

- <code><a href="./src/resources/zero-trust/devices/policies/includes.ts">SplitTunnelInclude</a></code>
- <code><a href="./src/resources/zero-trust/devices/policies/includes.ts">UnnamedSchemaRef5e0c6134a624678286f4a424b001870a</a></code>
- <code><a href="./src/resources/zero-trust/devices/policies/includes.ts">IncludeUpdateResponse</a></code>
- <code><a href="./src/resources/zero-trust/devices/policies/includes.ts">IncludeGetResponse</a></code>

Expand All @@ -4209,9 +4201,6 @@ Types:
- <code><a href="./src/resources/zero-trust/devices/posture/posture.ts">DeviceInput</a></code>
- <code><a href="./src/resources/zero-trust/devices/posture/posture.ts">DeviceMatch</a></code>
- <code><a href="./src/resources/zero-trust/devices/posture/posture.ts">DevicePostureRule</a></code>
- <code><a href="./src/resources/zero-trust/devices/posture/posture.ts">UnnamedSchemaRef34ef0ad73a63c3f76ed170adca181930</a></code>
- <code><a href="./src/resources/zero-trust/devices/posture/posture.ts">UnnamedSchemaRef41885dd46b9e0294254c49305a273681</a></code>
- <code><a href="./src/resources/zero-trust/devices/posture/posture.ts">UnnamedSchemaRef9e35ef84511131488ae286ce78ac4b27</a></code>
- <code><a href="./src/resources/zero-trust/devices/posture/posture.ts">PostureDeleteResponse</a></code>

Methods:
Expand All @@ -4227,7 +4216,6 @@ Methods:
Types:

- <code><a href="./src/resources/zero-trust/devices/posture/integrations.ts">Integration</a></code>
- <code><a href="./src/resources/zero-trust/devices/posture/integrations.ts">UnnamedSchemaRefB84b377dfc9454d455b646d4bc9ab507</a></code>
- <code><a href="./src/resources/zero-trust/devices/posture/integrations.ts">IntegrationDeleteResponse</a></code>

Methods:
Expand Down Expand Up @@ -4343,6 +4331,9 @@ Types:
- <code><a href="./src/resources/zero-trust/access/applications/applications.ts">Application</a></code>
- <code><a href="./src/resources/zero-trust/access/applications/applications.ts">CorsHeaders</a></code>
- <code><a href="./src/resources/zero-trust/access/applications/applications.ts">CustomPagesh</a></code>
- <code><a href="./src/resources/zero-trust/access/applications/applications.ts">SaasAppNameFormat</a></code>
- <code><a href="./src/resources/zero-trust/access/applications/applications.ts">SaasAppNameIDFormat</a></code>
- <code><a href="./src/resources/zero-trust/access/applications/applications.ts">SaasAppSource</a></code>
- <code><a href="./src/resources/zero-trust/access/applications/applications.ts">SAMLSaasApp</a></code>
- <code><a href="./src/resources/zero-trust/access/applications/applications.ts">SelfHostedDomainsh</a></code>
- <code><a href="./src/resources/zero-trust/access/applications/applications.ts">ApplicationDeleteResponse</a></code>
Expand Down
2 changes: 1 addition & 1 deletion src/resources/alerting/alerting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class Alerting extends APIResource {
policies: PoliciesAPI.Policies = new PoliciesAPI.Policies(this._client);
}

export interface UnnamedSchemaRefD6e23adacaca017802aaa484a8b3f405 {
export interface Alert {
/**
* UUID
*/
Expand Down
16 changes: 0 additions & 16 deletions src/resources/magic-network-monitoring/configs/configs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,21 +87,6 @@ export interface Configuration {
router_ips: Array<string>;
}

export interface UnnamedSchemaRef621ca3f6ea9a96427c902b0d14279ff8 {
/**
* Fallback sampling rate of flow messages being sent in packets per second. This
* should match the packet sampling rate configured on the router.
*/
default_sampling: number;

/**
* The account name.
*/
name: string;

router_ips: Array<string>;
}

export interface ConfigCreateParams {
/**
* Path param:
Expand Down Expand Up @@ -156,7 +141,6 @@ export interface ConfigGetParams {

export namespace Configs {
export import Configuration = ConfigsAPI.Configuration;
export import UnnamedSchemaRef621ca3f6ea9a96427c902b0d14279ff8 = ConfigsAPI.UnnamedSchemaRef621ca3f6ea9a96427c902b0d14279ff8;
export import ConfigCreateParams = ConfigsAPI.ConfigCreateParams;
export import ConfigUpdateParams = ConfigsAPI.ConfigUpdateParams;
export import ConfigDeleteParams = ConfigsAPI.ConfigDeleteParams;
Expand Down
1 change: 0 additions & 1 deletion src/resources/magic-network-monitoring/configs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

export {
Configuration,
UnnamedSchemaRef621ca3f6ea9a96427c902b0d14279ff8,
ConfigCreateParams,
ConfigUpdateParams,
ConfigDeleteParams,
Expand Down
2 changes: 0 additions & 2 deletions src/resources/magic-network-monitoring/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

export {
Configuration,
UnnamedSchemaRef621ca3f6ea9a96427c902b0d14279ff8,
ConfigCreateParams,
ConfigUpdateParams,
ConfigDeleteParams,
Expand All @@ -13,7 +12,6 @@ export {
export { MagicNetworkMonitoring } from './magic-network-monitoring';
export {
MagicNetworkMonitoringRule,
UnnamedSchemaRef99ba74ba6027c3c87ca03d4e81cfc16d,
RuleCreateParams,
RuleUpdateParams,
RuleListParams,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,13 @@ export class MagicNetworkMonitoring extends APIResource {
export namespace MagicNetworkMonitoring {
export import Configs = ConfigsAPI.Configs;
export import Configuration = ConfigsAPI.Configuration;
export import UnnamedSchemaRef621ca3f6ea9a96427c902b0d14279ff8 = ConfigsAPI.UnnamedSchemaRef621ca3f6ea9a96427c902b0d14279ff8;
export import ConfigCreateParams = ConfigsAPI.ConfigCreateParams;
export import ConfigUpdateParams = ConfigsAPI.ConfigUpdateParams;
export import ConfigDeleteParams = ConfigsAPI.ConfigDeleteParams;
export import ConfigEditParams = ConfigsAPI.ConfigEditParams;
export import ConfigGetParams = ConfigsAPI.ConfigGetParams;
export import Rules = RulesAPI.Rules;
export import MagicNetworkMonitoringRule = RulesAPI.MagicNetworkMonitoringRule;
export import UnnamedSchemaRef99ba74ba6027c3c87ca03d4e81cfc16d = RulesAPI.UnnamedSchemaRef99ba74ba6027c3c87ca03d4e81cfc16d;
export import MagicNetworkMonitoringRulesSinglePage = RulesAPI.MagicNetworkMonitoringRulesSinglePage;
export import RuleCreateParams = RulesAPI.RuleCreateParams;
export import RuleUpdateParams = RulesAPI.RuleUpdateParams;
Expand Down
1 change: 0 additions & 1 deletion src/resources/magic-network-monitoring/rules/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
export { Advertisement, AdvertisementEditParams, Advertisements } from './advertisements';
export {
MagicNetworkMonitoringRule,
UnnamedSchemaRef99ba74ba6027c3c87ca03d4e81cfc16d,
RuleCreateParams,
RuleUpdateParams,
RuleListParams,
Expand Down
42 changes: 0 additions & 42 deletions src/resources/magic-network-monitoring/rules/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,47 +149,6 @@ export interface MagicNetworkMonitoringRule {
packet_threshold?: number;
}

export interface UnnamedSchemaRef99ba74ba6027c3c87ca03d4e81cfc16d {
/**
* Toggle on if you would like Cloudflare to automatically advertise the IP
* Prefixes within the rule via Magic Transit when the rule is triggered. Only
* available for users of Magic Transit.
*/
automatic_advertisement: boolean | null;

/**
* The amount of time that the rule threshold must be exceeded to send an alert
* notification. The final value must be equivalent to one of the following 8
* values ["1m","5m","10m","15m","20m","30m","45m","60m"]. The format is
* AhBmCsDmsEusFns where A, B, C, D, E and F durations are optional; however at
* least one unit must be provided.
*/
duration: string;

/**
* The name of the rule. Must be unique. Supports characters A-Z, a-z, 0-9,
* underscore (\_), dash (-), period (.), and tilde (~). You can’t have a space in
* the rule name. Max 256 characters.
*/
name: string;

prefixes: Array<string>;

id?: string;

/**
* The number of bits per second for the rule. When this value is exceeded for the
* set duration, an alert notification is sent. Minimum of 1 and no maximum.
*/
bandwidth_threshold?: number;

/**
* The number of packets per second for the rule. When this value is exceeded for
* the set duration, an alert notification is sent. Minimum of 1 and no maximum.
*/
packet_threshold?: number;
}

export interface RuleCreateParams {
/**
* Path param:
Expand Down Expand Up @@ -248,7 +207,6 @@ export interface RuleGetParams {

export namespace Rules {
export import MagicNetworkMonitoringRule = RulesAPI.MagicNetworkMonitoringRule;
export import UnnamedSchemaRef99ba74ba6027c3c87ca03d4e81cfc16d = RulesAPI.UnnamedSchemaRef99ba74ba6027c3c87ca03d4e81cfc16d;
export import MagicNetworkMonitoringRulesSinglePage = RulesAPI.MagicNetworkMonitoringRulesSinglePage;
export import RuleCreateParams = RulesAPI.RuleCreateParams;
export import RuleUpdateParams = RulesAPI.RuleUpdateParams;
Expand Down
4 changes: 2 additions & 2 deletions src/resources/magic-transit/cf-interconnects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export namespace CfInterconnectListResponse {
/**
* How frequent the health check is run. The default value is `mid`.
*/
rate?: MagicTransitAPI.UnnamedSchemaRefEebdc868ce7f7ae92e23438caa84e7b5;
rate?: MagicTransitAPI.HealthCheckRate;

/**
* The destination address in a request type health check. After the healthcheck is
Expand Down Expand Up @@ -219,7 +219,7 @@ export namespace CfInterconnectUpdateParams {
/**
* How frequent the health check is run. The default value is `mid`.
*/
rate?: MagicTransitAPI.UnnamedSchemaRefEebdc868ce7f7ae92e23438caa84e7b5;
rate?: MagicTransitAPI.HealthCheckRate;

/**
* The destination address in a request type health check. After the healthcheck is
Expand Down
4 changes: 2 additions & 2 deletions src/resources/magic-transit/ipsec-tunnels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export namespace IPSECTunnelCreateResponse {
/**
* How frequent the health check is run. The default value is `mid`.
*/
rate?: MagicTransitAPI.UnnamedSchemaRefEebdc868ce7f7ae92e23438caa84e7b5;
rate?: MagicTransitAPI.HealthCheckRate;

/**
* The destination address in a request type health check. After the healthcheck is
Expand Down Expand Up @@ -307,7 +307,7 @@ export namespace IPSECTunnelListResponse {
/**
* How frequent the health check is run. The default value is `mid`.
*/
rate?: MagicTransitAPI.UnnamedSchemaRefEebdc868ce7f7ae92e23438caa84e7b5;
rate?: MagicTransitAPI.HealthCheckRate;

/**
* The destination address in a request type health check. After the healthcheck is
Expand Down
10 changes: 5 additions & 5 deletions src/resources/magic-transit/magic-transit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export interface HealthCheck {
/**
* How frequent the health check is run. The default value is `mid`.
*/
rate?: UnnamedSchemaRefEebdc868ce7f7ae92e23438caa84e7b5;
rate?: HealthCheckRate;

/**
* The destination address in a request type health check. After the healthcheck is
Expand All @@ -52,14 +52,14 @@ export interface HealthCheck {
}

/**
* The type of healthcheck to run, reply or request. The default value is `reply`.
* How frequent the health check is run. The default value is `mid`.
*/
export type HealthCheckType = 'reply' | 'request';
export type HealthCheckRate = 'low' | 'mid' | 'high';

/**
* How frequent the health check is run. The default value is `mid`.
* The type of healthcheck to run, reply or request. The default value is `reply`.
*/
export type UnnamedSchemaRefEebdc868ce7f7ae92e23438caa84e7b5 = 'low' | 'mid' | 'high';
export type HealthCheckType = 'reply' | 'request';

export namespace MagicTransit {
export import CfInterconnects = CfInterconnectsAPI.CfInterconnects;
Expand Down
1 change: 0 additions & 1 deletion src/resources/rules/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ export {
Hostname,
List,
Redirect,
UnnamedSchemaRefE706d5e8367564544e2991af82ebb07a,
ListDeleteResponse,
ListCreateParams,
ListUpdateParams,
Expand Down
4 changes: 2 additions & 2 deletions src/resources/rules/lists/bulk-operations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ export class BulkOperations extends APIResource {
/**
* The current status of the asynchronous operation.
*/
export type UnnamedSchemaRefCc279fb99baf6a166db5c4e790a8c6cd = 'pending' | 'running' | 'completed' | 'failed';
export type OperationStatus = 'pending' | 'running' | 'completed' | 'failed';

export type BulkOperationGetResponse = Array<unknown>;

export namespace BulkOperations {
export import UnnamedSchemaRefCc279fb99baf6a166db5c4e790a8c6cd = BulkOperationsAPI.UnnamedSchemaRefCc279fb99baf6a166db5c4e790a8c6cd;
export import OperationStatus = BulkOperationsAPI.OperationStatus;
export import BulkOperationGetResponse = BulkOperationsAPI.BulkOperationGetResponse;
}
Loading

0 comments on commit 070b79b

Please sign in to comment.