@distilled.cloud/cloudflare 0.8.0 → 0.9.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.
@@ -2,7 +2,7 @@ import { ConfigError } from "@distilled.cloud/core/errors";
2
2
  import * as Effect from "effect/Effect";
3
3
  import * as Layer from "effect/Layer";
4
4
  import * as Redacted from "effect/Redacted";
5
- import * as ServiceMap from "effect/ServiceMap";
5
+ import * as Context from "effect/Context";
6
6
  export declare const DEFAULT_API_BASE_URL = "https://api.cloudflare.com/client/v4";
7
7
  export interface ApiTokenConfig {
8
8
  readonly apiToken: string;
@@ -51,7 +51,7 @@ export declare class OAuthRefreshError extends OAuthRefreshError_base<{
51
51
  }> {
52
52
  }
53
53
  export type CredentialsError = ConfigError | OAuthRefreshError;
54
- declare const Credentials_base: ServiceMap.ServiceClass<Credentials, "CloudflareCredentials", Effect.Effect<ResolvedCredentials, CredentialsError, any>>;
54
+ declare const Credentials_base: Context.ServiceClass<Credentials, "CloudflareCredentials", Effect.Effect<ResolvedCredentials, CredentialsError, any>>;
55
55
  export declare class Credentials extends Credentials_base {
56
56
  }
57
57
  export declare const apiTokenCredentials: (config: ApiTokenConfig) => ApiTokenCredentials;
@@ -1 +1 @@
1
- {"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAG3D,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAEtC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAEhD,eAAO,MAAM,oBAAoB,yCAAyC,CAAC;AAI3E,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAA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,MAAM,KAClB,gBAQD,CAAC;AAiDH,eAAO,MAAM,YAAY,WACf,cAAc,KACrB,KAAK,CAAC,KAAK,CAAC,WAAW,CAC+C,CAAC;AAE1E,eAAO,MAAM,UAAU,WAAY,YAAY,KAAG,KAAK,CAAC,KAAK,CAAC,WAAW,CACF,CAAC;AAExE,eAAO,MAAM,SAAS,GAAI,CAAC,YACf,aAAa,CAAC,CAAC,CAAC,KACzB,KAAK,CAAC,KAAK,CAAC,WAAW,EAAE,KAAK,EAAE,CAAC,CAuBnC,CAAC;AAgBF,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,mBAAmB,EAAE,WAAW,CAwCvE,CAAC;AAEL,eAAO,MAAM,OAAO,QAAO,KAAK,CAAC,KAAK,CAAC,WAAW,CACN,CAAC;AAE7C,eAAO,MAAM,kBAAkB,wCAAY,CAAC;AAE5C,eAAO,MAAM,aAAa,gBACX,mBAAmB,KAC/B,MAAM,CAAC,MAAM,EAAE,MAAM,CAgBvB,CAAC"}
@@ -5,12 +5,12 @@ import * as Effect from "effect/Effect";
5
5
  import * as Layer from "effect/Layer";
6
6
  import * as Option from "effect/Option";
7
7
  import * as Redacted from "effect/Redacted";
8
- import * as ServiceMap from "effect/ServiceMap";
8
+ import * as Context from "effect/Context";
9
9
  export const DEFAULT_API_BASE_URL = "https://api.cloudflare.com/client/v4";
10
10
  const CREDENTIAL_REFRESH_WINDOW_MS = 5 * 60 * 1000;
11
11
  export class OAuthRefreshError extends Data.TaggedError("CloudflareOAuthRefreshError") {
12
12
  }
13
- export class Credentials extends ServiceMap.Service()("CloudflareCredentials") {
13
+ export class Credentials extends Context.Service()("CloudflareCredentials") {
14
14
  }
15
15
  const resolveApiBaseUrl = (apiBaseUrl) => apiBaseUrl ?? DEFAULT_API_BASE_URL;
16
16
  export const apiTokenCredentials = (config) => ({
@@ -1 +1 @@
1
- {"version":3,"file":"credentials.js","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"AAAA,O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,KAAK,CAAC,OAAO,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC;AAE7C,MAAM,CAAC,MAAM,kBAAkB,GAAG,OAAO,EAAE,CAAC;AAE5C,MAAM,CAAC,MAAM,aAAa,GAAG,CAC3B,WAAgC,EACR,EAAE;IAC1B,QAAQ,WAAW,CAAC,IAAI,EAAE,CAAC;QACzB,KAAK,QAAQ;YACX,OAAO;gBACL,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC;gBAChD,cAAc,EAAE,WAAW,CAAC,KAAK;aAClC,CAAC;QACJ,KAAK,UAAU;YACb,OAAO;gBACL,aAAa,EAAE,UAAU,QAAQ,CAAC,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,EAAE;aAChE,CAAC;QACJ,KAAK,OAAO;YACV,OAAO;gBACL,aAAa,EAAE,UAAU,QAAQ,CAAC,KAAK,CAAC,WAAW,CAAC,WAAW,CAAC,EAAE;aACnE,CAAC;IACN,CAAC;AACH,CAAC,CAAC"}
package/lib/errors.d.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  export { BadGateway, BadRequest, Conflict, ConfigError, Forbidden, GatewayTimeout, InternalServerError, NotFound, ServiceUnavailable, TooManyRequests, Unauthorized, UnprocessableEntity, HTTP_STATUS_MAP, DEFAULT_ERRORS, API_ERRORS, } from "@distilled.cloud/core/errors";
5
5
  import type { DefaultErrors as CoreDefaultErrors } from "@distilled.cloud/core/errors";
6
6
  import * as Schema from "effect/Schema";
7
- declare const CloudflareParseError_base: Schema.ErrorClass<CloudflareParseError, Schema.TaggedStruct<"CloudflareParseError", {
7
+ declare const CloudflareParseError_base: Schema.Class<CloudflareParseError, Schema.TaggedStruct<"CloudflareParseError", {
8
8
  readonly body: Schema.Unknown;
9
9
  readonly cause: Schema.Unknown;
10
10
  }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
@@ -14,7 +14,7 @@ declare const CloudflareParseError_base: Schema.ErrorClass<CloudflareParseError,
14
14
  });
15
15
  export declare class CloudflareParseError extends CloudflareParseError_base {
16
16
  }
17
- declare const UnknownCloudflareError_base: Schema.ErrorClass<UnknownCloudflareError, Schema.TaggedStruct<"UnknownCloudflareError", {
17
+ declare const UnknownCloudflareError_base: Schema.Class<UnknownCloudflareError, Schema.TaggedStruct<"UnknownCloudflareError", {
18
18
  readonly code: Schema.optional<Schema.Number>;
19
19
  readonly message: Schema.String;
20
20
  }>, import("effect/Cause").YieldableError>;
@@ -24,7 +24,7 @@ declare const UnknownCloudflareError_base: Schema.ErrorClass<UnknownCloudflareEr
24
24
  */
25
25
  export declare class UnknownCloudflareError extends UnknownCloudflareError_base {
26
26
  }
27
- declare const CloudflareHttpError_base: Schema.ErrorClass<CloudflareHttpError, Schema.TaggedStruct<"CloudflareHttpError", {
27
+ declare const CloudflareHttpError_base: Schema.Class<CloudflareHttpError, Schema.TaggedStruct<"CloudflareHttpError", {
28
28
  readonly status: Schema.Number;
29
29
  readonly statusText: Schema.String;
30
30
  readonly message: Schema.String;
package/lib/retry.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import * as Effect from "effect/Effect";
2
- import * as ServiceMap from "effect/ServiceMap";
2
+ import * as Context from "effect/Context";
3
3
  export { type Options, type Factory, type Policy, makeDefault, jittered, capped, throttlingOptions, transientOptions, } from "@distilled.cloud/core/retry";
4
4
  import { type Policy } from "@distilled.cloud/core/retry";
5
- declare const Retry_base: ServiceMap.ServiceClass<Retry, "CloudflareRetry", Policy>;
5
+ declare const Retry_base: Context.ServiceClass<Retry, "CloudflareRetry", Policy>;
6
6
  export declare class Retry extends Retry_base {
7
7
  }
8
8
  export declare const policy: (optionsOrFactory: Policy) => <A, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, Exclude<R, Retry>>;
@@ -1 +1 @@
1
- {"version":3,"file":"retry.d.ts","sourceRoot":"","sources":["../src/retry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,MAAM,EACX,WAAW,EACX,QAAQ,EACR,MAAM,EACN,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,6BAA6B,CAAC;;AAErC,qBAAa,KAAM,SAAQ,UAE1B;CAAG;AAEJ,eAAO,MAAM,MAAM,qBAAsB,MAAM,sFACS,CAAC;AAEzD,eAAO,MAAM,IAAI,mFAEhB,CAAC;AAEF,6EAA6E;AAC7E,eAAO,MAAM,UAAU,mFAA4B,CAAC;AAEpD,+EAA+E;AAC/E,eAAO,MAAM,SAAS,mFAA2B,CAAC"}
1
+ {"version":3,"file":"retry.d.ts","sourceRoot":"","sources":["../src/retry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,MAAM,EACX,WAAW,EACX,QAAQ,EACR,MAAM,EACN,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,6BAA6B,CAAC;;AAErC,qBAAa,KAAM,SAAQ,UAE1B;CAAG;AAEJ,eAAO,MAAM,MAAM,qBAAsB,MAAM,sFACS,CAAC;AAEzD,eAAO,MAAM,IAAI,mFAEhB,CAAC;AAEF,6EAA6E;AAC7E,eAAO,MAAM,UAAU,mFAA4B,CAAC;AAEpD,+EAA+E;AAC/E,eAAO,MAAM,SAAS,mFAA2B,CAAC"}
package/lib/retry.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as Effect from "effect/Effect";
2
2
  import * as Layer from "effect/Layer";
3
- import * as ServiceMap from "effect/ServiceMap";
3
+ import * as Context from "effect/Context";
4
4
  export { makeDefault, jittered, capped, throttlingOptions, transientOptions, } from "@distilled.cloud/core/retry";
5
5
  import { throttlingOptions, transientOptions, } from "@distilled.cloud/core/retry";
6
- export class Retry extends ServiceMap.Service()("CloudflareRetry") {
6
+ export class Retry extends Context.Service()("CloudflareRetry") {
7
7
  }
8
8
  export const policy = (optionsOrFactory) => Effect.provide(Layer.succeed(Retry, optionsOrFactory));
9
9
  export const none = Effect.provide(Layer.succeed(Retry, { while: () => false }));
package/lib/retry.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"retry.js","sourceRoot":"","sources":["../src/retry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAIL,WAAW,EACX,QAAQ,EACR,MAAM,EACN,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAEL,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,6BAA6B,CAAC;AAErC,MAAM,OAAO,KAAM,SAAQ,UAAU,CAAC,OAAO,EAAiB,CAC5D,iBAAiB,CAClB;CAAG;AAEJ,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,gBAAwB,EAAE,EAAE,CACjD,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC;AAEzD,MAAM,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAChC,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,KAAK,EAAE,CAAC,CAC7C,CAAC;AAEF,6EAA6E;AAC7E,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAEpD,+EAA+E;AAC/E,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC"}
1
+ {"version":3,"file":"retry.js","sourceRoot":"","sources":["../src/retry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAIL,WAAW,EACX,QAAQ,EACR,MAAM,EACN,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAEL,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,6BAA6B,CAAC;AAErC,MAAM,OAAO,KAAM,SAAQ,OAAO,CAAC,OAAO,EAAiB,CACzD,iBAAiB,CAClB;CAAG;AAEJ,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,gBAAwB,EAAE,EAAE,CACjD,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC;AAEzD,MAAM,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAChC,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,KAAK,EAAE,CAAC,CAC7C,CAAC;AAEF,6EAA6E;AAC7E,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAEpD,+EAA+E;AAC/E,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC"}
@@ -9,19 +9,19 @@ import type * as HttpClient from "effect/unstable/http/HttpClient";
9
9
  import * as API from "../client/api.ts";
10
10
  import type { Credentials } from "../credentials.ts";
11
11
  import { type DefaultErrors } from "../errors.ts";
12
- declare const AbuseReportNotFound_base: Schema.ErrorClass<AbuseReportNotFound, Schema.TaggedStruct<"AbuseReportNotFound", {
12
+ declare const AbuseReportNotFound_base: Schema.Class<AbuseReportNotFound, Schema.TaggedStruct<"AbuseReportNotFound", {
13
13
  readonly code: Schema.Number;
14
14
  readonly message: Schema.String;
15
15
  }>, import("effect/Cause").YieldableError>;
16
16
  export declare class AbuseReportNotFound extends AbuseReportNotFound_base {
17
17
  }
18
- declare const InvalidAccountId_base: Schema.ErrorClass<InvalidAccountId, Schema.TaggedStruct<"InvalidAccountId", {
18
+ declare const InvalidAccountId_base: Schema.Class<InvalidAccountId, Schema.TaggedStruct<"InvalidAccountId", {
19
19
  readonly code: Schema.Number;
20
20
  readonly message: Schema.String;
21
21
  }>, import("effect/Cause").YieldableError>;
22
22
  export declare class InvalidAccountId extends InvalidAccountId_base {
23
23
  }
24
- declare const InvalidRequest_base: Schema.ErrorClass<InvalidRequest, Schema.TaggedStruct<"InvalidRequest", {
24
+ declare const InvalidRequest_base: Schema.Class<InvalidRequest, Schema.TaggedStruct<"InvalidRequest", {
25
25
  readonly code: Schema.Number;
26
26
  readonly message: Schema.String;
27
27
  }>, import("effect/Cause").YieldableError>;
@@ -9,85 +9,85 @@ import type * as HttpClient from "effect/unstable/http/HttpClient";
9
9
  import * as API from "../client/api.ts";
10
10
  import type { Credentials } from "../credentials.ts";
11
11
  import { type DefaultErrors } from "../errors.ts";
12
- declare const AccountCreationForbidden_base: Schema.ErrorClass<AccountCreationForbidden, Schema.TaggedStruct<"AccountCreationForbidden", {
12
+ declare const AccountCreationForbidden_base: Schema.Class<AccountCreationForbidden, Schema.TaggedStruct<"AccountCreationForbidden", {
13
13
  readonly code: Schema.Number;
14
14
  readonly message: Schema.String;
15
15
  }>, import("effect/Cause").YieldableError>;
16
16
  export declare class AccountCreationForbidden extends AccountCreationForbidden_base {
17
17
  }
18
- declare const AccountNameTooLong_base: Schema.ErrorClass<AccountNameTooLong, Schema.TaggedStruct<"AccountNameTooLong", {
18
+ declare const AccountNameTooLong_base: Schema.Class<AccountNameTooLong, Schema.TaggedStruct<"AccountNameTooLong", {
19
19
  readonly code: Schema.Number;
20
20
  readonly message: Schema.String;
21
21
  }>, import("effect/Cause").YieldableError>;
22
22
  export declare class AccountNameTooLong extends AccountNameTooLong_base {
23
23
  }
24
- declare const BadRequest_base: Schema.ErrorClass<BadRequest, Schema.TaggedStruct<"BadRequest", {
24
+ declare const BadRequest_base: Schema.Class<BadRequest, Schema.TaggedStruct<"BadRequest", {
25
25
  readonly code: Schema.Number;
26
26
  readonly message: Schema.String;
27
27
  }>, import("effect/Cause").YieldableError>;
28
28
  export declare class BadRequest extends BadRequest_base {
29
29
  }
30
- declare const EndpointNotFound_base: Schema.ErrorClass<EndpointNotFound, Schema.TaggedStruct<"EndpointNotFound", {
30
+ declare const EndpointNotFound_base: Schema.Class<EndpointNotFound, Schema.TaggedStruct<"EndpointNotFound", {
31
31
  readonly code: Schema.Number;
32
32
  readonly message: Schema.String;
33
33
  }>, import("effect/Cause").YieldableError>;
34
34
  export declare class EndpointNotFound extends EndpointNotFound_base {
35
35
  }
36
- declare const InvalidAccountName_base: Schema.ErrorClass<InvalidAccountName, Schema.TaggedStruct<"InvalidAccountName", {
36
+ declare const InvalidAccountName_base: Schema.Class<InvalidAccountName, Schema.TaggedStruct<"InvalidAccountName", {
37
37
  readonly code: Schema.Number;
38
38
  readonly message: Schema.String;
39
39
  }>, import("effect/Cause").YieldableError>;
40
40
  export declare class InvalidAccountName extends InvalidAccountName_base {
41
41
  }
42
- declare const InvalidRoute_base: Schema.ErrorClass<InvalidRoute, Schema.TaggedStruct<"InvalidRoute", {
42
+ declare const InvalidRoute_base: Schema.Class<InvalidRoute, Schema.TaggedStruct<"InvalidRoute", {
43
43
  readonly code: Schema.Number;
44
44
  readonly message: Schema.String;
45
45
  }>, import("effect/Cause").YieldableError>;
46
46
  export declare class InvalidRoute extends InvalidRoute_base {
47
47
  }
48
- declare const InvalidTokenName_base: Schema.ErrorClass<InvalidTokenName, Schema.TaggedStruct<"InvalidTokenName", {
48
+ declare const InvalidTokenName_base: Schema.Class<InvalidTokenName, Schema.TaggedStruct<"InvalidTokenName", {
49
49
  readonly code: Schema.Number;
50
50
  readonly message: Schema.String;
51
51
  }>, import("effect/Cause").YieldableError>;
52
52
  export declare class InvalidTokenName extends InvalidTokenName_base {
53
53
  }
54
- declare const JsonDecodeFailure_base: Schema.ErrorClass<JsonDecodeFailure, Schema.TaggedStruct<"JsonDecodeFailure", {
54
+ declare const JsonDecodeFailure_base: Schema.Class<JsonDecodeFailure, Schema.TaggedStruct<"JsonDecodeFailure", {
55
55
  readonly code: Schema.Number;
56
56
  readonly message: Schema.String;
57
57
  }>, import("effect/Cause").YieldableError>;
58
58
  export declare class JsonDecodeFailure extends JsonDecodeFailure_base {
59
59
  }
60
- declare const MemberNotFound_base: Schema.ErrorClass<MemberNotFound, Schema.TaggedStruct<"MemberNotFound", {
60
+ declare const MemberNotFound_base: Schema.Class<MemberNotFound, Schema.TaggedStruct<"MemberNotFound", {
61
61
  readonly code: Schema.Number;
62
62
  readonly message: Schema.String;
63
63
  }>, import("effect/Cause").YieldableError>;
64
64
  export declare class MemberNotFound extends MemberNotFound_base {
65
65
  }
66
- declare const MethodNotAllowed_base: Schema.ErrorClass<MethodNotAllowed, Schema.TaggedStruct<"MethodNotAllowed", {
66
+ declare const MethodNotAllowed_base: Schema.Class<MethodNotAllowed, Schema.TaggedStruct<"MethodNotAllowed", {
67
67
  readonly code: Schema.Number;
68
68
  readonly message: Schema.String;
69
69
  }>, import("effect/Cause").YieldableError>;
70
70
  export declare class MethodNotAllowed extends MethodNotAllowed_base {
71
71
  }
72
- declare const MissingAuthenticationToken_base: Schema.ErrorClass<MissingAuthenticationToken, Schema.TaggedStruct<"MissingAuthenticationToken", {
72
+ declare const MissingAuthenticationToken_base: Schema.Class<MissingAuthenticationToken, Schema.TaggedStruct<"MissingAuthenticationToken", {
73
73
  readonly code: Schema.Number;
74
74
  readonly message: Schema.String;
75
75
  }>, import("effect/Cause").YieldableError>;
76
76
  export declare class MissingAuthenticationToken extends MissingAuthenticationToken_base {
77
77
  }
78
- declare const MissingName_base: Schema.ErrorClass<MissingName, Schema.TaggedStruct<"MissingName", {
78
+ declare const MissingName_base: Schema.Class<MissingName, Schema.TaggedStruct<"MissingName", {
79
79
  readonly code: Schema.Number;
80
80
  readonly message: Schema.String;
81
81
  }>, import("effect/Cause").YieldableError>;
82
82
  export declare class MissingName extends MissingName_base {
83
83
  }
84
- declare const UpdateAccountTypeNotSupported_base: Schema.ErrorClass<UpdateAccountTypeNotSupported, Schema.TaggedStruct<"UpdateAccountTypeNotSupported", {
84
+ declare const UpdateAccountTypeNotSupported_base: Schema.Class<UpdateAccountTypeNotSupported, Schema.TaggedStruct<"UpdateAccountTypeNotSupported", {
85
85
  readonly code: Schema.Number;
86
86
  readonly message: Schema.String;
87
87
  }>, import("effect/Cause").YieldableError>;
88
88
  export declare class UpdateAccountTypeNotSupported extends UpdateAccountTypeNotSupported_base {
89
89
  }
90
- declare const ValidationError_base: Schema.ErrorClass<ValidationError, Schema.TaggedStruct<"ValidationError", {
90
+ declare const ValidationError_base: Schema.Class<ValidationError, Schema.TaggedStruct<"ValidationError", {
91
91
  readonly code: Schema.Number;
92
92
  readonly message: Schema.String;
93
93
  }>, import("effect/Cause").YieldableError>;
@@ -9,25 +9,25 @@ import type * as HttpClient from "effect/unstable/http/HttpClient";
9
9
  import * as API from "../client/api.ts";
10
10
  import type { Credentials } from "../credentials.ts";
11
11
  import { type DefaultErrors } from "../errors.ts";
12
- declare const AdvancedCertificateManagerRequired_base: Schema.ErrorClass<AdvancedCertificateManagerRequired, Schema.TaggedStruct<"AdvancedCertificateManagerRequired", {
12
+ declare const AdvancedCertificateManagerRequired_base: Schema.Class<AdvancedCertificateManagerRequired, Schema.TaggedStruct<"AdvancedCertificateManagerRequired", {
13
13
  readonly code: Schema.Number;
14
14
  readonly message: Schema.String;
15
15
  }>, import("effect/Cause").YieldableError>;
16
16
  export declare class AdvancedCertificateManagerRequired extends AdvancedCertificateManagerRequired_base {
17
17
  }
18
- declare const InvalidObjectIdentifier_base: Schema.ErrorClass<InvalidObjectIdentifier, Schema.TaggedStruct<"InvalidObjectIdentifier", {
18
+ declare const InvalidObjectIdentifier_base: Schema.Class<InvalidObjectIdentifier, Schema.TaggedStruct<"InvalidObjectIdentifier", {
19
19
  readonly code: Schema.Number;
20
20
  readonly message: Schema.String;
21
21
  }>, import("effect/Cause").YieldableError>;
22
22
  export declare class InvalidObjectIdentifier extends InvalidObjectIdentifier_base {
23
23
  }
24
- declare const NoStateChange_base: Schema.ErrorClass<NoStateChange, Schema.TaggedStruct<"NoStateChange", {
24
+ declare const NoStateChange_base: Schema.Class<NoStateChange, Schema.TaggedStruct<"NoStateChange", {
25
25
  readonly code: Schema.Number;
26
26
  readonly message: Schema.String;
27
27
  }>, import("effect/Cause").YieldableError>;
28
28
  export declare class NoStateChange extends NoStateChange_base {
29
29
  }
30
- declare const PreviousJobInProgress_base: Schema.ErrorClass<PreviousJobInProgress, Schema.TaggedStruct<"PreviousJobInProgress", {
30
+ declare const PreviousJobInProgress_base: Schema.Class<PreviousJobInProgress, Schema.TaggedStruct<"PreviousJobInProgress", {
31
31
  readonly code: Schema.Number;
32
32
  readonly message: Schema.String;
33
33
  }>, import("effect/Cause").YieldableError>;
@@ -9,115 +9,115 @@ import type * as HttpClient from "effect/unstable/http/HttpClient";
9
9
  import * as API from "../client/api.ts";
10
10
  import type { Credentials } from "../credentials.ts";
11
11
  import { type DefaultErrors } from "../errors.ts";
12
- declare const AddressMapNotFound_base: Schema.ErrorClass<AddressMapNotFound, Schema.TaggedStruct<"AddressMapNotFound", {
12
+ declare const AddressMapNotFound_base: Schema.Class<AddressMapNotFound, Schema.TaggedStruct<"AddressMapNotFound", {
13
13
  readonly code: Schema.Number;
14
14
  readonly message: Schema.String;
15
15
  }>, import("effect/Cause").YieldableError>;
16
16
  export declare class AddressMapNotFound extends AddressMapNotFound_base {
17
17
  }
18
- declare const BgpPrefixNotFound_base: Schema.ErrorClass<BgpPrefixNotFound, Schema.TaggedStruct<"BgpPrefixNotFound", {
18
+ declare const BgpPrefixNotFound_base: Schema.Class<BgpPrefixNotFound, Schema.TaggedStruct<"BgpPrefixNotFound", {
19
19
  readonly code: Schema.Number;
20
20
  readonly message: Schema.String;
21
21
  }>, import("effect/Cause").YieldableError>;
22
22
  export declare class BgpPrefixNotFound extends BgpPrefixNotFound_base {
23
23
  }
24
- declare const BindingNotFound_base: Schema.ErrorClass<BindingNotFound, Schema.TaggedStruct<"BindingNotFound", {
24
+ declare const BindingNotFound_base: Schema.Class<BindingNotFound, Schema.TaggedStruct<"BindingNotFound", {
25
25
  readonly code: Schema.Number;
26
26
  readonly message: Schema.String;
27
27
  }>, import("effect/Cause").YieldableError>;
28
28
  export declare class BindingNotFound extends BindingNotFound_base {
29
29
  }
30
- declare const DelegationNotFound_base: Schema.ErrorClass<DelegationNotFound, Schema.TaggedStruct<"DelegationNotFound", {
30
+ declare const DelegationNotFound_base: Schema.Class<DelegationNotFound, Schema.TaggedStruct<"DelegationNotFound", {
31
31
  readonly code: Schema.Number;
32
32
  readonly message: Schema.String;
33
33
  }>, import("effect/Cause").YieldableError>;
34
34
  export declare class DelegationNotFound extends DelegationNotFound_base {
35
35
  }
36
- declare const FeatureNotEnabled_base: Schema.ErrorClass<FeatureNotEnabled, Schema.TaggedStruct<"FeatureNotEnabled", {
36
+ declare const FeatureNotEnabled_base: Schema.Class<FeatureNotEnabled, Schema.TaggedStruct<"FeatureNotEnabled", {
37
37
  readonly code: Schema.Number;
38
38
  readonly message: Schema.String;
39
39
  }>, import("effect/Cause").YieldableError>;
40
40
  export declare class FeatureNotEnabled extends FeatureNotEnabled_base {
41
41
  }
42
- declare const InvalidAccountId_base: Schema.ErrorClass<InvalidAccountId, Schema.TaggedStruct<"InvalidAccountId", {
42
+ declare const InvalidAccountId_base: Schema.Class<InvalidAccountId, Schema.TaggedStruct<"InvalidAccountId", {
43
43
  readonly code: Schema.Number;
44
44
  readonly message: Schema.String;
45
45
  }>, import("effect/Cause").YieldableError>;
46
46
  export declare class InvalidAccountId extends InvalidAccountId_base {
47
47
  }
48
- declare const InvalidHostname_base: Schema.ErrorClass<InvalidHostname, Schema.TaggedStruct<"InvalidHostname", {
48
+ declare const InvalidHostname_base: Schema.Class<InvalidHostname, Schema.TaggedStruct<"InvalidHostname", {
49
49
  readonly code: Schema.Number;
50
50
  readonly message: Schema.String;
51
51
  }>, import("effect/Cause").YieldableError>;
52
52
  export declare class InvalidHostname extends InvalidHostname_base {
53
53
  }
54
- declare const InvalidLoaForm_base: Schema.ErrorClass<InvalidLoaForm, Schema.TaggedStruct<"InvalidLoaForm", {
54
+ declare const InvalidLoaForm_base: Schema.Class<InvalidLoaForm, Schema.TaggedStruct<"InvalidLoaForm", {
55
55
  readonly code: Schema.Number;
56
56
  readonly message: Schema.String;
57
57
  }>, import("effect/Cause").YieldableError>;
58
58
  export declare class InvalidLoaForm extends InvalidLoaForm_base {
59
59
  }
60
- declare const InvalidNetworkCidr_base: Schema.ErrorClass<InvalidNetworkCidr, Schema.TaggedStruct<"InvalidNetworkCidr", {
60
+ declare const InvalidNetworkCidr_base: Schema.Class<InvalidNetworkCidr, Schema.TaggedStruct<"InvalidNetworkCidr", {
61
61
  readonly code: Schema.Number;
62
62
  readonly message: Schema.String;
63
63
  }>, import("effect/Cause").YieldableError>;
64
64
  export declare class InvalidNetworkCidr extends InvalidNetworkCidr_base {
65
65
  }
66
- declare const InvalidZoneId_base: Schema.ErrorClass<InvalidZoneId, Schema.TaggedStruct<"InvalidZoneId", {
66
+ declare const InvalidZoneId_base: Schema.Class<InvalidZoneId, Schema.TaggedStruct<"InvalidZoneId", {
67
67
  readonly code: Schema.Number;
68
68
  readonly message: Schema.String;
69
69
  }>, import("effect/Cause").YieldableError>;
70
70
  export declare class InvalidZoneId extends InvalidZoneId_base {
71
71
  }
72
- declare const IrrEntryNotFound_base: Schema.ErrorClass<IrrEntryNotFound, Schema.TaggedStruct<"IrrEntryNotFound", {
72
+ declare const IrrEntryNotFound_base: Schema.Class<IrrEntryNotFound, Schema.TaggedStruct<"IrrEntryNotFound", {
73
73
  readonly code: Schema.Number;
74
74
  readonly message: Schema.String;
75
75
  }>, import("effect/Cause").YieldableError>;
76
76
  export declare class IrrEntryNotFound extends IrrEntryNotFound_base {
77
77
  }
78
- declare const LoaDocumentNotFound_base: Schema.ErrorClass<LoaDocumentNotFound, Schema.TaggedStruct<"LoaDocumentNotFound", {
78
+ declare const LoaDocumentNotFound_base: Schema.Class<LoaDocumentNotFound, Schema.TaggedStruct<"LoaDocumentNotFound", {
79
79
  readonly code: Schema.Number;
80
80
  readonly message: Schema.String;
81
81
  }>, import("effect/Cause").YieldableError>;
82
82
  export declare class LoaDocumentNotFound extends LoaDocumentNotFound_base {
83
83
  }
84
- declare const MethodNotAllowed_base: Schema.ErrorClass<MethodNotAllowed, Schema.TaggedStruct<"MethodNotAllowed", {
84
+ declare const MethodNotAllowed_base: Schema.Class<MethodNotAllowed, Schema.TaggedStruct<"MethodNotAllowed", {
85
85
  readonly code: Schema.Number;
86
86
  readonly message: Schema.String;
87
87
  }>, import("effect/Cause").YieldableError>;
88
88
  export declare class MethodNotAllowed extends MethodNotAllowed_base {
89
89
  }
90
- declare const MissingAccountId_base: Schema.ErrorClass<MissingAccountId, Schema.TaggedStruct<"MissingAccountId", {
90
+ declare const MissingAccountId_base: Schema.Class<MissingAccountId, Schema.TaggedStruct<"MissingAccountId", {
91
91
  readonly code: Schema.Number;
92
92
  readonly message: Schema.String;
93
93
  }>, import("effect/Cause").YieldableError>;
94
94
  export declare class MissingAccountId extends MissingAccountId_base {
95
95
  }
96
- declare const NonexistentAccountPrefix_base: Schema.ErrorClass<NonexistentAccountPrefix, Schema.TaggedStruct<"NonexistentAccountPrefix", {
96
+ declare const NonexistentAccountPrefix_base: Schema.Class<NonexistentAccountPrefix, Schema.TaggedStruct<"NonexistentAccountPrefix", {
97
97
  readonly code: Schema.Number;
98
98
  readonly message: Schema.String;
99
99
  }>, import("effect/Cause").YieldableError>;
100
100
  export declare class NonexistentAccountPrefix extends NonexistentAccountPrefix_base {
101
101
  }
102
- declare const PrefixNotFound_base: Schema.ErrorClass<PrefixNotFound, Schema.TaggedStruct<"PrefixNotFound", {
102
+ declare const PrefixNotFound_base: Schema.Class<PrefixNotFound, Schema.TaggedStruct<"PrefixNotFound", {
103
103
  readonly code: Schema.Number;
104
104
  readonly message: Schema.String;
105
105
  }>, import("effect/Cause").YieldableError>;
106
106
  export declare class PrefixNotFound extends PrefixNotFound_base {
107
107
  }
108
- declare const RegionalHostnameEmpty_base: Schema.ErrorClass<RegionalHostnameEmpty, Schema.TaggedStruct<"RegionalHostnameEmpty", {
108
+ declare const RegionalHostnameEmpty_base: Schema.Class<RegionalHostnameEmpty, Schema.TaggedStruct<"RegionalHostnameEmpty", {
109
109
  readonly code: Schema.Number;
110
110
  readonly message: Schema.String;
111
111
  }>, import("effect/Cause").YieldableError>;
112
112
  export declare class RegionalHostnameEmpty extends RegionalHostnameEmpty_base {
113
113
  }
114
- declare const RegionalHostnameNotFound_base: Schema.ErrorClass<RegionalHostnameNotFound, Schema.TaggedStruct<"RegionalHostnameNotFound", {
114
+ declare const RegionalHostnameNotFound_base: Schema.Class<RegionalHostnameNotFound, Schema.TaggedStruct<"RegionalHostnameNotFound", {
115
115
  readonly code: Schema.Number;
116
116
  readonly message: Schema.String;
117
117
  }>, import("effect/Cause").YieldableError>;
118
118
  export declare class RegionalHostnameNotFound extends RegionalHostnameNotFound_base {
119
119
  }
120
- declare const UnsupportedBindingConfiguration_base: Schema.ErrorClass<UnsupportedBindingConfiguration, Schema.TaggedStruct<"UnsupportedBindingConfiguration", {
120
+ declare const UnsupportedBindingConfiguration_base: Schema.Class<UnsupportedBindingConfiguration, Schema.TaggedStruct<"UnsupportedBindingConfiguration", {
121
121
  readonly code: Schema.Number;
122
122
  readonly message: Schema.String;
123
123
  }>, import("effect/Cause").YieldableError>;
@@ -9,13 +9,13 @@ import type * as HttpClient from "effect/unstable/http/HttpClient";
9
9
  import * as API from "../client/api.ts";
10
10
  import type { Credentials } from "../credentials.ts";
11
11
  import { type DefaultErrors } from "../errors.ts";
12
- declare const GatewayAlreadyExists_base: Schema.ErrorClass<GatewayAlreadyExists, Schema.TaggedStruct<"GatewayAlreadyExists", {
12
+ declare const GatewayAlreadyExists_base: Schema.Class<GatewayAlreadyExists, Schema.TaggedStruct<"GatewayAlreadyExists", {
13
13
  readonly code: Schema.Number;
14
14
  readonly message: Schema.String;
15
15
  }>, import("effect/Cause").YieldableError>;
16
16
  export declare class GatewayAlreadyExists extends GatewayAlreadyExists_base {
17
17
  }
18
- declare const GatewayNotFound_base: Schema.ErrorClass<GatewayNotFound, Schema.TaggedStruct<"GatewayNotFound", {
18
+ declare const GatewayNotFound_base: Schema.Class<GatewayNotFound, Schema.TaggedStruct<"GatewayNotFound", {
19
19
  readonly code: Schema.Number;
20
20
  readonly message: Schema.String;
21
21
  }>, import("effect/Cause").YieldableError>;
@@ -9,25 +9,25 @@ import type * as HttpClient from "effect/unstable/http/HttpClient";
9
9
  import * as API from "../client/api.ts";
10
10
  import type { Credentials } from "../credentials.ts";
11
11
  import { type DefaultErrors } from "../errors.ts";
12
- declare const AccountNotFound_base: Schema.ErrorClass<AccountNotFound, Schema.TaggedStruct<"AccountNotFound", {
12
+ declare const AccountNotFound_base: Schema.Class<AccountNotFound, Schema.TaggedStruct<"AccountNotFound", {
13
13
  readonly code: Schema.Number;
14
14
  readonly message: Schema.String;
15
15
  }>, import("effect/Cause").YieldableError>;
16
16
  export declare class AccountNotFound extends AccountNotFound_base {
17
17
  }
18
- declare const ModelNotFound_base: Schema.ErrorClass<ModelNotFound, Schema.TaggedStruct<"ModelNotFound", {
18
+ declare const ModelNotFound_base: Schema.Class<ModelNotFound, Schema.TaggedStruct<"ModelNotFound", {
19
19
  readonly code: Schema.Number;
20
20
  readonly message: Schema.String;
21
21
  }>, import("effect/Cause").YieldableError>;
22
22
  export declare class ModelNotFound extends ModelNotFound_base {
23
23
  }
24
- declare const ModelNotSupported_base: Schema.ErrorClass<ModelNotSupported, Schema.TaggedStruct<"ModelNotSupported", {
24
+ declare const ModelNotSupported_base: Schema.Class<ModelNotSupported, Schema.TaggedStruct<"ModelNotSupported", {
25
25
  readonly code: Schema.Number;
26
26
  readonly message: Schema.String;
27
27
  }>, import("effect/Cause").YieldableError>;
28
28
  export declare class ModelNotSupported extends ModelNotSupported_base {
29
29
  }
30
- declare const ModelSchemaNotFound_base: Schema.ErrorClass<ModelSchemaNotFound, Schema.TaggedStruct<"ModelSchemaNotFound", {
30
+ declare const ModelSchemaNotFound_base: Schema.Class<ModelSchemaNotFound, Schema.TaggedStruct<"ModelSchemaNotFound", {
31
31
  readonly code: Schema.Number;
32
32
  readonly message: Schema.String;
33
33
  }>, import("effect/Cause").YieldableError>;
@@ -9,31 +9,31 @@ import type * as HttpClient from "effect/unstable/http/HttpClient";
9
9
  import * as API from "../client/api.ts";
10
10
  import type { Credentials } from "../credentials.ts";
11
11
  import { type DefaultErrors } from "../errors.ts";
12
- declare const InvalidRoute_base: Schema.ErrorClass<InvalidRoute, Schema.TaggedStruct<"InvalidRoute", {
12
+ declare const InvalidRoute_base: Schema.Class<InvalidRoute, Schema.TaggedStruct<"InvalidRoute", {
13
13
  readonly code: Schema.Number;
14
14
  readonly message: Schema.String;
15
15
  }>, import("effect/Cause").YieldableError>;
16
16
  export declare class InvalidRoute extends InvalidRoute_base {
17
17
  }
18
- declare const NotFound_base: Schema.ErrorClass<NotFound, Schema.TaggedStruct<"NotFound", {
18
+ declare const NotFound_base: Schema.Class<NotFound, Schema.TaggedStruct<"NotFound", {
19
19
  readonly code: Schema.Number;
20
20
  readonly message: Schema.String;
21
21
  }>, import("effect/Cause").YieldableError>;
22
22
  export declare class NotFound extends NotFound_base {
23
23
  }
24
- declare const SyncInCooldown_base: Schema.ErrorClass<SyncInCooldown, Schema.TaggedStruct<"SyncInCooldown", {
24
+ declare const SyncInCooldown_base: Schema.Class<SyncInCooldown, Schema.TaggedStruct<"SyncInCooldown", {
25
25
  readonly code: Schema.Number;
26
26
  readonly message: Schema.String;
27
27
  }>, import("effect/Cause").YieldableError>;
28
28
  export declare class SyncInCooldown extends SyncInCooldown_base {
29
29
  }
30
- declare const UnableToConnect_base: Schema.ErrorClass<UnableToConnect, Schema.TaggedStruct<"UnableToConnect", {
30
+ declare const UnableToConnect_base: Schema.Class<UnableToConnect, Schema.TaggedStruct<"UnableToConnect", {
31
31
  readonly code: Schema.Number;
32
32
  readonly message: Schema.String;
33
33
  }>, import("effect/Cause").YieldableError>;
34
34
  export declare class UnableToConnect extends UnableToConnect_base {
35
35
  }
36
- declare const ValidationError_base: Schema.ErrorClass<ValidationError, Schema.TaggedStruct<"ValidationError", {
36
+ declare const ValidationError_base: Schema.Class<ValidationError, Schema.TaggedStruct<"ValidationError", {
37
37
  readonly code: Schema.Number;
38
38
  readonly message: Schema.String;
39
39
  }>, import("effect/Cause").YieldableError>;
@@ -9,55 +9,55 @@ import type * as HttpClient from "effect/unstable/http/HttpClient";
9
9
  import * as API from "../client/api.ts";
10
10
  import type { Credentials } from "../credentials.ts";
11
11
  import { type DefaultErrors } from "../errors.ts";
12
- declare const FiltersRequired_base: Schema.ErrorClass<FiltersRequired, Schema.TaggedStruct<"FiltersRequired", {
12
+ declare const FiltersRequired_base: Schema.Class<FiltersRequired, Schema.TaggedStruct<"FiltersRequired", {
13
13
  readonly code: Schema.Number;
14
14
  readonly message: Schema.String;
15
15
  }>, import("effect/Cause").YieldableError>;
16
16
  export declare class FiltersRequired extends FiltersRequired_base {
17
17
  }
18
- declare const InternalServerError_base: Schema.ErrorClass<InternalServerError, Schema.TaggedStruct<"InternalServerError", {
18
+ declare const InternalServerError_base: Schema.Class<InternalServerError, Schema.TaggedStruct<"InternalServerError", {
19
19
  readonly code: Schema.Number;
20
20
  readonly message: Schema.String;
21
21
  }>, import("effect/Cause").YieldableError>;
22
22
  export declare class InternalServerError extends InternalServerError_base {
23
23
  }
24
- declare const InvalidAlertType_base: Schema.ErrorClass<InvalidAlertType, Schema.TaggedStruct<"InvalidAlertType", {
24
+ declare const InvalidAlertType_base: Schema.Class<InvalidAlertType, Schema.TaggedStruct<"InvalidAlertType", {
25
25
  readonly code: Schema.Number;
26
26
  readonly message: Schema.String;
27
27
  }>, import("effect/Cause").YieldableError>;
28
28
  export declare class InvalidAlertType extends InvalidAlertType_base {
29
29
  }
30
- declare const InvalidRoute_base: Schema.ErrorClass<InvalidRoute, Schema.TaggedStruct<"InvalidRoute", {
30
+ declare const InvalidRoute_base: Schema.Class<InvalidRoute, Schema.TaggedStruct<"InvalidRoute", {
31
31
  readonly code: Schema.Number;
32
32
  readonly message: Schema.String;
33
33
  }>, import("effect/Cause").YieldableError>;
34
34
  export declare class InvalidRoute extends InvalidRoute_base {
35
35
  }
36
- declare const InvalidWebhookId_base: Schema.ErrorClass<InvalidWebhookId, Schema.TaggedStruct<"InvalidWebhookId", {
36
+ declare const InvalidWebhookId_base: Schema.Class<InvalidWebhookId, Schema.TaggedStruct<"InvalidWebhookId", {
37
37
  readonly code: Schema.Number;
38
38
  readonly message: Schema.String;
39
39
  }>, import("effect/Cause").YieldableError>;
40
40
  export declare class InvalidWebhookId extends InvalidWebhookId_base {
41
41
  }
42
- declare const MechanismRequired_base: Schema.ErrorClass<MechanismRequired, Schema.TaggedStruct<"MechanismRequired", {
42
+ declare const MechanismRequired_base: Schema.Class<MechanismRequired, Schema.TaggedStruct<"MechanismRequired", {
43
43
  readonly code: Schema.Number;
44
44
  readonly message: Schema.String;
45
45
  }>, import("effect/Cause").YieldableError>;
46
46
  export declare class MechanismRequired extends MechanismRequired_base {
47
47
  }
48
- declare const PolicyNotFound_base: Schema.ErrorClass<PolicyNotFound, Schema.TaggedStruct<"PolicyNotFound", {
48
+ declare const PolicyNotFound_base: Schema.Class<PolicyNotFound, Schema.TaggedStruct<"PolicyNotFound", {
49
49
  readonly code: Schema.Number;
50
50
  readonly message: Schema.String;
51
51
  }>, import("effect/Cause").YieldableError>;
52
52
  export declare class PolicyNotFound extends PolicyNotFound_base {
53
53
  }
54
- declare const WebhookNotFound_base: Schema.ErrorClass<WebhookNotFound, Schema.TaggedStruct<"WebhookNotFound", {
54
+ declare const WebhookNotFound_base: Schema.Class<WebhookNotFound, Schema.TaggedStruct<"WebhookNotFound", {
55
55
  readonly code: Schema.Number;
56
56
  readonly message: Schema.String;
57
57
  }>, import("effect/Cause").YieldableError>;
58
58
  export declare class WebhookNotFound extends WebhookNotFound_base {
59
59
  }
60
- declare const WebhookTestFailed_base: Schema.ErrorClass<WebhookTestFailed, Schema.TaggedStruct<"WebhookTestFailed", {
60
+ declare const WebhookTestFailed_base: Schema.Class<WebhookTestFailed, Schema.TaggedStruct<"WebhookTestFailed", {
61
61
  readonly code: Schema.Number;
62
62
  readonly message: Schema.String;
63
63
  }>, import("effect/Cause").YieldableError>;