@distilled.cloud/cloudflare 1.0.0-rc.11 → 1.0.0-rc.13
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 +37 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/protocol.d.ts +2 -2
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +13 -6
- package/lib/protocol.js.map +1 -1
- package/lib/response-validation.test.d.ts +6 -0
- package/lib/response-validation.test.d.ts.map +1 -0
- package/lib/response-validation.test.js +45 -0
- package/lib/response-validation.test.js.map +1 -0
- package/lib/services/dns.d.ts +8 -2
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +8 -2
- package/lib/services/dns.js.map +1 -1
- package/lib/services/queues.d.ts +7 -1
- package/lib/services/queues.d.ts.map +1 -1
- package/lib/services/queues.js +12 -0
- package/lib/services/queues.js.map +1 -1
- package/lib/services/r2.d.ts +17 -5
- package/lib/services/r2.d.ts.map +1 -1
- package/lib/services/r2.js +42 -5
- package/lib/services/r2.js.map +1 -1
- package/lib/services/workers.d.ts +7 -1
- package/lib/services/workers.d.ts.map +1 -1
- package/lib/services/workers.js +12 -1
- package/lib/services/workers.js.map +1 -1
- package/lib/services/workers_for_platforms.d.ts +533 -12
- package/lib/services/workers_for_platforms.d.ts.map +1 -1
- package/lib/services/workers_for_platforms.js +708 -1029
- package/lib/services/workers_for_platforms.js.map +1 -1
- package/lib/services/zero_trust.d.ts +26 -6
- package/lib/services/zero_trust.d.ts.map +1 -1
- package/lib/services/zero_trust.js +53 -6
- package/lib/services/zero_trust.js.map +1 -1
- package/lib/traits.d.ts +1 -1
- package/lib/traits.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/index.ts +1 -1
- package/src/protocol.ts +28 -9
- package/src/response-validation.test.ts +67 -0
- package/src/services/dns.ts +13 -4
- package/src/services/queues.ts +19 -0
- package/src/services/r2.ts +69 -10
- package/src/services/workers.ts +22 -2
- package/src/services/workers_for_platforms.ts +1625 -1072
- package/src/services/zero_trust.ts +85 -12
- package/src/traits.ts +1 -1
package/lib/services/dns.js
CHANGED
|
@@ -128,6 +128,12 @@ export class PeerNotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatche
|
|
|
128
128
|
message: S.String,
|
|
129
129
|
}), [{ status: 404 }]) {
|
|
130
130
|
}
|
|
131
|
+
export class RecordNotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
132
|
+
/*@__PURE__*/ S.TaggedError()("RecordNotFound", {
|
|
133
|
+
code: S.Number,
|
|
134
|
+
message: S.String,
|
|
135
|
+
}), [{ code: 81044 }]) {
|
|
136
|
+
}
|
|
131
137
|
export class TsigNotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
132
138
|
/*@__PURE__*/ S.TaggedError()("TsigNotFound", {
|
|
133
139
|
code: S.Number,
|
|
@@ -13416,7 +13422,7 @@ export const deleteDnssec = /*@__PURE__*/ API.make(() => ({
|
|
|
13416
13422
|
export const deleteRecord = /*@__PURE__*/ API.make(() => ({
|
|
13417
13423
|
input: DeleteRecordRequest,
|
|
13418
13424
|
output: DeleteRecordResponse,
|
|
13419
|
-
errors: [CloudflareRateLimited, CloudflareError],
|
|
13425
|
+
errors: [RecordNotFound, CloudflareRateLimited, CloudflareError],
|
|
13420
13426
|
protocol: CloudflareProtocol,
|
|
13421
13427
|
retry: Retry.Retry,
|
|
13422
13428
|
}));
|
|
@@ -13545,7 +13551,7 @@ export const getDnssec = /*@__PURE__*/ API.make(() => ({
|
|
|
13545
13551
|
export const getRecord = /*@__PURE__*/ API.make(() => ({
|
|
13546
13552
|
input: GetRecordRequest,
|
|
13547
13553
|
output: GetRecordResponse,
|
|
13548
|
-
errors: [Forbidden, CloudflareRateLimited, CloudflareError],
|
|
13554
|
+
errors: [Forbidden, RecordNotFound, CloudflareRateLimited, CloudflareError],
|
|
13549
13555
|
protocol: CloudflareProtocol,
|
|
13550
13556
|
retry: Retry.Retry,
|
|
13551
13557
|
}));
|