@distilled.cloud/cloudflare 0.6.1 → 0.7.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/accounts.d.ts +901 -36
- package/lib/services/accounts.d.ts.map +1 -1
- package/lib/services/accounts.js +1386 -32
- package/lib/services/accounts.js.map +1 -1
- package/lib/services/addressing.d.ts +8 -2
- package/lib/services/addressing.d.ts.map +1 -1
- package/lib/services/addressing.js +14 -2
- package/lib/services/addressing.js.map +1 -1
- package/lib/services/ai-gateway.d.ts.map +1 -1
- package/lib/services/ai-gateway.js +7 -7
- package/lib/services/ai-gateway.js.map +1 -1
- package/lib/services/aisearch.d.ts.map +1 -1
- package/lib/services/aisearch.js +24 -9
- package/lib/services/aisearch.js.map +1 -1
- package/lib/services/alerting.js +2 -2
- package/lib/services/alerting.js.map +1 -1
- package/lib/services/api-gateway.d.ts +114 -16
- package/lib/services/api-gateway.d.ts.map +1 -1
- package/lib/services/api-gateway.js +187 -15
- package/lib/services/api-gateway.js.map +1 -1
- package/lib/services/audit-logs.d.ts +63 -3
- package/lib/services/audit-logs.d.ts.map +1 -1
- package/lib/services/audit-logs.js +62 -3
- package/lib/services/audit-logs.js.map +1 -1
- package/lib/services/bot-management.d.ts +54 -8
- package/lib/services/bot-management.d.ts.map +1 -1
- package/lib/services/bot-management.js +128 -16
- package/lib/services/bot-management.js.map +1 -1
- package/lib/services/brand-protection.d.ts.map +1 -1
- package/lib/services/brand-protection.js +26 -8
- 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 +13 -10
- package/lib/services/browser-rendering.js.map +1 -1
- package/lib/services/cloudforce-one.d.ts +61 -6
- package/lib/services/cloudforce-one.d.ts.map +1 -1
- package/lib/services/cloudforce-one.js +107 -6
- package/lib/services/cloudforce-one.js.map +1 -1
- package/lib/services/custom-certificates.d.ts +145 -8
- package/lib/services/custom-certificates.d.ts.map +1 -1
- package/lib/services/custom-certificates.js +226 -7
- package/lib/services/custom-certificates.js.map +1 -1
- package/lib/services/custom-hostnames.d.ts +8 -8
- package/lib/services/custom-hostnames.d.ts.map +1 -1
- package/lib/services/custom-hostnames.js +17 -14
- package/lib/services/custom-hostnames.js.map +1 -1
- package/lib/services/d1.d.ts +68 -8
- package/lib/services/d1.d.ts.map +1 -1
- package/lib/services/d1.js +96 -8
- package/lib/services/d1.js.map +1 -1
- package/lib/services/dns-firewall.d.ts +57 -4
- package/lib/services/dns-firewall.d.ts.map +1 -1
- package/lib/services/dns-firewall.js +86 -5
- package/lib/services/dns-firewall.js.map +1 -1
- package/lib/services/dns.d.ts +85 -745
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +118 -1424
- package/lib/services/dns.js.map +1 -1
- package/lib/services/email-routing.d.ts +59 -7
- package/lib/services/email-routing.d.ts.map +1 -1
- package/lib/services/email-routing.js +165 -7
- package/lib/services/email-routing.js.map +1 -1
- package/lib/services/firewall.d.ts +228 -39
- package/lib/services/firewall.d.ts.map +1 -1
- package/lib/services/firewall.js +220 -33
- package/lib/services/firewall.js.map +1 -1
- package/lib/services/healthchecks.d.ts +112 -6
- package/lib/services/healthchecks.d.ts.map +1 -1
- package/lib/services/healthchecks.js +248 -14
- package/lib/services/healthchecks.js.map +1 -1
- package/lib/services/hostnames.d.ts +5 -5
- package/lib/services/hostnames.d.ts.map +1 -1
- package/lib/services/hostnames.js +16 -4
- package/lib/services/hostnames.js.map +1 -1
- package/lib/services/hyperdrive.d.ts +223 -11
- package/lib/services/hyperdrive.d.ts.map +1 -1
- package/lib/services/hyperdrive.js +351 -11
- package/lib/services/hyperdrive.js.map +1 -1
- package/lib/services/iam.d.ts +62 -2
- package/lib/services/iam.d.ts.map +1 -1
- package/lib/services/iam.js +82 -11
- package/lib/services/iam.js.map +1 -1
- package/lib/services/images.d.ts +9 -1
- package/lib/services/images.d.ts.map +1 -1
- package/lib/services/images.js +12 -1
- package/lib/services/images.js.map +1 -1
- package/lib/services/intel.d.ts +4 -4
- package/lib/services/intel.d.ts.map +1 -1
- package/lib/services/intel.js +2 -3
- package/lib/services/intel.js.map +1 -1
- package/lib/services/kv.d.ts.map +1 -1
- package/lib/services/kv.js +2 -2
- package/lib/services/kv.js.map +1 -1
- package/lib/services/load-balancers.d.ts +537 -108
- package/lib/services/load-balancers.d.ts.map +1 -1
- package/lib/services/load-balancers.js +1266 -161
- package/lib/services/load-balancers.js.map +1 -1
- package/lib/services/logpush.d.ts +153 -9
- package/lib/services/logpush.d.ts.map +1 -1
- package/lib/services/logpush.js +246 -9
- package/lib/services/logpush.js.map +1 -1
- package/lib/services/magic-cloud-networking.d.ts.map +1 -1
- package/lib/services/magic-cloud-networking.js +54 -30
- package/lib/services/magic-cloud-networking.js.map +1 -1
- package/lib/services/magic-network-monitoring.d.ts +46 -5
- package/lib/services/magic-network-monitoring.d.ts.map +1 -1
- package/lib/services/magic-network-monitoring.js +79 -5
- package/lib/services/magic-network-monitoring.js.map +1 -1
- package/lib/services/magic-transit.d.ts +127 -21
- package/lib/services/magic-transit.d.ts.map +1 -1
- package/lib/services/magic-transit.js +291 -29
- package/lib/services/magic-transit.js.map +1 -1
- package/lib/services/memberships.d.ts +248 -52
- package/lib/services/memberships.d.ts.map +1 -1
- package/lib/services/memberships.js +360 -39
- package/lib/services/memberships.js.map +1 -1
- package/lib/services/page-rules.d.ts +432 -8
- package/lib/services/page-rules.d.ts.map +1 -1
- package/lib/services/page-rules.js +877 -33
- package/lib/services/page-rules.js.map +1 -1
- package/lib/services/pages.d.ts +457 -297
- package/lib/services/pages.d.ts.map +1 -1
- package/lib/services/pages.js +1366 -491
- package/lib/services/pages.js.map +1 -1
- package/lib/services/pipelines.d.ts +96 -76
- package/lib/services/pipelines.d.ts.map +1 -1
- package/lib/services/pipelines.js +145 -197
- package/lib/services/pipelines.js.map +1 -1
- package/lib/services/queues.d.ts +228 -12
- package/lib/services/queues.d.ts.map +1 -1
- package/lib/services/queues.js +487 -11
- package/lib/services/queues.js.map +1 -1
- package/lib/services/radar.d.ts +82 -18
- package/lib/services/radar.d.ts.map +1 -1
- package/lib/services/radar.js +111 -47
- package/lib/services/radar.js.map +1 -1
- package/lib/services/realtime-kit.d.ts +650 -334
- package/lib/services/realtime-kit.d.ts.map +1 -1
- package/lib/services/realtime-kit.js +1472 -693
- package/lib/services/realtime-kit.js.map +1 -1
- package/lib/services/request-tracers.d.ts +12 -1
- package/lib/services/request-tracers.d.ts.map +1 -1
- package/lib/services/request-tracers.js +28 -3
- package/lib/services/request-tracers.js.map +1 -1
- package/lib/services/rules.d.ts +65 -10
- package/lib/services/rules.d.ts.map +1 -1
- package/lib/services/rules.js +102 -8
- package/lib/services/rules.js.map +1 -1
- package/lib/services/rulesets.d.ts +7892 -1806
- package/lib/services/rulesets.d.ts.map +1 -1
- package/lib/services/rulesets.js +18720 -4149
- package/lib/services/rulesets.js.map +1 -1
- package/lib/services/rum.d.ts +45 -5
- package/lib/services/rum.d.ts.map +1 -1
- package/lib/services/rum.js +80 -4
- package/lib/services/rum.js.map +1 -1
- package/lib/services/schema-validation.js +2 -2
- package/lib/services/schema-validation.js.map +1 -1
- package/lib/services/spectrum.d.ts +139 -33
- package/lib/services/spectrum.d.ts.map +1 -1
- package/lib/services/spectrum.js +190 -34
- package/lib/services/spectrum.js.map +1 -1
- package/lib/services/speed.d.ts +345 -24
- package/lib/services/speed.d.ts.map +1 -1
- package/lib/services/speed.js +785 -19
- package/lib/services/speed.js.map +1 -1
- package/lib/services/ssl.d.ts +6 -6
- package/lib/services/ssl.d.ts.map +1 -1
- package/lib/services/ssl.js +5 -5
- package/lib/services/ssl.js.map +1 -1
- package/lib/services/stream.d.ts +171 -17
- package/lib/services/stream.d.ts.map +1 -1
- package/lib/services/stream.js +164 -11
- package/lib/services/stream.js.map +1 -1
- package/lib/services/token-validation.d.ts +16 -2
- package/lib/services/token-validation.d.ts.map +1 -1
- package/lib/services/token-validation.js +32 -2
- package/lib/services/token-validation.js.map +1 -1
- package/lib/services/url-scanner.d.ts +43 -11
- package/lib/services/url-scanner.d.ts.map +1 -1
- package/lib/services/url-scanner.js +46 -11
- package/lib/services/url-scanner.js.map +1 -1
- package/lib/services/user.d.ts +312 -21
- package/lib/services/user.d.ts.map +1 -1
- package/lib/services/user.js +442 -19
- package/lib/services/user.js.map +1 -1
- package/lib/services/workers-for-platforms.d.ts +223 -13
- package/lib/services/workers-for-platforms.d.ts.map +1 -1
- package/lib/services/workers-for-platforms.js +481 -13
- package/lib/services/workers-for-platforms.js.map +1 -1
- package/lib/services/workers.d.ts +345 -31
- package/lib/services/workers.d.ts.map +1 -1
- package/lib/services/workers.js +649 -34
- package/lib/services/workers.js.map +1 -1
- package/lib/services/zaraz.d.ts +212 -11
- package/lib/services/zaraz.d.ts.map +1 -1
- package/lib/services/zaraz.js +311 -30
- package/lib/services/zaraz.js.map +1 -1
- package/lib/services/zero-trust.d.ts +19333 -1905
- package/lib/services/zero-trust.d.ts.map +1 -1
- package/lib/services/zero-trust.js +30269 -5710
- package/lib/services/zero-trust.js.map +1 -1
- package/lib/services/zones.d.ts +61 -7
- package/lib/services/zones.d.ts.map +1 -1
- package/lib/services/zones.js +188 -7
- package/lib/services/zones.js.map +1 -1
- package/package.json +2 -2
- package/src/services/accounts.ts +2897 -63
- package/src/services/addressing.ts +28 -4
- package/src/services/ai-gateway.ts +9 -7
- package/src/services/aisearch.ts +28 -9
- package/src/services/alerting.ts +2 -2
- package/src/services/api-gateway.ts +410 -27
- package/src/services/audit-logs.ts +135 -5
- package/src/services/bot-management.ts +282 -24
- package/src/services/brand-protection.ts +28 -8
- package/src/services/browser-rendering.ts +31 -11
- package/src/services/cloudforce-one.ts +201 -9
- package/src/services/custom-certificates.ts +405 -14
- package/src/services/custom-hostnames.ts +29 -22
- package/src/services/d1.ts +180 -12
- package/src/services/dns-firewall.ts +163 -7
- package/src/services/dns.ts +213 -2389
- package/src/services/email-routing.ts +346 -12
- package/src/services/firewall.ts +556 -72
- package/src/services/healthchecks.ts +463 -18
- package/src/services/hostnames.ts +21 -9
- package/src/services/hyperdrive.ts +730 -17
- package/src/services/iam.ts +228 -24
- package/src/services/images.ts +29 -2
- package/src/services/intel.ts +6 -5
- package/src/services/kv.ts +6 -2
- package/src/services/load-balancers.ts +2387 -294
- package/src/services/logpush.ts +659 -15
- package/src/services/magic-cloud-networking.ts +74 -30
- package/src/services/magic-network-monitoring.ts +170 -8
- package/src/services/magic-transit.ts +631 -62
- package/src/services/memberships.ts +710 -91
- package/src/services/page-rules.ts +1592 -88
- package/src/services/pages.ts +2011 -1098
- package/src/services/pipelines.ts +285 -331
- package/src/services/queues.ts +1110 -22
- package/src/services/radar.ts +128 -64
- package/src/services/realtime-kit.ts +2829 -1603
- package/src/services/request-tracers.ts +54 -4
- package/src/services/rules.ts +214 -18
- package/src/services/rulesets.ts +34524 -6913
- package/src/services/rum.ts +187 -9
- package/src/services/schema-validation.ts +2 -2
- package/src/services/spectrum.ts +357 -67
- package/src/services/speed.ts +1845 -42
- package/src/services/ssl.ts +11 -11
- package/src/services/stream.ts +397 -22
- package/src/services/token-validation.ts +64 -4
- package/src/services/url-scanner.ts +92 -20
- package/src/services/user.ts +973 -34
- package/src/services/workers-for-platforms.ts +1012 -39
- package/src/services/workers.ts +1472 -120
- package/src/services/zaraz.ts +640 -37
- package/src/services/zero-trust.ts +55498 -12667
- package/src/services/zones.ts +360 -14
package/lib/services/workers.js
CHANGED
|
@@ -100,7 +100,7 @@ export const CreateAssetUploadRequest =
|
|
|
100
100
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
101
101
|
base64: Schema.Literal(true).pipe(T.HttpQuery("base64")),
|
|
102
102
|
jwtToken: Schema.optional(Schema.String).pipe(T.HttpHeader("Authorization")),
|
|
103
|
-
body: Schema.
|
|
103
|
+
body: Schema.Record(Schema.String, Schema.Unknown).pipe(T.HttpBody()),
|
|
104
104
|
}).pipe(T.Http({
|
|
105
105
|
method: "POST",
|
|
106
106
|
path: "/accounts/{account_id}/workers/assets/upload",
|
|
@@ -669,7 +669,53 @@ export const GetBetaWorkerVersionResponse =
|
|
|
669
669
|
Schema.Null,
|
|
670
670
|
])),
|
|
671
671
|
mainModule: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
672
|
-
migrations: Schema.optional(Schema.Union([
|
|
672
|
+
migrations: Schema.optional(Schema.Union([
|
|
673
|
+
Schema.Union([
|
|
674
|
+
Schema.Unknown,
|
|
675
|
+
Schema.Struct({
|
|
676
|
+
newTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
677
|
+
oldTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
678
|
+
steps: Schema.optional(Schema.Union([
|
|
679
|
+
Schema.Array(Schema.Struct({
|
|
680
|
+
deletedClasses: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
681
|
+
newClasses: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
682
|
+
newSqliteClasses: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
683
|
+
renamedClasses: Schema.optional(Schema.Union([
|
|
684
|
+
Schema.Array(Schema.Struct({
|
|
685
|
+
from: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
686
|
+
to: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
687
|
+
})),
|
|
688
|
+
Schema.Null,
|
|
689
|
+
])),
|
|
690
|
+
transferredClasses: Schema.optional(Schema.Union([
|
|
691
|
+
Schema.Array(Schema.Struct({
|
|
692
|
+
from: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
693
|
+
fromScript: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
694
|
+
to: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
695
|
+
}).pipe(Schema.encodeKeys({
|
|
696
|
+
from: "from",
|
|
697
|
+
fromScript: "from_script",
|
|
698
|
+
to: "to",
|
|
699
|
+
}))),
|
|
700
|
+
Schema.Null,
|
|
701
|
+
])),
|
|
702
|
+
}).pipe(Schema.encodeKeys({
|
|
703
|
+
deletedClasses: "deleted_classes",
|
|
704
|
+
newClasses: "new_classes",
|
|
705
|
+
newSqliteClasses: "new_sqlite_classes",
|
|
706
|
+
renamedClasses: "renamed_classes",
|
|
707
|
+
transferredClasses: "transferred_classes",
|
|
708
|
+
}))),
|
|
709
|
+
Schema.Null,
|
|
710
|
+
])),
|
|
711
|
+
}).pipe(Schema.encodeKeys({
|
|
712
|
+
newTag: "new_tag",
|
|
713
|
+
oldTag: "old_tag",
|
|
714
|
+
steps: "steps",
|
|
715
|
+
})),
|
|
716
|
+
]),
|
|
717
|
+
Schema.Null,
|
|
718
|
+
])),
|
|
673
719
|
modules: Schema.optional(Schema.Union([
|
|
674
720
|
Schema.Array(Schema.Struct({
|
|
675
721
|
contentBase64: Schema.String,
|
|
@@ -1023,7 +1069,62 @@ export const ListBetaWorkerVersionsResponse =
|
|
|
1023
1069
|
Schema.Null,
|
|
1024
1070
|
])),
|
|
1025
1071
|
mainModule: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1026
|
-
migrations: Schema.optional(Schema.Union([
|
|
1072
|
+
migrations: Schema.optional(Schema.Union([
|
|
1073
|
+
Schema.Union([
|
|
1074
|
+
Schema.Unknown,
|
|
1075
|
+
Schema.Struct({
|
|
1076
|
+
newTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1077
|
+
oldTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1078
|
+
steps: Schema.optional(Schema.Union([
|
|
1079
|
+
Schema.Array(Schema.Struct({
|
|
1080
|
+
deletedClasses: Schema.optional(Schema.Union([
|
|
1081
|
+
Schema.Array(Schema.String),
|
|
1082
|
+
Schema.Null,
|
|
1083
|
+
])),
|
|
1084
|
+
newClasses: Schema.optional(Schema.Union([
|
|
1085
|
+
Schema.Array(Schema.String),
|
|
1086
|
+
Schema.Null,
|
|
1087
|
+
])),
|
|
1088
|
+
newSqliteClasses: Schema.optional(Schema.Union([
|
|
1089
|
+
Schema.Array(Schema.String),
|
|
1090
|
+
Schema.Null,
|
|
1091
|
+
])),
|
|
1092
|
+
renamedClasses: Schema.optional(Schema.Union([
|
|
1093
|
+
Schema.Array(Schema.Struct({
|
|
1094
|
+
from: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1095
|
+
to: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1096
|
+
})),
|
|
1097
|
+
Schema.Null,
|
|
1098
|
+
])),
|
|
1099
|
+
transferredClasses: Schema.optional(Schema.Union([
|
|
1100
|
+
Schema.Array(Schema.Struct({
|
|
1101
|
+
from: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1102
|
+
fromScript: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1103
|
+
to: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1104
|
+
}).pipe(Schema.encodeKeys({
|
|
1105
|
+
from: "from",
|
|
1106
|
+
fromScript: "from_script",
|
|
1107
|
+
to: "to",
|
|
1108
|
+
}))),
|
|
1109
|
+
Schema.Null,
|
|
1110
|
+
])),
|
|
1111
|
+
}).pipe(Schema.encodeKeys({
|
|
1112
|
+
deletedClasses: "deleted_classes",
|
|
1113
|
+
newClasses: "new_classes",
|
|
1114
|
+
newSqliteClasses: "new_sqlite_classes",
|
|
1115
|
+
renamedClasses: "renamed_classes",
|
|
1116
|
+
transferredClasses: "transferred_classes",
|
|
1117
|
+
}))),
|
|
1118
|
+
Schema.Null,
|
|
1119
|
+
])),
|
|
1120
|
+
}).pipe(Schema.encodeKeys({
|
|
1121
|
+
newTag: "new_tag",
|
|
1122
|
+
oldTag: "old_tag",
|
|
1123
|
+
steps: "steps",
|
|
1124
|
+
})),
|
|
1125
|
+
]),
|
|
1126
|
+
Schema.Null,
|
|
1127
|
+
])),
|
|
1027
1128
|
modules: Schema.optional(Schema.Union([
|
|
1028
1129
|
Schema.Array(Schema.Struct({
|
|
1029
1130
|
contentBase64: Schema.String,
|
|
@@ -1352,11 +1453,61 @@ export const CreateBetaWorkerVersionRequest =
|
|
|
1352
1453
|
}).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" }))),
|
|
1353
1454
|
mainModule: Schema.optional(Schema.String),
|
|
1354
1455
|
migrations: Schema.optional(Schema.Union([
|
|
1355
|
-
Schema.Unknown,
|
|
1356
1456
|
Schema.Struct({
|
|
1457
|
+
deletedClasses: Schema.optional(Schema.Array(Schema.String)),
|
|
1458
|
+
newClasses: Schema.optional(Schema.Array(Schema.String)),
|
|
1459
|
+
newSqliteClasses: Schema.optional(Schema.Array(Schema.String)),
|
|
1357
1460
|
newTag: Schema.optional(Schema.String),
|
|
1358
1461
|
oldTag: Schema.optional(Schema.String),
|
|
1359
|
-
|
|
1462
|
+
renamedClasses: Schema.optional(Schema.Array(Schema.Struct({
|
|
1463
|
+
from: Schema.optional(Schema.String),
|
|
1464
|
+
to: Schema.optional(Schema.String),
|
|
1465
|
+
}))),
|
|
1466
|
+
transferredClasses: Schema.optional(Schema.Array(Schema.Struct({
|
|
1467
|
+
from: Schema.optional(Schema.String),
|
|
1468
|
+
fromScript: Schema.optional(Schema.String),
|
|
1469
|
+
to: Schema.optional(Schema.String),
|
|
1470
|
+
}).pipe(Schema.encodeKeys({
|
|
1471
|
+
from: "from",
|
|
1472
|
+
fromScript: "from_script",
|
|
1473
|
+
to: "to",
|
|
1474
|
+
})))),
|
|
1475
|
+
}).pipe(Schema.encodeKeys({
|
|
1476
|
+
deletedClasses: "deleted_classes",
|
|
1477
|
+
newClasses: "new_classes",
|
|
1478
|
+
newSqliteClasses: "new_sqlite_classes",
|
|
1479
|
+
newTag: "new_tag",
|
|
1480
|
+
oldTag: "old_tag",
|
|
1481
|
+
renamedClasses: "renamed_classes",
|
|
1482
|
+
transferredClasses: "transferred_classes",
|
|
1483
|
+
})),
|
|
1484
|
+
Schema.Struct({
|
|
1485
|
+
newTag: Schema.optional(Schema.String),
|
|
1486
|
+
oldTag: Schema.optional(Schema.String),
|
|
1487
|
+
steps: Schema.optional(Schema.Array(Schema.Struct({
|
|
1488
|
+
deletedClasses: Schema.optional(Schema.Array(Schema.String)),
|
|
1489
|
+
newClasses: Schema.optional(Schema.Array(Schema.String)),
|
|
1490
|
+
newSqliteClasses: Schema.optional(Schema.Array(Schema.String)),
|
|
1491
|
+
renamedClasses: Schema.optional(Schema.Array(Schema.Struct({
|
|
1492
|
+
from: Schema.optional(Schema.String),
|
|
1493
|
+
to: Schema.optional(Schema.String),
|
|
1494
|
+
}))),
|
|
1495
|
+
transferredClasses: Schema.optional(Schema.Array(Schema.Struct({
|
|
1496
|
+
from: Schema.optional(Schema.String),
|
|
1497
|
+
fromScript: Schema.optional(Schema.String),
|
|
1498
|
+
to: Schema.optional(Schema.String),
|
|
1499
|
+
}).pipe(Schema.encodeKeys({
|
|
1500
|
+
from: "from",
|
|
1501
|
+
fromScript: "from_script",
|
|
1502
|
+
to: "to",
|
|
1503
|
+
})))),
|
|
1504
|
+
}).pipe(Schema.encodeKeys({
|
|
1505
|
+
deletedClasses: "deleted_classes",
|
|
1506
|
+
newClasses: "new_classes",
|
|
1507
|
+
newSqliteClasses: "new_sqlite_classes",
|
|
1508
|
+
renamedClasses: "renamed_classes",
|
|
1509
|
+
transferredClasses: "transferred_classes",
|
|
1510
|
+
})))),
|
|
1360
1511
|
}).pipe(Schema.encodeKeys({
|
|
1361
1512
|
newTag: "new_tag",
|
|
1362
1513
|
oldTag: "old_tag",
|
|
@@ -1678,7 +1829,53 @@ export const CreateBetaWorkerVersionResponse =
|
|
|
1678
1829
|
Schema.Null,
|
|
1679
1830
|
])),
|
|
1680
1831
|
mainModule: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1681
|
-
migrations: Schema.optional(Schema.Union([
|
|
1832
|
+
migrations: Schema.optional(Schema.Union([
|
|
1833
|
+
Schema.Union([
|
|
1834
|
+
Schema.Unknown,
|
|
1835
|
+
Schema.Struct({
|
|
1836
|
+
newTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1837
|
+
oldTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1838
|
+
steps: Schema.optional(Schema.Union([
|
|
1839
|
+
Schema.Array(Schema.Struct({
|
|
1840
|
+
deletedClasses: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1841
|
+
newClasses: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1842
|
+
newSqliteClasses: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1843
|
+
renamedClasses: Schema.optional(Schema.Union([
|
|
1844
|
+
Schema.Array(Schema.Struct({
|
|
1845
|
+
from: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1846
|
+
to: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1847
|
+
})),
|
|
1848
|
+
Schema.Null,
|
|
1849
|
+
])),
|
|
1850
|
+
transferredClasses: Schema.optional(Schema.Union([
|
|
1851
|
+
Schema.Array(Schema.Struct({
|
|
1852
|
+
from: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1853
|
+
fromScript: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1854
|
+
to: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1855
|
+
}).pipe(Schema.encodeKeys({
|
|
1856
|
+
from: "from",
|
|
1857
|
+
fromScript: "from_script",
|
|
1858
|
+
to: "to",
|
|
1859
|
+
}))),
|
|
1860
|
+
Schema.Null,
|
|
1861
|
+
])),
|
|
1862
|
+
}).pipe(Schema.encodeKeys({
|
|
1863
|
+
deletedClasses: "deleted_classes",
|
|
1864
|
+
newClasses: "new_classes",
|
|
1865
|
+
newSqliteClasses: "new_sqlite_classes",
|
|
1866
|
+
renamedClasses: "renamed_classes",
|
|
1867
|
+
transferredClasses: "transferred_classes",
|
|
1868
|
+
}))),
|
|
1869
|
+
Schema.Null,
|
|
1870
|
+
])),
|
|
1871
|
+
}).pipe(Schema.encodeKeys({
|
|
1872
|
+
newTag: "new_tag",
|
|
1873
|
+
oldTag: "old_tag",
|
|
1874
|
+
steps: "steps",
|
|
1875
|
+
})),
|
|
1876
|
+
]),
|
|
1877
|
+
Schema.Null,
|
|
1878
|
+
])),
|
|
1682
1879
|
modules: Schema.optional(Schema.Union([
|
|
1683
1880
|
Schema.Array(Schema.Struct({
|
|
1684
1881
|
contentBase64: Schema.String,
|
|
@@ -2324,7 +2521,9 @@ export const QueryObservabilityTelemetryResponse =
|
|
|
2324
2521
|
series: Schema.Array(Schema.Struct({
|
|
2325
2522
|
data: Schema.Array(Schema.Struct({
|
|
2326
2523
|
count: Schema.Number,
|
|
2524
|
+
firstSeen: Schema.String,
|
|
2327
2525
|
interval: Schema.Number,
|
|
2526
|
+
lastSeen: Schema.String,
|
|
2328
2527
|
sampleInterval: Schema.Number,
|
|
2329
2528
|
value: Schema.Number,
|
|
2330
2529
|
groups: Schema.optional(Schema.Union([
|
|
@@ -2368,7 +2567,9 @@ export const QueryObservabilityTelemetryResponse =
|
|
|
2368
2567
|
series: Schema.Array(Schema.Struct({
|
|
2369
2568
|
data: Schema.Array(Schema.Struct({
|
|
2370
2569
|
count: Schema.Number,
|
|
2570
|
+
firstSeen: Schema.String,
|
|
2371
2571
|
interval: Schema.Number,
|
|
2572
|
+
lastSeen: Schema.String,
|
|
2372
2573
|
sampleInterval: Schema.Number,
|
|
2373
2574
|
value: Schema.Number,
|
|
2374
2575
|
groups: Schema.optional(Schema.Union([
|
|
@@ -2450,7 +2651,10 @@ export const QueryObservabilityTelemetryResponse =
|
|
|
2450
2651
|
scriptName: Schema.String,
|
|
2451
2652
|
durableObjectId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2452
2653
|
entrypoint: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2453
|
-
event: Schema.optional(Schema.Union([
|
|
2654
|
+
event: Schema.optional(Schema.Union([
|
|
2655
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
2656
|
+
Schema.Null,
|
|
2657
|
+
])),
|
|
2454
2658
|
executionModel: Schema.optional(Schema.Union([
|
|
2455
2659
|
Schema.Literals(["durableObject", "stateless"]),
|
|
2456
2660
|
Schema.Null,
|
|
@@ -2495,7 +2699,10 @@ export const QueryObservabilityTelemetryResponse =
|
|
|
2495
2699
|
dispatchNamespace: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2496
2700
|
durableObjectId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2497
2701
|
entrypoint: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2498
|
-
event: Schema.optional(Schema.Union([
|
|
2702
|
+
event: Schema.optional(Schema.Union([
|
|
2703
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
2704
|
+
Schema.Null,
|
|
2705
|
+
])),
|
|
2499
2706
|
executionModel: Schema.optional(Schema.Union([
|
|
2500
2707
|
Schema.Literals(["durableObject", "stateless"]),
|
|
2501
2708
|
Schema.Null,
|
|
@@ -2526,19 +2733,25 @@ export const QueryObservabilityTelemetryResponse =
|
|
|
2526
2733
|
series: Schema.optional(Schema.Union([
|
|
2527
2734
|
Schema.Array(Schema.Struct({
|
|
2528
2735
|
data: Schema.Array(Schema.Struct({
|
|
2736
|
+
aggregates: Schema.Struct({
|
|
2737
|
+
count: Schema.Number,
|
|
2738
|
+
firstSeen: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2739
|
+
interval: Schema.Number,
|
|
2740
|
+
lastSeen: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2741
|
+
bin: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
2742
|
+
}).pipe(Schema.encodeKeys({
|
|
2743
|
+
count: "_count",
|
|
2744
|
+
firstSeen: "_firstSeen",
|
|
2745
|
+
interval: "_interval",
|
|
2746
|
+
lastSeen: "_lastSeen",
|
|
2747
|
+
bin: "bin",
|
|
2748
|
+
})),
|
|
2529
2749
|
count: Schema.Number,
|
|
2530
2750
|
interval: Schema.Number,
|
|
2531
2751
|
sampleInterval: Schema.Number,
|
|
2532
|
-
|
|
2752
|
+
errors: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2533
2753
|
groups: Schema.optional(Schema.Union([
|
|
2534
|
-
Schema.
|
|
2535
|
-
key: Schema.String,
|
|
2536
|
-
value: Schema.Union([
|
|
2537
|
-
Schema.String,
|
|
2538
|
-
Schema.Number,
|
|
2539
|
-
Schema.Boolean,
|
|
2540
|
-
]),
|
|
2541
|
-
})),
|
|
2754
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
2542
2755
|
Schema.Null,
|
|
2543
2756
|
])),
|
|
2544
2757
|
})),
|
|
@@ -2549,7 +2762,7 @@ export const QueryObservabilityTelemetryResponse =
|
|
|
2549
2762
|
}),
|
|
2550
2763
|
Schema.Null,
|
|
2551
2764
|
])),
|
|
2552
|
-
invocations: Schema.optional(Schema.Union([Schema.
|
|
2765
|
+
invocations: Schema.optional(Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null])),
|
|
2553
2766
|
patterns: Schema.optional(Schema.Union([
|
|
2554
2767
|
Schema.Array(Schema.Struct({
|
|
2555
2768
|
count: Schema.Number,
|
|
@@ -2758,7 +2971,7 @@ export const GetScriptRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2758
2971
|
path: "/accounts/{account_id}/workers/scripts/{scriptName}",
|
|
2759
2972
|
}));
|
|
2760
2973
|
export const GetScriptResponse =
|
|
2761
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
2974
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.String;
|
|
2762
2975
|
export const getScript = API.make(() => ({
|
|
2763
2976
|
input: GetScriptRequest,
|
|
2764
2977
|
output: GetScriptResponse,
|
|
@@ -2904,7 +3117,14 @@ export const ListScriptsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2904
3117
|
])),
|
|
2905
3118
|
tag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2906
3119
|
tags: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
2907
|
-
tailConsumers: Schema.optional(Schema.Union([
|
|
3120
|
+
tailConsumers: Schema.optional(Schema.Union([
|
|
3121
|
+
Schema.Array(Schema.Struct({
|
|
3122
|
+
service: Schema.String,
|
|
3123
|
+
environment: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3124
|
+
namespace: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3125
|
+
})),
|
|
3126
|
+
Schema.Null,
|
|
3127
|
+
])),
|
|
2908
3128
|
usageModel: Schema.optional(Schema.Union([
|
|
2909
3129
|
Schema.Literals(["standard", "bundled", "unbound"]),
|
|
2910
3130
|
Schema.Null,
|
|
@@ -3207,11 +3427,61 @@ export const PutScriptRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
3207
3427
|
logpush: Schema.optional(Schema.Boolean),
|
|
3208
3428
|
mainModule: Schema.optional(Schema.String),
|
|
3209
3429
|
migrations: Schema.optional(Schema.Union([
|
|
3210
|
-
Schema.Unknown,
|
|
3211
3430
|
Schema.Struct({
|
|
3431
|
+
deletedClasses: Schema.optional(Schema.Array(Schema.String)),
|
|
3432
|
+
newClasses: Schema.optional(Schema.Array(Schema.String)),
|
|
3433
|
+
newSqliteClasses: Schema.optional(Schema.Array(Schema.String)),
|
|
3212
3434
|
newTag: Schema.optional(Schema.String),
|
|
3213
3435
|
oldTag: Schema.optional(Schema.String),
|
|
3214
|
-
|
|
3436
|
+
renamedClasses: Schema.optional(Schema.Array(Schema.Struct({
|
|
3437
|
+
from: Schema.optional(Schema.String),
|
|
3438
|
+
to: Schema.optional(Schema.String),
|
|
3439
|
+
}))),
|
|
3440
|
+
transferredClasses: Schema.optional(Schema.Array(Schema.Struct({
|
|
3441
|
+
from: Schema.optional(Schema.String),
|
|
3442
|
+
fromScript: Schema.optional(Schema.String),
|
|
3443
|
+
to: Schema.optional(Schema.String),
|
|
3444
|
+
}).pipe(Schema.encodeKeys({
|
|
3445
|
+
from: "from",
|
|
3446
|
+
fromScript: "from_script",
|
|
3447
|
+
to: "to",
|
|
3448
|
+
})))),
|
|
3449
|
+
}).pipe(Schema.encodeKeys({
|
|
3450
|
+
deletedClasses: "deleted_classes",
|
|
3451
|
+
newClasses: "new_classes",
|
|
3452
|
+
newSqliteClasses: "new_sqlite_classes",
|
|
3453
|
+
newTag: "new_tag",
|
|
3454
|
+
oldTag: "old_tag",
|
|
3455
|
+
renamedClasses: "renamed_classes",
|
|
3456
|
+
transferredClasses: "transferred_classes",
|
|
3457
|
+
})),
|
|
3458
|
+
Schema.Struct({
|
|
3459
|
+
newTag: Schema.optional(Schema.String),
|
|
3460
|
+
oldTag: Schema.optional(Schema.String),
|
|
3461
|
+
steps: Schema.optional(Schema.Array(Schema.Struct({
|
|
3462
|
+
deletedClasses: Schema.optional(Schema.Array(Schema.String)),
|
|
3463
|
+
newClasses: Schema.optional(Schema.Array(Schema.String)),
|
|
3464
|
+
newSqliteClasses: Schema.optional(Schema.Array(Schema.String)),
|
|
3465
|
+
renamedClasses: Schema.optional(Schema.Array(Schema.Struct({
|
|
3466
|
+
from: Schema.optional(Schema.String),
|
|
3467
|
+
to: Schema.optional(Schema.String),
|
|
3468
|
+
}))),
|
|
3469
|
+
transferredClasses: Schema.optional(Schema.Array(Schema.Struct({
|
|
3470
|
+
from: Schema.optional(Schema.String),
|
|
3471
|
+
fromScript: Schema.optional(Schema.String),
|
|
3472
|
+
to: Schema.optional(Schema.String),
|
|
3473
|
+
}).pipe(Schema.encodeKeys({
|
|
3474
|
+
from: "from",
|
|
3475
|
+
fromScript: "from_script",
|
|
3476
|
+
to: "to",
|
|
3477
|
+
})))),
|
|
3478
|
+
}).pipe(Schema.encodeKeys({
|
|
3479
|
+
deletedClasses: "deleted_classes",
|
|
3480
|
+
newClasses: "new_classes",
|
|
3481
|
+
newSqliteClasses: "new_sqlite_classes",
|
|
3482
|
+
renamedClasses: "renamed_classes",
|
|
3483
|
+
transferredClasses: "transferred_classes",
|
|
3484
|
+
})))),
|
|
3215
3485
|
}).pipe(Schema.encodeKeys({
|
|
3216
3486
|
newTag: "new_tag",
|
|
3217
3487
|
oldTag: "old_tag",
|
|
@@ -3257,7 +3527,14 @@ export const PutScriptRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
3257
3527
|
}),
|
|
3258
3528
|
])),
|
|
3259
3529
|
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
3260
|
-
tailConsumers: Schema.optional(Schema.Union([
|
|
3530
|
+
tailConsumers: Schema.optional(Schema.Union([
|
|
3531
|
+
Schema.Array(Schema.Struct({
|
|
3532
|
+
service: Schema.String,
|
|
3533
|
+
environment: Schema.optional(Schema.String),
|
|
3534
|
+
namespace: Schema.optional(Schema.String),
|
|
3535
|
+
})),
|
|
3536
|
+
Schema.Null,
|
|
3537
|
+
])),
|
|
3261
3538
|
usageModel: Schema.optional(Schema.Literals(["standard", "bundled", "unbound"])),
|
|
3262
3539
|
}).pipe(Schema.encodeKeys({
|
|
3263
3540
|
assets: "assets",
|
|
@@ -3412,7 +3689,14 @@ export const PutScriptResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
3412
3689
|
])),
|
|
3413
3690
|
tag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3414
3691
|
tags: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
3415
|
-
tailConsumers: Schema.optional(Schema.Union([
|
|
3692
|
+
tailConsumers: Schema.optional(Schema.Union([
|
|
3693
|
+
Schema.Array(Schema.Struct({
|
|
3694
|
+
service: Schema.String,
|
|
3695
|
+
environment: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3696
|
+
namespace: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3697
|
+
})),
|
|
3698
|
+
Schema.Null,
|
|
3699
|
+
])),
|
|
3416
3700
|
usageModel: Schema.optional(Schema.Union([
|
|
3417
3701
|
Schema.Literals(["standard", "bundled", "unbound"]),
|
|
3418
3702
|
Schema.Null,
|
|
@@ -3501,7 +3785,7 @@ export const CreateScriptAssetUploadRequest =
|
|
|
3501
3785
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3502
3786
|
scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
|
|
3503
3787
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3504
|
-
manifest: Schema.
|
|
3788
|
+
manifest: Schema.Record(Schema.String, Schema.Unknown),
|
|
3505
3789
|
}).pipe(T.Http({
|
|
3506
3790
|
method: "POST",
|
|
3507
3791
|
path: "/accounts/{account_id}/workers/scripts/{scriptName}/assets-upload-session",
|
|
@@ -3548,7 +3832,170 @@ export const PutScriptContentRequest =
|
|
|
3548
3832
|
contentType: "multipart",
|
|
3549
3833
|
}));
|
|
3550
3834
|
export const PutScriptContentResponse =
|
|
3551
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
3835
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3836
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3837
|
+
compatibilityDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3838
|
+
compatibilityFlags: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
3839
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3840
|
+
etag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3841
|
+
handlers: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
3842
|
+
hasAssets: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
3843
|
+
hasModules: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
3844
|
+
lastDeployedFrom: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3845
|
+
logpush: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
3846
|
+
migrationTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3847
|
+
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3848
|
+
namedHandlers: Schema.optional(Schema.Union([
|
|
3849
|
+
Schema.Array(Schema.Struct({
|
|
3850
|
+
handlers: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
3851
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3852
|
+
})),
|
|
3853
|
+
Schema.Null,
|
|
3854
|
+
])),
|
|
3855
|
+
observability: Schema.optional(Schema.Union([
|
|
3856
|
+
Schema.Struct({
|
|
3857
|
+
enabled: Schema.Boolean,
|
|
3858
|
+
headSamplingRate: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3859
|
+
logs: Schema.optional(Schema.Union([
|
|
3860
|
+
Schema.Struct({
|
|
3861
|
+
enabled: Schema.Boolean,
|
|
3862
|
+
invocationLogs: Schema.Boolean,
|
|
3863
|
+
destinations: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
3864
|
+
headSamplingRate: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3865
|
+
persist: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
3866
|
+
}).pipe(Schema.encodeKeys({
|
|
3867
|
+
enabled: "enabled",
|
|
3868
|
+
invocationLogs: "invocation_logs",
|
|
3869
|
+
destinations: "destinations",
|
|
3870
|
+
headSamplingRate: "head_sampling_rate",
|
|
3871
|
+
persist: "persist",
|
|
3872
|
+
})),
|
|
3873
|
+
Schema.Null,
|
|
3874
|
+
])),
|
|
3875
|
+
}).pipe(Schema.encodeKeys({
|
|
3876
|
+
enabled: "enabled",
|
|
3877
|
+
headSamplingRate: "head_sampling_rate",
|
|
3878
|
+
logs: "logs",
|
|
3879
|
+
})),
|
|
3880
|
+
Schema.Null,
|
|
3881
|
+
])),
|
|
3882
|
+
placement: Schema.optional(Schema.Union([
|
|
3883
|
+
Schema.Union([
|
|
3884
|
+
Schema.Struct({
|
|
3885
|
+
mode: Schema.Literal("smart"),
|
|
3886
|
+
lastAnalyzedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3887
|
+
status: Schema.optional(Schema.Union([
|
|
3888
|
+
Schema.Literals([
|
|
3889
|
+
"SUCCESS",
|
|
3890
|
+
"UNSUPPORTED_APPLICATION",
|
|
3891
|
+
"INSUFFICIENT_INVOCATIONS",
|
|
3892
|
+
]),
|
|
3893
|
+
Schema.Null,
|
|
3894
|
+
])),
|
|
3895
|
+
}).pipe(Schema.encodeKeys({
|
|
3896
|
+
mode: "mode",
|
|
3897
|
+
lastAnalyzedAt: "last_analyzed_at",
|
|
3898
|
+
status: "status",
|
|
3899
|
+
})),
|
|
3900
|
+
Schema.Struct({
|
|
3901
|
+
region: Schema.String,
|
|
3902
|
+
lastAnalyzedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3903
|
+
status: Schema.optional(Schema.Union([
|
|
3904
|
+
Schema.Literals([
|
|
3905
|
+
"SUCCESS",
|
|
3906
|
+
"UNSUPPORTED_APPLICATION",
|
|
3907
|
+
"INSUFFICIENT_INVOCATIONS",
|
|
3908
|
+
]),
|
|
3909
|
+
Schema.Null,
|
|
3910
|
+
])),
|
|
3911
|
+
}).pipe(Schema.encodeKeys({
|
|
3912
|
+
region: "region",
|
|
3913
|
+
lastAnalyzedAt: "last_analyzed_at",
|
|
3914
|
+
status: "status",
|
|
3915
|
+
})),
|
|
3916
|
+
Schema.Struct({
|
|
3917
|
+
hostname: Schema.String,
|
|
3918
|
+
lastAnalyzedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3919
|
+
status: Schema.optional(Schema.Union([
|
|
3920
|
+
Schema.Literals([
|
|
3921
|
+
"SUCCESS",
|
|
3922
|
+
"UNSUPPORTED_APPLICATION",
|
|
3923
|
+
"INSUFFICIENT_INVOCATIONS",
|
|
3924
|
+
]),
|
|
3925
|
+
Schema.Null,
|
|
3926
|
+
])),
|
|
3927
|
+
}).pipe(Schema.encodeKeys({
|
|
3928
|
+
hostname: "hostname",
|
|
3929
|
+
lastAnalyzedAt: "last_analyzed_at",
|
|
3930
|
+
status: "status",
|
|
3931
|
+
})),
|
|
3932
|
+
Schema.Struct({
|
|
3933
|
+
host: Schema.String,
|
|
3934
|
+
lastAnalyzedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3935
|
+
status: Schema.optional(Schema.Union([
|
|
3936
|
+
Schema.Literals([
|
|
3937
|
+
"SUCCESS",
|
|
3938
|
+
"UNSUPPORTED_APPLICATION",
|
|
3939
|
+
"INSUFFICIENT_INVOCATIONS",
|
|
3940
|
+
]),
|
|
3941
|
+
Schema.Null,
|
|
3942
|
+
])),
|
|
3943
|
+
}).pipe(Schema.encodeKeys({
|
|
3944
|
+
host: "host",
|
|
3945
|
+
lastAnalyzedAt: "last_analyzed_at",
|
|
3946
|
+
status: "status",
|
|
3947
|
+
})),
|
|
3948
|
+
]),
|
|
3949
|
+
Schema.Null,
|
|
3950
|
+
])),
|
|
3951
|
+
placementMode: Schema.optional(Schema.Union([Schema.Literal("smart"), Schema.Null])),
|
|
3952
|
+
placementStatus: Schema.optional(Schema.Union([
|
|
3953
|
+
Schema.Literals([
|
|
3954
|
+
"SUCCESS",
|
|
3955
|
+
"UNSUPPORTED_APPLICATION",
|
|
3956
|
+
"INSUFFICIENT_INVOCATIONS",
|
|
3957
|
+
]),
|
|
3958
|
+
Schema.Null,
|
|
3959
|
+
])),
|
|
3960
|
+
tag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3961
|
+
tags: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
3962
|
+
tailConsumers: Schema.optional(Schema.Union([
|
|
3963
|
+
Schema.Array(Schema.Struct({
|
|
3964
|
+
service: Schema.String,
|
|
3965
|
+
environment: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3966
|
+
namespace: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3967
|
+
})),
|
|
3968
|
+
Schema.Null,
|
|
3969
|
+
])),
|
|
3970
|
+
usageModel: Schema.optional(Schema.Union([
|
|
3971
|
+
Schema.Literals(["standard", "bundled", "unbound"]),
|
|
3972
|
+
Schema.Null,
|
|
3973
|
+
])),
|
|
3974
|
+
})
|
|
3975
|
+
.pipe(Schema.encodeKeys({
|
|
3976
|
+
id: "id",
|
|
3977
|
+
compatibilityDate: "compatibility_date",
|
|
3978
|
+
compatibilityFlags: "compatibility_flags",
|
|
3979
|
+
createdOn: "created_on",
|
|
3980
|
+
etag: "etag",
|
|
3981
|
+
handlers: "handlers",
|
|
3982
|
+
hasAssets: "has_assets",
|
|
3983
|
+
hasModules: "has_modules",
|
|
3984
|
+
lastDeployedFrom: "last_deployed_from",
|
|
3985
|
+
logpush: "logpush",
|
|
3986
|
+
migrationTag: "migration_tag",
|
|
3987
|
+
modifiedOn: "modified_on",
|
|
3988
|
+
namedHandlers: "named_handlers",
|
|
3989
|
+
observability: "observability",
|
|
3990
|
+
placement: "placement",
|
|
3991
|
+
placementMode: "placement_mode",
|
|
3992
|
+
placementStatus: "placement_status",
|
|
3993
|
+
tag: "tag",
|
|
3994
|
+
tags: "tags",
|
|
3995
|
+
tailConsumers: "tail_consumers",
|
|
3996
|
+
usageModel: "usage_model",
|
|
3997
|
+
}))
|
|
3998
|
+
.pipe(T.ResponsePath("result"));
|
|
3552
3999
|
export const putScriptContent = API.make(() => ({
|
|
3553
4000
|
input: PutScriptContentRequest,
|
|
3554
4001
|
output: PutScriptContentResponse,
|
|
@@ -4089,7 +4536,14 @@ export const GetScriptScriptAndVersionSettingResponse =
|
|
|
4089
4536
|
])),
|
|
4090
4537
|
placement: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
4091
4538
|
tags: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
4092
|
-
tailConsumers: Schema.optional(Schema.Union([
|
|
4539
|
+
tailConsumers: Schema.optional(Schema.Union([
|
|
4540
|
+
Schema.Array(Schema.Struct({
|
|
4541
|
+
service: Schema.String,
|
|
4542
|
+
environment: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4543
|
+
namespace: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4544
|
+
})),
|
|
4545
|
+
Schema.Null,
|
|
4546
|
+
])),
|
|
4093
4547
|
usageModel: Schema.optional(Schema.Union([
|
|
4094
4548
|
Schema.Literals(["standard", "bundled", "unbound"]),
|
|
4095
4549
|
Schema.Null,
|
|
@@ -4351,11 +4805,61 @@ export const PatchScriptScriptAndVersionSettingRequest =
|
|
|
4351
4805
|
}).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" }))),
|
|
4352
4806
|
logpush: Schema.optional(Schema.Boolean),
|
|
4353
4807
|
migrations: Schema.optional(Schema.Union([
|
|
4354
|
-
Schema.Unknown,
|
|
4355
4808
|
Schema.Struct({
|
|
4809
|
+
deletedClasses: Schema.optional(Schema.Array(Schema.String)),
|
|
4810
|
+
newClasses: Schema.optional(Schema.Array(Schema.String)),
|
|
4811
|
+
newSqliteClasses: Schema.optional(Schema.Array(Schema.String)),
|
|
4356
4812
|
newTag: Schema.optional(Schema.String),
|
|
4357
4813
|
oldTag: Schema.optional(Schema.String),
|
|
4358
|
-
|
|
4814
|
+
renamedClasses: Schema.optional(Schema.Array(Schema.Struct({
|
|
4815
|
+
from: Schema.optional(Schema.String),
|
|
4816
|
+
to: Schema.optional(Schema.String),
|
|
4817
|
+
}))),
|
|
4818
|
+
transferredClasses: Schema.optional(Schema.Array(Schema.Struct({
|
|
4819
|
+
from: Schema.optional(Schema.String),
|
|
4820
|
+
fromScript: Schema.optional(Schema.String),
|
|
4821
|
+
to: Schema.optional(Schema.String),
|
|
4822
|
+
}).pipe(Schema.encodeKeys({
|
|
4823
|
+
from: "from",
|
|
4824
|
+
fromScript: "from_script",
|
|
4825
|
+
to: "to",
|
|
4826
|
+
})))),
|
|
4827
|
+
}).pipe(Schema.encodeKeys({
|
|
4828
|
+
deletedClasses: "deleted_classes",
|
|
4829
|
+
newClasses: "new_classes",
|
|
4830
|
+
newSqliteClasses: "new_sqlite_classes",
|
|
4831
|
+
newTag: "new_tag",
|
|
4832
|
+
oldTag: "old_tag",
|
|
4833
|
+
renamedClasses: "renamed_classes",
|
|
4834
|
+
transferredClasses: "transferred_classes",
|
|
4835
|
+
})),
|
|
4836
|
+
Schema.Struct({
|
|
4837
|
+
newTag: Schema.optional(Schema.String),
|
|
4838
|
+
oldTag: Schema.optional(Schema.String),
|
|
4839
|
+
steps: Schema.optional(Schema.Array(Schema.Struct({
|
|
4840
|
+
deletedClasses: Schema.optional(Schema.Array(Schema.String)),
|
|
4841
|
+
newClasses: Schema.optional(Schema.Array(Schema.String)),
|
|
4842
|
+
newSqliteClasses: Schema.optional(Schema.Array(Schema.String)),
|
|
4843
|
+
renamedClasses: Schema.optional(Schema.Array(Schema.Struct({
|
|
4844
|
+
from: Schema.optional(Schema.String),
|
|
4845
|
+
to: Schema.optional(Schema.String),
|
|
4846
|
+
}))),
|
|
4847
|
+
transferredClasses: Schema.optional(Schema.Array(Schema.Struct({
|
|
4848
|
+
from: Schema.optional(Schema.String),
|
|
4849
|
+
fromScript: Schema.optional(Schema.String),
|
|
4850
|
+
to: Schema.optional(Schema.String),
|
|
4851
|
+
}).pipe(Schema.encodeKeys({
|
|
4852
|
+
from: "from",
|
|
4853
|
+
fromScript: "from_script",
|
|
4854
|
+
to: "to",
|
|
4855
|
+
})))),
|
|
4856
|
+
}).pipe(Schema.encodeKeys({
|
|
4857
|
+
deletedClasses: "deleted_classes",
|
|
4858
|
+
newClasses: "new_classes",
|
|
4859
|
+
newSqliteClasses: "new_sqlite_classes",
|
|
4860
|
+
renamedClasses: "renamed_classes",
|
|
4861
|
+
transferredClasses: "transferred_classes",
|
|
4862
|
+
})))),
|
|
4359
4863
|
}).pipe(Schema.encodeKeys({
|
|
4360
4864
|
newTag: "new_tag",
|
|
4361
4865
|
oldTag: "old_tag",
|
|
@@ -4401,7 +4905,14 @@ export const PatchScriptScriptAndVersionSettingRequest =
|
|
|
4401
4905
|
}),
|
|
4402
4906
|
])),
|
|
4403
4907
|
tags: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
4404
|
-
tailConsumers: Schema.optional(Schema.Union([
|
|
4908
|
+
tailConsumers: Schema.optional(Schema.Union([
|
|
4909
|
+
Schema.Array(Schema.Struct({
|
|
4910
|
+
service: Schema.String,
|
|
4911
|
+
environment: Schema.optional(Schema.String),
|
|
4912
|
+
namespace: Schema.optional(Schema.String),
|
|
4913
|
+
})),
|
|
4914
|
+
Schema.Null,
|
|
4915
|
+
])),
|
|
4405
4916
|
usageModel: Schema.optional(Schema.Literals(["standard", "bundled", "unbound"])),
|
|
4406
4917
|
}).pipe(Schema.encodeKeys({
|
|
4407
4918
|
bindings: "bindings",
|
|
@@ -4685,7 +5196,14 @@ export const PatchScriptScriptAndVersionSettingResponse =
|
|
|
4685
5196
|
])),
|
|
4686
5197
|
placement: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
4687
5198
|
tags: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
4688
|
-
tailConsumers: Schema.optional(Schema.Union([
|
|
5199
|
+
tailConsumers: Schema.optional(Schema.Union([
|
|
5200
|
+
Schema.Array(Schema.Struct({
|
|
5201
|
+
service: Schema.String,
|
|
5202
|
+
environment: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5203
|
+
namespace: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5204
|
+
})),
|
|
5205
|
+
Schema.Null,
|
|
5206
|
+
])),
|
|
4689
5207
|
usageModel: Schema.optional(Schema.Union([
|
|
4690
5208
|
Schema.Literals(["standard", "bundled", "unbound"]),
|
|
4691
5209
|
Schema.Null,
|
|
@@ -4850,7 +5368,52 @@ export const GetScriptSettingRequest =
|
|
|
4850
5368
|
path: "/accounts/{account_id}/workers/scripts/{scriptName}/script-settings",
|
|
4851
5369
|
}));
|
|
4852
5370
|
export const GetScriptSettingResponse =
|
|
4853
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
5371
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
5372
|
+
logpush: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
5373
|
+
observability: Schema.optional(Schema.Union([
|
|
5374
|
+
Schema.Struct({
|
|
5375
|
+
enabled: Schema.Boolean,
|
|
5376
|
+
headSamplingRate: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5377
|
+
logs: Schema.optional(Schema.Union([
|
|
5378
|
+
Schema.Struct({
|
|
5379
|
+
enabled: Schema.Boolean,
|
|
5380
|
+
invocationLogs: Schema.Boolean,
|
|
5381
|
+
destinations: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
5382
|
+
headSamplingRate: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5383
|
+
persist: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
5384
|
+
}).pipe(Schema.encodeKeys({
|
|
5385
|
+
enabled: "enabled",
|
|
5386
|
+
invocationLogs: "invocation_logs",
|
|
5387
|
+
destinations: "destinations",
|
|
5388
|
+
headSamplingRate: "head_sampling_rate",
|
|
5389
|
+
persist: "persist",
|
|
5390
|
+
})),
|
|
5391
|
+
Schema.Null,
|
|
5392
|
+
])),
|
|
5393
|
+
}).pipe(Schema.encodeKeys({
|
|
5394
|
+
enabled: "enabled",
|
|
5395
|
+
headSamplingRate: "head_sampling_rate",
|
|
5396
|
+
logs: "logs",
|
|
5397
|
+
})),
|
|
5398
|
+
Schema.Null,
|
|
5399
|
+
])),
|
|
5400
|
+
tags: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
5401
|
+
tailConsumers: Schema.optional(Schema.Union([
|
|
5402
|
+
Schema.Array(Schema.Struct({
|
|
5403
|
+
service: Schema.String,
|
|
5404
|
+
environment: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5405
|
+
namespace: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5406
|
+
})),
|
|
5407
|
+
Schema.Null,
|
|
5408
|
+
])),
|
|
5409
|
+
})
|
|
5410
|
+
.pipe(Schema.encodeKeys({
|
|
5411
|
+
logpush: "logpush",
|
|
5412
|
+
observability: "observability",
|
|
5413
|
+
tags: "tags",
|
|
5414
|
+
tailConsumers: "tail_consumers",
|
|
5415
|
+
}))
|
|
5416
|
+
.pipe(T.ResponsePath("result"));
|
|
4854
5417
|
export const getScriptSetting = API.make(() => ({
|
|
4855
5418
|
input: GetScriptSettingRequest,
|
|
4856
5419
|
output: GetScriptSettingResponse,
|
|
@@ -4889,7 +5452,14 @@ export const PatchScriptSettingRequest =
|
|
|
4889
5452
|
Schema.Null,
|
|
4890
5453
|
])),
|
|
4891
5454
|
tags: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
4892
|
-
tailConsumers: Schema.optional(Schema.Union([
|
|
5455
|
+
tailConsumers: Schema.optional(Schema.Union([
|
|
5456
|
+
Schema.Array(Schema.Struct({
|
|
5457
|
+
service: Schema.String,
|
|
5458
|
+
environment: Schema.optional(Schema.String),
|
|
5459
|
+
namespace: Schema.optional(Schema.String),
|
|
5460
|
+
})),
|
|
5461
|
+
Schema.Null,
|
|
5462
|
+
])),
|
|
4893
5463
|
}).pipe(Schema.encodeKeys({
|
|
4894
5464
|
logpush: "logpush",
|
|
4895
5465
|
observability: "observability",
|
|
@@ -4900,7 +5470,52 @@ export const PatchScriptSettingRequest =
|
|
|
4900
5470
|
path: "/accounts/{account_id}/workers/scripts/{scriptName}/script-settings",
|
|
4901
5471
|
}));
|
|
4902
5472
|
export const PatchScriptSettingResponse =
|
|
4903
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
5473
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
5474
|
+
logpush: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
5475
|
+
observability: Schema.optional(Schema.Union([
|
|
5476
|
+
Schema.Struct({
|
|
5477
|
+
enabled: Schema.Boolean,
|
|
5478
|
+
headSamplingRate: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5479
|
+
logs: Schema.optional(Schema.Union([
|
|
5480
|
+
Schema.Struct({
|
|
5481
|
+
enabled: Schema.Boolean,
|
|
5482
|
+
invocationLogs: Schema.Boolean,
|
|
5483
|
+
destinations: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
5484
|
+
headSamplingRate: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5485
|
+
persist: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
5486
|
+
}).pipe(Schema.encodeKeys({
|
|
5487
|
+
enabled: "enabled",
|
|
5488
|
+
invocationLogs: "invocation_logs",
|
|
5489
|
+
destinations: "destinations",
|
|
5490
|
+
headSamplingRate: "head_sampling_rate",
|
|
5491
|
+
persist: "persist",
|
|
5492
|
+
})),
|
|
5493
|
+
Schema.Null,
|
|
5494
|
+
])),
|
|
5495
|
+
}).pipe(Schema.encodeKeys({
|
|
5496
|
+
enabled: "enabled",
|
|
5497
|
+
headSamplingRate: "head_sampling_rate",
|
|
5498
|
+
logs: "logs",
|
|
5499
|
+
})),
|
|
5500
|
+
Schema.Null,
|
|
5501
|
+
])),
|
|
5502
|
+
tags: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
5503
|
+
tailConsumers: Schema.optional(Schema.Union([
|
|
5504
|
+
Schema.Array(Schema.Struct({
|
|
5505
|
+
service: Schema.String,
|
|
5506
|
+
environment: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5507
|
+
namespace: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5508
|
+
})),
|
|
5509
|
+
Schema.Null,
|
|
5510
|
+
])),
|
|
5511
|
+
})
|
|
5512
|
+
.pipe(Schema.encodeKeys({
|
|
5513
|
+
logpush: "logpush",
|
|
5514
|
+
observability: "observability",
|
|
5515
|
+
tags: "tags",
|
|
5516
|
+
tailConsumers: "tail_consumers",
|
|
5517
|
+
}))
|
|
5518
|
+
.pipe(T.ResponsePath("result"));
|
|
4904
5519
|
export const patchScriptSetting = API.make(() => ({
|
|
4905
5520
|
input: PatchScriptSettingRequest,
|
|
4906
5521
|
output: PatchScriptSettingResponse,
|