@distilled.cloud/cloudflare 0.26.0 → 0.27.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.
- package/lib/client/api.d.ts.map +1 -1
- package/lib/client/api.js +15 -7
- package/lib/client/api.js.map +1 -1
- package/lib/services/ai-gateway.d.ts +7 -1
- package/lib/services/ai-gateway.d.ts.map +1 -1
- package/lib/services/ai-gateway.js +3 -1
- package/lib/services/ai-gateway.js.map +1 -1
- package/lib/services/aisearch.d.ts +7 -1
- package/lib/services/aisearch.d.ts.map +1 -1
- package/lib/services/aisearch.js +6 -0
- package/lib/services/aisearch.js.map +1 -1
- package/lib/services/api-gateway.d.ts +1 -1
- package/lib/services/api-gateway.d.ts.map +1 -1
- package/lib/services/api-gateway.js +1 -1
- package/lib/services/api-gateway.js.map +1 -1
- package/lib/services/cache.d.ts +7 -1
- package/lib/services/cache.d.ts.map +1 -1
- package/lib/services/cache.js +6 -1
- package/lib/services/cache.js.map +1 -1
- package/lib/services/iam.d.ts +7 -1
- package/lib/services/iam.d.ts.map +1 -1
- package/lib/services/iam.js +6 -1
- package/lib/services/iam.js.map +1 -1
- package/lib/services/page-rules.d.ts +7 -1
- package/lib/services/page-rules.d.ts.map +1 -1
- package/lib/services/page-rules.js +6 -1
- package/lib/services/page-rules.js.map +1 -1
- package/lib/services/pages.d.ts +8 -8
- package/lib/services/pages.d.ts.map +1 -1
- package/lib/services/pages.js +408 -396
- package/lib/services/pages.js.map +1 -1
- package/lib/services/r2.d.ts +7 -1
- package/lib/services/r2.d.ts.map +1 -1
- package/lib/services/r2.js +13 -1
- package/lib/services/r2.js.map +1 -1
- package/lib/services/schema-validation.d.ts +7 -1
- package/lib/services/schema-validation.d.ts.map +1 -1
- package/lib/services/schema-validation.js +6 -1
- package/lib/services/schema-validation.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 +6 -1
- package/lib/services/workers.js.map +1 -1
- package/lib/services/zero-trust.d.ts +9 -3
- package/lib/services/zero-trust.d.ts.map +1 -1
- package/lib/services/zero-trust.js +8 -6
- package/lib/services/zero-trust.js.map +1 -1
- package/package.json +2 -2
- package/src/client/api.ts +15 -8
- package/src/services/ai-gateway.ts +13 -2
- package/src/services/aisearch.ts +10 -0
- package/src/services/api-gateway.ts +2 -2
- package/src/services/cache.ts +11 -2
- package/src/services/iam.ts +13 -2
- package/src/services/page-rules.ts +13 -2
- package/src/services/pages.ts +780 -760
- package/src/services/r2.ts +20 -2
- package/src/services/schema-validation.ts +10 -2
- package/src/services/workers.ts +11 -2
- package/src/services/zero-trust.ts +23 -9
package/src/services/r2.ts
CHANGED
|
@@ -141,6 +141,14 @@ export class NoSuchBucket extends T.applyErrorMatchers(
|
|
|
141
141
|
[{ code: 10006 }],
|
|
142
142
|
) {}
|
|
143
143
|
|
|
144
|
+
export class NoSuchKey extends T.applyErrorMatchers(
|
|
145
|
+
Schema.TaggedErrorClass<NoSuchKey>()("NoSuchKey", {
|
|
146
|
+
code: Schema.Number,
|
|
147
|
+
message: Schema.String,
|
|
148
|
+
}),
|
|
149
|
+
[{ status: 404, message: { includes: "specified key does not exist" } }],
|
|
150
|
+
) {}
|
|
151
|
+
|
|
144
152
|
export class QueueNotFound extends T.applyErrorMatchers(
|
|
145
153
|
Schema.TaggedErrorClass<QueueNotFound>()("QueueNotFound", {
|
|
146
154
|
code: Schema.Number,
|
|
@@ -3475,7 +3483,10 @@ export type GetObjectError =
|
|
|
3475
3483
|
| DefaultErrors
|
|
3476
3484
|
| NoSuchBucket
|
|
3477
3485
|
| InvalidRoute
|
|
3478
|
-
| NoRoute
|
|
3486
|
+
| NoRoute
|
|
3487
|
+
| NoSuchKey
|
|
3488
|
+
| NoSuchBucket
|
|
3489
|
+
| InvalidRoute;
|
|
3479
3490
|
|
|
3480
3491
|
export const getObject: API.OperationMethod<
|
|
3481
3492
|
GetObjectRequest,
|
|
@@ -3485,7 +3496,14 @@ export const getObject: API.OperationMethod<
|
|
|
3485
3496
|
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
3486
3497
|
input: GetObjectRequest,
|
|
3487
3498
|
output: GetObjectResponse,
|
|
3488
|
-
errors: [
|
|
3499
|
+
errors: [
|
|
3500
|
+
NoSuchBucket,
|
|
3501
|
+
InvalidRoute,
|
|
3502
|
+
NoRoute,
|
|
3503
|
+
NoSuchKey,
|
|
3504
|
+
NoSuchBucket,
|
|
3505
|
+
InvalidRoute,
|
|
3506
|
+
],
|
|
3489
3507
|
}));
|
|
3490
3508
|
|
|
3491
3509
|
export interface ListObjectsRequest {
|
|
@@ -56,6 +56,14 @@ export class UnentitledMitigationAction extends T.applyErrorMatchers(
|
|
|
56
56
|
[{ code: 11400 }],
|
|
57
57
|
) {}
|
|
58
58
|
|
|
59
|
+
export class ZonePurged extends T.applyErrorMatchers(
|
|
60
|
+
Schema.TaggedErrorClass<ZonePurged>()("ZonePurged", {
|
|
61
|
+
code: Schema.Number,
|
|
62
|
+
message: Schema.String,
|
|
63
|
+
}),
|
|
64
|
+
[{ message: { includes: "has been purged" } }],
|
|
65
|
+
) {}
|
|
66
|
+
|
|
59
67
|
// =============================================================================
|
|
60
68
|
// Schema
|
|
61
69
|
// =============================================================================
|
|
@@ -232,7 +240,7 @@ export const ListSchemasResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
|
|
|
232
240
|
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
|
|
233
241
|
) as unknown as Schema.Schema<ListSchemasResponse>;
|
|
234
242
|
|
|
235
|
-
export type ListSchemasError = DefaultErrors;
|
|
243
|
+
export type ListSchemasError = DefaultErrors | ZonePurged | Forbidden;
|
|
236
244
|
|
|
237
245
|
export const listSchemas: API.PaginatedOperationMethod<
|
|
238
246
|
ListSchemasRequest,
|
|
@@ -242,7 +250,7 @@ export const listSchemas: API.PaginatedOperationMethod<
|
|
|
242
250
|
> = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
243
251
|
input: ListSchemasRequest,
|
|
244
252
|
output: ListSchemasResponse,
|
|
245
|
-
errors: [],
|
|
253
|
+
errors: [ZonePurged, Forbidden],
|
|
246
254
|
pagination: {
|
|
247
255
|
mode: "page",
|
|
248
256
|
inputToken: "page",
|
package/src/services/workers.ts
CHANGED
|
@@ -202,6 +202,14 @@ export class VersionNotFound extends T.applyErrorMatchers(
|
|
|
202
202
|
[{ code: 100146 }],
|
|
203
203
|
) {}
|
|
204
204
|
|
|
205
|
+
export class WorkerHasNoVersions extends T.applyErrorMatchers(
|
|
206
|
+
Schema.TaggedErrorClass<WorkerHasNoVersions>()("WorkerHasNoVersions", {
|
|
207
|
+
code: Schema.Number,
|
|
208
|
+
message: Schema.String,
|
|
209
|
+
}),
|
|
210
|
+
[{ status: 404, message: { includes: "has no versions" } }],
|
|
211
|
+
) {}
|
|
212
|
+
|
|
205
213
|
export class WorkerNotFound extends T.applyErrorMatchers(
|
|
206
214
|
Schema.TaggedErrorClass<WorkerNotFound>()("WorkerNotFound", {
|
|
207
215
|
code: Schema.Number,
|
|
@@ -16864,7 +16872,8 @@ export const GetScriptScriptAndVersionSettingResponse =
|
|
|
16864
16872
|
|
|
16865
16873
|
export type GetScriptScriptAndVersionSettingError =
|
|
16866
16874
|
| DefaultErrors
|
|
16867
|
-
| WorkerNotFound
|
|
16875
|
+
| WorkerNotFound
|
|
16876
|
+
| WorkerHasNoVersions;
|
|
16868
16877
|
|
|
16869
16878
|
export const getScriptScriptAndVersionSetting: API.OperationMethod<
|
|
16870
16879
|
GetScriptScriptAndVersionSettingRequest,
|
|
@@ -16874,7 +16883,7 @@ export const getScriptScriptAndVersionSetting: API.OperationMethod<
|
|
|
16874
16883
|
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
16875
16884
|
input: GetScriptScriptAndVersionSettingRequest,
|
|
16876
16885
|
output: GetScriptScriptAndVersionSettingResponse,
|
|
16877
|
-
errors: [WorkerNotFound],
|
|
16886
|
+
errors: [WorkerNotFound, WorkerHasNoVersions],
|
|
16878
16887
|
}));
|
|
16879
16888
|
|
|
16880
16889
|
export interface PatchScriptScriptAndVersionSettingRequest {
|
|
@@ -78,6 +78,14 @@ export class AccessIdentityProviderNotFound extends T.applyErrorMatchers(
|
|
|
78
78
|
[{ code: 12135 }],
|
|
79
79
|
) {}
|
|
80
80
|
|
|
81
|
+
export class AccessReferenceNotFound extends T.applyErrorMatchers(
|
|
82
|
+
Schema.TaggedErrorClass<AccessReferenceNotFound>()(
|
|
83
|
+
"AccessReferenceNotFound",
|
|
84
|
+
{ code: Schema.Number, message: Schema.String },
|
|
85
|
+
),
|
|
86
|
+
[{ status: 400, message: { includes: "not found" } }],
|
|
87
|
+
) {}
|
|
88
|
+
|
|
81
89
|
export class AccessServiceTokenNotFound extends T.applyErrorMatchers(
|
|
82
90
|
Schema.TaggedErrorClass<AccessServiceTokenNotFound>()(
|
|
83
91
|
"AccessServiceTokenNotFound",
|
|
@@ -32000,7 +32008,9 @@ export const ListAccessApplicationsResponse =
|
|
|
32000
32008
|
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
|
|
32001
32009
|
) as unknown as Schema.Schema<ListAccessApplicationsResponse>;
|
|
32002
32010
|
|
|
32003
|
-
export type ListAccessApplicationsError =
|
|
32011
|
+
export type ListAccessApplicationsError =
|
|
32012
|
+
| DefaultErrors
|
|
32013
|
+
| AccessReferenceNotFound;
|
|
32004
32014
|
|
|
32005
32015
|
export const listAccessApplicationsForAccount: API.PaginatedOperationMethod<
|
|
32006
32016
|
ListAccessApplicationsForAccountRequest,
|
|
@@ -32010,7 +32020,7 @@ export const listAccessApplicationsForAccount: API.PaginatedOperationMethod<
|
|
|
32010
32020
|
> = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
32011
32021
|
input: ListAccessApplicationsForAccountRequest,
|
|
32012
32022
|
output: ListAccessApplicationsResponse,
|
|
32013
|
-
errors: [],
|
|
32023
|
+
errors: [AccessReferenceNotFound],
|
|
32014
32024
|
pagination: {
|
|
32015
32025
|
mode: "page",
|
|
32016
32026
|
inputToken: "page",
|
|
@@ -32028,7 +32038,7 @@ export const listAccessApplicationsForZone: API.PaginatedOperationMethod<
|
|
|
32028
32038
|
> = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
32029
32039
|
input: ListAccessApplicationsForZoneRequest,
|
|
32030
32040
|
output: ListAccessApplicationsResponse,
|
|
32031
|
-
errors: [],
|
|
32041
|
+
errors: [AccessReferenceNotFound],
|
|
32032
32042
|
pagination: {
|
|
32033
32043
|
mode: "page",
|
|
32034
32044
|
inputToken: "page",
|
|
@@ -48098,7 +48108,9 @@ export const CreateAccessApplicationResponse =
|
|
|
48098
48108
|
]).pipe(T.ResponsePath("result")),
|
|
48099
48109
|
) as unknown as Schema.Schema<CreateAccessApplicationResponse>;
|
|
48100
48110
|
|
|
48101
|
-
export type CreateAccessApplicationError =
|
|
48111
|
+
export type CreateAccessApplicationError =
|
|
48112
|
+
| DefaultErrors
|
|
48113
|
+
| AccessReferenceNotFound;
|
|
48102
48114
|
|
|
48103
48115
|
export const createAccessApplicationForAccount: API.OperationMethod<
|
|
48104
48116
|
CreateAccessApplicationForAccountRequest,
|
|
@@ -48108,7 +48120,7 @@ export const createAccessApplicationForAccount: API.OperationMethod<
|
|
|
48108
48120
|
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
48109
48121
|
input: CreateAccessApplicationForAccountRequest,
|
|
48110
48122
|
output: CreateAccessApplicationResponse,
|
|
48111
|
-
errors: [],
|
|
48123
|
+
errors: [AccessReferenceNotFound],
|
|
48112
48124
|
}));
|
|
48113
48125
|
|
|
48114
48126
|
export const createAccessApplicationForZone: API.OperationMethod<
|
|
@@ -48119,7 +48131,7 @@ export const createAccessApplicationForZone: API.OperationMethod<
|
|
|
48119
48131
|
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
48120
48132
|
input: CreateAccessApplicationForZoneRequest,
|
|
48121
48133
|
output: CreateAccessApplicationResponse,
|
|
48122
|
-
errors: [],
|
|
48134
|
+
errors: [AccessReferenceNotFound],
|
|
48123
48135
|
}));
|
|
48124
48136
|
|
|
48125
48137
|
const UpdateAccessApplicationBaseFields = {
|
|
@@ -64187,7 +64199,9 @@ export const UpdateAccessApplicationResponse =
|
|
|
64187
64199
|
]).pipe(T.ResponsePath("result")),
|
|
64188
64200
|
) as unknown as Schema.Schema<UpdateAccessApplicationResponse>;
|
|
64189
64201
|
|
|
64190
|
-
export type UpdateAccessApplicationError =
|
|
64202
|
+
export type UpdateAccessApplicationError =
|
|
64203
|
+
| DefaultErrors
|
|
64204
|
+
| AccessReferenceNotFound;
|
|
64191
64205
|
|
|
64192
64206
|
export const updateAccessApplicationForAccount: API.OperationMethod<
|
|
64193
64207
|
UpdateAccessApplicationForAccountRequest,
|
|
@@ -64197,7 +64211,7 @@ export const updateAccessApplicationForAccount: API.OperationMethod<
|
|
|
64197
64211
|
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
64198
64212
|
input: UpdateAccessApplicationForAccountRequest,
|
|
64199
64213
|
output: UpdateAccessApplicationResponse,
|
|
64200
|
-
errors: [],
|
|
64214
|
+
errors: [AccessReferenceNotFound],
|
|
64201
64215
|
}));
|
|
64202
64216
|
|
|
64203
64217
|
export const updateAccessApplicationForZone: API.OperationMethod<
|
|
@@ -64208,7 +64222,7 @@ export const updateAccessApplicationForZone: API.OperationMethod<
|
|
|
64208
64222
|
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
64209
64223
|
input: UpdateAccessApplicationForZoneRequest,
|
|
64210
64224
|
output: UpdateAccessApplicationResponse,
|
|
64211
|
-
errors: [],
|
|
64225
|
+
errors: [AccessReferenceNotFound],
|
|
64212
64226
|
}));
|
|
64213
64227
|
|
|
64214
64228
|
const DeleteAccessApplicationBaseFields = {
|