@distilled.cloud/cloudflare 0.29.0 → 0.30.0
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/lib/services/alerting.js
CHANGED
|
@@ -71,16 +71,16 @@ export class WebhookTestFailed extends T.applyErrorMatchers(Schema.TaggedErrorCl
|
|
|
71
71
|
]) {
|
|
72
72
|
}
|
|
73
73
|
const GetDestinationPagerdutyResponseResult =
|
|
74
|
-
/*@__PURE__*/
|
|
74
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
75
75
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
76
76
|
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
77
77
|
}));
|
|
78
|
-
const Error2 = /*@__PURE__*/
|
|
78
|
+
const Error2 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
79
79
|
message: Schema.String,
|
|
80
80
|
code: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
81
81
|
}));
|
|
82
82
|
const ListDestinationWebhooksResponseResult =
|
|
83
|
-
/*@__PURE__*/
|
|
83
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
84
84
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
85
85
|
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
86
86
|
lastFailure: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -112,7 +112,7 @@ const ListDestinationWebhooksResponseResult =
|
|
|
112
112
|
type: "type",
|
|
113
113
|
url: "url",
|
|
114
114
|
})));
|
|
115
|
-
const ListHistoriesResponseResult = /*@__PURE__*/
|
|
115
|
+
const ListHistoriesResponseResult = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
116
116
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
117
117
|
alertBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
118
118
|
alertType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -140,7 +140,7 @@ const ListHistoriesResponseResult = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend((
|
|
|
140
140
|
sent: "sent",
|
|
141
141
|
})));
|
|
142
142
|
const ListHistoriesResponseResultInfo =
|
|
143
|
-
/*@__PURE__*/
|
|
143
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
144
144
|
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
145
145
|
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
146
146
|
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
@@ -151,7 +151,7 @@ const ListHistoriesResponseResultInfo =
|
|
|
151
151
|
perPage: "per_page",
|
|
152
152
|
totalCount: "total_count",
|
|
153
153
|
})));
|
|
154
|
-
const PolicyFilter = /*@__PURE__*/
|
|
154
|
+
const PolicyFilter = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
155
155
|
actions: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
156
156
|
affectedAsns: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
157
157
|
affectedComponents: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
@@ -254,15 +254,15 @@ const PolicyFilter = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Str
|
|
|
254
254
|
where: "where",
|
|
255
255
|
zones: "zones",
|
|
256
256
|
})));
|
|
257
|
-
const Email = /*@__PURE__*/
|
|
257
|
+
const Email = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
258
258
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
259
259
|
}));
|
|
260
|
-
const Mechanism = /*@__PURE__*/
|
|
260
|
+
const Mechanism = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
261
261
|
email: Schema.optional(Schema.Union([Schema.Array(Email), Schema.Null])),
|
|
262
262
|
pagerduty: Schema.optional(Schema.Union([Schema.Array(Email), Schema.Null])),
|
|
263
263
|
webhooks: Schema.optional(Schema.Union([Schema.Array(Email), Schema.Null])),
|
|
264
264
|
}));
|
|
265
|
-
const ListPoliciesResponseResult = /*@__PURE__*/
|
|
265
|
+
const ListPoliciesResponseResult = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
266
266
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
267
267
|
alertInterval: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
268
268
|
alertType: Schema.optional(Schema.Union([
|
|
@@ -361,7 +361,7 @@ const ListPoliciesResponseResult = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
361
361
|
modified: "modified",
|
|
362
362
|
name: "name",
|
|
363
363
|
})));
|
|
364
|
-
const ListSilencesResponseResult = /*@__PURE__*/
|
|
364
|
+
const ListSilencesResponseResult = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
365
365
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
366
366
|
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
367
367
|
endTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -376,7 +376,7 @@ const ListSilencesResponseResult = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
376
376
|
startTime: "start_time",
|
|
377
377
|
updatedAt: "updated_at",
|
|
378
378
|
})));
|
|
379
|
-
const Body = /*@__PURE__*/
|
|
379
|
+
const Body = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
380
380
|
endTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
381
381
|
policyId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
382
382
|
startTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -385,7 +385,7 @@ const Body = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
|
385
385
|
policyId: "policy_id",
|
|
386
386
|
startTime: "start_time",
|
|
387
387
|
})));
|
|
388
|
-
const Body2 = /*@__PURE__*/
|
|
388
|
+
const Body2 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
389
389
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
390
390
|
endTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
391
391
|
startTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -395,45 +395,45 @@ const Body2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
|
395
395
|
startTime: "start_time",
|
|
396
396
|
})));
|
|
397
397
|
export const ListAvailableAlertsRequest =
|
|
398
|
-
/*@__PURE__*/
|
|
398
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
399
399
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
400
400
|
}).pipe(T.Http({
|
|
401
401
|
method: "GET",
|
|
402
402
|
path: "/accounts/{account_id}/alerting/v3/available_alerts",
|
|
403
403
|
})));
|
|
404
404
|
export const ListAvailableAlertsResponse =
|
|
405
|
-
/*@__PURE__*/
|
|
406
|
-
export const listAvailableAlerts = /*@__PURE__*/
|
|
405
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Record(Schema.String, Schema.Unknown).pipe(T.ResponsePath("result")));
|
|
406
|
+
export const listAvailableAlerts = /*@__PURE__*/ API.make(() => ({
|
|
407
407
|
input: ListAvailableAlertsRequest,
|
|
408
408
|
output: ListAvailableAlertsResponse,
|
|
409
409
|
errors: [InvalidRoute],
|
|
410
410
|
}));
|
|
411
411
|
export const GetDestinationEligibleRequest =
|
|
412
|
-
/*@__PURE__*/
|
|
412
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
413
413
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
414
414
|
}).pipe(T.Http({
|
|
415
415
|
method: "GET",
|
|
416
416
|
path: "/accounts/{account_id}/alerting/v3/destinations/eligible",
|
|
417
417
|
})));
|
|
418
418
|
export const GetDestinationEligibleResponse =
|
|
419
|
-
/*@__PURE__*/
|
|
420
|
-
export const getDestinationEligible = /*@__PURE__*/
|
|
419
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Record(Schema.String, Schema.Unknown).pipe(T.ResponsePath("result")));
|
|
420
|
+
export const getDestinationEligible = /*@__PURE__*/ API.make(() => ({
|
|
421
421
|
input: GetDestinationEligibleRequest,
|
|
422
422
|
output: GetDestinationEligibleResponse,
|
|
423
423
|
errors: [InvalidRoute],
|
|
424
424
|
}));
|
|
425
425
|
export const GetDestinationPagerdutyRequest =
|
|
426
|
-
/*@__PURE__*/
|
|
426
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
427
427
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
428
428
|
}).pipe(T.Http({
|
|
429
429
|
method: "GET",
|
|
430
430
|
path: "/accounts/{account_id}/alerting/v3/destinations/pagerduty",
|
|
431
431
|
})));
|
|
432
432
|
export const GetDestinationPagerdutyResponse =
|
|
433
|
-
/*@__PURE__*/
|
|
433
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
434
434
|
result: Schema.Array(GetDestinationPagerdutyResponseResult),
|
|
435
435
|
}));
|
|
436
|
-
export const getDestinationPagerduty = /*@__PURE__*/
|
|
436
|
+
export const getDestinationPagerduty = /*@__PURE__*/ API.makePaginated(() => ({
|
|
437
437
|
input: GetDestinationPagerdutyRequest,
|
|
438
438
|
output: GetDestinationPagerdutyResponse,
|
|
439
439
|
errors: [],
|
|
@@ -443,41 +443,41 @@ export const getDestinationPagerduty = /*@__PURE__*/ /*#__PURE__*/ API.makePagin
|
|
|
443
443
|
},
|
|
444
444
|
}));
|
|
445
445
|
export const CreateDestinationPagerdutyRequest =
|
|
446
|
-
/*@__PURE__*/
|
|
446
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
447
447
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
448
448
|
}).pipe(T.Http({
|
|
449
449
|
method: "POST",
|
|
450
450
|
path: "/accounts/{account_id}/alerting/v3/destinations/pagerduty/connect",
|
|
451
451
|
})));
|
|
452
452
|
export const CreateDestinationPagerdutyResponse =
|
|
453
|
-
/*@__PURE__*/
|
|
453
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
454
454
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
455
455
|
}).pipe(T.ResponsePath("result")));
|
|
456
|
-
export const createDestinationPagerduty = /*@__PURE__*/
|
|
456
|
+
export const createDestinationPagerduty = /*@__PURE__*/ API.make(() => ({
|
|
457
457
|
input: CreateDestinationPagerdutyRequest,
|
|
458
458
|
output: CreateDestinationPagerdutyResponse,
|
|
459
459
|
errors: [InvalidRoute],
|
|
460
460
|
}));
|
|
461
461
|
export const DeleteDestinationPagerdutyRequest =
|
|
462
|
-
/*@__PURE__*/
|
|
462
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
463
463
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
464
464
|
}).pipe(T.Http({
|
|
465
465
|
method: "DELETE",
|
|
466
466
|
path: "/accounts/{account_id}/alerting/v3/destinations/pagerduty",
|
|
467
467
|
})));
|
|
468
468
|
export const DeleteDestinationPagerdutyResponse =
|
|
469
|
-
/*@__PURE__*/
|
|
469
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
470
470
|
errors: Schema.Array(Error2),
|
|
471
471
|
messages: Schema.Array(Error2),
|
|
472
472
|
success: Schema.Literal(true),
|
|
473
473
|
}));
|
|
474
|
-
export const deleteDestinationPagerduty = /*@__PURE__*/
|
|
474
|
+
export const deleteDestinationPagerduty = /*@__PURE__*/ API.make(() => ({
|
|
475
475
|
input: DeleteDestinationPagerdutyRequest,
|
|
476
476
|
output: DeleteDestinationPagerdutyResponse,
|
|
477
477
|
errors: [InvalidRoute],
|
|
478
478
|
}));
|
|
479
479
|
export const LinkDestinationPagerdutyRequest =
|
|
480
|
-
/*@__PURE__*/
|
|
480
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
481
481
|
tokenId: Schema.String.pipe(T.HttpPath("tokenId")),
|
|
482
482
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
483
483
|
}).pipe(T.Http({
|
|
@@ -485,16 +485,16 @@ export const LinkDestinationPagerdutyRequest =
|
|
|
485
485
|
path: "/accounts/{account_id}/alerting/v3/destinations/pagerduty/connect/{tokenId}",
|
|
486
486
|
})));
|
|
487
487
|
export const LinkDestinationPagerdutyResponse =
|
|
488
|
-
/*@__PURE__*/
|
|
488
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
489
489
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
490
490
|
}).pipe(T.ResponsePath("result")));
|
|
491
|
-
export const linkDestinationPagerduty = /*@__PURE__*/
|
|
491
|
+
export const linkDestinationPagerduty = /*@__PURE__*/ API.make(() => ({
|
|
492
492
|
input: LinkDestinationPagerdutyRequest,
|
|
493
493
|
output: LinkDestinationPagerdutyResponse,
|
|
494
494
|
errors: [InvalidRoute],
|
|
495
495
|
}));
|
|
496
496
|
export const GetDestinationWebhookRequest =
|
|
497
|
-
/*@__PURE__*/
|
|
497
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
498
498
|
webhookId: Schema.String.pipe(T.HttpPath("webhookId")),
|
|
499
499
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
500
500
|
}).pipe(T.Http({
|
|
@@ -502,7 +502,7 @@ export const GetDestinationWebhookRequest =
|
|
|
502
502
|
path: "/accounts/{account_id}/alerting/v3/destinations/webhooks/{webhookId}",
|
|
503
503
|
})));
|
|
504
504
|
export const GetDestinationWebhookResponse =
|
|
505
|
-
/*@__PURE__*/
|
|
505
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
506
506
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
507
507
|
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
508
508
|
lastFailure: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -536,23 +536,23 @@ export const GetDestinationWebhookResponse =
|
|
|
536
536
|
url: "url",
|
|
537
537
|
}))
|
|
538
538
|
.pipe(T.ResponsePath("result")));
|
|
539
|
-
export const getDestinationWebhook = /*@__PURE__*/
|
|
539
|
+
export const getDestinationWebhook = /*@__PURE__*/ API.make(() => ({
|
|
540
540
|
input: GetDestinationWebhookRequest,
|
|
541
541
|
output: GetDestinationWebhookResponse,
|
|
542
542
|
errors: [InvalidRoute, WebhookNotFound],
|
|
543
543
|
}));
|
|
544
544
|
export const ListDestinationWebhooksRequest =
|
|
545
|
-
/*@__PURE__*/
|
|
545
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
546
546
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
547
547
|
}).pipe(T.Http({
|
|
548
548
|
method: "GET",
|
|
549
549
|
path: "/accounts/{account_id}/alerting/v3/destinations/webhooks",
|
|
550
550
|
})));
|
|
551
551
|
export const ListDestinationWebhooksResponse =
|
|
552
|
-
/*@__PURE__*/
|
|
552
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
553
553
|
result: Schema.Array(ListDestinationWebhooksResponseResult),
|
|
554
554
|
}));
|
|
555
|
-
export const listDestinationWebhooks = /*@__PURE__*/
|
|
555
|
+
export const listDestinationWebhooks = /*@__PURE__*/ API.makePaginated(() => ({
|
|
556
556
|
input: ListDestinationWebhooksRequest,
|
|
557
557
|
output: ListDestinationWebhooksResponse,
|
|
558
558
|
errors: [],
|
|
@@ -562,7 +562,7 @@ export const listDestinationWebhooks = /*@__PURE__*/ /*#__PURE__*/ API.makePagin
|
|
|
562
562
|
},
|
|
563
563
|
}));
|
|
564
564
|
export const CreateDestinationWebhookRequest =
|
|
565
|
-
/*@__PURE__*/
|
|
565
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
566
566
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
567
567
|
name: Schema.String,
|
|
568
568
|
url: Schema.String,
|
|
@@ -572,16 +572,16 @@ export const CreateDestinationWebhookRequest =
|
|
|
572
572
|
path: "/accounts/{account_id}/alerting/v3/destinations/webhooks",
|
|
573
573
|
})));
|
|
574
574
|
export const CreateDestinationWebhookResponse =
|
|
575
|
-
/*@__PURE__*/
|
|
575
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
576
576
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
577
577
|
}).pipe(T.ResponsePath("result")));
|
|
578
|
-
export const createDestinationWebhook = /*@__PURE__*/
|
|
578
|
+
export const createDestinationWebhook = /*@__PURE__*/ API.make(() => ({
|
|
579
579
|
input: CreateDestinationWebhookRequest,
|
|
580
580
|
output: CreateDestinationWebhookResponse,
|
|
581
581
|
errors: [InvalidRoute, WebhookTestFailed],
|
|
582
582
|
}));
|
|
583
583
|
export const UpdateDestinationWebhookRequest =
|
|
584
|
-
/*@__PURE__*/
|
|
584
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
585
585
|
webhookId: Schema.String.pipe(T.HttpPath("webhookId")),
|
|
586
586
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
587
587
|
name: Schema.String,
|
|
@@ -592,16 +592,16 @@ export const UpdateDestinationWebhookRequest =
|
|
|
592
592
|
path: "/accounts/{account_id}/alerting/v3/destinations/webhooks/{webhookId}",
|
|
593
593
|
})));
|
|
594
594
|
export const UpdateDestinationWebhookResponse =
|
|
595
|
-
/*@__PURE__*/
|
|
595
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
596
596
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
597
597
|
}).pipe(T.ResponsePath("result")));
|
|
598
|
-
export const updateDestinationWebhook = /*@__PURE__*/
|
|
598
|
+
export const updateDestinationWebhook = /*@__PURE__*/ API.make(() => ({
|
|
599
599
|
input: UpdateDestinationWebhookRequest,
|
|
600
600
|
output: UpdateDestinationWebhookResponse,
|
|
601
601
|
errors: [InvalidRoute, InvalidWebhookId, WebhookTestFailed],
|
|
602
602
|
}));
|
|
603
603
|
export const DeleteDestinationWebhookRequest =
|
|
604
|
-
/*@__PURE__*/
|
|
604
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
605
605
|
webhookId: Schema.String.pipe(T.HttpPath("webhookId")),
|
|
606
606
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
607
607
|
}).pipe(T.Http({
|
|
@@ -609,17 +609,17 @@ export const DeleteDestinationWebhookRequest =
|
|
|
609
609
|
path: "/accounts/{account_id}/alerting/v3/destinations/webhooks/{webhookId}",
|
|
610
610
|
})));
|
|
611
611
|
export const DeleteDestinationWebhookResponse =
|
|
612
|
-
/*@__PURE__*/
|
|
612
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
613
613
|
errors: Schema.Array(Error2),
|
|
614
614
|
messages: Schema.Array(Error2),
|
|
615
615
|
success: Schema.Literal(true),
|
|
616
616
|
}));
|
|
617
|
-
export const deleteDestinationWebhook = /*@__PURE__*/
|
|
617
|
+
export const deleteDestinationWebhook = /*@__PURE__*/ API.make(() => ({
|
|
618
618
|
input: DeleteDestinationWebhookRequest,
|
|
619
619
|
output: DeleteDestinationWebhookResponse,
|
|
620
620
|
errors: [InvalidRoute, InternalServerError],
|
|
621
621
|
}));
|
|
622
|
-
export const ListHistoriesRequest = /*@__PURE__*/
|
|
622
|
+
export const ListHistoriesRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
623
623
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
624
624
|
page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
|
|
625
625
|
perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
|
|
@@ -629,11 +629,11 @@ export const ListHistoriesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend((
|
|
|
629
629
|
method: "GET",
|
|
630
630
|
path: "/accounts/{account_id}/alerting/v3/history",
|
|
631
631
|
})));
|
|
632
|
-
export const ListHistoriesResponse = /*@__PURE__*/
|
|
632
|
+
export const ListHistoriesResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
633
633
|
result: Schema.Array(ListHistoriesResponseResult),
|
|
634
634
|
resultInfo: Schema.optional(Schema.Union([ListHistoriesResponseResultInfo, Schema.Null])),
|
|
635
635
|
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })));
|
|
636
|
-
export const listHistories = /*@__PURE__*/
|
|
636
|
+
export const listHistories = /*@__PURE__*/ API.makePaginated(() => ({
|
|
637
637
|
input: ListHistoriesRequest,
|
|
638
638
|
output: ListHistoriesResponse,
|
|
639
639
|
errors: [],
|
|
@@ -645,14 +645,14 @@ export const listHistories = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() =>
|
|
|
645
645
|
pageSize: "perPage",
|
|
646
646
|
},
|
|
647
647
|
}));
|
|
648
|
-
export const GetPolicyRequest = /*@__PURE__*/
|
|
648
|
+
export const GetPolicyRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
649
649
|
policyId: Schema.String.pipe(T.HttpPath("policyId")),
|
|
650
650
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
651
651
|
}).pipe(T.Http({
|
|
652
652
|
method: "GET",
|
|
653
653
|
path: "/accounts/{account_id}/alerting/v3/policies/{policyId}",
|
|
654
654
|
})));
|
|
655
|
-
export const GetPolicyResponse = /*@__PURE__*/
|
|
655
|
+
export const GetPolicyResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
656
656
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
657
657
|
alertInterval: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
658
658
|
alertType: Schema.optional(Schema.Union([
|
|
@@ -753,21 +753,21 @@ export const GetPolicyResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =
|
|
|
753
753
|
name: "name",
|
|
754
754
|
}))
|
|
755
755
|
.pipe(T.ResponsePath("result")));
|
|
756
|
-
export const getPolicy = /*@__PURE__*/
|
|
756
|
+
export const getPolicy = /*@__PURE__*/ API.make(() => ({
|
|
757
757
|
input: GetPolicyRequest,
|
|
758
758
|
output: GetPolicyResponse,
|
|
759
759
|
errors: [InvalidRoute, PolicyNotFound],
|
|
760
760
|
}));
|
|
761
|
-
export const ListPoliciesRequest = /*@__PURE__*/
|
|
761
|
+
export const ListPoliciesRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
762
762
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
763
763
|
}).pipe(T.Http({
|
|
764
764
|
method: "GET",
|
|
765
765
|
path: "/accounts/{account_id}/alerting/v3/policies",
|
|
766
766
|
})));
|
|
767
|
-
export const ListPoliciesResponse = /*@__PURE__*/
|
|
767
|
+
export const ListPoliciesResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
768
768
|
result: Schema.Array(ListPoliciesResponseResult),
|
|
769
769
|
}));
|
|
770
|
-
export const listPolicies = /*@__PURE__*/
|
|
770
|
+
export const listPolicies = /*@__PURE__*/ API.makePaginated(() => ({
|
|
771
771
|
input: ListPoliciesRequest,
|
|
772
772
|
output: ListPoliciesResponse,
|
|
773
773
|
errors: [],
|
|
@@ -776,7 +776,7 @@ export const listPolicies = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() =>
|
|
|
776
776
|
items: "result",
|
|
777
777
|
},
|
|
778
778
|
}));
|
|
779
|
-
export const CreatePolicyRequest = /*@__PURE__*/
|
|
779
|
+
export const CreatePolicyRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
780
780
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
781
781
|
alertType: Schema.Union([
|
|
782
782
|
Schema.Literals([
|
|
@@ -870,15 +870,15 @@ export const CreatePolicyRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
870
870
|
method: "POST",
|
|
871
871
|
path: "/accounts/{account_id}/alerting/v3/policies",
|
|
872
872
|
})));
|
|
873
|
-
export const CreatePolicyResponse = /*@__PURE__*/
|
|
873
|
+
export const CreatePolicyResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
874
874
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
875
875
|
}).pipe(T.ResponsePath("result")));
|
|
876
|
-
export const createPolicy = /*@__PURE__*/
|
|
876
|
+
export const createPolicy = /*@__PURE__*/ API.make(() => ({
|
|
877
877
|
input: CreatePolicyRequest,
|
|
878
878
|
output: CreatePolicyResponse,
|
|
879
879
|
errors: [InvalidRoute, FiltersRequired, MechanismRequired],
|
|
880
880
|
}));
|
|
881
|
-
export const UpdatePolicyRequest = /*@__PURE__*/
|
|
881
|
+
export const UpdatePolicyRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
882
882
|
policyId: Schema.String.pipe(T.HttpPath("policyId")),
|
|
883
883
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
884
884
|
alertInterval: Schema.optional(Schema.String),
|
|
@@ -973,22 +973,22 @@ export const UpdatePolicyRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
973
973
|
method: "PUT",
|
|
974
974
|
path: "/accounts/{account_id}/alerting/v3/policies/{policyId}",
|
|
975
975
|
})));
|
|
976
|
-
export const UpdatePolicyResponse = /*@__PURE__*/
|
|
976
|
+
export const UpdatePolicyResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
977
977
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
978
978
|
}).pipe(T.ResponsePath("result")));
|
|
979
|
-
export const updatePolicy = /*@__PURE__*/
|
|
979
|
+
export const updatePolicy = /*@__PURE__*/ API.make(() => ({
|
|
980
980
|
input: UpdatePolicyRequest,
|
|
981
981
|
output: UpdatePolicyResponse,
|
|
982
982
|
errors: [InvalidRoute, PolicyNotFound, InvalidAlertType, MechanismRequired],
|
|
983
983
|
}));
|
|
984
|
-
export const DeletePolicyRequest = /*@__PURE__*/
|
|
984
|
+
export const DeletePolicyRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
985
985
|
policyId: Schema.String.pipe(T.HttpPath("policyId")),
|
|
986
986
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
987
987
|
}).pipe(T.Http({
|
|
988
988
|
method: "DELETE",
|
|
989
989
|
path: "/accounts/{account_id}/alerting/v3/policies/{policyId}",
|
|
990
990
|
})));
|
|
991
|
-
export const DeletePolicyResponse = /*@__PURE__*/
|
|
991
|
+
export const DeletePolicyResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
992
992
|
errors: Schema.optional(Schema.Union([Schema.Array(Error2), Schema.Null])),
|
|
993
993
|
messages: Schema.optional(Schema.Union([Schema.Array(Error2), Schema.Null])),
|
|
994
994
|
success: Schema.optional(Schema.Union([Schema.Literal(true), Schema.Null])),
|
|
@@ -999,19 +999,19 @@ export const DeletePolicyResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend((
|
|
|
999
999
|
success: "success",
|
|
1000
1000
|
resultInfo: "result_info",
|
|
1001
1001
|
})));
|
|
1002
|
-
export const deletePolicy = /*@__PURE__*/
|
|
1002
|
+
export const deletePolicy = /*@__PURE__*/ API.make(() => ({
|
|
1003
1003
|
input: DeletePolicyRequest,
|
|
1004
1004
|
output: DeletePolicyResponse,
|
|
1005
1005
|
errors: [InvalidRoute, PolicyNotFound],
|
|
1006
1006
|
}));
|
|
1007
|
-
export const GetSilenceRequest = /*@__PURE__*/
|
|
1007
|
+
export const GetSilenceRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1008
1008
|
silenceId: Schema.String.pipe(T.HttpPath("silenceId")),
|
|
1009
1009
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1010
1010
|
}).pipe(T.Http({
|
|
1011
1011
|
method: "GET",
|
|
1012
1012
|
path: "/accounts/{account_id}/alerting/v3/silences/{silenceId}",
|
|
1013
1013
|
})));
|
|
1014
|
-
export const GetSilenceResponse = /*@__PURE__*/
|
|
1014
|
+
export const GetSilenceResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1015
1015
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1016
1016
|
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1017
1017
|
endTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -1028,21 +1028,21 @@ export const GetSilenceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
1028
1028
|
updatedAt: "updated_at",
|
|
1029
1029
|
}))
|
|
1030
1030
|
.pipe(T.ResponsePath("result")));
|
|
1031
|
-
export const getSilence = /*@__PURE__*/
|
|
1031
|
+
export const getSilence = /*@__PURE__*/ API.make(() => ({
|
|
1032
1032
|
input: GetSilenceRequest,
|
|
1033
1033
|
output: GetSilenceResponse,
|
|
1034
1034
|
errors: [InvalidRoute, InternalServerError, SilenceNotFound],
|
|
1035
1035
|
}));
|
|
1036
|
-
export const ListSilencesRequest = /*@__PURE__*/
|
|
1036
|
+
export const ListSilencesRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1037
1037
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1038
1038
|
}).pipe(T.Http({
|
|
1039
1039
|
method: "GET",
|
|
1040
1040
|
path: "/accounts/{account_id}/alerting/v3/silences",
|
|
1041
1041
|
})));
|
|
1042
|
-
export const ListSilencesResponse = /*@__PURE__*/
|
|
1042
|
+
export const ListSilencesResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1043
1043
|
result: Schema.Array(ListSilencesResponseResult),
|
|
1044
1044
|
}));
|
|
1045
|
-
export const listSilences = /*@__PURE__*/
|
|
1045
|
+
export const listSilences = /*@__PURE__*/ API.makePaginated(() => ({
|
|
1046
1046
|
input: ListSilencesRequest,
|
|
1047
1047
|
output: ListSilencesResponse,
|
|
1048
1048
|
errors: [],
|
|
@@ -1051,37 +1051,37 @@ export const listSilences = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() =>
|
|
|
1051
1051
|
items: "result",
|
|
1052
1052
|
},
|
|
1053
1053
|
}));
|
|
1054
|
-
export const CreateSilenceRequest = /*@__PURE__*/
|
|
1054
|
+
export const CreateSilenceRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1055
1055
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1056
1056
|
body: Schema.Array(Body).pipe(T.HttpBody()),
|
|
1057
1057
|
}).pipe(T.Http({
|
|
1058
1058
|
method: "POST",
|
|
1059
1059
|
path: "/accounts/{account_id}/alerting/v3/silences",
|
|
1060
1060
|
})));
|
|
1061
|
-
export const CreateSilenceResponse = /*@__PURE__*/
|
|
1061
|
+
export const CreateSilenceResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1062
1062
|
errors: Schema.Array(Error2),
|
|
1063
1063
|
messages: Schema.Array(Error2),
|
|
1064
1064
|
success: Schema.Literal(true),
|
|
1065
1065
|
}));
|
|
1066
|
-
export const createSilence = /*@__PURE__*/
|
|
1066
|
+
export const createSilence = /*@__PURE__*/ API.make(() => ({
|
|
1067
1067
|
input: CreateSilenceRequest,
|
|
1068
1068
|
output: CreateSilenceResponse,
|
|
1069
1069
|
errors: [InvalidRoute, InvalidSilence, SilenceAlreadyExists],
|
|
1070
1070
|
}));
|
|
1071
|
-
export const UpdateSilenceRequest = /*@__PURE__*/
|
|
1071
|
+
export const UpdateSilenceRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1072
1072
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1073
1073
|
body: Schema.Array(Body2).pipe(T.HttpBody()),
|
|
1074
1074
|
}).pipe(T.Http({
|
|
1075
1075
|
method: "PUT",
|
|
1076
1076
|
path: "/accounts/{account_id}/alerting/v3/silences",
|
|
1077
1077
|
})));
|
|
1078
|
-
export const UpdateSilenceResponse = /*@__PURE__*/
|
|
1078
|
+
export const UpdateSilenceResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1079
1079
|
result: Schema.Union([
|
|
1080
1080
|
Schema.Array(ListSilencesResponseResult),
|
|
1081
1081
|
Schema.Null,
|
|
1082
1082
|
]),
|
|
1083
1083
|
}));
|
|
1084
|
-
export const updateSilence = /*@__PURE__*/
|
|
1084
|
+
export const updateSilence = /*@__PURE__*/ API.makePaginated(() => ({
|
|
1085
1085
|
input: UpdateSilenceRequest,
|
|
1086
1086
|
output: UpdateSilenceResponse,
|
|
1087
1087
|
errors: [SilenceNotFound, InvalidSilence],
|
|
@@ -1090,19 +1090,19 @@ export const updateSilence = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() =>
|
|
|
1090
1090
|
items: "result",
|
|
1091
1091
|
},
|
|
1092
1092
|
}));
|
|
1093
|
-
export const DeleteSilenceRequest = /*@__PURE__*/
|
|
1093
|
+
export const DeleteSilenceRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1094
1094
|
silenceId: Schema.String.pipe(T.HttpPath("silenceId")),
|
|
1095
1095
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1096
1096
|
}).pipe(T.Http({
|
|
1097
1097
|
method: "DELETE",
|
|
1098
1098
|
path: "/accounts/{account_id}/alerting/v3/silences/{silenceId}",
|
|
1099
1099
|
})));
|
|
1100
|
-
export const DeleteSilenceResponse = /*@__PURE__*/
|
|
1100
|
+
export const DeleteSilenceResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1101
1101
|
errors: Schema.Array(Error2),
|
|
1102
1102
|
messages: Schema.Array(Error2),
|
|
1103
1103
|
success: Schema.Literal(true),
|
|
1104
1104
|
}));
|
|
1105
|
-
export const deleteSilence = /*@__PURE__*/
|
|
1105
|
+
export const deleteSilence = /*@__PURE__*/ API.make(() => ({
|
|
1106
1106
|
input: DeleteSilenceRequest,
|
|
1107
1107
|
output: DeleteSilenceResponse,
|
|
1108
1108
|
errors: [InvalidRoute, SilenceNotFound],
|