@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/flagship.ts
CHANGED
|
@@ -52,7 +52,7 @@ interface ListAppsResponseResult {
|
|
|
52
52
|
/** Email of the actor who last modified the app, or `edge-gateway` for gateway-authenticated changes. */
|
|
53
53
|
updatedBy: string;
|
|
54
54
|
}
|
|
55
|
-
const ListAppsResponseResult = /*@__PURE__*/
|
|
55
|
+
const ListAppsResponseResult = /*@__PURE__*/ Schema.suspend(() =>
|
|
56
56
|
Schema.Struct({
|
|
57
57
|
id: Schema.String,
|
|
58
58
|
createdAt: Schema.String,
|
|
@@ -89,7 +89,7 @@ interface GetAppFlagResponseRuleCondition {
|
|
|
89
89
|
value: unknown;
|
|
90
90
|
}
|
|
91
91
|
const GetAppFlagResponseRuleCondition =
|
|
92
|
-
/*@__PURE__*/
|
|
92
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
93
93
|
Schema.Struct({
|
|
94
94
|
attribute: Schema.String,
|
|
95
95
|
operator: Schema.Union([
|
|
@@ -183,7 +183,7 @@ interface GetAppFlagResponseRuleCondition1Claus1Claus1 {
|
|
|
183
183
|
logicalOperator: "AND" | "OR" | (string & {});
|
|
184
184
|
}
|
|
185
185
|
const GetAppFlagResponseRuleCondition1Claus1Claus1 =
|
|
186
|
-
/*@__PURE__*/
|
|
186
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
187
187
|
Schema.Struct({
|
|
188
188
|
clauses: Schema.Array(
|
|
189
189
|
Schema.Union([
|
|
@@ -374,7 +374,7 @@ interface GetAppFlagResponseRuleCondition1Claus1 {
|
|
|
374
374
|
logicalOperator: "AND" | "OR" | (string & {});
|
|
375
375
|
}
|
|
376
376
|
const GetAppFlagResponseRuleCondition1Claus1 =
|
|
377
|
-
/*@__PURE__*/
|
|
377
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
378
378
|
Schema.Struct({
|
|
379
379
|
clauses: Schema.Array(
|
|
380
380
|
Schema.Union([
|
|
@@ -465,7 +465,7 @@ interface GetAppFlagResponseRuleCondition1 {
|
|
|
465
465
|
logicalOperator: "AND" | "OR" | (string & {});
|
|
466
466
|
}
|
|
467
467
|
const GetAppFlagResponseRuleCondition1 =
|
|
468
|
-
/*@__PURE__*/
|
|
468
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
469
469
|
Schema.Struct({
|
|
470
470
|
clauses: Schema.Array(
|
|
471
471
|
Schema.Union([
|
|
@@ -491,7 +491,7 @@ interface Rollout {
|
|
|
491
491
|
/** Context attribute used for sticky bucketing. Defaults to `targetingKey`. If absent at evaluation time, bucketing is random per request. */
|
|
492
492
|
attribute?: string | null;
|
|
493
493
|
}
|
|
494
|
-
const Rollout = /*@__PURE__*/
|
|
494
|
+
const Rollout = /*@__PURE__*/ Schema.suspend(() =>
|
|
495
495
|
Schema.Struct({
|
|
496
496
|
percentage: Schema.Number,
|
|
497
497
|
attribute: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -573,7 +573,7 @@ interface Rule {
|
|
|
573
573
|
serveVariation: string;
|
|
574
574
|
rollout?: { percentage: number; attribute?: string | null } | null;
|
|
575
575
|
}
|
|
576
|
-
const Rule = /*@__PURE__*/
|
|
576
|
+
const Rule = /*@__PURE__*/ Schema.suspend(() =>
|
|
577
577
|
Schema.Struct({
|
|
578
578
|
conditions: Schema.Array(
|
|
579
579
|
Schema.Union([
|
|
@@ -665,7 +665,7 @@ interface ListAppFlagsResponseResultRuleCondition1Claus1 {
|
|
|
665
665
|
logicalOperator: "AND" | "OR" | (string & {});
|
|
666
666
|
}
|
|
667
667
|
const ListAppFlagsResponseResultRuleCondition1Claus1 =
|
|
668
|
-
/*@__PURE__*/
|
|
668
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
669
669
|
Schema.Struct({
|
|
670
670
|
clauses: Schema.Array(
|
|
671
671
|
Schema.Union([
|
|
@@ -856,7 +856,7 @@ interface ListAppFlagsResponseResultRuleCondition1 {
|
|
|
856
856
|
logicalOperator: "AND" | "OR" | (string & {});
|
|
857
857
|
}
|
|
858
858
|
const ListAppFlagsResponseResultRuleCondition1 =
|
|
859
|
-
/*@__PURE__*/
|
|
859
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
860
860
|
Schema.Struct({
|
|
861
861
|
clauses: Schema.Array(
|
|
862
862
|
Schema.Union([
|
|
@@ -951,7 +951,7 @@ interface Rule2 {
|
|
|
951
951
|
serveVariation: string;
|
|
952
952
|
rollout?: { percentage: number; attribute?: string | null } | null;
|
|
953
953
|
}
|
|
954
|
-
const Rule2 = /*@__PURE__*/
|
|
954
|
+
const Rule2 = /*@__PURE__*/ Schema.suspend(() =>
|
|
955
955
|
Schema.Struct({
|
|
956
956
|
conditions: Schema.Array(
|
|
957
957
|
Schema.Union([
|
|
@@ -1041,46 +1041,45 @@ interface ListAppFlagsResponseResult {
|
|
|
1041
1041
|
updatedAt?: string | null;
|
|
1042
1042
|
updatedBy?: string | null;
|
|
1043
1043
|
}
|
|
1044
|
-
const ListAppFlagsResponseResult = /*@__PURE__*/
|
|
1045
|
-
(
|
|
1046
|
-
Schema.
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1044
|
+
const ListAppFlagsResponseResult = /*@__PURE__*/ Schema.suspend(() =>
|
|
1045
|
+
Schema.Struct({
|
|
1046
|
+
defaultVariation: Schema.String,
|
|
1047
|
+
enabled: Schema.Boolean,
|
|
1048
|
+
key: Schema.String,
|
|
1049
|
+
rules: Schema.Array(Rule2),
|
|
1050
|
+
variations: Schema.Record(Schema.String, Schema.Unknown),
|
|
1051
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1052
|
+
type: Schema.optional(
|
|
1053
|
+
Schema.Union([
|
|
1054
1054
|
Schema.Union([
|
|
1055
|
-
Schema.
|
|
1056
|
-
|
|
1057
|
-
Schema.String,
|
|
1058
|
-
]),
|
|
1059
|
-
Schema.Null,
|
|
1055
|
+
Schema.Literals(["boolean", "string", "number", "json"]),
|
|
1056
|
+
Schema.String,
|
|
1060
1057
|
]),
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
updatedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1064
|
-
}).pipe(
|
|
1065
|
-
Schema.encodeKeys({
|
|
1066
|
-
defaultVariation: "default_variation",
|
|
1067
|
-
enabled: "enabled",
|
|
1068
|
-
key: "key",
|
|
1069
|
-
rules: "rules",
|
|
1070
|
-
variations: "variations",
|
|
1071
|
-
description: "description",
|
|
1072
|
-
type: "type",
|
|
1073
|
-
updatedAt: "updated_at",
|
|
1074
|
-
updatedBy: "updated_by",
|
|
1075
|
-
}),
|
|
1058
|
+
Schema.Null,
|
|
1059
|
+
]),
|
|
1076
1060
|
),
|
|
1061
|
+
updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1062
|
+
updatedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1063
|
+
}).pipe(
|
|
1064
|
+
Schema.encodeKeys({
|
|
1065
|
+
defaultVariation: "default_variation",
|
|
1066
|
+
enabled: "enabled",
|
|
1067
|
+
key: "key",
|
|
1068
|
+
rules: "rules",
|
|
1069
|
+
variations: "variations",
|
|
1070
|
+
description: "description",
|
|
1071
|
+
type: "type",
|
|
1072
|
+
updatedAt: "updated_at",
|
|
1073
|
+
updatedBy: "updated_by",
|
|
1074
|
+
}),
|
|
1075
|
+
),
|
|
1077
1076
|
) as unknown as Schema.Codec<ListAppFlagsResponseResult>;
|
|
1078
1077
|
|
|
1079
1078
|
interface ListAppFlagsResponseResultInfoCursors {
|
|
1080
1079
|
after?: string | null;
|
|
1081
1080
|
}
|
|
1082
1081
|
const ListAppFlagsResponseResultInfoCursors =
|
|
1083
|
-
/*@__PURE__*/
|
|
1082
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1084
1083
|
Schema.Struct({
|
|
1085
1084
|
after: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1086
1085
|
}),
|
|
@@ -1090,7 +1089,7 @@ interface ListAppFlagsResponseResultInfo {
|
|
|
1090
1089
|
cursors?: { after?: string | null } | null;
|
|
1091
1090
|
}
|
|
1092
1091
|
const ListAppFlagsResponseResultInfo =
|
|
1093
|
-
/*@__PURE__*/
|
|
1092
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1094
1093
|
Schema.Struct({
|
|
1095
1094
|
cursors: Schema.optional(
|
|
1096
1095
|
Schema.Union([ListAppFlagsResponseResultInfoCursors, Schema.Null]),
|
|
@@ -1163,7 +1162,7 @@ interface ListAppFlagChangelogsResponseResult {
|
|
|
1163
1162
|
flagKey: string;
|
|
1164
1163
|
}
|
|
1165
1164
|
const ListAppFlagChangelogsResponseResult =
|
|
1166
|
-
/*@__PURE__*/
|
|
1165
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1167
1166
|
Schema.Struct({
|
|
1168
1167
|
after: ListAppFlagsResponseResult,
|
|
1169
1168
|
event: Schema.Literal("create"),
|
|
@@ -1242,7 +1241,7 @@ interface ListAppFlagChangelogsResponseResult1 {
|
|
|
1242
1241
|
flagKey: string;
|
|
1243
1242
|
}
|
|
1244
1243
|
const ListAppFlagChangelogsResponseResult1 =
|
|
1245
|
-
/*@__PURE__*/
|
|
1244
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1246
1245
|
Schema.Struct({
|
|
1247
1246
|
after: ListAppFlagsResponseResult,
|
|
1248
1247
|
event: Schema.Literal("delete"),
|
|
@@ -1322,7 +1321,7 @@ interface ListAppFlagChangelogsResponseResult2 {
|
|
|
1322
1321
|
flagKey: string;
|
|
1323
1322
|
}
|
|
1324
1323
|
const ListAppFlagChangelogsResponseResult2 =
|
|
1325
|
-
/*@__PURE__*/
|
|
1324
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1326
1325
|
Schema.Struct({
|
|
1327
1326
|
after: ListAppFlagsResponseResult,
|
|
1328
1327
|
diff: Schema.Record(Schema.String, Schema.Unknown),
|
|
@@ -1348,7 +1347,7 @@ export interface GetAppRequest {
|
|
|
1348
1347
|
accountId: string;
|
|
1349
1348
|
}
|
|
1350
1349
|
|
|
1351
|
-
export const GetAppRequest = /*@__PURE__*/
|
|
1350
|
+
export const GetAppRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1352
1351
|
Schema.Struct({
|
|
1353
1352
|
appId: Schema.String.pipe(T.HttpPath("appId")),
|
|
1354
1353
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -1369,7 +1368,7 @@ export interface GetAppResponse {
|
|
|
1369
1368
|
updatedBy: string;
|
|
1370
1369
|
}
|
|
1371
1370
|
|
|
1372
|
-
export const GetAppResponse = /*@__PURE__*/
|
|
1371
|
+
export const GetAppResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
1373
1372
|
Schema.Struct({
|
|
1374
1373
|
id: Schema.String,
|
|
1375
1374
|
createdAt: Schema.String,
|
|
@@ -1396,7 +1395,7 @@ export const getApp: API.OperationMethod<
|
|
|
1396
1395
|
GetAppResponse,
|
|
1397
1396
|
GetAppError,
|
|
1398
1397
|
Credentials | HttpClient.HttpClient
|
|
1399
|
-
> = /*@__PURE__*/
|
|
1398
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1400
1399
|
input: GetAppRequest,
|
|
1401
1400
|
output: GetAppResponse,
|
|
1402
1401
|
errors: [FlagshipAppNotFound],
|
|
@@ -1407,7 +1406,7 @@ export interface ListAppsRequest {
|
|
|
1407
1406
|
accountId: string;
|
|
1408
1407
|
}
|
|
1409
1408
|
|
|
1410
|
-
export const ListAppsRequest = /*@__PURE__*/
|
|
1409
|
+
export const ListAppsRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1411
1410
|
Schema.Struct({
|
|
1412
1411
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1413
1412
|
}).pipe(
|
|
@@ -1425,7 +1424,7 @@ export interface ListAppsResponse {
|
|
|
1425
1424
|
}[];
|
|
1426
1425
|
}
|
|
1427
1426
|
|
|
1428
|
-
export const ListAppsResponse = /*@__PURE__*/
|
|
1427
|
+
export const ListAppsResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
1429
1428
|
Schema.Struct({
|
|
1430
1429
|
result: Schema.Array(ListAppsResponseResult),
|
|
1431
1430
|
}),
|
|
@@ -1438,7 +1437,7 @@ export const listApps: API.PaginatedOperationMethod<
|
|
|
1438
1437
|
ListAppsResponse,
|
|
1439
1438
|
ListAppsError,
|
|
1440
1439
|
Credentials | HttpClient.HttpClient
|
|
1441
|
-
> = /*@__PURE__*/
|
|
1440
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
1442
1441
|
input: ListAppsRequest,
|
|
1443
1442
|
output: ListAppsResponse,
|
|
1444
1443
|
errors: [],
|
|
@@ -1455,7 +1454,7 @@ export interface CreateAppRequest {
|
|
|
1455
1454
|
name: string;
|
|
1456
1455
|
}
|
|
1457
1456
|
|
|
1458
|
-
export const CreateAppRequest = /*@__PURE__*/
|
|
1457
|
+
export const CreateAppRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1459
1458
|
Schema.Struct({
|
|
1460
1459
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1461
1460
|
name: Schema.String,
|
|
@@ -1473,25 +1472,24 @@ export interface CreateAppResponse {
|
|
|
1473
1472
|
updatedBy: string;
|
|
1474
1473
|
}
|
|
1475
1474
|
|
|
1476
|
-
export const CreateAppResponse = /*@__PURE__*/
|
|
1477
|
-
(
|
|
1478
|
-
Schema.
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
.
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
.pipe(T.ResponsePath("result")),
|
|
1475
|
+
export const CreateAppResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
1476
|
+
Schema.Struct({
|
|
1477
|
+
id: Schema.String,
|
|
1478
|
+
createdAt: Schema.String,
|
|
1479
|
+
name: Schema.String,
|
|
1480
|
+
updatedAt: Schema.String,
|
|
1481
|
+
updatedBy: Schema.String,
|
|
1482
|
+
})
|
|
1483
|
+
.pipe(
|
|
1484
|
+
Schema.encodeKeys({
|
|
1485
|
+
id: "id",
|
|
1486
|
+
createdAt: "created_at",
|
|
1487
|
+
name: "name",
|
|
1488
|
+
updatedAt: "updated_at",
|
|
1489
|
+
updatedBy: "updated_by",
|
|
1490
|
+
}),
|
|
1491
|
+
)
|
|
1492
|
+
.pipe(T.ResponsePath("result")),
|
|
1495
1493
|
) as unknown as Schema.Codec<CreateAppResponse>;
|
|
1496
1494
|
|
|
1497
1495
|
export type CreateAppError = DefaultErrors;
|
|
@@ -1501,7 +1499,7 @@ export const createApp: API.OperationMethod<
|
|
|
1501
1499
|
CreateAppResponse,
|
|
1502
1500
|
CreateAppError,
|
|
1503
1501
|
Credentials | HttpClient.HttpClient
|
|
1504
|
-
> = /*@__PURE__*/
|
|
1502
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1505
1503
|
input: CreateAppRequest,
|
|
1506
1504
|
output: CreateAppResponse,
|
|
1507
1505
|
errors: [],
|
|
@@ -1515,7 +1513,7 @@ export interface UpdateAppRequest {
|
|
|
1515
1513
|
name?: string;
|
|
1516
1514
|
}
|
|
1517
1515
|
|
|
1518
|
-
export const UpdateAppRequest = /*@__PURE__*/
|
|
1516
|
+
export const UpdateAppRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1519
1517
|
Schema.Struct({
|
|
1520
1518
|
appId: Schema.String.pipe(T.HttpPath("appId")),
|
|
1521
1519
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -1537,25 +1535,24 @@ export interface UpdateAppResponse {
|
|
|
1537
1535
|
updatedBy: string;
|
|
1538
1536
|
}
|
|
1539
1537
|
|
|
1540
|
-
export const UpdateAppResponse = /*@__PURE__*/
|
|
1541
|
-
(
|
|
1542
|
-
Schema.
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
.
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
.pipe(T.ResponsePath("result")),
|
|
1538
|
+
export const UpdateAppResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
1539
|
+
Schema.Struct({
|
|
1540
|
+
id: Schema.String,
|
|
1541
|
+
createdAt: Schema.String,
|
|
1542
|
+
name: Schema.String,
|
|
1543
|
+
updatedAt: Schema.String,
|
|
1544
|
+
updatedBy: Schema.String,
|
|
1545
|
+
})
|
|
1546
|
+
.pipe(
|
|
1547
|
+
Schema.encodeKeys({
|
|
1548
|
+
id: "id",
|
|
1549
|
+
createdAt: "created_at",
|
|
1550
|
+
name: "name",
|
|
1551
|
+
updatedAt: "updated_at",
|
|
1552
|
+
updatedBy: "updated_by",
|
|
1553
|
+
}),
|
|
1554
|
+
)
|
|
1555
|
+
.pipe(T.ResponsePath("result")),
|
|
1559
1556
|
) as unknown as Schema.Codec<UpdateAppResponse>;
|
|
1560
1557
|
|
|
1561
1558
|
export type UpdateAppError = DefaultErrors | FlagshipAppNotFound;
|
|
@@ -1565,7 +1562,7 @@ export const updateApp: API.OperationMethod<
|
|
|
1565
1562
|
UpdateAppResponse,
|
|
1566
1563
|
UpdateAppError,
|
|
1567
1564
|
Credentials | HttpClient.HttpClient
|
|
1568
|
-
> = /*@__PURE__*/
|
|
1565
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1569
1566
|
input: UpdateAppRequest,
|
|
1570
1567
|
output: UpdateAppResponse,
|
|
1571
1568
|
errors: [FlagshipAppNotFound],
|
|
@@ -1577,7 +1574,7 @@ export interface DeleteAppRequest {
|
|
|
1577
1574
|
accountId: string;
|
|
1578
1575
|
}
|
|
1579
1576
|
|
|
1580
|
-
export const DeleteAppRequest = /*@__PURE__*/
|
|
1577
|
+
export const DeleteAppRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1581
1578
|
Schema.Struct({
|
|
1582
1579
|
appId: Schema.String.pipe(T.HttpPath("appId")),
|
|
1583
1580
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -1593,11 +1590,10 @@ export interface DeleteAppResponse {
|
|
|
1593
1590
|
id: string;
|
|
1594
1591
|
}
|
|
1595
1592
|
|
|
1596
|
-
export const DeleteAppResponse = /*@__PURE__*/
|
|
1597
|
-
(
|
|
1598
|
-
Schema.
|
|
1599
|
-
|
|
1600
|
-
}).pipe(T.ResponsePath("result")),
|
|
1593
|
+
export const DeleteAppResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
1594
|
+
Schema.Struct({
|
|
1595
|
+
id: Schema.String,
|
|
1596
|
+
}).pipe(T.ResponsePath("result")),
|
|
1601
1597
|
) as unknown as Schema.Codec<DeleteAppResponse>;
|
|
1602
1598
|
|
|
1603
1599
|
export type DeleteAppError = DefaultErrors | FlagshipAppNotFound;
|
|
@@ -1607,7 +1603,7 @@ export const deleteApp: API.OperationMethod<
|
|
|
1607
1603
|
DeleteAppResponse,
|
|
1608
1604
|
DeleteAppError,
|
|
1609
1605
|
Credentials | HttpClient.HttpClient
|
|
1610
|
-
> = /*@__PURE__*/
|
|
1606
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1611
1607
|
input: DeleteAppRequest,
|
|
1612
1608
|
output: DeleteAppResponse,
|
|
1613
1609
|
errors: [FlagshipAppNotFound],
|
|
@@ -1627,21 +1623,20 @@ export interface GetAppEvaluateRequest {
|
|
|
1627
1623
|
targetingKey?: string;
|
|
1628
1624
|
}
|
|
1629
1625
|
|
|
1630
|
-
export const GetAppEvaluateRequest = /*@__PURE__*/
|
|
1631
|
-
(
|
|
1632
|
-
Schema.
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
T.HttpQuery("targetingKey"),
|
|
1638
|
-
),
|
|
1639
|
-
}).pipe(
|
|
1640
|
-
T.Http({
|
|
1641
|
-
method: "GET",
|
|
1642
|
-
path: "/accounts/{account_id}/flagship/apps/{appId}/evaluate",
|
|
1643
|
-
}),
|
|
1626
|
+
export const GetAppEvaluateRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1627
|
+
Schema.Struct({
|
|
1628
|
+
appId: Schema.String.pipe(T.HttpPath("appId")),
|
|
1629
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1630
|
+
flagKey: Schema.String.pipe(T.HttpQuery("flagKey")),
|
|
1631
|
+
targetingKey: Schema.optional(Schema.String).pipe(
|
|
1632
|
+
T.HttpQuery("targetingKey"),
|
|
1644
1633
|
),
|
|
1634
|
+
}).pipe(
|
|
1635
|
+
T.Http({
|
|
1636
|
+
method: "GET",
|
|
1637
|
+
path: "/accounts/{account_id}/flagship/apps/{appId}/evaluate",
|
|
1638
|
+
}),
|
|
1639
|
+
),
|
|
1645
1640
|
) as unknown as Schema.Codec<GetAppEvaluateRequest>;
|
|
1646
1641
|
|
|
1647
1642
|
export interface GetAppEvaluateResponse {
|
|
@@ -1658,7 +1653,7 @@ export interface GetAppEvaluateResponse {
|
|
|
1658
1653
|
}
|
|
1659
1654
|
|
|
1660
1655
|
export const GetAppEvaluateResponse =
|
|
1661
|
-
/*@__PURE__*/
|
|
1656
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1662
1657
|
Schema.Struct({
|
|
1663
1658
|
flagKey: Schema.String,
|
|
1664
1659
|
reason: Schema.Union([
|
|
@@ -1686,7 +1681,7 @@ export const getAppEvaluate: API.OperationMethod<
|
|
|
1686
1681
|
GetAppEvaluateResponse,
|
|
1687
1682
|
GetAppEvaluateError,
|
|
1688
1683
|
Credentials | HttpClient.HttpClient
|
|
1689
|
-
> = /*@__PURE__*/
|
|
1684
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1690
1685
|
input: GetAppEvaluateRequest,
|
|
1691
1686
|
output: GetAppEvaluateResponse,
|
|
1692
1687
|
errors: [],
|
|
@@ -1703,18 +1698,17 @@ export interface GetAppFlagRequest {
|
|
|
1703
1698
|
accountId: string;
|
|
1704
1699
|
}
|
|
1705
1700
|
|
|
1706
|
-
export const GetAppFlagRequest = /*@__PURE__*/
|
|
1707
|
-
(
|
|
1708
|
-
Schema.
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
),
|
|
1701
|
+
export const GetAppFlagRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1702
|
+
Schema.Struct({
|
|
1703
|
+
appId: Schema.String.pipe(T.HttpPath("appId")),
|
|
1704
|
+
flagKey: Schema.String.pipe(T.HttpPath("flagKey")),
|
|
1705
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1706
|
+
}).pipe(
|
|
1707
|
+
T.Http({
|
|
1708
|
+
method: "GET",
|
|
1709
|
+
path: "/accounts/{account_id}/flagship/apps/{appId}/flags/{flagKey}",
|
|
1710
|
+
}),
|
|
1711
|
+
),
|
|
1718
1712
|
) as unknown as Schema.Codec<GetAppFlagRequest>;
|
|
1719
1713
|
|
|
1720
1714
|
export interface GetAppFlagResponse {
|
|
@@ -1787,41 +1781,40 @@ export interface GetAppFlagResponse {
|
|
|
1787
1781
|
updatedBy?: string | null;
|
|
1788
1782
|
}
|
|
1789
1783
|
|
|
1790
|
-
export const GetAppFlagResponse = /*@__PURE__*/
|
|
1791
|
-
(
|
|
1792
|
-
Schema.
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1784
|
+
export const GetAppFlagResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
1785
|
+
Schema.Struct({
|
|
1786
|
+
defaultVariation: Schema.String,
|
|
1787
|
+
enabled: Schema.Boolean,
|
|
1788
|
+
key: Schema.String,
|
|
1789
|
+
rules: Schema.Array(Rule),
|
|
1790
|
+
variations: Schema.Record(Schema.String, Schema.Unknown),
|
|
1791
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1792
|
+
type: Schema.optional(
|
|
1793
|
+
Schema.Union([
|
|
1800
1794
|
Schema.Union([
|
|
1801
|
-
Schema.
|
|
1802
|
-
|
|
1803
|
-
Schema.String,
|
|
1804
|
-
]),
|
|
1805
|
-
Schema.Null,
|
|
1795
|
+
Schema.Literals(["boolean", "string", "number", "json"]),
|
|
1796
|
+
Schema.String,
|
|
1806
1797
|
]),
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1798
|
+
Schema.Null,
|
|
1799
|
+
]),
|
|
1800
|
+
),
|
|
1801
|
+
updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1802
|
+
updatedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1803
|
+
})
|
|
1804
|
+
.pipe(
|
|
1805
|
+
Schema.encodeKeys({
|
|
1806
|
+
defaultVariation: "default_variation",
|
|
1807
|
+
enabled: "enabled",
|
|
1808
|
+
key: "key",
|
|
1809
|
+
rules: "rules",
|
|
1810
|
+
variations: "variations",
|
|
1811
|
+
description: "description",
|
|
1812
|
+
type: "type",
|
|
1813
|
+
updatedAt: "updated_at",
|
|
1814
|
+
updatedBy: "updated_by",
|
|
1815
|
+
}),
|
|
1816
|
+
)
|
|
1817
|
+
.pipe(T.ResponsePath("result")),
|
|
1825
1818
|
) as unknown as Schema.Codec<GetAppFlagResponse>;
|
|
1826
1819
|
|
|
1827
1820
|
export type GetAppFlagError =
|
|
@@ -1834,7 +1827,7 @@ export const getAppFlag: API.OperationMethod<
|
|
|
1834
1827
|
GetAppFlagResponse,
|
|
1835
1828
|
GetAppFlagError,
|
|
1836
1829
|
Credentials | HttpClient.HttpClient
|
|
1837
|
-
> = /*@__PURE__*/
|
|
1830
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1838
1831
|
input: GetAppFlagRequest,
|
|
1839
1832
|
output: GetAppFlagResponse,
|
|
1840
1833
|
errors: [FlagshipFlagNotFound, FlagshipAppNotFound],
|
|
@@ -1849,19 +1842,18 @@ export interface ListAppFlagsRequest {
|
|
|
1849
1842
|
limit?: string;
|
|
1850
1843
|
}
|
|
1851
1844
|
|
|
1852
|
-
export const ListAppFlagsRequest = /*@__PURE__*/
|
|
1853
|
-
(
|
|
1854
|
-
Schema.
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
),
|
|
1845
|
+
export const ListAppFlagsRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1846
|
+
Schema.Struct({
|
|
1847
|
+
appId: Schema.String.pipe(T.HttpPath("appId")),
|
|
1848
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1849
|
+
cursor: Schema.optional(Schema.String).pipe(T.HttpQuery("cursor")),
|
|
1850
|
+
limit: Schema.optional(Schema.String).pipe(T.HttpQuery("limit")),
|
|
1851
|
+
}).pipe(
|
|
1852
|
+
T.Http({
|
|
1853
|
+
method: "GET",
|
|
1854
|
+
path: "/accounts/{account_id}/flagship/apps/{appId}/flags",
|
|
1855
|
+
}),
|
|
1856
|
+
),
|
|
1865
1857
|
) as unknown as Schema.Codec<ListAppFlagsRequest>;
|
|
1866
1858
|
|
|
1867
1859
|
export interface ListAppFlagsResponse {
|
|
@@ -1913,14 +1905,13 @@ export interface ListAppFlagsResponse {
|
|
|
1913
1905
|
resultInfo?: { cursors?: { after?: string | null } | null } | null;
|
|
1914
1906
|
}
|
|
1915
1907
|
|
|
1916
|
-
export const ListAppFlagsResponse = /*@__PURE__*/
|
|
1917
|
-
(
|
|
1918
|
-
Schema.
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
|
|
1908
|
+
export const ListAppFlagsResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
1909
|
+
Schema.Struct({
|
|
1910
|
+
result: Schema.Array(ListAppFlagsResponseResult),
|
|
1911
|
+
resultInfo: Schema.optional(
|
|
1912
|
+
Schema.Union([ListAppFlagsResponseResultInfo, Schema.Null]),
|
|
1913
|
+
),
|
|
1914
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
|
|
1924
1915
|
) as unknown as Schema.Codec<ListAppFlagsResponse>;
|
|
1925
1916
|
|
|
1926
1917
|
export type ListAppFlagsError = DefaultErrors | FlagshipAppNotFound;
|
|
@@ -1930,7 +1921,7 @@ export const listAppFlags: API.PaginatedOperationMethod<
|
|
|
1930
1921
|
ListAppFlagsResponse,
|
|
1931
1922
|
ListAppFlagsError,
|
|
1932
1923
|
Credentials | HttpClient.HttpClient
|
|
1933
|
-
> = /*@__PURE__*/
|
|
1924
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
1934
1925
|
input: ListAppFlagsRequest,
|
|
1935
1926
|
output: ListAppFlagsResponse,
|
|
1936
1927
|
errors: [FlagshipAppNotFound],
|
|
@@ -2014,38 +2005,37 @@ export interface CreateAppFlagRequest {
|
|
|
2014
2005
|
type?: "boolean" | "string" | "number" | "json" | (string & {});
|
|
2015
2006
|
}
|
|
2016
2007
|
|
|
2017
|
-
export const CreateAppFlagRequest = /*@__PURE__*/
|
|
2018
|
-
(
|
|
2019
|
-
Schema.
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
Schema.
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
]),
|
|
2033
|
-
),
|
|
2034
|
-
}).pipe(
|
|
2035
|
-
Schema.encodeKeys({
|
|
2036
|
-
defaultVariation: "default_variation",
|
|
2037
|
-
enabled: "enabled",
|
|
2038
|
-
key: "key",
|
|
2039
|
-
rules: "rules",
|
|
2040
|
-
variations: "variations",
|
|
2041
|
-
description: "description",
|
|
2042
|
-
type: "type",
|
|
2043
|
-
}),
|
|
2044
|
-
T.Http({
|
|
2045
|
-
method: "POST",
|
|
2046
|
-
path: "/accounts/{account_id}/flagship/apps/{appId}/flags",
|
|
2047
|
-
}),
|
|
2008
|
+
export const CreateAppFlagRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2009
|
+
Schema.Struct({
|
|
2010
|
+
appId: Schema.String.pipe(T.HttpPath("appId")),
|
|
2011
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2012
|
+
defaultVariation: Schema.String,
|
|
2013
|
+
enabled: Schema.Boolean,
|
|
2014
|
+
key: Schema.String,
|
|
2015
|
+
rules: Schema.Array(Rule),
|
|
2016
|
+
variations: Schema.Record(Schema.String, Schema.Unknown),
|
|
2017
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2018
|
+
type: Schema.optional(
|
|
2019
|
+
Schema.Union([
|
|
2020
|
+
Schema.Literals(["boolean", "string", "number", "json"]),
|
|
2021
|
+
Schema.String,
|
|
2022
|
+
]),
|
|
2048
2023
|
),
|
|
2024
|
+
}).pipe(
|
|
2025
|
+
Schema.encodeKeys({
|
|
2026
|
+
defaultVariation: "default_variation",
|
|
2027
|
+
enabled: "enabled",
|
|
2028
|
+
key: "key",
|
|
2029
|
+
rules: "rules",
|
|
2030
|
+
variations: "variations",
|
|
2031
|
+
description: "description",
|
|
2032
|
+
type: "type",
|
|
2033
|
+
}),
|
|
2034
|
+
T.Http({
|
|
2035
|
+
method: "POST",
|
|
2036
|
+
path: "/accounts/{account_id}/flagship/apps/{appId}/flags",
|
|
2037
|
+
}),
|
|
2038
|
+
),
|
|
2049
2039
|
) as unknown as Schema.Codec<CreateAppFlagRequest>;
|
|
2050
2040
|
|
|
2051
2041
|
export interface CreateAppFlagResponse {
|
|
@@ -2118,41 +2108,40 @@ export interface CreateAppFlagResponse {
|
|
|
2118
2108
|
updatedBy?: string | null;
|
|
2119
2109
|
}
|
|
2120
2110
|
|
|
2121
|
-
export const CreateAppFlagResponse = /*@__PURE__*/
|
|
2122
|
-
(
|
|
2123
|
-
Schema.
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2111
|
+
export const CreateAppFlagResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2112
|
+
Schema.Struct({
|
|
2113
|
+
defaultVariation: Schema.String,
|
|
2114
|
+
enabled: Schema.Boolean,
|
|
2115
|
+
key: Schema.String,
|
|
2116
|
+
rules: Schema.Array(Rule),
|
|
2117
|
+
variations: Schema.Record(Schema.String, Schema.Unknown),
|
|
2118
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2119
|
+
type: Schema.optional(
|
|
2120
|
+
Schema.Union([
|
|
2131
2121
|
Schema.Union([
|
|
2132
|
-
Schema.
|
|
2133
|
-
|
|
2134
|
-
Schema.String,
|
|
2135
|
-
]),
|
|
2136
|
-
Schema.Null,
|
|
2122
|
+
Schema.Literals(["boolean", "string", "number", "json"]),
|
|
2123
|
+
Schema.String,
|
|
2137
2124
|
]),
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2125
|
+
Schema.Null,
|
|
2126
|
+
]),
|
|
2127
|
+
),
|
|
2128
|
+
updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2129
|
+
updatedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2130
|
+
})
|
|
2131
|
+
.pipe(
|
|
2132
|
+
Schema.encodeKeys({
|
|
2133
|
+
defaultVariation: "default_variation",
|
|
2134
|
+
enabled: "enabled",
|
|
2135
|
+
key: "key",
|
|
2136
|
+
rules: "rules",
|
|
2137
|
+
variations: "variations",
|
|
2138
|
+
description: "description",
|
|
2139
|
+
type: "type",
|
|
2140
|
+
updatedAt: "updated_at",
|
|
2141
|
+
updatedBy: "updated_by",
|
|
2142
|
+
}),
|
|
2143
|
+
)
|
|
2144
|
+
.pipe(T.ResponsePath("result")),
|
|
2156
2145
|
) as unknown as Schema.Codec<CreateAppFlagResponse>;
|
|
2157
2146
|
|
|
2158
2147
|
export type CreateAppFlagError =
|
|
@@ -2165,7 +2154,7 @@ export const createAppFlag: API.OperationMethod<
|
|
|
2165
2154
|
CreateAppFlagResponse,
|
|
2166
2155
|
CreateAppFlagError,
|
|
2167
2156
|
Credentials | HttpClient.HttpClient
|
|
2168
|
-
> = /*@__PURE__*/
|
|
2157
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2169
2158
|
input: CreateAppFlagRequest,
|
|
2170
2159
|
output: CreateAppFlagResponse,
|
|
2171
2160
|
errors: [FlagshipFlagAlreadyExists, FlagshipAppNotFound],
|
|
@@ -2244,39 +2233,38 @@ export interface UpdateAppFlagRequest {
|
|
|
2244
2233
|
type?: "boolean" | "string" | "number" | "json" | (string & {});
|
|
2245
2234
|
}
|
|
2246
2235
|
|
|
2247
|
-
export const UpdateAppFlagRequest = /*@__PURE__*/
|
|
2248
|
-
(
|
|
2249
|
-
Schema.
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
Schema.
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
]),
|
|
2264
|
-
),
|
|
2265
|
-
}).pipe(
|
|
2266
|
-
Schema.encodeKeys({
|
|
2267
|
-
defaultVariation: "default_variation",
|
|
2268
|
-
enabled: "enabled",
|
|
2269
|
-
key: "key",
|
|
2270
|
-
rules: "rules",
|
|
2271
|
-
variations: "variations",
|
|
2272
|
-
description: "description",
|
|
2273
|
-
type: "type",
|
|
2274
|
-
}),
|
|
2275
|
-
T.Http({
|
|
2276
|
-
method: "PUT",
|
|
2277
|
-
path: "/accounts/{account_id}/flagship/apps/{appId}/flags/{flagKey}",
|
|
2278
|
-
}),
|
|
2236
|
+
export const UpdateAppFlagRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2237
|
+
Schema.Struct({
|
|
2238
|
+
appId: Schema.String.pipe(T.HttpPath("appId")),
|
|
2239
|
+
flagKey: Schema.String.pipe(T.HttpPath("flagKey")),
|
|
2240
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2241
|
+
defaultVariation: Schema.String,
|
|
2242
|
+
enabled: Schema.Boolean,
|
|
2243
|
+
key: Schema.String,
|
|
2244
|
+
rules: Schema.Array(Rule),
|
|
2245
|
+
variations: Schema.Record(Schema.String, Schema.Unknown),
|
|
2246
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2247
|
+
type: Schema.optional(
|
|
2248
|
+
Schema.Union([
|
|
2249
|
+
Schema.Literals(["boolean", "string", "number", "json"]),
|
|
2250
|
+
Schema.String,
|
|
2251
|
+
]),
|
|
2279
2252
|
),
|
|
2253
|
+
}).pipe(
|
|
2254
|
+
Schema.encodeKeys({
|
|
2255
|
+
defaultVariation: "default_variation",
|
|
2256
|
+
enabled: "enabled",
|
|
2257
|
+
key: "key",
|
|
2258
|
+
rules: "rules",
|
|
2259
|
+
variations: "variations",
|
|
2260
|
+
description: "description",
|
|
2261
|
+
type: "type",
|
|
2262
|
+
}),
|
|
2263
|
+
T.Http({
|
|
2264
|
+
method: "PUT",
|
|
2265
|
+
path: "/accounts/{account_id}/flagship/apps/{appId}/flags/{flagKey}",
|
|
2266
|
+
}),
|
|
2267
|
+
),
|
|
2280
2268
|
) as unknown as Schema.Codec<UpdateAppFlagRequest>;
|
|
2281
2269
|
|
|
2282
2270
|
export interface UpdateAppFlagResponse {
|
|
@@ -2349,41 +2337,40 @@ export interface UpdateAppFlagResponse {
|
|
|
2349
2337
|
updatedBy?: string | null;
|
|
2350
2338
|
}
|
|
2351
2339
|
|
|
2352
|
-
export const UpdateAppFlagResponse = /*@__PURE__*/
|
|
2353
|
-
(
|
|
2354
|
-
Schema.
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2340
|
+
export const UpdateAppFlagResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2341
|
+
Schema.Struct({
|
|
2342
|
+
defaultVariation: Schema.String,
|
|
2343
|
+
enabled: Schema.Boolean,
|
|
2344
|
+
key: Schema.String,
|
|
2345
|
+
rules: Schema.Array(Rule),
|
|
2346
|
+
variations: Schema.Record(Schema.String, Schema.Unknown),
|
|
2347
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2348
|
+
type: Schema.optional(
|
|
2349
|
+
Schema.Union([
|
|
2362
2350
|
Schema.Union([
|
|
2363
|
-
Schema.
|
|
2364
|
-
|
|
2365
|
-
Schema.String,
|
|
2366
|
-
]),
|
|
2367
|
-
Schema.Null,
|
|
2351
|
+
Schema.Literals(["boolean", "string", "number", "json"]),
|
|
2352
|
+
Schema.String,
|
|
2368
2353
|
]),
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2354
|
+
Schema.Null,
|
|
2355
|
+
]),
|
|
2356
|
+
),
|
|
2357
|
+
updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2358
|
+
updatedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2359
|
+
})
|
|
2360
|
+
.pipe(
|
|
2361
|
+
Schema.encodeKeys({
|
|
2362
|
+
defaultVariation: "default_variation",
|
|
2363
|
+
enabled: "enabled",
|
|
2364
|
+
key: "key",
|
|
2365
|
+
rules: "rules",
|
|
2366
|
+
variations: "variations",
|
|
2367
|
+
description: "description",
|
|
2368
|
+
type: "type",
|
|
2369
|
+
updatedAt: "updated_at",
|
|
2370
|
+
updatedBy: "updated_by",
|
|
2371
|
+
}),
|
|
2372
|
+
)
|
|
2373
|
+
.pipe(T.ResponsePath("result")),
|
|
2387
2374
|
) as unknown as Schema.Codec<UpdateAppFlagResponse>;
|
|
2388
2375
|
|
|
2389
2376
|
export type UpdateAppFlagError =
|
|
@@ -2396,7 +2383,7 @@ export const updateAppFlag: API.OperationMethod<
|
|
|
2396
2383
|
UpdateAppFlagResponse,
|
|
2397
2384
|
UpdateAppFlagError,
|
|
2398
2385
|
Credentials | HttpClient.HttpClient
|
|
2399
|
-
> = /*@__PURE__*/
|
|
2386
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2400
2387
|
input: UpdateAppFlagRequest,
|
|
2401
2388
|
output: UpdateAppFlagResponse,
|
|
2402
2389
|
errors: [FlagshipFlagNotFound, FlagshipAppNotFound],
|
|
@@ -2409,29 +2396,27 @@ export interface DeleteAppFlagRequest {
|
|
|
2409
2396
|
accountId: string;
|
|
2410
2397
|
}
|
|
2411
2398
|
|
|
2412
|
-
export const DeleteAppFlagRequest = /*@__PURE__*/
|
|
2413
|
-
(
|
|
2414
|
-
Schema.
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
),
|
|
2399
|
+
export const DeleteAppFlagRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2400
|
+
Schema.Struct({
|
|
2401
|
+
appId: Schema.String.pipe(T.HttpPath("appId")),
|
|
2402
|
+
flagKey: Schema.String.pipe(T.HttpPath("flagKey")),
|
|
2403
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2404
|
+
}).pipe(
|
|
2405
|
+
T.Http({
|
|
2406
|
+
method: "DELETE",
|
|
2407
|
+
path: "/accounts/{account_id}/flagship/apps/{appId}/flags/{flagKey}",
|
|
2408
|
+
}),
|
|
2409
|
+
),
|
|
2424
2410
|
) as unknown as Schema.Codec<DeleteAppFlagRequest>;
|
|
2425
2411
|
|
|
2426
2412
|
export interface DeleteAppFlagResponse {
|
|
2427
2413
|
key: string;
|
|
2428
2414
|
}
|
|
2429
2415
|
|
|
2430
|
-
export const DeleteAppFlagResponse = /*@__PURE__*/
|
|
2431
|
-
(
|
|
2432
|
-
Schema.
|
|
2433
|
-
|
|
2434
|
-
}).pipe(T.ResponsePath("result")),
|
|
2416
|
+
export const DeleteAppFlagResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2417
|
+
Schema.Struct({
|
|
2418
|
+
key: Schema.String,
|
|
2419
|
+
}).pipe(T.ResponsePath("result")),
|
|
2435
2420
|
) as unknown as Schema.Codec<DeleteAppFlagResponse>;
|
|
2436
2421
|
|
|
2437
2422
|
export type DeleteAppFlagError =
|
|
@@ -2444,7 +2429,7 @@ export const deleteAppFlag: API.OperationMethod<
|
|
|
2444
2429
|
DeleteAppFlagResponse,
|
|
2445
2430
|
DeleteAppFlagError,
|
|
2446
2431
|
Credentials | HttpClient.HttpClient
|
|
2447
|
-
> = /*@__PURE__*/
|
|
2432
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2448
2433
|
input: DeleteAppFlagRequest,
|
|
2449
2434
|
output: DeleteAppFlagResponse,
|
|
2450
2435
|
errors: [FlagshipFlagNotFound, FlagshipAppNotFound],
|
|
@@ -2465,7 +2450,7 @@ export interface ListAppFlagChangelogsRequest {
|
|
|
2465
2450
|
}
|
|
2466
2451
|
|
|
2467
2452
|
export const ListAppFlagChangelogsRequest =
|
|
2468
|
-
/*@__PURE__*/
|
|
2453
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
2469
2454
|
Schema.Struct({
|
|
2470
2455
|
appId: Schema.String.pipe(T.HttpPath("appId")),
|
|
2471
2456
|
flagKey: Schema.String.pipe(T.HttpPath("flagKey")),
|
|
@@ -2632,7 +2617,7 @@ export interface ListAppFlagChangelogsResponse {
|
|
|
2632
2617
|
}
|
|
2633
2618
|
|
|
2634
2619
|
export const ListAppFlagChangelogsResponse =
|
|
2635
|
-
/*@__PURE__*/
|
|
2620
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
2636
2621
|
Schema.Struct({
|
|
2637
2622
|
result: Schema.Array(
|
|
2638
2623
|
Schema.Union([
|
|
@@ -2654,7 +2639,7 @@ export const listAppFlagChangelogs: API.PaginatedOperationMethod<
|
|
|
2654
2639
|
ListAppFlagChangelogsResponse,
|
|
2655
2640
|
ListAppFlagChangelogsError,
|
|
2656
2641
|
Credentials | HttpClient.HttpClient
|
|
2657
|
-
> = /*@__PURE__*/
|
|
2642
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
2658
2643
|
input: ListAppFlagChangelogsRequest,
|
|
2659
2644
|
output: ListAppFlagChangelogsResponse,
|
|
2660
2645
|
errors: [],
|