cloudflare 3.0.0-beta.1 → 3.0.0-beta.3
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.
- package/CHANGELOG.md +22 -0
- package/index.d.mts +1 -1
- package/index.d.ts +1 -1
- package/package.json +1 -1
- package/resources/alerting/v3/destinations/destinations.d.ts +2 -1
- package/resources/alerting/v3/destinations/destinations.d.ts.map +1 -1
- package/resources/alerting/v3/destinations/destinations.js.map +1 -1
- package/resources/alerting/v3/destinations/destinations.mjs.map +1 -1
- package/resources/alerting/v3/destinations/index.d.ts +2 -2
- package/resources/alerting/v3/destinations/index.d.ts.map +1 -1
- package/resources/alerting/v3/destinations/index.js +5 -5
- package/resources/alerting/v3/destinations/index.js.map +1 -1
- package/resources/alerting/v3/destinations/index.mjs +2 -2
- package/resources/alerting/v3/destinations/index.mjs.map +1 -1
- package/resources/alerting/v3/destinations/pagerduty.d.ts +12 -13
- package/resources/alerting/v3/destinations/pagerduty.d.ts.map +1 -1
- package/resources/alerting/v3/destinations/pagerduty.js.map +1 -1
- package/resources/alerting/v3/destinations/pagerduty.mjs.map +1 -1
- package/resources/alerting/v3/destinations/webhooks.d.ts +17 -58
- package/resources/alerting/v3/destinations/webhooks.d.ts.map +1 -1
- package/resources/alerting/v3/destinations/webhooks.js.map +1 -1
- package/resources/alerting/v3/destinations/webhooks.mjs.map +1 -1
- package/resources/alerting/v3/histories.d.ts +5 -5
- package/resources/alerting/v3/histories.d.ts.map +1 -1
- package/resources/alerting/v3/histories.js +5 -5
- package/resources/alerting/v3/histories.js.map +1 -1
- package/resources/alerting/v3/histories.mjs +3 -3
- package/resources/alerting/v3/histories.mjs.map +1 -1
- package/resources/alerting/v3/index.d.ts +2 -2
- package/resources/alerting/v3/index.d.ts.map +1 -1
- package/resources/alerting/v3/index.js +4 -4
- package/resources/alerting/v3/index.js.map +1 -1
- package/resources/alerting/v3/index.mjs +2 -2
- package/resources/alerting/v3/index.mjs.map +1 -1
- package/resources/alerting/v3/policies.d.ts +20 -235
- package/resources/alerting/v3/policies.d.ts.map +1 -1
- package/resources/alerting/v3/policies.js.map +1 -1
- package/resources/alerting/v3/policies.mjs.map +1 -1
- package/resources/alerting/v3/v3.d.ts +3 -3
- package/resources/alerting/v3/v3.d.ts.map +1 -1
- package/resources/alerting/v3/v3.js +1 -1
- package/resources/alerting/v3/v3.js.map +1 -1
- package/resources/alerting/v3/v3.mjs +1 -1
- package/resources/alerting/v3/v3.mjs.map +1 -1
- package/resources/challenges/challenges.d.ts +9 -0
- package/resources/challenges/challenges.d.ts.map +1 -1
- package/resources/challenges/challenges.js +1 -0
- package/resources/challenges/challenges.js.map +1 -1
- package/resources/challenges/challenges.mjs +1 -0
- package/resources/challenges/challenges.mjs.map +1 -1
- package/resources/challenges/index.d.ts +1 -1
- package/resources/challenges/index.d.ts.map +1 -1
- package/resources/challenges/index.js +2 -1
- package/resources/challenges/index.js.map +1 -1
- package/resources/challenges/index.mjs +1 -1
- package/resources/challenges/index.mjs.map +1 -1
- package/resources/challenges/widgets.d.ts +267 -0
- package/resources/challenges/widgets.d.ts.map +1 -1
- package/resources/challenges/widgets.js +87 -1
- package/resources/challenges/widgets.js.map +1 -1
- package/resources/challenges/widgets.mjs +62 -0
- package/resources/challenges/widgets.mjs.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/ips.d.ts +3 -3
- package/resources/page-shield/scripts.d.ts +12 -0
- package/resources/page-shield/scripts.d.ts.map +1 -1
- package/resources/page-shield/scripts.js.map +1 -1
- package/resources/page-shield/scripts.mjs.map +1 -1
- package/resources/zero-trust/access/access.d.ts +1 -1
- package/resources/zero-trust/access/access.d.ts.map +1 -1
- package/resources/zero-trust/access/certificates/certificates.d.ts +2 -2
- package/resources/zero-trust/access/certificates/certificates.d.ts.map +1 -1
- package/resources/zero-trust/access/certificates/index.d.ts +1 -1
- package/resources/zero-trust/access/certificates/index.d.ts.map +1 -1
- package/resources/zero-trust/access/certificates/settings.d.ts +6 -6
- package/resources/zero-trust/access/certificates/settings.d.ts.map +1 -1
- package/resources/zero-trust/access/certificates/settings.js +2 -2
- package/resources/zero-trust/access/certificates/settings.js.map +1 -1
- package/resources/zero-trust/access/certificates/settings.mjs +2 -2
- package/resources/zero-trust/access/certificates/settings.mjs.map +1 -1
- package/resources/zero-trust/access/index.d.ts +1 -1
- package/resources/zero-trust/access/index.d.ts.map +1 -1
- package/resources/zero-trust/access/index.js.map +1 -1
- package/resources/zero-trust/access/index.mjs.map +1 -1
- package/resources/zero-trust/access/keys.d.ts +3 -3
- package/resources/zero-trust/access/keys.d.ts.map +1 -1
- package/resources/zero-trust/access/keys.js +1 -1
- package/resources/zero-trust/access/keys.js.map +1 -1
- package/resources/zero-trust/access/keys.mjs +1 -1
- package/resources/zero-trust/access/keys.mjs.map +1 -1
- package/src/index.ts +1 -1
- package/src/resources/alerting/v3/destinations/destinations.ts +2 -1
- package/src/resources/alerting/v3/destinations/index.ts +4 -3
- package/src/resources/alerting/v3/destinations/pagerduty.ts +14 -15
- package/src/resources/alerting/v3/destinations/webhooks.ts +22 -71
- package/src/resources/alerting/v3/histories.ts +6 -6
- package/src/resources/alerting/v3/index.ts +3 -8
- package/src/resources/alerting/v3/policies.ts +25 -350
- package/src/resources/alerting/v3/v3.ts +3 -3
- package/src/resources/challenges/challenges.ts +9 -0
- package/src/resources/challenges/index.ts +12 -1
- package/src/resources/challenges/widgets.ts +391 -1
- package/src/resources/index.ts +1 -1
- package/src/resources/ips.ts +3 -3
- package/src/resources/page-shield/scripts.ts +18 -0
- package/src/resources/zero-trust/access/access.ts +1 -1
- package/src/resources/zero-trust/access/certificates/certificates.ts +2 -2
- package/src/resources/zero-trust/access/certificates/index.ts +2 -2
- package/src/resources/zero-trust/access/certificates/settings.ts +11 -14
- package/src/resources/zero-trust/access/index.ts +1 -1
- package/src/resources/zero-trust/access/keys.ts +4 -4
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -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<
|
|
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:
|
|
80
|
+
) as Core.APIPromise<{ result: AaaPolicies }>
|
|
81
81
|
)._thenUnwrap((obj) => obj.result);
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
export interface
|
|
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?:
|
|
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<
|
|
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
|
|
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
|
|
43
|
-
export import
|
|
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
|
}
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless.
|
|
2
2
|
|
|
3
3
|
export { Challenges } from './challenges';
|
|
4
|
-
export {
|
|
4
|
+
export {
|
|
5
|
+
NcChallengesAdminWidgetDetail,
|
|
6
|
+
NcChallengesAdminWidgetList,
|
|
7
|
+
WidgetCreateParams,
|
|
8
|
+
WidgetUpdateParams,
|
|
9
|
+
WidgetListParams,
|
|
10
|
+
WidgetDeleteParams,
|
|
11
|
+
WidgetGetParams,
|
|
12
|
+
WidgetRotateSecretParams,
|
|
13
|
+
NcChallengesAdminWidgetListsV4PagePaginationArray,
|
|
14
|
+
Widgets,
|
|
15
|
+
} from './widgets';
|