@distilled.cloud/cloudflare 1.0.0-rc.12 → 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
|
@@ -786,6 +786,31 @@ export class McpPortalNotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorM
|
|
|
786
786
|
message: S.String,
|
|
787
787
|
}), [{ status: 404 }]) {
|
|
788
788
|
}
|
|
789
|
+
export class McpServerInvalidId extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
790
|
+
/*@__PURE__*/ S.TaggedError()("McpServerInvalidId", {
|
|
791
|
+
code: S.Number,
|
|
792
|
+
message: S.String,
|
|
793
|
+
}), [
|
|
794
|
+
{
|
|
795
|
+
status: 400,
|
|
796
|
+
message: { includes: "String must contain at most 32 character(s)" },
|
|
797
|
+
},
|
|
798
|
+
]) {
|
|
799
|
+
}
|
|
800
|
+
export class McpServerNotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
801
|
+
/*@__PURE__*/ S.TaggedError()("McpServerNotFound", {
|
|
802
|
+
code: S.Number,
|
|
803
|
+
message: S.String,
|
|
804
|
+
}), [{ status: 404 }]) {
|
|
805
|
+
}
|
|
806
|
+
/** Upstream MCP discovery failed. The response body preserves the upstream error and error_details. */
|
|
807
|
+
export class McpServerSyncFailure extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
808
|
+
/*@__PURE__*/ S.TaggedError()("McpServerSyncFailure", {
|
|
809
|
+
code: S.Number,
|
|
810
|
+
message: S.String,
|
|
811
|
+
body: S.Unknown,
|
|
812
|
+
}), [{ status: 200, body: { "/success": false, "/result/status": "error" } }]) {
|
|
813
|
+
}
|
|
789
814
|
export class OrganizationAlreadyExists extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
790
815
|
/*@__PURE__*/ S.TaggedError()("OrganizationAlreadyExists", {
|
|
791
816
|
code: S.Number,
|
|
@@ -74215,7 +74240,7 @@ export const createAccessAiControlMcpPortal = /*@__PURE__*/ API.make(() => ({
|
|
|
74215
74240
|
export const createAccessAiControlMcpServer = /*@__PURE__*/ API.make(() => ({
|
|
74216
74241
|
input: CreateAccessAiControlMcpServerRequest,
|
|
74217
74242
|
output: CreateAccessAiControlMcpServerResponse,
|
|
74218
|
-
errors: [CloudflareRateLimited, CloudflareError],
|
|
74243
|
+
errors: [Forbidden, CloudflareRateLimited, CloudflareError],
|
|
74219
74244
|
protocol: CloudflareProtocol,
|
|
74220
74245
|
retry: Retry.Retry,
|
|
74221
74246
|
}));
|
|
@@ -74907,7 +74932,12 @@ export const deleteAccessAiControlMcpPortal = /*@__PURE__*/ API.make(() => ({
|
|
|
74907
74932
|
export const deleteAccessAiControlMcpServer = /*@__PURE__*/ API.make(() => ({
|
|
74908
74933
|
input: DeleteAccessAiControlMcpServerRequest,
|
|
74909
74934
|
output: DeleteAccessAiControlMcpServerResponse,
|
|
74910
|
-
errors: [
|
|
74935
|
+
errors: [
|
|
74936
|
+
McpServerNotFound,
|
|
74937
|
+
Forbidden,
|
|
74938
|
+
CloudflareRateLimited,
|
|
74939
|
+
CloudflareError,
|
|
74940
|
+
],
|
|
74911
74941
|
protocol: CloudflareProtocol,
|
|
74912
74942
|
retry: Retry.Retry,
|
|
74913
74943
|
}));
|
|
@@ -76635,7 +76665,7 @@ export const listAccessAiControlMcpPortals = /*@__PURE__*/ API.makePaginated(()
|
|
|
76635
76665
|
export const listAccessAiControlMcpServers = /*@__PURE__*/ API.makePaginated(() => ({
|
|
76636
76666
|
input: ListAccessAiControlMcpServersRequest,
|
|
76637
76667
|
output: ListAccessAiControlMcpServersResponse,
|
|
76638
|
-
errors: [CloudflareRateLimited, CloudflareError],
|
|
76668
|
+
errors: [Forbidden, CloudflareRateLimited, CloudflareError],
|
|
76639
76669
|
protocol: CloudflarePaginatedProtocol,
|
|
76640
76670
|
retry: Retry.Retry,
|
|
76641
76671
|
pagination: {
|
|
@@ -78220,7 +78250,13 @@ export const readAccessAiControlMcpPortal = /*@__PURE__*/ API.make(() => ({
|
|
|
78220
78250
|
export const readAccessAiControlMcpServer = /*@__PURE__*/ API.make(() => ({
|
|
78221
78251
|
input: ReadAccessAiControlMcpServerRequest,
|
|
78222
78252
|
output: ReadAccessAiControlMcpServerResponse,
|
|
78223
|
-
errors: [
|
|
78253
|
+
errors: [
|
|
78254
|
+
McpServerNotFound,
|
|
78255
|
+
Forbidden,
|
|
78256
|
+
McpServerInvalidId,
|
|
78257
|
+
CloudflareRateLimited,
|
|
78258
|
+
CloudflareError,
|
|
78259
|
+
],
|
|
78224
78260
|
protocol: CloudflareProtocol,
|
|
78225
78261
|
retry: Retry.Retry,
|
|
78226
78262
|
}));
|
|
@@ -78340,7 +78376,13 @@ export const rotateSeedGatewayAuditSshSetting = /*@__PURE__*/ API.make(() => ({
|
|
|
78340
78376
|
export const syncAccessAiControlMcpServer = /*@__PURE__*/ API.make(() => ({
|
|
78341
78377
|
input: SyncAccessAiControlMcpServerRequest,
|
|
78342
78378
|
output: SyncAccessAiControlMcpServerResponse,
|
|
78343
|
-
errors: [
|
|
78379
|
+
errors: [
|
|
78380
|
+
McpServerNotFound,
|
|
78381
|
+
Forbidden,
|
|
78382
|
+
McpServerSyncFailure,
|
|
78383
|
+
CloudflareRateLimited,
|
|
78384
|
+
CloudflareError,
|
|
78385
|
+
],
|
|
78344
78386
|
protocol: CloudflareProtocol,
|
|
78345
78387
|
retry: Retry.Retry,
|
|
78346
78388
|
}));
|
|
@@ -78394,7 +78436,12 @@ export const updateAccessAiControlMcpPortal = /*@__PURE__*/ API.make(() => ({
|
|
|
78394
78436
|
export const updateAccessAiControlMcpServer = /*@__PURE__*/ API.make(() => ({
|
|
78395
78437
|
input: UpdateAccessAiControlMcpServerRequest,
|
|
78396
78438
|
output: UpdateAccessAiControlMcpServerResponse,
|
|
78397
|
-
errors: [
|
|
78439
|
+
errors: [
|
|
78440
|
+
McpServerNotFound,
|
|
78441
|
+
Forbidden,
|
|
78442
|
+
CloudflareRateLimited,
|
|
78443
|
+
CloudflareError,
|
|
78444
|
+
],
|
|
78398
78445
|
protocol: CloudflareProtocol,
|
|
78399
78446
|
retry: Retry.Retry,
|
|
78400
78447
|
}));
|