cloudflare 3.0.0-beta.1 → 3.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/index.d.mts +1 -1
  3. package/index.d.ts +1 -1
  4. package/package.json +1 -1
  5. package/resources/alerting/v3/destinations/destinations.d.ts +2 -1
  6. package/resources/alerting/v3/destinations/destinations.d.ts.map +1 -1
  7. package/resources/alerting/v3/destinations/destinations.js.map +1 -1
  8. package/resources/alerting/v3/destinations/destinations.mjs.map +1 -1
  9. package/resources/alerting/v3/destinations/index.d.ts +2 -2
  10. package/resources/alerting/v3/destinations/index.d.ts.map +1 -1
  11. package/resources/alerting/v3/destinations/index.js +5 -5
  12. package/resources/alerting/v3/destinations/index.js.map +1 -1
  13. package/resources/alerting/v3/destinations/index.mjs +2 -2
  14. package/resources/alerting/v3/destinations/index.mjs.map +1 -1
  15. package/resources/alerting/v3/destinations/pagerduty.d.ts +12 -13
  16. package/resources/alerting/v3/destinations/pagerduty.d.ts.map +1 -1
  17. package/resources/alerting/v3/destinations/pagerduty.js.map +1 -1
  18. package/resources/alerting/v3/destinations/pagerduty.mjs.map +1 -1
  19. package/resources/alerting/v3/destinations/webhooks.d.ts +17 -58
  20. package/resources/alerting/v3/destinations/webhooks.d.ts.map +1 -1
  21. package/resources/alerting/v3/destinations/webhooks.js.map +1 -1
  22. package/resources/alerting/v3/destinations/webhooks.mjs.map +1 -1
  23. package/resources/alerting/v3/histories.d.ts +5 -5
  24. package/resources/alerting/v3/histories.d.ts.map +1 -1
  25. package/resources/alerting/v3/histories.js +5 -5
  26. package/resources/alerting/v3/histories.js.map +1 -1
  27. package/resources/alerting/v3/histories.mjs +3 -3
  28. package/resources/alerting/v3/histories.mjs.map +1 -1
  29. package/resources/alerting/v3/index.d.ts +2 -2
  30. package/resources/alerting/v3/index.d.ts.map +1 -1
  31. package/resources/alerting/v3/index.js +4 -4
  32. package/resources/alerting/v3/index.js.map +1 -1
  33. package/resources/alerting/v3/index.mjs +2 -2
  34. package/resources/alerting/v3/index.mjs.map +1 -1
  35. package/resources/alerting/v3/policies.d.ts +20 -235
  36. package/resources/alerting/v3/policies.d.ts.map +1 -1
  37. package/resources/alerting/v3/policies.js.map +1 -1
  38. package/resources/alerting/v3/policies.mjs.map +1 -1
  39. package/resources/alerting/v3/v3.d.ts +3 -3
  40. package/resources/alerting/v3/v3.d.ts.map +1 -1
  41. package/resources/alerting/v3/v3.js +1 -1
  42. package/resources/alerting/v3/v3.js.map +1 -1
  43. package/resources/alerting/v3/v3.mjs +1 -1
  44. package/resources/alerting/v3/v3.mjs.map +1 -1
  45. package/resources/challenges/challenges.d.ts +9 -0
  46. package/resources/challenges/challenges.d.ts.map +1 -1
  47. package/resources/challenges/challenges.js +1 -0
  48. package/resources/challenges/challenges.js.map +1 -1
  49. package/resources/challenges/challenges.mjs +1 -0
  50. package/resources/challenges/challenges.mjs.map +1 -1
  51. package/resources/challenges/index.d.ts +1 -1
  52. package/resources/challenges/index.d.ts.map +1 -1
  53. package/resources/challenges/index.js +2 -1
  54. package/resources/challenges/index.js.map +1 -1
  55. package/resources/challenges/index.mjs +1 -1
  56. package/resources/challenges/index.mjs.map +1 -1
  57. package/resources/challenges/widgets.d.ts +267 -0
  58. package/resources/challenges/widgets.d.ts.map +1 -1
  59. package/resources/challenges/widgets.js +87 -1
  60. package/resources/challenges/widgets.js.map +1 -1
  61. package/resources/challenges/widgets.mjs +62 -0
  62. package/resources/challenges/widgets.mjs.map +1 -1
  63. package/resources/index.d.ts +1 -1
  64. package/resources/ips.d.ts +3 -3
  65. package/resources/page-shield/scripts.d.ts +12 -0
  66. package/resources/page-shield/scripts.d.ts.map +1 -1
  67. package/resources/page-shield/scripts.js.map +1 -1
  68. package/resources/page-shield/scripts.mjs.map +1 -1
  69. package/src/index.ts +1 -1
  70. package/src/resources/alerting/v3/destinations/destinations.ts +2 -1
  71. package/src/resources/alerting/v3/destinations/index.ts +4 -3
  72. package/src/resources/alerting/v3/destinations/pagerduty.ts +14 -15
  73. package/src/resources/alerting/v3/destinations/webhooks.ts +22 -71
  74. package/src/resources/alerting/v3/histories.ts +6 -6
  75. package/src/resources/alerting/v3/index.ts +3 -8
  76. package/src/resources/alerting/v3/policies.ts +25 -350
  77. package/src/resources/alerting/v3/v3.ts +3 -3
  78. package/src/resources/challenges/challenges.ts +9 -0
  79. package/src/resources/challenges/index.ts +12 -1
  80. package/src/resources/challenges/widgets.ts +391 -1
  81. package/src/resources/index.ts +1 -1
  82. package/src/resources/ips.ts +3 -3
  83. package/src/resources/page-shield/scripts.ts +18 -0
  84. package/src/version.ts +1 -1
  85. package/version.d.ts +1 -1
  86. package/version.js +1 -1
  87. package/version.mjs +1 -1
