@distilled.cloud/cloudflare 0.29.0 → 0.29.1
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/lib/services/abuse-reports.d.ts.map +1 -1
- package/lib/services/abuse-reports.js +26 -26
- package/lib/services/abuse-reports.js.map +1 -1
- package/lib/services/accounts.d.ts.map +1 -1
- package/lib/services/accounts.js +114 -123
- package/lib/services/accounts.js.map +1 -1
- package/lib/services/acm.d.ts.map +1 -1
- package/lib/services/acm.js +23 -23
- package/lib/services/acm.js.map +1 -1
- package/lib/services/addressing.d.ts.map +1 -1
- package/lib/services/addressing.js +132 -132
- package/lib/services/addressing.js.map +1 -1
- package/lib/services/ai-gateway.d.ts.map +1 -1
- package/lib/services/ai-gateway.js +213 -207
- package/lib/services/ai-gateway.js.map +1 -1
- package/lib/services/ai-security.d.ts.map +1 -1
- package/lib/services/ai-security.js +13 -13
- package/lib/services/ai-security.js.map +1 -1
- package/lib/services/ai.d.ts.map +1 -1
- package/lib/services/ai.js +62 -62
- package/lib/services/ai.js.map +1 -1
- package/lib/services/aisearch.d.ts.map +1 -1
- package/lib/services/aisearch.js +187 -193
- package/lib/services/aisearch.js.map +1 -1
- package/lib/services/alerting.d.ts.map +1 -1
- package/lib/services/alerting.js +78 -78
- package/lib/services/alerting.js.map +1 -1
- package/lib/services/api-gateway.d.ts.map +1 -1
- package/lib/services/api-gateway.js +168 -177
- package/lib/services/api-gateway.js.map +1 -1
- package/lib/services/argo.js +12 -12
- package/lib/services/argo.js.map +1 -1
- package/lib/services/audit-logs.d.ts.map +1 -1
- package/lib/services/audit-logs.js +9 -9
- package/lib/services/audit-logs.js.map +1 -1
- package/lib/services/billing.d.ts.map +1 -1
- package/lib/services/billing.js +11 -11
- package/lib/services/billing.js.map +1 -1
- package/lib/services/bot-management.d.ts.map +1 -1
- package/lib/services/bot-management.js +18 -30
- package/lib/services/bot-management.js.map +1 -1
- package/lib/services/botnet-feed.d.ts.map +1 -1
- package/lib/services/botnet-feed.js +12 -12
- package/lib/services/botnet-feed.js.map +1 -1
- package/lib/services/brand-protection.d.ts.map +1 -1
- package/lib/services/brand-protection.js +59 -59
- package/lib/services/brand-protection.js.map +1 -1
- package/lib/services/browser-rendering.d.ts.map +1 -1
- package/lib/services/browser-rendering.js +103 -103
- package/lib/services/browser-rendering.js.map +1 -1
- package/lib/services/cache.d.ts.map +1 -1
- package/lib/services/cache.js +72 -72
- package/lib/services/cache.js.map +1 -1
- package/lib/services/calls.d.ts.map +1 -1
- package/lib/services/calls.js +31 -31
- package/lib/services/calls.js.map +1 -1
- package/lib/services/certificate-authorities.js +6 -6
- package/lib/services/certificate-authorities.js.map +1 -1
- package/lib/services/client-certificates.js +18 -18
- package/lib/services/client-certificates.js.map +1 -1
- package/lib/services/cloud-connector.d.ts.map +1 -1
- package/lib/services/cloud-connector.js +8 -8
- package/lib/services/cloud-connector.js.map +1 -1
- package/lib/services/cloudforce-one.d.ts.map +1 -1
- package/lib/services/cloudforce-one.js +178 -178
- package/lib/services/cloudforce-one.js.map +1 -1
- package/lib/services/connectivity.js +25 -25
- package/lib/services/connectivity.js.map +1 -1
- package/lib/services/containers.js +49 -49
- package/lib/services/containers.js.map +1 -1
- package/lib/services/content-scanning.d.ts.map +1 -1
- package/lib/services/content-scanning.js +29 -29
- package/lib/services/content-scanning.js.map +1 -1
- package/lib/services/csam-scanner.d.ts.map +1 -1
- package/lib/services/csam-scanner.js +8 -8
- package/lib/services/csam-scanner.js.map +1 -1
- package/lib/services/custom-certificates.d.ts.map +1 -1
- package/lib/services/custom-certificates.js +24 -24
- package/lib/services/custom-certificates.js.map +1 -1
- package/lib/services/custom-csrs.d.ts.map +1 -1
- package/lib/services/custom-csrs.js +22 -22
- package/lib/services/custom-csrs.js.map +1 -1
- package/lib/services/custom-hostnames.d.ts.map +1 -1
- package/lib/services/custom-hostnames.js +40 -40
- package/lib/services/custom-hostnames.js.map +1 -1
- package/lib/services/custom-nameservers.js +11 -11
- package/lib/services/custom-nameservers.js.map +1 -1
- package/lib/services/custom-pages.d.ts.map +1 -1
- package/lib/services/custom-pages.js +43 -43
- package/lib/services/custom-pages.js.map +1 -1
- package/lib/services/d1.d.ts +4 -4
- package/lib/services/d1.d.ts.map +1 -1
- package/lib/services/d1.js +69 -51
- package/lib/services/d1.js.map +1 -1
- package/lib/services/dcv-delegation.js +3 -3
- package/lib/services/dcv-delegation.js.map +1 -1
- package/lib/services/ddos-protection.js +126 -126
- package/lib/services/ddos-protection.js.map +1 -1
- package/lib/services/diagnostics.js +27 -27
- package/lib/services/diagnostics.js.map +1 -1
- package/lib/services/dls.d.ts.map +1 -1
- package/lib/services/dls.js +26 -26
- package/lib/services/dls.js.map +1 -1
- package/lib/services/dns-firewall.d.ts.map +1 -1
- package/lib/services/dns-firewall.js +34 -34
- package/lib/services/dns-firewall.js.map +1 -1
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +268 -268
- package/lib/services/dns.js.map +1 -1
- package/lib/services/durable-objects.d.ts.map +1 -1
- package/lib/services/durable-objects.js +11 -11
- package/lib/services/durable-objects.js.map +1 -1
- package/lib/services/email-auth.d.ts.map +1 -1
- package/lib/services/email-auth.js +13 -13
- package/lib/services/email-auth.js.map +1 -1
- package/lib/services/email-routing.d.ts.map +1 -1
- package/lib/services/email-routing.js +70 -70
- package/lib/services/email-routing.js.map +1 -1
- package/lib/services/email-security.d.ts.map +1 -1
- package/lib/services/email-security.js +195 -195
- package/lib/services/email-security.js.map +1 -1
- package/lib/services/email-sending.d.ts.map +1 -1
- package/lib/services/email-sending.js +28 -28
- package/lib/services/email-sending.js.map +1 -1
- package/lib/services/filters.d.ts.map +1 -1
- package/lib/services/filters.js +25 -25
- package/lib/services/filters.js.map +1 -1
- package/lib/services/firewall.d.ts.map +1 -1
- package/lib/services/firewall.js +149 -149
- package/lib/services/firewall.js.map +1 -1
- package/lib/services/flagship.d.ts.map +1 -1
- package/lib/services/flagship.js +52 -52
- package/lib/services/flagship.js.map +1 -1
- package/lib/services/fraud.js +8 -8
- package/lib/services/fraud.js.map +1 -1
- package/lib/services/google-tag-gateway.d.ts.map +1 -1
- package/lib/services/google-tag-gateway.js +7 -7
- package/lib/services/google-tag-gateway.js.map +1 -1
- package/lib/services/healthchecks.d.ts.map +1 -1
- package/lib/services/healthchecks.js +31 -31
- package/lib/services/healthchecks.js.map +1 -1
- package/lib/services/hostnames.d.ts.map +1 -1
- package/lib/services/hostnames.js +10 -10
- package/lib/services/hostnames.js.map +1 -1
- package/lib/services/hyperdrive.d.ts.map +1 -1
- package/lib/services/hyperdrive.js +32 -32
- package/lib/services/hyperdrive.js.map +1 -1
- package/lib/services/iam.d.ts.map +1 -1
- package/lib/services/iam.js +113 -113
- package/lib/services/iam.js.map +1 -1
- package/lib/services/images.d.ts.map +1 -1
- package/lib/services/images.js +59 -59
- package/lib/services/images.js.map +1 -1
- package/lib/services/intel.d.ts.map +1 -1
- package/lib/services/intel.js +102 -102
- package/lib/services/intel.js.map +1 -1
- package/lib/services/ips.js +5 -5
- package/lib/services/ips.js.map +1 -1
- package/lib/services/keyless-certificates.js +17 -17
- package/lib/services/keyless-certificates.js.map +1 -1
- package/lib/services/kv.d.ts.map +1 -1
- package/lib/services/kv.js +54 -54
- package/lib/services/kv.js.map +1 -1
- package/lib/services/leaked-credential-checks.d.ts.map +1 -1
- package/lib/services/leaked-credential-checks.js +22 -22
- package/lib/services/leaked-credential-checks.js.map +1 -1
- package/lib/services/load-balancers.d.ts.map +1 -1
- package/lib/services/load-balancers.js +139 -157
- package/lib/services/load-balancers.js.map +1 -1
- package/lib/services/logpush.d.ts.map +1 -1
- package/lib/services/logpush.js +69 -69
- package/lib/services/logpush.js.map +1 -1
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +58 -58
- package/lib/services/logs.js.map +1 -1
- package/lib/services/magic-cloud-networking.d.ts.map +1 -1
- package/lib/services/magic-cloud-networking.js +138 -168
- package/lib/services/magic-cloud-networking.js.map +1 -1
- package/lib/services/magic-network-monitoring.d.ts.map +1 -1
- package/lib/services/magic-network-monitoring.js +47 -65
- package/lib/services/magic-network-monitoring.js.map +1 -1
- package/lib/services/magic-transit.d.ts.map +1 -1
- package/lib/services/magic-transit.js +340 -364
- package/lib/services/magic-transit.js.map +1 -1
- package/lib/services/managed-transforms.js +11 -11
- package/lib/services/managed-transforms.js.map +1 -1
- package/lib/services/memberships.d.ts.map +1 -1
- package/lib/services/memberships.js +25 -25
- package/lib/services/memberships.js.map +1 -1
- package/lib/services/moq.d.ts.map +1 -1
- package/lib/services/moq.js +23 -23
- package/lib/services/moq.js.map +1 -1
- package/lib/services/mtls-certificates.d.ts.map +1 -1
- package/lib/services/mtls-certificates.js +17 -17
- package/lib/services/mtls-certificates.js.map +1 -1
- package/lib/services/network-interconnects.d.ts.map +1 -1
- package/lib/services/network-interconnects.js +56 -56
- package/lib/services/network-interconnects.js.map +1 -1
- package/lib/services/organizations.d.ts.map +1 -1
- package/lib/services/organizations.js +42 -42
- package/lib/services/organizations.js.map +1 -1
- package/lib/services/origin-ca-certificates.js +14 -14
- package/lib/services/origin-ca-certificates.js.map +1 -1
- package/lib/services/origin-post-quantum-encryption.js +6 -6
- package/lib/services/origin-post-quantum-encryption.js.map +1 -1
- package/lib/services/origin-tls-client-auth.d.ts.map +1 -1
- package/lib/services/origin-tls-client-auth.js +52 -52
- package/lib/services/origin-tls-client-auth.js.map +1 -1
- package/lib/services/origin-tls-compliance-modes.js +12 -12
- package/lib/services/origin-tls-compliance-modes.js.map +1 -1
- package/lib/services/page-rules.d.ts.map +1 -1
- package/lib/services/page-rules.js +62 -62
- package/lib/services/page-rules.js.map +1 -1
- package/lib/services/page-shield.d.ts.map +1 -1
- package/lib/services/page-shield.js +45 -48
- package/lib/services/page-shield.js.map +1 -1
- package/lib/services/pages.d.ts.map +1 -1
- package/lib/services/pages.js +78 -78
- package/lib/services/pages.js.map +1 -1
- package/lib/services/pipelines.d.ts.map +1 -1
- package/lib/services/pipelines.js +102 -102
- package/lib/services/pipelines.js.map +1 -1
- package/lib/services/queues.d.ts.map +1 -1
- package/lib/services/queues.js +100 -103
- package/lib/services/queues.js.map +1 -1
- package/lib/services/r2-data-catalog.d.ts.map +1 -1
- package/lib/services/r2-data-catalog.js +42 -42
- package/lib/services/r2-data-catalog.js.map +1 -1
- package/lib/services/r2.d.ts.map +1 -1
- package/lib/services/r2.js +190 -190
- package/lib/services/r2.js.map +1 -1
- package/lib/services/radar.d.ts.map +1 -1
- package/lib/services/radar.js +991 -1009
- package/lib/services/radar.js.map +1 -1
- package/lib/services/rate-limits.d.ts.map +1 -1
- package/lib/services/rate-limits.js +24 -24
- package/lib/services/rate-limits.js.map +1 -1
- package/lib/services/realtime-kit.d.ts.map +1 -1
- package/lib/services/realtime-kit.js +276 -276
- package/lib/services/realtime-kit.js.map +1 -1
- package/lib/services/registrar.d.ts.map +1 -1
- package/lib/services/registrar.js +28 -28
- package/lib/services/registrar.js.map +1 -1
- package/lib/services/request-tracers.d.ts.map +1 -1
- package/lib/services/request-tracers.js +7 -7
- package/lib/services/request-tracers.js.map +1 -1
- package/lib/services/resource-sharing.d.ts.map +1 -1
- package/lib/services/resource-sharing.js +49 -49
- package/lib/services/resource-sharing.js.map +1 -1
- package/lib/services/resource-tagging.d.ts.map +1 -1
- package/lib/services/resource-tagging.js +56 -56
- package/lib/services/resource-tagging.js.map +1 -1
- package/lib/services/rules.d.ts.map +1 -1
- package/lib/services/rules.js +50 -50
- package/lib/services/rules.js.map +1 -1
- package/lib/services/rulesets.d.ts +2 -2
- package/lib/services/rulesets.d.ts.map +1 -1
- package/lib/services/rulesets.js +226 -190
- package/lib/services/rulesets.js.map +1 -1
- package/lib/services/rum.d.ts.map +1 -1
- package/lib/services/rum.js +35 -35
- package/lib/services/rum.js.map +1 -1
- package/lib/services/schema-validation.d.ts.map +1 -1
- package/lib/services/schema-validation.js +43 -46
- package/lib/services/schema-validation.js.map +1 -1
- package/lib/services/secrets-store.d.ts.map +1 -1
- package/lib/services/secrets-store.js +41 -41
- package/lib/services/secrets-store.js.map +1 -1
- package/lib/services/security-center.d.ts.map +1 -1
- package/lib/services/security-center.js +54 -57
- package/lib/services/security-center.js.map +1 -1
- package/lib/services/security-txt.d.ts.map +1 -1
- package/lib/services/security-txt.js +12 -12
- package/lib/services/security-txt.js.map +1 -1
- package/lib/services/snippets.d.ts.map +1 -1
- package/lib/services/snippets.js +31 -31
- package/lib/services/snippets.js.map +1 -1
- package/lib/services/spectrum.d.ts.map +1 -1
- package/lib/services/spectrum.js +35 -35
- package/lib/services/spectrum.js.map +1 -1
- package/lib/services/speed.d.ts.map +1 -1
- package/lib/services/speed.js +41 -41
- package/lib/services/speed.js.map +1 -1
- package/lib/services/ssl.d.ts.map +1 -1
- package/lib/services/ssl.js +48 -48
- package/lib/services/ssl.js.map +1 -1
- package/lib/services/stream.d.ts.map +1 -1
- package/lib/services/stream.js +147 -147
- package/lib/services/stream.js.map +1 -1
- package/lib/services/tenant-custom-nameservers.js +11 -11
- package/lib/services/tenant-custom-nameservers.js.map +1 -1
- package/lib/services/tenants.d.ts.map +1 -1
- package/lib/services/tenants.js +28 -28
- package/lib/services/tenants.js.map +1 -1
- package/lib/services/token-validation.d.ts.map +1 -1
- package/lib/services/token-validation.js +56 -56
- package/lib/services/token-validation.js.map +1 -1
- package/lib/services/turnstile.d.ts.map +1 -1
- package/lib/services/turnstile.js +27 -54
- package/lib/services/turnstile.js.map +1 -1
- package/lib/services/url-normalization.js +9 -9
- package/lib/services/url-normalization.js.map +1 -1
- package/lib/services/url-scanner.d.ts.map +1 -1
- package/lib/services/url-scanner.js +120 -120
- package/lib/services/url-scanner.js.map +1 -1
- package/lib/services/user.d.ts.map +1 -1
- package/lib/services/user.js +95 -95
- package/lib/services/user.js.map +1 -1
- package/lib/services/vectorize.d.ts +10 -10
- package/lib/services/vectorize.d.ts.map +1 -1
- package/lib/services/vectorize.js +59 -57
- package/lib/services/vectorize.js.map +1 -1
- package/lib/services/vulnerability-scanner.d.ts.map +1 -1
- package/lib/services/vulnerability-scanner.js +95 -95
- package/lib/services/vulnerability-scanner.js.map +1 -1
- package/lib/services/waiting-rooms.d.ts.map +1 -1
- package/lib/services/waiting-rooms.js +81 -81
- package/lib/services/waiting-rooms.js.map +1 -1
- package/lib/services/web3.d.ts.map +1 -1
- package/lib/services/web3.js +39 -39
- package/lib/services/web3.js.map +1 -1
- package/lib/services/workers-for-platforms.d.ts.map +1 -1
- package/lib/services/workers-for-platforms.js +139 -139
- package/lib/services/workers-for-platforms.js.map +1 -1
- package/lib/services/workers.d.ts.map +1 -1
- package/lib/services/workers.js +420 -420
- package/lib/services/workers.js.map +1 -1
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +88 -88
- package/lib/services/workflows.js.map +1 -1
- package/lib/services/zaraz.d.ts.map +1 -1
- package/lib/services/zaraz.js +36 -39
- package/lib/services/zaraz.js.map +1 -1
- package/lib/services/zero-trust.d.ts.map +1 -1
- package/lib/services/zero-trust.js +1765 -1771
- package/lib/services/zero-trust.js.map +1 -1
- package/lib/services/zones.d.ts.map +1 -1
- package/lib/services/zones.js +168 -168
- package/lib/services/zones.js.map +1 -1
- package/package.json +3 -2
- package/src/services/abuse-reports.ts +35 -36
- package/src/services/accounts.ts +714 -760
- package/src/services/acm.ts +115 -125
- package/src/services/addressing.ts +484 -512
- package/src/services/ai-gateway.ts +653 -672
- package/src/services/ai-security.ts +47 -53
- package/src/services/ai.ts +172 -185
- package/src/services/aisearch.ts +1814 -1861
- package/src/services/alerting.ts +710 -742
- package/src/services/api-gateway.ts +481 -508
- package/src/services/argo.ts +12 -12
- package/src/services/audit-logs.ts +45 -49
- package/src/services/billing.ts +121 -136
- package/src/services/bot-management.ts +122 -136
- package/src/services/botnet-feed.ts +68 -74
- package/src/services/brand-protection.ts +275 -294
- package/src/services/browser-rendering.ts +758 -769
- package/src/services/cache.ts +148 -158
- package/src/services/calls.ts +110 -120
- package/src/services/certificate-authorities.ts +6 -6
- package/src/services/client-certificates.ts +18 -18
- package/src/services/cloud-connector.ts +11 -12
- package/src/services/cloudforce-one.ts +589 -617
- package/src/services/connectivity.ts +25 -25
- package/src/services/containers.ts +49 -49
- package/src/services/content-scanning.ts +80 -89
- package/src/services/csam-scanner.ts +16 -17
- package/src/services/custom-certificates.ts +36 -38
- package/src/services/custom-csrs.ts +103 -105
- package/src/services/custom-hostnames.ts +44 -45
- package/src/services/custom-nameservers.ts +11 -11
- package/src/services/custom-pages.ts +173 -184
- package/src/services/d1.ts +335 -325
- package/src/services/dcv-delegation.ts +3 -3
- package/src/services/ddos-protection.ts +126 -126
- package/src/services/diagnostics.ts +27 -27
- package/src/services/dls.ts +82 -86
- package/src/services/dns-firewall.ts +65 -69
- package/src/services/dns.ts +1080 -1107
- package/src/services/durable-objects.ts +36 -38
- package/src/services/email-auth.ts +47 -52
- package/src/services/email-routing.ts +264 -288
- package/src/services/email-security.ts +205 -208
- package/src/services/email-sending.ts +94 -99
- package/src/services/filters.ts +97 -111
- package/src/services/firewall.ts +698 -753
- package/src/services/flagship.ts +321 -336
- package/src/services/fraud.ts +8 -8
- package/src/services/google-tag-gateway.ts +17 -19
- package/src/services/healthchecks.ts +269 -286
- package/src/services/hostnames.ts +94 -99
- package/src/services/hyperdrive.ts +310 -324
- package/src/services/iam.ts +205 -212
- package/src/services/images.ts +138 -150
- package/src/services/intel.ts +248 -261
- package/src/services/ips.ts +5 -5
- package/src/services/keyless-certificates.ts +17 -17
- package/src/services/kv.ts +106 -110
- package/src/services/leaked-credential-checks.ts +49 -53
- package/src/services/load-balancers.ts +1119 -1212
- package/src/services/logpush.ts +298 -313
- package/src/services/logs.ts +74 -77
- package/src/services/magic-cloud-networking.ts +1219 -1311
- package/src/services/magic-network-monitoring.ts +647 -685
- package/src/services/magic-transit.ts +1988 -2119
- package/src/services/managed-transforms.ts +11 -11
- package/src/services/memberships.ts +101 -105
- package/src/services/moq.ts +100 -110
- package/src/services/mtls-certificates.ts +30 -32
- package/src/services/network-interconnects.ts +137 -145
- package/src/services/organizations.ts +189 -192
- package/src/services/origin-ca-certificates.ts +14 -14
- package/src/services/origin-post-quantum-encryption.ts +6 -6
- package/src/services/origin-tls-client-auth.ts +219 -236
- package/src/services/origin-tls-compliance-modes.ts +12 -12
- package/src/services/page-rules.ts +365 -373
- package/src/services/page-shield.ts +489 -528
- package/src/services/pages.ts +309 -319
- package/src/services/pipelines.ts +534 -573
- package/src/services/queues.ts +598 -635
- package/src/services/r2-data-catalog.ts +59 -60
- package/src/services/r2.ts +654 -689
- package/src/services/radar.ts +3395 -3487
- package/src/services/rate-limits.ts +81 -93
- package/src/services/realtime-kit.ts +386 -399
- package/src/services/registrar.ts +90 -96
- package/src/services/request-tracers.ts +41 -43
- package/src/services/resource-sharing.ts +293 -305
- package/src/services/resource-tagging.ts +354 -366
- package/src/services/rules.ts +272 -292
- package/src/services/rulesets.ts +1214 -1116
- package/src/services/rum.ts +252 -273
- package/src/services/schema-validation.ts +284 -305
- package/src/services/secrets-store.ts +130 -138
- package/src/services/security-center.ts +64 -69
- package/src/services/security-txt.ts +48 -50
- package/src/services/snippets.ts +132 -142
- package/src/services/spectrum.ts +75 -80
- package/src/services/speed.ts +385 -397
- package/src/services/ssl.ts +64 -65
- package/src/services/stream.ts +658 -718
- package/src/services/tenant-custom-nameservers.ts +11 -11
- package/src/services/tenants.ts +86 -93
- package/src/services/token-validation.ts +145 -151
- package/src/services/turnstile.ts +344 -381
- package/src/services/url-normalization.ts +9 -9
- package/src/services/url-scanner.ts +393 -399
- package/src/services/user.ts +479 -503
- package/src/services/vectorize.ts +215 -230
- package/src/services/vulnerability-scanner.ts +145 -148
- package/src/services/waiting-rooms.ts +759 -825
- package/src/services/web3.ts +186 -197
- package/src/services/workers-for-platforms.ts +408 -432
- package/src/services/workers.ts +1175 -1239
- package/src/services/workflows.ts +585 -616
- package/src/services/zaraz.ts +168 -192
- package/src/services/zero-trust.ts +2965 -3074
- package/src/services/zones.ts +753 -785
package/src/services/alerting.ts
CHANGED
|
@@ -120,7 +120,7 @@ interface GetDestinationPagerdutyResponseResult {
|
|
|
120
120
|
name?: string | null;
|
|
121
121
|
}
|
|
122
122
|
const GetDestinationPagerdutyResponseResult =
|
|
123
|
-
/*@__PURE__*/
|
|
123
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
124
124
|
Schema.Struct({
|
|
125
125
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
126
126
|
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -131,7 +131,7 @@ interface Error2 {
|
|
|
131
131
|
message: string;
|
|
132
132
|
code?: number | null;
|
|
133
133
|
}
|
|
134
|
-
const Error2 = /*@__PURE__*/
|
|
134
|
+
const Error2 = /*@__PURE__*/ Schema.suspend(() =>
|
|
135
135
|
Schema.Struct({
|
|
136
136
|
message: Schema.String,
|
|
137
137
|
code: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
@@ -165,7 +165,7 @@ interface ListDestinationWebhooksResponseResult {
|
|
|
165
165
|
url?: string | null;
|
|
166
166
|
}
|
|
167
167
|
const ListDestinationWebhooksResponseResult =
|
|
168
|
-
/*@__PURE__*/
|
|
168
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
169
169
|
Schema.Struct({
|
|
170
170
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
171
171
|
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -224,39 +224,38 @@ interface ListHistoriesResponseResult {
|
|
|
224
224
|
/** Timestamp of when the notification was dispatched in ISO 8601 format. */
|
|
225
225
|
sent?: string | null;
|
|
226
226
|
}
|
|
227
|
-
const ListHistoriesResponseResult = /*@__PURE__*/
|
|
228
|
-
(
|
|
229
|
-
Schema.
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
227
|
+
const ListHistoriesResponseResult = /*@__PURE__*/ Schema.suspend(() =>
|
|
228
|
+
Schema.Struct({
|
|
229
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
230
|
+
alertBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
231
|
+
alertType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
232
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
233
|
+
mechanism: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
234
|
+
mechanismType: Schema.optional(
|
|
235
|
+
Schema.Union([
|
|
236
236
|
Schema.Union([
|
|
237
|
-
Schema.
|
|
238
|
-
|
|
239
|
-
Schema.String,
|
|
240
|
-
]),
|
|
241
|
-
Schema.Null,
|
|
237
|
+
Schema.Literals(["email", "pagerduty", "webhook"]),
|
|
238
|
+
Schema.String,
|
|
242
239
|
]),
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
policyId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
246
|
-
sent: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
247
|
-
}).pipe(
|
|
248
|
-
Schema.encodeKeys({
|
|
249
|
-
id: "id",
|
|
250
|
-
alertBody: "alert_body",
|
|
251
|
-
alertType: "alert_type",
|
|
252
|
-
description: "description",
|
|
253
|
-
mechanism: "mechanism",
|
|
254
|
-
mechanismType: "mechanism_type",
|
|
255
|
-
name: "name",
|
|
256
|
-
policyId: "policy_id",
|
|
257
|
-
sent: "sent",
|
|
258
|
-
}),
|
|
240
|
+
Schema.Null,
|
|
241
|
+
]),
|
|
259
242
|
),
|
|
243
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
244
|
+
policyId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
245
|
+
sent: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
246
|
+
}).pipe(
|
|
247
|
+
Schema.encodeKeys({
|
|
248
|
+
id: "id",
|
|
249
|
+
alertBody: "alert_body",
|
|
250
|
+
alertType: "alert_type",
|
|
251
|
+
description: "description",
|
|
252
|
+
mechanism: "mechanism",
|
|
253
|
+
mechanismType: "mechanism_type",
|
|
254
|
+
name: "name",
|
|
255
|
+
policyId: "policy_id",
|
|
256
|
+
sent: "sent",
|
|
257
|
+
}),
|
|
258
|
+
),
|
|
260
259
|
) as unknown as Schema.Codec<ListHistoriesResponseResult>;
|
|
261
260
|
|
|
262
261
|
interface ListHistoriesResponseResultInfo {
|
|
@@ -266,7 +265,7 @@ interface ListHistoriesResponseResultInfo {
|
|
|
266
265
|
totalCount?: number | null;
|
|
267
266
|
}
|
|
268
267
|
const ListHistoriesResponseResultInfo =
|
|
269
|
-
/*@__PURE__*/
|
|
268
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
270
269
|
Schema.Struct({
|
|
271
270
|
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
272
271
|
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
@@ -378,7 +377,7 @@ interface PolicyFilter {
|
|
|
378
377
|
/** Usage depends on specific alert type */
|
|
379
378
|
zones?: string[] | null;
|
|
380
379
|
}
|
|
381
|
-
const PolicyFilter = /*@__PURE__*/
|
|
380
|
+
const PolicyFilter = /*@__PURE__*/ Schema.suspend(() =>
|
|
382
381
|
Schema.Struct({
|
|
383
382
|
actions: Schema.optional(
|
|
384
383
|
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
@@ -578,7 +577,7 @@ interface Email {
|
|
|
578
577
|
/** The email address */
|
|
579
578
|
id?: string | null;
|
|
580
579
|
}
|
|
581
|
-
const Email = /*@__PURE__*/
|
|
580
|
+
const Email = /*@__PURE__*/ Schema.suspend(() =>
|
|
582
581
|
Schema.Struct({
|
|
583
582
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
584
583
|
}),
|
|
@@ -589,7 +588,7 @@ interface Mechanism {
|
|
|
589
588
|
pagerduty?: { id?: string | null }[] | null;
|
|
590
589
|
webhooks?: { id?: string | null }[] | null;
|
|
591
590
|
}
|
|
592
|
-
const Mechanism = /*@__PURE__*/
|
|
591
|
+
const Mechanism = /*@__PURE__*/ Schema.suspend(() =>
|
|
593
592
|
Schema.Struct({
|
|
594
593
|
email: Schema.optional(Schema.Union([Schema.Array(Email), Schema.Null])),
|
|
595
594
|
pagerduty: Schema.optional(
|
|
@@ -746,113 +745,110 @@ interface ListPoliciesResponseResult {
|
|
|
746
745
|
/** Name of the policy. */
|
|
747
746
|
name?: string | null;
|
|
748
747
|
}
|
|
749
|
-
const ListPoliciesResponseResult = /*@__PURE__*/
|
|
750
|
-
(
|
|
751
|
-
Schema.
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
),
|
|
756
|
-
alertType: Schema.optional(
|
|
748
|
+
const ListPoliciesResponseResult = /*@__PURE__*/ Schema.suspend(() =>
|
|
749
|
+
Schema.Struct({
|
|
750
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
751
|
+
alertInterval: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
752
|
+
alertType: Schema.optional(
|
|
753
|
+
Schema.Union([
|
|
757
754
|
Schema.Union([
|
|
758
|
-
Schema.
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
"zone_aop_custom_certificate_expiration_type",
|
|
829
|
-
]),
|
|
830
|
-
Schema.String,
|
|
755
|
+
Schema.Literals([
|
|
756
|
+
"abuse_report_alert",
|
|
757
|
+
"access_custom_certificate_expiration_type",
|
|
758
|
+
"advanced_ddos_attack_l4_alert",
|
|
759
|
+
"advanced_ddos_attack_l7_alert",
|
|
760
|
+
"advanced_http_alert_error",
|
|
761
|
+
"bgp_hijack_notification",
|
|
762
|
+
"billing_usage_alert",
|
|
763
|
+
"block_notification_block_removed",
|
|
764
|
+
"block_notification_new_block",
|
|
765
|
+
"block_notification_review_rejected",
|
|
766
|
+
"bot_traffic_basic_alert",
|
|
767
|
+
"brand_protection_alert",
|
|
768
|
+
"brand_protection_digest",
|
|
769
|
+
"clickhouse_alert_fw_anomaly",
|
|
770
|
+
"clickhouse_alert_fw_ent_anomaly",
|
|
771
|
+
"cloudforce_one_request_notification",
|
|
772
|
+
"cni_maintenance_notification",
|
|
773
|
+
"custom_analytics",
|
|
774
|
+
"custom_bot_detection_alert",
|
|
775
|
+
"custom_ssl_certificate_event_type",
|
|
776
|
+
"dedicated_ssl_certificate_event_type",
|
|
777
|
+
"device_connectivity_anomaly_alert",
|
|
778
|
+
"dos_attack_l4",
|
|
779
|
+
"dos_attack_l7",
|
|
780
|
+
"expiring_service_token_alert",
|
|
781
|
+
"failing_logpush_job_disabled_alert",
|
|
782
|
+
"fbm_auto_advertisement",
|
|
783
|
+
"fbm_dosd_attack",
|
|
784
|
+
"fbm_volumetric_attack",
|
|
785
|
+
"health_check_status_notification",
|
|
786
|
+
"hostname_aop_custom_certificate_expiration_type",
|
|
787
|
+
"http_alert_edge_error",
|
|
788
|
+
"http_alert_origin_error",
|
|
789
|
+
"image_notification",
|
|
790
|
+
"image_resizing_notification",
|
|
791
|
+
"incident_alert",
|
|
792
|
+
"load_balancing_health_alert",
|
|
793
|
+
"load_balancing_pool_enablement_alert",
|
|
794
|
+
"logo_match_alert",
|
|
795
|
+
"magic_tunnel_health_check_event",
|
|
796
|
+
"magic_wan_tunnel_health",
|
|
797
|
+
"maintenance_event_notification",
|
|
798
|
+
"mtls_certificate_store_certificate_expiration_type",
|
|
799
|
+
"pages_event_alert",
|
|
800
|
+
"radar_notification",
|
|
801
|
+
"real_origin_monitoring",
|
|
802
|
+
"scriptmonitor_alert_new_code_change_detections",
|
|
803
|
+
"scriptmonitor_alert_new_hosts",
|
|
804
|
+
"scriptmonitor_alert_new_malicious_hosts",
|
|
805
|
+
"scriptmonitor_alert_new_malicious_scripts",
|
|
806
|
+
"scriptmonitor_alert_new_malicious_url",
|
|
807
|
+
"scriptmonitor_alert_new_max_length_resource_url",
|
|
808
|
+
"scriptmonitor_alert_new_resources",
|
|
809
|
+
"secondary_dns_all_primaries_failing",
|
|
810
|
+
"secondary_dns_primaries_failing",
|
|
811
|
+
"secondary_dns_warning",
|
|
812
|
+
"secondary_dns_zone_successfully_updated",
|
|
813
|
+
"secondary_dns_zone_validation_warning",
|
|
814
|
+
"security_insights_alert",
|
|
815
|
+
"sentinel_alert",
|
|
816
|
+
"stream_live_notifications",
|
|
817
|
+
"synthetic_test_latency_alert",
|
|
818
|
+
"synthetic_test_low_availability_alert",
|
|
819
|
+
"traffic_anomalies_alert",
|
|
820
|
+
"tunnel_health_event",
|
|
821
|
+
"tunnel_update_event",
|
|
822
|
+
"universal_ssl_event_type",
|
|
823
|
+
"web_analytics_metrics_update",
|
|
824
|
+
"zone_aop_custom_certificate_expiration_type",
|
|
831
825
|
]),
|
|
832
|
-
Schema.
|
|
826
|
+
Schema.String,
|
|
833
827
|
]),
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
837
|
-
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
838
|
-
filters: Schema.optional(Schema.Union([PolicyFilter, Schema.Null])),
|
|
839
|
-
mechanisms: Schema.optional(Schema.Union([Mechanism, Schema.Null])),
|
|
840
|
-
modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
841
|
-
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
842
|
-
}).pipe(
|
|
843
|
-
Schema.encodeKeys({
|
|
844
|
-
id: "id",
|
|
845
|
-
alertInterval: "alert_interval",
|
|
846
|
-
alertType: "alert_type",
|
|
847
|
-
created: "created",
|
|
848
|
-
description: "description",
|
|
849
|
-
enabled: "enabled",
|
|
850
|
-
filters: "filters",
|
|
851
|
-
mechanisms: "mechanisms",
|
|
852
|
-
modified: "modified",
|
|
853
|
-
name: "name",
|
|
854
|
-
}),
|
|
828
|
+
Schema.Null,
|
|
829
|
+
]),
|
|
855
830
|
),
|
|
831
|
+
created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
832
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
833
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
834
|
+
filters: Schema.optional(Schema.Union([PolicyFilter, Schema.Null])),
|
|
835
|
+
mechanisms: Schema.optional(Schema.Union([Mechanism, Schema.Null])),
|
|
836
|
+
modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
837
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
838
|
+
}).pipe(
|
|
839
|
+
Schema.encodeKeys({
|
|
840
|
+
id: "id",
|
|
841
|
+
alertInterval: "alert_interval",
|
|
842
|
+
alertType: "alert_type",
|
|
843
|
+
created: "created",
|
|
844
|
+
description: "description",
|
|
845
|
+
enabled: "enabled",
|
|
846
|
+
filters: "filters",
|
|
847
|
+
mechanisms: "mechanisms",
|
|
848
|
+
modified: "modified",
|
|
849
|
+
name: "name",
|
|
850
|
+
}),
|
|
851
|
+
),
|
|
856
852
|
) as unknown as Schema.Codec<ListPoliciesResponseResult>;
|
|
857
853
|
|
|
858
854
|
interface ListSilencesResponseResult {
|
|
@@ -869,25 +865,24 @@ interface ListSilencesResponseResult {
|
|
|
869
865
|
/** When the silence was modified. */
|
|
870
866
|
updatedAt?: string | null;
|
|
871
867
|
}
|
|
872
|
-
const ListSilencesResponseResult = /*@__PURE__*/
|
|
873
|
-
(
|
|
874
|
-
Schema.
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
),
|
|
868
|
+
const ListSilencesResponseResult = /*@__PURE__*/ Schema.suspend(() =>
|
|
869
|
+
Schema.Struct({
|
|
870
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
871
|
+
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
872
|
+
endTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
873
|
+
policyId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
874
|
+
startTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
875
|
+
updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
876
|
+
}).pipe(
|
|
877
|
+
Schema.encodeKeys({
|
|
878
|
+
id: "id",
|
|
879
|
+
createdAt: "created_at",
|
|
880
|
+
endTime: "end_time",
|
|
881
|
+
policyId: "policy_id",
|
|
882
|
+
startTime: "start_time",
|
|
883
|
+
updatedAt: "updated_at",
|
|
884
|
+
}),
|
|
885
|
+
),
|
|
891
886
|
) as unknown as Schema.Codec<ListSilencesResponseResult>;
|
|
892
887
|
|
|
893
888
|
interface Body {
|
|
@@ -898,7 +893,7 @@ interface Body {
|
|
|
898
893
|
/** When the silence starts. */
|
|
899
894
|
startTime?: string | null;
|
|
900
895
|
}
|
|
901
|
-
const Body = /*@__PURE__*/
|
|
896
|
+
const Body = /*@__PURE__*/ Schema.suspend(() =>
|
|
902
897
|
Schema.Struct({
|
|
903
898
|
endTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
904
899
|
policyId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -920,7 +915,7 @@ interface Body2 {
|
|
|
920
915
|
/** When the silence starts. */
|
|
921
916
|
startTime?: string | null;
|
|
922
917
|
}
|
|
923
|
-
const Body2 = /*@__PURE__*/
|
|
918
|
+
const Body2 = /*@__PURE__*/ Schema.suspend(() =>
|
|
924
919
|
Schema.Struct({
|
|
925
920
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
926
921
|
endTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -944,7 +939,7 @@ export interface ListAvailableAlertsRequest {
|
|
|
944
939
|
}
|
|
945
940
|
|
|
946
941
|
export const ListAvailableAlertsRequest =
|
|
947
|
-
/*@__PURE__*/
|
|
942
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
948
943
|
Schema.Struct({
|
|
949
944
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
950
945
|
}).pipe(
|
|
@@ -958,7 +953,7 @@ export const ListAvailableAlertsRequest =
|
|
|
958
953
|
export type ListAvailableAlertsResponse = Record<string, unknown>;
|
|
959
954
|
|
|
960
955
|
export const ListAvailableAlertsResponse =
|
|
961
|
-
/*@__PURE__*/
|
|
956
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
962
957
|
Schema.Record(Schema.String, Schema.Unknown).pipe(T.ResponsePath("result")),
|
|
963
958
|
) as unknown as Schema.Codec<ListAvailableAlertsResponse>;
|
|
964
959
|
|
|
@@ -969,7 +964,7 @@ export const listAvailableAlerts: API.OperationMethod<
|
|
|
969
964
|
ListAvailableAlertsResponse,
|
|
970
965
|
ListAvailableAlertsError,
|
|
971
966
|
Credentials | HttpClient.HttpClient
|
|
972
|
-
> = /*@__PURE__*/
|
|
967
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
973
968
|
input: ListAvailableAlertsRequest,
|
|
974
969
|
output: ListAvailableAlertsResponse,
|
|
975
970
|
errors: [InvalidRoute],
|
|
@@ -985,7 +980,7 @@ export interface GetDestinationEligibleRequest {
|
|
|
985
980
|
}
|
|
986
981
|
|
|
987
982
|
export const GetDestinationEligibleRequest =
|
|
988
|
-
/*@__PURE__*/
|
|
983
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
989
984
|
Schema.Struct({
|
|
990
985
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
991
986
|
}).pipe(
|
|
@@ -999,7 +994,7 @@ export const GetDestinationEligibleRequest =
|
|
|
999
994
|
export type GetDestinationEligibleResponse = Record<string, unknown>;
|
|
1000
995
|
|
|
1001
996
|
export const GetDestinationEligibleResponse =
|
|
1002
|
-
/*@__PURE__*/
|
|
997
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1003
998
|
Schema.Record(Schema.String, Schema.Unknown).pipe(T.ResponsePath("result")),
|
|
1004
999
|
) as unknown as Schema.Codec<GetDestinationEligibleResponse>;
|
|
1005
1000
|
|
|
@@ -1010,7 +1005,7 @@ export const getDestinationEligible: API.OperationMethod<
|
|
|
1010
1005
|
GetDestinationEligibleResponse,
|
|
1011
1006
|
GetDestinationEligibleError,
|
|
1012
1007
|
Credentials | HttpClient.HttpClient
|
|
1013
|
-
> = /*@__PURE__*/
|
|
1008
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1014
1009
|
input: GetDestinationEligibleRequest,
|
|
1015
1010
|
output: GetDestinationEligibleResponse,
|
|
1016
1011
|
errors: [InvalidRoute],
|
|
@@ -1026,7 +1021,7 @@ export interface GetDestinationPagerdutyRequest {
|
|
|
1026
1021
|
}
|
|
1027
1022
|
|
|
1028
1023
|
export const GetDestinationPagerdutyRequest =
|
|
1029
|
-
/*@__PURE__*/
|
|
1024
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1030
1025
|
Schema.Struct({
|
|
1031
1026
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1032
1027
|
}).pipe(
|
|
@@ -1042,7 +1037,7 @@ export interface GetDestinationPagerdutyResponse {
|
|
|
1042
1037
|
}
|
|
1043
1038
|
|
|
1044
1039
|
export const GetDestinationPagerdutyResponse =
|
|
1045
|
-
/*@__PURE__*/
|
|
1040
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1046
1041
|
Schema.Struct({
|
|
1047
1042
|
result: Schema.Array(GetDestinationPagerdutyResponseResult),
|
|
1048
1043
|
}),
|
|
@@ -1055,7 +1050,7 @@ export const getDestinationPagerduty: API.PaginatedOperationMethod<
|
|
|
1055
1050
|
GetDestinationPagerdutyResponse,
|
|
1056
1051
|
GetDestinationPagerdutyError,
|
|
1057
1052
|
Credentials | HttpClient.HttpClient
|
|
1058
|
-
> = /*@__PURE__*/
|
|
1053
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
1059
1054
|
input: GetDestinationPagerdutyRequest,
|
|
1060
1055
|
output: GetDestinationPagerdutyResponse,
|
|
1061
1056
|
errors: [],
|
|
@@ -1071,7 +1066,7 @@ export interface CreateDestinationPagerdutyRequest {
|
|
|
1071
1066
|
}
|
|
1072
1067
|
|
|
1073
1068
|
export const CreateDestinationPagerdutyRequest =
|
|
1074
|
-
/*@__PURE__*/
|
|
1069
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1075
1070
|
Schema.Struct({
|
|
1076
1071
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1077
1072
|
}).pipe(
|
|
@@ -1088,7 +1083,7 @@ export interface CreateDestinationPagerdutyResponse {
|
|
|
1088
1083
|
}
|
|
1089
1084
|
|
|
1090
1085
|
export const CreateDestinationPagerdutyResponse =
|
|
1091
|
-
/*@__PURE__*/
|
|
1086
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1092
1087
|
Schema.Struct({
|
|
1093
1088
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1094
1089
|
}).pipe(T.ResponsePath("result")),
|
|
@@ -1101,7 +1096,7 @@ export const createDestinationPagerduty: API.OperationMethod<
|
|
|
1101
1096
|
CreateDestinationPagerdutyResponse,
|
|
1102
1097
|
CreateDestinationPagerdutyError,
|
|
1103
1098
|
Credentials | HttpClient.HttpClient
|
|
1104
|
-
> = /*@__PURE__*/
|
|
1099
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1105
1100
|
input: CreateDestinationPagerdutyRequest,
|
|
1106
1101
|
output: CreateDestinationPagerdutyResponse,
|
|
1107
1102
|
errors: [InvalidRoute],
|
|
@@ -1113,7 +1108,7 @@ export interface DeleteDestinationPagerdutyRequest {
|
|
|
1113
1108
|
}
|
|
1114
1109
|
|
|
1115
1110
|
export const DeleteDestinationPagerdutyRequest =
|
|
1116
|
-
/*@__PURE__*/
|
|
1111
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1117
1112
|
Schema.Struct({
|
|
1118
1113
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1119
1114
|
}).pipe(
|
|
@@ -1132,7 +1127,7 @@ export interface DeleteDestinationPagerdutyResponse {
|
|
|
1132
1127
|
}
|
|
1133
1128
|
|
|
1134
1129
|
export const DeleteDestinationPagerdutyResponse =
|
|
1135
|
-
/*@__PURE__*/
|
|
1130
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1136
1131
|
Schema.Struct({
|
|
1137
1132
|
errors: Schema.Array(Error2),
|
|
1138
1133
|
messages: Schema.Array(Error2),
|
|
@@ -1147,7 +1142,7 @@ export const deleteDestinationPagerduty: API.OperationMethod<
|
|
|
1147
1142
|
DeleteDestinationPagerdutyResponse,
|
|
1148
1143
|
DeleteDestinationPagerdutyError,
|
|
1149
1144
|
Credentials | HttpClient.HttpClient
|
|
1150
|
-
> = /*@__PURE__*/
|
|
1145
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1151
1146
|
input: DeleteDestinationPagerdutyRequest,
|
|
1152
1147
|
output: DeleteDestinationPagerdutyResponse,
|
|
1153
1148
|
errors: [InvalidRoute],
|
|
@@ -1160,7 +1155,7 @@ export interface LinkDestinationPagerdutyRequest {
|
|
|
1160
1155
|
}
|
|
1161
1156
|
|
|
1162
1157
|
export const LinkDestinationPagerdutyRequest =
|
|
1163
|
-
/*@__PURE__*/
|
|
1158
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1164
1159
|
Schema.Struct({
|
|
1165
1160
|
tokenId: Schema.String.pipe(T.HttpPath("tokenId")),
|
|
1166
1161
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -1178,7 +1173,7 @@ export interface LinkDestinationPagerdutyResponse {
|
|
|
1178
1173
|
}
|
|
1179
1174
|
|
|
1180
1175
|
export const LinkDestinationPagerdutyResponse =
|
|
1181
|
-
/*@__PURE__*/
|
|
1176
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1182
1177
|
Schema.Struct({
|
|
1183
1178
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1184
1179
|
}).pipe(T.ResponsePath("result")),
|
|
@@ -1191,7 +1186,7 @@ export const linkDestinationPagerduty: API.OperationMethod<
|
|
|
1191
1186
|
LinkDestinationPagerdutyResponse,
|
|
1192
1187
|
LinkDestinationPagerdutyError,
|
|
1193
1188
|
Credentials | HttpClient.HttpClient
|
|
1194
|
-
> = /*@__PURE__*/
|
|
1189
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1195
1190
|
input: LinkDestinationPagerdutyRequest,
|
|
1196
1191
|
output: LinkDestinationPagerdutyResponse,
|
|
1197
1192
|
errors: [InvalidRoute],
|
|
@@ -1208,7 +1203,7 @@ export interface GetDestinationWebhookRequest {
|
|
|
1208
1203
|
}
|
|
1209
1204
|
|
|
1210
1205
|
export const GetDestinationWebhookRequest =
|
|
1211
|
-
/*@__PURE__*/
|
|
1206
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1212
1207
|
Schema.Struct({
|
|
1213
1208
|
webhookId: Schema.String.pipe(T.HttpPath("webhookId")),
|
|
1214
1209
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -1248,7 +1243,7 @@ export interface GetDestinationWebhookResponse {
|
|
|
1248
1243
|
}
|
|
1249
1244
|
|
|
1250
1245
|
export const GetDestinationWebhookResponse =
|
|
1251
|
-
/*@__PURE__*/
|
|
1246
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1252
1247
|
Schema.Struct({
|
|
1253
1248
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1254
1249
|
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -1299,7 +1294,7 @@ export const getDestinationWebhook: API.OperationMethod<
|
|
|
1299
1294
|
GetDestinationWebhookResponse,
|
|
1300
1295
|
GetDestinationWebhookError,
|
|
1301
1296
|
Credentials | HttpClient.HttpClient
|
|
1302
|
-
> = /*@__PURE__*/
|
|
1297
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1303
1298
|
input: GetDestinationWebhookRequest,
|
|
1304
1299
|
output: GetDestinationWebhookResponse,
|
|
1305
1300
|
errors: [InvalidRoute, WebhookNotFound],
|
|
@@ -1311,7 +1306,7 @@ export interface ListDestinationWebhooksRequest {
|
|
|
1311
1306
|
}
|
|
1312
1307
|
|
|
1313
1308
|
export const ListDestinationWebhooksRequest =
|
|
1314
|
-
/*@__PURE__*/
|
|
1309
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1315
1310
|
Schema.Struct({
|
|
1316
1311
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1317
1312
|
}).pipe(
|
|
@@ -1345,7 +1340,7 @@ export interface ListDestinationWebhooksResponse {
|
|
|
1345
1340
|
}
|
|
1346
1341
|
|
|
1347
1342
|
export const ListDestinationWebhooksResponse =
|
|
1348
|
-
/*@__PURE__*/
|
|
1343
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1349
1344
|
Schema.Struct({
|
|
1350
1345
|
result: Schema.Array(ListDestinationWebhooksResponseResult),
|
|
1351
1346
|
}),
|
|
@@ -1358,7 +1353,7 @@ export const listDestinationWebhooks: API.PaginatedOperationMethod<
|
|
|
1358
1353
|
ListDestinationWebhooksResponse,
|
|
1359
1354
|
ListDestinationWebhooksError,
|
|
1360
1355
|
Credentials | HttpClient.HttpClient
|
|
1361
|
-
> = /*@__PURE__*/
|
|
1356
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
1362
1357
|
input: ListDestinationWebhooksRequest,
|
|
1363
1358
|
output: ListDestinationWebhooksResponse,
|
|
1364
1359
|
errors: [],
|
|
@@ -1380,7 +1375,7 @@ export interface CreateDestinationWebhookRequest {
|
|
|
1380
1375
|
}
|
|
1381
1376
|
|
|
1382
1377
|
export const CreateDestinationWebhookRequest =
|
|
1383
|
-
/*@__PURE__*/
|
|
1378
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1384
1379
|
Schema.Struct({
|
|
1385
1380
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1386
1381
|
name: Schema.String,
|
|
@@ -1400,7 +1395,7 @@ export interface CreateDestinationWebhookResponse {
|
|
|
1400
1395
|
}
|
|
1401
1396
|
|
|
1402
1397
|
export const CreateDestinationWebhookResponse =
|
|
1403
|
-
/*@__PURE__*/
|
|
1398
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1404
1399
|
Schema.Struct({
|
|
1405
1400
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1406
1401
|
}).pipe(T.ResponsePath("result")),
|
|
@@ -1416,7 +1411,7 @@ export const createDestinationWebhook: API.OperationMethod<
|
|
|
1416
1411
|
CreateDestinationWebhookResponse,
|
|
1417
1412
|
CreateDestinationWebhookError,
|
|
1418
1413
|
Credentials | HttpClient.HttpClient
|
|
1419
|
-
> = /*@__PURE__*/
|
|
1414
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1420
1415
|
input: CreateDestinationWebhookRequest,
|
|
1421
1416
|
output: CreateDestinationWebhookResponse,
|
|
1422
1417
|
errors: [InvalidRoute, WebhookTestFailed],
|
|
@@ -1435,7 +1430,7 @@ export interface UpdateDestinationWebhookRequest {
|
|
|
1435
1430
|
}
|
|
1436
1431
|
|
|
1437
1432
|
export const UpdateDestinationWebhookRequest =
|
|
1438
|
-
/*@__PURE__*/
|
|
1433
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1439
1434
|
Schema.Struct({
|
|
1440
1435
|
webhookId: Schema.String.pipe(T.HttpPath("webhookId")),
|
|
1441
1436
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -1456,7 +1451,7 @@ export interface UpdateDestinationWebhookResponse {
|
|
|
1456
1451
|
}
|
|
1457
1452
|
|
|
1458
1453
|
export const UpdateDestinationWebhookResponse =
|
|
1459
|
-
/*@__PURE__*/
|
|
1454
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1460
1455
|
Schema.Struct({
|
|
1461
1456
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1462
1457
|
}).pipe(T.ResponsePath("result")),
|
|
@@ -1473,7 +1468,7 @@ export const updateDestinationWebhook: API.OperationMethod<
|
|
|
1473
1468
|
UpdateDestinationWebhookResponse,
|
|
1474
1469
|
UpdateDestinationWebhookError,
|
|
1475
1470
|
Credentials | HttpClient.HttpClient
|
|
1476
|
-
> = /*@__PURE__*/
|
|
1471
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1477
1472
|
input: UpdateDestinationWebhookRequest,
|
|
1478
1473
|
output: UpdateDestinationWebhookResponse,
|
|
1479
1474
|
errors: [InvalidRoute, InvalidWebhookId, WebhookTestFailed],
|
|
@@ -1486,7 +1481,7 @@ export interface DeleteDestinationWebhookRequest {
|
|
|
1486
1481
|
}
|
|
1487
1482
|
|
|
1488
1483
|
export const DeleteDestinationWebhookRequest =
|
|
1489
|
-
/*@__PURE__*/
|
|
1484
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1490
1485
|
Schema.Struct({
|
|
1491
1486
|
webhookId: Schema.String.pipe(T.HttpPath("webhookId")),
|
|
1492
1487
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -1506,7 +1501,7 @@ export interface DeleteDestinationWebhookResponse {
|
|
|
1506
1501
|
}
|
|
1507
1502
|
|
|
1508
1503
|
export const DeleteDestinationWebhookResponse =
|
|
1509
|
-
/*@__PURE__*/
|
|
1504
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1510
1505
|
Schema.Struct({
|
|
1511
1506
|
errors: Schema.Array(Error2),
|
|
1512
1507
|
messages: Schema.Array(Error2),
|
|
@@ -1524,7 +1519,7 @@ export const deleteDestinationWebhook: API.OperationMethod<
|
|
|
1524
1519
|
DeleteDestinationWebhookResponse,
|
|
1525
1520
|
DeleteDestinationWebhookError,
|
|
1526
1521
|
Credentials | HttpClient.HttpClient
|
|
1527
|
-
> = /*@__PURE__*/
|
|
1522
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1528
1523
|
input: DeleteDestinationWebhookRequest,
|
|
1529
1524
|
output: DeleteDestinationWebhookResponse,
|
|
1530
1525
|
errors: [InvalidRoute, InternalServerError],
|
|
@@ -1545,20 +1540,19 @@ export interface ListHistoriesRequest {
|
|
|
1545
1540
|
since?: string;
|
|
1546
1541
|
}
|
|
1547
1542
|
|
|
1548
|
-
export const ListHistoriesRequest = /*@__PURE__*/
|
|
1549
|
-
(
|
|
1550
|
-
Schema.
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
),
|
|
1543
|
+
export const ListHistoriesRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1544
|
+
Schema.Struct({
|
|
1545
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1546
|
+
page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
|
|
1547
|
+
perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
|
|
1548
|
+
before: Schema.optional(Schema.String).pipe(T.HttpQuery("before")),
|
|
1549
|
+
since: Schema.optional(Schema.String).pipe(T.HttpQuery("since")),
|
|
1550
|
+
}).pipe(
|
|
1551
|
+
T.Http({
|
|
1552
|
+
method: "GET",
|
|
1553
|
+
path: "/accounts/{account_id}/alerting/v3/history",
|
|
1554
|
+
}),
|
|
1555
|
+
),
|
|
1562
1556
|
) as unknown as Schema.Codec<ListHistoriesRequest>;
|
|
1563
1557
|
|
|
1564
1558
|
export interface ListHistoriesResponse {
|
|
@@ -1581,14 +1575,13 @@ export interface ListHistoriesResponse {
|
|
|
1581
1575
|
} | null;
|
|
1582
1576
|
}
|
|
1583
1577
|
|
|
1584
|
-
export const ListHistoriesResponse = /*@__PURE__*/
|
|
1585
|
-
(
|
|
1586
|
-
Schema.
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
|
|
1578
|
+
export const ListHistoriesResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
1579
|
+
Schema.Struct({
|
|
1580
|
+
result: Schema.Array(ListHistoriesResponseResult),
|
|
1581
|
+
resultInfo: Schema.optional(
|
|
1582
|
+
Schema.Union([ListHistoriesResponseResultInfo, Schema.Null]),
|
|
1583
|
+
),
|
|
1584
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
|
|
1592
1585
|
) as unknown as Schema.Codec<ListHistoriesResponse>;
|
|
1593
1586
|
|
|
1594
1587
|
export type ListHistoriesError = DefaultErrors;
|
|
@@ -1598,7 +1591,7 @@ export const listHistories: API.PaginatedOperationMethod<
|
|
|
1598
1591
|
ListHistoriesResponse,
|
|
1599
1592
|
ListHistoriesError,
|
|
1600
1593
|
Credentials | HttpClient.HttpClient
|
|
1601
|
-
> = /*@__PURE__*/
|
|
1594
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
1602
1595
|
input: ListHistoriesRequest,
|
|
1603
1596
|
output: ListHistoriesResponse,
|
|
1604
1597
|
errors: [],
|
|
@@ -1621,7 +1614,7 @@ export interface GetPolicyRequest {
|
|
|
1621
1614
|
accountId: string;
|
|
1622
1615
|
}
|
|
1623
1616
|
|
|
1624
|
-
export const GetPolicyRequest = /*@__PURE__*/
|
|
1617
|
+
export const GetPolicyRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1625
1618
|
Schema.Struct({
|
|
1626
1619
|
policyId: Schema.String.pipe(T.HttpPath("policyId")),
|
|
1627
1620
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -1781,174 +1774,170 @@ export interface GetPolicyResponse {
|
|
|
1781
1774
|
name?: string | null;
|
|
1782
1775
|
}
|
|
1783
1776
|
|
|
1784
|
-
export const GetPolicyResponse = /*@__PURE__*/
|
|
1785
|
-
(
|
|
1786
|
-
Schema.
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
),
|
|
1791
|
-
alertType: Schema.optional(
|
|
1777
|
+
export const GetPolicyResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
1778
|
+
Schema.Struct({
|
|
1779
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1780
|
+
alertInterval: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1781
|
+
alertType: Schema.optional(
|
|
1782
|
+
Schema.Union([
|
|
1792
1783
|
Schema.Union([
|
|
1793
|
-
Schema.
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
.
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
| "
|
|
1931
|
-
| "
|
|
1932
|
-
| "
|
|
1933
|
-
| "
|
|
1934
|
-
| "
|
|
1935
|
-
| "
|
|
1936
|
-
| "
|
|
1937
|
-
| "
|
|
1938
|
-
| "
|
|
1939
|
-
| "
|
|
1940
|
-
| "
|
|
1941
|
-
| "
|
|
1942
|
-
| "
|
|
1943
|
-
| "
|
|
1944
|
-
| "
|
|
1945
|
-
| "
|
|
1946
|
-
| "
|
|
1947
|
-
| "
|
|
1948
|
-
| "
|
|
1949
|
-
| "
|
|
1950
|
-
| "dedicated_ssl_certificate_event_type"
|
|
1951
|
-
| "device_connectivity_anomaly_alert"
|
|
1784
|
+
Schema.Literals([
|
|
1785
|
+
"abuse_report_alert",
|
|
1786
|
+
"access_custom_certificate_expiration_type",
|
|
1787
|
+
"advanced_ddos_attack_l4_alert",
|
|
1788
|
+
"advanced_ddos_attack_l7_alert",
|
|
1789
|
+
"advanced_http_alert_error",
|
|
1790
|
+
"bgp_hijack_notification",
|
|
1791
|
+
"billing_usage_alert",
|
|
1792
|
+
"block_notification_block_removed",
|
|
1793
|
+
"block_notification_new_block",
|
|
1794
|
+
"block_notification_review_rejected",
|
|
1795
|
+
"bot_traffic_basic_alert",
|
|
1796
|
+
"brand_protection_alert",
|
|
1797
|
+
"brand_protection_digest",
|
|
1798
|
+
"clickhouse_alert_fw_anomaly",
|
|
1799
|
+
"clickhouse_alert_fw_ent_anomaly",
|
|
1800
|
+
"cloudforce_one_request_notification",
|
|
1801
|
+
"cni_maintenance_notification",
|
|
1802
|
+
"custom_analytics",
|
|
1803
|
+
"custom_bot_detection_alert",
|
|
1804
|
+
"custom_ssl_certificate_event_type",
|
|
1805
|
+
"dedicated_ssl_certificate_event_type",
|
|
1806
|
+
"device_connectivity_anomaly_alert",
|
|
1807
|
+
"dos_attack_l4",
|
|
1808
|
+
"dos_attack_l7",
|
|
1809
|
+
"expiring_service_token_alert",
|
|
1810
|
+
"failing_logpush_job_disabled_alert",
|
|
1811
|
+
"fbm_auto_advertisement",
|
|
1812
|
+
"fbm_dosd_attack",
|
|
1813
|
+
"fbm_volumetric_attack",
|
|
1814
|
+
"health_check_status_notification",
|
|
1815
|
+
"hostname_aop_custom_certificate_expiration_type",
|
|
1816
|
+
"http_alert_edge_error",
|
|
1817
|
+
"http_alert_origin_error",
|
|
1818
|
+
"image_notification",
|
|
1819
|
+
"image_resizing_notification",
|
|
1820
|
+
"incident_alert",
|
|
1821
|
+
"load_balancing_health_alert",
|
|
1822
|
+
"load_balancing_pool_enablement_alert",
|
|
1823
|
+
"logo_match_alert",
|
|
1824
|
+
"magic_tunnel_health_check_event",
|
|
1825
|
+
"magic_wan_tunnel_health",
|
|
1826
|
+
"maintenance_event_notification",
|
|
1827
|
+
"mtls_certificate_store_certificate_expiration_type",
|
|
1828
|
+
"pages_event_alert",
|
|
1829
|
+
"radar_notification",
|
|
1830
|
+
"real_origin_monitoring",
|
|
1831
|
+
"scriptmonitor_alert_new_code_change_detections",
|
|
1832
|
+
"scriptmonitor_alert_new_hosts",
|
|
1833
|
+
"scriptmonitor_alert_new_malicious_hosts",
|
|
1834
|
+
"scriptmonitor_alert_new_malicious_scripts",
|
|
1835
|
+
"scriptmonitor_alert_new_malicious_url",
|
|
1836
|
+
"scriptmonitor_alert_new_max_length_resource_url",
|
|
1837
|
+
"scriptmonitor_alert_new_resources",
|
|
1838
|
+
"secondary_dns_all_primaries_failing",
|
|
1839
|
+
"secondary_dns_primaries_failing",
|
|
1840
|
+
"secondary_dns_warning",
|
|
1841
|
+
"secondary_dns_zone_successfully_updated",
|
|
1842
|
+
"secondary_dns_zone_validation_warning",
|
|
1843
|
+
"security_insights_alert",
|
|
1844
|
+
"sentinel_alert",
|
|
1845
|
+
"stream_live_notifications",
|
|
1846
|
+
"synthetic_test_latency_alert",
|
|
1847
|
+
"synthetic_test_low_availability_alert",
|
|
1848
|
+
"traffic_anomalies_alert",
|
|
1849
|
+
"tunnel_health_event",
|
|
1850
|
+
"tunnel_update_event",
|
|
1851
|
+
"universal_ssl_event_type",
|
|
1852
|
+
"web_analytics_metrics_update",
|
|
1853
|
+
"zone_aop_custom_certificate_expiration_type",
|
|
1854
|
+
]),
|
|
1855
|
+
Schema.String,
|
|
1856
|
+
]),
|
|
1857
|
+
Schema.Null,
|
|
1858
|
+
]),
|
|
1859
|
+
),
|
|
1860
|
+
created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1861
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1862
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1863
|
+
filters: Schema.optional(Schema.Union([PolicyFilter, Schema.Null])),
|
|
1864
|
+
mechanisms: Schema.optional(Schema.Union([Mechanism, Schema.Null])),
|
|
1865
|
+
modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1866
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1867
|
+
})
|
|
1868
|
+
.pipe(
|
|
1869
|
+
Schema.encodeKeys({
|
|
1870
|
+
id: "id",
|
|
1871
|
+
alertInterval: "alert_interval",
|
|
1872
|
+
alertType: "alert_type",
|
|
1873
|
+
created: "created",
|
|
1874
|
+
description: "description",
|
|
1875
|
+
enabled: "enabled",
|
|
1876
|
+
filters: "filters",
|
|
1877
|
+
mechanisms: "mechanisms",
|
|
1878
|
+
modified: "modified",
|
|
1879
|
+
name: "name",
|
|
1880
|
+
}),
|
|
1881
|
+
)
|
|
1882
|
+
.pipe(T.ResponsePath("result")),
|
|
1883
|
+
) as unknown as Schema.Codec<GetPolicyResponse>;
|
|
1884
|
+
|
|
1885
|
+
export type GetPolicyError = DefaultErrors | InvalidRoute | PolicyNotFound;
|
|
1886
|
+
|
|
1887
|
+
export const getPolicy: API.OperationMethod<
|
|
1888
|
+
GetPolicyRequest,
|
|
1889
|
+
GetPolicyResponse,
|
|
1890
|
+
GetPolicyError,
|
|
1891
|
+
Credentials | HttpClient.HttpClient
|
|
1892
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1893
|
+
input: GetPolicyRequest,
|
|
1894
|
+
output: GetPolicyResponse,
|
|
1895
|
+
errors: [InvalidRoute, PolicyNotFound],
|
|
1896
|
+
}));
|
|
1897
|
+
|
|
1898
|
+
export interface ListPoliciesRequest {
|
|
1899
|
+
/** The account id */
|
|
1900
|
+
accountId: string;
|
|
1901
|
+
}
|
|
1902
|
+
|
|
1903
|
+
export const ListPoliciesRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1904
|
+
Schema.Struct({
|
|
1905
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1906
|
+
}).pipe(
|
|
1907
|
+
T.Http({
|
|
1908
|
+
method: "GET",
|
|
1909
|
+
path: "/accounts/{account_id}/alerting/v3/policies",
|
|
1910
|
+
}),
|
|
1911
|
+
),
|
|
1912
|
+
) as unknown as Schema.Codec<ListPoliciesRequest>;
|
|
1913
|
+
|
|
1914
|
+
export interface ListPoliciesResponse {
|
|
1915
|
+
result: {
|
|
1916
|
+
id?: string | null;
|
|
1917
|
+
alertInterval?: string | null;
|
|
1918
|
+
alertType?:
|
|
1919
|
+
| "abuse_report_alert"
|
|
1920
|
+
| "access_custom_certificate_expiration_type"
|
|
1921
|
+
| "advanced_ddos_attack_l4_alert"
|
|
1922
|
+
| "advanced_ddos_attack_l7_alert"
|
|
1923
|
+
| "advanced_http_alert_error"
|
|
1924
|
+
| "bgp_hijack_notification"
|
|
1925
|
+
| "billing_usage_alert"
|
|
1926
|
+
| "block_notification_block_removed"
|
|
1927
|
+
| "block_notification_new_block"
|
|
1928
|
+
| "block_notification_review_rejected"
|
|
1929
|
+
| "bot_traffic_basic_alert"
|
|
1930
|
+
| "brand_protection_alert"
|
|
1931
|
+
| "brand_protection_digest"
|
|
1932
|
+
| "clickhouse_alert_fw_anomaly"
|
|
1933
|
+
| "clickhouse_alert_fw_ent_anomaly"
|
|
1934
|
+
| "cloudforce_one_request_notification"
|
|
1935
|
+
| "cni_maintenance_notification"
|
|
1936
|
+
| "custom_analytics"
|
|
1937
|
+
| "custom_bot_detection_alert"
|
|
1938
|
+
| "custom_ssl_certificate_event_type"
|
|
1939
|
+
| "dedicated_ssl_certificate_event_type"
|
|
1940
|
+
| "device_connectivity_anomaly_alert"
|
|
1952
1941
|
| "dos_attack_l4"
|
|
1953
1942
|
| "dos_attack_l7"
|
|
1954
1943
|
| "expiring_service_token_alert"
|
|
@@ -2064,11 +2053,10 @@ export interface ListPoliciesResponse {
|
|
|
2064
2053
|
}[];
|
|
2065
2054
|
}
|
|
2066
2055
|
|
|
2067
|
-
export const ListPoliciesResponse = /*@__PURE__*/
|
|
2068
|
-
(
|
|
2069
|
-
Schema.
|
|
2070
|
-
|
|
2071
|
-
}),
|
|
2056
|
+
export const ListPoliciesResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2057
|
+
Schema.Struct({
|
|
2058
|
+
result: Schema.Array(ListPoliciesResponseResult),
|
|
2059
|
+
}),
|
|
2072
2060
|
) as unknown as Schema.Codec<ListPoliciesResponse>;
|
|
2073
2061
|
|
|
2074
2062
|
export type ListPoliciesError = DefaultErrors;
|
|
@@ -2078,7 +2066,7 @@ export const listPolicies: API.PaginatedOperationMethod<
|
|
|
2078
2066
|
ListPoliciesResponse,
|
|
2079
2067
|
ListPoliciesError,
|
|
2080
2068
|
Credentials | HttpClient.HttpClient
|
|
2081
|
-
> = /*@__PURE__*/
|
|
2069
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
2082
2070
|
input: ListPoliciesRequest,
|
|
2083
2071
|
output: ListPoliciesResponse,
|
|
2084
2072
|
errors: [],
|
|
@@ -2231,105 +2219,104 @@ export interface CreatePolicyRequest {
|
|
|
2231
2219
|
};
|
|
2232
2220
|
}
|
|
2233
2221
|
|
|
2234
|
-
export const CreatePolicyRequest = /*@__PURE__*/
|
|
2235
|
-
(
|
|
2236
|
-
Schema.
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
"zone_aop_custom_certificate_expiration_type",
|
|
2309
|
-
]),
|
|
2310
|
-
Schema.String,
|
|
2222
|
+
export const CreatePolicyRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2223
|
+
Schema.Struct({
|
|
2224
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2225
|
+
alertType: Schema.Union([
|
|
2226
|
+
Schema.Literals([
|
|
2227
|
+
"abuse_report_alert",
|
|
2228
|
+
"access_custom_certificate_expiration_type",
|
|
2229
|
+
"advanced_ddos_attack_l4_alert",
|
|
2230
|
+
"advanced_ddos_attack_l7_alert",
|
|
2231
|
+
"advanced_http_alert_error",
|
|
2232
|
+
"bgp_hijack_notification",
|
|
2233
|
+
"billing_usage_alert",
|
|
2234
|
+
"block_notification_block_removed",
|
|
2235
|
+
"block_notification_new_block",
|
|
2236
|
+
"block_notification_review_rejected",
|
|
2237
|
+
"bot_traffic_basic_alert",
|
|
2238
|
+
"brand_protection_alert",
|
|
2239
|
+
"brand_protection_digest",
|
|
2240
|
+
"clickhouse_alert_fw_anomaly",
|
|
2241
|
+
"clickhouse_alert_fw_ent_anomaly",
|
|
2242
|
+
"cloudforce_one_request_notification",
|
|
2243
|
+
"cni_maintenance_notification",
|
|
2244
|
+
"custom_analytics",
|
|
2245
|
+
"custom_bot_detection_alert",
|
|
2246
|
+
"custom_ssl_certificate_event_type",
|
|
2247
|
+
"dedicated_ssl_certificate_event_type",
|
|
2248
|
+
"device_connectivity_anomaly_alert",
|
|
2249
|
+
"dos_attack_l4",
|
|
2250
|
+
"dos_attack_l7",
|
|
2251
|
+
"expiring_service_token_alert",
|
|
2252
|
+
"failing_logpush_job_disabled_alert",
|
|
2253
|
+
"fbm_auto_advertisement",
|
|
2254
|
+
"fbm_dosd_attack",
|
|
2255
|
+
"fbm_volumetric_attack",
|
|
2256
|
+
"health_check_status_notification",
|
|
2257
|
+
"hostname_aop_custom_certificate_expiration_type",
|
|
2258
|
+
"http_alert_edge_error",
|
|
2259
|
+
"http_alert_origin_error",
|
|
2260
|
+
"image_notification",
|
|
2261
|
+
"image_resizing_notification",
|
|
2262
|
+
"incident_alert",
|
|
2263
|
+
"load_balancing_health_alert",
|
|
2264
|
+
"load_balancing_pool_enablement_alert",
|
|
2265
|
+
"logo_match_alert",
|
|
2266
|
+
"magic_tunnel_health_check_event",
|
|
2267
|
+
"magic_wan_tunnel_health",
|
|
2268
|
+
"maintenance_event_notification",
|
|
2269
|
+
"mtls_certificate_store_certificate_expiration_type",
|
|
2270
|
+
"pages_event_alert",
|
|
2271
|
+
"radar_notification",
|
|
2272
|
+
"real_origin_monitoring",
|
|
2273
|
+
"scriptmonitor_alert_new_code_change_detections",
|
|
2274
|
+
"scriptmonitor_alert_new_hosts",
|
|
2275
|
+
"scriptmonitor_alert_new_malicious_hosts",
|
|
2276
|
+
"scriptmonitor_alert_new_malicious_scripts",
|
|
2277
|
+
"scriptmonitor_alert_new_malicious_url",
|
|
2278
|
+
"scriptmonitor_alert_new_max_length_resource_url",
|
|
2279
|
+
"scriptmonitor_alert_new_resources",
|
|
2280
|
+
"secondary_dns_all_primaries_failing",
|
|
2281
|
+
"secondary_dns_primaries_failing",
|
|
2282
|
+
"secondary_dns_warning",
|
|
2283
|
+
"secondary_dns_zone_successfully_updated",
|
|
2284
|
+
"secondary_dns_zone_validation_warning",
|
|
2285
|
+
"security_insights_alert",
|
|
2286
|
+
"sentinel_alert",
|
|
2287
|
+
"stream_live_notifications",
|
|
2288
|
+
"synthetic_test_latency_alert",
|
|
2289
|
+
"synthetic_test_low_availability_alert",
|
|
2290
|
+
"traffic_anomalies_alert",
|
|
2291
|
+
"tunnel_health_event",
|
|
2292
|
+
"tunnel_update_event",
|
|
2293
|
+
"universal_ssl_event_type",
|
|
2294
|
+
"web_analytics_metrics_update",
|
|
2295
|
+
"zone_aop_custom_certificate_expiration_type",
|
|
2311
2296
|
]),
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2297
|
+
Schema.String,
|
|
2298
|
+
]),
|
|
2299
|
+
enabled: Schema.Boolean,
|
|
2300
|
+
mechanisms: Mechanism,
|
|
2301
|
+
name: Schema.String,
|
|
2302
|
+
alertInterval: Schema.optional(Schema.String),
|
|
2303
|
+
description: Schema.optional(Schema.String),
|
|
2304
|
+
filters: Schema.optional(PolicyFilter),
|
|
2305
|
+
}).pipe(
|
|
2306
|
+
Schema.encodeKeys({
|
|
2307
|
+
alertType: "alert_type",
|
|
2308
|
+
enabled: "enabled",
|
|
2309
|
+
mechanisms: "mechanisms",
|
|
2310
|
+
name: "name",
|
|
2311
|
+
alertInterval: "alert_interval",
|
|
2312
|
+
description: "description",
|
|
2313
|
+
filters: "filters",
|
|
2314
|
+
}),
|
|
2315
|
+
T.Http({
|
|
2316
|
+
method: "POST",
|
|
2317
|
+
path: "/accounts/{account_id}/alerting/v3/policies",
|
|
2318
|
+
}),
|
|
2319
|
+
),
|
|
2333
2320
|
) as unknown as Schema.Codec<CreatePolicyRequest>;
|
|
2334
2321
|
|
|
2335
2322
|
export interface CreatePolicyResponse {
|
|
@@ -2337,11 +2324,10 @@ export interface CreatePolicyResponse {
|
|
|
2337
2324
|
id?: string | null;
|
|
2338
2325
|
}
|
|
2339
2326
|
|
|
2340
|
-
export const CreatePolicyResponse = /*@__PURE__*/
|
|
2341
|
-
(
|
|
2342
|
-
Schema.
|
|
2343
|
-
|
|
2344
|
-
}).pipe(T.ResponsePath("result")),
|
|
2327
|
+
export const CreatePolicyResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2328
|
+
Schema.Struct({
|
|
2329
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2330
|
+
}).pipe(T.ResponsePath("result")),
|
|
2345
2331
|
) as unknown as Schema.Codec<CreatePolicyResponse>;
|
|
2346
2332
|
|
|
2347
2333
|
export type CreatePolicyError =
|
|
@@ -2355,7 +2341,7 @@ export const createPolicy: API.OperationMethod<
|
|
|
2355
2341
|
CreatePolicyResponse,
|
|
2356
2342
|
CreatePolicyError,
|
|
2357
2343
|
Credentials | HttpClient.HttpClient
|
|
2358
|
-
> = /*@__PURE__*/
|
|
2344
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2359
2345
|
input: CreatePolicyRequest,
|
|
2360
2346
|
output: CreatePolicyResponse,
|
|
2361
2347
|
errors: [InvalidRoute, FiltersRequired, MechanismRequired],
|
|
@@ -2505,108 +2491,107 @@ export interface UpdatePolicyRequest {
|
|
|
2505
2491
|
name?: string;
|
|
2506
2492
|
}
|
|
2507
2493
|
|
|
2508
|
-
export const UpdatePolicyRequest = /*@__PURE__*/
|
|
2509
|
-
(
|
|
2510
|
-
Schema.
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
Schema.
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
"zone_aop_custom_certificate_expiration_type",
|
|
2586
|
-
]),
|
|
2587
|
-
Schema.String,
|
|
2494
|
+
export const UpdatePolicyRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2495
|
+
Schema.Struct({
|
|
2496
|
+
policyId: Schema.String.pipe(T.HttpPath("policyId")),
|
|
2497
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2498
|
+
alertInterval: Schema.optional(Schema.String),
|
|
2499
|
+
alertType: Schema.optional(
|
|
2500
|
+
Schema.Union([
|
|
2501
|
+
Schema.Literals([
|
|
2502
|
+
"abuse_report_alert",
|
|
2503
|
+
"access_custom_certificate_expiration_type",
|
|
2504
|
+
"advanced_ddos_attack_l4_alert",
|
|
2505
|
+
"advanced_ddos_attack_l7_alert",
|
|
2506
|
+
"advanced_http_alert_error",
|
|
2507
|
+
"bgp_hijack_notification",
|
|
2508
|
+
"billing_usage_alert",
|
|
2509
|
+
"block_notification_block_removed",
|
|
2510
|
+
"block_notification_new_block",
|
|
2511
|
+
"block_notification_review_rejected",
|
|
2512
|
+
"bot_traffic_basic_alert",
|
|
2513
|
+
"brand_protection_alert",
|
|
2514
|
+
"brand_protection_digest",
|
|
2515
|
+
"clickhouse_alert_fw_anomaly",
|
|
2516
|
+
"clickhouse_alert_fw_ent_anomaly",
|
|
2517
|
+
"cloudforce_one_request_notification",
|
|
2518
|
+
"cni_maintenance_notification",
|
|
2519
|
+
"custom_analytics",
|
|
2520
|
+
"custom_bot_detection_alert",
|
|
2521
|
+
"custom_ssl_certificate_event_type",
|
|
2522
|
+
"dedicated_ssl_certificate_event_type",
|
|
2523
|
+
"device_connectivity_anomaly_alert",
|
|
2524
|
+
"dos_attack_l4",
|
|
2525
|
+
"dos_attack_l7",
|
|
2526
|
+
"expiring_service_token_alert",
|
|
2527
|
+
"failing_logpush_job_disabled_alert",
|
|
2528
|
+
"fbm_auto_advertisement",
|
|
2529
|
+
"fbm_dosd_attack",
|
|
2530
|
+
"fbm_volumetric_attack",
|
|
2531
|
+
"health_check_status_notification",
|
|
2532
|
+
"hostname_aop_custom_certificate_expiration_type",
|
|
2533
|
+
"http_alert_edge_error",
|
|
2534
|
+
"http_alert_origin_error",
|
|
2535
|
+
"image_notification",
|
|
2536
|
+
"image_resizing_notification",
|
|
2537
|
+
"incident_alert",
|
|
2538
|
+
"load_balancing_health_alert",
|
|
2539
|
+
"load_balancing_pool_enablement_alert",
|
|
2540
|
+
"logo_match_alert",
|
|
2541
|
+
"magic_tunnel_health_check_event",
|
|
2542
|
+
"magic_wan_tunnel_health",
|
|
2543
|
+
"maintenance_event_notification",
|
|
2544
|
+
"mtls_certificate_store_certificate_expiration_type",
|
|
2545
|
+
"pages_event_alert",
|
|
2546
|
+
"radar_notification",
|
|
2547
|
+
"real_origin_monitoring",
|
|
2548
|
+
"scriptmonitor_alert_new_code_change_detections",
|
|
2549
|
+
"scriptmonitor_alert_new_hosts",
|
|
2550
|
+
"scriptmonitor_alert_new_malicious_hosts",
|
|
2551
|
+
"scriptmonitor_alert_new_malicious_scripts",
|
|
2552
|
+
"scriptmonitor_alert_new_malicious_url",
|
|
2553
|
+
"scriptmonitor_alert_new_max_length_resource_url",
|
|
2554
|
+
"scriptmonitor_alert_new_resources",
|
|
2555
|
+
"secondary_dns_all_primaries_failing",
|
|
2556
|
+
"secondary_dns_primaries_failing",
|
|
2557
|
+
"secondary_dns_warning",
|
|
2558
|
+
"secondary_dns_zone_successfully_updated",
|
|
2559
|
+
"secondary_dns_zone_validation_warning",
|
|
2560
|
+
"security_insights_alert",
|
|
2561
|
+
"sentinel_alert",
|
|
2562
|
+
"stream_live_notifications",
|
|
2563
|
+
"synthetic_test_latency_alert",
|
|
2564
|
+
"synthetic_test_low_availability_alert",
|
|
2565
|
+
"traffic_anomalies_alert",
|
|
2566
|
+
"tunnel_health_event",
|
|
2567
|
+
"tunnel_update_event",
|
|
2568
|
+
"universal_ssl_event_type",
|
|
2569
|
+
"web_analytics_metrics_update",
|
|
2570
|
+
"zone_aop_custom_certificate_expiration_type",
|
|
2588
2571
|
]),
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
enabled: Schema.optional(Schema.Boolean),
|
|
2592
|
-
filters: Schema.optional(PolicyFilter),
|
|
2593
|
-
mechanisms: Schema.optional(Mechanism),
|
|
2594
|
-
name: Schema.optional(Schema.String),
|
|
2595
|
-
}).pipe(
|
|
2596
|
-
Schema.encodeKeys({
|
|
2597
|
-
alertInterval: "alert_interval",
|
|
2598
|
-
alertType: "alert_type",
|
|
2599
|
-
description: "description",
|
|
2600
|
-
enabled: "enabled",
|
|
2601
|
-
filters: "filters",
|
|
2602
|
-
mechanisms: "mechanisms",
|
|
2603
|
-
name: "name",
|
|
2604
|
-
}),
|
|
2605
|
-
T.Http({
|
|
2606
|
-
method: "PUT",
|
|
2607
|
-
path: "/accounts/{account_id}/alerting/v3/policies/{policyId}",
|
|
2608
|
-
}),
|
|
2572
|
+
Schema.String,
|
|
2573
|
+
]),
|
|
2609
2574
|
),
|
|
2575
|
+
description: Schema.optional(Schema.String),
|
|
2576
|
+
enabled: Schema.optional(Schema.Boolean),
|
|
2577
|
+
filters: Schema.optional(PolicyFilter),
|
|
2578
|
+
mechanisms: Schema.optional(Mechanism),
|
|
2579
|
+
name: Schema.optional(Schema.String),
|
|
2580
|
+
}).pipe(
|
|
2581
|
+
Schema.encodeKeys({
|
|
2582
|
+
alertInterval: "alert_interval",
|
|
2583
|
+
alertType: "alert_type",
|
|
2584
|
+
description: "description",
|
|
2585
|
+
enabled: "enabled",
|
|
2586
|
+
filters: "filters",
|
|
2587
|
+
mechanisms: "mechanisms",
|
|
2588
|
+
name: "name",
|
|
2589
|
+
}),
|
|
2590
|
+
T.Http({
|
|
2591
|
+
method: "PUT",
|
|
2592
|
+
path: "/accounts/{account_id}/alerting/v3/policies/{policyId}",
|
|
2593
|
+
}),
|
|
2594
|
+
),
|
|
2610
2595
|
) as unknown as Schema.Codec<UpdatePolicyRequest>;
|
|
2611
2596
|
|
|
2612
2597
|
export interface UpdatePolicyResponse {
|
|
@@ -2614,11 +2599,10 @@ export interface UpdatePolicyResponse {
|
|
|
2614
2599
|
id?: string | null;
|
|
2615
2600
|
}
|
|
2616
2601
|
|
|
2617
|
-
export const UpdatePolicyResponse = /*@__PURE__*/
|
|
2618
|
-
(
|
|
2619
|
-
Schema.
|
|
2620
|
-
|
|
2621
|
-
}).pipe(T.ResponsePath("result")),
|
|
2602
|
+
export const UpdatePolicyResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2603
|
+
Schema.Struct({
|
|
2604
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2605
|
+
}).pipe(T.ResponsePath("result")),
|
|
2622
2606
|
) as unknown as Schema.Codec<UpdatePolicyResponse>;
|
|
2623
2607
|
|
|
2624
2608
|
export type UpdatePolicyError =
|
|
@@ -2633,7 +2617,7 @@ export const updatePolicy: API.OperationMethod<
|
|
|
2633
2617
|
UpdatePolicyResponse,
|
|
2634
2618
|
UpdatePolicyError,
|
|
2635
2619
|
Credentials | HttpClient.HttpClient
|
|
2636
|
-
> = /*@__PURE__*/
|
|
2620
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2637
2621
|
input: UpdatePolicyRequest,
|
|
2638
2622
|
output: UpdatePolicyResponse,
|
|
2639
2623
|
errors: [InvalidRoute, PolicyNotFound, InvalidAlertType, MechanismRequired],
|
|
@@ -2645,17 +2629,16 @@ export interface DeletePolicyRequest {
|
|
|
2645
2629
|
accountId: string;
|
|
2646
2630
|
}
|
|
2647
2631
|
|
|
2648
|
-
export const DeletePolicyRequest = /*@__PURE__*/
|
|
2649
|
-
(
|
|
2650
|
-
Schema.
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
),
|
|
2632
|
+
export const DeletePolicyRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2633
|
+
Schema.Struct({
|
|
2634
|
+
policyId: Schema.String.pipe(T.HttpPath("policyId")),
|
|
2635
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2636
|
+
}).pipe(
|
|
2637
|
+
T.Http({
|
|
2638
|
+
method: "DELETE",
|
|
2639
|
+
path: "/accounts/{account_id}/alerting/v3/policies/{policyId}",
|
|
2640
|
+
}),
|
|
2641
|
+
),
|
|
2659
2642
|
) as unknown as Schema.Codec<DeletePolicyRequest>;
|
|
2660
2643
|
|
|
2661
2644
|
export interface DeletePolicyResponse {
|
|
@@ -2671,29 +2654,24 @@ export interface DeletePolicyResponse {
|
|
|
2671
2654
|
} | null;
|
|
2672
2655
|
}
|
|
2673
2656
|
|
|
2674
|
-
export const DeletePolicyResponse = /*@__PURE__*/
|
|
2675
|
-
(
|
|
2676
|
-
Schema.
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
),
|
|
2680
|
-
messages: Schema.optional(
|
|
2681
|
-
Schema.Union([Schema.Array(Error2), Schema.Null]),
|
|
2682
|
-
),
|
|
2683
|
-
success: Schema.optional(
|
|
2684
|
-
Schema.Union([Schema.Literal(true), Schema.Null]),
|
|
2685
|
-
),
|
|
2686
|
-
resultInfo: Schema.optional(
|
|
2687
|
-
Schema.Union([ListHistoriesResponseResultInfo, Schema.Null]),
|
|
2688
|
-
),
|
|
2689
|
-
}).pipe(
|
|
2690
|
-
Schema.encodeKeys({
|
|
2691
|
-
errors: "errors",
|
|
2692
|
-
messages: "messages",
|
|
2693
|
-
success: "success",
|
|
2694
|
-
resultInfo: "result_info",
|
|
2695
|
-
}),
|
|
2657
|
+
export const DeletePolicyResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2658
|
+
Schema.Struct({
|
|
2659
|
+
errors: Schema.optional(Schema.Union([Schema.Array(Error2), Schema.Null])),
|
|
2660
|
+
messages: Schema.optional(
|
|
2661
|
+
Schema.Union([Schema.Array(Error2), Schema.Null]),
|
|
2696
2662
|
),
|
|
2663
|
+
success: Schema.optional(Schema.Union([Schema.Literal(true), Schema.Null])),
|
|
2664
|
+
resultInfo: Schema.optional(
|
|
2665
|
+
Schema.Union([ListHistoriesResponseResultInfo, Schema.Null]),
|
|
2666
|
+
),
|
|
2667
|
+
}).pipe(
|
|
2668
|
+
Schema.encodeKeys({
|
|
2669
|
+
errors: "errors",
|
|
2670
|
+
messages: "messages",
|
|
2671
|
+
success: "success",
|
|
2672
|
+
resultInfo: "result_info",
|
|
2673
|
+
}),
|
|
2674
|
+
),
|
|
2697
2675
|
) as unknown as Schema.Codec<DeletePolicyResponse>;
|
|
2698
2676
|
|
|
2699
2677
|
export type DeletePolicyError = DefaultErrors | InvalidRoute | PolicyNotFound;
|
|
@@ -2703,7 +2681,7 @@ export const deletePolicy: API.OperationMethod<
|
|
|
2703
2681
|
DeletePolicyResponse,
|
|
2704
2682
|
DeletePolicyError,
|
|
2705
2683
|
Credentials | HttpClient.HttpClient
|
|
2706
|
-
> = /*@__PURE__*/
|
|
2684
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2707
2685
|
input: DeletePolicyRequest,
|
|
2708
2686
|
output: DeletePolicyResponse,
|
|
2709
2687
|
errors: [InvalidRoute, PolicyNotFound],
|
|
@@ -2719,17 +2697,16 @@ export interface GetSilenceRequest {
|
|
|
2719
2697
|
accountId: string;
|
|
2720
2698
|
}
|
|
2721
2699
|
|
|
2722
|
-
export const GetSilenceRequest = /*@__PURE__*/
|
|
2723
|
-
(
|
|
2724
|
-
Schema.
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
),
|
|
2700
|
+
export const GetSilenceRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2701
|
+
Schema.Struct({
|
|
2702
|
+
silenceId: Schema.String.pipe(T.HttpPath("silenceId")),
|
|
2703
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2704
|
+
}).pipe(
|
|
2705
|
+
T.Http({
|
|
2706
|
+
method: "GET",
|
|
2707
|
+
path: "/accounts/{account_id}/alerting/v3/silences/{silenceId}",
|
|
2708
|
+
}),
|
|
2709
|
+
),
|
|
2733
2710
|
) as unknown as Schema.Codec<GetSilenceRequest>;
|
|
2734
2711
|
|
|
2735
2712
|
export interface GetSilenceResponse {
|
|
@@ -2747,27 +2724,26 @@ export interface GetSilenceResponse {
|
|
|
2747
2724
|
updatedAt?: string | null;
|
|
2748
2725
|
}
|
|
2749
2726
|
|
|
2750
|
-
export const GetSilenceResponse = /*@__PURE__*/
|
|
2751
|
-
(
|
|
2752
|
-
Schema.
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
.
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
.pipe(T.ResponsePath("result")),
|
|
2727
|
+
export const GetSilenceResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2728
|
+
Schema.Struct({
|
|
2729
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2730
|
+
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2731
|
+
endTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2732
|
+
policyId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2733
|
+
startTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2734
|
+
updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2735
|
+
})
|
|
2736
|
+
.pipe(
|
|
2737
|
+
Schema.encodeKeys({
|
|
2738
|
+
id: "id",
|
|
2739
|
+
createdAt: "created_at",
|
|
2740
|
+
endTime: "end_time",
|
|
2741
|
+
policyId: "policy_id",
|
|
2742
|
+
startTime: "start_time",
|
|
2743
|
+
updatedAt: "updated_at",
|
|
2744
|
+
}),
|
|
2745
|
+
)
|
|
2746
|
+
.pipe(T.ResponsePath("result")),
|
|
2771
2747
|
) as unknown as Schema.Codec<GetSilenceResponse>;
|
|
2772
2748
|
|
|
2773
2749
|
export type GetSilenceError =
|
|
@@ -2781,7 +2757,7 @@ export const getSilence: API.OperationMethod<
|
|
|
2781
2757
|
GetSilenceResponse,
|
|
2782
2758
|
GetSilenceError,
|
|
2783
2759
|
Credentials | HttpClient.HttpClient
|
|
2784
|
-
> = /*@__PURE__*/
|
|
2760
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2785
2761
|
input: GetSilenceRequest,
|
|
2786
2762
|
output: GetSilenceResponse,
|
|
2787
2763
|
errors: [InvalidRoute, InternalServerError, SilenceNotFound],
|
|
@@ -2792,16 +2768,15 @@ export interface ListSilencesRequest {
|
|
|
2792
2768
|
accountId: string;
|
|
2793
2769
|
}
|
|
2794
2770
|
|
|
2795
|
-
export const ListSilencesRequest = /*@__PURE__*/
|
|
2796
|
-
(
|
|
2797
|
-
Schema.
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
),
|
|
2771
|
+
export const ListSilencesRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2772
|
+
Schema.Struct({
|
|
2773
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2774
|
+
}).pipe(
|
|
2775
|
+
T.Http({
|
|
2776
|
+
method: "GET",
|
|
2777
|
+
path: "/accounts/{account_id}/alerting/v3/silences",
|
|
2778
|
+
}),
|
|
2779
|
+
),
|
|
2805
2780
|
) as unknown as Schema.Codec<ListSilencesRequest>;
|
|
2806
2781
|
|
|
2807
2782
|
export interface ListSilencesResponse {
|
|
@@ -2815,11 +2790,10 @@ export interface ListSilencesResponse {
|
|
|
2815
2790
|
}[];
|
|
2816
2791
|
}
|
|
2817
2792
|
|
|
2818
|
-
export const ListSilencesResponse = /*@__PURE__*/
|
|
2819
|
-
(
|
|
2820
|
-
Schema.
|
|
2821
|
-
|
|
2822
|
-
}),
|
|
2793
|
+
export const ListSilencesResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2794
|
+
Schema.Struct({
|
|
2795
|
+
result: Schema.Array(ListSilencesResponseResult),
|
|
2796
|
+
}),
|
|
2823
2797
|
) as unknown as Schema.Codec<ListSilencesResponse>;
|
|
2824
2798
|
|
|
2825
2799
|
export type ListSilencesError = DefaultErrors;
|
|
@@ -2829,7 +2803,7 @@ export const listSilences: API.PaginatedOperationMethod<
|
|
|
2829
2803
|
ListSilencesResponse,
|
|
2830
2804
|
ListSilencesError,
|
|
2831
2805
|
Credentials | HttpClient.HttpClient
|
|
2832
|
-
> = /*@__PURE__*/
|
|
2806
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
2833
2807
|
input: ListSilencesRequest,
|
|
2834
2808
|
output: ListSilencesResponse,
|
|
2835
2809
|
errors: [],
|
|
@@ -2846,17 +2820,16 @@ export interface CreateSilenceRequest {
|
|
|
2846
2820
|
body: { endTime?: string; policyId?: string; startTime?: string }[];
|
|
2847
2821
|
}
|
|
2848
2822
|
|
|
2849
|
-
export const CreateSilenceRequest = /*@__PURE__*/
|
|
2850
|
-
(
|
|
2851
|
-
Schema.
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
),
|
|
2823
|
+
export const CreateSilenceRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2824
|
+
Schema.Struct({
|
|
2825
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2826
|
+
body: Schema.Array(Body).pipe(T.HttpBody()),
|
|
2827
|
+
}).pipe(
|
|
2828
|
+
T.Http({
|
|
2829
|
+
method: "POST",
|
|
2830
|
+
path: "/accounts/{account_id}/alerting/v3/silences",
|
|
2831
|
+
}),
|
|
2832
|
+
),
|
|
2860
2833
|
) as unknown as Schema.Codec<CreateSilenceRequest>;
|
|
2861
2834
|
|
|
2862
2835
|
export interface CreateSilenceResponse {
|
|
@@ -2866,13 +2839,12 @@ export interface CreateSilenceResponse {
|
|
|
2866
2839
|
success: true;
|
|
2867
2840
|
}
|
|
2868
2841
|
|
|
2869
|
-
export const CreateSilenceResponse = /*@__PURE__*/
|
|
2870
|
-
(
|
|
2871
|
-
Schema.
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
}),
|
|
2842
|
+
export const CreateSilenceResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2843
|
+
Schema.Struct({
|
|
2844
|
+
errors: Schema.Array(Error2),
|
|
2845
|
+
messages: Schema.Array(Error2),
|
|
2846
|
+
success: Schema.Literal(true),
|
|
2847
|
+
}),
|
|
2876
2848
|
) as unknown as Schema.Codec<CreateSilenceResponse>;
|
|
2877
2849
|
|
|
2878
2850
|
export type CreateSilenceError =
|
|
@@ -2886,7 +2858,7 @@ export const createSilence: API.OperationMethod<
|
|
|
2886
2858
|
CreateSilenceResponse,
|
|
2887
2859
|
CreateSilenceError,
|
|
2888
2860
|
Credentials | HttpClient.HttpClient
|
|
2889
|
-
> = /*@__PURE__*/
|
|
2861
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2890
2862
|
input: CreateSilenceRequest,
|
|
2891
2863
|
output: CreateSilenceResponse,
|
|
2892
2864
|
errors: [InvalidRoute, InvalidSilence, SilenceAlreadyExists],
|
|
@@ -2899,17 +2871,16 @@ export interface UpdateSilenceRequest {
|
|
|
2899
2871
|
body: { id?: string; endTime?: string; startTime?: string }[];
|
|
2900
2872
|
}
|
|
2901
2873
|
|
|
2902
|
-
export const UpdateSilenceRequest = /*@__PURE__*/
|
|
2903
|
-
(
|
|
2904
|
-
Schema.
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
),
|
|
2874
|
+
export const UpdateSilenceRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2875
|
+
Schema.Struct({
|
|
2876
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2877
|
+
body: Schema.Array(Body2).pipe(T.HttpBody()),
|
|
2878
|
+
}).pipe(
|
|
2879
|
+
T.Http({
|
|
2880
|
+
method: "PUT",
|
|
2881
|
+
path: "/accounts/{account_id}/alerting/v3/silences",
|
|
2882
|
+
}),
|
|
2883
|
+
),
|
|
2913
2884
|
) as unknown as Schema.Codec<UpdateSilenceRequest>;
|
|
2914
2885
|
|
|
2915
2886
|
export interface UpdateSilenceResponse {
|
|
@@ -2925,14 +2896,13 @@ export interface UpdateSilenceResponse {
|
|
|
2925
2896
|
| null;
|
|
2926
2897
|
}
|
|
2927
2898
|
|
|
2928
|
-
export const UpdateSilenceResponse = /*@__PURE__*/
|
|
2929
|
-
(
|
|
2930
|
-
Schema.
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
}),
|
|
2899
|
+
export const UpdateSilenceResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2900
|
+
Schema.Struct({
|
|
2901
|
+
result: Schema.Union([
|
|
2902
|
+
Schema.Array(ListSilencesResponseResult),
|
|
2903
|
+
Schema.Null,
|
|
2904
|
+
]),
|
|
2905
|
+
}),
|
|
2936
2906
|
) as unknown as Schema.Codec<UpdateSilenceResponse>;
|
|
2937
2907
|
|
|
2938
2908
|
export type UpdateSilenceError =
|
|
@@ -2945,7 +2915,7 @@ export const updateSilence: API.PaginatedOperationMethod<
|
|
|
2945
2915
|
UpdateSilenceResponse,
|
|
2946
2916
|
UpdateSilenceError,
|
|
2947
2917
|
Credentials | HttpClient.HttpClient
|
|
2948
|
-
> = /*@__PURE__*/
|
|
2918
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
2949
2919
|
input: UpdateSilenceRequest,
|
|
2950
2920
|
output: UpdateSilenceResponse,
|
|
2951
2921
|
errors: [SilenceNotFound, InvalidSilence],
|
|
@@ -2961,17 +2931,16 @@ export interface DeleteSilenceRequest {
|
|
|
2961
2931
|
accountId: string;
|
|
2962
2932
|
}
|
|
2963
2933
|
|
|
2964
|
-
export const DeleteSilenceRequest = /*@__PURE__*/
|
|
2965
|
-
(
|
|
2966
|
-
Schema.
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
),
|
|
2934
|
+
export const DeleteSilenceRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2935
|
+
Schema.Struct({
|
|
2936
|
+
silenceId: Schema.String.pipe(T.HttpPath("silenceId")),
|
|
2937
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2938
|
+
}).pipe(
|
|
2939
|
+
T.Http({
|
|
2940
|
+
method: "DELETE",
|
|
2941
|
+
path: "/accounts/{account_id}/alerting/v3/silences/{silenceId}",
|
|
2942
|
+
}),
|
|
2943
|
+
),
|
|
2975
2944
|
) as unknown as Schema.Codec<DeleteSilenceRequest>;
|
|
2976
2945
|
|
|
2977
2946
|
export interface DeleteSilenceResponse {
|
|
@@ -2981,13 +2950,12 @@ export interface DeleteSilenceResponse {
|
|
|
2981
2950
|
success: true;
|
|
2982
2951
|
}
|
|
2983
2952
|
|
|
2984
|
-
export const DeleteSilenceResponse = /*@__PURE__*/
|
|
2985
|
-
(
|
|
2986
|
-
Schema.
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
}),
|
|
2953
|
+
export const DeleteSilenceResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2954
|
+
Schema.Struct({
|
|
2955
|
+
errors: Schema.Array(Error2),
|
|
2956
|
+
messages: Schema.Array(Error2),
|
|
2957
|
+
success: Schema.Literal(true),
|
|
2958
|
+
}),
|
|
2991
2959
|
) as unknown as Schema.Codec<DeleteSilenceResponse>;
|
|
2992
2960
|
|
|
2993
2961
|
export type DeleteSilenceError = DefaultErrors | InvalidRoute | SilenceNotFound;
|
|
@@ -2997,7 +2965,7 @@ export const deleteSilence: API.OperationMethod<
|
|
|
2997
2965
|
DeleteSilenceResponse,
|
|
2998
2966
|
DeleteSilenceError,
|
|
2999
2967
|
Credentials | HttpClient.HttpClient
|
|
3000
|
-
> = /*@__PURE__*/
|
|
2968
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3001
2969
|
input: DeleteSilenceRequest,
|
|
3002
2970
|
output: DeleteSilenceResponse,
|
|
3003
2971
|
errors: [InvalidRoute, SilenceNotFound],
|