@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/src/services/accounts.ts
CHANGED
|
@@ -170,7 +170,7 @@ interface ManagedBy {
|
|
|
170
170
|
/** Name of the parent Organization, if one exists */
|
|
171
171
|
parentOrgName?: string | null;
|
|
172
172
|
}
|
|
173
|
-
const ManagedBy = /*@__PURE__*/
|
|
173
|
+
const ManagedBy = /*@__PURE__*/ Schema.suspend(() =>
|
|
174
174
|
Schema.Struct({
|
|
175
175
|
parentOrgId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
176
176
|
parentOrgName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -188,7 +188,7 @@ interface Settings {
|
|
|
188
188
|
/** Indicates whether membership in this account requires that Two-Factor Authentication is enabled */
|
|
189
189
|
enforceTwofactor?: boolean | null;
|
|
190
190
|
}
|
|
191
|
-
const Settings = /*@__PURE__*/
|
|
191
|
+
const Settings = /*@__PURE__*/ Schema.suspend(() =>
|
|
192
192
|
Schema.Struct({
|
|
193
193
|
abuseContactEmail: Schema.optional(
|
|
194
194
|
Schema.Union([Schema.String, Schema.Null]),
|
|
@@ -210,7 +210,7 @@ interface Settings2 {
|
|
|
210
210
|
/** Indicates whether membership in this account requires that Two-Factor Authentication is enabled */
|
|
211
211
|
enforceTwofactor?: boolean | null;
|
|
212
212
|
}
|
|
213
|
-
const Settings2 = /*@__PURE__*/
|
|
213
|
+
const Settings2 = /*@__PURE__*/ Schema.suspend(() =>
|
|
214
214
|
Schema.Struct({
|
|
215
215
|
abuseContactEmail: Schema.optional(
|
|
216
216
|
Schema.Union([Schema.String, Schema.Null]),
|
|
@@ -245,28 +245,27 @@ interface ListAccountsResponseResult {
|
|
|
245
245
|
enforceTwofactor?: boolean | null;
|
|
246
246
|
} | null;
|
|
247
247
|
}
|
|
248
|
-
const ListAccountsResponseResult = /*@__PURE__*/
|
|
249
|
-
(
|
|
250
|
-
Schema.
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
),
|
|
248
|
+
const ListAccountsResponseResult = /*@__PURE__*/ Schema.suspend(() =>
|
|
249
|
+
Schema.Struct({
|
|
250
|
+
id: Schema.String,
|
|
251
|
+
name: Schema.String,
|
|
252
|
+
type: Schema.Union([
|
|
253
|
+
Schema.Literals(["standard", "enterprise"]),
|
|
254
|
+
Schema.String,
|
|
255
|
+
]),
|
|
256
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
257
|
+
managedBy: Schema.optional(Schema.Union([ManagedBy, Schema.Null])),
|
|
258
|
+
settings: Schema.optional(Schema.Union([Settings2, Schema.Null])),
|
|
259
|
+
}).pipe(
|
|
260
|
+
Schema.encodeKeys({
|
|
261
|
+
id: "id",
|
|
262
|
+
name: "name",
|
|
263
|
+
type: "type",
|
|
264
|
+
createdOn: "created_on",
|
|
265
|
+
managedBy: "managed_by",
|
|
266
|
+
settings: "settings",
|
|
267
|
+
}),
|
|
268
|
+
),
|
|
270
269
|
) as unknown as Schema.Codec<ListAccountsResponseResult>;
|
|
271
270
|
|
|
272
271
|
interface ListAccountsResponseResultInfo {
|
|
@@ -276,7 +275,7 @@ interface ListAccountsResponseResultInfo {
|
|
|
276
275
|
totalCount?: number | null;
|
|
277
276
|
}
|
|
278
277
|
const ListAccountsResponseResultInfo =
|
|
279
|
-
/*@__PURE__*/
|
|
278
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
280
279
|
Schema.Struct({
|
|
281
280
|
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
282
281
|
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
@@ -296,7 +295,7 @@ interface Unit {
|
|
|
296
295
|
/** Tenant unit ID */
|
|
297
296
|
id?: string | null;
|
|
298
297
|
}
|
|
299
|
-
const Unit = /*@__PURE__*/
|
|
298
|
+
const Unit = /*@__PURE__*/ Schema.suspend(() =>
|
|
300
299
|
Schema.Struct({
|
|
301
300
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
302
301
|
}),
|
|
@@ -308,7 +307,7 @@ interface Account {
|
|
|
308
307
|
/** A string that identifies the account name. */
|
|
309
308
|
name?: string | null;
|
|
310
309
|
}
|
|
311
|
-
const Account = /*@__PURE__*/
|
|
310
|
+
const Account = /*@__PURE__*/ Schema.suspend(() =>
|
|
312
311
|
Schema.Struct({
|
|
313
312
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
314
313
|
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -325,7 +324,7 @@ interface Action {
|
|
|
325
324
|
/** A short string that describes the action that was performed. */
|
|
326
325
|
type?: string | null;
|
|
327
326
|
}
|
|
328
|
-
const Action = /*@__PURE__*/
|
|
327
|
+
const Action = /*@__PURE__*/ Schema.suspend(() =>
|
|
329
328
|
Schema.Struct({
|
|
330
329
|
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
331
330
|
result: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -362,7 +361,7 @@ interface Actor {
|
|
|
362
361
|
| (string & {})
|
|
363
362
|
| null;
|
|
364
363
|
}
|
|
365
|
-
const Actor = /*@__PURE__*/
|
|
364
|
+
const Actor = /*@__PURE__*/ Schema.suspend(() =>
|
|
366
365
|
Schema.Struct({
|
|
367
366
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
368
367
|
context: Schema.optional(
|
|
@@ -418,7 +417,7 @@ interface Raw {
|
|
|
418
417
|
/** The client's user agent string sent with the request. */
|
|
419
418
|
userAgent?: string | null;
|
|
420
419
|
}
|
|
421
|
-
const Raw = /*@__PURE__*/
|
|
420
|
+
const Raw = /*@__PURE__*/ Schema.suspend(() =>
|
|
422
421
|
Schema.Struct({
|
|
423
422
|
cfRayId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
424
423
|
method: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -448,7 +447,7 @@ interface Resource {
|
|
|
448
447
|
/** The type of the resource. */
|
|
449
448
|
type?: string | null;
|
|
450
449
|
}
|
|
451
|
-
const Resource = /*@__PURE__*/
|
|
450
|
+
const Resource = /*@__PURE__*/ Schema.suspend(() =>
|
|
452
451
|
Schema.Struct({
|
|
453
452
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
454
453
|
product: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -514,24 +513,23 @@ interface ListLogAuditsResponseResult {
|
|
|
514
513
|
/** Provides details about the zone affected by the action. */
|
|
515
514
|
zone?: { id?: string | null; name?: string | null } | null;
|
|
516
515
|
}
|
|
517
|
-
const ListLogAuditsResponseResult = /*@__PURE__*/
|
|
518
|
-
(
|
|
519
|
-
Schema.
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
}),
|
|
516
|
+
const ListLogAuditsResponseResult = /*@__PURE__*/ Schema.suspend(() =>
|
|
517
|
+
Schema.Struct({
|
|
518
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
519
|
+
account: Schema.optional(Schema.Union([Account, Schema.Null])),
|
|
520
|
+
action: Schema.optional(Schema.Union([Action, Schema.Null])),
|
|
521
|
+
actor: Schema.optional(Schema.Union([Actor, Schema.Null])),
|
|
522
|
+
raw: Schema.optional(Schema.Union([Raw, Schema.Null])),
|
|
523
|
+
resource: Schema.optional(Schema.Union([Resource, Schema.Null])),
|
|
524
|
+
zone: Schema.optional(Schema.Union([Account, Schema.Null])),
|
|
525
|
+
}),
|
|
528
526
|
) as unknown as Schema.Codec<ListLogAuditsResponseResult>;
|
|
529
527
|
|
|
530
528
|
interface ListLogAuditsResponseResultInfoCursors {
|
|
531
529
|
after?: string | null;
|
|
532
530
|
}
|
|
533
531
|
const ListLogAuditsResponseResultInfoCursors =
|
|
534
|
-
/*@__PURE__*/
|
|
532
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
535
533
|
Schema.Struct({
|
|
536
534
|
after: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
537
535
|
}),
|
|
@@ -541,7 +539,7 @@ interface ListLogAuditsResponseResultInfo {
|
|
|
541
539
|
cursors?: { after?: string | null } | null;
|
|
542
540
|
}
|
|
543
541
|
const ListLogAuditsResponseResultInfo =
|
|
544
|
-
/*@__PURE__*/
|
|
542
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
545
543
|
Schema.Struct({
|
|
546
544
|
cursors: Schema.optional(
|
|
547
545
|
Schema.Union([ListLogAuditsResponseResultInfoCursors, Schema.Null]),
|
|
@@ -553,7 +551,7 @@ interface PolicyPermissionGroup {
|
|
|
553
551
|
/** Identifier of the group. */
|
|
554
552
|
id: string;
|
|
555
553
|
}
|
|
556
|
-
const PolicyPermissionGroup = /*@__PURE__*/
|
|
554
|
+
const PolicyPermissionGroup = /*@__PURE__*/ Schema.suspend(() =>
|
|
557
555
|
Schema.Struct({
|
|
558
556
|
id: Schema.String,
|
|
559
557
|
}),
|
|
@@ -569,7 +567,7 @@ interface Policy {
|
|
|
569
567
|
/** A list of resource groups that the policy applies to. */
|
|
570
568
|
resourceGroups?: { id: string }[] | null;
|
|
571
569
|
}
|
|
572
|
-
const Policy = /*@__PURE__*/
|
|
570
|
+
const Policy = /*@__PURE__*/ Schema.suspend(() =>
|
|
573
571
|
Schema.Struct({
|
|
574
572
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
575
573
|
access: Schema.optional(
|
|
@@ -598,7 +596,7 @@ interface PermissionGrant {
|
|
|
598
596
|
read?: boolean | null;
|
|
599
597
|
write?: boolean | null;
|
|
600
598
|
}
|
|
601
|
-
const PermissionGrant = /*@__PURE__*/
|
|
599
|
+
const PermissionGrant = /*@__PURE__*/ Schema.suspend(() =>
|
|
602
600
|
Schema.Struct({
|
|
603
601
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
604
602
|
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
@@ -619,7 +617,7 @@ interface Permissions {
|
|
|
619
617
|
zoneSettings?: { read?: boolean | null; write?: boolean | null } | null;
|
|
620
618
|
zones?: { read?: boolean | null; write?: boolean | null } | null;
|
|
621
619
|
}
|
|
622
|
-
const Permissions = /*@__PURE__*/
|
|
620
|
+
const Permissions = /*@__PURE__*/ Schema.suspend(() =>
|
|
623
621
|
Schema.Struct({
|
|
624
622
|
analytics: Schema.optional(Schema.Union([PermissionGrant, Schema.Null])),
|
|
625
623
|
billing: Schema.optional(Schema.Union([PermissionGrant, Schema.Null])),
|
|
@@ -673,7 +671,7 @@ interface Role {
|
|
|
673
671
|
zones?: { read?: boolean | null; write?: boolean | null } | null;
|
|
674
672
|
};
|
|
675
673
|
}
|
|
676
|
-
const Role = /*@__PURE__*/
|
|
674
|
+
const Role = /*@__PURE__*/ Schema.suspend(() =>
|
|
677
675
|
Schema.Struct({
|
|
678
676
|
id: Schema.String,
|
|
679
677
|
description: Schema.String,
|
|
@@ -694,7 +692,7 @@ interface User {
|
|
|
694
692
|
/** Indicates whether two-factor authentication is enabled for the user account. Does not apply to API authentication. */
|
|
695
693
|
twoFactorAuthenticationEnabled?: boolean | null;
|
|
696
694
|
}
|
|
697
|
-
const User = /*@__PURE__*/
|
|
695
|
+
const User = /*@__PURE__*/ Schema.suspend(() =>
|
|
698
696
|
Schema.Struct({
|
|
699
697
|
email: Schema.String,
|
|
700
698
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -767,7 +765,7 @@ interface Member {
|
|
|
767
765
|
twoFactorAuthenticationEnabled?: boolean | null;
|
|
768
766
|
} | null;
|
|
769
767
|
}
|
|
770
|
-
const Member = /*@__PURE__*/
|
|
768
|
+
const Member = /*@__PURE__*/ Schema.suspend(() =>
|
|
771
769
|
Schema.Struct({
|
|
772
770
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
773
771
|
email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -793,7 +791,7 @@ interface Policy2 {
|
|
|
793
791
|
/** A list of resource groups that the policy applies to. */
|
|
794
792
|
resourceGroups: { id: string }[];
|
|
795
793
|
}
|
|
796
|
-
const Policy2 = /*@__PURE__*/
|
|
794
|
+
const Policy2 = /*@__PURE__*/ Schema.suspend(() =>
|
|
797
795
|
Schema.Struct({
|
|
798
796
|
access: Schema.Union([Schema.Literals(["allow", "deny"]), Schema.String]),
|
|
799
797
|
permissionGroups: Schema.Array(PolicyPermissionGroup),
|
|
@@ -835,7 +833,7 @@ interface RatePlan {
|
|
|
835
833
|
/** The list of sets this rate plan applies to. Returns array of strings. */
|
|
836
834
|
sets?: string[] | null;
|
|
837
835
|
}
|
|
838
|
-
const RatePlan = /*@__PURE__*/
|
|
836
|
+
const RatePlan = /*@__PURE__*/ Schema.suspend(() =>
|
|
839
837
|
Schema.Struct({
|
|
840
838
|
id: Schema.optional(
|
|
841
839
|
Schema.Union([
|
|
@@ -933,7 +931,7 @@ interface Subscription {
|
|
|
933
931
|
| (string & {})
|
|
934
932
|
| null;
|
|
935
933
|
}
|
|
936
|
-
const Subscription = /*@__PURE__*/
|
|
934
|
+
const Subscription = /*@__PURE__*/ Schema.suspend(() =>
|
|
937
935
|
Schema.Struct({
|
|
938
936
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
939
937
|
currency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -991,7 +989,7 @@ interface ConditionRequestIP {
|
|
|
991
989
|
/** List of IPv4/IPv6 CIDR addresses. */
|
|
992
990
|
notIn?: string[] | null;
|
|
993
991
|
}
|
|
994
|
-
const ConditionRequestIP = /*@__PURE__*/
|
|
992
|
+
const ConditionRequestIP = /*@__PURE__*/ Schema.suspend(() =>
|
|
995
993
|
Schema.Struct({
|
|
996
994
|
in: Schema.optional(
|
|
997
995
|
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
@@ -1006,7 +1004,7 @@ interface Condition {
|
|
|
1006
1004
|
/** Client IP restrictions. */
|
|
1007
1005
|
requestIp?: { in?: string[] | null; notIn?: string[] | null } | null;
|
|
1008
1006
|
}
|
|
1009
|
-
const Condition = /*@__PURE__*/
|
|
1007
|
+
const Condition = /*@__PURE__*/ Schema.suspend(() =>
|
|
1010
1008
|
Schema.Struct({
|
|
1011
1009
|
requestIp: Schema.optional(Schema.Union([ConditionRequestIP, Schema.Null])),
|
|
1012
1010
|
}).pipe(Schema.encodeKeys({ requestIp: "request_ip" })),
|
|
@@ -1016,7 +1014,7 @@ interface Meta {
|
|
|
1016
1014
|
key?: string | null;
|
|
1017
1015
|
value?: string | null;
|
|
1018
1016
|
}
|
|
1019
|
-
const Meta = /*@__PURE__*/
|
|
1017
|
+
const Meta = /*@__PURE__*/ Schema.suspend(() =>
|
|
1020
1018
|
Schema.Struct({
|
|
1021
1019
|
key: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1022
1020
|
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -1031,7 +1029,7 @@ interface PermissionGroup {
|
|
|
1031
1029
|
/** Name of the permission group. */
|
|
1032
1030
|
name?: string | null;
|
|
1033
1031
|
}
|
|
1034
|
-
const PermissionGroup = /*@__PURE__*/
|
|
1032
|
+
const PermissionGroup = /*@__PURE__*/ Schema.suspend(() =>
|
|
1035
1033
|
Schema.Struct({
|
|
1036
1034
|
id: Schema.String,
|
|
1037
1035
|
meta: Schema.optional(Schema.Union([Meta, Schema.Null])),
|
|
@@ -1053,7 +1051,7 @@ interface TokenPolicy {
|
|
|
1053
1051
|
/** A list of resource names that the policy applies to. */
|
|
1054
1052
|
resources: Record<string, unknown>;
|
|
1055
1053
|
}
|
|
1056
|
-
const TokenPolicy = /*@__PURE__*/
|
|
1054
|
+
const TokenPolicy = /*@__PURE__*/ Schema.suspend(() =>
|
|
1057
1055
|
Schema.Struct({
|
|
1058
1056
|
id: Schema.String,
|
|
1059
1057
|
effect: Schema.Union([Schema.Literals(["allow", "deny"]), Schema.String]),
|
|
@@ -1103,7 +1101,7 @@ interface Token {
|
|
|
1103
1101
|
/** Status of the token. */
|
|
1104
1102
|
status?: "active" | "disabled" | "expired" | (string & {}) | null;
|
|
1105
1103
|
}
|
|
1106
|
-
const Token = /*@__PURE__*/
|
|
1104
|
+
const Token = /*@__PURE__*/ Schema.suspend(() =>
|
|
1107
1105
|
Schema.Struct({
|
|
1108
1106
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1109
1107
|
condition: Schema.optional(Schema.Union([Condition, Schema.Null])),
|
|
@@ -1147,7 +1145,7 @@ interface PermissionGroup2 {
|
|
|
1147
1145
|
/** Attributes associated to the permission group. */
|
|
1148
1146
|
meta?: { key?: string | null; value?: string | null } | null;
|
|
1149
1147
|
}
|
|
1150
|
-
const PermissionGroup2 = /*@__PURE__*/
|
|
1148
|
+
const PermissionGroup2 = /*@__PURE__*/ Schema.suspend(() =>
|
|
1151
1149
|
Schema.Struct({
|
|
1152
1150
|
id: Schema.String,
|
|
1153
1151
|
meta: Schema.optional(Schema.Union([Meta, Schema.Null])),
|
|
@@ -1165,7 +1163,7 @@ interface TokenPolicyParam {
|
|
|
1165
1163
|
/** A list of resource names that the policy applies to. */
|
|
1166
1164
|
resources: Record<string, unknown>;
|
|
1167
1165
|
}
|
|
1168
|
-
const TokenPolicyParam = /*@__PURE__*/
|
|
1166
|
+
const TokenPolicyParam = /*@__PURE__*/ Schema.suspend(() =>
|
|
1169
1167
|
Schema.Struct({
|
|
1170
1168
|
effect: Schema.Union([Schema.Literals(["allow", "deny"]), Schema.String]),
|
|
1171
1169
|
permissionGroups: Schema.Array(PermissionGroup2),
|
|
@@ -1213,7 +1211,7 @@ interface PermissionGroupGetResponseItem {
|
|
|
1213
1211
|
| null;
|
|
1214
1212
|
}
|
|
1215
1213
|
const PermissionGroupGetResponseItem =
|
|
1216
|
-
/*@__PURE__*/
|
|
1214
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1217
1215
|
Schema.Struct({
|
|
1218
1216
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1219
1217
|
category: Schema.optional(
|
|
@@ -1268,11 +1266,10 @@ export interface GetAccountRequest {
|
|
|
1268
1266
|
accountId: string;
|
|
1269
1267
|
}
|
|
1270
1268
|
|
|
1271
|
-
export const GetAccountRequest = /*@__PURE__*/
|
|
1272
|
-
(
|
|
1273
|
-
Schema.
|
|
1274
|
-
|
|
1275
|
-
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}" })),
|
|
1269
|
+
export const GetAccountRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1270
|
+
Schema.Struct({
|
|
1271
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1272
|
+
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}" })),
|
|
1276
1273
|
) as unknown as Schema.Codec<GetAccountRequest>;
|
|
1277
1274
|
|
|
1278
1275
|
export interface GetAccountResponse {
|
|
@@ -1295,30 +1292,29 @@ export interface GetAccountResponse {
|
|
|
1295
1292
|
} | null;
|
|
1296
1293
|
}
|
|
1297
1294
|
|
|
1298
|
-
export const GetAccountResponse = /*@__PURE__*/
|
|
1299
|
-
(
|
|
1300
|
-
Schema.
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
.
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
.pipe(T.ResponsePath("result")),
|
|
1295
|
+
export const GetAccountResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
1296
|
+
Schema.Struct({
|
|
1297
|
+
id: Schema.String,
|
|
1298
|
+
name: Schema.String,
|
|
1299
|
+
type: Schema.Union([
|
|
1300
|
+
Schema.Literals(["standard", "enterprise"]),
|
|
1301
|
+
Schema.String,
|
|
1302
|
+
]),
|
|
1303
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1304
|
+
managedBy: Schema.optional(Schema.Union([ManagedBy, Schema.Null])),
|
|
1305
|
+
settings: Schema.optional(Schema.Union([Settings, Schema.Null])),
|
|
1306
|
+
})
|
|
1307
|
+
.pipe(
|
|
1308
|
+
Schema.encodeKeys({
|
|
1309
|
+
id: "id",
|
|
1310
|
+
name: "name",
|
|
1311
|
+
type: "type",
|
|
1312
|
+
createdOn: "created_on",
|
|
1313
|
+
managedBy: "managed_by",
|
|
1314
|
+
settings: "settings",
|
|
1315
|
+
}),
|
|
1316
|
+
)
|
|
1317
|
+
.pipe(T.ResponsePath("result")),
|
|
1322
1318
|
) as unknown as Schema.Codec<GetAccountResponse>;
|
|
1323
1319
|
|
|
1324
1320
|
export type GetAccountError = DefaultErrors | InvalidRoute;
|
|
@@ -1328,7 +1324,7 @@ export const getAccount: API.OperationMethod<
|
|
|
1328
1324
|
GetAccountResponse,
|
|
1329
1325
|
GetAccountError,
|
|
1330
1326
|
Credentials | HttpClient.HttpClient
|
|
1331
|
-
> = /*@__PURE__*/
|
|
1327
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1332
1328
|
input: GetAccountRequest,
|
|
1333
1329
|
output: GetAccountResponse,
|
|
1334
1330
|
errors: [InvalidRoute],
|
|
@@ -1343,16 +1339,15 @@ export interface ListAccountsRequest {
|
|
|
1343
1339
|
name?: string;
|
|
1344
1340
|
}
|
|
1345
1341
|
|
|
1346
|
-
export const ListAccountsRequest = /*@__PURE__*/
|
|
1347
|
-
(
|
|
1348
|
-
Schema.
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
}).pipe(T.Http({ method: "GET", path: "/accounts" })),
|
|
1342
|
+
export const ListAccountsRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1343
|
+
Schema.Struct({
|
|
1344
|
+
page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
|
|
1345
|
+
perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
|
|
1346
|
+
direction: Schema.optional(
|
|
1347
|
+
Schema.Union([Schema.Literals(["asc", "desc"]), Schema.String]),
|
|
1348
|
+
).pipe(T.HttpQuery("direction")),
|
|
1349
|
+
name: Schema.optional(Schema.String).pipe(T.HttpQuery("name")),
|
|
1350
|
+
}).pipe(T.Http({ method: "GET", path: "/accounts" })),
|
|
1356
1351
|
) as unknown as Schema.Codec<ListAccountsRequest>;
|
|
1357
1352
|
|
|
1358
1353
|
export interface ListAccountsResponse {
|
|
@@ -1378,14 +1373,13 @@ export interface ListAccountsResponse {
|
|
|
1378
1373
|
} | null;
|
|
1379
1374
|
}
|
|
1380
1375
|
|
|
1381
|
-
export const ListAccountsResponse = /*@__PURE__*/
|
|
1382
|
-
(
|
|
1383
|
-
Schema.
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
|
|
1376
|
+
export const ListAccountsResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
1377
|
+
Schema.Struct({
|
|
1378
|
+
result: Schema.Array(ListAccountsResponseResult),
|
|
1379
|
+
resultInfo: Schema.optional(
|
|
1380
|
+
Schema.Union([ListAccountsResponseResultInfo, Schema.Null]),
|
|
1381
|
+
),
|
|
1382
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
|
|
1389
1383
|
) as unknown as Schema.Codec<ListAccountsResponse>;
|
|
1390
1384
|
|
|
1391
1385
|
export type ListAccountsError = DefaultErrors;
|
|
@@ -1395,7 +1389,7 @@ export const listAccounts: API.PaginatedOperationMethod<
|
|
|
1395
1389
|
ListAccountsResponse,
|
|
1396
1390
|
ListAccountsError,
|
|
1397
1391
|
Credentials | HttpClient.HttpClient
|
|
1398
|
-
> = /*@__PURE__*/
|
|
1392
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
1399
1393
|
input: ListAccountsRequest,
|
|
1400
1394
|
output: ListAccountsResponse,
|
|
1401
1395
|
errors: [],
|
|
@@ -1416,18 +1410,17 @@ export interface CreateAccountRequest {
|
|
|
1416
1410
|
unit?: { id?: string };
|
|
1417
1411
|
}
|
|
1418
1412
|
|
|
1419
|
-
export const CreateAccountRequest = /*@__PURE__*/
|
|
1420
|
-
(
|
|
1421
|
-
Schema.
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
Schema.
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
}).pipe(T.Http({ method: "POST", path: "/accounts" })),
|
|
1413
|
+
export const CreateAccountRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1414
|
+
Schema.Struct({
|
|
1415
|
+
name: Schema.String,
|
|
1416
|
+
type: Schema.optional(
|
|
1417
|
+
Schema.Union([
|
|
1418
|
+
Schema.Literals(["standard", "enterprise"]),
|
|
1419
|
+
Schema.String,
|
|
1420
|
+
]),
|
|
1421
|
+
),
|
|
1422
|
+
unit: Schema.optional(Unit),
|
|
1423
|
+
}).pipe(T.Http({ method: "POST", path: "/accounts" })),
|
|
1431
1424
|
) as unknown as Schema.Codec<CreateAccountRequest>;
|
|
1432
1425
|
|
|
1433
1426
|
export interface CreateAccountResponse {
|
|
@@ -1450,30 +1443,29 @@ export interface CreateAccountResponse {
|
|
|
1450
1443
|
} | null;
|
|
1451
1444
|
}
|
|
1452
1445
|
|
|
1453
|
-
export const CreateAccountResponse = /*@__PURE__*/
|
|
1454
|
-
(
|
|
1455
|
-
Schema.
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
.
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
.pipe(T.ResponsePath("result")),
|
|
1446
|
+
export const CreateAccountResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
1447
|
+
Schema.Struct({
|
|
1448
|
+
id: Schema.String,
|
|
1449
|
+
name: Schema.String,
|
|
1450
|
+
type: Schema.Union([
|
|
1451
|
+
Schema.Literals(["standard", "enterprise"]),
|
|
1452
|
+
Schema.String,
|
|
1453
|
+
]),
|
|
1454
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1455
|
+
managedBy: Schema.optional(Schema.Union([ManagedBy, Schema.Null])),
|
|
1456
|
+
settings: Schema.optional(Schema.Union([Settings2, Schema.Null])),
|
|
1457
|
+
})
|
|
1458
|
+
.pipe(
|
|
1459
|
+
Schema.encodeKeys({
|
|
1460
|
+
id: "id",
|
|
1461
|
+
name: "name",
|
|
1462
|
+
type: "type",
|
|
1463
|
+
createdOn: "created_on",
|
|
1464
|
+
managedBy: "managed_by",
|
|
1465
|
+
settings: "settings",
|
|
1466
|
+
}),
|
|
1467
|
+
)
|
|
1468
|
+
.pipe(T.ResponsePath("result")),
|
|
1477
1469
|
) as unknown as Schema.Codec<CreateAccountResponse>;
|
|
1478
1470
|
|
|
1479
1471
|
export type CreateAccountError =
|
|
@@ -1486,7 +1478,7 @@ export const createAccount: API.OperationMethod<
|
|
|
1486
1478
|
CreateAccountResponse,
|
|
1487
1479
|
CreateAccountError,
|
|
1488
1480
|
Credentials | HttpClient.HttpClient
|
|
1489
|
-
> = /*@__PURE__*/
|
|
1481
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1490
1482
|
input: CreateAccountRequest,
|
|
1491
1483
|
output: CreateAccountResponse,
|
|
1492
1484
|
errors: [AccountCreationForbidden, MissingName],
|
|
@@ -1507,30 +1499,29 @@ export interface UpdateAccountRequest {
|
|
|
1507
1499
|
settings?: { abuseContactEmail?: string; enforceTwofactor?: boolean };
|
|
1508
1500
|
}
|
|
1509
1501
|
|
|
1510
|
-
export const UpdateAccountRequest = /*@__PURE__*/
|
|
1511
|
-
(
|
|
1512
|
-
Schema.
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
Schema.
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
]),
|
|
1521
|
-
),
|
|
1522
|
-
managedBy: Schema.optional(Schema.Unknown),
|
|
1523
|
-
settings: Schema.optional(Settings2),
|
|
1524
|
-
}).pipe(
|
|
1525
|
-
Schema.encodeKeys({
|
|
1526
|
-
id: "id",
|
|
1527
|
-
name: "name",
|
|
1528
|
-
type: "type",
|
|
1529
|
-
managedBy: "managed_by",
|
|
1530
|
-
settings: "settings",
|
|
1531
|
-
}),
|
|
1532
|
-
T.Http({ method: "PUT", path: "/accounts/{account_id}" }),
|
|
1502
|
+
export const UpdateAccountRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1503
|
+
Schema.Struct({
|
|
1504
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1505
|
+
id: Schema.String,
|
|
1506
|
+
name: Schema.String,
|
|
1507
|
+
type: Schema.optional(
|
|
1508
|
+
Schema.Union([
|
|
1509
|
+
Schema.Literals(["standard", "enterprise"]),
|
|
1510
|
+
Schema.String,
|
|
1511
|
+
]),
|
|
1533
1512
|
),
|
|
1513
|
+
managedBy: Schema.optional(Schema.Unknown),
|
|
1514
|
+
settings: Schema.optional(Settings2),
|
|
1515
|
+
}).pipe(
|
|
1516
|
+
Schema.encodeKeys({
|
|
1517
|
+
id: "id",
|
|
1518
|
+
name: "name",
|
|
1519
|
+
type: "type",
|
|
1520
|
+
managedBy: "managed_by",
|
|
1521
|
+
settings: "settings",
|
|
1522
|
+
}),
|
|
1523
|
+
T.Http({ method: "PUT", path: "/accounts/{account_id}" }),
|
|
1524
|
+
),
|
|
1534
1525
|
) as unknown as Schema.Codec<UpdateAccountRequest>;
|
|
1535
1526
|
|
|
1536
1527
|
export interface UpdateAccountResponse {
|
|
@@ -1553,30 +1544,29 @@ export interface UpdateAccountResponse {
|
|
|
1553
1544
|
} | null;
|
|
1554
1545
|
}
|
|
1555
1546
|
|
|
1556
|
-
export const UpdateAccountResponse = /*@__PURE__*/
|
|
1557
|
-
(
|
|
1558
|
-
Schema.
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
.
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
.pipe(T.ResponsePath("result")),
|
|
1547
|
+
export const UpdateAccountResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
1548
|
+
Schema.Struct({
|
|
1549
|
+
id: Schema.String,
|
|
1550
|
+
name: Schema.String,
|
|
1551
|
+
type: Schema.Union([
|
|
1552
|
+
Schema.Literals(["standard", "enterprise"]),
|
|
1553
|
+
Schema.String,
|
|
1554
|
+
]),
|
|
1555
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1556
|
+
managedBy: Schema.optional(Schema.Union([ManagedBy, Schema.Null])),
|
|
1557
|
+
settings: Schema.optional(Schema.Union([Settings, Schema.Null])),
|
|
1558
|
+
})
|
|
1559
|
+
.pipe(
|
|
1560
|
+
Schema.encodeKeys({
|
|
1561
|
+
id: "id",
|
|
1562
|
+
name: "name",
|
|
1563
|
+
type: "type",
|
|
1564
|
+
createdOn: "created_on",
|
|
1565
|
+
managedBy: "managed_by",
|
|
1566
|
+
settings: "settings",
|
|
1567
|
+
}),
|
|
1568
|
+
)
|
|
1569
|
+
.pipe(T.ResponsePath("result")),
|
|
1580
1570
|
) as unknown as Schema.Codec<UpdateAccountResponse>;
|
|
1581
1571
|
|
|
1582
1572
|
export type UpdateAccountError =
|
|
@@ -1592,7 +1582,7 @@ export const updateAccount: API.OperationMethod<
|
|
|
1592
1582
|
UpdateAccountResponse,
|
|
1593
1583
|
UpdateAccountError,
|
|
1594
1584
|
Credentials | HttpClient.HttpClient
|
|
1595
|
-
> = /*@__PURE__*/
|
|
1585
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1596
1586
|
input: UpdateAccountRequest,
|
|
1597
1587
|
output: UpdateAccountResponse,
|
|
1598
1588
|
errors: [
|
|
@@ -1609,11 +1599,10 @@ export interface DeleteAccountRequest {
|
|
|
1609
1599
|
accountId: string;
|
|
1610
1600
|
}
|
|
1611
1601
|
|
|
1612
|
-
export const DeleteAccountRequest = /*@__PURE__*/
|
|
1613
|
-
(
|
|
1614
|
-
Schema.
|
|
1615
|
-
|
|
1616
|
-
}).pipe(T.Http({ method: "DELETE", path: "/accounts/{account_id}" })),
|
|
1602
|
+
export const DeleteAccountRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1603
|
+
Schema.Struct({
|
|
1604
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1605
|
+
}).pipe(T.Http({ method: "DELETE", path: "/accounts/{account_id}" })),
|
|
1617
1606
|
) as unknown as Schema.Codec<DeleteAccountRequest>;
|
|
1618
1607
|
|
|
1619
1608
|
export interface DeleteAccountResponse {
|
|
@@ -1621,11 +1610,10 @@ export interface DeleteAccountResponse {
|
|
|
1621
1610
|
id: string;
|
|
1622
1611
|
}
|
|
1623
1612
|
|
|
1624
|
-
export const DeleteAccountResponse = /*@__PURE__*/
|
|
1625
|
-
(
|
|
1626
|
-
Schema.
|
|
1627
|
-
|
|
1628
|
-
}).pipe(T.ResponsePath("result")),
|
|
1613
|
+
export const DeleteAccountResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
1614
|
+
Schema.Struct({
|
|
1615
|
+
id: Schema.String,
|
|
1616
|
+
}).pipe(T.ResponsePath("result")),
|
|
1629
1617
|
) as unknown as Schema.Codec<DeleteAccountResponse>;
|
|
1630
1618
|
|
|
1631
1619
|
export type DeleteAccountError =
|
|
@@ -1638,7 +1626,7 @@ export const deleteAccount: API.OperationMethod<
|
|
|
1638
1626
|
DeleteAccountResponse,
|
|
1639
1627
|
DeleteAccountError,
|
|
1640
1628
|
Credentials | HttpClient.HttpClient
|
|
1641
|
-
> = /*@__PURE__*/
|
|
1629
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1642
1630
|
input: DeleteAccountRequest,
|
|
1643
1631
|
output: DeleteAccountResponse,
|
|
1644
1632
|
errors: [InvalidRoute, MethodNotAllowed],
|
|
@@ -1727,176 +1715,173 @@ export interface ListLogAuditsRequest {
|
|
|
1727
1715
|
zoneName?: { not?: string[] };
|
|
1728
1716
|
}
|
|
1729
1717
|
|
|
1730
|
-
export const ListLogAuditsRequest = /*@__PURE__*/
|
|
1731
|
-
(
|
|
1732
|
-
Schema.
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
Schema.
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
Schema.
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
Schema.
|
|
1749
|
-
|
|
1750
|
-
Schema.
|
|
1751
|
-
Schema.
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
]),
|
|
1755
|
-
),
|
|
1718
|
+
export const ListLogAuditsRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1719
|
+
Schema.Struct({
|
|
1720
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1721
|
+
cursor: Schema.optional(Schema.String).pipe(T.HttpQuery("cursor")),
|
|
1722
|
+
before: Schema.String.pipe(T.HttpQuery("before")),
|
|
1723
|
+
since: Schema.String.pipe(T.HttpQuery("since")),
|
|
1724
|
+
id: Schema.optional(
|
|
1725
|
+
Schema.Struct({
|
|
1726
|
+
not: Schema.optional(Schema.Array(Schema.String)),
|
|
1727
|
+
}),
|
|
1728
|
+
).pipe(T.HttpQuery("id")),
|
|
1729
|
+
accountName: Schema.optional(
|
|
1730
|
+
Schema.Struct({
|
|
1731
|
+
not: Schema.optional(Schema.Array(Schema.String)),
|
|
1732
|
+
}),
|
|
1733
|
+
).pipe(T.HttpQuery("account_name")),
|
|
1734
|
+
actionResult: Schema.optional(
|
|
1735
|
+
Schema.Struct({
|
|
1736
|
+
not: Schema.optional(
|
|
1737
|
+
Schema.Array(
|
|
1738
|
+
Schema.Union([
|
|
1739
|
+
Schema.Literals(["success", "failure"]),
|
|
1740
|
+
Schema.String,
|
|
1741
|
+
]),
|
|
1756
1742
|
),
|
|
1757
|
-
|
|
1758
|
-
)
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
),
|
|
1743
|
+
),
|
|
1744
|
+
}),
|
|
1745
|
+
).pipe(T.HttpQuery("action_result")),
|
|
1746
|
+
actionType: Schema.optional(
|
|
1747
|
+
Schema.Struct({
|
|
1748
|
+
not: Schema.optional(
|
|
1749
|
+
Schema.Array(
|
|
1750
|
+
Schema.Union([
|
|
1751
|
+
Schema.Literals(["create", "delete", "view", "update"]),
|
|
1752
|
+
Schema.String,
|
|
1753
|
+
]),
|
|
1768
1754
|
),
|
|
1769
|
-
|
|
1770
|
-
)
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
Schema.String,
|
|
1755
|
+
),
|
|
1756
|
+
}),
|
|
1757
|
+
).pipe(T.HttpQuery("action_type")),
|
|
1758
|
+
actorContext: Schema.optional(
|
|
1759
|
+
Schema.Struct({
|
|
1760
|
+
not: Schema.optional(
|
|
1761
|
+
Schema.Array(
|
|
1762
|
+
Schema.Union([
|
|
1763
|
+
Schema.Literals([
|
|
1764
|
+
"api_key",
|
|
1765
|
+
"api_token",
|
|
1766
|
+
"dash",
|
|
1767
|
+
"oauth",
|
|
1768
|
+
"origin_ca_key",
|
|
1784
1769
|
]),
|
|
1785
|
-
|
|
1770
|
+
Schema.String,
|
|
1771
|
+
]),
|
|
1786
1772
|
),
|
|
1787
|
-
|
|
1788
|
-
)
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
)
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
)
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
)
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
)
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
)
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
Schema.String,
|
|
1773
|
+
),
|
|
1774
|
+
}),
|
|
1775
|
+
).pipe(T.HttpQuery("actor_context")),
|
|
1776
|
+
actorEmail: Schema.optional(
|
|
1777
|
+
Schema.Struct({
|
|
1778
|
+
not: Schema.optional(Schema.Array(Schema.String)),
|
|
1779
|
+
}),
|
|
1780
|
+
).pipe(T.HttpQuery("actor_email")),
|
|
1781
|
+
actorId: Schema.optional(
|
|
1782
|
+
Schema.Struct({
|
|
1783
|
+
not: Schema.optional(Schema.Array(Schema.String)),
|
|
1784
|
+
}),
|
|
1785
|
+
).pipe(T.HttpQuery("actor_id")),
|
|
1786
|
+
actorIpAddress: Schema.optional(
|
|
1787
|
+
Schema.Struct({
|
|
1788
|
+
not: Schema.optional(Schema.Array(Schema.String)),
|
|
1789
|
+
}),
|
|
1790
|
+
).pipe(T.HttpQuery("actor_ip_address")),
|
|
1791
|
+
actorTokenId: Schema.optional(
|
|
1792
|
+
Schema.Struct({
|
|
1793
|
+
not: Schema.optional(Schema.Array(Schema.String)),
|
|
1794
|
+
}),
|
|
1795
|
+
).pipe(T.HttpQuery("actor_token_id")),
|
|
1796
|
+
actorTokenName: Schema.optional(
|
|
1797
|
+
Schema.Struct({
|
|
1798
|
+
not: Schema.optional(Schema.Array(Schema.String)),
|
|
1799
|
+
}),
|
|
1800
|
+
).pipe(T.HttpQuery("actor_token_name")),
|
|
1801
|
+
actorType: Schema.optional(
|
|
1802
|
+
Schema.Struct({
|
|
1803
|
+
not: Schema.optional(
|
|
1804
|
+
Schema.Array(
|
|
1805
|
+
Schema.Union([
|
|
1806
|
+
Schema.Literals([
|
|
1807
|
+
"account",
|
|
1808
|
+
"cloudflare_admin",
|
|
1809
|
+
"system",
|
|
1810
|
+
"user",
|
|
1826
1811
|
]),
|
|
1827
|
-
|
|
1812
|
+
Schema.String,
|
|
1813
|
+
]),
|
|
1828
1814
|
),
|
|
1829
|
-
|
|
1830
|
-
)
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
)
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
)
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
)
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
)
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
)
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
)
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
)
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
),
|
|
1815
|
+
),
|
|
1816
|
+
}),
|
|
1817
|
+
).pipe(T.HttpQuery("actor_type")),
|
|
1818
|
+
auditLogId: Schema.optional(
|
|
1819
|
+
Schema.Struct({
|
|
1820
|
+
not: Schema.optional(Schema.Array(Schema.String)),
|
|
1821
|
+
}),
|
|
1822
|
+
).pipe(T.HttpQuery("audit_log_id")),
|
|
1823
|
+
direction: Schema.optional(
|
|
1824
|
+
Schema.Union([Schema.Literals(["desc", "asc"]), Schema.String]),
|
|
1825
|
+
).pipe(T.HttpQuery("direction")),
|
|
1826
|
+
limit: Schema.optional(Schema.Number).pipe(T.HttpQuery("limit")),
|
|
1827
|
+
rawCfRayId: Schema.optional(
|
|
1828
|
+
Schema.Struct({
|
|
1829
|
+
not: Schema.optional(Schema.Array(Schema.String)),
|
|
1830
|
+
}),
|
|
1831
|
+
).pipe(T.HttpQuery("raw_cf_ray_id")),
|
|
1832
|
+
rawMethod: Schema.optional(
|
|
1833
|
+
Schema.Struct({
|
|
1834
|
+
not: Schema.optional(Schema.Array(Schema.String)),
|
|
1835
|
+
}),
|
|
1836
|
+
).pipe(T.HttpQuery("raw_method")),
|
|
1837
|
+
rawStatusCode: Schema.optional(
|
|
1838
|
+
Schema.Struct({
|
|
1839
|
+
not: Schema.optional(Schema.Array(Schema.Number)),
|
|
1840
|
+
}),
|
|
1841
|
+
).pipe(T.HttpQuery("raw_status_code")),
|
|
1842
|
+
rawUri: Schema.optional(
|
|
1843
|
+
Schema.Struct({
|
|
1844
|
+
not: Schema.optional(Schema.Array(Schema.String)),
|
|
1845
|
+
}),
|
|
1846
|
+
).pipe(T.HttpQuery("raw_uri")),
|
|
1847
|
+
resourceId: Schema.optional(
|
|
1848
|
+
Schema.Struct({
|
|
1849
|
+
not: Schema.optional(Schema.Array(Schema.String)),
|
|
1850
|
+
}),
|
|
1851
|
+
).pipe(T.HttpQuery("resource_id")),
|
|
1852
|
+
resourceProduct: Schema.optional(
|
|
1853
|
+
Schema.Struct({
|
|
1854
|
+
not: Schema.optional(Schema.Array(Schema.String)),
|
|
1855
|
+
}),
|
|
1856
|
+
).pipe(T.HttpQuery("resource_product")),
|
|
1857
|
+
resourceScope: Schema.optional(
|
|
1858
|
+
Schema.Struct({
|
|
1859
|
+
not: Schema.optional(
|
|
1860
|
+
Schema.Array(
|
|
1861
|
+
Schema.Union([
|
|
1862
|
+
Schema.Literals(["accounts", "user", "zones", "memberships"]),
|
|
1863
|
+
Schema.String,
|
|
1864
|
+
]),
|
|
1879
1865
|
),
|
|
1880
|
-
|
|
1881
|
-
)
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
)
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
)
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
)
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
),
|
|
1866
|
+
),
|
|
1867
|
+
}),
|
|
1868
|
+
).pipe(T.HttpQuery("resource_scope")),
|
|
1869
|
+
resourceType: Schema.optional(
|
|
1870
|
+
Schema.Struct({
|
|
1871
|
+
not: Schema.optional(Schema.Array(Schema.String)),
|
|
1872
|
+
}),
|
|
1873
|
+
).pipe(T.HttpQuery("resource_type")),
|
|
1874
|
+
zoneId: Schema.optional(
|
|
1875
|
+
Schema.Struct({
|
|
1876
|
+
not: Schema.optional(Schema.Array(Schema.String)),
|
|
1877
|
+
}),
|
|
1878
|
+
).pipe(T.HttpQuery("zone_id")),
|
|
1879
|
+
zoneName: Schema.optional(
|
|
1880
|
+
Schema.Struct({
|
|
1881
|
+
not: Schema.optional(Schema.Array(Schema.String)),
|
|
1882
|
+
}),
|
|
1883
|
+
).pipe(T.HttpQuery("zone_name")),
|
|
1884
|
+
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/logs/audit" })),
|
|
1900
1885
|
) as unknown as Schema.Codec<ListLogAuditsRequest>;
|
|
1901
1886
|
|
|
1902
1887
|
export interface ListLogAuditsResponse {
|
|
@@ -1951,14 +1936,13 @@ export interface ListLogAuditsResponse {
|
|
|
1951
1936
|
resultInfo?: { cursors?: { after?: string | null } | null } | null;
|
|
1952
1937
|
}
|
|
1953
1938
|
|
|
1954
|
-
export const ListLogAuditsResponse = /*@__PURE__*/
|
|
1955
|
-
(
|
|
1956
|
-
Schema.
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
|
|
1939
|
+
export const ListLogAuditsResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
1940
|
+
Schema.Struct({
|
|
1941
|
+
result: Schema.Array(ListLogAuditsResponseResult),
|
|
1942
|
+
resultInfo: Schema.optional(
|
|
1943
|
+
Schema.Union([ListLogAuditsResponseResultInfo, Schema.Null]),
|
|
1944
|
+
),
|
|
1945
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
|
|
1962
1946
|
) as unknown as Schema.Codec<ListLogAuditsResponse>;
|
|
1963
1947
|
|
|
1964
1948
|
export type ListLogAuditsError = DefaultErrors;
|
|
@@ -1968,7 +1952,7 @@ export const listLogAudits: API.PaginatedOperationMethod<
|
|
|
1968
1952
|
ListLogAuditsResponse,
|
|
1969
1953
|
ListLogAuditsError,
|
|
1970
1954
|
Credentials | HttpClient.HttpClient
|
|
1971
|
-
> = /*@__PURE__*/
|
|
1955
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
1972
1956
|
input: ListLogAuditsRequest,
|
|
1973
1957
|
output: ListLogAuditsResponse,
|
|
1974
1958
|
errors: [],
|
|
@@ -1990,7 +1974,7 @@ export interface GetMemberRequest {
|
|
|
1990
1974
|
accountId: string;
|
|
1991
1975
|
}
|
|
1992
1976
|
|
|
1993
|
-
export const GetMemberRequest = /*@__PURE__*/
|
|
1977
|
+
export const GetMemberRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1994
1978
|
Schema.Struct({
|
|
1995
1979
|
memberId: Schema.String.pipe(T.HttpPath("memberId")),
|
|
1996
1980
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -2056,26 +2040,22 @@ export interface GetMemberResponse {
|
|
|
2056
2040
|
} | null;
|
|
2057
2041
|
}
|
|
2058
2042
|
|
|
2059
|
-
export const GetMemberResponse = /*@__PURE__*/
|
|
2060
|
-
(
|
|
2061
|
-
Schema.
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
Schema.Union([
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
]),
|
|
2076
|
-
),
|
|
2077
|
-
user: Schema.optional(Schema.Union([User, Schema.Null])),
|
|
2078
|
-
}).pipe(T.ResponsePath("result")),
|
|
2043
|
+
export const GetMemberResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2044
|
+
Schema.Struct({
|
|
2045
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2046
|
+
email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2047
|
+
policies: Schema.optional(
|
|
2048
|
+
Schema.Union([Schema.Array(Policy), Schema.Null]),
|
|
2049
|
+
),
|
|
2050
|
+
roles: Schema.optional(Schema.Union([Schema.Array(Role), Schema.Null])),
|
|
2051
|
+
status: Schema.optional(
|
|
2052
|
+
Schema.Union([
|
|
2053
|
+
Schema.Union([Schema.Literals(["accepted", "pending"]), Schema.String]),
|
|
2054
|
+
Schema.Null,
|
|
2055
|
+
]),
|
|
2056
|
+
),
|
|
2057
|
+
user: Schema.optional(Schema.Union([User, Schema.Null])),
|
|
2058
|
+
}).pipe(T.ResponsePath("result")),
|
|
2079
2059
|
) as unknown as Schema.Codec<GetMemberResponse>;
|
|
2080
2060
|
|
|
2081
2061
|
export type GetMemberError = DefaultErrors | MemberNotFound | InvalidRoute;
|
|
@@ -2085,7 +2065,7 @@ export const getMember: API.OperationMethod<
|
|
|
2085
2065
|
GetMemberResponse,
|
|
2086
2066
|
GetMemberError,
|
|
2087
2067
|
Credentials | HttpClient.HttpClient
|
|
2088
|
-
> = /*@__PURE__*/
|
|
2068
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2089
2069
|
input: GetMemberRequest,
|
|
2090
2070
|
output: GetMemberResponse,
|
|
2091
2071
|
errors: [MemberNotFound, InvalidRoute],
|
|
@@ -2109,33 +2089,32 @@ export interface ListMembersRequest {
|
|
|
2109
2089
|
status?: "accepted" | "pending" | "rejected" | (string & {});
|
|
2110
2090
|
}
|
|
2111
2091
|
|
|
2112
|
-
export const ListMembersRequest = /*@__PURE__*/
|
|
2113
|
-
(
|
|
2114
|
-
Schema.
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
Schema.
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
"status",
|
|
2128
|
-
]),
|
|
2129
|
-
Schema.String,
|
|
2130
|
-
]),
|
|
2131
|
-
).pipe(T.HttpQuery("order")),
|
|
2132
|
-
status: Schema.optional(
|
|
2133
|
-
Schema.Union([
|
|
2134
|
-
Schema.Literals(["accepted", "pending", "rejected"]),
|
|
2135
|
-
Schema.String,
|
|
2092
|
+
export const ListMembersRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2093
|
+
Schema.Struct({
|
|
2094
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2095
|
+
page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
|
|
2096
|
+
perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
|
|
2097
|
+
direction: Schema.optional(
|
|
2098
|
+
Schema.Union([Schema.Literals(["asc", "desc"]), Schema.String]),
|
|
2099
|
+
).pipe(T.HttpQuery("direction")),
|
|
2100
|
+
order: Schema.optional(
|
|
2101
|
+
Schema.Union([
|
|
2102
|
+
Schema.Literals([
|
|
2103
|
+
"user.first_name",
|
|
2104
|
+
"user.last_name",
|
|
2105
|
+
"user.email",
|
|
2106
|
+
"status",
|
|
2136
2107
|
]),
|
|
2137
|
-
|
|
2138
|
-
|
|
2108
|
+
Schema.String,
|
|
2109
|
+
]),
|
|
2110
|
+
).pipe(T.HttpQuery("order")),
|
|
2111
|
+
status: Schema.optional(
|
|
2112
|
+
Schema.Union([
|
|
2113
|
+
Schema.Literals(["accepted", "pending", "rejected"]),
|
|
2114
|
+
Schema.String,
|
|
2115
|
+
]),
|
|
2116
|
+
).pipe(T.HttpQuery("status")),
|
|
2117
|
+
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/members" })),
|
|
2139
2118
|
) as unknown as Schema.Codec<ListMembersRequest>;
|
|
2140
2119
|
|
|
2141
2120
|
export interface ListMembersResponse {
|
|
@@ -2211,14 +2190,13 @@ export interface ListMembersResponse {
|
|
|
2211
2190
|
} | null;
|
|
2212
2191
|
}
|
|
2213
2192
|
|
|
2214
|
-
export const ListMembersResponse = /*@__PURE__*/
|
|
2215
|
-
(
|
|
2216
|
-
Schema.
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
|
|
2193
|
+
export const ListMembersResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2194
|
+
Schema.Struct({
|
|
2195
|
+
result: Schema.Union([Schema.Array(Member), Schema.Null]),
|
|
2196
|
+
resultInfo: Schema.optional(
|
|
2197
|
+
Schema.Union([ListAccountsResponseResultInfo, Schema.Null]),
|
|
2198
|
+
),
|
|
2199
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
|
|
2222
2200
|
) as unknown as Schema.Codec<ListMembersResponse>;
|
|
2223
2201
|
|
|
2224
2202
|
export type ListMembersError = DefaultErrors;
|
|
@@ -2228,7 +2206,7 @@ export const listMembers: API.PaginatedOperationMethod<
|
|
|
2228
2206
|
ListMembersResponse,
|
|
2229
2207
|
ListMembersError,
|
|
2230
2208
|
Credentials | HttpClient.HttpClient
|
|
2231
|
-
> = /*@__PURE__*/
|
|
2209
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
2232
2210
|
input: ListMembersRequest,
|
|
2233
2211
|
output: ListMembersResponse,
|
|
2234
2212
|
errors: [],
|
|
@@ -2258,17 +2236,16 @@ export interface CreateMemberRequest {
|
|
|
2258
2236
|
}[];
|
|
2259
2237
|
}
|
|
2260
2238
|
|
|
2261
|
-
export const CreateMemberRequest = /*@__PURE__*/
|
|
2262
|
-
(
|
|
2263
|
-
Schema.
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
}).pipe(T.Http({ method: "POST", path: "/accounts/{account_id}/members" })),
|
|
2239
|
+
export const CreateMemberRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2240
|
+
Schema.Struct({
|
|
2241
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2242
|
+
email: Schema.String,
|
|
2243
|
+
roles: Schema.optional(Schema.Array(Schema.String)),
|
|
2244
|
+
status: Schema.optional(
|
|
2245
|
+
Schema.Union([Schema.Literals(["accepted", "pending"]), Schema.String]),
|
|
2246
|
+
),
|
|
2247
|
+
policies: Schema.optional(Schema.Array(Policy2)),
|
|
2248
|
+
}).pipe(T.Http({ method: "POST", path: "/accounts/{account_id}/members" })),
|
|
2272
2249
|
) as unknown as Schema.Codec<CreateMemberRequest>;
|
|
2273
2250
|
|
|
2274
2251
|
export interface CreateMemberResponse {
|
|
@@ -2325,26 +2302,22 @@ export interface CreateMemberResponse {
|
|
|
2325
2302
|
} | null;
|
|
2326
2303
|
}
|
|
2327
2304
|
|
|
2328
|
-
export const CreateMemberResponse = /*@__PURE__*/
|
|
2329
|
-
(
|
|
2330
|
-
Schema.
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
Schema.Union([
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
]),
|
|
2345
|
-
),
|
|
2346
|
-
user: Schema.optional(Schema.Union([User, Schema.Null])),
|
|
2347
|
-
}).pipe(T.ResponsePath("result")),
|
|
2305
|
+
export const CreateMemberResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2306
|
+
Schema.Struct({
|
|
2307
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2308
|
+
email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2309
|
+
policies: Schema.optional(
|
|
2310
|
+
Schema.Union([Schema.Array(Policy), Schema.Null]),
|
|
2311
|
+
),
|
|
2312
|
+
roles: Schema.optional(Schema.Union([Schema.Array(Role), Schema.Null])),
|
|
2313
|
+
status: Schema.optional(
|
|
2314
|
+
Schema.Union([
|
|
2315
|
+
Schema.Union([Schema.Literals(["accepted", "pending"]), Schema.String]),
|
|
2316
|
+
Schema.Null,
|
|
2317
|
+
]),
|
|
2318
|
+
),
|
|
2319
|
+
user: Schema.optional(Schema.Union([User, Schema.Null])),
|
|
2320
|
+
}).pipe(T.ResponsePath("result")),
|
|
2348
2321
|
) as unknown as Schema.Codec<CreateMemberResponse>;
|
|
2349
2322
|
|
|
2350
2323
|
export type CreateMemberError =
|
|
@@ -2358,7 +2331,7 @@ export const createMember: API.OperationMethod<
|
|
|
2358
2331
|
CreateMemberResponse,
|
|
2359
2332
|
CreateMemberError,
|
|
2360
2333
|
Credentials | HttpClient.HttpClient
|
|
2361
|
-
> = /*@__PURE__*/
|
|
2334
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2362
2335
|
input: CreateMemberRequest,
|
|
2363
2336
|
output: CreateMemberResponse,
|
|
2364
2337
|
errors: [InvalidRoute, ValidationError, AccountMemberAlreadyExists],
|
|
@@ -2378,19 +2351,18 @@ export interface UpdateMemberRequest {
|
|
|
2378
2351
|
}[];
|
|
2379
2352
|
}
|
|
2380
2353
|
|
|
2381
|
-
export const UpdateMemberRequest = /*@__PURE__*/
|
|
2382
|
-
(
|
|
2383
|
-
Schema.
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
),
|
|
2354
|
+
export const UpdateMemberRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2355
|
+
Schema.Struct({
|
|
2356
|
+
memberId: Schema.String.pipe(T.HttpPath("memberId")),
|
|
2357
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2358
|
+
roles: Schema.optional(Schema.Array(PolicyPermissionGroup)),
|
|
2359
|
+
policies: Schema.optional(Schema.Array(Policy2)),
|
|
2360
|
+
}).pipe(
|
|
2361
|
+
T.Http({
|
|
2362
|
+
method: "PUT",
|
|
2363
|
+
path: "/accounts/{account_id}/members/{memberId}",
|
|
2364
|
+
}),
|
|
2365
|
+
),
|
|
2394
2366
|
) as unknown as Schema.Codec<UpdateMemberRequest>;
|
|
2395
2367
|
|
|
2396
2368
|
export interface UpdateMemberResponse {
|
|
@@ -2447,26 +2419,22 @@ export interface UpdateMemberResponse {
|
|
|
2447
2419
|
} | null;
|
|
2448
2420
|
}
|
|
2449
2421
|
|
|
2450
|
-
export const UpdateMemberResponse = /*@__PURE__*/
|
|
2451
|
-
(
|
|
2452
|
-
Schema.
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
Schema.Union([
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
]),
|
|
2467
|
-
),
|
|
2468
|
-
user: Schema.optional(Schema.Union([User, Schema.Null])),
|
|
2469
|
-
}).pipe(T.ResponsePath("result")),
|
|
2422
|
+
export const UpdateMemberResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2423
|
+
Schema.Struct({
|
|
2424
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2425
|
+
email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2426
|
+
policies: Schema.optional(
|
|
2427
|
+
Schema.Union([Schema.Array(Policy), Schema.Null]),
|
|
2428
|
+
),
|
|
2429
|
+
roles: Schema.optional(Schema.Union([Schema.Array(Role), Schema.Null])),
|
|
2430
|
+
status: Schema.optional(
|
|
2431
|
+
Schema.Union([
|
|
2432
|
+
Schema.Union([Schema.Literals(["accepted", "pending"]), Schema.String]),
|
|
2433
|
+
Schema.Null,
|
|
2434
|
+
]),
|
|
2435
|
+
),
|
|
2436
|
+
user: Schema.optional(Schema.Union([User, Schema.Null])),
|
|
2437
|
+
}).pipe(T.ResponsePath("result")),
|
|
2470
2438
|
) as unknown as Schema.Codec<UpdateMemberResponse>;
|
|
2471
2439
|
|
|
2472
2440
|
export type UpdateMemberError =
|
|
@@ -2481,7 +2449,7 @@ export const updateMember: API.OperationMethod<
|
|
|
2481
2449
|
UpdateMemberResponse,
|
|
2482
2450
|
UpdateMemberError,
|
|
2483
2451
|
Credentials | HttpClient.HttpClient
|
|
2484
|
-
> = /*@__PURE__*/
|
|
2452
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2485
2453
|
input: UpdateMemberRequest,
|
|
2486
2454
|
output: UpdateMemberResponse,
|
|
2487
2455
|
errors: [MemberNotFound, InvalidRoute, BadRequest, MethodNotAllowed],
|
|
@@ -2493,17 +2461,16 @@ export interface DeleteMemberRequest {
|
|
|
2493
2461
|
accountId: string;
|
|
2494
2462
|
}
|
|
2495
2463
|
|
|
2496
|
-
export const DeleteMemberRequest = /*@__PURE__*/
|
|
2497
|
-
(
|
|
2498
|
-
Schema.
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
),
|
|
2464
|
+
export const DeleteMemberRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2465
|
+
Schema.Struct({
|
|
2466
|
+
memberId: Schema.String.pipe(T.HttpPath("memberId")),
|
|
2467
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2468
|
+
}).pipe(
|
|
2469
|
+
T.Http({
|
|
2470
|
+
method: "DELETE",
|
|
2471
|
+
path: "/accounts/{account_id}/members/{memberId}",
|
|
2472
|
+
}),
|
|
2473
|
+
),
|
|
2507
2474
|
) as unknown as Schema.Codec<DeleteMemberRequest>;
|
|
2508
2475
|
|
|
2509
2476
|
export interface DeleteMemberResponse {
|
|
@@ -2511,11 +2478,10 @@ export interface DeleteMemberResponse {
|
|
|
2511
2478
|
id: string;
|
|
2512
2479
|
}
|
|
2513
2480
|
|
|
2514
|
-
export const DeleteMemberResponse = /*@__PURE__*/
|
|
2515
|
-
(
|
|
2516
|
-
Schema.
|
|
2517
|
-
|
|
2518
|
-
}).pipe(T.ResponsePath("result")),
|
|
2481
|
+
export const DeleteMemberResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2482
|
+
Schema.Struct({
|
|
2483
|
+
id: Schema.String,
|
|
2484
|
+
}).pipe(T.ResponsePath("result")),
|
|
2519
2485
|
) as unknown as Schema.Codec<DeleteMemberResponse>;
|
|
2520
2486
|
|
|
2521
2487
|
export type DeleteMemberError = DefaultErrors | MemberNotFound | InvalidRoute;
|
|
@@ -2525,7 +2491,7 @@ export const deleteMember: API.OperationMethod<
|
|
|
2525
2491
|
DeleteMemberResponse,
|
|
2526
2492
|
DeleteMemberError,
|
|
2527
2493
|
Credentials | HttpClient.HttpClient
|
|
2528
|
-
> = /*@__PURE__*/
|
|
2494
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2529
2495
|
input: DeleteMemberRequest,
|
|
2530
2496
|
output: DeleteMemberResponse,
|
|
2531
2497
|
errors: [MemberNotFound, InvalidRoute],
|
|
@@ -2541,7 +2507,7 @@ export interface GetRoleRequest {
|
|
|
2541
2507
|
accountId: string;
|
|
2542
2508
|
}
|
|
2543
2509
|
|
|
2544
|
-
export const GetRoleRequest = /*@__PURE__*/
|
|
2510
|
+
export const GetRoleRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2545
2511
|
Schema.Struct({
|
|
2546
2512
|
roleId: Schema.String.pipe(T.HttpPath("roleId")),
|
|
2547
2513
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -2573,7 +2539,7 @@ export interface GetRoleResponse {
|
|
|
2573
2539
|
};
|
|
2574
2540
|
}
|
|
2575
2541
|
|
|
2576
|
-
export const GetRoleResponse = /*@__PURE__*/
|
|
2542
|
+
export const GetRoleResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2577
2543
|
Schema.Struct({
|
|
2578
2544
|
id: Schema.String,
|
|
2579
2545
|
description: Schema.String,
|
|
@@ -2589,7 +2555,7 @@ export const getRole: API.OperationMethod<
|
|
|
2589
2555
|
GetRoleResponse,
|
|
2590
2556
|
GetRoleError,
|
|
2591
2557
|
Credentials | HttpClient.HttpClient
|
|
2592
|
-
> = /*@__PURE__*/
|
|
2558
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2593
2559
|
input: GetRoleRequest,
|
|
2594
2560
|
output: GetRoleResponse,
|
|
2595
2561
|
errors: [InvalidRoute],
|
|
@@ -2602,7 +2568,7 @@ export interface ListRolesRequest {
|
|
|
2602
2568
|
perPage?: number;
|
|
2603
2569
|
}
|
|
2604
2570
|
|
|
2605
|
-
export const ListRolesRequest = /*@__PURE__*/
|
|
2571
|
+
export const ListRolesRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2606
2572
|
Schema.Struct({
|
|
2607
2573
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2608
2574
|
page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
|
|
@@ -2646,14 +2612,13 @@ export interface ListRolesResponse {
|
|
|
2646
2612
|
} | null;
|
|
2647
2613
|
}
|
|
2648
2614
|
|
|
2649
|
-
export const ListRolesResponse = /*@__PURE__*/
|
|
2650
|
-
(
|
|
2651
|
-
Schema.
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
|
|
2615
|
+
export const ListRolesResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2616
|
+
Schema.Struct({
|
|
2617
|
+
result: Schema.Union([Schema.Array(Role), Schema.Null]),
|
|
2618
|
+
resultInfo: Schema.optional(
|
|
2619
|
+
Schema.Union([ListAccountsResponseResultInfo, Schema.Null]),
|
|
2620
|
+
),
|
|
2621
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
|
|
2657
2622
|
) as unknown as Schema.Codec<ListRolesResponse>;
|
|
2658
2623
|
|
|
2659
2624
|
export type ListRolesError = DefaultErrors;
|
|
@@ -2663,7 +2628,7 @@ export const listRoles: API.PaginatedOperationMethod<
|
|
|
2663
2628
|
ListRolesResponse,
|
|
2664
2629
|
ListRolesError,
|
|
2665
2630
|
Credentials | HttpClient.HttpClient
|
|
2666
|
-
> = /*@__PURE__*/
|
|
2631
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
2667
2632
|
input: ListRolesRequest,
|
|
2668
2633
|
output: ListRolesResponse,
|
|
2669
2634
|
errors: [],
|
|
@@ -2686,7 +2651,7 @@ export interface GetSubscriptionRequest {
|
|
|
2686
2651
|
}
|
|
2687
2652
|
|
|
2688
2653
|
export const GetSubscriptionRequest =
|
|
2689
|
-
/*@__PURE__*/
|
|
2654
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
2690
2655
|
Schema.Struct({
|
|
2691
2656
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2692
2657
|
}).pipe(
|
|
@@ -2743,7 +2708,7 @@ export interface GetSubscriptionResponse {
|
|
|
2743
2708
|
}
|
|
2744
2709
|
|
|
2745
2710
|
export const GetSubscriptionResponse =
|
|
2746
|
-
/*@__PURE__*/
|
|
2711
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
2747
2712
|
Schema.Struct({
|
|
2748
2713
|
result: Schema.Array(Subscription),
|
|
2749
2714
|
}),
|
|
@@ -2756,7 +2721,7 @@ export const getSubscription: API.PaginatedOperationMethod<
|
|
|
2756
2721
|
GetSubscriptionResponse,
|
|
2757
2722
|
GetSubscriptionError,
|
|
2758
2723
|
Credentials | HttpClient.HttpClient
|
|
2759
|
-
> = /*@__PURE__*/
|
|
2724
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
2760
2725
|
input: GetSubscriptionRequest,
|
|
2761
2726
|
output: GetSubscriptionResponse,
|
|
2762
2727
|
errors: [],
|
|
@@ -2795,7 +2760,7 @@ export interface CreateSubscriptionRequest {
|
|
|
2795
2760
|
}
|
|
2796
2761
|
|
|
2797
2762
|
export const CreateSubscriptionRequest =
|
|
2798
|
-
/*@__PURE__*/
|
|
2763
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
2799
2764
|
Schema.Struct({
|
|
2800
2765
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2801
2766
|
frequency: Schema.optional(
|
|
@@ -2866,7 +2831,7 @@ export interface CreateSubscriptionResponse {
|
|
|
2866
2831
|
}
|
|
2867
2832
|
|
|
2868
2833
|
export const CreateSubscriptionResponse =
|
|
2869
|
-
/*@__PURE__*/
|
|
2834
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
2870
2835
|
Schema.Struct({
|
|
2871
2836
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2872
2837
|
currency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -2930,7 +2895,7 @@ export const createSubscription: API.OperationMethod<
|
|
|
2930
2895
|
CreateSubscriptionResponse,
|
|
2931
2896
|
CreateSubscriptionError,
|
|
2932
2897
|
Credentials | HttpClient.HttpClient
|
|
2933
|
-
> = /*@__PURE__*/
|
|
2898
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2934
2899
|
input: CreateSubscriptionRequest,
|
|
2935
2900
|
output: CreateSubscriptionResponse,
|
|
2936
2901
|
errors: [JsonDecodeFailure, InvalidRoute],
|
|
@@ -2966,7 +2931,7 @@ export interface UpdateSubscriptionRequest {
|
|
|
2966
2931
|
}
|
|
2967
2932
|
|
|
2968
2933
|
export const UpdateSubscriptionRequest =
|
|
2969
|
-
/*@__PURE__*/
|
|
2934
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
2970
2935
|
Schema.Struct({
|
|
2971
2936
|
subscriptionIdentifier: Schema.String.pipe(
|
|
2972
2937
|
T.HttpPath("subscriptionIdentifier"),
|
|
@@ -3043,7 +3008,7 @@ export interface UpdateSubscriptionResponse {
|
|
|
3043
3008
|
}
|
|
3044
3009
|
|
|
3045
3010
|
export const UpdateSubscriptionResponse =
|
|
3046
|
-
/*@__PURE__*/
|
|
3011
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
3047
3012
|
Schema.Struct({
|
|
3048
3013
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3049
3014
|
currency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -3108,7 +3073,7 @@ export const updateSubscription: API.OperationMethod<
|
|
|
3108
3073
|
UpdateSubscriptionResponse,
|
|
3109
3074
|
UpdateSubscriptionError,
|
|
3110
3075
|
Credentials | HttpClient.HttpClient
|
|
3111
|
-
> = /*@__PURE__*/
|
|
3076
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3112
3077
|
input: UpdateSubscriptionRequest,
|
|
3113
3078
|
output: UpdateSubscriptionResponse,
|
|
3114
3079
|
errors: [JsonDecodeFailure, InvalidRoute, EndpointNotFound],
|
|
@@ -3121,7 +3086,7 @@ export interface DeleteSubscriptionRequest {
|
|
|
3121
3086
|
}
|
|
3122
3087
|
|
|
3123
3088
|
export const DeleteSubscriptionRequest =
|
|
3124
|
-
/*@__PURE__*/
|
|
3089
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
3125
3090
|
Schema.Struct({
|
|
3126
3091
|
subscriptionIdentifier: Schema.String.pipe(
|
|
3127
3092
|
T.HttpPath("subscriptionIdentifier"),
|
|
@@ -3141,7 +3106,7 @@ export interface DeleteSubscriptionResponse {
|
|
|
3141
3106
|
}
|
|
3142
3107
|
|
|
3143
3108
|
export const DeleteSubscriptionResponse =
|
|
3144
|
-
/*@__PURE__*/
|
|
3109
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
3145
3110
|
Schema.Struct({
|
|
3146
3111
|
subscriptionId: Schema.optional(
|
|
3147
3112
|
Schema.Union([Schema.String, Schema.Null]),
|
|
@@ -3161,7 +3126,7 @@ export const deleteSubscription: API.OperationMethod<
|
|
|
3161
3126
|
DeleteSubscriptionResponse,
|
|
3162
3127
|
DeleteSubscriptionError,
|
|
3163
3128
|
Credentials | HttpClient.HttpClient
|
|
3164
|
-
> = /*@__PURE__*/
|
|
3129
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3165
3130
|
input: DeleteSubscriptionRequest,
|
|
3166
3131
|
output: DeleteSubscriptionResponse,
|
|
3167
3132
|
errors: [InvalidRoute, EndpointNotFound],
|
|
@@ -3177,7 +3142,7 @@ export interface GetTokenRequest {
|
|
|
3177
3142
|
accountId: string;
|
|
3178
3143
|
}
|
|
3179
3144
|
|
|
3180
|
-
export const GetTokenRequest = /*@__PURE__*/
|
|
3145
|
+
export const GetTokenRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
3181
3146
|
Schema.Struct({
|
|
3182
3147
|
tokenId: Schema.String.pipe(T.HttpPath("tokenId")),
|
|
3183
3148
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -3221,7 +3186,7 @@ export interface GetTokenResponse {
|
|
|
3221
3186
|
status?: "active" | "disabled" | "expired" | (string & {}) | null;
|
|
3222
3187
|
}
|
|
3223
3188
|
|
|
3224
|
-
export const GetTokenResponse = /*@__PURE__*/
|
|
3189
|
+
export const GetTokenResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
3225
3190
|
Schema.Struct({
|
|
3226
3191
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3227
3192
|
condition: Schema.optional(Schema.Union([Condition, Schema.Null])),
|
|
@@ -3268,7 +3233,7 @@ export const getToken: API.OperationMethod<
|
|
|
3268
3233
|
GetTokenResponse,
|
|
3269
3234
|
GetTokenError,
|
|
3270
3235
|
Credentials | HttpClient.HttpClient
|
|
3271
|
-
> = /*@__PURE__*/
|
|
3236
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3272
3237
|
input: GetTokenRequest,
|
|
3273
3238
|
output: GetTokenResponse,
|
|
3274
3239
|
errors: [InvalidRoute, TokenNotFound],
|
|
@@ -3283,16 +3248,15 @@ export interface ListTokensRequest {
|
|
|
3283
3248
|
direction?: "asc" | "desc" | (string & {});
|
|
3284
3249
|
}
|
|
3285
3250
|
|
|
3286
|
-
export const ListTokensRequest = /*@__PURE__*/
|
|
3287
|
-
(
|
|
3288
|
-
Schema.
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/tokens" })),
|
|
3251
|
+
export const ListTokensRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
3252
|
+
Schema.Struct({
|
|
3253
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3254
|
+
page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
|
|
3255
|
+
perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
|
|
3256
|
+
direction: Schema.optional(
|
|
3257
|
+
Schema.Union([Schema.Literals(["asc", "desc"]), Schema.String]),
|
|
3258
|
+
).pipe(T.HttpQuery("direction")),
|
|
3259
|
+
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/tokens" })),
|
|
3296
3260
|
) as unknown as Schema.Codec<ListTokensRequest>;
|
|
3297
3261
|
|
|
3298
3262
|
export interface ListTokensResponse {
|
|
@@ -3329,14 +3293,13 @@ export interface ListTokensResponse {
|
|
|
3329
3293
|
} | null;
|
|
3330
3294
|
}
|
|
3331
3295
|
|
|
3332
|
-
export const ListTokensResponse = /*@__PURE__*/
|
|
3333
|
-
(
|
|
3334
|
-
Schema.
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
|
|
3296
|
+
export const ListTokensResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
3297
|
+
Schema.Struct({
|
|
3298
|
+
result: Schema.Array(Token),
|
|
3299
|
+
resultInfo: Schema.optional(
|
|
3300
|
+
Schema.Union([ListAccountsResponseResultInfo, Schema.Null]),
|
|
3301
|
+
),
|
|
3302
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
|
|
3340
3303
|
) as unknown as Schema.Codec<ListTokensResponse>;
|
|
3341
3304
|
|
|
3342
3305
|
export type ListTokensError = DefaultErrors;
|
|
@@ -3346,7 +3309,7 @@ export const listTokens: API.PaginatedOperationMethod<
|
|
|
3346
3309
|
ListTokensResponse,
|
|
3347
3310
|
ListTokensError,
|
|
3348
3311
|
Credentials | HttpClient.HttpClient
|
|
3349
|
-
> = /*@__PURE__*/
|
|
3312
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
3350
3313
|
input: ListTokensRequest,
|
|
3351
3314
|
output: ListTokensResponse,
|
|
3352
3315
|
errors: [],
|
|
@@ -3378,25 +3341,24 @@ export interface CreateTokenRequest {
|
|
|
3378
3341
|
notBefore?: string;
|
|
3379
3342
|
}
|
|
3380
3343
|
|
|
3381
|
-
export const CreateTokenRequest = /*@__PURE__*/
|
|
3382
|
-
(
|
|
3383
|
-
Schema.
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
),
|
|
3344
|
+
export const CreateTokenRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
3345
|
+
Schema.Struct({
|
|
3346
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3347
|
+
name: Schema.String,
|
|
3348
|
+
policies: Schema.Array(TokenPolicyParam),
|
|
3349
|
+
condition: Schema.optional(Condition),
|
|
3350
|
+
expiresOn: Schema.optional(Schema.String),
|
|
3351
|
+
notBefore: Schema.optional(Schema.String),
|
|
3352
|
+
}).pipe(
|
|
3353
|
+
Schema.encodeKeys({
|
|
3354
|
+
name: "name",
|
|
3355
|
+
policies: "policies",
|
|
3356
|
+
condition: "condition",
|
|
3357
|
+
expiresOn: "expires_on",
|
|
3358
|
+
notBefore: "not_before",
|
|
3359
|
+
}),
|
|
3360
|
+
T.Http({ method: "POST", path: "/accounts/{account_id}/tokens" }),
|
|
3361
|
+
),
|
|
3400
3362
|
) as unknown as Schema.Codec<CreateTokenRequest>;
|
|
3401
3363
|
|
|
3402
3364
|
export interface CreateTokenResponse {
|
|
@@ -3436,47 +3398,46 @@ export interface CreateTokenResponse {
|
|
|
3436
3398
|
value?: string | null;
|
|
3437
3399
|
}
|
|
3438
3400
|
|
|
3439
|
-
export const CreateTokenResponse = /*@__PURE__*/
|
|
3440
|
-
(
|
|
3441
|
-
Schema.
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3401
|
+
export const CreateTokenResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
3402
|
+
Schema.Struct({
|
|
3403
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3404
|
+
condition: Schema.optional(Schema.Union([Condition, Schema.Null])),
|
|
3405
|
+
expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3406
|
+
issuedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3407
|
+
lastUsedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3408
|
+
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3409
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3410
|
+
notBefore: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3411
|
+
policies: Schema.optional(
|
|
3412
|
+
Schema.Union([Schema.Array(TokenPolicy), Schema.Null]),
|
|
3413
|
+
),
|
|
3414
|
+
status: Schema.optional(
|
|
3415
|
+
Schema.Union([
|
|
3454
3416
|
Schema.Union([
|
|
3455
|
-
Schema.
|
|
3456
|
-
|
|
3457
|
-
Schema.String,
|
|
3458
|
-
]),
|
|
3459
|
-
Schema.Null,
|
|
3417
|
+
Schema.Literals(["active", "disabled", "expired"]),
|
|
3418
|
+
Schema.String,
|
|
3460
3419
|
]),
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3420
|
+
Schema.Null,
|
|
3421
|
+
]),
|
|
3422
|
+
),
|
|
3423
|
+
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3424
|
+
})
|
|
3425
|
+
.pipe(
|
|
3426
|
+
Schema.encodeKeys({
|
|
3427
|
+
id: "id",
|
|
3428
|
+
condition: "condition",
|
|
3429
|
+
expiresOn: "expires_on",
|
|
3430
|
+
issuedOn: "issued_on",
|
|
3431
|
+
lastUsedOn: "last_used_on",
|
|
3432
|
+
modifiedOn: "modified_on",
|
|
3433
|
+
name: "name",
|
|
3434
|
+
notBefore: "not_before",
|
|
3435
|
+
policies: "policies",
|
|
3436
|
+
status: "status",
|
|
3437
|
+
value: "value",
|
|
3438
|
+
}),
|
|
3439
|
+
)
|
|
3440
|
+
.pipe(T.ResponsePath("result")),
|
|
3480
3441
|
) as unknown as Schema.Codec<CreateTokenResponse>;
|
|
3481
3442
|
|
|
3482
3443
|
export type CreateTokenError =
|
|
@@ -3490,7 +3451,7 @@ export const createToken: API.OperationMethod<
|
|
|
3490
3451
|
CreateTokenResponse,
|
|
3491
3452
|
CreateTokenError,
|
|
3492
3453
|
Credentials | HttpClient.HttpClient
|
|
3493
|
-
> = /*@__PURE__*/
|
|
3454
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3494
3455
|
input: CreateTokenRequest,
|
|
3495
3456
|
output: CreateTokenResponse,
|
|
3496
3457
|
errors: [InvalidRoute, InvalidTokenName, PermissionGroupNotFound],
|
|
@@ -3518,36 +3479,35 @@ export interface UpdateTokenRequest {
|
|
|
3518
3479
|
status?: "active" | "disabled" | "expired" | (string & {});
|
|
3519
3480
|
}
|
|
3520
3481
|
|
|
3521
|
-
export const UpdateTokenRequest = /*@__PURE__*/
|
|
3522
|
-
(
|
|
3523
|
-
Schema.
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
Schema.
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
]),
|
|
3536
|
-
),
|
|
3537
|
-
}).pipe(
|
|
3538
|
-
Schema.encodeKeys({
|
|
3539
|
-
name: "name",
|
|
3540
|
-
policies: "policies",
|
|
3541
|
-
condition: "condition",
|
|
3542
|
-
expiresOn: "expires_on",
|
|
3543
|
-
notBefore: "not_before",
|
|
3544
|
-
status: "status",
|
|
3545
|
-
}),
|
|
3546
|
-
T.Http({
|
|
3547
|
-
method: "PUT",
|
|
3548
|
-
path: "/accounts/{account_id}/tokens/{tokenId}",
|
|
3549
|
-
}),
|
|
3482
|
+
export const UpdateTokenRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
3483
|
+
Schema.Struct({
|
|
3484
|
+
tokenId: Schema.String.pipe(T.HttpPath("tokenId")),
|
|
3485
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3486
|
+
name: Schema.String,
|
|
3487
|
+
policies: Schema.Array(TokenPolicyParam),
|
|
3488
|
+
condition: Schema.optional(Condition),
|
|
3489
|
+
expiresOn: Schema.optional(Schema.String),
|
|
3490
|
+
notBefore: Schema.optional(Schema.String),
|
|
3491
|
+
status: Schema.optional(
|
|
3492
|
+
Schema.Union([
|
|
3493
|
+
Schema.Literals(["active", "disabled", "expired"]),
|
|
3494
|
+
Schema.String,
|
|
3495
|
+
]),
|
|
3550
3496
|
),
|
|
3497
|
+
}).pipe(
|
|
3498
|
+
Schema.encodeKeys({
|
|
3499
|
+
name: "name",
|
|
3500
|
+
policies: "policies",
|
|
3501
|
+
condition: "condition",
|
|
3502
|
+
expiresOn: "expires_on",
|
|
3503
|
+
notBefore: "not_before",
|
|
3504
|
+
status: "status",
|
|
3505
|
+
}),
|
|
3506
|
+
T.Http({
|
|
3507
|
+
method: "PUT",
|
|
3508
|
+
path: "/accounts/{account_id}/tokens/{tokenId}",
|
|
3509
|
+
}),
|
|
3510
|
+
),
|
|
3551
3511
|
) as unknown as Schema.Codec<UpdateTokenRequest>;
|
|
3552
3512
|
|
|
3553
3513
|
export interface UpdateTokenResponse {
|
|
@@ -3585,45 +3545,44 @@ export interface UpdateTokenResponse {
|
|
|
3585
3545
|
status?: "active" | "disabled" | "expired" | (string & {}) | null;
|
|
3586
3546
|
}
|
|
3587
3547
|
|
|
3588
|
-
export const UpdateTokenResponse = /*@__PURE__*/
|
|
3589
|
-
(
|
|
3590
|
-
Schema.
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3548
|
+
export const UpdateTokenResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
3549
|
+
Schema.Struct({
|
|
3550
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3551
|
+
condition: Schema.optional(Schema.Union([Condition, Schema.Null])),
|
|
3552
|
+
expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3553
|
+
issuedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3554
|
+
lastUsedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3555
|
+
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3556
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3557
|
+
notBefore: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3558
|
+
policies: Schema.optional(
|
|
3559
|
+
Schema.Union([Schema.Array(TokenPolicy), Schema.Null]),
|
|
3560
|
+
),
|
|
3561
|
+
status: Schema.optional(
|
|
3562
|
+
Schema.Union([
|
|
3603
3563
|
Schema.Union([
|
|
3604
|
-
Schema.
|
|
3605
|
-
|
|
3606
|
-
Schema.String,
|
|
3607
|
-
]),
|
|
3608
|
-
Schema.Null,
|
|
3564
|
+
Schema.Literals(["active", "disabled", "expired"]),
|
|
3565
|
+
Schema.String,
|
|
3609
3566
|
]),
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3567
|
+
Schema.Null,
|
|
3568
|
+
]),
|
|
3569
|
+
),
|
|
3570
|
+
})
|
|
3571
|
+
.pipe(
|
|
3572
|
+
Schema.encodeKeys({
|
|
3573
|
+
id: "id",
|
|
3574
|
+
condition: "condition",
|
|
3575
|
+
expiresOn: "expires_on",
|
|
3576
|
+
issuedOn: "issued_on",
|
|
3577
|
+
lastUsedOn: "last_used_on",
|
|
3578
|
+
modifiedOn: "modified_on",
|
|
3579
|
+
name: "name",
|
|
3580
|
+
notBefore: "not_before",
|
|
3581
|
+
policies: "policies",
|
|
3582
|
+
status: "status",
|
|
3583
|
+
}),
|
|
3584
|
+
)
|
|
3585
|
+
.pipe(T.ResponsePath("result")),
|
|
3627
3586
|
) as unknown as Schema.Codec<UpdateTokenResponse>;
|
|
3628
3587
|
|
|
3629
3588
|
export type UpdateTokenError =
|
|
@@ -3638,7 +3597,7 @@ export const updateToken: API.OperationMethod<
|
|
|
3638
3597
|
UpdateTokenResponse,
|
|
3639
3598
|
UpdateTokenError,
|
|
3640
3599
|
Credentials | HttpClient.HttpClient
|
|
3641
|
-
> = /*@__PURE__*/
|
|
3600
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3642
3601
|
input: UpdateTokenRequest,
|
|
3643
3602
|
output: UpdateTokenResponse,
|
|
3644
3603
|
errors: [
|
|
@@ -3655,17 +3614,16 @@ export interface DeleteTokenRequest {
|
|
|
3655
3614
|
accountId: string;
|
|
3656
3615
|
}
|
|
3657
3616
|
|
|
3658
|
-
export const DeleteTokenRequest = /*@__PURE__*/
|
|
3659
|
-
(
|
|
3660
|
-
Schema.
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
),
|
|
3617
|
+
export const DeleteTokenRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
3618
|
+
Schema.Struct({
|
|
3619
|
+
tokenId: Schema.String.pipe(T.HttpPath("tokenId")),
|
|
3620
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3621
|
+
}).pipe(
|
|
3622
|
+
T.Http({
|
|
3623
|
+
method: "DELETE",
|
|
3624
|
+
path: "/accounts/{account_id}/tokens/{tokenId}",
|
|
3625
|
+
}),
|
|
3626
|
+
),
|
|
3669
3627
|
) as unknown as Schema.Codec<DeleteTokenRequest>;
|
|
3670
3628
|
|
|
3671
3629
|
export interface DeleteTokenResponse {
|
|
@@ -3673,11 +3631,10 @@ export interface DeleteTokenResponse {
|
|
|
3673
3631
|
id: string;
|
|
3674
3632
|
}
|
|
3675
3633
|
|
|
3676
|
-
export const DeleteTokenResponse = /*@__PURE__*/
|
|
3677
|
-
(
|
|
3678
|
-
Schema.
|
|
3679
|
-
|
|
3680
|
-
}).pipe(T.ResponsePath("result")),
|
|
3634
|
+
export const DeleteTokenResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
3635
|
+
Schema.Struct({
|
|
3636
|
+
id: Schema.String,
|
|
3637
|
+
}).pipe(T.ResponsePath("result")),
|
|
3681
3638
|
) as unknown as Schema.Codec<DeleteTokenResponse>;
|
|
3682
3639
|
|
|
3683
3640
|
export type DeleteTokenError =
|
|
@@ -3692,7 +3649,7 @@ export const deleteToken: API.OperationMethod<
|
|
|
3692
3649
|
DeleteTokenResponse,
|
|
3693
3650
|
DeleteTokenError,
|
|
3694
3651
|
Credentials | HttpClient.HttpClient
|
|
3695
|
-
> = /*@__PURE__*/
|
|
3652
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3696
3653
|
input: DeleteTokenRequest,
|
|
3697
3654
|
output: DeleteTokenResponse,
|
|
3698
3655
|
errors: [
|
|
@@ -3708,13 +3665,12 @@ export interface VerifyTokenRequest {
|
|
|
3708
3665
|
accountId: string;
|
|
3709
3666
|
}
|
|
3710
3667
|
|
|
3711
|
-
export const VerifyTokenRequest = /*@__PURE__*/
|
|
3712
|
-
(
|
|
3713
|
-
Schema.
|
|
3714
|
-
|
|
3715
|
-
})
|
|
3716
|
-
|
|
3717
|
-
),
|
|
3668
|
+
export const VerifyTokenRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
3669
|
+
Schema.Struct({
|
|
3670
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3671
|
+
}).pipe(
|
|
3672
|
+
T.Http({ method: "GET", path: "/accounts/{account_id}/tokens/verify" }),
|
|
3673
|
+
),
|
|
3718
3674
|
) as unknown as Schema.Codec<VerifyTokenRequest>;
|
|
3719
3675
|
|
|
3720
3676
|
export interface VerifyTokenResponse {
|
|
@@ -3728,26 +3684,25 @@ export interface VerifyTokenResponse {
|
|
|
3728
3684
|
notBefore?: string | null;
|
|
3729
3685
|
}
|
|
3730
3686
|
|
|
3731
|
-
export const VerifyTokenResponse = /*@__PURE__*/
|
|
3732
|
-
(
|
|
3733
|
-
Schema.
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
.
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
.pipe(T.ResponsePath("result")),
|
|
3687
|
+
export const VerifyTokenResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
3688
|
+
Schema.Struct({
|
|
3689
|
+
id: Schema.String,
|
|
3690
|
+
status: Schema.Union([
|
|
3691
|
+
Schema.Literals(["active", "disabled", "expired"]),
|
|
3692
|
+
Schema.String,
|
|
3693
|
+
]),
|
|
3694
|
+
expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3695
|
+
notBefore: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3696
|
+
})
|
|
3697
|
+
.pipe(
|
|
3698
|
+
Schema.encodeKeys({
|
|
3699
|
+
id: "id",
|
|
3700
|
+
status: "status",
|
|
3701
|
+
expiresOn: "expires_on",
|
|
3702
|
+
notBefore: "not_before",
|
|
3703
|
+
}),
|
|
3704
|
+
)
|
|
3705
|
+
.pipe(T.ResponsePath("result")),
|
|
3751
3706
|
) as unknown as Schema.Codec<VerifyTokenResponse>;
|
|
3752
3707
|
|
|
3753
3708
|
export type VerifyTokenError =
|
|
@@ -3760,7 +3715,7 @@ export const verifyToken: API.OperationMethod<
|
|
|
3760
3715
|
VerifyTokenResponse,
|
|
3761
3716
|
VerifyTokenError,
|
|
3762
3717
|
Credentials | HttpClient.HttpClient
|
|
3763
|
-
> = /*@__PURE__*/
|
|
3718
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3764
3719
|
input: VerifyTokenRequest,
|
|
3765
3720
|
output: VerifyTokenResponse,
|
|
3766
3721
|
errors: [MissingAuthenticationToken, InvalidRoute],
|
|
@@ -3780,7 +3735,7 @@ export interface GetTokenPermissionGroupRequest {
|
|
|
3780
3735
|
}
|
|
3781
3736
|
|
|
3782
3737
|
export const GetTokenPermissionGroupRequest =
|
|
3783
|
-
/*@__PURE__*/
|
|
3738
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
3784
3739
|
Schema.Struct({
|
|
3785
3740
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3786
3741
|
name: Schema.optional(Schema.String).pipe(T.HttpQuery("name")),
|
|
@@ -3824,7 +3779,7 @@ export type GetTokenPermissionGroupResponse = {
|
|
|
3824
3779
|
}[];
|
|
3825
3780
|
|
|
3826
3781
|
export const GetTokenPermissionGroupResponse =
|
|
3827
|
-
/*@__PURE__*/
|
|
3782
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
3828
3783
|
Schema.Array(PermissionGroupGetResponseItem).pipe(T.ResponsePath("result")),
|
|
3829
3784
|
) as unknown as Schema.Codec<GetTokenPermissionGroupResponse>;
|
|
3830
3785
|
|
|
@@ -3835,7 +3790,7 @@ export const getTokenPermissionGroup: API.OperationMethod<
|
|
|
3835
3790
|
GetTokenPermissionGroupResponse,
|
|
3836
3791
|
GetTokenPermissionGroupError,
|
|
3837
3792
|
Credentials | HttpClient.HttpClient
|
|
3838
|
-
> = /*@__PURE__*/
|
|
3793
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3839
3794
|
input: GetTokenPermissionGroupRequest,
|
|
3840
3795
|
output: GetTokenPermissionGroupResponse,
|
|
3841
3796
|
errors: [InvalidRoute],
|
|
@@ -3851,7 +3806,7 @@ export interface ListTokenPermissionGroupsRequest {
|
|
|
3851
3806
|
}
|
|
3852
3807
|
|
|
3853
3808
|
export const ListTokenPermissionGroupsRequest =
|
|
3854
|
-
/*@__PURE__*/
|
|
3809
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
3855
3810
|
Schema.Struct({
|
|
3856
3811
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3857
3812
|
name: Schema.optional(Schema.String).pipe(T.HttpQuery("name")),
|
|
@@ -3897,7 +3852,7 @@ export interface ListTokenPermissionGroupsResponse {
|
|
|
3897
3852
|
}
|
|
3898
3853
|
|
|
3899
3854
|
export const ListTokenPermissionGroupsResponse =
|
|
3900
|
-
/*@__PURE__*/
|
|
3855
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
3901
3856
|
Schema.Struct({
|
|
3902
3857
|
result: Schema.Array(PermissionGroupGetResponseItem),
|
|
3903
3858
|
}),
|
|
@@ -3910,7 +3865,7 @@ export const listTokenPermissionGroups: API.PaginatedOperationMethod<
|
|
|
3910
3865
|
ListTokenPermissionGroupsResponse,
|
|
3911
3866
|
ListTokenPermissionGroupsError,
|
|
3912
3867
|
Credentials | HttpClient.HttpClient
|
|
3913
|
-
> = /*@__PURE__*/
|
|
3868
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
3914
3869
|
input: ListTokenPermissionGroupsRequest,
|
|
3915
3870
|
output: ListTokenPermissionGroupsResponse,
|
|
3916
3871
|
errors: [],
|
|
@@ -3932,24 +3887,23 @@ export interface PutTokenValueRequest {
|
|
|
3932
3887
|
body: unknown;
|
|
3933
3888
|
}
|
|
3934
3889
|
|
|
3935
|
-
export const PutTokenValueRequest = /*@__PURE__*/
|
|
3936
|
-
(
|
|
3937
|
-
Schema.
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
),
|
|
3890
|
+
export const PutTokenValueRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
3891
|
+
Schema.Struct({
|
|
3892
|
+
tokenId: Schema.String.pipe(T.HttpPath("tokenId")),
|
|
3893
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3894
|
+
body: Schema.Unknown.pipe(T.HttpBody()),
|
|
3895
|
+
}).pipe(
|
|
3896
|
+
T.Http({
|
|
3897
|
+
method: "PUT",
|
|
3898
|
+
path: "/accounts/{account_id}/tokens/{tokenId}/value",
|
|
3899
|
+
}),
|
|
3900
|
+
),
|
|
3947
3901
|
) as unknown as Schema.Codec<PutTokenValueRequest>;
|
|
3948
3902
|
|
|
3949
3903
|
export type PutTokenValueResponse = string;
|
|
3950
3904
|
|
|
3951
|
-
export const PutTokenValueResponse = /*@__PURE__*/
|
|
3952
|
-
|
|
3905
|
+
export const PutTokenValueResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
3906
|
+
Schema.String.pipe(T.ResponsePath("result")),
|
|
3953
3907
|
) as unknown as Schema.Codec<PutTokenValueResponse>;
|
|
3954
3908
|
|
|
3955
3909
|
export type PutTokenValueError = DefaultErrors | InvalidRoute | TokenNotFound;
|
|
@@ -3959,7 +3913,7 @@ export const putTokenValue: API.OperationMethod<
|
|
|
3959
3913
|
PutTokenValueResponse,
|
|
3960
3914
|
PutTokenValueError,
|
|
3961
3915
|
Credentials | HttpClient.HttpClient
|
|
3962
|
-
> = /*@__PURE__*/
|
|
3916
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3963
3917
|
input: PutTokenValueRequest,
|
|
3964
3918
|
output: PutTokenValueResponse,
|
|
3965
3919
|
errors: [InvalidRoute, TokenNotFound],
|