@distilled.cloud/cloudflare 0.28.2 → 0.29.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/client/api.d.ts +1 -1
- package/lib/client/api.d.ts.map +1 -1
- package/lib/credentials.d.ts.map +1 -1
- package/lib/retry.d.ts.map +1 -1
- 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/lib/traits.d.ts.map +1 -1
- package/package.json +10 -9
- 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/user.ts
CHANGED
|
@@ -74,7 +74,7 @@ interface Action {
|
|
|
74
74
|
/** A short string that describes the action that was performed. */
|
|
75
75
|
type?: string | null;
|
|
76
76
|
}
|
|
77
|
-
const Action = /*@__PURE__*/
|
|
77
|
+
const Action = /*@__PURE__*/ Schema.suspend(() =>
|
|
78
78
|
Schema.Struct({
|
|
79
79
|
result: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
80
80
|
type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -91,7 +91,7 @@ interface Actor {
|
|
|
91
91
|
/** The type of actor, whether a User, Cloudflare Admin, or an Automated System. */
|
|
92
92
|
type?: "user" | "admin" | "Cloudflare" | (string & {}) | null;
|
|
93
93
|
}
|
|
94
|
-
const Actor = /*@__PURE__*/
|
|
94
|
+
const Actor = /*@__PURE__*/ Schema.suspend(() =>
|
|
95
95
|
Schema.Struct({
|
|
96
96
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
97
97
|
email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -112,7 +112,7 @@ interface Owner {
|
|
|
112
112
|
/** Identifier */
|
|
113
113
|
id?: string | null;
|
|
114
114
|
}
|
|
115
|
-
const Owner = /*@__PURE__*/
|
|
115
|
+
const Owner = /*@__PURE__*/ Schema.suspend(() =>
|
|
116
116
|
Schema.Struct({
|
|
117
117
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
118
118
|
}),
|
|
@@ -124,7 +124,7 @@ interface Resource {
|
|
|
124
124
|
/** A short string that describes the resource that was affected by the action. */
|
|
125
125
|
type?: string | null;
|
|
126
126
|
}
|
|
127
|
-
const Resource = /*@__PURE__*/
|
|
127
|
+
const Resource = /*@__PURE__*/ Schema.suspend(() =>
|
|
128
128
|
Schema.Struct({
|
|
129
129
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
130
130
|
type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -154,7 +154,7 @@ interface AuditLog {
|
|
|
154
154
|
/** A UTC RFC3339 timestamp that specifies when the action being logged occured. */
|
|
155
155
|
when?: string | null;
|
|
156
156
|
}
|
|
157
|
-
const AuditLog = /*@__PURE__*/
|
|
157
|
+
const AuditLog = /*@__PURE__*/ Schema.suspend(() =>
|
|
158
158
|
Schema.Struct({
|
|
159
159
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
160
160
|
action: Schema.optional(Schema.Union([Action, Schema.Null])),
|
|
@@ -176,7 +176,7 @@ interface ListAuditLogsResponseResultInfo {
|
|
|
176
176
|
totalCount?: number | null;
|
|
177
177
|
}
|
|
178
178
|
const ListAuditLogsResponseResultInfo =
|
|
179
|
-
/*@__PURE__*/
|
|
179
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
180
180
|
Schema.Struct({
|
|
181
181
|
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
182
182
|
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
@@ -195,7 +195,7 @@ const ListAuditLogsResponseResultInfo =
|
|
|
195
195
|
interface Zone {
|
|
196
196
|
name?: string | null;
|
|
197
197
|
}
|
|
198
|
-
const Zone = /*@__PURE__*/
|
|
198
|
+
const Zone = /*@__PURE__*/ Schema.suspend(() =>
|
|
199
199
|
Schema.Struct({
|
|
200
200
|
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
201
201
|
}),
|
|
@@ -219,7 +219,7 @@ interface ListBillingHistoriesResponseResult {
|
|
|
219
219
|
zone: { name?: string | null };
|
|
220
220
|
}
|
|
221
221
|
const ListBillingHistoriesResponseResult =
|
|
222
|
-
/*@__PURE__*/
|
|
222
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
223
223
|
Schema.Struct({
|
|
224
224
|
id: Schema.String,
|
|
225
225
|
action: Schema.String,
|
|
@@ -272,51 +272,50 @@ interface ListInvitesResponseResult {
|
|
|
272
272
|
| (string & {})
|
|
273
273
|
| null;
|
|
274
274
|
}
|
|
275
|
-
const ListInvitesResponseResult = /*@__PURE__*/
|
|
276
|
-
(
|
|
277
|
-
Schema.
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
275
|
+
const ListInvitesResponseResult = /*@__PURE__*/ Schema.suspend(() =>
|
|
276
|
+
Schema.Struct({
|
|
277
|
+
invitedMemberId: Schema.Union([Schema.String, Schema.Null]),
|
|
278
|
+
organizationId: Schema.String,
|
|
279
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
280
|
+
expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
281
|
+
invitedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
282
|
+
invitedMemberEmail: Schema.optional(
|
|
283
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
284
|
+
),
|
|
285
|
+
invitedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
286
|
+
organizationIsEnforcingTwofactor: Schema.optional(
|
|
287
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
288
|
+
),
|
|
289
|
+
organizationName: Schema.optional(
|
|
290
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
291
|
+
),
|
|
292
|
+
roles: Schema.optional(
|
|
293
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
294
|
+
),
|
|
295
|
+
status: Schema.optional(
|
|
296
|
+
Schema.Union([
|
|
297
297
|
Schema.Union([
|
|
298
|
-
Schema.
|
|
299
|
-
|
|
300
|
-
Schema.String,
|
|
301
|
-
]),
|
|
302
|
-
Schema.Null,
|
|
298
|
+
Schema.Literals(["pending", "accepted", "rejected", "expired"]),
|
|
299
|
+
Schema.String,
|
|
303
300
|
]),
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
Schema.encodeKeys({
|
|
307
|
-
invitedMemberId: "invited_member_id",
|
|
308
|
-
organizationId: "organization_id",
|
|
309
|
-
id: "id",
|
|
310
|
-
expiresOn: "expires_on",
|
|
311
|
-
invitedBy: "invited_by",
|
|
312
|
-
invitedMemberEmail: "invited_member_email",
|
|
313
|
-
invitedOn: "invited_on",
|
|
314
|
-
organizationIsEnforcingTwofactor: "organization_is_enforcing_twofactor",
|
|
315
|
-
organizationName: "organization_name",
|
|
316
|
-
roles: "roles",
|
|
317
|
-
status: "status",
|
|
318
|
-
}),
|
|
301
|
+
Schema.Null,
|
|
302
|
+
]),
|
|
319
303
|
),
|
|
304
|
+
}).pipe(
|
|
305
|
+
Schema.encodeKeys({
|
|
306
|
+
invitedMemberId: "invited_member_id",
|
|
307
|
+
organizationId: "organization_id",
|
|
308
|
+
id: "id",
|
|
309
|
+
expiresOn: "expires_on",
|
|
310
|
+
invitedBy: "invited_by",
|
|
311
|
+
invitedMemberEmail: "invited_member_email",
|
|
312
|
+
invitedOn: "invited_on",
|
|
313
|
+
organizationIsEnforcingTwofactor: "organization_is_enforcing_twofactor",
|
|
314
|
+
organizationName: "organization_name",
|
|
315
|
+
roles: "roles",
|
|
316
|
+
status: "status",
|
|
317
|
+
}),
|
|
318
|
+
),
|
|
320
319
|
) as unknown as Schema.Codec<ListInvitesResponseResult>;
|
|
321
320
|
|
|
322
321
|
interface ListOrganizationsResponseResult {
|
|
@@ -332,7 +331,7 @@ interface ListOrganizationsResponseResult {
|
|
|
332
331
|
status?: "member" | "invited" | (string & {}) | null;
|
|
333
332
|
}
|
|
334
333
|
const ListOrganizationsResponseResult =
|
|
335
|
-
/*@__PURE__*/
|
|
334
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
336
335
|
Schema.Struct({
|
|
337
336
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
338
337
|
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -379,7 +378,7 @@ interface RatePlan {
|
|
|
379
378
|
/** The list of sets this rate plan applies to. Returns array of strings. */
|
|
380
379
|
sets?: string[] | null;
|
|
381
380
|
}
|
|
382
|
-
const RatePlan = /*@__PURE__*/
|
|
381
|
+
const RatePlan = /*@__PURE__*/ Schema.suspend(() =>
|
|
383
382
|
Schema.Struct({
|
|
384
383
|
id: Schema.optional(
|
|
385
384
|
Schema.Union([
|
|
@@ -477,7 +476,7 @@ interface Subscription {
|
|
|
477
476
|
| (string & {})
|
|
478
477
|
| null;
|
|
479
478
|
}
|
|
480
|
-
const Subscription = /*@__PURE__*/
|
|
479
|
+
const Subscription = /*@__PURE__*/ Schema.suspend(() =>
|
|
481
480
|
Schema.Struct({
|
|
482
481
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
483
482
|
currency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -536,7 +535,7 @@ interface Flags {
|
|
|
536
535
|
accountMobility: string;
|
|
537
536
|
subOrgCreation: string;
|
|
538
537
|
}
|
|
539
|
-
const Flags = /*@__PURE__*/
|
|
538
|
+
const Flags = /*@__PURE__*/ Schema.suspend(() =>
|
|
540
539
|
Schema.Struct({
|
|
541
540
|
accountCreation: Schema.String,
|
|
542
541
|
accountDeletion: Schema.String,
|
|
@@ -567,7 +566,7 @@ interface Meta {
|
|
|
567
566
|
hierarchyTags?: string[] | null;
|
|
568
567
|
managedBy?: string | null;
|
|
569
568
|
}
|
|
570
|
-
const Meta = /*@__PURE__*/
|
|
569
|
+
const Meta = /*@__PURE__*/ Schema.suspend(() =>
|
|
571
570
|
Schema.Struct({
|
|
572
571
|
flags: Schema.optional(Schema.Union([Flags, Schema.Null])),
|
|
573
572
|
hierarchyTags: Schema.optional(
|
|
@@ -587,7 +586,7 @@ interface Parent {
|
|
|
587
586
|
id: string;
|
|
588
587
|
name: string;
|
|
589
588
|
}
|
|
590
|
-
const Parent = /*@__PURE__*/
|
|
589
|
+
const Parent = /*@__PURE__*/ Schema.suspend(() =>
|
|
591
590
|
Schema.Struct({
|
|
592
591
|
id: Schema.String,
|
|
593
592
|
name: Schema.String,
|
|
@@ -601,7 +600,7 @@ interface OrganizationProfile {
|
|
|
601
600
|
businessPhone: string;
|
|
602
601
|
externalMetadata: string;
|
|
603
602
|
}
|
|
604
|
-
const OrganizationProfile = /*@__PURE__*/
|
|
603
|
+
const OrganizationProfile = /*@__PURE__*/ Schema.suspend(() =>
|
|
605
604
|
Schema.Struct({
|
|
606
605
|
businessAddress: Schema.String,
|
|
607
606
|
businessEmail: Schema.String,
|
|
@@ -643,7 +642,7 @@ interface Organization {
|
|
|
643
642
|
externalMetadata: string;
|
|
644
643
|
} | null;
|
|
645
644
|
}
|
|
646
|
-
const Organization = /*@__PURE__*/
|
|
645
|
+
const Organization = /*@__PURE__*/ Schema.suspend(() =>
|
|
647
646
|
Schema.Struct({
|
|
648
647
|
id: Schema.String,
|
|
649
648
|
createTime: Schema.String,
|
|
@@ -669,7 +668,7 @@ interface ConditionRequestIP {
|
|
|
669
668
|
/** List of IPv4/IPv6 CIDR addresses. */
|
|
670
669
|
notIn?: string[] | null;
|
|
671
670
|
}
|
|
672
|
-
const ConditionRequestIP = /*@__PURE__*/
|
|
671
|
+
const ConditionRequestIP = /*@__PURE__*/ Schema.suspend(() =>
|
|
673
672
|
Schema.Struct({
|
|
674
673
|
in: Schema.optional(
|
|
675
674
|
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
@@ -684,7 +683,7 @@ interface Condition {
|
|
|
684
683
|
/** Client IP restrictions. */
|
|
685
684
|
requestIp?: { in?: string[] | null; notIn?: string[] | null } | null;
|
|
686
685
|
}
|
|
687
|
-
const Condition = /*@__PURE__*/
|
|
686
|
+
const Condition = /*@__PURE__*/ Schema.suspend(() =>
|
|
688
687
|
Schema.Struct({
|
|
689
688
|
requestIp: Schema.optional(Schema.Union([ConditionRequestIP, Schema.Null])),
|
|
690
689
|
}).pipe(Schema.encodeKeys({ requestIp: "request_ip" })),
|
|
@@ -694,7 +693,7 @@ interface Meta2 {
|
|
|
694
693
|
key?: string | null;
|
|
695
694
|
value?: string | null;
|
|
696
695
|
}
|
|
697
|
-
const Meta2 = /*@__PURE__*/
|
|
696
|
+
const Meta2 = /*@__PURE__*/ Schema.suspend(() =>
|
|
698
697
|
Schema.Struct({
|
|
699
698
|
key: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
700
699
|
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -709,7 +708,7 @@ interface PermissionGroup {
|
|
|
709
708
|
/** Name of the permission group. */
|
|
710
709
|
name?: string | null;
|
|
711
710
|
}
|
|
712
|
-
const PermissionGroup = /*@__PURE__*/
|
|
711
|
+
const PermissionGroup = /*@__PURE__*/ Schema.suspend(() =>
|
|
713
712
|
Schema.Struct({
|
|
714
713
|
id: Schema.String,
|
|
715
714
|
meta: Schema.optional(Schema.Union([Meta2, Schema.Null])),
|
|
@@ -731,7 +730,7 @@ interface TokenPolicy {
|
|
|
731
730
|
/** A list of resource names that the policy applies to. */
|
|
732
731
|
resources: Record<string, unknown>;
|
|
733
732
|
}
|
|
734
|
-
const TokenPolicy = /*@__PURE__*/
|
|
733
|
+
const TokenPolicy = /*@__PURE__*/ Schema.suspend(() =>
|
|
735
734
|
Schema.Struct({
|
|
736
735
|
id: Schema.String,
|
|
737
736
|
effect: Schema.Union([Schema.Literals(["allow", "deny"]), Schema.String]),
|
|
@@ -781,7 +780,7 @@ interface Token {
|
|
|
781
780
|
/** Status of the token. */
|
|
782
781
|
status?: "active" | "disabled" | "expired" | (string & {}) | null;
|
|
783
782
|
}
|
|
784
|
-
const Token = /*@__PURE__*/
|
|
783
|
+
const Token = /*@__PURE__*/ Schema.suspend(() =>
|
|
785
784
|
Schema.Struct({
|
|
786
785
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
787
786
|
condition: Schema.optional(Schema.Union([Condition, Schema.Null])),
|
|
@@ -825,7 +824,7 @@ interface PermissionGroup2 {
|
|
|
825
824
|
/** Attributes associated to the permission group. */
|
|
826
825
|
meta?: { key?: string | null; value?: string | null } | null;
|
|
827
826
|
}
|
|
828
|
-
const PermissionGroup2 = /*@__PURE__*/
|
|
827
|
+
const PermissionGroup2 = /*@__PURE__*/ Schema.suspend(() =>
|
|
829
828
|
Schema.Struct({
|
|
830
829
|
id: Schema.String,
|
|
831
830
|
meta: Schema.optional(Schema.Union([Meta2, Schema.Null])),
|
|
@@ -843,7 +842,7 @@ interface TokenPolicyParam {
|
|
|
843
842
|
/** A list of resource names that the policy applies to. */
|
|
844
843
|
resources: Record<string, unknown>;
|
|
845
844
|
}
|
|
846
|
-
const TokenPolicyParam = /*@__PURE__*/
|
|
845
|
+
const TokenPolicyParam = /*@__PURE__*/ Schema.suspend(() =>
|
|
847
846
|
Schema.Struct({
|
|
848
847
|
effect: Schema.Union([Schema.Literals(["allow", "deny"]), Schema.String]),
|
|
849
848
|
permissionGroups: Schema.Array(PermissionGroup2),
|
|
@@ -891,7 +890,7 @@ interface ListTokenPermissionGroupsResponseResult {
|
|
|
891
890
|
| null;
|
|
892
891
|
}
|
|
893
892
|
const ListTokenPermissionGroupsResponseResult =
|
|
894
|
-
/*@__PURE__*/
|
|
893
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
895
894
|
Schema.Struct({
|
|
896
895
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
897
896
|
category: Schema.optional(
|
|
@@ -961,38 +960,37 @@ export interface ListAuditLogsRequest {
|
|
|
961
960
|
zone?: { name?: string };
|
|
962
961
|
}
|
|
963
962
|
|
|
964
|
-
export const ListAuditLogsRequest = /*@__PURE__*/
|
|
965
|
-
(
|
|
966
|
-
Schema.
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
Schema.
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
Schema.
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
Schema.
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
}).pipe(T.Http({ method: "GET", path: "/user/audit_logs" })),
|
|
963
|
+
export const ListAuditLogsRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
964
|
+
Schema.Struct({
|
|
965
|
+
page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
|
|
966
|
+
perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
|
|
967
|
+
id: Schema.optional(Schema.String).pipe(T.HttpQuery("id")),
|
|
968
|
+
action: Schema.optional(
|
|
969
|
+
Schema.Struct({
|
|
970
|
+
type: Schema.optional(Schema.String),
|
|
971
|
+
}),
|
|
972
|
+
).pipe(T.HttpQuery("action")),
|
|
973
|
+
actor: Schema.optional(
|
|
974
|
+
Schema.Struct({
|
|
975
|
+
email: Schema.optional(Schema.String),
|
|
976
|
+
ip: Schema.optional(Schema.String),
|
|
977
|
+
}),
|
|
978
|
+
).pipe(T.HttpQuery("actor")),
|
|
979
|
+
before: Schema.optional(Schema.Unknown).pipe(T.HttpQuery("before")),
|
|
980
|
+
direction: Schema.optional(
|
|
981
|
+
Schema.Union([Schema.Literals(["desc", "asc"]), Schema.String]),
|
|
982
|
+
).pipe(T.HttpQuery("direction")),
|
|
983
|
+
export: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("export")),
|
|
984
|
+
hideUserLogs: Schema.optional(Schema.Boolean).pipe(
|
|
985
|
+
T.HttpQuery("hide_user_logs"),
|
|
986
|
+
),
|
|
987
|
+
since: Schema.optional(Schema.Unknown).pipe(T.HttpQuery("since")),
|
|
988
|
+
zone: Schema.optional(
|
|
989
|
+
Schema.Struct({
|
|
990
|
+
name: Schema.optional(Schema.String),
|
|
991
|
+
}),
|
|
992
|
+
).pipe(T.HttpQuery("zone")),
|
|
993
|
+
}).pipe(T.Http({ method: "GET", path: "/user/audit_logs" })),
|
|
996
994
|
) as unknown as Schema.Codec<ListAuditLogsRequest>;
|
|
997
995
|
|
|
998
996
|
export interface ListAuditLogsResponse {
|
|
@@ -1021,14 +1019,13 @@ export interface ListAuditLogsResponse {
|
|
|
1021
1019
|
} | null;
|
|
1022
1020
|
}
|
|
1023
1021
|
|
|
1024
|
-
export const ListAuditLogsResponse = /*@__PURE__*/
|
|
1025
|
-
(
|
|
1026
|
-
Schema.
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
|
|
1022
|
+
export const ListAuditLogsResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
1023
|
+
Schema.Struct({
|
|
1024
|
+
result: Schema.Array(AuditLog),
|
|
1025
|
+
resultInfo: Schema.optional(
|
|
1026
|
+
Schema.Union([ListAuditLogsResponseResultInfo, Schema.Null]),
|
|
1027
|
+
),
|
|
1028
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
|
|
1032
1029
|
) as unknown as Schema.Codec<ListAuditLogsResponse>;
|
|
1033
1030
|
|
|
1034
1031
|
export type ListAuditLogsError = DefaultErrors;
|
|
@@ -1038,7 +1035,7 @@ export const listAuditLogs: API.PaginatedOperationMethod<
|
|
|
1038
1035
|
ListAuditLogsResponse,
|
|
1039
1036
|
ListAuditLogsError,
|
|
1040
1037
|
Credentials | HttpClient.HttpClient
|
|
1041
|
-
> = /*@__PURE__*/
|
|
1038
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
1042
1039
|
input: ListAuditLogsRequest,
|
|
1043
1040
|
output: ListAuditLogsResponse,
|
|
1044
1041
|
errors: [],
|
|
@@ -1069,7 +1066,7 @@ export interface ListBillingHistoriesRequest {
|
|
|
1069
1066
|
}
|
|
1070
1067
|
|
|
1071
1068
|
export const ListBillingHistoriesRequest =
|
|
1072
|
-
/*@__PURE__*/
|
|
1069
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1073
1070
|
Schema.Struct({
|
|
1074
1071
|
page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
|
|
1075
1072
|
perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
|
|
@@ -1107,7 +1104,7 @@ export interface ListBillingHistoriesResponse {
|
|
|
1107
1104
|
}
|
|
1108
1105
|
|
|
1109
1106
|
export const ListBillingHistoriesResponse =
|
|
1110
|
-
/*@__PURE__*/
|
|
1107
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1111
1108
|
Schema.Struct({
|
|
1112
1109
|
result: Schema.Array(ListBillingHistoriesResponseResult),
|
|
1113
1110
|
resultInfo: Schema.optional(
|
|
@@ -1123,7 +1120,7 @@ export const listBillingHistories: API.PaginatedOperationMethod<
|
|
|
1123
1120
|
ListBillingHistoriesResponse,
|
|
1124
1121
|
ListBillingHistoriesError,
|
|
1125
1122
|
Credentials | HttpClient.HttpClient
|
|
1126
|
-
> = /*@__PURE__*/
|
|
1123
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
1127
1124
|
input: ListBillingHistoriesRequest,
|
|
1128
1125
|
output: ListBillingHistoriesResponse,
|
|
1129
1126
|
errors: [],
|
|
@@ -1143,7 +1140,7 @@ export const listBillingHistories: API.PaginatedOperationMethod<
|
|
|
1143
1140
|
export interface GetBillingProfileRequest {}
|
|
1144
1141
|
|
|
1145
1142
|
export const GetBillingProfileRequest =
|
|
1146
|
-
/*@__PURE__*/
|
|
1143
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1147
1144
|
Schema.Struct({}).pipe(
|
|
1148
1145
|
T.Http({ method: "GET", path: "/user/billing/profile" }),
|
|
1149
1146
|
),
|
|
@@ -1193,7 +1190,7 @@ export interface GetBillingProfileResponse {
|
|
|
1193
1190
|
}
|
|
1194
1191
|
|
|
1195
1192
|
export const GetBillingProfileResponse =
|
|
1196
|
-
/*@__PURE__*/
|
|
1193
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1197
1194
|
Schema.Struct({
|
|
1198
1195
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1199
1196
|
accountType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -1312,7 +1309,7 @@ export const getBillingProfile: API.OperationMethod<
|
|
|
1312
1309
|
GetBillingProfileResponse,
|
|
1313
1310
|
GetBillingProfileError,
|
|
1314
1311
|
Credentials | HttpClient.HttpClient
|
|
1315
|
-
> = /*@__PURE__*/
|
|
1312
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1316
1313
|
input: GetBillingProfileRequest,
|
|
1317
1314
|
output: GetBillingProfileResponse,
|
|
1318
1315
|
errors: [],
|
|
@@ -1326,7 +1323,7 @@ export interface GetInviteRequest {
|
|
|
1326
1323
|
inviteId: string;
|
|
1327
1324
|
}
|
|
1328
1325
|
|
|
1329
|
-
export const GetInviteRequest = /*@__PURE__*/
|
|
1326
|
+
export const GetInviteRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1330
1327
|
Schema.Struct({
|
|
1331
1328
|
inviteId: Schema.String.pipe(T.HttpPath("inviteId")),
|
|
1332
1329
|
}).pipe(T.Http({ method: "GET", path: "/user/invites/{inviteId}" })),
|
|
@@ -1362,54 +1359,52 @@ export interface GetInviteResponse {
|
|
|
1362
1359
|
| null;
|
|
1363
1360
|
}
|
|
1364
1361
|
|
|
1365
|
-
export const GetInviteResponse = /*@__PURE__*/
|
|
1366
|
-
(
|
|
1367
|
-
Schema.
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1362
|
+
export const GetInviteResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
1363
|
+
Schema.Struct({
|
|
1364
|
+
invitedMemberId: Schema.Union([Schema.String, Schema.Null]),
|
|
1365
|
+
organizationId: Schema.String,
|
|
1366
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1367
|
+
expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1368
|
+
invitedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1369
|
+
invitedMemberEmail: Schema.optional(
|
|
1370
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1371
|
+
),
|
|
1372
|
+
invitedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1373
|
+
organizationIsEnforcingTwofactor: Schema.optional(
|
|
1374
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
1375
|
+
),
|
|
1376
|
+
organizationName: Schema.optional(
|
|
1377
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1378
|
+
),
|
|
1379
|
+
roles: Schema.optional(
|
|
1380
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
1381
|
+
),
|
|
1382
|
+
status: Schema.optional(
|
|
1383
|
+
Schema.Union([
|
|
1387
1384
|
Schema.Union([
|
|
1388
|
-
Schema.
|
|
1389
|
-
|
|
1390
|
-
Schema.String,
|
|
1391
|
-
]),
|
|
1392
|
-
Schema.Null,
|
|
1385
|
+
Schema.Literals(["pending", "accepted", "rejected", "expired"]),
|
|
1386
|
+
Schema.String,
|
|
1393
1387
|
]),
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
)
|
|
1412
|
-
|
|
1388
|
+
Schema.Null,
|
|
1389
|
+
]),
|
|
1390
|
+
),
|
|
1391
|
+
})
|
|
1392
|
+
.pipe(
|
|
1393
|
+
Schema.encodeKeys({
|
|
1394
|
+
invitedMemberId: "invited_member_id",
|
|
1395
|
+
organizationId: "organization_id",
|
|
1396
|
+
id: "id",
|
|
1397
|
+
expiresOn: "expires_on",
|
|
1398
|
+
invitedBy: "invited_by",
|
|
1399
|
+
invitedMemberEmail: "invited_member_email",
|
|
1400
|
+
invitedOn: "invited_on",
|
|
1401
|
+
organizationIsEnforcingTwofactor: "organization_is_enforcing_twofactor",
|
|
1402
|
+
organizationName: "organization_name",
|
|
1403
|
+
roles: "roles",
|
|
1404
|
+
status: "status",
|
|
1405
|
+
}),
|
|
1406
|
+
)
|
|
1407
|
+
.pipe(T.ResponsePath("result")),
|
|
1413
1408
|
) as unknown as Schema.Codec<GetInviteResponse>;
|
|
1414
1409
|
|
|
1415
1410
|
export type GetInviteError = DefaultErrors;
|
|
@@ -1419,7 +1414,7 @@ export const getInvite: API.OperationMethod<
|
|
|
1419
1414
|
GetInviteResponse,
|
|
1420
1415
|
GetInviteError,
|
|
1421
1416
|
Credentials | HttpClient.HttpClient
|
|
1422
|
-
> = /*@__PURE__*/
|
|
1417
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1423
1418
|
input: GetInviteRequest,
|
|
1424
1419
|
output: GetInviteResponse,
|
|
1425
1420
|
errors: [],
|
|
@@ -1427,9 +1422,8 @@ export const getInvite: API.OperationMethod<
|
|
|
1427
1422
|
|
|
1428
1423
|
export interface ListInvitesRequest {}
|
|
1429
1424
|
|
|
1430
|
-
export const ListInvitesRequest = /*@__PURE__*/
|
|
1431
|
-
()
|
|
1432
|
-
Schema.Struct({}).pipe(T.Http({ method: "GET", path: "/user/invites" })),
|
|
1425
|
+
export const ListInvitesRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1426
|
+
Schema.Struct({}).pipe(T.Http({ method: "GET", path: "/user/invites" })),
|
|
1433
1427
|
) as unknown as Schema.Codec<ListInvitesRequest>;
|
|
1434
1428
|
|
|
1435
1429
|
export interface ListInvitesResponse {
|
|
@@ -1454,11 +1448,10 @@ export interface ListInvitesResponse {
|
|
|
1454
1448
|
}[];
|
|
1455
1449
|
}
|
|
1456
1450
|
|
|
1457
|
-
export const ListInvitesResponse = /*@__PURE__*/
|
|
1458
|
-
(
|
|
1459
|
-
Schema.
|
|
1460
|
-
|
|
1461
|
-
}),
|
|
1451
|
+
export const ListInvitesResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
1452
|
+
Schema.Struct({
|
|
1453
|
+
result: Schema.Array(ListInvitesResponseResult),
|
|
1454
|
+
}),
|
|
1462
1455
|
) as unknown as Schema.Codec<ListInvitesResponse>;
|
|
1463
1456
|
|
|
1464
1457
|
export type ListInvitesError = DefaultErrors;
|
|
@@ -1468,7 +1461,7 @@ export const listInvites: API.PaginatedOperationMethod<
|
|
|
1468
1461
|
ListInvitesResponse,
|
|
1469
1462
|
ListInvitesError,
|
|
1470
1463
|
Credentials | HttpClient.HttpClient
|
|
1471
|
-
> = /*@__PURE__*/
|
|
1464
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
1472
1465
|
input: ListInvitesRequest,
|
|
1473
1466
|
output: ListInvitesResponse,
|
|
1474
1467
|
errors: [],
|
|
@@ -1484,15 +1477,14 @@ export interface PatchInviteRequest {
|
|
|
1484
1477
|
status: "accepted" | "rejected" | (string & {});
|
|
1485
1478
|
}
|
|
1486
1479
|
|
|
1487
|
-
export const PatchInviteRequest = /*@__PURE__*/
|
|
1488
|
-
(
|
|
1489
|
-
Schema.
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
}).pipe(T.Http({ method: "PATCH", path: "/user/invites/{inviteId}" })),
|
|
1480
|
+
export const PatchInviteRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1481
|
+
Schema.Struct({
|
|
1482
|
+
inviteId: Schema.String.pipe(T.HttpPath("inviteId")),
|
|
1483
|
+
status: Schema.Union([
|
|
1484
|
+
Schema.Literals(["accepted", "rejected"]),
|
|
1485
|
+
Schema.String,
|
|
1486
|
+
]),
|
|
1487
|
+
}).pipe(T.Http({ method: "PATCH", path: "/user/invites/{inviteId}" })),
|
|
1496
1488
|
) as unknown as Schema.Codec<PatchInviteRequest>;
|
|
1497
1489
|
|
|
1498
1490
|
export interface PatchInviteResponse {
|
|
@@ -1525,54 +1517,52 @@ export interface PatchInviteResponse {
|
|
|
1525
1517
|
| null;
|
|
1526
1518
|
}
|
|
1527
1519
|
|
|
1528
|
-
export const PatchInviteResponse = /*@__PURE__*/
|
|
1529
|
-
(
|
|
1530
|
-
Schema.
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1520
|
+
export const PatchInviteResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
1521
|
+
Schema.Struct({
|
|
1522
|
+
invitedMemberId: Schema.Union([Schema.String, Schema.Null]),
|
|
1523
|
+
organizationId: Schema.String,
|
|
1524
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1525
|
+
expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1526
|
+
invitedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1527
|
+
invitedMemberEmail: Schema.optional(
|
|
1528
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1529
|
+
),
|
|
1530
|
+
invitedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1531
|
+
organizationIsEnforcingTwofactor: Schema.optional(
|
|
1532
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
1533
|
+
),
|
|
1534
|
+
organizationName: Schema.optional(
|
|
1535
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1536
|
+
),
|
|
1537
|
+
roles: Schema.optional(
|
|
1538
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
1539
|
+
),
|
|
1540
|
+
status: Schema.optional(
|
|
1541
|
+
Schema.Union([
|
|
1550
1542
|
Schema.Union([
|
|
1551
|
-
Schema.
|
|
1552
|
-
|
|
1553
|
-
Schema.String,
|
|
1554
|
-
]),
|
|
1555
|
-
Schema.Null,
|
|
1543
|
+
Schema.Literals(["pending", "accepted", "rejected", "expired"]),
|
|
1544
|
+
Schema.String,
|
|
1556
1545
|
]),
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
)
|
|
1575
|
-
|
|
1546
|
+
Schema.Null,
|
|
1547
|
+
]),
|
|
1548
|
+
),
|
|
1549
|
+
})
|
|
1550
|
+
.pipe(
|
|
1551
|
+
Schema.encodeKeys({
|
|
1552
|
+
invitedMemberId: "invited_member_id",
|
|
1553
|
+
organizationId: "organization_id",
|
|
1554
|
+
id: "id",
|
|
1555
|
+
expiresOn: "expires_on",
|
|
1556
|
+
invitedBy: "invited_by",
|
|
1557
|
+
invitedMemberEmail: "invited_member_email",
|
|
1558
|
+
invitedOn: "invited_on",
|
|
1559
|
+
organizationIsEnforcingTwofactor: "organization_is_enforcing_twofactor",
|
|
1560
|
+
organizationName: "organization_name",
|
|
1561
|
+
roles: "roles",
|
|
1562
|
+
status: "status",
|
|
1563
|
+
}),
|
|
1564
|
+
)
|
|
1565
|
+
.pipe(T.ResponsePath("result")),
|
|
1576
1566
|
) as unknown as Schema.Codec<PatchInviteResponse>;
|
|
1577
1567
|
|
|
1578
1568
|
export type PatchInviteError = DefaultErrors;
|
|
@@ -1582,7 +1572,7 @@ export const patchInvite: API.OperationMethod<
|
|
|
1582
1572
|
PatchInviteResponse,
|
|
1583
1573
|
PatchInviteError,
|
|
1584
1574
|
Credentials | HttpClient.HttpClient
|
|
1585
|
-
> = /*@__PURE__*/
|
|
1575
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1586
1576
|
input: PatchInviteRequest,
|
|
1587
1577
|
output: PatchInviteResponse,
|
|
1588
1578
|
errors: [],
|
|
@@ -1597,7 +1587,7 @@ export interface GetOrganizationRequest {
|
|
|
1597
1587
|
}
|
|
1598
1588
|
|
|
1599
1589
|
export const GetOrganizationRequest =
|
|
1600
|
-
/*@__PURE__*/
|
|
1590
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1601
1591
|
Schema.Struct({
|
|
1602
1592
|
organizationId: Schema.String.pipe(T.HttpPath("organizationId")),
|
|
1603
1593
|
}).pipe(
|
|
@@ -1608,7 +1598,7 @@ export const GetOrganizationRequest =
|
|
|
1608
1598
|
export type GetOrganizationResponse = unknown;
|
|
1609
1599
|
|
|
1610
1600
|
export const GetOrganizationResponse =
|
|
1611
|
-
/*@__PURE__*/
|
|
1601
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1612
1602
|
Schema.Unknown.pipe(T.ResponsePath("result")),
|
|
1613
1603
|
) as unknown as Schema.Codec<GetOrganizationResponse>;
|
|
1614
1604
|
|
|
@@ -1619,7 +1609,7 @@ export const getOrganization: API.OperationMethod<
|
|
|
1619
1609
|
GetOrganizationResponse,
|
|
1620
1610
|
GetOrganizationError,
|
|
1621
1611
|
Credentials | HttpClient.HttpClient
|
|
1622
|
-
> = /*@__PURE__*/
|
|
1612
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1623
1613
|
input: GetOrganizationRequest,
|
|
1624
1614
|
output: GetOrganizationResponse,
|
|
1625
1615
|
errors: [],
|
|
@@ -1641,7 +1631,7 @@ export interface ListOrganizationsRequest {
|
|
|
1641
1631
|
}
|
|
1642
1632
|
|
|
1643
1633
|
export const ListOrganizationsRequest =
|
|
1644
|
-
/*@__PURE__*/
|
|
1634
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1645
1635
|
Schema.Struct({
|
|
1646
1636
|
page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
|
|
1647
1637
|
perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
|
|
@@ -1681,7 +1671,7 @@ export interface ListOrganizationsResponse {
|
|
|
1681
1671
|
}
|
|
1682
1672
|
|
|
1683
1673
|
export const ListOrganizationsResponse =
|
|
1684
|
-
/*@__PURE__*/
|
|
1674
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1685
1675
|
Schema.Struct({
|
|
1686
1676
|
result: Schema.Array(ListOrganizationsResponseResult),
|
|
1687
1677
|
resultInfo: Schema.optional(
|
|
@@ -1697,7 +1687,7 @@ export const listOrganizations: API.PaginatedOperationMethod<
|
|
|
1697
1687
|
ListOrganizationsResponse,
|
|
1698
1688
|
ListOrganizationsError,
|
|
1699
1689
|
Credentials | HttpClient.HttpClient
|
|
1700
|
-
> = /*@__PURE__*/
|
|
1690
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
1701
1691
|
input: ListOrganizationsRequest,
|
|
1702
1692
|
output: ListOrganizationsResponse,
|
|
1703
1693
|
errors: [],
|
|
@@ -1715,7 +1705,7 @@ export interface DeleteOrganizationRequest {
|
|
|
1715
1705
|
}
|
|
1716
1706
|
|
|
1717
1707
|
export const DeleteOrganizationRequest =
|
|
1718
|
-
/*@__PURE__*/
|
|
1708
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1719
1709
|
Schema.Struct({
|
|
1720
1710
|
organizationId: Schema.String.pipe(T.HttpPath("organizationId")),
|
|
1721
1711
|
}).pipe(
|
|
@@ -1732,7 +1722,7 @@ export interface DeleteOrganizationResponse {
|
|
|
1732
1722
|
}
|
|
1733
1723
|
|
|
1734
1724
|
export const DeleteOrganizationResponse =
|
|
1735
|
-
/*@__PURE__*/
|
|
1725
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1736
1726
|
Schema.Struct({
|
|
1737
1727
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1738
1728
|
}),
|
|
@@ -1745,7 +1735,7 @@ export const deleteOrganization: API.OperationMethod<
|
|
|
1745
1735
|
DeleteOrganizationResponse,
|
|
1746
1736
|
DeleteOrganizationError,
|
|
1747
1737
|
Credentials | HttpClient.HttpClient
|
|
1748
|
-
> = /*@__PURE__*/
|
|
1738
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1749
1739
|
input: DeleteOrganizationRequest,
|
|
1750
1740
|
output: DeleteOrganizationResponse,
|
|
1751
1741
|
errors: [],
|
|
@@ -1758,7 +1748,7 @@ export const deleteOrganization: API.OperationMethod<
|
|
|
1758
1748
|
export interface GetSubscriptionRequest {}
|
|
1759
1749
|
|
|
1760
1750
|
export const GetSubscriptionRequest =
|
|
1761
|
-
/*@__PURE__*/
|
|
1751
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1762
1752
|
Schema.Struct({}).pipe(
|
|
1763
1753
|
T.Http({ method: "GET", path: "/user/subscriptions" }),
|
|
1764
1754
|
),
|
|
@@ -1813,7 +1803,7 @@ export interface GetSubscriptionResponse {
|
|
|
1813
1803
|
}
|
|
1814
1804
|
|
|
1815
1805
|
export const GetSubscriptionResponse =
|
|
1816
|
-
/*@__PURE__*/
|
|
1806
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1817
1807
|
Schema.Struct({
|
|
1818
1808
|
result: Schema.Array(Subscription),
|
|
1819
1809
|
}),
|
|
@@ -1826,7 +1816,7 @@ export const getSubscription: API.PaginatedOperationMethod<
|
|
|
1826
1816
|
GetSubscriptionResponse,
|
|
1827
1817
|
GetSubscriptionError,
|
|
1828
1818
|
Credentials | HttpClient.HttpClient
|
|
1829
|
-
> = /*@__PURE__*/
|
|
1819
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
1830
1820
|
input: GetSubscriptionRequest,
|
|
1831
1821
|
output: GetSubscriptionResponse,
|
|
1832
1822
|
errors: [],
|
|
@@ -1864,7 +1854,7 @@ export interface PutSubscriptionRequest {
|
|
|
1864
1854
|
}
|
|
1865
1855
|
|
|
1866
1856
|
export const PutSubscriptionRequest =
|
|
1867
|
-
/*@__PURE__*/
|
|
1857
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1868
1858
|
Schema.Struct({
|
|
1869
1859
|
identifier: Schema.String.pipe(T.HttpPath("identifier")),
|
|
1870
1860
|
frequency: Schema.optional(
|
|
@@ -1883,7 +1873,7 @@ export const PutSubscriptionRequest =
|
|
|
1883
1873
|
export type PutSubscriptionResponse = unknown;
|
|
1884
1874
|
|
|
1885
1875
|
export const PutSubscriptionResponse =
|
|
1886
|
-
/*@__PURE__*/
|
|
1876
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1887
1877
|
Schema.Unknown.pipe(T.ResponsePath("result")),
|
|
1888
1878
|
) as unknown as Schema.Codec<PutSubscriptionResponse>;
|
|
1889
1879
|
|
|
@@ -1894,7 +1884,7 @@ export const putSubscription: API.OperationMethod<
|
|
|
1894
1884
|
PutSubscriptionResponse,
|
|
1895
1885
|
PutSubscriptionError,
|
|
1896
1886
|
Credentials | HttpClient.HttpClient
|
|
1897
|
-
> = /*@__PURE__*/
|
|
1887
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1898
1888
|
input: PutSubscriptionRequest,
|
|
1899
1889
|
output: PutSubscriptionResponse,
|
|
1900
1890
|
errors: [],
|
|
@@ -1905,7 +1895,7 @@ export interface DeleteSubscriptionRequest {
|
|
|
1905
1895
|
}
|
|
1906
1896
|
|
|
1907
1897
|
export const DeleteSubscriptionRequest =
|
|
1908
|
-
/*@__PURE__*/
|
|
1898
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1909
1899
|
Schema.Struct({
|
|
1910
1900
|
identifier: Schema.String.pipe(T.HttpPath("identifier")),
|
|
1911
1901
|
}).pipe(
|
|
@@ -1919,7 +1909,7 @@ export interface DeleteSubscriptionResponse {
|
|
|
1919
1909
|
}
|
|
1920
1910
|
|
|
1921
1911
|
export const DeleteSubscriptionResponse =
|
|
1922
|
-
/*@__PURE__*/
|
|
1912
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1923
1913
|
Schema.Struct({
|
|
1924
1914
|
subscriptionId: Schema.optional(
|
|
1925
1915
|
Schema.Union([Schema.String, Schema.Null]),
|
|
@@ -1934,7 +1924,7 @@ export const deleteSubscription: API.OperationMethod<
|
|
|
1934
1924
|
DeleteSubscriptionResponse,
|
|
1935
1925
|
DeleteSubscriptionError,
|
|
1936
1926
|
Credentials | HttpClient.HttpClient
|
|
1937
|
-
> = /*@__PURE__*/
|
|
1927
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1938
1928
|
input: DeleteSubscriptionRequest,
|
|
1939
1929
|
output: DeleteSubscriptionResponse,
|
|
1940
1930
|
errors: [],
|
|
@@ -1946,9 +1936,8 @@ export const deleteSubscription: API.OperationMethod<
|
|
|
1946
1936
|
|
|
1947
1937
|
export interface ListTenantsRequest {}
|
|
1948
1938
|
|
|
1949
|
-
export const ListTenantsRequest = /*@__PURE__*/
|
|
1950
|
-
()
|
|
1951
|
-
Schema.Struct({}).pipe(T.Http({ method: "GET", path: "/user/tenants" })),
|
|
1939
|
+
export const ListTenantsRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1940
|
+
Schema.Struct({}).pipe(T.Http({ method: "GET", path: "/user/tenants" })),
|
|
1952
1941
|
) as unknown as Schema.Codec<ListTenantsRequest>;
|
|
1953
1942
|
|
|
1954
1943
|
export interface ListTenantsResponse {
|
|
@@ -1978,11 +1967,10 @@ export interface ListTenantsResponse {
|
|
|
1978
1967
|
}[];
|
|
1979
1968
|
}
|
|
1980
1969
|
|
|
1981
|
-
export const ListTenantsResponse = /*@__PURE__*/
|
|
1982
|
-
(
|
|
1983
|
-
Schema.
|
|
1984
|
-
|
|
1985
|
-
}),
|
|
1970
|
+
export const ListTenantsResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
1971
|
+
Schema.Struct({
|
|
1972
|
+
result: Schema.Array(Organization),
|
|
1973
|
+
}),
|
|
1986
1974
|
) as unknown as Schema.Codec<ListTenantsResponse>;
|
|
1987
1975
|
|
|
1988
1976
|
export type ListTenantsError = DefaultErrors;
|
|
@@ -1992,7 +1980,7 @@ export const listTenants: API.PaginatedOperationMethod<
|
|
|
1992
1980
|
ListTenantsResponse,
|
|
1993
1981
|
ListTenantsError,
|
|
1994
1982
|
Credentials | HttpClient.HttpClient
|
|
1995
|
-
> = /*@__PURE__*/
|
|
1983
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
1996
1984
|
input: ListTenantsRequest,
|
|
1997
1985
|
output: ListTenantsResponse,
|
|
1998
1986
|
errors: [],
|
|
@@ -2010,7 +1998,7 @@ export interface GetTokenRequest {
|
|
|
2010
1998
|
tokenId: string;
|
|
2011
1999
|
}
|
|
2012
2000
|
|
|
2013
|
-
export const GetTokenRequest = /*@__PURE__*/
|
|
2001
|
+
export const GetTokenRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2014
2002
|
Schema.Struct({
|
|
2015
2003
|
tokenId: Schema.String.pipe(T.HttpPath("tokenId")),
|
|
2016
2004
|
}).pipe(T.Http({ method: "GET", path: "/user/tokens/{tokenId}" })),
|
|
@@ -2051,7 +2039,7 @@ export interface GetTokenResponse {
|
|
|
2051
2039
|
status?: "active" | "disabled" | "expired" | (string & {}) | null;
|
|
2052
2040
|
}
|
|
2053
2041
|
|
|
2054
|
-
export const GetTokenResponse = /*@__PURE__*/
|
|
2042
|
+
export const GetTokenResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2055
2043
|
Schema.Struct({
|
|
2056
2044
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2057
2045
|
condition: Schema.optional(Schema.Union([Condition, Schema.Null])),
|
|
@@ -2098,7 +2086,7 @@ export const getToken: API.OperationMethod<
|
|
|
2098
2086
|
GetTokenResponse,
|
|
2099
2087
|
GetTokenError,
|
|
2100
2088
|
Credentials | HttpClient.HttpClient
|
|
2101
|
-
> = /*@__PURE__*/
|
|
2089
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2102
2090
|
input: GetTokenRequest,
|
|
2103
2091
|
output: GetTokenResponse,
|
|
2104
2092
|
errors: [InvalidRoute, TokenNotFound],
|
|
@@ -2111,15 +2099,14 @@ export interface ListTokensRequest {
|
|
|
2111
2099
|
direction?: "asc" | "desc" | (string & {});
|
|
2112
2100
|
}
|
|
2113
2101
|
|
|
2114
|
-
export const ListTokensRequest = /*@__PURE__*/
|
|
2115
|
-
(
|
|
2116
|
-
Schema.
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
}).pipe(T.Http({ method: "GET", path: "/user/tokens" })),
|
|
2102
|
+
export const ListTokensRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2103
|
+
Schema.Struct({
|
|
2104
|
+
page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
|
|
2105
|
+
perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
|
|
2106
|
+
direction: Schema.optional(
|
|
2107
|
+
Schema.Union([Schema.Literals(["asc", "desc"]), Schema.String]),
|
|
2108
|
+
).pipe(T.HttpQuery("direction")),
|
|
2109
|
+
}).pipe(T.Http({ method: "GET", path: "/user/tokens" })),
|
|
2123
2110
|
) as unknown as Schema.Codec<ListTokensRequest>;
|
|
2124
2111
|
|
|
2125
2112
|
export interface ListTokensResponse {
|
|
@@ -2156,14 +2143,13 @@ export interface ListTokensResponse {
|
|
|
2156
2143
|
} | null;
|
|
2157
2144
|
}
|
|
2158
2145
|
|
|
2159
|
-
export const ListTokensResponse = /*@__PURE__*/
|
|
2160
|
-
(
|
|
2161
|
-
Schema.
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
|
|
2146
|
+
export const ListTokensResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2147
|
+
Schema.Struct({
|
|
2148
|
+
result: Schema.Array(Token),
|
|
2149
|
+
resultInfo: Schema.optional(
|
|
2150
|
+
Schema.Union([ListAuditLogsResponseResultInfo, Schema.Null]),
|
|
2151
|
+
),
|
|
2152
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
|
|
2167
2153
|
) as unknown as Schema.Codec<ListTokensResponse>;
|
|
2168
2154
|
|
|
2169
2155
|
export type ListTokensError = DefaultErrors;
|
|
@@ -2173,7 +2159,7 @@ export const listTokens: API.PaginatedOperationMethod<
|
|
|
2173
2159
|
ListTokensResponse,
|
|
2174
2160
|
ListTokensError,
|
|
2175
2161
|
Credentials | HttpClient.HttpClient
|
|
2176
|
-
> = /*@__PURE__*/
|
|
2162
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
2177
2163
|
input: ListTokensRequest,
|
|
2178
2164
|
output: ListTokensResponse,
|
|
2179
2165
|
errors: [],
|
|
@@ -2202,24 +2188,23 @@ export interface CreateTokenRequest {
|
|
|
2202
2188
|
notBefore?: string;
|
|
2203
2189
|
}
|
|
2204
2190
|
|
|
2205
|
-
export const CreateTokenRequest = /*@__PURE__*/
|
|
2206
|
-
(
|
|
2207
|
-
Schema.
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
),
|
|
2191
|
+
export const CreateTokenRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2192
|
+
Schema.Struct({
|
|
2193
|
+
name: Schema.String,
|
|
2194
|
+
policies: Schema.Array(TokenPolicyParam),
|
|
2195
|
+
condition: Schema.optional(Condition),
|
|
2196
|
+
expiresOn: Schema.optional(Schema.String),
|
|
2197
|
+
notBefore: Schema.optional(Schema.String),
|
|
2198
|
+
}).pipe(
|
|
2199
|
+
Schema.encodeKeys({
|
|
2200
|
+
name: "name",
|
|
2201
|
+
policies: "policies",
|
|
2202
|
+
condition: "condition",
|
|
2203
|
+
expiresOn: "expires_on",
|
|
2204
|
+
notBefore: "not_before",
|
|
2205
|
+
}),
|
|
2206
|
+
T.Http({ method: "POST", path: "/user/tokens" }),
|
|
2207
|
+
),
|
|
2223
2208
|
) as unknown as Schema.Codec<CreateTokenRequest>;
|
|
2224
2209
|
|
|
2225
2210
|
export interface CreateTokenResponse {
|
|
@@ -2259,47 +2244,46 @@ export interface CreateTokenResponse {
|
|
|
2259
2244
|
value?: string | null;
|
|
2260
2245
|
}
|
|
2261
2246
|
|
|
2262
|
-
export const CreateTokenResponse = /*@__PURE__*/
|
|
2263
|
-
(
|
|
2264
|
-
Schema.
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2247
|
+
export const CreateTokenResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2248
|
+
Schema.Struct({
|
|
2249
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2250
|
+
condition: Schema.optional(Schema.Union([Condition, Schema.Null])),
|
|
2251
|
+
expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2252
|
+
issuedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2253
|
+
lastUsedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2254
|
+
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2255
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2256
|
+
notBefore: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2257
|
+
policies: Schema.optional(
|
|
2258
|
+
Schema.Union([Schema.Array(TokenPolicy), Schema.Null]),
|
|
2259
|
+
),
|
|
2260
|
+
status: Schema.optional(
|
|
2261
|
+
Schema.Union([
|
|
2277
2262
|
Schema.Union([
|
|
2278
|
-
Schema.
|
|
2279
|
-
|
|
2280
|
-
Schema.String,
|
|
2281
|
-
]),
|
|
2282
|
-
Schema.Null,
|
|
2263
|
+
Schema.Literals(["active", "disabled", "expired"]),
|
|
2264
|
+
Schema.String,
|
|
2283
2265
|
]),
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2266
|
+
Schema.Null,
|
|
2267
|
+
]),
|
|
2268
|
+
),
|
|
2269
|
+
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2270
|
+
})
|
|
2271
|
+
.pipe(
|
|
2272
|
+
Schema.encodeKeys({
|
|
2273
|
+
id: "id",
|
|
2274
|
+
condition: "condition",
|
|
2275
|
+
expiresOn: "expires_on",
|
|
2276
|
+
issuedOn: "issued_on",
|
|
2277
|
+
lastUsedOn: "last_used_on",
|
|
2278
|
+
modifiedOn: "modified_on",
|
|
2279
|
+
name: "name",
|
|
2280
|
+
notBefore: "not_before",
|
|
2281
|
+
policies: "policies",
|
|
2282
|
+
status: "status",
|
|
2283
|
+
value: "value",
|
|
2284
|
+
}),
|
|
2285
|
+
)
|
|
2286
|
+
.pipe(T.ResponsePath("result")),
|
|
2303
2287
|
) as unknown as Schema.Codec<CreateTokenResponse>;
|
|
2304
2288
|
|
|
2305
2289
|
export type CreateTokenError =
|
|
@@ -2313,7 +2297,7 @@ export const createToken: API.OperationMethod<
|
|
|
2313
2297
|
CreateTokenResponse,
|
|
2314
2298
|
CreateTokenError,
|
|
2315
2299
|
Credentials | HttpClient.HttpClient
|
|
2316
|
-
> = /*@__PURE__*/
|
|
2300
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2317
2301
|
input: CreateTokenRequest,
|
|
2318
2302
|
output: CreateTokenResponse,
|
|
2319
2303
|
errors: [InvalidRoute, InvalidTokenName, PermissionGroupNotFound],
|
|
@@ -2338,32 +2322,31 @@ export interface UpdateTokenRequest {
|
|
|
2338
2322
|
status?: "active" | "disabled" | "expired" | (string & {});
|
|
2339
2323
|
}
|
|
2340
2324
|
|
|
2341
|
-
export const UpdateTokenRequest = /*@__PURE__*/
|
|
2342
|
-
(
|
|
2343
|
-
Schema.
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
Schema.
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
]),
|
|
2355
|
-
),
|
|
2356
|
-
}).pipe(
|
|
2357
|
-
Schema.encodeKeys({
|
|
2358
|
-
name: "name",
|
|
2359
|
-
policies: "policies",
|
|
2360
|
-
condition: "condition",
|
|
2361
|
-
expiresOn: "expires_on",
|
|
2362
|
-
notBefore: "not_before",
|
|
2363
|
-
status: "status",
|
|
2364
|
-
}),
|
|
2365
|
-
T.Http({ method: "PUT", path: "/user/tokens/{tokenId}" }),
|
|
2325
|
+
export const UpdateTokenRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2326
|
+
Schema.Struct({
|
|
2327
|
+
tokenId: Schema.String.pipe(T.HttpPath("tokenId")),
|
|
2328
|
+
name: Schema.String,
|
|
2329
|
+
policies: Schema.Array(TokenPolicyParam),
|
|
2330
|
+
condition: Schema.optional(Condition),
|
|
2331
|
+
expiresOn: Schema.optional(Schema.String),
|
|
2332
|
+
notBefore: Schema.optional(Schema.String),
|
|
2333
|
+
status: Schema.optional(
|
|
2334
|
+
Schema.Union([
|
|
2335
|
+
Schema.Literals(["active", "disabled", "expired"]),
|
|
2336
|
+
Schema.String,
|
|
2337
|
+
]),
|
|
2366
2338
|
),
|
|
2339
|
+
}).pipe(
|
|
2340
|
+
Schema.encodeKeys({
|
|
2341
|
+
name: "name",
|
|
2342
|
+
policies: "policies",
|
|
2343
|
+
condition: "condition",
|
|
2344
|
+
expiresOn: "expires_on",
|
|
2345
|
+
notBefore: "not_before",
|
|
2346
|
+
status: "status",
|
|
2347
|
+
}),
|
|
2348
|
+
T.Http({ method: "PUT", path: "/user/tokens/{tokenId}" }),
|
|
2349
|
+
),
|
|
2367
2350
|
) as unknown as Schema.Codec<UpdateTokenRequest>;
|
|
2368
2351
|
|
|
2369
2352
|
export interface UpdateTokenResponse {
|
|
@@ -2401,45 +2384,44 @@ export interface UpdateTokenResponse {
|
|
|
2401
2384
|
status?: "active" | "disabled" | "expired" | (string & {}) | null;
|
|
2402
2385
|
}
|
|
2403
2386
|
|
|
2404
|
-
export const UpdateTokenResponse = /*@__PURE__*/
|
|
2405
|
-
(
|
|
2406
|
-
Schema.
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2387
|
+
export const UpdateTokenResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2388
|
+
Schema.Struct({
|
|
2389
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2390
|
+
condition: Schema.optional(Schema.Union([Condition, Schema.Null])),
|
|
2391
|
+
expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2392
|
+
issuedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2393
|
+
lastUsedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2394
|
+
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2395
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2396
|
+
notBefore: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2397
|
+
policies: Schema.optional(
|
|
2398
|
+
Schema.Union([Schema.Array(TokenPolicy), Schema.Null]),
|
|
2399
|
+
),
|
|
2400
|
+
status: Schema.optional(
|
|
2401
|
+
Schema.Union([
|
|
2419
2402
|
Schema.Union([
|
|
2420
|
-
Schema.
|
|
2421
|
-
|
|
2422
|
-
Schema.String,
|
|
2423
|
-
]),
|
|
2424
|
-
Schema.Null,
|
|
2403
|
+
Schema.Literals(["active", "disabled", "expired"]),
|
|
2404
|
+
Schema.String,
|
|
2425
2405
|
]),
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2406
|
+
Schema.Null,
|
|
2407
|
+
]),
|
|
2408
|
+
),
|
|
2409
|
+
})
|
|
2410
|
+
.pipe(
|
|
2411
|
+
Schema.encodeKeys({
|
|
2412
|
+
id: "id",
|
|
2413
|
+
condition: "condition",
|
|
2414
|
+
expiresOn: "expires_on",
|
|
2415
|
+
issuedOn: "issued_on",
|
|
2416
|
+
lastUsedOn: "last_used_on",
|
|
2417
|
+
modifiedOn: "modified_on",
|
|
2418
|
+
name: "name",
|
|
2419
|
+
notBefore: "not_before",
|
|
2420
|
+
policies: "policies",
|
|
2421
|
+
status: "status",
|
|
2422
|
+
}),
|
|
2423
|
+
)
|
|
2424
|
+
.pipe(T.ResponsePath("result")),
|
|
2443
2425
|
) as unknown as Schema.Codec<UpdateTokenResponse>;
|
|
2444
2426
|
|
|
2445
2427
|
export type UpdateTokenError =
|
|
@@ -2454,7 +2436,7 @@ export const updateToken: API.OperationMethod<
|
|
|
2454
2436
|
UpdateTokenResponse,
|
|
2455
2437
|
UpdateTokenError,
|
|
2456
2438
|
Credentials | HttpClient.HttpClient
|
|
2457
|
-
> = /*@__PURE__*/
|
|
2439
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2458
2440
|
input: UpdateTokenRequest,
|
|
2459
2441
|
output: UpdateTokenResponse,
|
|
2460
2442
|
errors: [
|
|
@@ -2469,11 +2451,10 @@ export interface DeleteTokenRequest {
|
|
|
2469
2451
|
tokenId: string;
|
|
2470
2452
|
}
|
|
2471
2453
|
|
|
2472
|
-
export const DeleteTokenRequest = /*@__PURE__*/
|
|
2473
|
-
(
|
|
2474
|
-
Schema.
|
|
2475
|
-
|
|
2476
|
-
}).pipe(T.Http({ method: "DELETE", path: "/user/tokens/{tokenId}" })),
|
|
2454
|
+
export const DeleteTokenRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2455
|
+
Schema.Struct({
|
|
2456
|
+
tokenId: Schema.String.pipe(T.HttpPath("tokenId")),
|
|
2457
|
+
}).pipe(T.Http({ method: "DELETE", path: "/user/tokens/{tokenId}" })),
|
|
2477
2458
|
) as unknown as Schema.Codec<DeleteTokenRequest>;
|
|
2478
2459
|
|
|
2479
2460
|
export interface DeleteTokenResponse {
|
|
@@ -2481,11 +2462,10 @@ export interface DeleteTokenResponse {
|
|
|
2481
2462
|
id: string;
|
|
2482
2463
|
}
|
|
2483
2464
|
|
|
2484
|
-
export const DeleteTokenResponse = /*@__PURE__*/
|
|
2485
|
-
(
|
|
2486
|
-
Schema.
|
|
2487
|
-
|
|
2488
|
-
}).pipe(T.ResponsePath("result")),
|
|
2465
|
+
export const DeleteTokenResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2466
|
+
Schema.Struct({
|
|
2467
|
+
id: Schema.String,
|
|
2468
|
+
}).pipe(T.ResponsePath("result")),
|
|
2489
2469
|
) as unknown as Schema.Codec<DeleteTokenResponse>;
|
|
2490
2470
|
|
|
2491
2471
|
export type DeleteTokenError =
|
|
@@ -2499,7 +2479,7 @@ export const deleteToken: API.OperationMethod<
|
|
|
2499
2479
|
DeleteTokenResponse,
|
|
2500
2480
|
DeleteTokenError,
|
|
2501
2481
|
Credentials | HttpClient.HttpClient
|
|
2502
|
-
> = /*@__PURE__*/
|
|
2482
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2503
2483
|
input: DeleteTokenRequest,
|
|
2504
2484
|
output: DeleteTokenResponse,
|
|
2505
2485
|
errors: [InvalidRoute, MethodNotAllowed, TokenNotFound],
|
|
@@ -2507,11 +2487,10 @@ export const deleteToken: API.OperationMethod<
|
|
|
2507
2487
|
|
|
2508
2488
|
export interface VerifyTokenRequest {}
|
|
2509
2489
|
|
|
2510
|
-
export const VerifyTokenRequest = /*@__PURE__*/
|
|
2511
|
-
()
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
),
|
|
2490
|
+
export const VerifyTokenRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2491
|
+
Schema.Struct({}).pipe(
|
|
2492
|
+
T.Http({ method: "GET", path: "/user/tokens/verify" }),
|
|
2493
|
+
),
|
|
2515
2494
|
) as unknown as Schema.Codec<VerifyTokenRequest>;
|
|
2516
2495
|
|
|
2517
2496
|
export interface VerifyTokenResponse {
|
|
@@ -2525,26 +2504,25 @@ export interface VerifyTokenResponse {
|
|
|
2525
2504
|
notBefore?: string | null;
|
|
2526
2505
|
}
|
|
2527
2506
|
|
|
2528
|
-
export const VerifyTokenResponse = /*@__PURE__*/
|
|
2529
|
-
(
|
|
2530
|
-
Schema.
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
.
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
.pipe(T.ResponsePath("result")),
|
|
2507
|
+
export const VerifyTokenResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2508
|
+
Schema.Struct({
|
|
2509
|
+
id: Schema.String,
|
|
2510
|
+
status: Schema.Union([
|
|
2511
|
+
Schema.Literals(["active", "disabled", "expired"]),
|
|
2512
|
+
Schema.String,
|
|
2513
|
+
]),
|
|
2514
|
+
expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2515
|
+
notBefore: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2516
|
+
})
|
|
2517
|
+
.pipe(
|
|
2518
|
+
Schema.encodeKeys({
|
|
2519
|
+
id: "id",
|
|
2520
|
+
status: "status",
|
|
2521
|
+
expiresOn: "expires_on",
|
|
2522
|
+
notBefore: "not_before",
|
|
2523
|
+
}),
|
|
2524
|
+
)
|
|
2525
|
+
.pipe(T.ResponsePath("result")),
|
|
2548
2526
|
) as unknown as Schema.Codec<VerifyTokenResponse>;
|
|
2549
2527
|
|
|
2550
2528
|
export type VerifyTokenError = DefaultErrors | Forbidden;
|
|
@@ -2554,7 +2532,7 @@ export const verifyToken: API.OperationMethod<
|
|
|
2554
2532
|
VerifyTokenResponse,
|
|
2555
2533
|
VerifyTokenError,
|
|
2556
2534
|
Credentials | HttpClient.HttpClient
|
|
2557
|
-
> = /*@__PURE__*/
|
|
2535
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2558
2536
|
input: VerifyTokenRequest,
|
|
2559
2537
|
output: VerifyTokenResponse,
|
|
2560
2538
|
errors: [Forbidden],
|
|
@@ -2572,7 +2550,7 @@ export interface ListTokenPermissionGroupsRequest {
|
|
|
2572
2550
|
}
|
|
2573
2551
|
|
|
2574
2552
|
export const ListTokenPermissionGroupsRequest =
|
|
2575
|
-
/*@__PURE__*/
|
|
2553
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
2576
2554
|
Schema.Struct({
|
|
2577
2555
|
name: Schema.optional(Schema.String).pipe(T.HttpQuery("name")),
|
|
2578
2556
|
scope: Schema.optional(Schema.String).pipe(T.HttpQuery("scope")),
|
|
@@ -2612,7 +2590,7 @@ export interface ListTokenPermissionGroupsResponse {
|
|
|
2612
2590
|
}
|
|
2613
2591
|
|
|
2614
2592
|
export const ListTokenPermissionGroupsResponse =
|
|
2615
|
-
/*@__PURE__*/
|
|
2593
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
2616
2594
|
Schema.Struct({
|
|
2617
2595
|
result: Schema.Array(ListTokenPermissionGroupsResponseResult),
|
|
2618
2596
|
}),
|
|
@@ -2625,7 +2603,7 @@ export const listTokenPermissionGroups: API.PaginatedOperationMethod<
|
|
|
2625
2603
|
ListTokenPermissionGroupsResponse,
|
|
2626
2604
|
ListTokenPermissionGroupsError,
|
|
2627
2605
|
Credentials | HttpClient.HttpClient
|
|
2628
|
-
> = /*@__PURE__*/
|
|
2606
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
2629
2607
|
input: ListTokenPermissionGroupsRequest,
|
|
2630
2608
|
output: ListTokenPermissionGroupsResponse,
|
|
2631
2609
|
errors: [],
|
|
@@ -2643,17 +2621,16 @@ export interface PutTokenValueRequest {
|
|
|
2643
2621
|
tokenId: string;
|
|
2644
2622
|
}
|
|
2645
2623
|
|
|
2646
|
-
export const PutTokenValueRequest = /*@__PURE__*/
|
|
2647
|
-
(
|
|
2648
|
-
Schema.
|
|
2649
|
-
|
|
2650
|
-
}).pipe(T.Http({ method: "PUT", path: "/user/tokens/{tokenId}/value" })),
|
|
2624
|
+
export const PutTokenValueRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2625
|
+
Schema.Struct({
|
|
2626
|
+
tokenId: Schema.String.pipe(T.HttpPath("tokenId")),
|
|
2627
|
+
}).pipe(T.Http({ method: "PUT", path: "/user/tokens/{tokenId}/value" })),
|
|
2651
2628
|
) as unknown as Schema.Codec<PutTokenValueRequest>;
|
|
2652
2629
|
|
|
2653
2630
|
export type PutTokenValueResponse = string;
|
|
2654
2631
|
|
|
2655
|
-
export const PutTokenValueResponse = /*@__PURE__*/
|
|
2656
|
-
|
|
2632
|
+
export const PutTokenValueResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2633
|
+
Schema.String.pipe(T.ResponsePath("result")),
|
|
2657
2634
|
) as unknown as Schema.Codec<PutTokenValueResponse>;
|
|
2658
2635
|
|
|
2659
2636
|
export type PutTokenValueError = DefaultErrors | InvalidRoute | TokenNotFound;
|
|
@@ -2663,7 +2640,7 @@ export const putTokenValue: API.OperationMethod<
|
|
|
2663
2640
|
PutTokenValueResponse,
|
|
2664
2641
|
PutTokenValueError,
|
|
2665
2642
|
Credentials | HttpClient.HttpClient
|
|
2666
|
-
> = /*@__PURE__*/
|
|
2643
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2667
2644
|
input: PutTokenValueRequest,
|
|
2668
2645
|
output: PutTokenValueResponse,
|
|
2669
2646
|
errors: [InvalidRoute, TokenNotFound],
|
|
@@ -2675,7 +2652,7 @@ export const putTokenValue: API.OperationMethod<
|
|
|
2675
2652
|
|
|
2676
2653
|
export interface GetUserRequest {}
|
|
2677
2654
|
|
|
2678
|
-
export const GetUserRequest = /*@__PURE__*/
|
|
2655
|
+
export const GetUserRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2679
2656
|
Schema.Struct({}).pipe(T.Http({ method: "GET", path: "/user" })),
|
|
2680
2657
|
) as unknown as Schema.Codec<GetUserRequest>;
|
|
2681
2658
|
|
|
@@ -2719,7 +2696,7 @@ export interface GetUserResponse {
|
|
|
2719
2696
|
zipcode?: string | null;
|
|
2720
2697
|
}
|
|
2721
2698
|
|
|
2722
|
-
export const GetUserResponse = /*@__PURE__*/
|
|
2699
|
+
export const GetUserResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2723
2700
|
Schema.Struct({
|
|
2724
2701
|
id: Schema.String,
|
|
2725
2702
|
email: Schema.String,
|
|
@@ -2781,7 +2758,7 @@ export const getUser: API.OperationMethod<
|
|
|
2781
2758
|
GetUserResponse,
|
|
2782
2759
|
GetUserError,
|
|
2783
2760
|
Credentials | HttpClient.HttpClient
|
|
2784
|
-
> = /*@__PURE__*/
|
|
2761
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2785
2762
|
input: GetUserRequest,
|
|
2786
2763
|
output: GetUserResponse,
|
|
2787
2764
|
errors: [],
|
|
@@ -2800,7 +2777,7 @@ export interface PatchUserRequest {
|
|
|
2800
2777
|
zipcode?: string | null;
|
|
2801
2778
|
}
|
|
2802
2779
|
|
|
2803
|
-
export const PatchUserRequest = /*@__PURE__*/
|
|
2780
|
+
export const PatchUserRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2804
2781
|
Schema.Struct({
|
|
2805
2782
|
country: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2806
2783
|
firstName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -2859,60 +2836,59 @@ export interface PatchUserResponse {
|
|
|
2859
2836
|
zipcode?: string | null;
|
|
2860
2837
|
}
|
|
2861
2838
|
|
|
2862
|
-
export const PatchUserResponse = /*@__PURE__*/
|
|
2863
|
-
(
|
|
2864
|
-
Schema.
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
Schema.
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
.
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
.pipe(T.ResponsePath("result")),
|
|
2839
|
+
export const PatchUserResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2840
|
+
Schema.Struct({
|
|
2841
|
+
id: Schema.String,
|
|
2842
|
+
email: Schema.String,
|
|
2843
|
+
betas: Schema.optional(
|
|
2844
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
2845
|
+
),
|
|
2846
|
+
country: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2847
|
+
firstName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2848
|
+
hasBusinessZones: Schema.optional(
|
|
2849
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
2850
|
+
),
|
|
2851
|
+
hasEnterpriseZones: Schema.optional(
|
|
2852
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
2853
|
+
),
|
|
2854
|
+
hasProZones: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2855
|
+
lastName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2856
|
+
organizations: Schema.optional(
|
|
2857
|
+
Schema.Union([
|
|
2858
|
+
Schema.Array(ListOrganizationsResponseResult),
|
|
2859
|
+
Schema.Null,
|
|
2860
|
+
]),
|
|
2861
|
+
),
|
|
2862
|
+
suspended: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2863
|
+
telephone: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2864
|
+
twoFactorAuthenticationEnabled: Schema.optional(
|
|
2865
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
2866
|
+
),
|
|
2867
|
+
twoFactorAuthenticationLocked: Schema.optional(
|
|
2868
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
2869
|
+
),
|
|
2870
|
+
zipcode: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2871
|
+
})
|
|
2872
|
+
.pipe(
|
|
2873
|
+
Schema.encodeKeys({
|
|
2874
|
+
id: "id",
|
|
2875
|
+
email: "email",
|
|
2876
|
+
betas: "betas",
|
|
2877
|
+
country: "country",
|
|
2878
|
+
firstName: "first_name",
|
|
2879
|
+
hasBusinessZones: "has_business_zones",
|
|
2880
|
+
hasEnterpriseZones: "has_enterprise_zones",
|
|
2881
|
+
hasProZones: "has_pro_zones",
|
|
2882
|
+
lastName: "last_name",
|
|
2883
|
+
organizations: "organizations",
|
|
2884
|
+
suspended: "suspended",
|
|
2885
|
+
telephone: "telephone",
|
|
2886
|
+
twoFactorAuthenticationEnabled: "two_factor_authentication_enabled",
|
|
2887
|
+
twoFactorAuthenticationLocked: "two_factor_authentication_locked",
|
|
2888
|
+
zipcode: "zipcode",
|
|
2889
|
+
}),
|
|
2890
|
+
)
|
|
2891
|
+
.pipe(T.ResponsePath("result")),
|
|
2916
2892
|
) as unknown as Schema.Codec<PatchUserResponse>;
|
|
2917
2893
|
|
|
2918
2894
|
export type PatchUserError = DefaultErrors;
|
|
@@ -2922,7 +2898,7 @@ export const patchUser: API.OperationMethod<
|
|
|
2922
2898
|
PatchUserResponse,
|
|
2923
2899
|
PatchUserError,
|
|
2924
2900
|
Credentials | HttpClient.HttpClient
|
|
2925
|
-
> = /*@__PURE__*/
|
|
2901
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2926
2902
|
input: PatchUserRequest,
|
|
2927
2903
|
output: PatchUserResponse,
|
|
2928
2904
|
errors: [],
|