@distilled.cloud/cloudflare 0.15.2 → 0.16.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@distilled.cloud/cloudflare",
3
- "version": "0.15.2",
3
+ "version": "0.16.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/alchemy-run/distilled",
@@ -56,14 +56,14 @@
56
56
  "fmt": "oxfmt --write src",
57
57
  "lint": "oxlint --fix src",
58
58
  "check": "tsgo && oxlint src && oxfmt --check src",
59
- "test": "vitest run --exclude specs",
59
+ "test": "vitest run --exclude specs --passWithNoTests",
60
60
  "publish:npm": "bun run build && bun publish --access public",
61
61
  "generate": "bun run scripts/generate.ts && oxlint --fix src && oxfmt --write src && oxfmt --write src",
62
62
  "specs:fetch": "git submodule update --force --init --recursive --depth=1 specs/cloudflare-typescript && git -C specs/cloudflare-typescript checkout -- .",
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.15.2",
66
+ "@distilled.cloud/core": "0.16.1",
67
67
  "effect": "4.0.0-beta.58"
68
68
  },
69
69
  "devDependencies": {
@@ -93,12 +93,6 @@ export class RouteNotFound extends Schema.TaggedErrorClass<RouteNotFound>()(
93
93
  ) {}
94
94
  T.applyErrorMatchers(RouteNotFound, [{ code: 10009 }]);
95
95
 
96
- export class ScriptStartupError extends Schema.TaggedErrorClass<ScriptStartupError>()(
97
- "ScriptStartupError",
98
- { code: Schema.Number, message: Schema.String },
99
- ) {}
100
- T.applyErrorMatchers(ScriptStartupError, [{ code: 10021 }]);
101
-
102
96
  export class ScriptModuleNotFound extends Schema.TaggedErrorClass<ScriptModuleNotFound>()(
103
97
  "ScriptModuleNotFound",
104
98
  { code: Schema.Number, message: Schema.String },
@@ -107,6 +101,12 @@ T.applyErrorMatchers(ScriptModuleNotFound, [
107
101
  { code: 10021, message: { includes: "No such module" } },
108
102
  ]);
109
103
 
104
+ export class ScriptStartupError extends Schema.TaggedErrorClass<ScriptStartupError>()(
105
+ "ScriptStartupError",
106
+ { code: Schema.Number, message: Schema.String },
107
+ ) {}
108
+ T.applyErrorMatchers(ScriptStartupError, [{ code: 10021 }]);
109
+
110
110
  export class SecretNotFound extends Schema.TaggedErrorClass<SecretNotFound>()(
111
111
  "SecretNotFound",
112
112
  { code: Schema.Number, message: Schema.String },
@@ -99705,7 +99705,7 @@ export interface GetTunnelCloudflaredConfigurationResponse {
99705
99705
  config?: {
99706
99706
  ingress?:
99707
99707
  | {
99708
- hostname: string;
99708
+ hostname?: string | null;
99709
99709
  service: string;
99710
99710
  originRequest?: {
99711
99711
  access?: {
@@ -99772,7 +99772,9 @@ export const GetTunnelCloudflaredConfigurationResponse =
99772
99772
  Schema.Union([
99773
99773
  Schema.Array(
99774
99774
  Schema.Struct({
99775
- hostname: Schema.String,
99775
+ hostname: Schema.optional(
99776
+ Schema.Union([Schema.String, Schema.Null]),
99777
+ ),
99776
99778
  service: Schema.String,
99777
99779
  originRequest: Schema.optional(
99778
99780
  Schema.Union([
@@ -99951,7 +99953,7 @@ export interface PutTunnelCloudflaredConfigurationRequest {
99951
99953
  /** Body param: The tunnel configuration and ingress rules. */
99952
99954
  config?: {
99953
99955
  ingress?: {
99954
- hostname: string;
99956
+ hostname?: string;
99955
99957
  service: string;
99956
99958
  originRequest?: {
99957
99959
  access?: { audTag: string[]; teamName: string; required?: boolean };
@@ -100001,7 +100003,7 @@ export const PutTunnelCloudflaredConfigurationRequest =
100001
100003
  ingress: Schema.optional(
100002
100004
  Schema.Array(
100003
100005
  Schema.Struct({
100004
- hostname: Schema.String,
100006
+ hostname: Schema.optional(Schema.String),
100005
100007
  service: Schema.String,
100006
100008
  originRequest: Schema.optional(
100007
100009
  Schema.Struct({
@@ -100073,7 +100075,7 @@ export interface PutTunnelCloudflaredConfigurationResponse {
100073
100075
  config?: {
100074
100076
  ingress?:
100075
100077
  | {
100076
- hostname: string;
100078
+ hostname?: string | null;
100077
100079
  service: string;
100078
100080
  originRequest?: {
100079
100081
  access?: {
@@ -100140,7 +100142,9 @@ export const PutTunnelCloudflaredConfigurationResponse =
100140
100142
  Schema.Union([
100141
100143
  Schema.Array(
100142
100144
  Schema.Struct({
100143
- hostname: Schema.String,
100145
+ hostname: Schema.optional(
100146
+ Schema.Union([Schema.String, Schema.Null]),
100147
+ ),
100144
100148
  service: Schema.String,
100145
100149
  originRequest: Schema.optional(
100146
100150
  Schema.Union([