@distilled.cloud/cloudflare 0.15.0 → 0.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/services/connectivity.d.ts +23 -4
- package/lib/services/connectivity.d.ts.map +1 -1
- package/lib/services/connectivity.js +20 -4
- package/lib/services/connectivity.js.map +1 -1
- package/lib/services/workers.d.ts +21 -3
- package/lib/services/workers.d.ts.map +1 -1
- package/lib/services/workers.js +20 -2
- package/lib/services/workers.js.map +1 -1
- package/lib/services/zero-trust.d.ts +31 -6
- package/lib/services/zero-trust.d.ts.map +1 -1
- package/lib/services/zero-trust.js +21 -6
- package/lib/services/zero-trust.js.map +1 -1
- package/package.json +2 -2
- package/src/services/connectivity.ts +41 -8
- package/src/services/workers.ts +40 -5
- package/src/services/zero-trust.ts +49 -12
|
@@ -9,6 +9,21 @@ import * as API from "../client/api.js";
|
|
|
9
9
|
import * as T from "../traits.js";
|
|
10
10
|
import {} from "../errors.js";
|
|
11
11
|
import { SensitiveString } from "../sensitive.js";
|
|
12
|
+
// =============================================================================
|
|
13
|
+
// Errors
|
|
14
|
+
// =============================================================================
|
|
15
|
+
export class DuplicateTunnelName extends Schema.TaggedErrorClass()("DuplicateTunnelName", { code: Schema.Number, message: Schema.String }) {
|
|
16
|
+
}
|
|
17
|
+
T.applyErrorMatchers(DuplicateTunnelName, [{ code: 1013 }]);
|
|
18
|
+
export class TunnelConfigurationNotFound extends Schema.TaggedErrorClass()("TunnelConfigurationNotFound", { code: Schema.Number, message: Schema.String }) {
|
|
19
|
+
}
|
|
20
|
+
T.applyErrorMatchers(TunnelConfigurationNotFound, [{ code: 1055 }]);
|
|
21
|
+
export class TunnelNotFound extends Schema.TaggedErrorClass()("TunnelNotFound", { code: Schema.Number, message: Schema.String }) {
|
|
22
|
+
}
|
|
23
|
+
T.applyErrorMatchers(TunnelNotFound, [{ code: 1002 }]);
|
|
24
|
+
export class TunnelTokenNotFound extends Schema.TaggedErrorClass()("TunnelTokenNotFound", { code: Schema.Number, message: Schema.String }) {
|
|
25
|
+
}
|
|
26
|
+
T.applyErrorMatchers(TunnelTokenNotFound, [{ code: 1054 }]);
|
|
12
27
|
export const ListAccessAiControlMcpPortalsRequest =
|
|
13
28
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
14
29
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -53613,7 +53628,7 @@ export const GetTunnelCloudflaredResponse =
|
|
|
53613
53628
|
export const getTunnelCloudflared = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
53614
53629
|
input: GetTunnelCloudflaredRequest,
|
|
53615
53630
|
output: GetTunnelCloudflaredResponse,
|
|
53616
|
-
errors: [],
|
|
53631
|
+
errors: [TunnelNotFound],
|
|
53617
53632
|
}));
|
|
53618
53633
|
export const ListTunnelCloudflaredsRequest =
|
|
53619
53634
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -53799,7 +53814,7 @@ export const CreateTunnelCloudflaredResponse =
|
|
|
53799
53814
|
export const createTunnelCloudflared = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
53800
53815
|
input: CreateTunnelCloudflaredRequest,
|
|
53801
53816
|
output: CreateTunnelCloudflaredResponse,
|
|
53802
|
-
errors: [],
|
|
53817
|
+
errors: [DuplicateTunnelName],
|
|
53803
53818
|
}));
|
|
53804
53819
|
export const PatchTunnelCloudflaredRequest =
|
|
53805
53820
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -53881,7 +53896,7 @@ export const PatchTunnelCloudflaredResponse =
|
|
|
53881
53896
|
export const patchTunnelCloudflared = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
53882
53897
|
input: PatchTunnelCloudflaredRequest,
|
|
53883
53898
|
output: PatchTunnelCloudflaredResponse,
|
|
53884
|
-
errors: [],
|
|
53899
|
+
errors: [TunnelNotFound, DuplicateTunnelName],
|
|
53885
53900
|
}));
|
|
53886
53901
|
export const DeleteTunnelCloudflaredRequest =
|
|
53887
53902
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -54058,7 +54073,7 @@ export const GetTunnelCloudflaredConfigurationResponse =
|
|
|
54058
54073
|
export const getTunnelCloudflaredConfiguration = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
54059
54074
|
input: GetTunnelCloudflaredConfigurationRequest,
|
|
54060
54075
|
output: GetTunnelCloudflaredConfigurationResponse,
|
|
54061
|
-
errors: [],
|
|
54076
|
+
errors: [TunnelConfigurationNotFound],
|
|
54062
54077
|
}));
|
|
54063
54078
|
export const PutTunnelCloudflaredConfigurationRequest =
|
|
54064
54079
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -54204,7 +54219,7 @@ export const PutTunnelCloudflaredConfigurationResponse =
|
|
|
54204
54219
|
export const putTunnelCloudflaredConfiguration = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
54205
54220
|
input: PutTunnelCloudflaredConfigurationRequest,
|
|
54206
54221
|
output: PutTunnelCloudflaredConfigurationResponse,
|
|
54207
|
-
errors: [],
|
|
54222
|
+
errors: [TunnelNotFound],
|
|
54208
54223
|
}));
|
|
54209
54224
|
export const GetTunnelCloudflaredConnectionRequest =
|
|
54210
54225
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -54364,7 +54379,7 @@ export const GetTunnelCloudflaredTokenResponse =
|
|
|
54364
54379
|
export const getTunnelCloudflaredToken = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
54365
54380
|
input: GetTunnelCloudflaredTokenRequest,
|
|
54366
54381
|
output: GetTunnelCloudflaredTokenResponse,
|
|
54367
|
-
errors: [],
|
|
54382
|
+
errors: [TunnelTokenNotFound],
|
|
54368
54383
|
}));
|
|
54369
54384
|
export const GetTunnelWarpConnectorRequest =
|
|
54370
54385
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|