@distilled.cloud/cloudflare 0.2.0-alpha → 0.2.3
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/README.md +49 -0
- package/lib/client/api.d.ts.map +1 -1
- package/lib/client/api.js +51 -3
- package/lib/client/api.js.map +1 -1
- package/lib/errors.d.ts +1 -12
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +1 -8
- package/lib/errors.js.map +1 -1
- package/lib/services/api-gateway.js +1 -1
- package/lib/services/api-gateway.js.map +1 -1
- package/lib/services/zero-trust.d.ts +25 -25
- package/lib/services/zero-trust.d.ts.map +1 -1
- package/lib/services/zero-trust.js +36 -36
- package/lib/services/zero-trust.js.map +1 -1
- package/package.json +7 -6
- package/src/client/api.ts +64 -4
- package/src/errors.ts +2 -10
- package/src/services/api-gateway.ts +1 -1
- package/src/services/zero-trust.ts +83 -87
|
@@ -8878,42 +8878,12 @@ export const GetDeviceDevicesResponse =
|
|
|
8878
8878
|
publicIp: "public_ip",
|
|
8879
8879
|
serialNumber: "serial_number",
|
|
8880
8880
|
}));
|
|
8881
|
-
export const
|
|
8881
|
+
export const getDeviceDevices = API.make(() => ({
|
|
8882
8882
|
input: GetDeviceDevicesRequest,
|
|
8883
8883
|
output: GetDeviceDevicesResponse,
|
|
8884
8884
|
errors: [],
|
|
8885
8885
|
}));
|
|
8886
|
-
export const
|
|
8887
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8888
|
-
deviceId: Schema.String.pipe(T.HttpPath("deviceId")),
|
|
8889
|
-
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
8890
|
-
}).pipe(T.Http({
|
|
8891
|
-
method: "DELETE",
|
|
8892
|
-
path: "/accounts/{account_id}/devices/physical-devices/{deviceId}",
|
|
8893
|
-
}));
|
|
8894
|
-
export const DeleteDeviceDevicesResponse =
|
|
8895
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
|
|
8896
|
-
export const deleteDeviceDevices_ = API.make(() => ({
|
|
8897
|
-
input: DeleteDeviceDevicesRequest,
|
|
8898
|
-
output: DeleteDeviceDevicesResponse,
|
|
8899
|
-
errors: [],
|
|
8900
|
-
}));
|
|
8901
|
-
export const RevokeDeviceDevicesRequest =
|
|
8902
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8903
|
-
deviceId: Schema.String.pipe(T.HttpPath("deviceId")),
|
|
8904
|
-
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
8905
|
-
}).pipe(T.Http({
|
|
8906
|
-
method: "POST",
|
|
8907
|
-
path: "/accounts/{account_id}/devices/physical-devices/{deviceId}/revoke",
|
|
8908
|
-
}));
|
|
8909
|
-
export const RevokeDeviceDevicesResponse =
|
|
8910
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
|
|
8911
|
-
export const revokeDeviceDevices_ = API.make(() => ({
|
|
8912
|
-
input: RevokeDeviceDevicesRequest,
|
|
8913
|
-
output: RevokeDeviceDevicesResponse,
|
|
8914
|
-
errors: [],
|
|
8915
|
-
}));
|
|
8916
|
-
export const ListDeviceDevicesSRequest =
|
|
8886
|
+
export const ListDeviceDevicesRequest =
|
|
8917
8887
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8918
8888
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
8919
8889
|
id: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpQuery("id")),
|
|
@@ -8939,7 +8909,7 @@ export const ListDeviceDevicesSRequest =
|
|
|
8939
8909
|
method: "GET",
|
|
8940
8910
|
path: "/accounts/{account_id}/devices/physical-devices",
|
|
8941
8911
|
}));
|
|
8942
|
-
export const
|
|
8912
|
+
export const ListDeviceDevicesResponse =
|
|
8943
8913
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
|
|
8944
8914
|
id: Schema.String,
|
|
8945
8915
|
activeRegistrations: Schema.Number,
|
|
@@ -9008,9 +8978,39 @@ export const ListDeviceDevicesSResponse =
|
|
|
9008
8978
|
publicIp: "public_ip",
|
|
9009
8979
|
serialNumber: "serial_number",
|
|
9010
8980
|
})));
|
|
9011
|
-
export const
|
|
9012
|
-
input:
|
|
9013
|
-
output:
|
|
8981
|
+
export const listDeviceDevices = API.make(() => ({
|
|
8982
|
+
input: ListDeviceDevicesRequest,
|
|
8983
|
+
output: ListDeviceDevicesResponse,
|
|
8984
|
+
errors: [],
|
|
8985
|
+
}));
|
|
8986
|
+
export const DeleteDeviceDevicesRequest =
|
|
8987
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8988
|
+
deviceId: Schema.String.pipe(T.HttpPath("deviceId")),
|
|
8989
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
8990
|
+
}).pipe(T.Http({
|
|
8991
|
+
method: "DELETE",
|
|
8992
|
+
path: "/accounts/{account_id}/devices/physical-devices/{deviceId}",
|
|
8993
|
+
}));
|
|
8994
|
+
export const DeleteDeviceDevicesResponse =
|
|
8995
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
|
|
8996
|
+
export const deleteDeviceDevices = API.make(() => ({
|
|
8997
|
+
input: DeleteDeviceDevicesRequest,
|
|
8998
|
+
output: DeleteDeviceDevicesResponse,
|
|
8999
|
+
errors: [],
|
|
9000
|
+
}));
|
|
9001
|
+
export const RevokeDeviceDevicesRequest =
|
|
9002
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9003
|
+
deviceId: Schema.String.pipe(T.HttpPath("deviceId")),
|
|
9004
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
9005
|
+
}).pipe(T.Http({
|
|
9006
|
+
method: "POST",
|
|
9007
|
+
path: "/accounts/{account_id}/devices/physical-devices/{deviceId}/revoke",
|
|
9008
|
+
}));
|
|
9009
|
+
export const RevokeDeviceDevicesResponse =
|
|
9010
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
|
|
9011
|
+
export const revokeDeviceDevices = API.make(() => ({
|
|
9012
|
+
input: RevokeDeviceDevicesRequest,
|
|
9013
|
+
output: RevokeDeviceDevicesResponse,
|
|
9014
9014
|
errors: [],
|
|
9015
9015
|
}));
|
|
9016
9016
|
export const GetDeviceDexTestRequest =
|