@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
|
@@ -9,21 +9,21 @@ import * as API from "../client/api.js";
|
|
|
9
9
|
import * as T from "../traits.js";
|
|
10
10
|
import {} from "../errors.js";
|
|
11
11
|
import { SensitiveString } from "../sensitive.js";
|
|
12
|
-
const AddScriptTag = /*@__PURE__*/
|
|
12
|
+
const AddScriptTag = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
13
13
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
14
14
|
content: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
15
15
|
type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
16
16
|
url: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
17
17
|
}));
|
|
18
|
-
const AddStyleTag = /*@__PURE__*/
|
|
18
|
+
const AddStyleTag = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
19
19
|
content: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
20
20
|
url: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
21
21
|
}));
|
|
22
|
-
const Authenticate = /*@__PURE__*/
|
|
22
|
+
const Authenticate = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
23
23
|
password: SensitiveString,
|
|
24
24
|
username: Schema.String,
|
|
25
25
|
}));
|
|
26
|
-
const Cookie = /*@__PURE__*/
|
|
26
|
+
const Cookie = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
27
27
|
name: Schema.String,
|
|
28
28
|
value: Schema.String,
|
|
29
29
|
domain: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -57,7 +57,7 @@ const Cookie = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
|
57
57
|
])),
|
|
58
58
|
url: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
59
59
|
}));
|
|
60
|
-
const GotoOptions = /*@__PURE__*/
|
|
60
|
+
const GotoOptions = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
61
61
|
referer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
62
62
|
referrerPolicy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
63
63
|
timeout: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
@@ -80,7 +80,7 @@ const GotoOptions = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Stru
|
|
|
80
80
|
Schema.Null,
|
|
81
81
|
])),
|
|
82
82
|
}));
|
|
83
|
-
const Viewport = /*@__PURE__*/
|
|
83
|
+
const Viewport = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
84
84
|
height: Schema.Number,
|
|
85
85
|
width: Schema.Number,
|
|
86
86
|
deviceScaleFactor: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
@@ -88,18 +88,18 @@ const Viewport = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct(
|
|
|
88
88
|
isLandscape: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
89
89
|
isMobile: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
90
90
|
}));
|
|
91
|
-
const WaitForSelector = /*@__PURE__*/
|
|
91
|
+
const WaitForSelector = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
92
92
|
selector: Schema.String,
|
|
93
93
|
hidden: Schema.optional(Schema.Union([Schema.Literal(true), Schema.Null])),
|
|
94
94
|
timeout: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
95
95
|
visible: Schema.optional(Schema.Union([Schema.Literal(true), Schema.Null])),
|
|
96
96
|
}));
|
|
97
|
-
const Metadata = /*@__PURE__*/
|
|
97
|
+
const Metadata = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
98
98
|
status: Schema.Number,
|
|
99
99
|
url: Schema.String,
|
|
100
100
|
title: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
101
101
|
}));
|
|
102
|
-
const Record2 = /*@__PURE__*/
|
|
102
|
+
const Record2 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
103
103
|
metadata: Metadata,
|
|
104
104
|
status: Schema.Union([
|
|
105
105
|
Schema.Literals([
|
|
@@ -117,15 +117,15 @@ const Record2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
|
117
117
|
json: Schema.optional(Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null])),
|
|
118
118
|
markdown: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
119
119
|
}));
|
|
120
|
-
const CustomAI = /*@__PURE__*/
|
|
120
|
+
const CustomAI = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
121
121
|
model: Schema.String,
|
|
122
122
|
authorization: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
123
123
|
}));
|
|
124
|
-
const ResponseFormat = /*@__PURE__*/
|
|
124
|
+
const ResponseFormat = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
125
125
|
type: Schema.String,
|
|
126
126
|
jsonSchema: Schema.optional(Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null])),
|
|
127
127
|
}).pipe(Schema.encodeKeys({ type: "type", jsonSchema: "json_schema" })));
|
|
128
|
-
const JsonOptions = /*@__PURE__*/
|
|
128
|
+
const JsonOptions = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
129
129
|
customAi: Schema.optional(Schema.Union([Schema.Array(CustomAI), Schema.Null])),
|
|
130
130
|
prompt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
131
131
|
responseFormat: Schema.optional(Schema.Union([ResponseFormat, Schema.Null])),
|
|
@@ -134,13 +134,13 @@ const JsonOptions = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Stru
|
|
|
134
134
|
prompt: "prompt",
|
|
135
135
|
responseFormat: "response_format",
|
|
136
136
|
})));
|
|
137
|
-
const Options = /*@__PURE__*/
|
|
137
|
+
const Options = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
138
138
|
excludePatterns: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
139
139
|
includeExternalLinks: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
140
140
|
includePatterns: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
141
141
|
includeSubdomains: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
142
142
|
}));
|
|
143
|
-
const Domain = /*@__PURE__*/
|
|
143
|
+
const Domain = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
144
144
|
domain: Schema.String,
|
|
145
145
|
commands: Schema.optional(Schema.Union([
|
|
146
146
|
Schema.Array(Schema.Record(Schema.String, Schema.Unknown)),
|
|
@@ -157,11 +157,11 @@ const Domain = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
|
157
157
|
Schema.Null,
|
|
158
158
|
])),
|
|
159
159
|
}));
|
|
160
|
-
const Version = /*@__PURE__*/
|
|
160
|
+
const Version = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
161
161
|
major: Schema.String,
|
|
162
162
|
minor: Schema.String,
|
|
163
163
|
}));
|
|
164
|
-
const TargetListResponseItem = /*@__PURE__*/
|
|
164
|
+
const TargetListResponseItem = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
165
165
|
id: Schema.String,
|
|
166
166
|
type: Schema.String,
|
|
167
167
|
url: Schema.String,
|
|
@@ -170,7 +170,7 @@ const TargetListResponseItem = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
|
|
|
170
170
|
title: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
171
171
|
webSocketDebuggerUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
172
172
|
}));
|
|
173
|
-
const SessionListResponseItem = /*@__PURE__*/
|
|
173
|
+
const SessionListResponseItem = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
174
174
|
sessionId: Schema.String,
|
|
175
175
|
closeReason: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
176
176
|
closeReasonText: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -183,13 +183,13 @@ const SessionListResponseItem = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
|
|
|
183
183
|
startTime: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
184
184
|
webSocketDebuggerUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
185
185
|
}));
|
|
186
|
-
const Margin = /*@__PURE__*/
|
|
186
|
+
const Margin = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
187
187
|
bottom: Schema.optional(Schema.Union([Schema.Union([Schema.String, Schema.Number]), Schema.Null])),
|
|
188
188
|
left: Schema.optional(Schema.Union([Schema.Union([Schema.String, Schema.Number]), Schema.Null])),
|
|
189
189
|
right: Schema.optional(Schema.Union([Schema.Union([Schema.String, Schema.Number]), Schema.Null])),
|
|
190
190
|
top: Schema.optional(Schema.Union([Schema.Union([Schema.String, Schema.Number]), Schema.Null])),
|
|
191
191
|
}));
|
|
192
|
-
const Pdfoptions = /*@__PURE__*/
|
|
192
|
+
const Pdfoptions = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
193
193
|
displayHeaderFooter: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
194
194
|
footerTemplate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
195
195
|
format: Schema.optional(Schema.Union([
|
|
@@ -225,14 +225,14 @@ const Pdfoptions = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struc
|
|
|
225
225
|
timeout: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
226
226
|
width: Schema.optional(Schema.Union([Schema.Union([Schema.String, Schema.Number]), Schema.Null])),
|
|
227
227
|
}));
|
|
228
|
-
const Element = /*@__PURE__*/
|
|
228
|
+
const Element = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
229
229
|
selector: Schema.String,
|
|
230
230
|
}));
|
|
231
|
-
const Attribute = /*@__PURE__*/
|
|
231
|
+
const Attribute = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
232
232
|
name: Schema.String,
|
|
233
233
|
value: Schema.String,
|
|
234
234
|
}));
|
|
235
|
-
const Results = /*@__PURE__*/
|
|
235
|
+
const Results = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
236
236
|
attributes: Schema.Array(Attribute),
|
|
237
237
|
height: Schema.Number,
|
|
238
238
|
html: Schema.String,
|
|
@@ -241,18 +241,18 @@ const Results = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
|
241
241
|
top: Schema.Number,
|
|
242
242
|
width: Schema.Number,
|
|
243
243
|
}));
|
|
244
|
-
const ScrapeCreateResponseItem = /*@__PURE__*/
|
|
244
|
+
const ScrapeCreateResponseItem = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
245
245
|
results: Results,
|
|
246
246
|
selector: Schema.String,
|
|
247
247
|
}));
|
|
248
|
-
const Clip = /*@__PURE__*/
|
|
248
|
+
const Clip = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
249
249
|
height: Schema.Number,
|
|
250
250
|
width: Schema.Number,
|
|
251
251
|
x: Schema.Number,
|
|
252
252
|
y: Schema.Number,
|
|
253
253
|
scale: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
254
254
|
}));
|
|
255
|
-
const ScreenshotOptions = /*@__PURE__*/
|
|
255
|
+
const ScreenshotOptions = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
256
256
|
captureBeyondViewport: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
257
257
|
clip: Schema.optional(Schema.Union([Clip, Schema.Null])),
|
|
258
258
|
encoding: Schema.optional(Schema.Union([
|
|
@@ -269,11 +269,11 @@ const ScreenshotOptions = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schem
|
|
|
269
269
|
Schema.Null,
|
|
270
270
|
])),
|
|
271
271
|
}));
|
|
272
|
-
const Error2 = /*@__PURE__*/
|
|
272
|
+
const Error2 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
273
273
|
code: Schema.Number,
|
|
274
274
|
message: Schema.String,
|
|
275
275
|
}));
|
|
276
|
-
const ScreenshotOptions2 = /*@__PURE__*/
|
|
276
|
+
const ScreenshotOptions2 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
277
277
|
captureBeyondViewport: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
278
278
|
clip: Schema.optional(Schema.Union([Clip, Schema.Null])),
|
|
279
279
|
fromSurface: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
@@ -286,7 +286,7 @@ const ScreenshotOptions2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Sche
|
|
|
286
286
|
Schema.Null,
|
|
287
287
|
])),
|
|
288
288
|
}));
|
|
289
|
-
const AccessibilityTree = /*@__PURE__*/
|
|
289
|
+
const AccessibilityTree = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
290
290
|
role: Schema.String,
|
|
291
291
|
autocomplete: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
292
292
|
checked: Schema.optional(Schema.Union([
|
|
@@ -320,7 +320,7 @@ const AccessibilityTree = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schem
|
|
|
320
320
|
valuemin: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
321
321
|
valuetext: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
322
322
|
}));
|
|
323
|
-
export const CreateContentRequest = /*@__PURE__*/
|
|
323
|
+
export const CreateContentRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
324
324
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
325
325
|
cacheTTL: Schema.optional(Schema.Number).pipe(T.HttpQuery("cacheTTL")),
|
|
326
326
|
url: Schema.optional(Schema.String),
|
|
@@ -391,13 +391,13 @@ export const CreateContentRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend((
|
|
|
391
391
|
method: "POST",
|
|
392
392
|
path: "/accounts/{account_id}/browser-rendering/content",
|
|
393
393
|
})));
|
|
394
|
-
export const CreateContentResponse = /*@__PURE__*/
|
|
395
|
-
export const createContent = /*@__PURE__*/
|
|
394
|
+
export const CreateContentResponse = /*@__PURE__*/ Schema.suspend(() => Schema.String.pipe(T.ResponsePath("result")));
|
|
395
|
+
export const createContent = /*@__PURE__*/ API.make(() => ({
|
|
396
396
|
input: CreateContentRequest,
|
|
397
397
|
output: CreateContentResponse,
|
|
398
398
|
errors: [],
|
|
399
399
|
}));
|
|
400
|
-
export const GetCrawlRequest = /*@__PURE__*/
|
|
400
|
+
export const GetCrawlRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
401
401
|
jobId: Schema.String.pipe(T.HttpPath("jobId")),
|
|
402
402
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
403
403
|
cacheTTL: Schema.optional(Schema.Number).pipe(T.HttpQuery("cacheTTL")),
|
|
@@ -418,7 +418,7 @@ export const GetCrawlRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
|
|
|
418
418
|
method: "GET",
|
|
419
419
|
path: "/accounts/{account_id}/browser-rendering/crawl/{jobId}",
|
|
420
420
|
})));
|
|
421
|
-
export const GetCrawlResponse = /*@__PURE__*/
|
|
421
|
+
export const GetCrawlResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
422
422
|
id: Schema.String,
|
|
423
423
|
browserSecondsUsed: Schema.Number,
|
|
424
424
|
finished: Schema.Number,
|
|
@@ -428,12 +428,12 @@ export const GetCrawlResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
|
|
|
428
428
|
total: Schema.Number,
|
|
429
429
|
cursor: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
430
430
|
}).pipe(T.ResponsePath("result")));
|
|
431
|
-
export const getCrawl = /*@__PURE__*/
|
|
431
|
+
export const getCrawl = /*@__PURE__*/ API.make(() => ({
|
|
432
432
|
input: GetCrawlRequest,
|
|
433
433
|
output: GetCrawlResponse,
|
|
434
434
|
errors: [],
|
|
435
435
|
}));
|
|
436
|
-
export const CreateCrawlRequest = /*@__PURE__*/
|
|
436
|
+
export const CreateCrawlRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
437
437
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
438
438
|
cacheTTL: Schema.optional(Schema.Number).pipe(T.HttpQuery("cacheTTL")),
|
|
439
439
|
url: Schema.String,
|
|
@@ -521,32 +521,32 @@ export const CreateCrawlRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
521
521
|
method: "POST",
|
|
522
522
|
path: "/accounts/{account_id}/browser-rendering/crawl",
|
|
523
523
|
})));
|
|
524
|
-
export const CreateCrawlResponse = /*@__PURE__*/
|
|
525
|
-
export const createCrawl = /*@__PURE__*/
|
|
524
|
+
export const CreateCrawlResponse = /*@__PURE__*/ Schema.suspend(() => Schema.String.pipe(T.ResponsePath("result")));
|
|
525
|
+
export const createCrawl = /*@__PURE__*/ API.make(() => ({
|
|
526
526
|
input: CreateCrawlRequest,
|
|
527
527
|
output: CreateCrawlResponse,
|
|
528
528
|
errors: [],
|
|
529
529
|
}));
|
|
530
|
-
export const DeleteCrawlRequest = /*@__PURE__*/
|
|
530
|
+
export const DeleteCrawlRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
531
531
|
jobId: Schema.String.pipe(T.HttpPath("jobId")),
|
|
532
532
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
533
533
|
}).pipe(T.Http({
|
|
534
534
|
method: "DELETE",
|
|
535
535
|
path: "/accounts/{account_id}/browser-rendering/crawl/{jobId}",
|
|
536
536
|
})));
|
|
537
|
-
export const DeleteCrawlResponse = /*@__PURE__*/
|
|
537
|
+
export const DeleteCrawlResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
538
538
|
jobId: Schema.String,
|
|
539
539
|
message: Schema.String,
|
|
540
540
|
})
|
|
541
541
|
.pipe(Schema.encodeKeys({ jobId: "job_id", message: "message" }))
|
|
542
542
|
.pipe(T.ResponsePath("result")));
|
|
543
|
-
export const deleteCrawl = /*@__PURE__*/
|
|
543
|
+
export const deleteCrawl = /*@__PURE__*/ API.make(() => ({
|
|
544
544
|
input: DeleteCrawlRequest,
|
|
545
545
|
output: DeleteCrawlResponse,
|
|
546
546
|
errors: [],
|
|
547
547
|
}));
|
|
548
548
|
export const CreateDevtoolBrowserRequest =
|
|
549
|
-
/*@__PURE__*/
|
|
549
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
550
550
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
551
551
|
keepAlive: Schema.optional(Schema.Number).pipe(T.HttpQuery("keep_alive")),
|
|
552
552
|
lab: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("lab")),
|
|
@@ -557,17 +557,17 @@ export const CreateDevtoolBrowserRequest =
|
|
|
557
557
|
path: "/accounts/{account_id}/browser-rendering/devtools/browser",
|
|
558
558
|
})));
|
|
559
559
|
export const CreateDevtoolBrowserResponse =
|
|
560
|
-
/*@__PURE__*/
|
|
560
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
561
561
|
sessionId: Schema.String,
|
|
562
562
|
webSocketDebuggerUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
563
563
|
}));
|
|
564
|
-
export const createDevtoolBrowser = /*@__PURE__*/
|
|
564
|
+
export const createDevtoolBrowser = /*@__PURE__*/ API.make(() => ({
|
|
565
565
|
input: CreateDevtoolBrowserRequest,
|
|
566
566
|
output: CreateDevtoolBrowserResponse,
|
|
567
567
|
errors: [],
|
|
568
568
|
}));
|
|
569
569
|
export const DeleteDevtoolBrowserRequest =
|
|
570
|
-
/*@__PURE__*/
|
|
570
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
571
571
|
sessionId: Schema.String.pipe(T.HttpPath("sessionId")),
|
|
572
572
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
573
573
|
}).pipe(T.Http({
|
|
@@ -575,19 +575,19 @@ export const DeleteDevtoolBrowserRequest =
|
|
|
575
575
|
path: "/accounts/{account_id}/browser-rendering/devtools/browser/{sessionId}",
|
|
576
576
|
})));
|
|
577
577
|
export const DeleteDevtoolBrowserResponse =
|
|
578
|
-
/*@__PURE__*/
|
|
578
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
579
579
|
status: Schema.Union([
|
|
580
580
|
Schema.Literals(["closing", "closed"]),
|
|
581
581
|
Schema.String,
|
|
582
582
|
]),
|
|
583
583
|
}));
|
|
584
|
-
export const deleteDevtoolBrowser = /*@__PURE__*/
|
|
584
|
+
export const deleteDevtoolBrowser = /*@__PURE__*/ API.make(() => ({
|
|
585
585
|
input: DeleteDevtoolBrowserRequest,
|
|
586
586
|
output: DeleteDevtoolBrowserResponse,
|
|
587
587
|
errors: [],
|
|
588
588
|
}));
|
|
589
589
|
export const ConnectDevtoolBrowserRequest =
|
|
590
|
-
/*@__PURE__*/
|
|
590
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
591
591
|
sessionId: Schema.String.pipe(T.HttpPath("sessionId")),
|
|
592
592
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
593
593
|
keepAlive: Schema.optional(Schema.Number).pipe(T.HttpQuery("keep_alive")),
|
|
@@ -598,14 +598,14 @@ export const ConnectDevtoolBrowserRequest =
|
|
|
598
598
|
path: "/accounts/{account_id}/browser-rendering/devtools/browser/{sessionId}",
|
|
599
599
|
})));
|
|
600
600
|
export const ConnectDevtoolBrowserResponse =
|
|
601
|
-
/*@__PURE__*/
|
|
602
|
-
export const connectDevtoolBrowser = /*@__PURE__*/
|
|
601
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Unknown);
|
|
602
|
+
export const connectDevtoolBrowser = /*@__PURE__*/ API.make(() => ({
|
|
603
603
|
input: ConnectDevtoolBrowserRequest,
|
|
604
604
|
output: ConnectDevtoolBrowserResponse,
|
|
605
605
|
errors: [],
|
|
606
606
|
}));
|
|
607
607
|
export const LaunchDevtoolBrowserRequest =
|
|
608
|
-
/*@__PURE__*/
|
|
608
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
609
609
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
610
610
|
keepAlive: Schema.optional(Schema.Number).pipe(T.HttpQuery("keep_alive")),
|
|
611
611
|
lab: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("lab")),
|
|
@@ -615,14 +615,14 @@ export const LaunchDevtoolBrowserRequest =
|
|
|
615
615
|
path: "/accounts/{account_id}/browser-rendering/devtools/browser",
|
|
616
616
|
})));
|
|
617
617
|
export const LaunchDevtoolBrowserResponse =
|
|
618
|
-
/*@__PURE__*/
|
|
619
|
-
export const launchDevtoolBrowser = /*@__PURE__*/
|
|
618
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Unknown);
|
|
619
|
+
export const launchDevtoolBrowser = /*@__PURE__*/ API.make(() => ({
|
|
620
620
|
input: LaunchDevtoolBrowserRequest,
|
|
621
621
|
output: LaunchDevtoolBrowserResponse,
|
|
622
622
|
errors: [],
|
|
623
623
|
}));
|
|
624
624
|
export const ProtocolDevtoolBrowserRequest =
|
|
625
|
-
/*@__PURE__*/
|
|
625
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
626
626
|
sessionId: Schema.String.pipe(T.HttpPath("sessionId")),
|
|
627
627
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
628
628
|
}).pipe(T.Http({
|
|
@@ -630,17 +630,17 @@ export const ProtocolDevtoolBrowserRequest =
|
|
|
630
630
|
path: "/accounts/{account_id}/browser-rendering/devtools/browser/{sessionId}/json/protocol",
|
|
631
631
|
})));
|
|
632
632
|
export const ProtocolDevtoolBrowserResponse =
|
|
633
|
-
/*@__PURE__*/
|
|
633
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
634
634
|
domains: Schema.Array(Domain),
|
|
635
635
|
version: Schema.optional(Schema.Union([Version, Schema.Null])),
|
|
636
636
|
}));
|
|
637
|
-
export const protocolDevtoolBrowser = /*@__PURE__*/
|
|
637
|
+
export const protocolDevtoolBrowser = /*@__PURE__*/ API.make(() => ({
|
|
638
638
|
input: ProtocolDevtoolBrowserRequest,
|
|
639
639
|
output: ProtocolDevtoolBrowserResponse,
|
|
640
640
|
errors: [],
|
|
641
641
|
}));
|
|
642
642
|
export const VersionDevtoolBrowserRequest =
|
|
643
|
-
/*@__PURE__*/
|
|
643
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
644
644
|
sessionId: Schema.String.pipe(T.HttpPath("sessionId")),
|
|
645
645
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
646
646
|
}).pipe(T.Http({
|
|
@@ -648,7 +648,7 @@ export const VersionDevtoolBrowserRequest =
|
|
|
648
648
|
path: "/accounts/{account_id}/browser-rendering/devtools/browser/{sessionId}/json/version",
|
|
649
649
|
})));
|
|
650
650
|
export const VersionDevtoolBrowserResponse =
|
|
651
|
-
/*@__PURE__*/
|
|
651
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
652
652
|
browser: Schema.String,
|
|
653
653
|
protocolVersion: Schema.String,
|
|
654
654
|
userAgent: Schema.String,
|
|
@@ -663,13 +663,13 @@ export const VersionDevtoolBrowserResponse =
|
|
|
663
663
|
webKitVersion: "WebKit-Version",
|
|
664
664
|
webSocketDebuggerUrl: "webSocketDebuggerUrl",
|
|
665
665
|
})));
|
|
666
|
-
export const versionDevtoolBrowser = /*@__PURE__*/
|
|
666
|
+
export const versionDevtoolBrowser = /*@__PURE__*/ API.make(() => ({
|
|
667
667
|
input: VersionDevtoolBrowserRequest,
|
|
668
668
|
output: VersionDevtoolBrowserResponse,
|
|
669
669
|
errors: [],
|
|
670
670
|
}));
|
|
671
671
|
export const GetDevtoolBrowserPageRequest =
|
|
672
|
-
/*@__PURE__*/
|
|
672
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
673
673
|
sessionId: Schema.String.pipe(T.HttpPath("sessionId")),
|
|
674
674
|
targetId: Schema.String.pipe(T.HttpPath("targetId")),
|
|
675
675
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -678,14 +678,14 @@ export const GetDevtoolBrowserPageRequest =
|
|
|
678
678
|
path: "/accounts/{account_id}/browser-rendering/devtools/browser/{sessionId}/page/{targetId}",
|
|
679
679
|
})));
|
|
680
680
|
export const GetDevtoolBrowserPageResponse =
|
|
681
|
-
/*@__PURE__*/
|
|
682
|
-
export const getDevtoolBrowserPage = /*@__PURE__*/
|
|
681
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Unknown);
|
|
682
|
+
export const getDevtoolBrowserPage = /*@__PURE__*/ API.make(() => ({
|
|
683
683
|
input: GetDevtoolBrowserPageRequest,
|
|
684
684
|
output: GetDevtoolBrowserPageResponse,
|
|
685
685
|
errors: [],
|
|
686
686
|
}));
|
|
687
687
|
export const GetDevtoolBrowserTargetRequest =
|
|
688
|
-
/*@__PURE__*/
|
|
688
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
689
689
|
sessionId: Schema.String.pipe(T.HttpPath("sessionId")),
|
|
690
690
|
targetId: Schema.String.pipe(T.HttpPath("targetId")),
|
|
691
691
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -694,7 +694,7 @@ export const GetDevtoolBrowserTargetRequest =
|
|
|
694
694
|
path: "/accounts/{account_id}/browser-rendering/devtools/browser/{sessionId}/json/list/{targetId}",
|
|
695
695
|
})));
|
|
696
696
|
export const GetDevtoolBrowserTargetResponse =
|
|
697
|
-
/*@__PURE__*/
|
|
697
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
698
698
|
id: Schema.String,
|
|
699
699
|
type: Schema.String,
|
|
700
700
|
url: Schema.String,
|
|
@@ -703,13 +703,13 @@ export const GetDevtoolBrowserTargetResponse =
|
|
|
703
703
|
title: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
704
704
|
webSocketDebuggerUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
705
705
|
}));
|
|
706
|
-
export const getDevtoolBrowserTarget = /*@__PURE__*/
|
|
706
|
+
export const getDevtoolBrowserTarget = /*@__PURE__*/ API.make(() => ({
|
|
707
707
|
input: GetDevtoolBrowserTargetRequest,
|
|
708
708
|
output: GetDevtoolBrowserTargetResponse,
|
|
709
709
|
errors: [],
|
|
710
710
|
}));
|
|
711
711
|
export const ListDevtoolBrowserTargetsRequest =
|
|
712
|
-
/*@__PURE__*/
|
|
712
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
713
713
|
sessionId: Schema.String.pipe(T.HttpPath("sessionId")),
|
|
714
714
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
715
715
|
}).pipe(T.Http({
|
|
@@ -717,14 +717,14 @@ export const ListDevtoolBrowserTargetsRequest =
|
|
|
717
717
|
path: "/accounts/{account_id}/browser-rendering/devtools/browser/{sessionId}/json/list",
|
|
718
718
|
})));
|
|
719
719
|
export const ListDevtoolBrowserTargetsResponse =
|
|
720
|
-
/*@__PURE__*/
|
|
721
|
-
export const listDevtoolBrowserTargets = /*@__PURE__*/
|
|
720
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Array(TargetListResponseItem));
|
|
721
|
+
export const listDevtoolBrowserTargets = /*@__PURE__*/ API.make(() => ({
|
|
722
722
|
input: ListDevtoolBrowserTargetsRequest,
|
|
723
723
|
output: ListDevtoolBrowserTargetsResponse,
|
|
724
724
|
errors: [],
|
|
725
725
|
}));
|
|
726
726
|
export const CreateDevtoolBrowserTargetRequest =
|
|
727
|
-
/*@__PURE__*/
|
|
727
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
728
728
|
sessionId: Schema.String.pipe(T.HttpPath("sessionId")),
|
|
729
729
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
730
730
|
url: Schema.optional(Schema.String).pipe(T.HttpQuery("url")),
|
|
@@ -733,7 +733,7 @@ export const CreateDevtoolBrowserTargetRequest =
|
|
|
733
733
|
path: "/accounts/{account_id}/browser-rendering/devtools/browser/{sessionId}/json/new",
|
|
734
734
|
})));
|
|
735
735
|
export const CreateDevtoolBrowserTargetResponse =
|
|
736
|
-
/*@__PURE__*/
|
|
736
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
737
737
|
id: Schema.String,
|
|
738
738
|
type: Schema.String,
|
|
739
739
|
url: Schema.String,
|
|
@@ -742,13 +742,13 @@ export const CreateDevtoolBrowserTargetResponse =
|
|
|
742
742
|
title: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
743
743
|
webSocketDebuggerUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
744
744
|
}));
|
|
745
|
-
export const createDevtoolBrowserTarget = /*@__PURE__*/
|
|
745
|
+
export const createDevtoolBrowserTarget = /*@__PURE__*/ API.make(() => ({
|
|
746
746
|
input: CreateDevtoolBrowserTargetRequest,
|
|
747
747
|
output: CreateDevtoolBrowserTargetResponse,
|
|
748
748
|
errors: [],
|
|
749
749
|
}));
|
|
750
750
|
export const ActivateDevtoolBrowserTargetRequest =
|
|
751
|
-
/*@__PURE__*/
|
|
751
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
752
752
|
sessionId: Schema.String.pipe(T.HttpPath("sessionId")),
|
|
753
753
|
targetId: Schema.String.pipe(T.HttpPath("targetId")),
|
|
754
754
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -757,16 +757,16 @@ export const ActivateDevtoolBrowserTargetRequest =
|
|
|
757
757
|
path: "/accounts/{account_id}/browser-rendering/devtools/browser/{sessionId}/json/activate/{targetId}",
|
|
758
758
|
})));
|
|
759
759
|
export const ActivateDevtoolBrowserTargetResponse =
|
|
760
|
-
/*@__PURE__*/
|
|
760
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
761
761
|
message: Schema.String,
|
|
762
762
|
}));
|
|
763
|
-
export const activateDevtoolBrowserTarget = /*@__PURE__*/
|
|
763
|
+
export const activateDevtoolBrowserTarget = /*@__PURE__*/ API.make(() => ({
|
|
764
764
|
input: ActivateDevtoolBrowserTargetRequest,
|
|
765
765
|
output: ActivateDevtoolBrowserTargetResponse,
|
|
766
766
|
errors: [],
|
|
767
767
|
}));
|
|
768
768
|
export const CloseDevtoolBrowserTargetRequest =
|
|
769
|
-
/*@__PURE__*/
|
|
769
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
770
770
|
sessionId: Schema.String.pipe(T.HttpPath("sessionId")),
|
|
771
771
|
targetId: Schema.String.pipe(T.HttpPath("targetId")),
|
|
772
772
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -775,16 +775,16 @@ export const CloseDevtoolBrowserTargetRequest =
|
|
|
775
775
|
path: "/accounts/{account_id}/browser-rendering/devtools/browser/{sessionId}/json/close/{targetId}",
|
|
776
776
|
})));
|
|
777
777
|
export const CloseDevtoolBrowserTargetResponse =
|
|
778
|
-
/*@__PURE__*/
|
|
778
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
779
779
|
message: Schema.String,
|
|
780
780
|
}));
|
|
781
|
-
export const closeDevtoolBrowserTarget = /*@__PURE__*/
|
|
781
|
+
export const closeDevtoolBrowserTarget = /*@__PURE__*/ API.make(() => ({
|
|
782
782
|
input: CloseDevtoolBrowserTargetRequest,
|
|
783
783
|
output: CloseDevtoolBrowserTargetResponse,
|
|
784
784
|
errors: [],
|
|
785
785
|
}));
|
|
786
786
|
export const GetDevtoolSessionRequest =
|
|
787
|
-
/*@__PURE__*/
|
|
787
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
788
788
|
sessionId: Schema.String.pipe(T.HttpPath("sessionId")),
|
|
789
789
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
790
790
|
}).pipe(T.Http({
|
|
@@ -792,7 +792,7 @@ export const GetDevtoolSessionRequest =
|
|
|
792
792
|
path: "/accounts/{account_id}/browser-rendering/devtools/session/{sessionId}",
|
|
793
793
|
})));
|
|
794
794
|
export const GetDevtoolSessionResponse =
|
|
795
|
-
/*@__PURE__*/
|
|
795
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
796
796
|
sessionId: Schema.String,
|
|
797
797
|
closeReason: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
798
798
|
closeReasonText: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -805,13 +805,13 @@ export const GetDevtoolSessionResponse =
|
|
|
805
805
|
startTime: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
806
806
|
webSocketDebuggerUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
807
807
|
}));
|
|
808
|
-
export const getDevtoolSession = /*@__PURE__*/
|
|
808
|
+
export const getDevtoolSession = /*@__PURE__*/ API.make(() => ({
|
|
809
809
|
input: GetDevtoolSessionRequest,
|
|
810
810
|
output: GetDevtoolSessionResponse,
|
|
811
811
|
errors: [],
|
|
812
812
|
}));
|
|
813
813
|
export const ListDevtoolSessionsRequest =
|
|
814
|
-
/*@__PURE__*/
|
|
814
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
815
815
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
816
816
|
limit: Schema.optional(Schema.Number).pipe(T.HttpQuery("limit")),
|
|
817
817
|
offset: Schema.optional(Schema.Number).pipe(T.HttpQuery("offset")),
|
|
@@ -820,13 +820,13 @@ export const ListDevtoolSessionsRequest =
|
|
|
820
820
|
path: "/accounts/{account_id}/browser-rendering/devtools/session",
|
|
821
821
|
})));
|
|
822
822
|
export const ListDevtoolSessionsResponse =
|
|
823
|
-
/*@__PURE__*/
|
|
824
|
-
export const listDevtoolSessions = /*@__PURE__*/
|
|
823
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Array(SessionListResponseItem));
|
|
824
|
+
export const listDevtoolSessions = /*@__PURE__*/ API.make(() => ({
|
|
825
825
|
input: ListDevtoolSessionsRequest,
|
|
826
826
|
output: ListDevtoolSessionsResponse,
|
|
827
827
|
errors: [],
|
|
828
828
|
}));
|
|
829
|
-
export const CreateJsonRequest = /*@__PURE__*/
|
|
829
|
+
export const CreateJsonRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
830
830
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
831
831
|
cacheTTL: Schema.optional(Schema.Number).pipe(T.HttpQuery("cacheTTL")),
|
|
832
832
|
html: Schema.optional(Schema.String),
|
|
@@ -924,13 +924,13 @@ export const CreateJsonRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =
|
|
|
924
924
|
method: "POST",
|
|
925
925
|
path: "/accounts/{account_id}/browser-rendering/json",
|
|
926
926
|
})));
|
|
927
|
-
export const CreateJsonResponse = /*@__PURE__*/
|
|
928
|
-
export const createJson = /*@__PURE__*/
|
|
927
|
+
export const CreateJsonResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Record(Schema.String, Schema.Unknown).pipe(T.ResponsePath("result")));
|
|
928
|
+
export const createJson = /*@__PURE__*/ API.make(() => ({
|
|
929
929
|
input: CreateJsonRequest,
|
|
930
930
|
output: CreateJsonResponse,
|
|
931
931
|
errors: [],
|
|
932
932
|
}));
|
|
933
|
-
export const CreateLinkRequest = /*@__PURE__*/
|
|
933
|
+
export const CreateLinkRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
934
934
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
935
935
|
cacheTTL: Schema.optional(Schema.Number).pipe(T.HttpQuery("cacheTTL")),
|
|
936
936
|
html: Schema.optional(Schema.String),
|
|
@@ -1003,13 +1003,13 @@ export const CreateLinkRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =
|
|
|
1003
1003
|
method: "POST",
|
|
1004
1004
|
path: "/accounts/{account_id}/browser-rendering/links",
|
|
1005
1005
|
})));
|
|
1006
|
-
export const CreateLinkResponse = /*@__PURE__*/
|
|
1007
|
-
export const createLink = /*@__PURE__*/
|
|
1006
|
+
export const CreateLinkResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Array(Schema.String).pipe(T.ResponsePath("result")));
|
|
1007
|
+
export const createLink = /*@__PURE__*/ API.make(() => ({
|
|
1008
1008
|
input: CreateLinkRequest,
|
|
1009
1009
|
output: CreateLinkResponse,
|
|
1010
1010
|
errors: [],
|
|
1011
1011
|
}));
|
|
1012
|
-
export const CreateMarkdownRequest = /*@__PURE__*/
|
|
1012
|
+
export const CreateMarkdownRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1013
1013
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1014
1014
|
cacheTTL: Schema.optional(Schema.Number).pipe(T.HttpQuery("cacheTTL")),
|
|
1015
1015
|
url: Schema.optional(Schema.String),
|
|
@@ -1081,13 +1081,13 @@ export const CreateMarkdownRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
|
|
|
1081
1081
|
path: "/accounts/{account_id}/browser-rendering/markdown",
|
|
1082
1082
|
})));
|
|
1083
1083
|
export const CreateMarkdownResponse =
|
|
1084
|
-
/*@__PURE__*/
|
|
1085
|
-
export const createMarkdown = /*@__PURE__*/
|
|
1084
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.String.pipe(T.ResponsePath("result")));
|
|
1085
|
+
export const createMarkdown = /*@__PURE__*/ API.make(() => ({
|
|
1086
1086
|
input: CreateMarkdownRequest,
|
|
1087
1087
|
output: CreateMarkdownResponse,
|
|
1088
1088
|
errors: [],
|
|
1089
1089
|
}));
|
|
1090
|
-
export const CreatePdfRequest = /*@__PURE__*/
|
|
1090
|
+
export const CreatePdfRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1091
1091
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1092
1092
|
cacheTTL: Schema.optional(Schema.Number).pipe(T.HttpQuery("cacheTTL")),
|
|
1093
1093
|
html: Schema.optional(Schema.String),
|
|
@@ -1159,13 +1159,13 @@ export const CreatePdfRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
|
|
|
1159
1159
|
method: "POST",
|
|
1160
1160
|
path: "/accounts/{account_id}/browser-rendering/pdf",
|
|
1161
1161
|
})));
|
|
1162
|
-
export const CreatePdfResponse = /*@__PURE__*/
|
|
1163
|
-
export const createPdf = /*@__PURE__*/
|
|
1162
|
+
export const CreatePdfResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Unknown);
|
|
1163
|
+
export const createPdf = /*@__PURE__*/ API.make(() => ({
|
|
1164
1164
|
input: CreatePdfRequest,
|
|
1165
1165
|
output: CreatePdfResponse,
|
|
1166
1166
|
errors: [],
|
|
1167
1167
|
}));
|
|
1168
|
-
export const CreateScrapeRequest = /*@__PURE__*/
|
|
1168
|
+
export const CreateScrapeRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1169
1169
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1170
1170
|
cacheTTL: Schema.optional(Schema.Number).pipe(T.HttpQuery("cacheTTL")),
|
|
1171
1171
|
elements: Schema.Array(Element),
|
|
@@ -1237,14 +1237,14 @@ export const CreateScrapeRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
1237
1237
|
method: "POST",
|
|
1238
1238
|
path: "/accounts/{account_id}/browser-rendering/scrape",
|
|
1239
1239
|
})));
|
|
1240
|
-
export const CreateScrapeResponse = /*@__PURE__*/
|
|
1241
|
-
export const createScrape = /*@__PURE__*/
|
|
1240
|
+
export const CreateScrapeResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Array(ScrapeCreateResponseItem).pipe(T.ResponsePath("result")));
|
|
1241
|
+
export const createScrape = /*@__PURE__*/ API.make(() => ({
|
|
1242
1242
|
input: CreateScrapeRequest,
|
|
1243
1243
|
output: CreateScrapeResponse,
|
|
1244
1244
|
errors: [],
|
|
1245
1245
|
}));
|
|
1246
1246
|
export const CreateScreenshotRequest =
|
|
1247
|
-
/*@__PURE__*/
|
|
1247
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1248
1248
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1249
1249
|
cacheTTL: Schema.optional(Schema.Number).pipe(T.HttpQuery("cacheTTL")),
|
|
1250
1250
|
html: Schema.optional(Schema.String),
|
|
@@ -1319,16 +1319,16 @@ export const CreateScreenshotRequest =
|
|
|
1319
1319
|
path: "/accounts/{account_id}/browser-rendering/screenshot",
|
|
1320
1320
|
})));
|
|
1321
1321
|
export const CreateScreenshotResponse =
|
|
1322
|
-
/*@__PURE__*/
|
|
1322
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1323
1323
|
success: Schema.Boolean,
|
|
1324
1324
|
errors: Schema.optional(Schema.Union([Schema.Array(Error2), Schema.Null])),
|
|
1325
1325
|
}));
|
|
1326
|
-
export const createScreenshot = /*@__PURE__*/
|
|
1326
|
+
export const createScreenshot = /*@__PURE__*/ API.make(() => ({
|
|
1327
1327
|
input: CreateScreenshotRequest,
|
|
1328
1328
|
output: CreateScreenshotResponse,
|
|
1329
1329
|
errors: [],
|
|
1330
1330
|
}));
|
|
1331
|
-
export const CreateSnapshotRequest = /*@__PURE__*/
|
|
1331
|
+
export const CreateSnapshotRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1332
1332
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1333
1333
|
cacheTTL: Schema.optional(Schema.Number).pipe(T.HttpQuery("cacheTTL")),
|
|
1334
1334
|
html: Schema.optional(Schema.String),
|
|
@@ -1410,13 +1410,13 @@ export const CreateSnapshotRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
|
|
|
1410
1410
|
path: "/accounts/{account_id}/browser-rendering/snapshot",
|
|
1411
1411
|
})));
|
|
1412
1412
|
export const CreateSnapshotResponse =
|
|
1413
|
-
/*@__PURE__*/
|
|
1413
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1414
1414
|
accessibilityTree: Schema.optional(Schema.Union([AccessibilityTree, Schema.Null])),
|
|
1415
1415
|
content: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1416
1416
|
markdown: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1417
1417
|
screenshot: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1418
1418
|
}).pipe(T.ResponsePath("result")));
|
|
1419
|
-
export const createSnapshot = /*@__PURE__*/
|
|
1419
|
+
export const createSnapshot = /*@__PURE__*/ API.make(() => ({
|
|
1420
1420
|
input: CreateSnapshotRequest,
|
|
1421
1421
|
output: CreateSnapshotResponse,
|
|
1422
1422
|
errors: [],
|