@distilled.cloud/cloudflare 0.16.8 → 0.16.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@distilled.cloud/cloudflare",
3
- "version": "0.16.8",
3
+ "version": "0.16.9",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/alchemy-run/distilled",
@@ -63,7 +63,7 @@
63
63
  "specs:update": "git -C specs/cloudflare-typescript fetch && git -C specs/cloudflare-typescript checkout main && git -C specs/cloudflare-typescript pull"
64
64
  },
65
65
  "dependencies": {
66
- "@distilled.cloud/core": "0.16.8",
66
+ "@distilled.cloud/core": "0.16.9",
67
67
  "effect": ">=4.0.0-beta.60 || >=4.0.0"
68
68
  },
69
69
  "devDependencies": {
@@ -6611,6 +6611,12 @@ export interface PutScriptRequest {
6611
6611
  | { name: string; part: string; type: "wasm_module" }
6612
6612
  | { name: string; type: "worker_loader" }
6613
6613
  | { name: string; type: "artifacts"; namespace: string }
6614
+ | {
6615
+ name: string;
6616
+ type: "ratelimit";
6617
+ namespaceId: string;
6618
+ simple: { limit: number; period: number };
6619
+ }
6614
6620
  )[];
6615
6621
  bodyPart?: string;
6616
6622
  compatibilityDate?: string;
@@ -6767,6 +6773,22 @@ export const PutScriptRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
6767
6773
  type: "type",
6768
6774
  }),
6769
6775
  ),
6776
+ Schema.Struct({
6777
+ name: Schema.String,
6778
+ type: Schema.Literal("ratelimit"),
6779
+ namespaceId: Schema.String,
6780
+ simple: Schema.Struct({
6781
+ limit: Schema.Number,
6782
+ period: Schema.Number,
6783
+ }),
6784
+ }).pipe(
6785
+ Schema.encodeKeys({
6786
+ name: "name",
6787
+ type: "type",
6788
+ namespaceId: "namespace_id",
6789
+ simple: "simple",
6790
+ }),
6791
+ ),
6770
6792
  Schema.Struct({
6771
6793
  dataset: Schema.String,
6772
6794
  name: Schema.String,