@@ -71,6 +71,18 @@ export class Pagerduty extends APIResource {
71
71
  }
72
72
  }
73
73
 
74
+ export interface AaaPagerduty {
75
+ /**
76
+ * UUID
77
+ */
78
+ id?: string;
79
+
80
+ /**
81
+ * The name of the pagerduty service.
82
+ */
83
+ name?: string;
84
+ }
85
+
74
86
  export interface PagerdutyCreateResponse {
75
87
  /**
76
88
  * token in form of UUID
@@ -80,21 +92,7 @@ export interface PagerdutyCreateResponse {
80
92
 
81
93
  export type PagerdutyDeleteResponse = unknown | Array<unknown> | string;
82
94
 
83
- export type PagerdutyGetResponse = Array<PagerdutyGetResponse.PagerdutyGetResponseItem>;
84
-
85
- export namespace PagerdutyGetResponse {
86
- export interface PagerdutyGetResponseItem {
87
- /**
88
- * UUID
89
- */
90
- id?: string;
91
-
92
- /**
93
- * The name of the pagerduty service.
94
- */
95
- name?: string;
96
- }
97
- }
95
+ export type PagerdutyGetResponse = Array<AaaPagerduty>;
98
96
 
99
97
  export interface PagerdutyLinkResponse {
100
98
  /**
@@ -132,6 +130,7 @@ export interface PagerdutyLinkParams {
132
130
  }
133
131
 
134
132
  export namespace Pagerduty {
133
+ export import AaaPagerduty = PagerdutyAPI.AaaPagerduty;
135
134
  export import PagerdutyCreateResponse = PagerdutyAPI.PagerdutyCreateResponse;
136
135
  export import PagerdutyDeleteResponse = PagerdutyAPI.PagerdutyDeleteResponse;
137
136
  export import PagerdutyGetResponse = PagerdutyAPI.PagerdutyGetResponse;
@@ -75,85 +75,18 @@ export class Webhooks extends APIResource {
75
75
  webhookId: string,
76
76
  params: WebhookGetParams,
77
77
  options?: Core.RequestOptions,
78
- ): Core.APIPromise<WebhookGetResponse> {
78
+ ): Core.APIPromise<AaaWebhooks> {
79
79
  const { account_id } = params;
80
80
  return (
81
81
  this._client.get(
82
82
  `/accounts/${account_id}/alerting/v3/destinations/webhooks/${webhookId}`,
83
83
  options,
84
- ) as Core.APIPromise<{ result: WebhookGetResponse }>
84
+ ) as Core.APIPromise<{ result: AaaWebhooks }>
85
85
  )._thenUnwrap((obj) => obj.result);
86
86
  }
87
87
  }
88
88
 
89
- export interface WebhookCreateResponse {
90
- /**
91
- * UUID
92
- */
93
- id?: string;
94
- }
95
-
96
- export interface WebhookUpdateResponse {
97
- /**
98
- * UUID
99
- */
100
- id?: string;
101
- }
102
-
103
- export type WebhookListResponse = Array<WebhookListResponse.WebhookListResponseItem>;
104
-
105
- export namespace WebhookListResponse {
106
- export interface WebhookListResponseItem {
107
- /**
108
- * The unique identifier of a webhook
109
- */
110
- id?: string;
111
-
112
- /**
113
- * Timestamp of when the webhook destination was created.
114
- */
115
- created_at?: string;
116
-
117
- /**
118
- * Timestamp of the last time an attempt to dispatch a notification to this webhook
119
- * failed.
120
- */
121
- last_failure?: string;
122
-
123
- /**
124
- * Timestamp of the last time Cloudflare was able to successfully dispatch a
125
- * notification using this webhook.
126
- */
127
- last_success?: string;
128
-
129
- /**
130
- * The name of the webhook destination. This will be included in the request body
131
- * when you receive a webhook notification.
132
- */
133
- name?: string;
134
-
135
- /**
136
- * Optional secret that will be passed in the `cf-webhook-auth` header when
137
- * dispatching generic webhook notifications or formatted for supported
138
- * destinations. Secrets are not returned in any API response body.
139
- */
140
- secret?: string;
141
-
142
- /**
143
- * Type of webhook endpoint.
144
- */
145
- type?: 'slack' | 'generic' | 'gchat';
146
-
147
- /**
148
- * The POST endpoint to call when dispatching a notification.
149
- */
150
- url?: string;
151
- }
152
- }
153
-
154
- export type WebhookDeleteResponse = unknown | Array<unknown> | string;
155
-
156
- export interface WebhookGetResponse {
89
+ export interface AaaWebhooks {
157
90
  /**
158
91
  * The unique identifier of a webhook
159
92
  */
@@ -200,6 +133,24 @@ export interface WebhookGetResponse {
200
133
  url?: string;
201
134
  }
202
135
 
136
+ export interface WebhookCreateResponse {
137
+ /**
138
+ * UUID
139
+ */
140
+ id?: string;
141
+ }
142
+
143
+ export interface WebhookUpdateResponse {
144
+ /**
145
+ * UUID
146
+ */
147
+ id?: string;
148
+ }
149
+
150
+ export type WebhookListResponse = Array<AaaWebhooks>;
151
+
152
+ export type WebhookDeleteResponse = unknown | Array<unknown> | string;
153
+
203
154
  export interface WebhookCreateParams {
204
155
  /**
205
156
  * Path param: The account id
@@ -272,11 +223,11 @@ export interface WebhookGetParams {
272
223
  }
273
224
 
274
225
  export namespace Webhooks {
226
+ export import AaaWebhooks = WebhooksAPI.AaaWebhooks;
275
227
  export import WebhookCreateResponse = WebhooksAPI.WebhookCreateResponse;
276
228
  export import WebhookUpdateResponse = WebhooksAPI.WebhookUpdateResponse;
277
229
  export import WebhookListResponse = WebhooksAPI.WebhookListResponse;
278
230
  export import WebhookDeleteResponse = WebhooksAPI.WebhookDeleteResponse;
279
- export import WebhookGetResponse = WebhooksAPI.WebhookGetResponse;
280
231
  export import WebhookCreateParams = WebhooksAPI.WebhookCreateParams;
281
232
  export import WebhookUpdateParams = WebhooksAPI.WebhookUpdateParams;
282
233
  export import WebhookListParams = WebhooksAPI.WebhookListParams;
@@ -14,19 +14,19 @@ export class Histories extends APIResource {
14
14
  list(
15
15
  params: HistoryListParams,
16
16
  options?: Core.RequestOptions,
17
- ): Core.PagePromise<HistoryListResponsesV4PagePaginationArray, HistoryListResponse> {
17
+ ): Core.PagePromise<AaaHistoriesV4PagePaginationArray, AaaHistory> {
18
18
  const { account_id, ...query } = params;
19
19
  return this._client.getAPIList(
20
20
  `/accounts/${account_id}/alerting/v3/history`,
21
- HistoryListResponsesV4PagePaginationArray,
21
+ AaaHistoriesV4PagePaginationArray,
22
22
  { query, ...options },
23
23
  );
24
24
  }
25
25
  }
26
26
 
27
- export class HistoryListResponsesV4PagePaginationArray extends V4PagePaginationArray<HistoryListResponse> {}
27
+ export class AaaHistoriesV4PagePaginationArray extends V4PagePaginationArray<AaaHistory> {}
28
28
 
29
- export interface HistoryListResponse {
29
+ export interface AaaHistory {
30
30
  /**
31
31
  * UUID
32
32
  */
@@ -94,7 +94,7 @@ export interface HistoryListParams extends V4PagePaginationArrayParams {
94
94
  }
95
95
 
96
96
  export namespace Histories {
97
- export import HistoryListResponse = HistoriesAPI.HistoryListResponse;
98
- export import HistoryListResponsesV4PagePaginationArray = HistoriesAPI.HistoryListResponsesV4PagePaginationArray;
97
+ export import AaaHistory = HistoriesAPI.AaaHistory;
98
+ export import AaaHistoriesV4PagePaginationArray = HistoriesAPI.AaaHistoriesV4PagePaginationArray;
99
99
  export import HistoryListParams = HistoriesAPI.HistoryListParams;
100
100
  }
@@ -1,18 +1,12 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- export { Destinations } from './destinations/index';
4
- export {
5
- HistoryListResponse,
6
- HistoryListParams,
7
- HistoryListResponsesV4PagePaginationArray,
8
- Histories,
9
- } from './histories';
3
+ export { AaaHistory, HistoryListParams, AaaHistoriesV4PagePaginationArray, Histories } from './histories';
10
4
  export {
5
+ AaaPolicies,
11
6
  PolicyCreateResponse,
12
7
  PolicyUpdateResponse,
13
8
  PolicyListResponse,
14
9
  PolicyDeleteResponse,
15
- PolicyGetResponse,
16
10
  PolicyCreateParams,
17
11
  PolicyUpdateParams,
18
12
  PolicyListParams,
@@ -20,4 +14,5 @@ export {
20
14
  PolicyGetParams,
21
15
  Policies,
22
16
  } from './policies';
17
+ export { Destinations } from './destinations/index';
23
18
  export { V3ListResponse, V3ListParams, V3 } from './v3';
@@ -71,361 +71,18 @@ export class Policies extends APIResource {
71
71
  policyId: string,
72
72
  params: PolicyGetParams,
73
73
  options?: Core.RequestOptions,
74
- ): Core.APIPromise<PolicyGetResponse> {
74
+ ): Core.APIPromise<AaaPolicies> {
75
75
  const { account_id } = params;
76
76
  return (
77
77
  this._client.get(
78
78
  `/accounts/${account_id}/alerting/v3/policies/${policyId}`,
79
79
  options,
80
- ) as Core.APIPromise<{ result: PolicyGetResponse }>
80
+ ) as Core.APIPromise<{ result: AaaPolicies }>
81
81
  )._thenUnwrap((obj) => obj.result);
82
82
  }
83
83
  }
84
84
 
85
- export interface PolicyCreateResponse {
86
- /**
87
- * UUID
88
- */
89
- id?: string;
90
- }
91
-
92
- export interface PolicyUpdateResponse {
93
- /**
94
- * UUID
95
- */
96
- id?: string;
97
- }
98
-
99
- export type PolicyListResponse = Array<PolicyListResponse.PolicyListResponseItem>;
100
-
101
- export namespace PolicyListResponse {
102
- export interface PolicyListResponseItem {
103
- /**
104
- * The unique identifier of a notification policy
105
- */
106
- id?: string;
107
-
108
- /**
109
- * Refers to which event will trigger a Notification dispatch. You can use the
110
- * endpoint to get available alert types which then will give you a list of
111
- * possible values.
112
- */
113
- alert_type?:
114
- | 'access_custom_certificate_expiration_type'
115
- | 'advanced_ddos_attack_l4_alert'
116
- | 'advanced_ddos_attack_l7_alert'
117
- | 'advanced_http_alert_error'
118
- | 'bgp_hijack_notification'
119
- | 'billing_usage_alert'
120
- | 'block_notification_block_removed'
121
- | 'block_notification_new_block'
122
- | 'block_notification_review_rejected'
123
- | 'brand_protection_alert'
124
- | 'brand_protection_digest'
125
- | 'clickhouse_alert_fw_anomaly'
126
- | 'clickhouse_alert_fw_ent_anomaly'
127
- | 'custom_ssl_certificate_event_type'
128
- | 'dedicated_ssl_certificate_event_type'
129
- | 'dos_attack_l4'
130
- | 'dos_attack_l7'
131
- | 'expiring_service_token_alert'
132
- | 'failing_logpush_job_disabled_alert'
133
- | 'fbm_auto_advertisement'
134
- | 'fbm_dosd_attack'
135
- | 'fbm_volumetric_attack'
136
- | 'health_check_status_notification'
137
- | 'hostname_aop_custom_certificate_expiration_type'
138
- | 'http_alert_edge_error'
139
- | 'http_alert_origin_error'
140
- | 'incident_alert'
141
- | 'load_balancing_health_alert'
142
- | 'load_balancing_pool_enablement_alert'
143
- | 'logo_match_alert'
144
- | 'magic_tunnel_health_check_event'
145
- | 'maintenance_event_notification'
146
- | 'mtls_certificate_store_certificate_expiration_type'
147
- | 'pages_event_alert'
148
- | 'radar_notification'
149
- | 'real_origin_monitoring'
150
- | 'scriptmonitor_alert_new_code_change_detections'
151
- | 'scriptmonitor_alert_new_hosts'
152
- | 'scriptmonitor_alert_new_malicious_hosts'
153
- | 'scriptmonitor_alert_new_malicious_scripts'
154
- | 'scriptmonitor_alert_new_malicious_url'
155
- | 'scriptmonitor_alert_new_max_length_resource_url'
156
- | 'scriptmonitor_alert_new_resources'
157
- | 'secondary_dns_all_primaries_failing'
158
- | 'secondary_dns_primaries_failing'
159
- | 'secondary_dns_zone_successfully_updated'
160
- | 'secondary_dns_zone_validation_warning'
161
- | 'sentinel_alert'
162
- | 'stream_live_notifications'
163
- | 'traffic_anomalies_alert'
164
- | 'tunnel_health_event'
165
- | 'tunnel_update_event'
166
- | 'universal_ssl_event_type'
167
- | 'web_analytics_metrics_update'
168
- | 'zone_aop_custom_certificate_expiration_type';
169
-
170
- created?: string;
171
-
172
- /**
173
- * Optional description for the Notification policy.
174
- */
175
- description?: string;
176
-
177
- /**
178
- * Whether or not the Notification policy is enabled.
179
- */
180
- enabled?: boolean;
181
-
182
- /**
183
- * Optional filters that allow you to be alerted only on a subset of events for
184
- * that alert type based on some criteria. This is only available for select alert
185
- * types. See alert type documentation for more details.
186
- */
187
- filters?: PolicyListResponseItem.Filters;
188
-
189
- /**
190
- * List of IDs that will be used when dispatching a notification. IDs for email
191
- * type will be the email address.
192
- */
193
- mechanisms?: Record<string, Array<PolicyListResponseItem.Mechanisms>>;
194
-
195
- modified?: string;
196
-
197
- /**
198
- * Name of the policy.
199
- */
200
- name?: string;
201
- }
202
-
203
- export namespace PolicyListResponseItem {
204
- /**
205
- * Optional filters that allow you to be alerted only on a subset of events for
206
- * that alert type based on some criteria. This is only available for select alert
207
- * types. See alert type documentation for more details.
208
- */
209
- export interface Filters {
210
- /**
211
- * Usage depends on specific alert type
212
- */
213
- actions?: Array<string>;
214
-
215
- /**
216
- * Used for configuring radar_notification
217
- */
218
- affected_asns?: Array<string>;
219
-
220
- /**
221
- * Used for configuring incident_alert. A list of identifiers for each component to
222
- * monitor.
223
- */
224
- affected_components?: Array<string>;
225
-
226
- /**
227
- * Used for configuring radar_notification
228
- */
229
- affected_locations?: Array<string>;
230
-
231
- /**
232
- * Used for configuring maintenance_event_notification
233
- */
234
- airport_code?: Array<string>;
235
-
236
- /**
237
- * Usage depends on specific alert type
238
- */
239
- alert_trigger_preferences?: Array<string>;
240
-
241
- /**
242
- * Used for configuring magic_tunnel_health_check_event
243
- */
244
- alert_trigger_preferences_value?: Array<'99.0' | '98.0' | '97.0'>;
245
-
246
- /**
247
- * Used for configuring load_balancing_pool_enablement_alert
248
- */
249
- enabled?: Array<string>;
250
-
251
- /**
252
- * Used for configuring pages_event_alert
253
- */
254
- environment?: Array<string>;
255
-
256
- /**
257
- * Used for configuring pages_event_alert
258
- */
259
- event?: Array<string>;
260
-
261
- /**
262
- * Used for configuring load_balancing_health_alert
263
- */
264
- event_source?: Array<string>;
265
-
266
- /**
267
- * Usage depends on specific alert type
268
- */
269
- event_type?: Array<string>;
270
-
271
- /**
272
- * Usage depends on specific alert type
273
- */
274
- group_by?: Array<string>;
275
-
276
- /**
277
- * Used for configuring health_check_status_notification
278
- */
279
- health_check_id?: Array<string>;
280
-
281
- /**
282
- * Used for configuring incident_alert
283
- */
284
- incident_impact?: Array<
285
- | 'INCIDENT_IMPACT_NONE'
286
- | 'INCIDENT_IMPACT_MINOR'
287
- | 'INCIDENT_IMPACT_MAJOR'
288
- | 'INCIDENT_IMPACT_CRITICAL'
289
- >;
290
-
291
- /**
292
- * Used for configuring stream_live_notifications
293
- */
294
- input_id?: Array<string>;
295
-
296
- /**
297
- * Used for configuring billing_usage_alert
298
- */
299
- limit?: Array<string>;
300
-
301
- /**
302
- * Used for configuring logo_match_alert
303
- */
304
- logo_tag?: Array<string>;
305
-
306
- /**
307
- * Used for configuring advanced_ddos_attack_l4_alert
308
- */
309
- megabits_per_second?: Array<string>;
310
-
311
- /**
312
- * Used for configuring load_balancing_health_alert
313
- */
314
- new_health?: Array<string>;
315
-
316
- /**
317
- * Used for configuring tunnel_health_event
318
- */
319
- new_status?: Array<string>;
320
-
321
- /**
322
- * Used for configuring advanced_ddos_attack_l4_alert
323
- */
324
- packets_per_second?: Array<string>;
325
-
326
- /**
327
- * Usage depends on specific alert type
328
- */
329
- pool_id?: Array<string>;
330
-
331
- /**
332
- * Used for configuring billing_usage_alert
333
- */
334
- product?: Array<string>;
335
-
336
- /**
337
- * Used for configuring pages_event_alert
338
- */
339
- project_id?: Array<string>;
340
-
341
- /**
342
- * Used for configuring advanced_ddos_attack_l4_alert
343
- */
344
- protocol?: Array<string>;
345
-
346
- /**
347
- * Usage depends on specific alert type
348
- */
349
- query_tag?: Array<string>;
350
-
351
- /**
352
- * Used for configuring advanced_ddos_attack_l7_alert
353
- */
354
- requests_per_second?: Array<string>;
355
-
356
- /**
357
- * Usage depends on specific alert type
358
- */
359
- selectors?: Array<string>;
360
-
361
- /**
362
- * Used for configuring clickhouse_alert_fw_ent_anomaly
363
- */
364
- services?: Array<string>;
365
-
366
- /**
367
- * Usage depends on specific alert type
368
- */
369
- slo?: Array<string>;
370
-
371
- /**
372
- * Used for configuring health_check_status_notification
373
- */
374
- status?: Array<string>;
375
-
376
- /**
377
- * Used for configuring advanced_ddos_attack_l7_alert
378
- */
379
- target_hostname?: Array<string>;
380
-
381
- /**
382
- * Used for configuring advanced_ddos_attack_l4_alert
383
- */
384
- target_ip?: Array<string>;
385
-
386
- /**
387
- * Used for configuring advanced_ddos_attack_l7_alert
388
- */
389
- target_zone_name?: Array<string>;
390
-
391
- /**
392
- * Used for configuring traffic_anomalies_alert
393
- */
394
- traffic_exclusions?: Array<'security_events'>;
395
-
396
- /**
397
- * Used for configuring tunnel_health_event
398
- */
399
- tunnel_id?: Array<string>;
400
-
401
- /**
402
- * Used for configuring magic_tunnel_health_check_event
403
- */
404
- tunnel_name?: Array<string>;
405
-
406
- /**
407
- * Usage depends on specific alert type
408
- */
409
- where?: Array<string>;
410
-
411
- /**
412
- * Usage depends on specific alert type
413
- */
414
- zones?: Array<string>;
415
- }
416
-
417
- export interface Mechanisms {
418
- /**
419
- * UUID
420
- */
421
- id?: string | string;
422
- }
423
- }
424
- }
425
-
426
- export type PolicyDeleteResponse = unknown | Array<unknown> | string;
427
-
428
- export interface PolicyGetResponse {
85
+ export interface AaaPolicies {
429
86
  /**
430
87
  * The unique identifier of a notification policy
431
88
  */
@@ -510,13 +167,13 @@ export interface PolicyGetResponse {
510
167
  * that alert type based on some criteria. This is only available for select alert
511
168
  * types. See alert type documentation for more details.
512
169
  */
513
- filters?: PolicyGetResponse.Filters;
170
+ filters?: AaaPolicies.Filters;
514
171
 
515
172
  /**
516
173
  * List of IDs that will be used when dispatching a notification. IDs for email
517
174
  * type will be the email address.
518
175
  */
519
- mechanisms?: Record<string, Array<PolicyGetResponse.Mechanisms>>;
176
+ mechanisms?: Record<string, Array<AaaPolicies.Mechanisms>>;
520
177
 
521
178
  modified?: string;
522
179
 
@@ -526,7 +183,7 @@ export interface PolicyGetResponse {
526
183
  name?: string;
527
184
  }
528
185
 
529
- export namespace PolicyGetResponse {
186
+ export namespace AaaPolicies {
530
187
  /**
531
188
  * Optional filters that allow you to be alerted only on a subset of events for
532
189
  * that alert type based on some criteria. This is only available for select alert
@@ -745,6 +402,24 @@ export namespace PolicyGetResponse {
745
402
  }
746
403
  }
747
404
 
405
+ export interface PolicyCreateResponse {
406
+ /**
407
+ * UUID
408
+ */
409
+ id?: string;
410
+ }
411
+
412
+ export interface PolicyUpdateResponse {
413
+ /**
414
+ * UUID
415
+ */
416
+ id?: string;
417
+ }
418
+
419
+ export type PolicyListResponse = Array<AaaPolicies>;
420
+
421
+ export type PolicyDeleteResponse = unknown | Array<unknown> | string;
422
+
748
423
  export interface PolicyCreateParams {
749
424
  /**
750
425
  * Path param: The account id
@@ -1399,11 +1074,11 @@ export interface PolicyGetParams {
1399
1074
  }
1400
1075
 
1401
1076
  export namespace Policies {
1077
+ export import AaaPolicies = PoliciesAPI.AaaPolicies;
1402
1078
  export import PolicyCreateResponse = PoliciesAPI.PolicyCreateResponse;
1403
1079
  export import PolicyUpdateResponse = PoliciesAPI.PolicyUpdateResponse;
1404
1080
  export import PolicyListResponse = PoliciesAPI.PolicyListResponse;
1405
1081
  export import PolicyDeleteResponse = PoliciesAPI.PolicyDeleteResponse;
1406
- export import PolicyGetResponse = PoliciesAPI.PolicyGetResponse;
1407
1082
  export import PolicyCreateParams = PoliciesAPI.PolicyCreateParams;
1408
1083
  export import PolicyUpdateParams = PoliciesAPI.PolicyUpdateParams;
1409
1084
  export import PolicyListParams = PoliciesAPI.PolicyListParams;
@@ -39,15 +39,15 @@ export namespace V3 {
39
39
  export import V3ListParams = V3API.V3ListParams;
40
40
  export import Destinations = DestinationsAPI.Destinations;
41
41
  export import Histories = HistoriesAPI.Histories;
42
- export import HistoryListResponse = HistoriesAPI.HistoryListResponse;
43
- export import HistoryListResponsesV4PagePaginationArray = HistoriesAPI.HistoryListResponsesV4PagePaginationArray;
42
+ export import AaaHistory = HistoriesAPI.AaaHistory;
43
+ export import AaaHistoriesV4PagePaginationArray = HistoriesAPI.AaaHistoriesV4PagePaginationArray;
44
44
  export import HistoryListParams = HistoriesAPI.HistoryListParams;
45
45
  export import Policies = PoliciesAPI.Policies;
46
+ export import AaaPolicies = PoliciesAPI.AaaPolicies;
46
47
  export import PolicyCreateResponse = PoliciesAPI.PolicyCreateResponse;
47
48
  export import PolicyUpdateResponse = PoliciesAPI.PolicyUpdateResponse;
48
49
  export import PolicyListResponse = PoliciesAPI.PolicyListResponse;
49
50
  export import PolicyDeleteResponse = PoliciesAPI.PolicyDeleteResponse;
50
- export import PolicyGetResponse = PoliciesAPI.PolicyGetResponse;
51
51
  export import PolicyCreateParams = PoliciesAPI.PolicyCreateParams;
52
52
  export import PolicyUpdateParams = PoliciesAPI.PolicyUpdateParams;
53
53
  export import PolicyListParams = PoliciesAPI.PolicyListParams;
@@ -9,4 +9,13 @@ export class Challenges extends APIResource {
9
9
 
10
10
  export namespace Challenges {
11
11
  export import Widgets = WidgetsAPI.Widgets;
12
+ export import NcChallengesAdminWidgetDetail = WidgetsAPI.NcChallengesAdminWidgetDetail;
13
+ export import NcChallengesAdminWidgetList = WidgetsAPI.NcChallengesAdminWidgetList;
14
+ export import NcChallengesAdminWidgetListsV4PagePaginationArray = WidgetsAPI.NcChallengesAdminWidgetListsV4PagePaginationArray;
15
+ export import WidgetCreateParams = WidgetsAPI.WidgetCreateParams;
16
+ export import WidgetUpdateParams = WidgetsAPI.WidgetUpdateParams;
17
+ export import WidgetListParams = WidgetsAPI.WidgetListParams;
18
+ export import WidgetDeleteParams = WidgetsAPI.WidgetDeleteParams;
19
+ export import WidgetGetParams = WidgetsAPI.WidgetGetParams;
20
+ export import WidgetRotateSecretParams = WidgetsAPI.WidgetRotateSecretParams;
12
21
  }