@distilled.cloud/cloudflare 0.29.0 → 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/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
|
@@ -88,7 +88,7 @@ interface Error2 {
|
|
|
88
88
|
message: string;
|
|
89
89
|
name: string;
|
|
90
90
|
}
|
|
91
|
-
const Error2 = /*@__PURE__*/
|
|
91
|
+
const Error2 = /*@__PURE__*/ Schema.suspend(() =>
|
|
92
92
|
Schema.Struct({
|
|
93
93
|
message: Schema.String,
|
|
94
94
|
name: Schema.String,
|
|
@@ -99,7 +99,7 @@ interface Rollback {
|
|
|
99
99
|
error: { message: string; name: string } | null;
|
|
100
100
|
outcome: "complete" | "failed" | (string & {});
|
|
101
101
|
}
|
|
102
|
-
const Rollback = /*@__PURE__*/
|
|
102
|
+
const Rollback = /*@__PURE__*/ Schema.suspend(() =>
|
|
103
103
|
Schema.Struct({
|
|
104
104
|
error: Schema.Union([Error2, Schema.Null]),
|
|
105
105
|
outcome: Schema.Union([
|
|
@@ -115,7 +115,7 @@ interface Attempt {
|
|
|
115
115
|
start: string;
|
|
116
116
|
success: boolean | null;
|
|
117
117
|
}
|
|
118
|
-
const Attempt = /*@__PURE__*/
|
|
118
|
+
const Attempt = /*@__PURE__*/ Schema.suspend(() =>
|
|
119
119
|
Schema.Struct({
|
|
120
120
|
end: Schema.Union([Schema.String, Schema.Null]),
|
|
121
121
|
error: Schema.Union([Error2, Schema.Null]),
|
|
@@ -130,7 +130,7 @@ interface Retries {
|
|
|
130
130
|
limit: number;
|
|
131
131
|
backoff?: "constant" | "linear" | "exponential" | (string & {}) | null;
|
|
132
132
|
}
|
|
133
|
-
const Retries = /*@__PURE__*/
|
|
133
|
+
const Retries = /*@__PURE__*/ Schema.suspend(() =>
|
|
134
134
|
Schema.Struct({
|
|
135
135
|
delay: Schema.Union([Schema.String, Schema.Number]),
|
|
136
136
|
limit: Schema.Number,
|
|
@@ -157,7 +157,7 @@ interface Config {
|
|
|
157
157
|
/** When set to 'output', step output is redacted from log and step output responses. */
|
|
158
158
|
sensitive?: "output" | null;
|
|
159
159
|
}
|
|
160
|
-
const Config = /*@__PURE__*/
|
|
160
|
+
const Config = /*@__PURE__*/ Schema.suspend(() =>
|
|
161
161
|
Schema.Struct({
|
|
162
162
|
retries: Retries,
|
|
163
163
|
timeout: Schema.Unknown,
|
|
@@ -190,7 +190,7 @@ interface GetInstanceResponseStep {
|
|
|
190
190
|
success: boolean | null;
|
|
191
191
|
type: "step" | "rollback" | (string & {});
|
|
192
192
|
}
|
|
193
|
-
const GetInstanceResponseStep = /*@__PURE__*/
|
|
193
|
+
const GetInstanceResponseStep = /*@__PURE__*/ Schema.suspend(() =>
|
|
194
194
|
Schema.Struct({
|
|
195
195
|
attempts: Schema.Array(Attempt),
|
|
196
196
|
config: Config,
|
|
@@ -211,22 +211,21 @@ interface GetInstanceResponseStep1 {
|
|
|
211
211
|
start: string;
|
|
212
212
|
type: "sleep";
|
|
213
213
|
}
|
|
214
|
-
const GetInstanceResponseStep1 = /*@__PURE__*/
|
|
215
|
-
(
|
|
216
|
-
Schema.
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
}),
|
|
214
|
+
const GetInstanceResponseStep1 = /*@__PURE__*/ Schema.suspend(() =>
|
|
215
|
+
Schema.Struct({
|
|
216
|
+
end: Schema.String,
|
|
217
|
+
error: Schema.Union([Error2, Schema.Null]),
|
|
218
|
+
finished: Schema.Boolean,
|
|
219
|
+
name: Schema.String,
|
|
220
|
+
start: Schema.String,
|
|
221
|
+
type: Schema.Literal("sleep"),
|
|
222
|
+
}),
|
|
224
223
|
) as unknown as Schema.Codec<GetInstanceResponseStep1>;
|
|
225
224
|
|
|
226
225
|
interface Trigger {
|
|
227
226
|
source: string;
|
|
228
227
|
}
|
|
229
|
-
const Trigger = /*@__PURE__*/
|
|
228
|
+
const Trigger = /*@__PURE__*/ Schema.suspend(() =>
|
|
230
229
|
Schema.Struct({
|
|
231
230
|
source: Schema.String,
|
|
232
231
|
}),
|
|
@@ -236,12 +235,11 @@ interface GetInstanceResponseStep2 {
|
|
|
236
235
|
trigger: { source: string };
|
|
237
236
|
type: "termination";
|
|
238
237
|
}
|
|
239
|
-
const GetInstanceResponseStep2 = /*@__PURE__*/
|
|
240
|
-
(
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
}),
|
|
238
|
+
const GetInstanceResponseStep2 = /*@__PURE__*/ Schema.suspend(() =>
|
|
239
|
+
Schema.Struct({
|
|
240
|
+
trigger: Trigger,
|
|
241
|
+
type: Schema.Literal("termination"),
|
|
242
|
+
}),
|
|
245
243
|
) as unknown as Schema.Codec<GetInstanceResponseStep2>;
|
|
246
244
|
|
|
247
245
|
interface GetInstanceResponseStep3 {
|
|
@@ -253,23 +251,22 @@ interface GetInstanceResponseStep3 {
|
|
|
253
251
|
type: "waitForEvent";
|
|
254
252
|
output?: string | null;
|
|
255
253
|
}
|
|
256
|
-
const GetInstanceResponseStep3 = /*@__PURE__*/
|
|
257
|
-
(
|
|
258
|
-
Schema.
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
}),
|
|
254
|
+
const GetInstanceResponseStep3 = /*@__PURE__*/ Schema.suspend(() =>
|
|
255
|
+
Schema.Struct({
|
|
256
|
+
end: Schema.String,
|
|
257
|
+
error: Schema.Union([Error2, Schema.Null]),
|
|
258
|
+
finished: Schema.Boolean,
|
|
259
|
+
name: Schema.String,
|
|
260
|
+
start: Schema.String,
|
|
261
|
+
type: Schema.Literal("waitForEvent"),
|
|
262
|
+
output: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
263
|
+
}),
|
|
267
264
|
) as unknown as Schema.Codec<GetInstanceResponseStep3>;
|
|
268
265
|
|
|
269
266
|
interface Trigger2 {
|
|
270
267
|
source: "unknown" | "api" | "binding" | "event" | "cron" | (string & {});
|
|
271
268
|
}
|
|
272
|
-
const Trigger2 = /*@__PURE__*/
|
|
269
|
+
const Trigger2 = /*@__PURE__*/ Schema.suspend(() =>
|
|
273
270
|
Schema.Struct({
|
|
274
271
|
source: Schema.Union([
|
|
275
272
|
Schema.Literals(["unknown", "api", "binding", "event", "cron"]),
|
|
@@ -282,7 +279,7 @@ interface Schedule {
|
|
|
282
279
|
cron: string;
|
|
283
280
|
scheduledTime: number;
|
|
284
281
|
}
|
|
285
|
-
const Schedule = /*@__PURE__*/
|
|
282
|
+
const Schedule = /*@__PURE__*/ Schema.suspend(() =>
|
|
286
283
|
Schema.Struct({
|
|
287
284
|
cron: Schema.String,
|
|
288
285
|
scheduledTime: Schema.Number,
|
|
@@ -317,52 +314,51 @@ interface ListInstancesResponseResult {
|
|
|
317
314
|
| (string & {})
|
|
318
315
|
| null;
|
|
319
316
|
}
|
|
320
|
-
const ListInstancesResponseResult = /*@__PURE__*/
|
|
321
|
-
(
|
|
322
|
-
Schema.
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
"rollingBack",
|
|
339
|
-
]),
|
|
340
|
-
Schema.String,
|
|
317
|
+
const ListInstancesResponseResult = /*@__PURE__*/ Schema.suspend(() =>
|
|
318
|
+
Schema.Struct({
|
|
319
|
+
id: Schema.String,
|
|
320
|
+
createdOn: Schema.String,
|
|
321
|
+
endedOn: Schema.Union([Schema.String, Schema.Null]),
|
|
322
|
+
modifiedOn: Schema.String,
|
|
323
|
+
startedOn: Schema.Union([Schema.String, Schema.Null]),
|
|
324
|
+
status: Schema.Union([
|
|
325
|
+
Schema.Literals([
|
|
326
|
+
"queued",
|
|
327
|
+
"running",
|
|
328
|
+
"paused",
|
|
329
|
+
"errored",
|
|
330
|
+
"terminated",
|
|
331
|
+
"complete",
|
|
332
|
+
"waitingForPause",
|
|
333
|
+
"waiting",
|
|
334
|
+
"rollingBack",
|
|
341
335
|
]),
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
336
|
+
Schema.String,
|
|
337
|
+
]),
|
|
338
|
+
versionId: Schema.String,
|
|
339
|
+
workflowId: Schema.String,
|
|
340
|
+
triggerSource: Schema.optional(
|
|
341
|
+
Schema.Union([
|
|
345
342
|
Schema.Union([
|
|
346
|
-
Schema.
|
|
347
|
-
|
|
348
|
-
Schema.String,
|
|
349
|
-
]),
|
|
350
|
-
Schema.Null,
|
|
343
|
+
Schema.Literals(["unknown", "api", "binding", "event", "cron"]),
|
|
344
|
+
Schema.String,
|
|
351
345
|
]),
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
Schema.encodeKeys({
|
|
355
|
-
id: "id",
|
|
356
|
-
createdOn: "created_on",
|
|
357
|
-
endedOn: "ended_on",
|
|
358
|
-
modifiedOn: "modified_on",
|
|
359
|
-
startedOn: "started_on",
|
|
360
|
-
status: "status",
|
|
361
|
-
versionId: "version_id",
|
|
362
|
-
workflowId: "workflow_id",
|
|
363
|
-
triggerSource: "trigger_source",
|
|
364
|
-
}),
|
|
346
|
+
Schema.Null,
|
|
347
|
+
]),
|
|
365
348
|
),
|
|
349
|
+
}).pipe(
|
|
350
|
+
Schema.encodeKeys({
|
|
351
|
+
id: "id",
|
|
352
|
+
createdOn: "created_on",
|
|
353
|
+
endedOn: "ended_on",
|
|
354
|
+
modifiedOn: "modified_on",
|
|
355
|
+
startedOn: "started_on",
|
|
356
|
+
status: "status",
|
|
357
|
+
versionId: "version_id",
|
|
358
|
+
workflowId: "workflow_id",
|
|
359
|
+
triggerSource: "trigger_source",
|
|
360
|
+
}),
|
|
361
|
+
),
|
|
366
362
|
) as unknown as Schema.Codec<ListInstancesResponseResult>;
|
|
367
363
|
|
|
368
364
|
interface ListInstancesResponseResultInfo {
|
|
@@ -372,7 +368,7 @@ interface ListInstancesResponseResultInfo {
|
|
|
372
368
|
totalCount?: number | null;
|
|
373
369
|
}
|
|
374
370
|
const ListInstancesResponseResultInfo =
|
|
375
|
-
/*@__PURE__*/
|
|
371
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
376
372
|
Schema.Struct({
|
|
377
373
|
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
378
374
|
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
@@ -394,7 +390,7 @@ interface InstanceRetention {
|
|
|
394
390
|
/** Specifies the duration in milliseconds or as a string like '5 minutes'. */
|
|
395
391
|
successRetention?: number | string | null;
|
|
396
392
|
}
|
|
397
|
-
const InstanceRetention = /*@__PURE__*/
|
|
393
|
+
const InstanceRetention = /*@__PURE__*/ Schema.suspend(() =>
|
|
398
394
|
Schema.Struct({
|
|
399
395
|
errorRetention: Schema.optional(
|
|
400
396
|
Schema.Union([Schema.Union([Schema.Number, Schema.String]), Schema.Null]),
|
|
@@ -418,7 +414,7 @@ interface Body {
|
|
|
418
414
|
} | null;
|
|
419
415
|
params?: unknown | null;
|
|
420
416
|
}
|
|
421
|
-
const Body = /*@__PURE__*/
|
|
417
|
+
const Body = /*@__PURE__*/ Schema.suspend(() =>
|
|
422
418
|
Schema.Struct({
|
|
423
419
|
instanceId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
424
420
|
instanceRetention: Schema.optional(
|
|
@@ -458,44 +454,43 @@ interface BulkInstanceResponseResult {
|
|
|
458
454
|
| (string & {})
|
|
459
455
|
| null;
|
|
460
456
|
}
|
|
461
|
-
const BulkInstanceResponseResult = /*@__PURE__*/
|
|
462
|
-
(
|
|
463
|
-
Schema.
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
"rollingBack",
|
|
476
|
-
]),
|
|
477
|
-
Schema.String,
|
|
457
|
+
const BulkInstanceResponseResult = /*@__PURE__*/ Schema.suspend(() =>
|
|
458
|
+
Schema.Struct({
|
|
459
|
+
id: Schema.String,
|
|
460
|
+
status: Schema.Union([
|
|
461
|
+
Schema.Literals([
|
|
462
|
+
"queued",
|
|
463
|
+
"running",
|
|
464
|
+
"paused",
|
|
465
|
+
"errored",
|
|
466
|
+
"terminated",
|
|
467
|
+
"complete",
|
|
468
|
+
"waitingForPause",
|
|
469
|
+
"waiting",
|
|
470
|
+
"rollingBack",
|
|
478
471
|
]),
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
472
|
+
Schema.String,
|
|
473
|
+
]),
|
|
474
|
+
versionId: Schema.String,
|
|
475
|
+
workflowId: Schema.String,
|
|
476
|
+
triggerSource: Schema.optional(
|
|
477
|
+
Schema.Union([
|
|
482
478
|
Schema.Union([
|
|
483
|
-
Schema.
|
|
484
|
-
|
|
485
|
-
Schema.String,
|
|
486
|
-
]),
|
|
487
|
-
Schema.Null,
|
|
479
|
+
Schema.Literals(["unknown", "api", "binding", "event", "cron"]),
|
|
480
|
+
Schema.String,
|
|
488
481
|
]),
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
Schema.encodeKeys({
|
|
492
|
-
id: "id",
|
|
493
|
-
status: "status",
|
|
494
|
-
versionId: "version_id",
|
|
495
|
-
workflowId: "workflow_id",
|
|
496
|
-
triggerSource: "trigger_source",
|
|
497
|
-
}),
|
|
482
|
+
Schema.Null,
|
|
483
|
+
]),
|
|
498
484
|
),
|
|
485
|
+
}).pipe(
|
|
486
|
+
Schema.encodeKeys({
|
|
487
|
+
id: "id",
|
|
488
|
+
status: "status",
|
|
489
|
+
versionId: "version_id",
|
|
490
|
+
workflowId: "workflow_id",
|
|
491
|
+
triggerSource: "trigger_source",
|
|
492
|
+
}),
|
|
493
|
+
),
|
|
499
494
|
) as unknown as Schema.Codec<BulkInstanceResponseResult>;
|
|
500
495
|
|
|
501
496
|
interface From {
|
|
@@ -503,7 +498,7 @@ interface From {
|
|
|
503
498
|
count?: number | null;
|
|
504
499
|
type?: "do" | "sleep" | "waitForEvent" | (string & {}) | null;
|
|
505
500
|
}
|
|
506
|
-
const From = /*@__PURE__*/
|
|
501
|
+
const From = /*@__PURE__*/ Schema.suspend(() =>
|
|
507
502
|
Schema.Struct({
|
|
508
503
|
name: Schema.String,
|
|
509
504
|
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
@@ -522,7 +517,7 @@ const From = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
|
|
|
522
517
|
interface Limits {
|
|
523
518
|
steps?: number | null;
|
|
524
519
|
}
|
|
525
|
-
const Limits = /*@__PURE__*/
|
|
520
|
+
const Limits = /*@__PURE__*/ Schema.suspend(() =>
|
|
526
521
|
Schema.Struct({
|
|
527
522
|
steps: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
528
523
|
}),
|
|
@@ -539,32 +534,31 @@ interface ListVersionsResponseResult {
|
|
|
539
534
|
workflowId: string;
|
|
540
535
|
limits?: { steps?: number | null } | null;
|
|
541
536
|
}
|
|
542
|
-
const ListVersionsResponseResult = /*@__PURE__*/
|
|
543
|
-
(
|
|
544
|
-
Schema.
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
),
|
|
537
|
+
const ListVersionsResponseResult = /*@__PURE__*/ Schema.suspend(() =>
|
|
538
|
+
Schema.Struct({
|
|
539
|
+
id: Schema.String,
|
|
540
|
+
className: Schema.String,
|
|
541
|
+
createdOn: Schema.String,
|
|
542
|
+
hasDag: Schema.Boolean,
|
|
543
|
+
language: Schema.Union([
|
|
544
|
+
Schema.Literals(["javascript", "python"]),
|
|
545
|
+
Schema.String,
|
|
546
|
+
]),
|
|
547
|
+
modifiedOn: Schema.String,
|
|
548
|
+
workflowId: Schema.String,
|
|
549
|
+
limits: Schema.optional(Schema.Union([Limits, Schema.Null])),
|
|
550
|
+
}).pipe(
|
|
551
|
+
Schema.encodeKeys({
|
|
552
|
+
id: "id",
|
|
553
|
+
className: "class_name",
|
|
554
|
+
createdOn: "created_on",
|
|
555
|
+
hasDag: "has_dag",
|
|
556
|
+
language: "language",
|
|
557
|
+
modifiedOn: "modified_on",
|
|
558
|
+
workflowId: "workflow_id",
|
|
559
|
+
limits: "limits",
|
|
560
|
+
}),
|
|
561
|
+
),
|
|
568
562
|
) as unknown as Schema.Codec<ListVersionsResponseResult>;
|
|
569
563
|
|
|
570
564
|
interface GraphVersionResponseGraphWorkflowNode {
|
|
@@ -576,7 +570,7 @@ interface GraphVersionResponseGraphWorkflowNode {
|
|
|
576
570
|
starts?: number | null;
|
|
577
571
|
}
|
|
578
572
|
const GraphVersionResponseGraphWorkflowNode =
|
|
579
|
-
/*@__PURE__*/
|
|
573
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
580
574
|
Schema.Struct({
|
|
581
575
|
duration: Schema.Union([Schema.Number, Schema.String]),
|
|
582
576
|
name: Schema.String,
|
|
@@ -593,7 +587,7 @@ interface Retries2 {
|
|
|
593
587
|
delay: number | string;
|
|
594
588
|
limit: number;
|
|
595
589
|
}
|
|
596
|
-
const Retries2 = /*@__PURE__*/
|
|
590
|
+
const Retries2 = /*@__PURE__*/ Schema.suspend(() =>
|
|
597
591
|
Schema.Struct({
|
|
598
592
|
backoff: Schema.Union([
|
|
599
593
|
Schema.Literals(["constant", "linear", "exponential"]),
|
|
@@ -614,7 +608,7 @@ interface Config2 {
|
|
|
614
608
|
/** Duration as milliseconds (number) or human-readable string. */
|
|
615
609
|
timeout: number | string;
|
|
616
610
|
}
|
|
617
|
-
const Config2 = /*@__PURE__*/
|
|
611
|
+
const Config2 = /*@__PURE__*/ Schema.suspend(() =>
|
|
618
612
|
Schema.Struct({
|
|
619
613
|
retries: Retries2,
|
|
620
614
|
timeout: Schema.Union([Schema.Number, Schema.String]),
|
|
@@ -639,7 +633,7 @@ interface GraphVersionResponseGraphWorkflowNode1 {
|
|
|
639
633
|
starts?: number | null;
|
|
640
634
|
}
|
|
641
635
|
const GraphVersionResponseGraphWorkflowNode1 =
|
|
642
|
-
/*@__PURE__*/
|
|
636
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
643
637
|
Schema.Struct({
|
|
644
638
|
config: Config2,
|
|
645
639
|
name: Schema.String,
|
|
@@ -655,7 +649,7 @@ interface Options {
|
|
|
655
649
|
/** Duration as milliseconds (number) or human-readable string. */
|
|
656
650
|
timeout: number | string;
|
|
657
651
|
}
|
|
658
|
-
const Options = /*@__PURE__*/
|
|
652
|
+
const Options = /*@__PURE__*/ Schema.suspend(() =>
|
|
659
653
|
Schema.Struct({
|
|
660
654
|
eventType: Schema.String,
|
|
661
655
|
timeout: Schema.Union([Schema.Number, Schema.String]),
|
|
@@ -665,7 +659,7 @@ const Options = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
|
|
|
665
659
|
interface Type {
|
|
666
660
|
type: "unknown";
|
|
667
661
|
}
|
|
668
|
-
const Type = /*@__PURE__*/
|
|
662
|
+
const Type = /*@__PURE__*/ Schema.suspend(() =>
|
|
669
663
|
Schema.Struct({
|
|
670
664
|
type: Schema.Literal("unknown"),
|
|
671
665
|
}),
|
|
@@ -677,7 +671,7 @@ interface GraphVersionResponseGraphWorkflowNode2Payload1 {
|
|
|
677
671
|
type: "object";
|
|
678
672
|
}
|
|
679
673
|
const GraphVersionResponseGraphWorkflowNode2Payload1 =
|
|
680
|
-
/*@__PURE__*/
|
|
674
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
681
675
|
Schema.Struct({
|
|
682
676
|
fields: Schema.Record(Schema.String, Schema.Unknown),
|
|
683
677
|
type: Schema.Literal("object"),
|
|
@@ -698,7 +692,7 @@ interface GraphVersionResponseGraphWorkflowNode2 {
|
|
|
698
692
|
starts?: number | null;
|
|
699
693
|
}
|
|
700
694
|
const GraphVersionResponseGraphWorkflowNode2 =
|
|
701
|
-
/*@__PURE__*/
|
|
695
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
702
696
|
Schema.Struct({
|
|
703
697
|
name: Schema.String,
|
|
704
698
|
options: Schema.Union([Options, Schema.Null]),
|
|
@@ -722,7 +716,7 @@ interface GraphVersionResponseGraphWorkflowNode3 {
|
|
|
722
716
|
starts?: number | null;
|
|
723
717
|
}
|
|
724
718
|
const GraphVersionResponseGraphWorkflowNode3 =
|
|
725
|
-
/*@__PURE__*/
|
|
719
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
726
720
|
Schema.Struct({
|
|
727
721
|
name: Schema.String,
|
|
728
722
|
timestamp: Schema.String,
|
|
@@ -738,7 +732,7 @@ interface GraphVersionResponseGraphWorkflowNode4 {
|
|
|
738
732
|
type: "loop";
|
|
739
733
|
}
|
|
740
734
|
const GraphVersionResponseGraphWorkflowNode4 =
|
|
741
|
-
/*@__PURE__*/
|
|
735
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
742
736
|
Schema.Struct({
|
|
743
737
|
nodes: Schema.Array(Schema.Unknown),
|
|
744
738
|
type: Schema.Literal("loop"),
|
|
@@ -753,7 +747,7 @@ interface GraphVersionResponseGraphWorkflowNode5 {
|
|
|
753
747
|
type: "parallel";
|
|
754
748
|
}
|
|
755
749
|
const GraphVersionResponseGraphWorkflowNode5 =
|
|
756
|
-
/*@__PURE__*/
|
|
750
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
757
751
|
Schema.Struct({
|
|
758
752
|
kind: Schema.Union([
|
|
759
753
|
Schema.Literals(["all", "any", "all_settled", "race"]),
|
|
@@ -769,7 +763,7 @@ interface CatchBlock {
|
|
|
769
763
|
nodes: unknown[];
|
|
770
764
|
type: "block";
|
|
771
765
|
}
|
|
772
|
-
const CatchBlock = /*@__PURE__*/
|
|
766
|
+
const CatchBlock = /*@__PURE__*/ Schema.suspend(() =>
|
|
773
767
|
Schema.Struct({
|
|
774
768
|
nodes: Schema.Array(Schema.Unknown),
|
|
775
769
|
type: Schema.Literal("block"),
|
|
@@ -783,7 +777,7 @@ interface GraphVersionResponseGraphWorkflowNode6 {
|
|
|
783
777
|
type: "try";
|
|
784
778
|
}
|
|
785
779
|
const GraphVersionResponseGraphWorkflowNode6 =
|
|
786
|
-
/*@__PURE__*/
|
|
780
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
787
781
|
Schema.Struct({
|
|
788
782
|
catchBlock: Schema.Union([CatchBlock, Schema.Null]),
|
|
789
783
|
finallyBlock: Schema.Union([CatchBlock, Schema.Null]),
|
|
@@ -804,7 +798,7 @@ interface Branch {
|
|
|
804
798
|
/** Child nodes (recursive). */
|
|
805
799
|
nodes: unknown[];
|
|
806
800
|
}
|
|
807
|
-
const Branch = /*@__PURE__*/
|
|
801
|
+
const Branch = /*@__PURE__*/ Schema.suspend(() =>
|
|
808
802
|
Schema.Struct({
|
|
809
803
|
condition: Schema.Union([Schema.String, Schema.Null]),
|
|
810
804
|
nodes: Schema.Array(Schema.Unknown),
|
|
@@ -816,7 +810,7 @@ interface GraphVersionResponseGraphWorkflowNode8 {
|
|
|
816
810
|
type: "if";
|
|
817
811
|
}
|
|
818
812
|
const GraphVersionResponseGraphWorkflowNode8 =
|
|
819
|
-
/*@__PURE__*/
|
|
813
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
820
814
|
Schema.Struct({
|
|
821
815
|
branches: Schema.Array(Branch),
|
|
822
816
|
type: Schema.Literal("if"),
|
|
@@ -829,7 +823,7 @@ interface GraphVersionResponseGraphWorkflowNode9 {
|
|
|
829
823
|
type: "switch";
|
|
830
824
|
}
|
|
831
825
|
const GraphVersionResponseGraphWorkflowNode9 =
|
|
832
|
-
/*@__PURE__*/
|
|
826
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
833
827
|
Schema.Struct({
|
|
834
828
|
branches: Schema.Array(Branch),
|
|
835
829
|
discriminant: Schema.String,
|
|
@@ -850,7 +844,7 @@ interface GraphVersionResponseGraphWorkflowNode10 {
|
|
|
850
844
|
| null;
|
|
851
845
|
}
|
|
852
846
|
const GraphVersionResponseGraphWorkflowNode10 =
|
|
853
|
-
/*@__PURE__*/
|
|
847
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
854
848
|
Schema.Struct({
|
|
855
849
|
className: Schema.String,
|
|
856
850
|
functions: Schema.Record(Schema.String, Schema.Unknown),
|
|
@@ -880,7 +874,7 @@ interface GraphVersionResponseGraphWorkflowNode11 {
|
|
|
880
874
|
starts?: number | null;
|
|
881
875
|
}
|
|
882
876
|
const GraphVersionResponseGraphWorkflowNode11 =
|
|
883
|
-
/*@__PURE__*/
|
|
877
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
884
878
|
Schema.Struct({
|
|
885
879
|
name: Schema.String,
|
|
886
880
|
type: Schema.Literal("function_call"),
|
|
@@ -896,7 +890,7 @@ interface GraphVersionResponseGraphWorkflowNode12 {
|
|
|
896
890
|
type: "function_def";
|
|
897
891
|
}
|
|
898
892
|
const GraphVersionResponseGraphWorkflowNode12 =
|
|
899
|
-
/*@__PURE__*/
|
|
893
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
900
894
|
Schema.Struct({
|
|
901
895
|
name: Schema.String,
|
|
902
896
|
nodes: Schema.Array(Schema.Unknown),
|
|
@@ -910,7 +904,7 @@ interface GraphVersionResponseGraphWorkflowNode13 {
|
|
|
910
904
|
type: "break";
|
|
911
905
|
}
|
|
912
906
|
const GraphVersionResponseGraphWorkflowNode13 =
|
|
913
|
-
/*@__PURE__*/
|
|
907
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
914
908
|
Schema.Struct({
|
|
915
909
|
kind: Schema.Union([Schema.Literals(["break", "return"]), Schema.String]),
|
|
916
910
|
type: Schema.Literal("break"),
|
|
@@ -1005,7 +999,7 @@ interface Workflow {
|
|
|
1005
999
|
| { fields: Record<string, unknown>; type: "object" }
|
|
1006
1000
|
| null;
|
|
1007
1001
|
}
|
|
1008
|
-
const Workflow = /*@__PURE__*/
|
|
1002
|
+
const Workflow = /*@__PURE__*/ Schema.suspend(() =>
|
|
1009
1003
|
Schema.Struct({
|
|
1010
1004
|
className: Schema.String,
|
|
1011
1005
|
functions: Schema.Record(Schema.String, Schema.Unknown),
|
|
@@ -1137,7 +1131,7 @@ interface Graph {
|
|
|
1137
1131
|
| null;
|
|
1138
1132
|
};
|
|
1139
1133
|
}
|
|
1140
|
-
const Graph = /*@__PURE__*/
|
|
1134
|
+
const Graph = /*@__PURE__*/ Schema.suspend(() =>
|
|
1141
1135
|
Schema.Struct({
|
|
1142
1136
|
version: Schema.Number,
|
|
1143
1137
|
workflow: Workflow,
|
|
@@ -1155,7 +1149,7 @@ interface Instances {
|
|
|
1155
1149
|
waiting?: number | null;
|
|
1156
1150
|
waitingForPause?: number | null;
|
|
1157
1151
|
}
|
|
1158
|
-
const Instances = /*@__PURE__*/
|
|
1152
|
+
const Instances = /*@__PURE__*/ Schema.suspend(() =>
|
|
1159
1153
|
Schema.Struct({
|
|
1160
1154
|
complete: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1161
1155
|
errored: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
@@ -1175,7 +1169,7 @@ interface Schedule2 {
|
|
|
1175
1169
|
cron: string;
|
|
1176
1170
|
nextInstance: string;
|
|
1177
1171
|
}
|
|
1178
|
-
const Schedule2 = /*@__PURE__*/
|
|
1172
|
+
const Schedule2 = /*@__PURE__*/ Schema.suspend(() =>
|
|
1179
1173
|
Schema.Struct({
|
|
1180
1174
|
cron: Schema.String,
|
|
1181
1175
|
nextInstance: Schema.String,
|
|
@@ -1203,39 +1197,38 @@ interface ListWorkflowsResponseResult {
|
|
|
1203
1197
|
triggeredOn: string | null;
|
|
1204
1198
|
schedules?: { cron: string; nextInstance: string }[] | null;
|
|
1205
1199
|
}
|
|
1206
|
-
const ListWorkflowsResponseResult = /*@__PURE__*/
|
|
1207
|
-
(
|
|
1208
|
-
Schema.
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
Schema.Union([Schema.Array(Schedule2), Schema.Null]),
|
|
1219
|
-
),
|
|
1220
|
-
}).pipe(
|
|
1221
|
-
Schema.encodeKeys({
|
|
1222
|
-
id: "id",
|
|
1223
|
-
className: "class_name",
|
|
1224
|
-
createdOn: "created_on",
|
|
1225
|
-
instances: "instances",
|
|
1226
|
-
modifiedOn: "modified_on",
|
|
1227
|
-
name: "name",
|
|
1228
|
-
scriptName: "script_name",
|
|
1229
|
-
triggeredOn: "triggered_on",
|
|
1230
|
-
schedules: "schedules",
|
|
1231
|
-
}),
|
|
1200
|
+
const ListWorkflowsResponseResult = /*@__PURE__*/ Schema.suspend(() =>
|
|
1201
|
+
Schema.Struct({
|
|
1202
|
+
id: Schema.String,
|
|
1203
|
+
className: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1204
|
+
createdOn: Schema.String,
|
|
1205
|
+
instances: Schema.optional(Schema.Union([Instances, Schema.Null])),
|
|
1206
|
+
modifiedOn: Schema.String,
|
|
1207
|
+
name: Schema.String,
|
|
1208
|
+
scriptName: Schema.String,
|
|
1209
|
+
triggeredOn: Schema.Union([Schema.String, Schema.Null]),
|
|
1210
|
+
schedules: Schema.optional(
|
|
1211
|
+
Schema.Union([Schema.Array(Schedule2), Schema.Null]),
|
|
1232
1212
|
),
|
|
1213
|
+
}).pipe(
|
|
1214
|
+
Schema.encodeKeys({
|
|
1215
|
+
id: "id",
|
|
1216
|
+
className: "class_name",
|
|
1217
|
+
createdOn: "created_on",
|
|
1218
|
+
instances: "instances",
|
|
1219
|
+
modifiedOn: "modified_on",
|
|
1220
|
+
name: "name",
|
|
1221
|
+
scriptName: "script_name",
|
|
1222
|
+
triggeredOn: "triggered_on",
|
|
1223
|
+
schedules: "schedules",
|
|
1224
|
+
}),
|
|
1225
|
+
),
|
|
1233
1226
|
) as unknown as Schema.Codec<ListWorkflowsResponseResult>;
|
|
1234
1227
|
|
|
1235
1228
|
interface Schedule3 {
|
|
1236
1229
|
cron: string;
|
|
1237
1230
|
}
|
|
1238
|
-
const Schedule3 = /*@__PURE__*/
|
|
1231
|
+
const Schedule3 = /*@__PURE__*/ Schema.suspend(() =>
|
|
1239
1232
|
Schema.Struct({
|
|
1240
1233
|
cron: Schema.String,
|
|
1241
1234
|
}),
|
|
@@ -1256,22 +1249,21 @@ export interface GetInstanceRequest {
|
|
|
1256
1249
|
simple?: boolean;
|
|
1257
1250
|
}
|
|
1258
1251
|
|
|
1259
|
-
export const GetInstanceRequest = /*@__PURE__*/
|
|
1260
|
-
(
|
|
1261
|
-
Schema.
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
),
|
|
1252
|
+
export const GetInstanceRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1253
|
+
Schema.Struct({
|
|
1254
|
+
workflowName: Schema.String.pipe(T.HttpPath("workflowName")),
|
|
1255
|
+
instanceId: Schema.String.pipe(T.HttpPath("instanceId")),
|
|
1256
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1257
|
+
order: Schema.optional(
|
|
1258
|
+
Schema.Union([Schema.Literals(["asc", "desc"]), Schema.String]),
|
|
1259
|
+
).pipe(T.HttpQuery("order")),
|
|
1260
|
+
simple: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("simple")),
|
|
1261
|
+
}).pipe(
|
|
1262
|
+
T.Http({
|
|
1263
|
+
method: "GET",
|
|
1264
|
+
path: "/accounts/{account_id}/workflows/{workflowName}/instances/{instanceId}",
|
|
1265
|
+
}),
|
|
1266
|
+
),
|
|
1275
1267
|
) as unknown as Schema.Codec<GetInstanceRequest>;
|
|
1276
1268
|
|
|
1277
1269
|
export interface GetInstanceResponse {
|
|
@@ -1353,63 +1345,62 @@ export interface GetInstanceResponse {
|
|
|
1353
1345
|
schedule?: { cron: string; scheduledTime: number } | null;
|
|
1354
1346
|
}
|
|
1355
1347
|
|
|
1356
|
-
export const GetInstanceResponse = /*@__PURE__*/
|
|
1357
|
-
(
|
|
1358
|
-
Schema.
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
"rollingBack",
|
|
1377
|
-
]),
|
|
1378
|
-
Schema.String,
|
|
1348
|
+
export const GetInstanceResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
1349
|
+
Schema.Struct({
|
|
1350
|
+
end: Schema.Union([Schema.String, Schema.Null]),
|
|
1351
|
+
error: Schema.Union([Error2, Schema.Null]),
|
|
1352
|
+
output: Schema.Union([Schema.String, Schema.Number, Schema.Null]),
|
|
1353
|
+
params: Schema.Unknown,
|
|
1354
|
+
queued: Schema.String,
|
|
1355
|
+
rollback: Schema.Union([Rollback, Schema.Null]),
|
|
1356
|
+
start: Schema.Union([Schema.String, Schema.Null]),
|
|
1357
|
+
status: Schema.Union([
|
|
1358
|
+
Schema.Literals([
|
|
1359
|
+
"queued",
|
|
1360
|
+
"running",
|
|
1361
|
+
"paused",
|
|
1362
|
+
"errored",
|
|
1363
|
+
"terminated",
|
|
1364
|
+
"complete",
|
|
1365
|
+
"waitingForPause",
|
|
1366
|
+
"waiting",
|
|
1367
|
+
"rollingBack",
|
|
1379
1368
|
]),
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1369
|
+
Schema.String,
|
|
1370
|
+
]),
|
|
1371
|
+
stepCount: Schema.Number,
|
|
1372
|
+
steps: Schema.Array(
|
|
1373
|
+
Schema.Union([
|
|
1374
|
+
GetInstanceResponseStep,
|
|
1375
|
+
GetInstanceResponseStep1,
|
|
1376
|
+
GetInstanceResponseStep3,
|
|
1377
|
+
GetInstanceResponseStep2,
|
|
1378
|
+
]),
|
|
1379
|
+
),
|
|
1380
|
+
success: Schema.Union([Schema.Boolean, Schema.Null]),
|
|
1381
|
+
trigger: Trigger2,
|
|
1382
|
+
versionId: Schema.String,
|
|
1383
|
+
schedule: Schema.optional(Schema.Union([Schedule, Schema.Null])),
|
|
1384
|
+
})
|
|
1385
|
+
.pipe(
|
|
1386
|
+
Schema.encodeKeys({
|
|
1387
|
+
end: "end",
|
|
1388
|
+
error: "error",
|
|
1389
|
+
output: "output",
|
|
1390
|
+
params: "params",
|
|
1391
|
+
queued: "queued",
|
|
1392
|
+
rollback: "rollback",
|
|
1393
|
+
start: "start",
|
|
1394
|
+
status: "status",
|
|
1395
|
+
stepCount: "step_count",
|
|
1396
|
+
steps: "steps",
|
|
1397
|
+
success: "success",
|
|
1398
|
+
trigger: "trigger",
|
|
1399
|
+
versionId: "versionId",
|
|
1400
|
+
schedule: "schedule",
|
|
1401
|
+
}),
|
|
1402
|
+
)
|
|
1403
|
+
.pipe(T.ResponsePath("result")),
|
|
1413
1404
|
) as unknown as Schema.Codec<GetInstanceResponse>;
|
|
1414
1405
|
|
|
1415
1406
|
export type GetInstanceError =
|
|
@@ -1423,7 +1414,7 @@ export const getInstance: API.OperationMethod<
|
|
|
1423
1414
|
GetInstanceResponse,
|
|
1424
1415
|
GetInstanceError,
|
|
1425
1416
|
Credentials | HttpClient.HttpClient
|
|
1426
|
-
> = /*@__PURE__*/
|
|
1417
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1427
1418
|
input: GetInstanceRequest,
|
|
1428
1419
|
output: GetInstanceResponse,
|
|
1429
1420
|
errors: [WorkflowNotFound, InvalidRoute, InstanceNotFound],
|
|
@@ -1457,41 +1448,40 @@ export interface ListInstancesRequest {
|
|
|
1457
1448
|
| (string & {});
|
|
1458
1449
|
}
|
|
1459
1450
|
|
|
1460
|
-
export const ListInstancesRequest = /*@__PURE__*/
|
|
1461
|
-
(
|
|
1462
|
-
Schema.
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
Schema.
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
"rollingBack",
|
|
1485
|
-
]),
|
|
1486
|
-
Schema.String,
|
|
1451
|
+
export const ListInstancesRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1452
|
+
Schema.Struct({
|
|
1453
|
+
workflowName: Schema.String.pipe(T.HttpPath("workflowName")),
|
|
1454
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1455
|
+
page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
|
|
1456
|
+
perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
|
|
1457
|
+
cursor: Schema.optional(Schema.String).pipe(T.HttpQuery("cursor")),
|
|
1458
|
+
dateEnd: Schema.optional(Schema.String).pipe(T.HttpQuery("date_end")),
|
|
1459
|
+
dateStart: Schema.optional(Schema.String).pipe(T.HttpQuery("date_start")),
|
|
1460
|
+
direction: Schema.optional(
|
|
1461
|
+
Schema.Union([Schema.Literals(["asc", "desc"]), Schema.String]),
|
|
1462
|
+
).pipe(T.HttpQuery("direction")),
|
|
1463
|
+
status: Schema.optional(
|
|
1464
|
+
Schema.Union([
|
|
1465
|
+
Schema.Literals([
|
|
1466
|
+
"queued",
|
|
1467
|
+
"running",
|
|
1468
|
+
"paused",
|
|
1469
|
+
"errored",
|
|
1470
|
+
"terminated",
|
|
1471
|
+
"complete",
|
|
1472
|
+
"waitingForPause",
|
|
1473
|
+
"waiting",
|
|
1474
|
+
"rollingBack",
|
|
1487
1475
|
]),
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1476
|
+
Schema.String,
|
|
1477
|
+
]),
|
|
1478
|
+
).pipe(T.HttpQuery("status")),
|
|
1479
|
+
}).pipe(
|
|
1480
|
+
T.Http({
|
|
1481
|
+
method: "GET",
|
|
1482
|
+
path: "/accounts/{account_id}/workflows/{workflowName}/instances",
|
|
1483
|
+
}),
|
|
1484
|
+
),
|
|
1495
1485
|
) as unknown as Schema.Codec<ListInstancesRequest>;
|
|
1496
1486
|
|
|
1497
1487
|
export interface ListInstancesResponse {
|
|
@@ -1531,14 +1521,13 @@ export interface ListInstancesResponse {
|
|
|
1531
1521
|
} | null;
|
|
1532
1522
|
}
|
|
1533
1523
|
|
|
1534
|
-
export const ListInstancesResponse = /*@__PURE__*/
|
|
1535
|
-
(
|
|
1536
|
-
Schema.
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
|
|
1524
|
+
export const ListInstancesResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
1525
|
+
Schema.Struct({
|
|
1526
|
+
result: Schema.Array(ListInstancesResponseResult),
|
|
1527
|
+
resultInfo: Schema.optional(
|
|
1528
|
+
Schema.Union([ListInstancesResponseResultInfo, Schema.Null]),
|
|
1529
|
+
),
|
|
1530
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
|
|
1542
1531
|
) as unknown as Schema.Codec<ListInstancesResponse>;
|
|
1543
1532
|
|
|
1544
1533
|
export type ListInstancesError =
|
|
@@ -1553,7 +1542,7 @@ export const listInstances: API.PaginatedOperationMethod<
|
|
|
1553
1542
|
ListInstancesResponse,
|
|
1554
1543
|
ListInstancesError,
|
|
1555
1544
|
Credentials | HttpClient.HttpClient
|
|
1556
|
-
> = /*@__PURE__*/
|
|
1545
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
1557
1546
|
input: ListInstancesRequest,
|
|
1558
1547
|
output: ListInstancesResponse,
|
|
1559
1548
|
errors: [WorkflowNotFound, WorkflowInternalError, InvalidRoute, InvalidBody],
|
|
@@ -1581,25 +1570,24 @@ export interface CreateInstanceRequest {
|
|
|
1581
1570
|
params?: unknown;
|
|
1582
1571
|
}
|
|
1583
1572
|
|
|
1584
|
-
export const CreateInstanceRequest = /*@__PURE__*/
|
|
1585
|
-
(
|
|
1586
|
-
Schema.
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
),
|
|
1573
|
+
export const CreateInstanceRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1574
|
+
Schema.Struct({
|
|
1575
|
+
workflowName: Schema.String.pipe(T.HttpPath("workflowName")),
|
|
1576
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1577
|
+
instanceId: Schema.optional(Schema.String),
|
|
1578
|
+
instanceRetention: Schema.optional(InstanceRetention),
|
|
1579
|
+
params: Schema.optional(Schema.Unknown),
|
|
1580
|
+
}).pipe(
|
|
1581
|
+
Schema.encodeKeys({
|
|
1582
|
+
instanceId: "instance_id",
|
|
1583
|
+
instanceRetention: "instance_retention",
|
|
1584
|
+
params: "params",
|
|
1585
|
+
}),
|
|
1586
|
+
T.Http({
|
|
1587
|
+
method: "POST",
|
|
1588
|
+
path: "/accounts/{account_id}/workflows/{workflowName}/instances",
|
|
1589
|
+
}),
|
|
1590
|
+
),
|
|
1603
1591
|
) as unknown as Schema.Codec<CreateInstanceRequest>;
|
|
1604
1592
|
|
|
1605
1593
|
export interface CreateInstanceResponse {
|
|
@@ -1628,7 +1616,7 @@ export interface CreateInstanceResponse {
|
|
|
1628
1616
|
}
|
|
1629
1617
|
|
|
1630
1618
|
export const CreateInstanceResponse =
|
|
1631
|
-
/*@__PURE__*/
|
|
1619
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1632
1620
|
Schema.Struct({
|
|
1633
1621
|
id: Schema.String,
|
|
1634
1622
|
status: Schema.Union([
|
|
@@ -1681,7 +1669,7 @@ export const createInstance: API.OperationMethod<
|
|
|
1681
1669
|
CreateInstanceResponse,
|
|
1682
1670
|
CreateInstanceError,
|
|
1683
1671
|
Credentials | HttpClient.HttpClient
|
|
1684
|
-
> = /*@__PURE__*/
|
|
1672
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1685
1673
|
input: CreateInstanceRequest,
|
|
1686
1674
|
output: CreateInstanceResponse,
|
|
1687
1675
|
errors: [WorkflowNotFound, InstanceAlreadyExists, InvalidRoute, InvalidBody],
|
|
@@ -1702,18 +1690,17 @@ export interface BulkInstanceRequest {
|
|
|
1702
1690
|
}[];
|
|
1703
1691
|
}
|
|
1704
1692
|
|
|
1705
|
-
export const BulkInstanceRequest = /*@__PURE__*/
|
|
1706
|
-
(
|
|
1707
|
-
Schema.
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
),
|
|
1693
|
+
export const BulkInstanceRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1694
|
+
Schema.Struct({
|
|
1695
|
+
workflowName: Schema.String.pipe(T.HttpPath("workflowName")),
|
|
1696
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1697
|
+
body: Schema.optional(Schema.Array(Body)).pipe(T.HttpBody()),
|
|
1698
|
+
}).pipe(
|
|
1699
|
+
T.Http({
|
|
1700
|
+
method: "POST",
|
|
1701
|
+
path: "/accounts/{account_id}/workflows/{workflowName}/instances/batch",
|
|
1702
|
+
}),
|
|
1703
|
+
),
|
|
1717
1704
|
) as unknown as Schema.Codec<BulkInstanceRequest>;
|
|
1718
1705
|
|
|
1719
1706
|
export interface BulkInstanceResponse {
|
|
@@ -1743,11 +1730,10 @@ export interface BulkInstanceResponse {
|
|
|
1743
1730
|
}[];
|
|
1744
1731
|
}
|
|
1745
1732
|
|
|
1746
|
-
export const BulkInstanceResponse = /*@__PURE__*/
|
|
1747
|
-
(
|
|
1748
|
-
Schema.
|
|
1749
|
-
|
|
1750
|
-
}),
|
|
1733
|
+
export const BulkInstanceResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
1734
|
+
Schema.Struct({
|
|
1735
|
+
result: Schema.Array(BulkInstanceResponseResult),
|
|
1736
|
+
}),
|
|
1751
1737
|
) as unknown as Schema.Codec<BulkInstanceResponse>;
|
|
1752
1738
|
|
|
1753
1739
|
export type BulkInstanceError =
|
|
@@ -1762,7 +1748,7 @@ export const bulkInstance: API.PaginatedOperationMethod<
|
|
|
1762
1748
|
BulkInstanceResponse,
|
|
1763
1749
|
BulkInstanceError,
|
|
1764
1750
|
Credentials | HttpClient.HttpClient
|
|
1765
|
-
> = /*@__PURE__*/
|
|
1751
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
1766
1752
|
input: BulkInstanceRequest,
|
|
1767
1753
|
output: BulkInstanceResponse,
|
|
1768
1754
|
errors: [WorkflowNotFound, InstanceAlreadyExists, InvalidRoute, InvalidBody],
|
|
@@ -1785,24 +1771,23 @@ export interface StepInstanceRequest {
|
|
|
1785
1771
|
attempt?: number;
|
|
1786
1772
|
}
|
|
1787
1773
|
|
|
1788
|
-
export const StepInstanceRequest = /*@__PURE__*/
|
|
1789
|
-
(
|
|
1790
|
-
Schema.
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
),
|
|
1774
|
+
export const StepInstanceRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1775
|
+
Schema.Struct({
|
|
1776
|
+
workflowName: Schema.String.pipe(T.HttpPath("workflowName")),
|
|
1777
|
+
instanceId: Schema.String.pipe(T.HttpPath("instanceId")),
|
|
1778
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1779
|
+
name: Schema.String.pipe(T.HttpQuery("name")),
|
|
1780
|
+
type: Schema.Union([
|
|
1781
|
+
Schema.Literals(["step", "waitForEvent"]),
|
|
1782
|
+
Schema.String,
|
|
1783
|
+
]).pipe(T.HttpQuery("type")),
|
|
1784
|
+
attempt: Schema.optional(Schema.Number).pipe(T.HttpQuery("attempt")),
|
|
1785
|
+
}).pipe(
|
|
1786
|
+
T.Http({
|
|
1787
|
+
method: "GET",
|
|
1788
|
+
path: "/accounts/{account_id}/workflows/{workflowName}/instances/{instanceId}/step",
|
|
1789
|
+
}),
|
|
1790
|
+
),
|
|
1806
1791
|
) as unknown as Schema.Codec<StepInstanceRequest>;
|
|
1807
1792
|
|
|
1808
1793
|
export interface StepInstanceResponse {
|
|
@@ -1823,26 +1808,25 @@ export interface StepInstanceResponse {
|
|
|
1823
1808
|
output?: unknown | null;
|
|
1824
1809
|
}
|
|
1825
1810
|
|
|
1826
|
-
export const StepInstanceResponse = /*@__PURE__*/
|
|
1827
|
-
(
|
|
1828
|
-
Schema.
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
"rollingBack",
|
|
1841
|
-
]),
|
|
1842
|
-
Schema.String,
|
|
1811
|
+
export const StepInstanceResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
1812
|
+
Schema.Struct({
|
|
1813
|
+
error: Schema.Union([Error2, Schema.Null]),
|
|
1814
|
+
status: Schema.Union([
|
|
1815
|
+
Schema.Literals([
|
|
1816
|
+
"queued",
|
|
1817
|
+
"running",
|
|
1818
|
+
"paused",
|
|
1819
|
+
"errored",
|
|
1820
|
+
"terminated",
|
|
1821
|
+
"complete",
|
|
1822
|
+
"waitingForPause",
|
|
1823
|
+
"waiting",
|
|
1824
|
+
"rollingBack",
|
|
1843
1825
|
]),
|
|
1844
|
-
|
|
1845
|
-
|
|
1826
|
+
Schema.String,
|
|
1827
|
+
]),
|
|
1828
|
+
output: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
1829
|
+
}).pipe(T.ResponsePath("result")),
|
|
1846
1830
|
) as unknown as Schema.Codec<StepInstanceResponse>;
|
|
1847
1831
|
|
|
1848
1832
|
export type StepInstanceError = DefaultErrors;
|
|
@@ -1852,7 +1836,7 @@ export const stepInstance: API.OperationMethod<
|
|
|
1852
1836
|
StepInstanceResponse,
|
|
1853
1837
|
StepInstanceError,
|
|
1854
1838
|
Credentials | HttpClient.HttpClient
|
|
1855
|
-
> = /*@__PURE__*/
|
|
1839
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1856
1840
|
input: StepInstanceRequest,
|
|
1857
1841
|
output: StepInstanceResponse,
|
|
1858
1842
|
errors: [],
|
|
@@ -1873,7 +1857,7 @@ export interface CreateInstanceEventRequest {
|
|
|
1873
1857
|
}
|
|
1874
1858
|
|
|
1875
1859
|
export const CreateInstanceEventRequest =
|
|
1876
|
-
/*@__PURE__*/
|
|
1860
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1877
1861
|
Schema.Struct({
|
|
1878
1862
|
workflowName: Schema.String.pipe(T.HttpPath("workflowName")),
|
|
1879
1863
|
instanceId: Schema.String.pipe(T.HttpPath("instanceId")),
|
|
@@ -1891,7 +1875,7 @@ export const CreateInstanceEventRequest =
|
|
|
1891
1875
|
export type CreateInstanceEventResponse = unknown;
|
|
1892
1876
|
|
|
1893
1877
|
export const CreateInstanceEventResponse =
|
|
1894
|
-
/*@__PURE__*/
|
|
1878
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1895
1879
|
Schema.Unknown.pipe(T.ResponsePath("result")),
|
|
1896
1880
|
) as unknown as Schema.Codec<CreateInstanceEventResponse>;
|
|
1897
1881
|
|
|
@@ -1907,7 +1891,7 @@ export const createInstanceEvent: API.OperationMethod<
|
|
|
1907
1891
|
CreateInstanceEventResponse,
|
|
1908
1892
|
CreateInstanceEventError,
|
|
1909
1893
|
Credentials | HttpClient.HttpClient
|
|
1910
|
-
> = /*@__PURE__*/
|
|
1894
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1911
1895
|
input: CreateInstanceEventRequest,
|
|
1912
1896
|
output: CreateInstanceEventResponse,
|
|
1913
1897
|
errors: [WorkflowNotFound, InvalidRoute, InstanceNotFound, InvalidBody],
|
|
@@ -1935,7 +1919,7 @@ export interface PatchInstanceStatusRequest {
|
|
|
1935
1919
|
}
|
|
1936
1920
|
|
|
1937
1921
|
export const PatchInstanceStatusRequest =
|
|
1938
|
-
/*@__PURE__*/
|
|
1922
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1939
1923
|
Schema.Struct({
|
|
1940
1924
|
workflowName: Schema.String.pipe(T.HttpPath("workflowName")),
|
|
1941
1925
|
instanceId: Schema.String.pipe(T.HttpPath("instanceId")),
|
|
@@ -1971,7 +1955,7 @@ export interface PatchInstanceStatusResponse {
|
|
|
1971
1955
|
}
|
|
1972
1956
|
|
|
1973
1957
|
export const PatchInstanceStatusResponse =
|
|
1974
|
-
/*@__PURE__*/
|
|
1958
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1975
1959
|
Schema.Struct({
|
|
1976
1960
|
status: Schema.Union([
|
|
1977
1961
|
Schema.Literals([
|
|
@@ -2003,7 +1987,7 @@ export const patchInstanceStatus: API.OperationMethod<
|
|
|
2003
1987
|
PatchInstanceStatusResponse,
|
|
2004
1988
|
PatchInstanceStatusError,
|
|
2005
1989
|
Credentials | HttpClient.HttpClient
|
|
2006
|
-
> = /*@__PURE__*/
|
|
1990
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2007
1991
|
input: PatchInstanceStatusRequest,
|
|
2008
1992
|
output: PatchInstanceStatusResponse,
|
|
2009
1993
|
errors: [
|
|
@@ -2024,18 +2008,17 @@ export interface GetVersionRequest {
|
|
|
2024
2008
|
accountId: string;
|
|
2025
2009
|
}
|
|
2026
2010
|
|
|
2027
|
-
export const GetVersionRequest = /*@__PURE__*/
|
|
2028
|
-
(
|
|
2029
|
-
Schema.
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
),
|
|
2011
|
+
export const GetVersionRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2012
|
+
Schema.Struct({
|
|
2013
|
+
workflowName: Schema.String.pipe(T.HttpPath("workflowName")),
|
|
2014
|
+
versionId: Schema.String.pipe(T.HttpPath("versionId")),
|
|
2015
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2016
|
+
}).pipe(
|
|
2017
|
+
T.Http({
|
|
2018
|
+
method: "GET",
|
|
2019
|
+
path: "/accounts/{account_id}/workflows/{workflowName}/versions/{versionId}",
|
|
2020
|
+
}),
|
|
2021
|
+
),
|
|
2039
2022
|
) as unknown as Schema.Codec<GetVersionRequest>;
|
|
2040
2023
|
|
|
2041
2024
|
export interface GetVersionResponse {
|
|
@@ -2050,34 +2033,33 @@ export interface GetVersionResponse {
|
|
|
2050
2033
|
limits?: { steps?: number | null } | null;
|
|
2051
2034
|
}
|
|
2052
2035
|
|
|
2053
|
-
export const GetVersionResponse = /*@__PURE__*/
|
|
2054
|
-
(
|
|
2055
|
-
Schema.
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
.
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
.pipe(T.ResponsePath("result")),
|
|
2036
|
+
export const GetVersionResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2037
|
+
Schema.Struct({
|
|
2038
|
+
id: Schema.String,
|
|
2039
|
+
className: Schema.String,
|
|
2040
|
+
createdOn: Schema.String,
|
|
2041
|
+
hasDag: Schema.Boolean,
|
|
2042
|
+
language: Schema.Union([
|
|
2043
|
+
Schema.Literals(["javascript", "python"]),
|
|
2044
|
+
Schema.String,
|
|
2045
|
+
]),
|
|
2046
|
+
modifiedOn: Schema.String,
|
|
2047
|
+
workflowId: Schema.String,
|
|
2048
|
+
limits: Schema.optional(Schema.Union([Limits, Schema.Null])),
|
|
2049
|
+
})
|
|
2050
|
+
.pipe(
|
|
2051
|
+
Schema.encodeKeys({
|
|
2052
|
+
id: "id",
|
|
2053
|
+
className: "class_name",
|
|
2054
|
+
createdOn: "created_on",
|
|
2055
|
+
hasDag: "has_dag",
|
|
2056
|
+
language: "language",
|
|
2057
|
+
modifiedOn: "modified_on",
|
|
2058
|
+
workflowId: "workflow_id",
|
|
2059
|
+
limits: "limits",
|
|
2060
|
+
}),
|
|
2061
|
+
)
|
|
2062
|
+
.pipe(T.ResponsePath("result")),
|
|
2081
2063
|
) as unknown as Schema.Codec<GetVersionResponse>;
|
|
2082
2064
|
|
|
2083
2065
|
export type GetVersionError =
|
|
@@ -2091,7 +2073,7 @@ export const getVersion: API.OperationMethod<
|
|
|
2091
2073
|
GetVersionResponse,
|
|
2092
2074
|
GetVersionError,
|
|
2093
2075
|
Credentials | HttpClient.HttpClient
|
|
2094
|
-
> = /*@__PURE__*/
|
|
2076
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2095
2077
|
input: GetVersionRequest,
|
|
2096
2078
|
output: GetVersionResponse,
|
|
2097
2079
|
errors: [WorkflowNotFound, InvalidRoute, VersionNotFound],
|
|
@@ -2105,19 +2087,18 @@ export interface ListVersionsRequest {
|
|
|
2105
2087
|
perPage?: number;
|
|
2106
2088
|
}
|
|
2107
2089
|
|
|
2108
|
-
export const ListVersionsRequest = /*@__PURE__*/
|
|
2109
|
-
(
|
|
2110
|
-
Schema.
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
),
|
|
2090
|
+
export const ListVersionsRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2091
|
+
Schema.Struct({
|
|
2092
|
+
workflowName: Schema.String.pipe(T.HttpPath("workflowName")),
|
|
2093
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2094
|
+
page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
|
|
2095
|
+
perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
|
|
2096
|
+
}).pipe(
|
|
2097
|
+
T.Http({
|
|
2098
|
+
method: "GET",
|
|
2099
|
+
path: "/accounts/{account_id}/workflows/{workflowName}/versions",
|
|
2100
|
+
}),
|
|
2101
|
+
),
|
|
2121
2102
|
) as unknown as Schema.Codec<ListVersionsRequest>;
|
|
2122
2103
|
|
|
2123
2104
|
export interface ListVersionsResponse {
|
|
@@ -2139,14 +2120,13 @@ export interface ListVersionsResponse {
|
|
|
2139
2120
|
} | null;
|
|
2140
2121
|
}
|
|
2141
2122
|
|
|
2142
|
-
export const ListVersionsResponse = /*@__PURE__*/
|
|
2143
|
-
(
|
|
2144
|
-
Schema.
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
|
|
2123
|
+
export const ListVersionsResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2124
|
+
Schema.Struct({
|
|
2125
|
+
result: Schema.Array(ListVersionsResponseResult),
|
|
2126
|
+
resultInfo: Schema.optional(
|
|
2127
|
+
Schema.Union([ListInstancesResponseResultInfo, Schema.Null]),
|
|
2128
|
+
),
|
|
2129
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
|
|
2150
2130
|
) as unknown as Schema.Codec<ListVersionsResponse>;
|
|
2151
2131
|
|
|
2152
2132
|
export type ListVersionsError = DefaultErrors | WorkflowNotFound | InvalidRoute;
|
|
@@ -2156,7 +2136,7 @@ export const listVersions: API.PaginatedOperationMethod<
|
|
|
2156
2136
|
ListVersionsResponse,
|
|
2157
2137
|
ListVersionsError,
|
|
2158
2138
|
Credentials | HttpClient.HttpClient
|
|
2159
|
-
> = /*@__PURE__*/
|
|
2139
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
2160
2140
|
input: ListVersionsRequest,
|
|
2161
2141
|
output: ListVersionsResponse,
|
|
2162
2142
|
errors: [WorkflowNotFound, InvalidRoute],
|
|
@@ -2175,18 +2155,17 @@ export interface GraphVersionRequest {
|
|
|
2175
2155
|
accountId: string;
|
|
2176
2156
|
}
|
|
2177
2157
|
|
|
2178
|
-
export const GraphVersionRequest = /*@__PURE__*/
|
|
2179
|
-
(
|
|
2180
|
-
Schema.
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
),
|
|
2158
|
+
export const GraphVersionRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2159
|
+
Schema.Struct({
|
|
2160
|
+
workflowName: Schema.String.pipe(T.HttpPath("workflowName")),
|
|
2161
|
+
versionId: Schema.String.pipe(T.HttpPath("versionId")),
|
|
2162
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2163
|
+
}).pipe(
|
|
2164
|
+
T.Http({
|
|
2165
|
+
method: "GET",
|
|
2166
|
+
path: "/accounts/{account_id}/workflows/{workflowName}/versions/{versionId}/graph",
|
|
2167
|
+
}),
|
|
2168
|
+
),
|
|
2190
2169
|
) as unknown as Schema.Codec<GraphVersionRequest>;
|
|
2191
2170
|
|
|
2192
2171
|
export interface GraphVersionResponse {
|
|
@@ -2291,27 +2270,26 @@ export interface GraphVersionResponse {
|
|
|
2291
2270
|
workflowId: string;
|
|
2292
2271
|
}
|
|
2293
2272
|
|
|
2294
|
-
export const GraphVersionResponse = /*@__PURE__*/
|
|
2295
|
-
(
|
|
2296
|
-
Schema.
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
.
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
.pipe(T.ResponsePath("result")),
|
|
2273
|
+
export const GraphVersionResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2274
|
+
Schema.Struct({
|
|
2275
|
+
id: Schema.String,
|
|
2276
|
+
className: Schema.String,
|
|
2277
|
+
createdOn: Schema.String,
|
|
2278
|
+
graph: Schema.Union([Graph, Schema.Null]),
|
|
2279
|
+
modifiedOn: Schema.String,
|
|
2280
|
+
workflowId: Schema.String,
|
|
2281
|
+
})
|
|
2282
|
+
.pipe(
|
|
2283
|
+
Schema.encodeKeys({
|
|
2284
|
+
id: "id",
|
|
2285
|
+
className: "class_name",
|
|
2286
|
+
createdOn: "created_on",
|
|
2287
|
+
graph: "graph",
|
|
2288
|
+
modifiedOn: "modified_on",
|
|
2289
|
+
workflowId: "workflow_id",
|
|
2290
|
+
}),
|
|
2291
|
+
)
|
|
2292
|
+
.pipe(T.ResponsePath("result")),
|
|
2315
2293
|
) as unknown as Schema.Codec<GraphVersionResponse>;
|
|
2316
2294
|
|
|
2317
2295
|
export type GraphVersionError = DefaultErrors;
|
|
@@ -2321,7 +2299,7 @@ export const graphVersion: API.OperationMethod<
|
|
|
2321
2299
|
GraphVersionResponse,
|
|
2322
2300
|
GraphVersionError,
|
|
2323
2301
|
Credentials | HttpClient.HttpClient
|
|
2324
|
-
> = /*@__PURE__*/
|
|
2302
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2325
2303
|
input: GraphVersionRequest,
|
|
2326
2304
|
output: GraphVersionResponse,
|
|
2327
2305
|
errors: [],
|
|
@@ -2336,17 +2314,16 @@ export interface GetWorkflowRequest {
|
|
|
2336
2314
|
accountId: string;
|
|
2337
2315
|
}
|
|
2338
2316
|
|
|
2339
|
-
export const GetWorkflowRequest = /*@__PURE__*/
|
|
2340
|
-
(
|
|
2341
|
-
Schema.
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
),
|
|
2317
|
+
export const GetWorkflowRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2318
|
+
Schema.Struct({
|
|
2319
|
+
workflowName: Schema.String.pipe(T.HttpPath("workflowName")),
|
|
2320
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2321
|
+
}).pipe(
|
|
2322
|
+
T.Http({
|
|
2323
|
+
method: "GET",
|
|
2324
|
+
path: "/accounts/{account_id}/workflows/{workflowName}",
|
|
2325
|
+
}),
|
|
2326
|
+
),
|
|
2350
2327
|
) as unknown as Schema.Codec<GetWorkflowRequest>;
|
|
2351
2328
|
|
|
2352
2329
|
export interface GetWorkflowResponse {
|
|
@@ -2371,35 +2348,34 @@ export interface GetWorkflowResponse {
|
|
|
2371
2348
|
schedules?: { cron: string; nextInstance: string }[] | null;
|
|
2372
2349
|
}
|
|
2373
2350
|
|
|
2374
|
-
export const GetWorkflowResponse = /*@__PURE__*/
|
|
2375
|
-
(
|
|
2376
|
-
Schema.
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
.
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
.pipe(T.ResponsePath("result")),
|
|
2351
|
+
export const GetWorkflowResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2352
|
+
Schema.Struct({
|
|
2353
|
+
id: Schema.String,
|
|
2354
|
+
className: Schema.String,
|
|
2355
|
+
createdOn: Schema.String,
|
|
2356
|
+
instances: Instances,
|
|
2357
|
+
modifiedOn: Schema.String,
|
|
2358
|
+
name: Schema.String,
|
|
2359
|
+
scriptName: Schema.String,
|
|
2360
|
+
triggeredOn: Schema.Union([Schema.String, Schema.Null]),
|
|
2361
|
+
schedules: Schema.optional(
|
|
2362
|
+
Schema.Union([Schema.Array(Schedule2), Schema.Null]),
|
|
2363
|
+
),
|
|
2364
|
+
})
|
|
2365
|
+
.pipe(
|
|
2366
|
+
Schema.encodeKeys({
|
|
2367
|
+
id: "id",
|
|
2368
|
+
className: "class_name",
|
|
2369
|
+
createdOn: "created_on",
|
|
2370
|
+
instances: "instances",
|
|
2371
|
+
modifiedOn: "modified_on",
|
|
2372
|
+
name: "name",
|
|
2373
|
+
scriptName: "script_name",
|
|
2374
|
+
triggeredOn: "triggered_on",
|
|
2375
|
+
schedules: "schedules",
|
|
2376
|
+
}),
|
|
2377
|
+
)
|
|
2378
|
+
.pipe(T.ResponsePath("result")),
|
|
2403
2379
|
) as unknown as Schema.Codec<GetWorkflowResponse>;
|
|
2404
2380
|
|
|
2405
2381
|
export type GetWorkflowError = DefaultErrors | WorkflowNotFound | InvalidRoute;
|
|
@@ -2409,7 +2385,7 @@ export const getWorkflow: API.OperationMethod<
|
|
|
2409
2385
|
GetWorkflowResponse,
|
|
2410
2386
|
GetWorkflowError,
|
|
2411
2387
|
Credentials | HttpClient.HttpClient
|
|
2412
|
-
> = /*@__PURE__*/
|
|
2388
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2413
2389
|
input: GetWorkflowRequest,
|
|
2414
2390
|
output: GetWorkflowResponse,
|
|
2415
2391
|
errors: [WorkflowNotFound, InvalidRoute],
|
|
@@ -2424,16 +2400,13 @@ export interface ListWorkflowsRequest {
|
|
|
2424
2400
|
search?: string;
|
|
2425
2401
|
}
|
|
2426
2402
|
|
|
2427
|
-
export const ListWorkflowsRequest = /*@__PURE__*/
|
|
2428
|
-
(
|
|
2429
|
-
Schema.
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
}).pipe(
|
|
2435
|
-
T.Http({ method: "GET", path: "/accounts/{account_id}/workflows" }),
|
|
2436
|
-
),
|
|
2403
|
+
export const ListWorkflowsRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2404
|
+
Schema.Struct({
|
|
2405
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2406
|
+
page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
|
|
2407
|
+
perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
|
|
2408
|
+
search: Schema.optional(Schema.String).pipe(T.HttpQuery("search")),
|
|
2409
|
+
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/workflows" })),
|
|
2437
2410
|
) as unknown as Schema.Codec<ListWorkflowsRequest>;
|
|
2438
2411
|
|
|
2439
2412
|
export interface ListWorkflowsResponse {
|
|
@@ -2466,14 +2439,13 @@ export interface ListWorkflowsResponse {
|
|
|
2466
2439
|
} | null;
|
|
2467
2440
|
}
|
|
2468
2441
|
|
|
2469
|
-
export const ListWorkflowsResponse = /*@__PURE__*/
|
|
2470
|
-
(
|
|
2471
|
-
Schema.
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
|
|
2442
|
+
export const ListWorkflowsResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2443
|
+
Schema.Struct({
|
|
2444
|
+
result: Schema.Array(ListWorkflowsResponseResult),
|
|
2445
|
+
resultInfo: Schema.optional(
|
|
2446
|
+
Schema.Union([ListInstancesResponseResultInfo, Schema.Null]),
|
|
2447
|
+
),
|
|
2448
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
|
|
2477
2449
|
) as unknown as Schema.Codec<ListWorkflowsResponse>;
|
|
2478
2450
|
|
|
2479
2451
|
export type ListWorkflowsError = DefaultErrors;
|
|
@@ -2483,7 +2455,7 @@ export const listWorkflows: API.PaginatedOperationMethod<
|
|
|
2483
2455
|
ListWorkflowsResponse,
|
|
2484
2456
|
ListWorkflowsError,
|
|
2485
2457
|
Credentials | HttpClient.HttpClient
|
|
2486
|
-
> = /*@__PURE__*/
|
|
2458
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
2487
2459
|
input: ListWorkflowsRequest,
|
|
2488
2460
|
output: ListWorkflowsResponse,
|
|
2489
2461
|
errors: [],
|
|
@@ -2510,27 +2482,26 @@ export interface PutWorkflowRequest {
|
|
|
2510
2482
|
schedules?: { cron: string }[];
|
|
2511
2483
|
}
|
|
2512
2484
|
|
|
2513
|
-
export const PutWorkflowRequest = /*@__PURE__*/
|
|
2514
|
-
(
|
|
2515
|
-
Schema.
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
),
|
|
2485
|
+
export const PutWorkflowRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2486
|
+
Schema.Struct({
|
|
2487
|
+
workflowName: Schema.String.pipe(T.HttpPath("workflowName")),
|
|
2488
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2489
|
+
className: Schema.String,
|
|
2490
|
+
scriptName: Schema.String,
|
|
2491
|
+
limits: Schema.optional(Limits),
|
|
2492
|
+
schedules: Schema.optional(Schema.Array(Schedule3)),
|
|
2493
|
+
}).pipe(
|
|
2494
|
+
Schema.encodeKeys({
|
|
2495
|
+
className: "class_name",
|
|
2496
|
+
scriptName: "script_name",
|
|
2497
|
+
limits: "limits",
|
|
2498
|
+
schedules: "schedules",
|
|
2499
|
+
}),
|
|
2500
|
+
T.Http({
|
|
2501
|
+
method: "PUT",
|
|
2502
|
+
path: "/accounts/{account_id}/workflows/{workflowName}",
|
|
2503
|
+
}),
|
|
2504
|
+
),
|
|
2534
2505
|
) as unknown as Schema.Codec<PutWorkflowRequest>;
|
|
2535
2506
|
|
|
2536
2507
|
export interface PutWorkflowResponse {
|
|
@@ -2546,37 +2517,36 @@ export interface PutWorkflowResponse {
|
|
|
2546
2517
|
versionId: string;
|
|
2547
2518
|
}
|
|
2548
2519
|
|
|
2549
|
-
export const PutWorkflowResponse = /*@__PURE__*/
|
|
2550
|
-
(
|
|
2551
|
-
Schema.
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
.
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
.pipe(T.ResponsePath("result")),
|
|
2520
|
+
export const PutWorkflowResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2521
|
+
Schema.Struct({
|
|
2522
|
+
id: Schema.String,
|
|
2523
|
+
className: Schema.String,
|
|
2524
|
+
createdOn: Schema.String,
|
|
2525
|
+
isDeleted: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2526
|
+
modifiedOn: Schema.String,
|
|
2527
|
+
name: Schema.String,
|
|
2528
|
+
scriptName: Schema.String,
|
|
2529
|
+
terminatorRunning: Schema.optional(
|
|
2530
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
2531
|
+
),
|
|
2532
|
+
triggeredOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2533
|
+
versionId: Schema.String,
|
|
2534
|
+
})
|
|
2535
|
+
.pipe(
|
|
2536
|
+
Schema.encodeKeys({
|
|
2537
|
+
id: "id",
|
|
2538
|
+
className: "class_name",
|
|
2539
|
+
createdOn: "created_on",
|
|
2540
|
+
isDeleted: "is_deleted",
|
|
2541
|
+
modifiedOn: "modified_on",
|
|
2542
|
+
name: "name",
|
|
2543
|
+
scriptName: "script_name",
|
|
2544
|
+
terminatorRunning: "terminator_running",
|
|
2545
|
+
triggeredOn: "triggered_on",
|
|
2546
|
+
versionId: "version_id",
|
|
2547
|
+
}),
|
|
2548
|
+
)
|
|
2549
|
+
.pipe(T.ResponsePath("result")),
|
|
2580
2550
|
) as unknown as Schema.Codec<PutWorkflowResponse>;
|
|
2581
2551
|
|
|
2582
2552
|
export type PutWorkflowError =
|
|
@@ -2589,7 +2559,7 @@ export const putWorkflow: API.OperationMethod<
|
|
|
2589
2559
|
PutWorkflowResponse,
|
|
2590
2560
|
PutWorkflowError,
|
|
2591
2561
|
Credentials | HttpClient.HttpClient
|
|
2592
|
-
> = /*@__PURE__*/
|
|
2562
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2593
2563
|
input: PutWorkflowRequest,
|
|
2594
2564
|
output: PutWorkflowResponse,
|
|
2595
2565
|
errors: [WorkflowInternalError, InvalidRoute],
|
|
@@ -2600,17 +2570,16 @@ export interface DeleteWorkflowRequest {
|
|
|
2600
2570
|
accountId: string;
|
|
2601
2571
|
}
|
|
2602
2572
|
|
|
2603
|
-
export const DeleteWorkflowRequest = /*@__PURE__*/
|
|
2604
|
-
(
|
|
2605
|
-
Schema.
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
),
|
|
2573
|
+
export const DeleteWorkflowRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2574
|
+
Schema.Struct({
|
|
2575
|
+
workflowName: Schema.String.pipe(T.HttpPath("workflowName")),
|
|
2576
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2577
|
+
}).pipe(
|
|
2578
|
+
T.Http({
|
|
2579
|
+
method: "DELETE",
|
|
2580
|
+
path: "/accounts/{account_id}/workflows/{workflowName}",
|
|
2581
|
+
}),
|
|
2582
|
+
),
|
|
2614
2583
|
) as unknown as Schema.Codec<DeleteWorkflowRequest>;
|
|
2615
2584
|
|
|
2616
2585
|
export interface DeleteWorkflowResponse {
|
|
@@ -2619,7 +2588,7 @@ export interface DeleteWorkflowResponse {
|
|
|
2619
2588
|
}
|
|
2620
2589
|
|
|
2621
2590
|
export const DeleteWorkflowResponse =
|
|
2622
|
-
/*@__PURE__*/
|
|
2591
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
2623
2592
|
Schema.Struct({
|
|
2624
2593
|
status: Schema.Literal("ok"),
|
|
2625
2594
|
success: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
@@ -2636,7 +2605,7 @@ export const deleteWorkflow: API.OperationMethod<
|
|
|
2636
2605
|
DeleteWorkflowResponse,
|
|
2637
2606
|
DeleteWorkflowError,
|
|
2638
2607
|
Credentials | HttpClient.HttpClient
|
|
2639
|
-
> = /*@__PURE__*/
|
|
2608
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2640
2609
|
input: DeleteWorkflowRequest,
|
|
2641
2610
|
output: DeleteWorkflowResponse,
|
|
2642
2611
|
errors: [WorkflowNotFound, InvalidRoute],
|