@cloudflare/workers-types 0.20230215.0 → 0.20230307.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/2021-11-03/index.d.ts +15 -3
- package/2021-11-03/index.ts +15 -3
- package/2022-01-31/index.d.ts +15 -3
- package/2022-01-31/index.ts +15 -3
- package/2022-03-21/index.d.ts +15 -3
- package/2022-03-21/index.ts +15 -3
- package/2022-08-04/index.d.ts +15 -3
- package/2022-08-04/index.ts +15 -3
- package/2022-10-31/index.d.ts +15 -3
- package/2022-10-31/index.ts +15 -3
- package/2022-11-30/index.d.ts +15 -3
- package/2022-11-30/index.ts +15 -3
- package/experimental/index.d.ts +15 -3
- package/experimental/index.ts +15 -3
- package/index.d.ts +15 -3
- package/index.ts +15 -3
- package/oldest/index.d.ts +15 -3
- package/oldest/index.ts +15 -3
- package/package.json +1 -1
package/2021-11-03/index.d.ts
CHANGED
|
@@ -279,6 +279,7 @@ declare const self: ServiceWorkerGlobalScope;
|
|
|
279
279
|
declare const crypto: Crypto;
|
|
280
280
|
declare const caches: CacheStorage;
|
|
281
281
|
declare const scheduler: Scheduler;
|
|
282
|
+
declare interface TestController {}
|
|
282
283
|
declare interface ExecutionContext {
|
|
283
284
|
waitUntil(promise: Promise<any>): void;
|
|
284
285
|
passThroughOnException(): void;
|
|
@@ -303,10 +304,16 @@ declare type ExportedHandlerQueueHandler<Env = unknown, Message = unknown> = (
|
|
|
303
304
|
env: Env,
|
|
304
305
|
ctx: ExecutionContext
|
|
305
306
|
) => void | Promise<void>;
|
|
307
|
+
declare type ExportedHandlerTestHandler<Env = unknown> = (
|
|
308
|
+
controller: TestController,
|
|
309
|
+
env: Env,
|
|
310
|
+
ctx: ExecutionContext
|
|
311
|
+
) => void | Promise<void>;
|
|
306
312
|
declare interface ExportedHandler<Env = unknown, QueueMessage = unknown> {
|
|
307
313
|
fetch?: ExportedHandlerFetchHandler<Env>;
|
|
308
314
|
trace?: ExportedHandlerTraceHandler<Env>;
|
|
309
315
|
scheduled?: ExportedHandlerScheduledHandler<Env>;
|
|
316
|
+
test?: ExportedHandlerTestHandler<Env>;
|
|
310
317
|
queue?: ExportedHandlerQueueHandler<Env, QueueMessage>;
|
|
311
318
|
}
|
|
312
319
|
declare interface StructuredSerializeOptions {
|
|
@@ -1525,13 +1532,13 @@ declare class CompressionStream extends TransformStream<
|
|
|
1525
1532
|
ArrayBuffer | ArrayBufferView,
|
|
1526
1533
|
Uint8Array
|
|
1527
1534
|
> {
|
|
1528
|
-
constructor(format: "gzip" | "deflate");
|
|
1535
|
+
constructor(format: "gzip" | "deflate" | "deflate-raw");
|
|
1529
1536
|
}
|
|
1530
1537
|
declare class DecompressionStream extends TransformStream<
|
|
1531
1538
|
ArrayBuffer | ArrayBufferView,
|
|
1532
1539
|
Uint8Array
|
|
1533
1540
|
> {
|
|
1534
|
-
constructor(format: "gzip" | "deflate");
|
|
1541
|
+
constructor(format: "gzip" | "deflate" | "deflate-raw");
|
|
1535
1542
|
}
|
|
1536
1543
|
declare class TextEncoderStream extends TransformStream<string, Uint8Array> {
|
|
1537
1544
|
constructor();
|
|
@@ -1660,6 +1667,7 @@ declare class URLSearchParams {
|
|
|
1660
1667
|
| Record<string, string>
|
|
1661
1668
|
| [key: string, value: string][]
|
|
1662
1669
|
);
|
|
1670
|
+
get size(): number;
|
|
1663
1671
|
append(name: string, value: string): void;
|
|
1664
1672
|
delete(name: string): void;
|
|
1665
1673
|
get(name: string): string | null;
|
|
@@ -2148,6 +2156,10 @@ declare interface IncomingRequestCfPropertiesBotManagementBase {
|
|
|
2148
2156
|
* A boolean value that's true if the request matches [file extensions](https://developers.cloudflare.com/bots/reference/static-resources/) for many types of static resources.
|
|
2149
2157
|
*/
|
|
2150
2158
|
staticResource: boolean;
|
|
2159
|
+
/**
|
|
2160
|
+
* List of IDs that correlate to the Bot Management heuristic detections made on a request (you can have multiple heuristic detections on the same request).
|
|
2161
|
+
*/
|
|
2162
|
+
detectionIds: number[];
|
|
2151
2163
|
}
|
|
2152
2164
|
declare interface IncomingRequestCfPropertiesBotManagement {
|
|
2153
2165
|
/**
|
|
@@ -2730,7 +2742,7 @@ declare abstract class D1PreparedStatement {
|
|
|
2730
2742
|
/**
|
|
2731
2743
|
* A email message that is sent to a consumer Worker.
|
|
2732
2744
|
*/
|
|
2733
|
-
declare interface EmailMessage
|
|
2745
|
+
declare interface EmailMessage {
|
|
2734
2746
|
/**
|
|
2735
2747
|
* Envelope From attribute of the email message.
|
|
2736
2748
|
*/
|
package/2021-11-03/index.ts
CHANGED
|
@@ -281,6 +281,7 @@ export declare const self: ServiceWorkerGlobalScope;
|
|
|
281
281
|
export declare const crypto: Crypto;
|
|
282
282
|
export declare const caches: CacheStorage;
|
|
283
283
|
export declare const scheduler: Scheduler;
|
|
284
|
+
export interface TestController {}
|
|
284
285
|
export interface ExecutionContext {
|
|
285
286
|
waitUntil(promise: Promise<any>): void;
|
|
286
287
|
passThroughOnException(): void;
|
|
@@ -305,10 +306,16 @@ export type ExportedHandlerQueueHandler<Env = unknown, Message = unknown> = (
|
|
|
305
306
|
env: Env,
|
|
306
307
|
ctx: ExecutionContext
|
|
307
308
|
) => void | Promise<void>;
|
|
309
|
+
export type ExportedHandlerTestHandler<Env = unknown> = (
|
|
310
|
+
controller: TestController,
|
|
311
|
+
env: Env,
|
|
312
|
+
ctx: ExecutionContext
|
|
313
|
+
) => void | Promise<void>;
|
|
308
314
|
export interface ExportedHandler<Env = unknown, QueueMessage = unknown> {
|
|
309
315
|
fetch?: ExportedHandlerFetchHandler<Env>;
|
|
310
316
|
trace?: ExportedHandlerTraceHandler<Env>;
|
|
311
317
|
scheduled?: ExportedHandlerScheduledHandler<Env>;
|
|
318
|
+
test?: ExportedHandlerTestHandler<Env>;
|
|
312
319
|
queue?: ExportedHandlerQueueHandler<Env, QueueMessage>;
|
|
313
320
|
}
|
|
314
321
|
export interface StructuredSerializeOptions {
|
|
@@ -1527,13 +1534,13 @@ export declare class CompressionStream extends TransformStream<
|
|
|
1527
1534
|
ArrayBuffer | ArrayBufferView,
|
|
1528
1535
|
Uint8Array
|
|
1529
1536
|
> {
|
|
1530
|
-
constructor(format: "gzip" | "deflate");
|
|
1537
|
+
constructor(format: "gzip" | "deflate" | "deflate-raw");
|
|
1531
1538
|
}
|
|
1532
1539
|
export declare class DecompressionStream extends TransformStream<
|
|
1533
1540
|
ArrayBuffer | ArrayBufferView,
|
|
1534
1541
|
Uint8Array
|
|
1535
1542
|
> {
|
|
1536
|
-
constructor(format: "gzip" | "deflate");
|
|
1543
|
+
constructor(format: "gzip" | "deflate" | "deflate-raw");
|
|
1537
1544
|
}
|
|
1538
1545
|
export declare class TextEncoderStream extends TransformStream<
|
|
1539
1546
|
string,
|
|
@@ -1665,6 +1672,7 @@ export declare class URLSearchParams {
|
|
|
1665
1672
|
| Record<string, string>
|
|
1666
1673
|
| [key: string, value: string][]
|
|
1667
1674
|
);
|
|
1675
|
+
get size(): number;
|
|
1668
1676
|
append(name: string, value: string): void;
|
|
1669
1677
|
delete(name: string): void;
|
|
1670
1678
|
get(name: string): string | null;
|
|
@@ -2153,6 +2161,10 @@ export interface IncomingRequestCfPropertiesBotManagementBase {
|
|
|
2153
2161
|
* A boolean value that's true if the request matches [file extensions](https://developers.cloudflare.com/bots/reference/static-resources/) for many types of static resources.
|
|
2154
2162
|
*/
|
|
2155
2163
|
staticResource: boolean;
|
|
2164
|
+
/**
|
|
2165
|
+
* List of IDs that correlate to the Bot Management heuristic detections made on a request (you can have multiple heuristic detections on the same request).
|
|
2166
|
+
*/
|
|
2167
|
+
detectionIds: number[];
|
|
2156
2168
|
}
|
|
2157
2169
|
export interface IncomingRequestCfPropertiesBotManagement {
|
|
2158
2170
|
/**
|
|
@@ -2735,7 +2747,7 @@ export declare abstract class D1PreparedStatement {
|
|
|
2735
2747
|
/**
|
|
2736
2748
|
* A email message that is sent to a consumer Worker.
|
|
2737
2749
|
*/
|
|
2738
|
-
export interface EmailMessage
|
|
2750
|
+
export interface EmailMessage {
|
|
2739
2751
|
/**
|
|
2740
2752
|
* Envelope From attribute of the email message.
|
|
2741
2753
|
*/
|
package/2022-01-31/index.d.ts
CHANGED
|
@@ -279,6 +279,7 @@ declare const self: ServiceWorkerGlobalScope;
|
|
|
279
279
|
declare const crypto: Crypto;
|
|
280
280
|
declare const caches: CacheStorage;
|
|
281
281
|
declare const scheduler: Scheduler;
|
|
282
|
+
declare interface TestController {}
|
|
282
283
|
declare interface ExecutionContext {
|
|
283
284
|
waitUntil(promise: Promise<any>): void;
|
|
284
285
|
passThroughOnException(): void;
|
|
@@ -303,10 +304,16 @@ declare type ExportedHandlerQueueHandler<Env = unknown, Message = unknown> = (
|
|
|
303
304
|
env: Env,
|
|
304
305
|
ctx: ExecutionContext
|
|
305
306
|
) => void | Promise<void>;
|
|
307
|
+
declare type ExportedHandlerTestHandler<Env = unknown> = (
|
|
308
|
+
controller: TestController,
|
|
309
|
+
env: Env,
|
|
310
|
+
ctx: ExecutionContext
|
|
311
|
+
) => void | Promise<void>;
|
|
306
312
|
declare interface ExportedHandler<Env = unknown, QueueMessage = unknown> {
|
|
307
313
|
fetch?: ExportedHandlerFetchHandler<Env>;
|
|
308
314
|
trace?: ExportedHandlerTraceHandler<Env>;
|
|
309
315
|
scheduled?: ExportedHandlerScheduledHandler<Env>;
|
|
316
|
+
test?: ExportedHandlerTestHandler<Env>;
|
|
310
317
|
queue?: ExportedHandlerQueueHandler<Env, QueueMessage>;
|
|
311
318
|
}
|
|
312
319
|
declare interface StructuredSerializeOptions {
|
|
@@ -1505,13 +1512,13 @@ declare class CompressionStream extends TransformStream<
|
|
|
1505
1512
|
ArrayBuffer | ArrayBufferView,
|
|
1506
1513
|
Uint8Array
|
|
1507
1514
|
> {
|
|
1508
|
-
constructor(format: "gzip" | "deflate");
|
|
1515
|
+
constructor(format: "gzip" | "deflate" | "deflate-raw");
|
|
1509
1516
|
}
|
|
1510
1517
|
declare class DecompressionStream extends TransformStream<
|
|
1511
1518
|
ArrayBuffer | ArrayBufferView,
|
|
1512
1519
|
Uint8Array
|
|
1513
1520
|
> {
|
|
1514
|
-
constructor(format: "gzip" | "deflate");
|
|
1521
|
+
constructor(format: "gzip" | "deflate" | "deflate-raw");
|
|
1515
1522
|
}
|
|
1516
1523
|
declare class TextEncoderStream extends TransformStream<string, Uint8Array> {
|
|
1517
1524
|
constructor();
|
|
@@ -1650,6 +1657,7 @@ declare class URLSearchParams {
|
|
|
1650
1657
|
| Record<string, string>
|
|
1651
1658
|
| [key: string, value: string][]
|
|
1652
1659
|
);
|
|
1660
|
+
get size(): number;
|
|
1653
1661
|
append(name: string, value: string): void;
|
|
1654
1662
|
delete(name: string): void;
|
|
1655
1663
|
get(name: string): string | null;
|
|
@@ -2134,6 +2142,10 @@ declare interface IncomingRequestCfPropertiesBotManagementBase {
|
|
|
2134
2142
|
* A boolean value that's true if the request matches [file extensions](https://developers.cloudflare.com/bots/reference/static-resources/) for many types of static resources.
|
|
2135
2143
|
*/
|
|
2136
2144
|
staticResource: boolean;
|
|
2145
|
+
/**
|
|
2146
|
+
* List of IDs that correlate to the Bot Management heuristic detections made on a request (you can have multiple heuristic detections on the same request).
|
|
2147
|
+
*/
|
|
2148
|
+
detectionIds: number[];
|
|
2137
2149
|
}
|
|
2138
2150
|
declare interface IncomingRequestCfPropertiesBotManagement {
|
|
2139
2151
|
/**
|
|
@@ -2716,7 +2728,7 @@ declare abstract class D1PreparedStatement {
|
|
|
2716
2728
|
/**
|
|
2717
2729
|
* A email message that is sent to a consumer Worker.
|
|
2718
2730
|
*/
|
|
2719
|
-
declare interface EmailMessage
|
|
2731
|
+
declare interface EmailMessage {
|
|
2720
2732
|
/**
|
|
2721
2733
|
* Envelope From attribute of the email message.
|
|
2722
2734
|
*/
|
package/2022-01-31/index.ts
CHANGED
|
@@ -281,6 +281,7 @@ export declare const self: ServiceWorkerGlobalScope;
|
|
|
281
281
|
export declare const crypto: Crypto;
|
|
282
282
|
export declare const caches: CacheStorage;
|
|
283
283
|
export declare const scheduler: Scheduler;
|
|
284
|
+
export interface TestController {}
|
|
284
285
|
export interface ExecutionContext {
|
|
285
286
|
waitUntil(promise: Promise<any>): void;
|
|
286
287
|
passThroughOnException(): void;
|
|
@@ -305,10 +306,16 @@ export type ExportedHandlerQueueHandler<Env = unknown, Message = unknown> = (
|
|
|
305
306
|
env: Env,
|
|
306
307
|
ctx: ExecutionContext
|
|
307
308
|
) => void | Promise<void>;
|
|
309
|
+
export type ExportedHandlerTestHandler<Env = unknown> = (
|
|
310
|
+
controller: TestController,
|
|
311
|
+
env: Env,
|
|
312
|
+
ctx: ExecutionContext
|
|
313
|
+
) => void | Promise<void>;
|
|
308
314
|
export interface ExportedHandler<Env = unknown, QueueMessage = unknown> {
|
|
309
315
|
fetch?: ExportedHandlerFetchHandler<Env>;
|
|
310
316
|
trace?: ExportedHandlerTraceHandler<Env>;
|
|
311
317
|
scheduled?: ExportedHandlerScheduledHandler<Env>;
|
|
318
|
+
test?: ExportedHandlerTestHandler<Env>;
|
|
312
319
|
queue?: ExportedHandlerQueueHandler<Env, QueueMessage>;
|
|
313
320
|
}
|
|
314
321
|
export interface StructuredSerializeOptions {
|
|
@@ -1507,13 +1514,13 @@ export declare class CompressionStream extends TransformStream<
|
|
|
1507
1514
|
ArrayBuffer | ArrayBufferView,
|
|
1508
1515
|
Uint8Array
|
|
1509
1516
|
> {
|
|
1510
|
-
constructor(format: "gzip" | "deflate");
|
|
1517
|
+
constructor(format: "gzip" | "deflate" | "deflate-raw");
|
|
1511
1518
|
}
|
|
1512
1519
|
export declare class DecompressionStream extends TransformStream<
|
|
1513
1520
|
ArrayBuffer | ArrayBufferView,
|
|
1514
1521
|
Uint8Array
|
|
1515
1522
|
> {
|
|
1516
|
-
constructor(format: "gzip" | "deflate");
|
|
1523
|
+
constructor(format: "gzip" | "deflate" | "deflate-raw");
|
|
1517
1524
|
}
|
|
1518
1525
|
export declare class TextEncoderStream extends TransformStream<
|
|
1519
1526
|
string,
|
|
@@ -1655,6 +1662,7 @@ export declare class URLSearchParams {
|
|
|
1655
1662
|
| Record<string, string>
|
|
1656
1663
|
| [key: string, value: string][]
|
|
1657
1664
|
);
|
|
1665
|
+
get size(): number;
|
|
1658
1666
|
append(name: string, value: string): void;
|
|
1659
1667
|
delete(name: string): void;
|
|
1660
1668
|
get(name: string): string | null;
|
|
@@ -2139,6 +2147,10 @@ export interface IncomingRequestCfPropertiesBotManagementBase {
|
|
|
2139
2147
|
* A boolean value that's true if the request matches [file extensions](https://developers.cloudflare.com/bots/reference/static-resources/) for many types of static resources.
|
|
2140
2148
|
*/
|
|
2141
2149
|
staticResource: boolean;
|
|
2150
|
+
/**
|
|
2151
|
+
* List of IDs that correlate to the Bot Management heuristic detections made on a request (you can have multiple heuristic detections on the same request).
|
|
2152
|
+
*/
|
|
2153
|
+
detectionIds: number[];
|
|
2142
2154
|
}
|
|
2143
2155
|
export interface IncomingRequestCfPropertiesBotManagement {
|
|
2144
2156
|
/**
|
|
@@ -2721,7 +2733,7 @@ export declare abstract class D1PreparedStatement {
|
|
|
2721
2733
|
/**
|
|
2722
2734
|
* A email message that is sent to a consumer Worker.
|
|
2723
2735
|
*/
|
|
2724
|
-
export interface EmailMessage
|
|
2736
|
+
export interface EmailMessage {
|
|
2725
2737
|
/**
|
|
2726
2738
|
* Envelope From attribute of the email message.
|
|
2727
2739
|
*/
|
package/2022-03-21/index.d.ts
CHANGED
|
@@ -282,6 +282,7 @@ declare const crypto: Crypto;
|
|
|
282
282
|
declare const caches: CacheStorage;
|
|
283
283
|
declare const scheduler: Scheduler;
|
|
284
284
|
declare const navigator: Navigator;
|
|
285
|
+
declare interface TestController {}
|
|
285
286
|
declare interface ExecutionContext {
|
|
286
287
|
waitUntil(promise: Promise<any>): void;
|
|
287
288
|
passThroughOnException(): void;
|
|
@@ -306,10 +307,16 @@ declare type ExportedHandlerQueueHandler<Env = unknown, Message = unknown> = (
|
|
|
306
307
|
env: Env,
|
|
307
308
|
ctx: ExecutionContext
|
|
308
309
|
) => void | Promise<void>;
|
|
310
|
+
declare type ExportedHandlerTestHandler<Env = unknown> = (
|
|
311
|
+
controller: TestController,
|
|
312
|
+
env: Env,
|
|
313
|
+
ctx: ExecutionContext
|
|
314
|
+
) => void | Promise<void>;
|
|
309
315
|
declare interface ExportedHandler<Env = unknown, QueueMessage = unknown> {
|
|
310
316
|
fetch?: ExportedHandlerFetchHandler<Env>;
|
|
311
317
|
trace?: ExportedHandlerTraceHandler<Env>;
|
|
312
318
|
scheduled?: ExportedHandlerScheduledHandler<Env>;
|
|
319
|
+
test?: ExportedHandlerTestHandler<Env>;
|
|
313
320
|
queue?: ExportedHandlerQueueHandler<Env, QueueMessage>;
|
|
314
321
|
}
|
|
315
322
|
declare interface StructuredSerializeOptions {
|
|
@@ -1511,13 +1518,13 @@ declare class CompressionStream extends TransformStream<
|
|
|
1511
1518
|
ArrayBuffer | ArrayBufferView,
|
|
1512
1519
|
Uint8Array
|
|
1513
1520
|
> {
|
|
1514
|
-
constructor(format: "gzip" | "deflate");
|
|
1521
|
+
constructor(format: "gzip" | "deflate" | "deflate-raw");
|
|
1515
1522
|
}
|
|
1516
1523
|
declare class DecompressionStream extends TransformStream<
|
|
1517
1524
|
ArrayBuffer | ArrayBufferView,
|
|
1518
1525
|
Uint8Array
|
|
1519
1526
|
> {
|
|
1520
|
-
constructor(format: "gzip" | "deflate");
|
|
1527
|
+
constructor(format: "gzip" | "deflate" | "deflate-raw");
|
|
1521
1528
|
}
|
|
1522
1529
|
declare class TextEncoderStream extends TransformStream<string, Uint8Array> {
|
|
1523
1530
|
constructor();
|
|
@@ -1656,6 +1663,7 @@ declare class URLSearchParams {
|
|
|
1656
1663
|
| Record<string, string>
|
|
1657
1664
|
| [key: string, value: string][]
|
|
1658
1665
|
);
|
|
1666
|
+
get size(): number;
|
|
1659
1667
|
append(name: string, value: string): void;
|
|
1660
1668
|
delete(name: string): void;
|
|
1661
1669
|
get(name: string): string | null;
|
|
@@ -2140,6 +2148,10 @@ declare interface IncomingRequestCfPropertiesBotManagementBase {
|
|
|
2140
2148
|
* A boolean value that's true if the request matches [file extensions](https://developers.cloudflare.com/bots/reference/static-resources/) for many types of static resources.
|
|
2141
2149
|
*/
|
|
2142
2150
|
staticResource: boolean;
|
|
2151
|
+
/**
|
|
2152
|
+
* List of IDs that correlate to the Bot Management heuristic detections made on a request (you can have multiple heuristic detections on the same request).
|
|
2153
|
+
*/
|
|
2154
|
+
detectionIds: number[];
|
|
2143
2155
|
}
|
|
2144
2156
|
declare interface IncomingRequestCfPropertiesBotManagement {
|
|
2145
2157
|
/**
|
|
@@ -2722,7 +2734,7 @@ declare abstract class D1PreparedStatement {
|
|
|
2722
2734
|
/**
|
|
2723
2735
|
* A email message that is sent to a consumer Worker.
|
|
2724
2736
|
*/
|
|
2725
|
-
declare interface EmailMessage
|
|
2737
|
+
declare interface EmailMessage {
|
|
2726
2738
|
/**
|
|
2727
2739
|
* Envelope From attribute of the email message.
|
|
2728
2740
|
*/
|
package/2022-03-21/index.ts
CHANGED
|
@@ -284,6 +284,7 @@ export declare const crypto: Crypto;
|
|
|
284
284
|
export declare const caches: CacheStorage;
|
|
285
285
|
export declare const scheduler: Scheduler;
|
|
286
286
|
export declare const navigator: Navigator;
|
|
287
|
+
export interface TestController {}
|
|
287
288
|
export interface ExecutionContext {
|
|
288
289
|
waitUntil(promise: Promise<any>): void;
|
|
289
290
|
passThroughOnException(): void;
|
|
@@ -308,10 +309,16 @@ export type ExportedHandlerQueueHandler<Env = unknown, Message = unknown> = (
|
|
|
308
309
|
env: Env,
|
|
309
310
|
ctx: ExecutionContext
|
|
310
311
|
) => void | Promise<void>;
|
|
312
|
+
export type ExportedHandlerTestHandler<Env = unknown> = (
|
|
313
|
+
controller: TestController,
|
|
314
|
+
env: Env,
|
|
315
|
+
ctx: ExecutionContext
|
|
316
|
+
) => void | Promise<void>;
|
|
311
317
|
export interface ExportedHandler<Env = unknown, QueueMessage = unknown> {
|
|
312
318
|
fetch?: ExportedHandlerFetchHandler<Env>;
|
|
313
319
|
trace?: ExportedHandlerTraceHandler<Env>;
|
|
314
320
|
scheduled?: ExportedHandlerScheduledHandler<Env>;
|
|
321
|
+
test?: ExportedHandlerTestHandler<Env>;
|
|
315
322
|
queue?: ExportedHandlerQueueHandler<Env, QueueMessage>;
|
|
316
323
|
}
|
|
317
324
|
export interface StructuredSerializeOptions {
|
|
@@ -1513,13 +1520,13 @@ export declare class CompressionStream extends TransformStream<
|
|
|
1513
1520
|
ArrayBuffer | ArrayBufferView,
|
|
1514
1521
|
Uint8Array
|
|
1515
1522
|
> {
|
|
1516
|
-
constructor(format: "gzip" | "deflate");
|
|
1523
|
+
constructor(format: "gzip" | "deflate" | "deflate-raw");
|
|
1517
1524
|
}
|
|
1518
1525
|
export declare class DecompressionStream extends TransformStream<
|
|
1519
1526
|
ArrayBuffer | ArrayBufferView,
|
|
1520
1527
|
Uint8Array
|
|
1521
1528
|
> {
|
|
1522
|
-
constructor(format: "gzip" | "deflate");
|
|
1529
|
+
constructor(format: "gzip" | "deflate" | "deflate-raw");
|
|
1523
1530
|
}
|
|
1524
1531
|
export declare class TextEncoderStream extends TransformStream<
|
|
1525
1532
|
string,
|
|
@@ -1661,6 +1668,7 @@ export declare class URLSearchParams {
|
|
|
1661
1668
|
| Record<string, string>
|
|
1662
1669
|
| [key: string, value: string][]
|
|
1663
1670
|
);
|
|
1671
|
+
get size(): number;
|
|
1664
1672
|
append(name: string, value: string): void;
|
|
1665
1673
|
delete(name: string): void;
|
|
1666
1674
|
get(name: string): string | null;
|
|
@@ -2145,6 +2153,10 @@ export interface IncomingRequestCfPropertiesBotManagementBase {
|
|
|
2145
2153
|
* A boolean value that's true if the request matches [file extensions](https://developers.cloudflare.com/bots/reference/static-resources/) for many types of static resources.
|
|
2146
2154
|
*/
|
|
2147
2155
|
staticResource: boolean;
|
|
2156
|
+
/**
|
|
2157
|
+
* List of IDs that correlate to the Bot Management heuristic detections made on a request (you can have multiple heuristic detections on the same request).
|
|
2158
|
+
*/
|
|
2159
|
+
detectionIds: number[];
|
|
2148
2160
|
}
|
|
2149
2161
|
export interface IncomingRequestCfPropertiesBotManagement {
|
|
2150
2162
|
/**
|
|
@@ -2727,7 +2739,7 @@ export declare abstract class D1PreparedStatement {
|
|
|
2727
2739
|
/**
|
|
2728
2740
|
* A email message that is sent to a consumer Worker.
|
|
2729
2741
|
*/
|
|
2730
|
-
export interface EmailMessage
|
|
2742
|
+
export interface EmailMessage {
|
|
2731
2743
|
/**
|
|
2732
2744
|
* Envelope From attribute of the email message.
|
|
2733
2745
|
*/
|
package/2022-08-04/index.d.ts
CHANGED
|
@@ -282,6 +282,7 @@ declare const crypto: Crypto;
|
|
|
282
282
|
declare const caches: CacheStorage;
|
|
283
283
|
declare const scheduler: Scheduler;
|
|
284
284
|
declare const navigator: Navigator;
|
|
285
|
+
declare interface TestController {}
|
|
285
286
|
declare interface ExecutionContext {
|
|
286
287
|
waitUntil(promise: Promise<any>): void;
|
|
287
288
|
passThroughOnException(): void;
|
|
@@ -306,10 +307,16 @@ declare type ExportedHandlerQueueHandler<Env = unknown, Message = unknown> = (
|
|
|
306
307
|
env: Env,
|
|
307
308
|
ctx: ExecutionContext
|
|
308
309
|
) => void | Promise<void>;
|
|
310
|
+
declare type ExportedHandlerTestHandler<Env = unknown> = (
|
|
311
|
+
controller: TestController,
|
|
312
|
+
env: Env,
|
|
313
|
+
ctx: ExecutionContext
|
|
314
|
+
) => void | Promise<void>;
|
|
309
315
|
declare interface ExportedHandler<Env = unknown, QueueMessage = unknown> {
|
|
310
316
|
fetch?: ExportedHandlerFetchHandler<Env>;
|
|
311
317
|
trace?: ExportedHandlerTraceHandler<Env>;
|
|
312
318
|
scheduled?: ExportedHandlerScheduledHandler<Env>;
|
|
319
|
+
test?: ExportedHandlerTestHandler<Env>;
|
|
313
320
|
queue?: ExportedHandlerQueueHandler<Env, QueueMessage>;
|
|
314
321
|
}
|
|
315
322
|
declare interface StructuredSerializeOptions {
|
|
@@ -1512,13 +1519,13 @@ declare class CompressionStream extends TransformStream<
|
|
|
1512
1519
|
ArrayBuffer | ArrayBufferView,
|
|
1513
1520
|
Uint8Array
|
|
1514
1521
|
> {
|
|
1515
|
-
constructor(format: "gzip" | "deflate");
|
|
1522
|
+
constructor(format: "gzip" | "deflate" | "deflate-raw");
|
|
1516
1523
|
}
|
|
1517
1524
|
declare class DecompressionStream extends TransformStream<
|
|
1518
1525
|
ArrayBuffer | ArrayBufferView,
|
|
1519
1526
|
Uint8Array
|
|
1520
1527
|
> {
|
|
1521
|
-
constructor(format: "gzip" | "deflate");
|
|
1528
|
+
constructor(format: "gzip" | "deflate" | "deflate-raw");
|
|
1522
1529
|
}
|
|
1523
1530
|
declare class TextEncoderStream extends TransformStream<string, Uint8Array> {
|
|
1524
1531
|
constructor();
|
|
@@ -1657,6 +1664,7 @@ declare class URLSearchParams {
|
|
|
1657
1664
|
| Record<string, string>
|
|
1658
1665
|
| [key: string, value: string][]
|
|
1659
1666
|
);
|
|
1667
|
+
get size(): number;
|
|
1660
1668
|
append(name: string, value: string): void;
|
|
1661
1669
|
delete(name: string): void;
|
|
1662
1670
|
get(name: string): string | null;
|
|
@@ -2141,6 +2149,10 @@ declare interface IncomingRequestCfPropertiesBotManagementBase {
|
|
|
2141
2149
|
* A boolean value that's true if the request matches [file extensions](https://developers.cloudflare.com/bots/reference/static-resources/) for many types of static resources.
|
|
2142
2150
|
*/
|
|
2143
2151
|
staticResource: boolean;
|
|
2152
|
+
/**
|
|
2153
|
+
* List of IDs that correlate to the Bot Management heuristic detections made on a request (you can have multiple heuristic detections on the same request).
|
|
2154
|
+
*/
|
|
2155
|
+
detectionIds: number[];
|
|
2144
2156
|
}
|
|
2145
2157
|
declare interface IncomingRequestCfPropertiesBotManagement {
|
|
2146
2158
|
/**
|
|
@@ -2723,7 +2735,7 @@ declare abstract class D1PreparedStatement {
|
|
|
2723
2735
|
/**
|
|
2724
2736
|
* A email message that is sent to a consumer Worker.
|
|
2725
2737
|
*/
|
|
2726
|
-
declare interface EmailMessage
|
|
2738
|
+
declare interface EmailMessage {
|
|
2727
2739
|
/**
|
|
2728
2740
|
* Envelope From attribute of the email message.
|
|
2729
2741
|
*/
|
package/2022-08-04/index.ts
CHANGED
|
@@ -284,6 +284,7 @@ export declare const crypto: Crypto;
|
|
|
284
284
|
export declare const caches: CacheStorage;
|
|
285
285
|
export declare const scheduler: Scheduler;
|
|
286
286
|
export declare const navigator: Navigator;
|
|
287
|
+
export interface TestController {}
|
|
287
288
|
export interface ExecutionContext {
|
|
288
289
|
waitUntil(promise: Promise<any>): void;
|
|
289
290
|
passThroughOnException(): void;
|
|
@@ -308,10 +309,16 @@ export type ExportedHandlerQueueHandler<Env = unknown, Message = unknown> = (
|
|
|
308
309
|
env: Env,
|
|
309
310
|
ctx: ExecutionContext
|
|
310
311
|
) => void | Promise<void>;
|
|
312
|
+
export type ExportedHandlerTestHandler<Env = unknown> = (
|
|
313
|
+
controller: TestController,
|
|
314
|
+
env: Env,
|
|
315
|
+
ctx: ExecutionContext
|
|
316
|
+
) => void | Promise<void>;
|
|
311
317
|
export interface ExportedHandler<Env = unknown, QueueMessage = unknown> {
|
|
312
318
|
fetch?: ExportedHandlerFetchHandler<Env>;
|
|
313
319
|
trace?: ExportedHandlerTraceHandler<Env>;
|
|
314
320
|
scheduled?: ExportedHandlerScheduledHandler<Env>;
|
|
321
|
+
test?: ExportedHandlerTestHandler<Env>;
|
|
315
322
|
queue?: ExportedHandlerQueueHandler<Env, QueueMessage>;
|
|
316
323
|
}
|
|
317
324
|
export interface StructuredSerializeOptions {
|
|
@@ -1514,13 +1521,13 @@ export declare class CompressionStream extends TransformStream<
|
|
|
1514
1521
|
ArrayBuffer | ArrayBufferView,
|
|
1515
1522
|
Uint8Array
|
|
1516
1523
|
> {
|
|
1517
|
-
constructor(format: "gzip" | "deflate");
|
|
1524
|
+
constructor(format: "gzip" | "deflate" | "deflate-raw");
|
|
1518
1525
|
}
|
|
1519
1526
|
export declare class DecompressionStream extends TransformStream<
|
|
1520
1527
|
ArrayBuffer | ArrayBufferView,
|
|
1521
1528
|
Uint8Array
|
|
1522
1529
|
> {
|
|
1523
|
-
constructor(format: "gzip" | "deflate");
|
|
1530
|
+
constructor(format: "gzip" | "deflate" | "deflate-raw");
|
|
1524
1531
|
}
|
|
1525
1532
|
export declare class TextEncoderStream extends TransformStream<
|
|
1526
1533
|
string,
|
|
@@ -1662,6 +1669,7 @@ export declare class URLSearchParams {
|
|
|
1662
1669
|
| Record<string, string>
|
|
1663
1670
|
| [key: string, value: string][]
|
|
1664
1671
|
);
|
|
1672
|
+
get size(): number;
|
|
1665
1673
|
append(name: string, value: string): void;
|
|
1666
1674
|
delete(name: string): void;
|
|
1667
1675
|
get(name: string): string | null;
|
|
@@ -2146,6 +2154,10 @@ export interface IncomingRequestCfPropertiesBotManagementBase {
|
|
|
2146
2154
|
* A boolean value that's true if the request matches [file extensions](https://developers.cloudflare.com/bots/reference/static-resources/) for many types of static resources.
|
|
2147
2155
|
*/
|
|
2148
2156
|
staticResource: boolean;
|
|
2157
|
+
/**
|
|
2158
|
+
* List of IDs that correlate to the Bot Management heuristic detections made on a request (you can have multiple heuristic detections on the same request).
|
|
2159
|
+
*/
|
|
2160
|
+
detectionIds: number[];
|
|
2149
2161
|
}
|
|
2150
2162
|
export interface IncomingRequestCfPropertiesBotManagement {
|
|
2151
2163
|
/**
|
|
@@ -2728,7 +2740,7 @@ export declare abstract class D1PreparedStatement {
|
|
|
2728
2740
|
/**
|
|
2729
2741
|
* A email message that is sent to a consumer Worker.
|
|
2730
2742
|
*/
|
|
2731
|
-
export interface EmailMessage
|
|
2743
|
+
export interface EmailMessage {
|
|
2732
2744
|
/**
|
|
2733
2745
|
* Envelope From attribute of the email message.
|
|
2734
2746
|
*/
|
package/2022-10-31/index.d.ts
CHANGED
|
@@ -282,6 +282,7 @@ declare const crypto: Crypto;
|
|
|
282
282
|
declare const caches: CacheStorage;
|
|
283
283
|
declare const scheduler: Scheduler;
|
|
284
284
|
declare const navigator: Navigator;
|
|
285
|
+
declare interface TestController {}
|
|
285
286
|
declare interface ExecutionContext {
|
|
286
287
|
waitUntil(promise: Promise<any>): void;
|
|
287
288
|
passThroughOnException(): void;
|
|
@@ -306,10 +307,16 @@ declare type ExportedHandlerQueueHandler<Env = unknown, Message = unknown> = (
|
|
|
306
307
|
env: Env,
|
|
307
308
|
ctx: ExecutionContext
|
|
308
309
|
) => void | Promise<void>;
|
|
310
|
+
declare type ExportedHandlerTestHandler<Env = unknown> = (
|
|
311
|
+
controller: TestController,
|
|
312
|
+
env: Env,
|
|
313
|
+
ctx: ExecutionContext
|
|
314
|
+
) => void | Promise<void>;
|
|
309
315
|
declare interface ExportedHandler<Env = unknown, QueueMessage = unknown> {
|
|
310
316
|
fetch?: ExportedHandlerFetchHandler<Env>;
|
|
311
317
|
trace?: ExportedHandlerTraceHandler<Env>;
|
|
312
318
|
scheduled?: ExportedHandlerScheduledHandler<Env>;
|
|
319
|
+
test?: ExportedHandlerTestHandler<Env>;
|
|
313
320
|
queue?: ExportedHandlerQueueHandler<Env, QueueMessage>;
|
|
314
321
|
}
|
|
315
322
|
declare interface StructuredSerializeOptions {
|
|
@@ -1512,13 +1519,13 @@ declare class CompressionStream extends TransformStream<
|
|
|
1512
1519
|
ArrayBuffer | ArrayBufferView,
|
|
1513
1520
|
Uint8Array
|
|
1514
1521
|
> {
|
|
1515
|
-
constructor(format: "gzip" | "deflate");
|
|
1522
|
+
constructor(format: "gzip" | "deflate" | "deflate-raw");
|
|
1516
1523
|
}
|
|
1517
1524
|
declare class DecompressionStream extends TransformStream<
|
|
1518
1525
|
ArrayBuffer | ArrayBufferView,
|
|
1519
1526
|
Uint8Array
|
|
1520
1527
|
> {
|
|
1521
|
-
constructor(format: "gzip" | "deflate");
|
|
1528
|
+
constructor(format: "gzip" | "deflate" | "deflate-raw");
|
|
1522
1529
|
}
|
|
1523
1530
|
declare class TextEncoderStream extends TransformStream<string, Uint8Array> {
|
|
1524
1531
|
constructor();
|
|
@@ -1653,6 +1660,7 @@ declare class URLSearchParams {
|
|
|
1653
1660
|
constructor(
|
|
1654
1661
|
init?: Iterable<Iterable<string>> | Record<string, string> | string
|
|
1655
1662
|
);
|
|
1663
|
+
get size(): number;
|
|
1656
1664
|
append(name: string, value: string): void;
|
|
1657
1665
|
delete(name: string): void;
|
|
1658
1666
|
get(name: string): string | null;
|
|
@@ -2137,6 +2145,10 @@ declare interface IncomingRequestCfPropertiesBotManagementBase {
|
|
|
2137
2145
|
* A boolean value that's true if the request matches [file extensions](https://developers.cloudflare.com/bots/reference/static-resources/) for many types of static resources.
|
|
2138
2146
|
*/
|
|
2139
2147
|
staticResource: boolean;
|
|
2148
|
+
/**
|
|
2149
|
+
* List of IDs that correlate to the Bot Management heuristic detections made on a request (you can have multiple heuristic detections on the same request).
|
|
2150
|
+
*/
|
|
2151
|
+
detectionIds: number[];
|
|
2140
2152
|
}
|
|
2141
2153
|
declare interface IncomingRequestCfPropertiesBotManagement {
|
|
2142
2154
|
/**
|
|
@@ -2719,7 +2731,7 @@ declare abstract class D1PreparedStatement {
|
|
|
2719
2731
|
/**
|
|
2720
2732
|
* A email message that is sent to a consumer Worker.
|
|
2721
2733
|
*/
|
|
2722
|
-
declare interface EmailMessage
|
|
2734
|
+
declare interface EmailMessage {
|
|
2723
2735
|
/**
|
|
2724
2736
|
* Envelope From attribute of the email message.
|
|
2725
2737
|
*/
|
package/2022-10-31/index.ts
CHANGED
|
@@ -284,6 +284,7 @@ export declare const crypto: Crypto;
|
|
|
284
284
|
export declare const caches: CacheStorage;
|
|
285
285
|
export declare const scheduler: Scheduler;
|
|
286
286
|
export declare const navigator: Navigator;
|
|
287
|
+
export interface TestController {}
|
|
287
288
|
export interface ExecutionContext {
|
|
288
289
|
waitUntil(promise: Promise<any>): void;
|
|
289
290
|
passThroughOnException(): void;
|
|
@@ -308,10 +309,16 @@ export type ExportedHandlerQueueHandler<Env = unknown, Message = unknown> = (
|
|
|
308
309
|
env: Env,
|
|
309
310
|
ctx: ExecutionContext
|
|
310
311
|
) => void | Promise<void>;
|
|
312
|
+
export type ExportedHandlerTestHandler<Env = unknown> = (
|
|
313
|
+
controller: TestController,
|
|
314
|
+
env: Env,
|
|
315
|
+
ctx: ExecutionContext
|
|
316
|
+
) => void | Promise<void>;
|
|
311
317
|
export interface ExportedHandler<Env = unknown, QueueMessage = unknown> {
|
|
312
318
|
fetch?: ExportedHandlerFetchHandler<Env>;
|
|
313
319
|
trace?: ExportedHandlerTraceHandler<Env>;
|
|
314
320
|
scheduled?: ExportedHandlerScheduledHandler<Env>;
|
|
321
|
+
test?: ExportedHandlerTestHandler<Env>;
|
|
315
322
|
queue?: ExportedHandlerQueueHandler<Env, QueueMessage>;
|
|
316
323
|
}
|
|
317
324
|
export interface StructuredSerializeOptions {
|
|
@@ -1514,13 +1521,13 @@ export declare class CompressionStream extends TransformStream<
|
|
|
1514
1521
|
ArrayBuffer | ArrayBufferView,
|
|
1515
1522
|
Uint8Array
|
|
1516
1523
|
> {
|
|
1517
|
-
constructor(format: "gzip" | "deflate");
|
|
1524
|
+
constructor(format: "gzip" | "deflate" | "deflate-raw");
|
|
1518
1525
|
}
|
|
1519
1526
|
export declare class DecompressionStream extends TransformStream<
|
|
1520
1527
|
ArrayBuffer | ArrayBufferView,
|
|
1521
1528
|
Uint8Array
|
|
1522
1529
|
> {
|
|
1523
|
-
constructor(format: "gzip" | "deflate");
|
|
1530
|
+
constructor(format: "gzip" | "deflate" | "deflate-raw");
|
|
1524
1531
|
}
|
|
1525
1532
|
export declare class TextEncoderStream extends TransformStream<
|
|
1526
1533
|
string,
|
|
@@ -1658,6 +1665,7 @@ export declare class URLSearchParams {
|
|
|
1658
1665
|
constructor(
|
|
1659
1666
|
init?: Iterable<Iterable<string>> | Record<string, string> | string
|
|
1660
1667
|
);
|
|
1668
|
+
get size(): number;
|
|
1661
1669
|
append(name: string, value: string): void;
|
|
1662
1670
|
delete(name: string): void;
|
|
1663
1671
|
get(name: string): string | null;
|
|
@@ -2142,6 +2150,10 @@ export interface IncomingRequestCfPropertiesBotManagementBase {
|
|
|
2142
2150
|
* A boolean value that's true if the request matches [file extensions](https://developers.cloudflare.com/bots/reference/static-resources/) for many types of static resources.
|
|
2143
2151
|
*/
|
|
2144
2152
|
staticResource: boolean;
|
|
2153
|
+
/**
|
|
2154
|
+
* List of IDs that correlate to the Bot Management heuristic detections made on a request (you can have multiple heuristic detections on the same request).
|
|
2155
|
+
*/
|
|
2156
|
+
detectionIds: number[];
|
|
2145
2157
|
}
|
|
2146
2158
|
export interface IncomingRequestCfPropertiesBotManagement {
|
|
2147
2159
|
/**
|
|
@@ -2724,7 +2736,7 @@ export declare abstract class D1PreparedStatement {
|
|
|
2724
2736
|
/**
|
|
2725
2737
|
* A email message that is sent to a consumer Worker.
|
|
2726
2738
|
*/
|
|
2727
|
-
export interface EmailMessage
|
|
2739
|
+
export interface EmailMessage {
|
|
2728
2740
|
/**
|
|
2729
2741
|
* Envelope From attribute of the email message.
|
|
2730
2742
|
*/
|
package/2022-11-30/index.d.ts
CHANGED
|
@@ -286,6 +286,7 @@ declare const crypto: Crypto;
|
|
|
286
286
|
declare const caches: CacheStorage;
|
|
287
287
|
declare const scheduler: Scheduler;
|
|
288
288
|
declare const navigator: Navigator;
|
|
289
|
+
declare interface TestController {}
|
|
289
290
|
declare interface ExecutionContext {
|
|
290
291
|
waitUntil(promise: Promise<any>): void;
|
|
291
292
|
passThroughOnException(): void;
|
|
@@ -310,10 +311,16 @@ declare type ExportedHandlerQueueHandler<Env = unknown, Message = unknown> = (
|
|
|
310
311
|
env: Env,
|
|
311
312
|
ctx: ExecutionContext
|
|
312
313
|
) => void | Promise<void>;
|
|
314
|
+
declare type ExportedHandlerTestHandler<Env = unknown> = (
|
|
315
|
+
controller: TestController,
|
|
316
|
+
env: Env,
|
|
317
|
+
ctx: ExecutionContext
|
|
318
|
+
) => void | Promise<void>;
|
|
313
319
|
declare interface ExportedHandler<Env = unknown, QueueMessage = unknown> {
|
|
314
320
|
fetch?: ExportedHandlerFetchHandler<Env>;
|
|
315
321
|
trace?: ExportedHandlerTraceHandler<Env>;
|
|
316
322
|
scheduled?: ExportedHandlerScheduledHandler<Env>;
|
|
323
|
+
test?: ExportedHandlerTestHandler<Env>;
|
|
317
324
|
queue?: ExportedHandlerQueueHandler<Env, QueueMessage>;
|
|
318
325
|
}
|
|
319
326
|
declare interface StructuredSerializeOptions {
|
|
@@ -1515,13 +1522,13 @@ declare class CompressionStream extends TransformStream<
|
|
|
1515
1522
|
ArrayBuffer | ArrayBufferView,
|
|
1516
1523
|
Uint8Array
|
|
1517
1524
|
> {
|
|
1518
|
-
constructor(format: "gzip" | "deflate");
|
|
1525
|
+
constructor(format: "gzip" | "deflate" | "deflate-raw");
|
|
1519
1526
|
}
|
|
1520
1527
|
declare class DecompressionStream extends TransformStream<
|
|
1521
1528
|
ArrayBuffer | ArrayBufferView,
|
|
1522
1529
|
Uint8Array
|
|
1523
1530
|
> {
|
|
1524
|
-
constructor(format: "gzip" | "deflate");
|
|
1531
|
+
constructor(format: "gzip" | "deflate" | "deflate-raw");
|
|
1525
1532
|
}
|
|
1526
1533
|
declare class TextEncoderStream extends TransformStream<string, Uint8Array> {
|
|
1527
1534
|
constructor();
|
|
@@ -1656,6 +1663,7 @@ declare class URLSearchParams {
|
|
|
1656
1663
|
constructor(
|
|
1657
1664
|
init?: Iterable<Iterable<string>> | Record<string, string> | string
|
|
1658
1665
|
);
|
|
1666
|
+
get size(): number;
|
|
1659
1667
|
append(name: string, value: string): void;
|
|
1660
1668
|
delete(name: string): void;
|
|
1661
1669
|
get(name: string): string | null;
|
|
@@ -2140,6 +2148,10 @@ declare interface IncomingRequestCfPropertiesBotManagementBase {
|
|
|
2140
2148
|
* A boolean value that's true if the request matches [file extensions](https://developers.cloudflare.com/bots/reference/static-resources/) for many types of static resources.
|
|
2141
2149
|
*/
|
|
2142
2150
|
staticResource: boolean;
|
|
2151
|
+
/**
|
|
2152
|
+
* List of IDs that correlate to the Bot Management heuristic detections made on a request (you can have multiple heuristic detections on the same request).
|
|
2153
|
+
*/
|
|
2154
|
+
detectionIds: number[];
|
|
2143
2155
|
}
|
|
2144
2156
|
declare interface IncomingRequestCfPropertiesBotManagement {
|
|
2145
2157
|
/**
|
|
@@ -2722,7 +2734,7 @@ declare abstract class D1PreparedStatement {
|
|
|
2722
2734
|
/**
|
|
2723
2735
|
* A email message that is sent to a consumer Worker.
|
|
2724
2736
|
*/
|
|
2725
|
-
declare interface EmailMessage
|
|
2737
|
+
declare interface EmailMessage {
|
|
2726
2738
|
/**
|
|
2727
2739
|
* Envelope From attribute of the email message.
|
|
2728
2740
|
*/
|
package/2022-11-30/index.ts
CHANGED
|
@@ -288,6 +288,7 @@ export declare const crypto: Crypto;
|
|
|
288
288
|
export declare const caches: CacheStorage;
|
|
289
289
|
export declare const scheduler: Scheduler;
|
|
290
290
|
export declare const navigator: Navigator;
|
|
291
|
+
export interface TestController {}
|
|
291
292
|
export interface ExecutionContext {
|
|
292
293
|
waitUntil(promise: Promise<any>): void;
|
|
293
294
|
passThroughOnException(): void;
|
|
@@ -312,10 +313,16 @@ export type ExportedHandlerQueueHandler<Env = unknown, Message = unknown> = (
|
|
|
312
313
|
env: Env,
|
|
313
314
|
ctx: ExecutionContext
|
|
314
315
|
) => void | Promise<void>;
|
|
316
|
+
export type ExportedHandlerTestHandler<Env = unknown> = (
|
|
317
|
+
controller: TestController,
|
|
318
|
+
env: Env,
|
|
319
|
+
ctx: ExecutionContext
|
|
320
|
+
) => void | Promise<void>;
|
|
315
321
|
export interface ExportedHandler<Env = unknown, QueueMessage = unknown> {
|
|
316
322
|
fetch?: ExportedHandlerFetchHandler<Env>;
|
|
317
323
|
trace?: ExportedHandlerTraceHandler<Env>;
|
|
318
324
|
scheduled?: ExportedHandlerScheduledHandler<Env>;
|
|
325
|
+
test?: ExportedHandlerTestHandler<Env>;
|
|
319
326
|
queue?: ExportedHandlerQueueHandler<Env, QueueMessage>;
|
|
320
327
|
}
|
|
321
328
|
export interface StructuredSerializeOptions {
|
|
@@ -1517,13 +1524,13 @@ export declare class CompressionStream extends TransformStream<
|
|
|
1517
1524
|
ArrayBuffer | ArrayBufferView,
|
|
1518
1525
|
Uint8Array
|
|
1519
1526
|
> {
|
|
1520
|
-
constructor(format: "gzip" | "deflate");
|
|
1527
|
+
constructor(format: "gzip" | "deflate" | "deflate-raw");
|
|
1521
1528
|
}
|
|
1522
1529
|
export declare class DecompressionStream extends TransformStream<
|
|
1523
1530
|
ArrayBuffer | ArrayBufferView,
|
|
1524
1531
|
Uint8Array
|
|
1525
1532
|
> {
|
|
1526
|
-
constructor(format: "gzip" | "deflate");
|
|
1533
|
+
constructor(format: "gzip" | "deflate" | "deflate-raw");
|
|
1527
1534
|
}
|
|
1528
1535
|
export declare class TextEncoderStream extends TransformStream<
|
|
1529
1536
|
string,
|
|
@@ -1661,6 +1668,7 @@ export declare class URLSearchParams {
|
|
|
1661
1668
|
constructor(
|
|
1662
1669
|
init?: Iterable<Iterable<string>> | Record<string, string> | string
|
|
1663
1670
|
);
|
|
1671
|
+
get size(): number;
|
|
1664
1672
|
append(name: string, value: string): void;
|
|
1665
1673
|
delete(name: string): void;
|
|
1666
1674
|
get(name: string): string | null;
|
|
@@ -2145,6 +2153,10 @@ export interface IncomingRequestCfPropertiesBotManagementBase {
|
|
|
2145
2153
|
* A boolean value that's true if the request matches [file extensions](https://developers.cloudflare.com/bots/reference/static-resources/) for many types of static resources.
|
|
2146
2154
|
*/
|
|
2147
2155
|
staticResource: boolean;
|
|
2156
|
+
/**
|
|
2157
|
+
* List of IDs that correlate to the Bot Management heuristic detections made on a request (you can have multiple heuristic detections on the same request).
|
|
2158
|
+
*/
|
|
2159
|
+
detectionIds: number[];
|
|
2148
2160
|
}
|
|
2149
2161
|
export interface IncomingRequestCfPropertiesBotManagement {
|
|
2150
2162
|
/**
|
|
@@ -2727,7 +2739,7 @@ export declare abstract class D1PreparedStatement {
|
|
|
2727
2739
|
/**
|
|
2728
2740
|
* A email message that is sent to a consumer Worker.
|
|
2729
2741
|
*/
|
|
2730
|
-
export interface EmailMessage
|
|
2742
|
+
export interface EmailMessage {
|
|
2731
2743
|
/**
|
|
2732
2744
|
* Envelope From attribute of the email message.
|
|
2733
2745
|
*/
|
package/experimental/index.d.ts
CHANGED
|
@@ -286,6 +286,7 @@ declare const crypto: Crypto;
|
|
|
286
286
|
declare const caches: CacheStorage;
|
|
287
287
|
declare const scheduler: Scheduler;
|
|
288
288
|
declare const navigator: Navigator;
|
|
289
|
+
declare interface TestController {}
|
|
289
290
|
declare interface ExecutionContext {
|
|
290
291
|
waitUntil(promise: Promise<any>): void;
|
|
291
292
|
passThroughOnException(): void;
|
|
@@ -310,10 +311,16 @@ declare type ExportedHandlerQueueHandler<Env = unknown, Message = unknown> = (
|
|
|
310
311
|
env: Env,
|
|
311
312
|
ctx: ExecutionContext
|
|
312
313
|
) => void | Promise<void>;
|
|
314
|
+
declare type ExportedHandlerTestHandler<Env = unknown> = (
|
|
315
|
+
controller: TestController,
|
|
316
|
+
env: Env,
|
|
317
|
+
ctx: ExecutionContext
|
|
318
|
+
) => void | Promise<void>;
|
|
313
319
|
declare interface ExportedHandler<Env = unknown, QueueMessage = unknown> {
|
|
314
320
|
fetch?: ExportedHandlerFetchHandler<Env>;
|
|
315
321
|
trace?: ExportedHandlerTraceHandler<Env>;
|
|
316
322
|
scheduled?: ExportedHandlerScheduledHandler<Env>;
|
|
323
|
+
test?: ExportedHandlerTestHandler<Env>;
|
|
317
324
|
queue?: ExportedHandlerQueueHandler<Env, QueueMessage>;
|
|
318
325
|
}
|
|
319
326
|
declare interface StructuredSerializeOptions {
|
|
@@ -1516,13 +1523,13 @@ declare class CompressionStream extends TransformStream<
|
|
|
1516
1523
|
ArrayBuffer | ArrayBufferView,
|
|
1517
1524
|
Uint8Array
|
|
1518
1525
|
> {
|
|
1519
|
-
constructor(format: "gzip" | "deflate");
|
|
1526
|
+
constructor(format: "gzip" | "deflate" | "deflate-raw");
|
|
1520
1527
|
}
|
|
1521
1528
|
declare class DecompressionStream extends TransformStream<
|
|
1522
1529
|
ArrayBuffer | ArrayBufferView,
|
|
1523
1530
|
Uint8Array
|
|
1524
1531
|
> {
|
|
1525
|
-
constructor(format: "gzip" | "deflate");
|
|
1532
|
+
constructor(format: "gzip" | "deflate" | "deflate-raw");
|
|
1526
1533
|
}
|
|
1527
1534
|
declare class TextEncoderStream extends TransformStream<string, Uint8Array> {
|
|
1528
1535
|
constructor();
|
|
@@ -1657,6 +1664,7 @@ declare class URLSearchParams {
|
|
|
1657
1664
|
constructor(
|
|
1658
1665
|
init?: Iterable<Iterable<string>> | Record<string, string> | string
|
|
1659
1666
|
);
|
|
1667
|
+
get size(): number;
|
|
1660
1668
|
append(name: string, value: string): void;
|
|
1661
1669
|
delete(name: string): void;
|
|
1662
1670
|
get(name: string): string | null;
|
|
@@ -2141,6 +2149,10 @@ declare interface IncomingRequestCfPropertiesBotManagementBase {
|
|
|
2141
2149
|
* A boolean value that's true if the request matches [file extensions](https://developers.cloudflare.com/bots/reference/static-resources/) for many types of static resources.
|
|
2142
2150
|
*/
|
|
2143
2151
|
staticResource: boolean;
|
|
2152
|
+
/**
|
|
2153
|
+
* List of IDs that correlate to the Bot Management heuristic detections made on a request (you can have multiple heuristic detections on the same request).
|
|
2154
|
+
*/
|
|
2155
|
+
detectionIds: number[];
|
|
2144
2156
|
}
|
|
2145
2157
|
declare interface IncomingRequestCfPropertiesBotManagement {
|
|
2146
2158
|
/**
|
|
@@ -2723,7 +2735,7 @@ declare abstract class D1PreparedStatement {
|
|
|
2723
2735
|
/**
|
|
2724
2736
|
* A email message that is sent to a consumer Worker.
|
|
2725
2737
|
*/
|
|
2726
|
-
declare interface EmailMessage
|
|
2738
|
+
declare interface EmailMessage {
|
|
2727
2739
|
/**
|
|
2728
2740
|
* Envelope From attribute of the email message.
|
|
2729
2741
|
*/
|
package/experimental/index.ts
CHANGED
|
@@ -288,6 +288,7 @@ export declare const crypto: Crypto;
|
|
|
288
288
|
export declare const caches: CacheStorage;
|
|
289
289
|
export declare const scheduler: Scheduler;
|
|
290
290
|
export declare const navigator: Navigator;
|
|
291
|
+
export interface TestController {}
|
|
291
292
|
export interface ExecutionContext {
|
|
292
293
|
waitUntil(promise: Promise<any>): void;
|
|
293
294
|
passThroughOnException(): void;
|
|
@@ -312,10 +313,16 @@ export type ExportedHandlerQueueHandler<Env = unknown, Message = unknown> = (
|
|
|
312
313
|
env: Env,
|
|
313
314
|
ctx: ExecutionContext
|
|
314
315
|
) => void | Promise<void>;
|
|
316
|
+
export type ExportedHandlerTestHandler<Env = unknown> = (
|
|
317
|
+
controller: TestController,
|
|
318
|
+
env: Env,
|
|
319
|
+
ctx: ExecutionContext
|
|
320
|
+
) => void | Promise<void>;
|
|
315
321
|
export interface ExportedHandler<Env = unknown, QueueMessage = unknown> {
|
|
316
322
|
fetch?: ExportedHandlerFetchHandler<Env>;
|
|
317
323
|
trace?: ExportedHandlerTraceHandler<Env>;
|
|
318
324
|
scheduled?: ExportedHandlerScheduledHandler<Env>;
|
|
325
|
+
test?: ExportedHandlerTestHandler<Env>;
|
|
319
326
|
queue?: ExportedHandlerQueueHandler<Env, QueueMessage>;
|
|
320
327
|
}
|
|
321
328
|
export interface StructuredSerializeOptions {
|
|
@@ -1518,13 +1525,13 @@ export declare class CompressionStream extends TransformStream<
|
|
|
1518
1525
|
ArrayBuffer | ArrayBufferView,
|
|
1519
1526
|
Uint8Array
|
|
1520
1527
|
> {
|
|
1521
|
-
constructor(format: "gzip" | "deflate");
|
|
1528
|
+
constructor(format: "gzip" | "deflate" | "deflate-raw");
|
|
1522
1529
|
}
|
|
1523
1530
|
export declare class DecompressionStream extends TransformStream<
|
|
1524
1531
|
ArrayBuffer | ArrayBufferView,
|
|
1525
1532
|
Uint8Array
|
|
1526
1533
|
> {
|
|
1527
|
-
constructor(format: "gzip" | "deflate");
|
|
1534
|
+
constructor(format: "gzip" | "deflate" | "deflate-raw");
|
|
1528
1535
|
}
|
|
1529
1536
|
export declare class TextEncoderStream extends TransformStream<
|
|
1530
1537
|
string,
|
|
@@ -1662,6 +1669,7 @@ export declare class URLSearchParams {
|
|
|
1662
1669
|
constructor(
|
|
1663
1670
|
init?: Iterable<Iterable<string>> | Record<string, string> | string
|
|
1664
1671
|
);
|
|
1672
|
+
get size(): number;
|
|
1665
1673
|
append(name: string, value: string): void;
|
|
1666
1674
|
delete(name: string): void;
|
|
1667
1675
|
get(name: string): string | null;
|
|
@@ -2146,6 +2154,10 @@ export interface IncomingRequestCfPropertiesBotManagementBase {
|
|
|
2146
2154
|
* A boolean value that's true if the request matches [file extensions](https://developers.cloudflare.com/bots/reference/static-resources/) for many types of static resources.
|
|
2147
2155
|
*/
|
|
2148
2156
|
staticResource: boolean;
|
|
2157
|
+
/**
|
|
2158
|
+
* List of IDs that correlate to the Bot Management heuristic detections made on a request (you can have multiple heuristic detections on the same request).
|
|
2159
|
+
*/
|
|
2160
|
+
detectionIds: number[];
|
|
2149
2161
|
}
|
|
2150
2162
|
export interface IncomingRequestCfPropertiesBotManagement {
|
|
2151
2163
|
/**
|
|
@@ -2728,7 +2740,7 @@ export declare abstract class D1PreparedStatement {
|
|
|
2728
2740
|
/**
|
|
2729
2741
|
* A email message that is sent to a consumer Worker.
|
|
2730
2742
|
*/
|
|
2731
|
-
export interface EmailMessage
|
|
2743
|
+
export interface EmailMessage {
|
|
2732
2744
|
/**
|
|
2733
2745
|
* Envelope From attribute of the email message.
|
|
2734
2746
|
*/
|
package/index.d.ts
CHANGED
|
@@ -279,6 +279,7 @@ declare const self: ServiceWorkerGlobalScope;
|
|
|
279
279
|
declare const crypto: Crypto;
|
|
280
280
|
declare const caches: CacheStorage;
|
|
281
281
|
declare const scheduler: Scheduler;
|
|
282
|
+
declare interface TestController {}
|
|
282
283
|
declare interface ExecutionContext {
|
|
283
284
|
waitUntil(promise: Promise<any>): void;
|
|
284
285
|
passThroughOnException(): void;
|
|
@@ -303,10 +304,16 @@ declare type ExportedHandlerQueueHandler<Env = unknown, Message = unknown> = (
|
|
|
303
304
|
env: Env,
|
|
304
305
|
ctx: ExecutionContext
|
|
305
306
|
) => void | Promise<void>;
|
|
307
|
+
declare type ExportedHandlerTestHandler<Env = unknown> = (
|
|
308
|
+
controller: TestController,
|
|
309
|
+
env: Env,
|
|
310
|
+
ctx: ExecutionContext
|
|
311
|
+
) => void | Promise<void>;
|
|
306
312
|
declare interface ExportedHandler<Env = unknown, QueueMessage = unknown> {
|
|
307
313
|
fetch?: ExportedHandlerFetchHandler<Env>;
|
|
308
314
|
trace?: ExportedHandlerTraceHandler<Env>;
|
|
309
315
|
scheduled?: ExportedHandlerScheduledHandler<Env>;
|
|
316
|
+
test?: ExportedHandlerTestHandler<Env>;
|
|
310
317
|
queue?: ExportedHandlerQueueHandler<Env, QueueMessage>;
|
|
311
318
|
}
|
|
312
319
|
declare interface StructuredSerializeOptions {
|
|
@@ -1525,13 +1532,13 @@ declare class CompressionStream extends TransformStream<
|
|
|
1525
1532
|
ArrayBuffer | ArrayBufferView,
|
|
1526
1533
|
Uint8Array
|
|
1527
1534
|
> {
|
|
1528
|
-
constructor(format: "gzip" | "deflate");
|
|
1535
|
+
constructor(format: "gzip" | "deflate" | "deflate-raw");
|
|
1529
1536
|
}
|
|
1530
1537
|
declare class DecompressionStream extends TransformStream<
|
|
1531
1538
|
ArrayBuffer | ArrayBufferView,
|
|
1532
1539
|
Uint8Array
|
|
1533
1540
|
> {
|
|
1534
|
-
constructor(format: "gzip" | "deflate");
|
|
1541
|
+
constructor(format: "gzip" | "deflate" | "deflate-raw");
|
|
1535
1542
|
}
|
|
1536
1543
|
declare class TextEncoderStream extends TransformStream<string, Uint8Array> {
|
|
1537
1544
|
constructor();
|
|
@@ -1660,6 +1667,7 @@ declare class URLSearchParams {
|
|
|
1660
1667
|
| Record<string, string>
|
|
1661
1668
|
| [key: string, value: string][]
|
|
1662
1669
|
);
|
|
1670
|
+
get size(): number;
|
|
1663
1671
|
append(name: string, value: string): void;
|
|
1664
1672
|
delete(name: string): void;
|
|
1665
1673
|
get(name: string): string | null;
|
|
@@ -2148,6 +2156,10 @@ declare interface IncomingRequestCfPropertiesBotManagementBase {
|
|
|
2148
2156
|
* A boolean value that's true if the request matches [file extensions](https://developers.cloudflare.com/bots/reference/static-resources/) for many types of static resources.
|
|
2149
2157
|
*/
|
|
2150
2158
|
staticResource: boolean;
|
|
2159
|
+
/**
|
|
2160
|
+
* List of IDs that correlate to the Bot Management heuristic detections made on a request (you can have multiple heuristic detections on the same request).
|
|
2161
|
+
*/
|
|
2162
|
+
detectionIds: number[];
|
|
2151
2163
|
}
|
|
2152
2164
|
declare interface IncomingRequestCfPropertiesBotManagement {
|
|
2153
2165
|
/**
|
|
@@ -2730,7 +2742,7 @@ declare abstract class D1PreparedStatement {
|
|
|
2730
2742
|
/**
|
|
2731
2743
|
* A email message that is sent to a consumer Worker.
|
|
2732
2744
|
*/
|
|
2733
|
-
declare interface EmailMessage
|
|
2745
|
+
declare interface EmailMessage {
|
|
2734
2746
|
/**
|
|
2735
2747
|
* Envelope From attribute of the email message.
|
|
2736
2748
|
*/
|
package/index.ts
CHANGED
|
@@ -281,6 +281,7 @@ export declare const self: ServiceWorkerGlobalScope;
|
|
|
281
281
|
export declare const crypto: Crypto;
|
|
282
282
|
export declare const caches: CacheStorage;
|
|
283
283
|
export declare const scheduler: Scheduler;
|
|
284
|
+
export interface TestController {}
|
|
284
285
|
export interface ExecutionContext {
|
|
285
286
|
waitUntil(promise: Promise<any>): void;
|
|
286
287
|
passThroughOnException(): void;
|
|
@@ -305,10 +306,16 @@ export type ExportedHandlerQueueHandler<Env = unknown, Message = unknown> = (
|
|
|
305
306
|
env: Env,
|
|
306
307
|
ctx: ExecutionContext
|
|
307
308
|
) => void | Promise<void>;
|
|
309
|
+
export type ExportedHandlerTestHandler<Env = unknown> = (
|
|
310
|
+
controller: TestController,
|
|
311
|
+
env: Env,
|
|
312
|
+
ctx: ExecutionContext
|
|
313
|
+
) => void | Promise<void>;
|
|
308
314
|
export interface ExportedHandler<Env = unknown, QueueMessage = unknown> {
|
|
309
315
|
fetch?: ExportedHandlerFetchHandler<Env>;
|
|
310
316
|
trace?: ExportedHandlerTraceHandler<Env>;
|
|
311
317
|
scheduled?: ExportedHandlerScheduledHandler<Env>;
|
|
318
|
+
test?: ExportedHandlerTestHandler<Env>;
|
|
312
319
|
queue?: ExportedHandlerQueueHandler<Env, QueueMessage>;
|
|
313
320
|
}
|
|
314
321
|
export interface StructuredSerializeOptions {
|
|
@@ -1527,13 +1534,13 @@ export declare class CompressionStream extends TransformStream<
|
|
|
1527
1534
|
ArrayBuffer | ArrayBufferView,
|
|
1528
1535
|
Uint8Array
|
|
1529
1536
|
> {
|
|
1530
|
-
constructor(format: "gzip" | "deflate");
|
|
1537
|
+
constructor(format: "gzip" | "deflate" | "deflate-raw");
|
|
1531
1538
|
}
|
|
1532
1539
|
export declare class DecompressionStream extends TransformStream<
|
|
1533
1540
|
ArrayBuffer | ArrayBufferView,
|
|
1534
1541
|
Uint8Array
|
|
1535
1542
|
> {
|
|
1536
|
-
constructor(format: "gzip" | "deflate");
|
|
1543
|
+
constructor(format: "gzip" | "deflate" | "deflate-raw");
|
|
1537
1544
|
}
|
|
1538
1545
|
export declare class TextEncoderStream extends TransformStream<
|
|
1539
1546
|
string,
|
|
@@ -1665,6 +1672,7 @@ export declare class URLSearchParams {
|
|
|
1665
1672
|
| Record<string, string>
|
|
1666
1673
|
| [key: string, value: string][]
|
|
1667
1674
|
);
|
|
1675
|
+
get size(): number;
|
|
1668
1676
|
append(name: string, value: string): void;
|
|
1669
1677
|
delete(name: string): void;
|
|
1670
1678
|
get(name: string): string | null;
|
|
@@ -2153,6 +2161,10 @@ export interface IncomingRequestCfPropertiesBotManagementBase {
|
|
|
2153
2161
|
* A boolean value that's true if the request matches [file extensions](https://developers.cloudflare.com/bots/reference/static-resources/) for many types of static resources.
|
|
2154
2162
|
*/
|
|
2155
2163
|
staticResource: boolean;
|
|
2164
|
+
/**
|
|
2165
|
+
* List of IDs that correlate to the Bot Management heuristic detections made on a request (you can have multiple heuristic detections on the same request).
|
|
2166
|
+
*/
|
|
2167
|
+
detectionIds: number[];
|
|
2156
2168
|
}
|
|
2157
2169
|
export interface IncomingRequestCfPropertiesBotManagement {
|
|
2158
2170
|
/**
|
|
@@ -2735,7 +2747,7 @@ export declare abstract class D1PreparedStatement {
|
|
|
2735
2747
|
/**
|
|
2736
2748
|
* A email message that is sent to a consumer Worker.
|
|
2737
2749
|
*/
|
|
2738
|
-
export interface EmailMessage
|
|
2750
|
+
export interface EmailMessage {
|
|
2739
2751
|
/**
|
|
2740
2752
|
* Envelope From attribute of the email message.
|
|
2741
2753
|
*/
|
package/oldest/index.d.ts
CHANGED
|
@@ -279,6 +279,7 @@ declare const self: ServiceWorkerGlobalScope;
|
|
|
279
279
|
declare const crypto: Crypto;
|
|
280
280
|
declare const caches: CacheStorage;
|
|
281
281
|
declare const scheduler: Scheduler;
|
|
282
|
+
declare interface TestController {}
|
|
282
283
|
declare interface ExecutionContext {
|
|
283
284
|
waitUntil(promise: Promise<any>): void;
|
|
284
285
|
passThroughOnException(): void;
|
|
@@ -303,10 +304,16 @@ declare type ExportedHandlerQueueHandler<Env = unknown, Message = unknown> = (
|
|
|
303
304
|
env: Env,
|
|
304
305
|
ctx: ExecutionContext
|
|
305
306
|
) => void | Promise<void>;
|
|
307
|
+
declare type ExportedHandlerTestHandler<Env = unknown> = (
|
|
308
|
+
controller: TestController,
|
|
309
|
+
env: Env,
|
|
310
|
+
ctx: ExecutionContext
|
|
311
|
+
) => void | Promise<void>;
|
|
306
312
|
declare interface ExportedHandler<Env = unknown, QueueMessage = unknown> {
|
|
307
313
|
fetch?: ExportedHandlerFetchHandler<Env>;
|
|
308
314
|
trace?: ExportedHandlerTraceHandler<Env>;
|
|
309
315
|
scheduled?: ExportedHandlerScheduledHandler<Env>;
|
|
316
|
+
test?: ExportedHandlerTestHandler<Env>;
|
|
310
317
|
queue?: ExportedHandlerQueueHandler<Env, QueueMessage>;
|
|
311
318
|
}
|
|
312
319
|
declare interface StructuredSerializeOptions {
|
|
@@ -1525,13 +1532,13 @@ declare class CompressionStream extends TransformStream<
|
|
|
1525
1532
|
ArrayBuffer | ArrayBufferView,
|
|
1526
1533
|
Uint8Array
|
|
1527
1534
|
> {
|
|
1528
|
-
constructor(format: "gzip" | "deflate");
|
|
1535
|
+
constructor(format: "gzip" | "deflate" | "deflate-raw");
|
|
1529
1536
|
}
|
|
1530
1537
|
declare class DecompressionStream extends TransformStream<
|
|
1531
1538
|
ArrayBuffer | ArrayBufferView,
|
|
1532
1539
|
Uint8Array
|
|
1533
1540
|
> {
|
|
1534
|
-
constructor(format: "gzip" | "deflate");
|
|
1541
|
+
constructor(format: "gzip" | "deflate" | "deflate-raw");
|
|
1535
1542
|
}
|
|
1536
1543
|
declare class TextEncoderStream extends TransformStream<string, Uint8Array> {
|
|
1537
1544
|
constructor();
|
|
@@ -1660,6 +1667,7 @@ declare class URLSearchParams {
|
|
|
1660
1667
|
| Record<string, string>
|
|
1661
1668
|
| [key: string, value: string][]
|
|
1662
1669
|
);
|
|
1670
|
+
get size(): number;
|
|
1663
1671
|
append(name: string, value: string): void;
|
|
1664
1672
|
delete(name: string): void;
|
|
1665
1673
|
get(name: string): string | null;
|
|
@@ -2148,6 +2156,10 @@ declare interface IncomingRequestCfPropertiesBotManagementBase {
|
|
|
2148
2156
|
* A boolean value that's true if the request matches [file extensions](https://developers.cloudflare.com/bots/reference/static-resources/) for many types of static resources.
|
|
2149
2157
|
*/
|
|
2150
2158
|
staticResource: boolean;
|
|
2159
|
+
/**
|
|
2160
|
+
* List of IDs that correlate to the Bot Management heuristic detections made on a request (you can have multiple heuristic detections on the same request).
|
|
2161
|
+
*/
|
|
2162
|
+
detectionIds: number[];
|
|
2151
2163
|
}
|
|
2152
2164
|
declare interface IncomingRequestCfPropertiesBotManagement {
|
|
2153
2165
|
/**
|
|
@@ -2730,7 +2742,7 @@ declare abstract class D1PreparedStatement {
|
|
|
2730
2742
|
/**
|
|
2731
2743
|
* A email message that is sent to a consumer Worker.
|
|
2732
2744
|
*/
|
|
2733
|
-
declare interface EmailMessage
|
|
2745
|
+
declare interface EmailMessage {
|
|
2734
2746
|
/**
|
|
2735
2747
|
* Envelope From attribute of the email message.
|
|
2736
2748
|
*/
|
package/oldest/index.ts
CHANGED
|
@@ -281,6 +281,7 @@ export declare const self: ServiceWorkerGlobalScope;
|
|
|
281
281
|
export declare const crypto: Crypto;
|
|
282
282
|
export declare const caches: CacheStorage;
|
|
283
283
|
export declare const scheduler: Scheduler;
|
|
284
|
+
export interface TestController {}
|
|
284
285
|
export interface ExecutionContext {
|
|
285
286
|
waitUntil(promise: Promise<any>): void;
|
|
286
287
|
passThroughOnException(): void;
|
|
@@ -305,10 +306,16 @@ export type ExportedHandlerQueueHandler<Env = unknown, Message = unknown> = (
|
|
|
305
306
|
env: Env,
|
|
306
307
|
ctx: ExecutionContext
|
|
307
308
|
) => void | Promise<void>;
|
|
309
|
+
export type ExportedHandlerTestHandler<Env = unknown> = (
|
|
310
|
+
controller: TestController,
|
|
311
|
+
env: Env,
|
|
312
|
+
ctx: ExecutionContext
|
|
313
|
+
) => void | Promise<void>;
|
|
308
314
|
export interface ExportedHandler<Env = unknown, QueueMessage = unknown> {
|
|
309
315
|
fetch?: ExportedHandlerFetchHandler<Env>;
|
|
310
316
|
trace?: ExportedHandlerTraceHandler<Env>;
|
|
311
317
|
scheduled?: ExportedHandlerScheduledHandler<Env>;
|
|
318
|
+
test?: ExportedHandlerTestHandler<Env>;
|
|
312
319
|
queue?: ExportedHandlerQueueHandler<Env, QueueMessage>;
|
|
313
320
|
}
|
|
314
321
|
export interface StructuredSerializeOptions {
|
|
@@ -1527,13 +1534,13 @@ export declare class CompressionStream extends TransformStream<
|
|
|
1527
1534
|
ArrayBuffer | ArrayBufferView,
|
|
1528
1535
|
Uint8Array
|
|
1529
1536
|
> {
|
|
1530
|
-
constructor(format: "gzip" | "deflate");
|
|
1537
|
+
constructor(format: "gzip" | "deflate" | "deflate-raw");
|
|
1531
1538
|
}
|
|
1532
1539
|
export declare class DecompressionStream extends TransformStream<
|
|
1533
1540
|
ArrayBuffer | ArrayBufferView,
|
|
1534
1541
|
Uint8Array
|
|
1535
1542
|
> {
|
|
1536
|
-
constructor(format: "gzip" | "deflate");
|
|
1543
|
+
constructor(format: "gzip" | "deflate" | "deflate-raw");
|
|
1537
1544
|
}
|
|
1538
1545
|
export declare class TextEncoderStream extends TransformStream<
|
|
1539
1546
|
string,
|
|
@@ -1665,6 +1672,7 @@ export declare class URLSearchParams {
|
|
|
1665
1672
|
| Record<string, string>
|
|
1666
1673
|
| [key: string, value: string][]
|
|
1667
1674
|
);
|
|
1675
|
+
get size(): number;
|
|
1668
1676
|
append(name: string, value: string): void;
|
|
1669
1677
|
delete(name: string): void;
|
|
1670
1678
|
get(name: string): string | null;
|
|
@@ -2153,6 +2161,10 @@ export interface IncomingRequestCfPropertiesBotManagementBase {
|
|
|
2153
2161
|
* A boolean value that's true if the request matches [file extensions](https://developers.cloudflare.com/bots/reference/static-resources/) for many types of static resources.
|
|
2154
2162
|
*/
|
|
2155
2163
|
staticResource: boolean;
|
|
2164
|
+
/**
|
|
2165
|
+
* List of IDs that correlate to the Bot Management heuristic detections made on a request (you can have multiple heuristic detections on the same request).
|
|
2166
|
+
*/
|
|
2167
|
+
detectionIds: number[];
|
|
2156
2168
|
}
|
|
2157
2169
|
export interface IncomingRequestCfPropertiesBotManagement {
|
|
2158
2170
|
/**
|
|
@@ -2735,7 +2747,7 @@ export declare abstract class D1PreparedStatement {
|
|
|
2735
2747
|
/**
|
|
2736
2748
|
* A email message that is sent to a consumer Worker.
|
|
2737
2749
|
*/
|
|
2738
|
-
export interface EmailMessage
|
|
2750
|
+
export interface EmailMessage {
|
|
2739
2751
|
/**
|
|
2740
2752
|
* Envelope From attribute of the email message.
|
|
2741
2753
|
*/
|
package/package.json
CHANGED