@cloudflare/workers-types 4.20230628.0 → 4.20230710.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 +29 -0
- package/2021-11-03/index.ts +26 -0
- package/2022-01-31/index.d.ts +29 -0
- package/2022-01-31/index.ts +26 -0
- package/2022-03-21/index.d.ts +29 -0
- package/2022-03-21/index.ts +26 -0
- package/2022-08-04/index.d.ts +29 -0
- package/2022-08-04/index.ts +26 -0
- package/2022-10-31/index.d.ts +29 -0
- package/2022-10-31/index.ts +26 -0
- package/2022-11-30/index.d.ts +29 -0
- package/2022-11-30/index.ts +26 -0
- package/experimental/index.d.ts +29 -0
- package/experimental/index.ts +26 -0
- package/index.d.ts +29 -0
- package/index.ts +26 -0
- package/oldest/index.d.ts +29 -0
- package/oldest/index.ts +26 -0
- package/package.json +1 -1
package/2021-11-03/index.d.ts
CHANGED
|
@@ -352,6 +352,17 @@ declare interface Performance {
|
|
|
352
352
|
declare interface DurableObject {
|
|
353
353
|
fetch(request: Request): Response | Promise<Response>;
|
|
354
354
|
alarm?(): void | Promise<void>;
|
|
355
|
+
webSocketMessage(
|
|
356
|
+
ws: WebSocket,
|
|
357
|
+
message: string | ArrayBuffer
|
|
358
|
+
): void | Promise<void>;
|
|
359
|
+
webSocketClose(
|
|
360
|
+
ws: WebSocket,
|
|
361
|
+
code: number,
|
|
362
|
+
reason: string,
|
|
363
|
+
wasClean: boolean
|
|
364
|
+
): void | Promise<void>;
|
|
365
|
+
webSocketError(ws: WebSocket, error: unknown): void | Promise<void>;
|
|
355
366
|
}
|
|
356
367
|
declare interface DurableObjectStub extends Fetcher {
|
|
357
368
|
readonly id: DurableObjectId;
|
|
@@ -2879,6 +2890,9 @@ declare type ContinentCode = "AF" | "AN" | "AS" | "EU" | "NA" | "OC" | "SA";
|
|
|
2879
2890
|
declare type CfProperties<HostMetadata = unknown> =
|
|
2880
2891
|
| IncomingRequestCfProperties<HostMetadata>
|
|
2881
2892
|
| RequestInitCfProperties;
|
|
2893
|
+
// Copyright (c) 2022-2023 Cloudflare, Inc.
|
|
2894
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2895
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2882
2896
|
declare interface D1Result<T = unknown> {
|
|
2883
2897
|
results: T[];
|
|
2884
2898
|
success: true;
|
|
@@ -2903,6 +2917,9 @@ declare abstract class D1PreparedStatement {
|
|
|
2903
2917
|
all<T = unknown>(): Promise<D1Result<T[]>>;
|
|
2904
2918
|
raw<T = unknown>(): Promise<T[]>;
|
|
2905
2919
|
}
|
|
2920
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
2921
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2922
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2906
2923
|
/**
|
|
2907
2924
|
* An email message that can be sent from a Worker.
|
|
2908
2925
|
*/
|
|
@@ -2967,6 +2984,9 @@ declare module "cloudflare:email" {
|
|
|
2967
2984
|
};
|
|
2968
2985
|
export { _EmailMessage as EmailMessage };
|
|
2969
2986
|
}
|
|
2987
|
+
// Copyright (c) 2022-2023 Cloudflare, Inc.
|
|
2988
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2989
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2970
2990
|
declare type Params<P extends string = any> = Record<P, string | string[]>;
|
|
2971
2991
|
declare type EventContext<Env, P extends string, Data> = {
|
|
2972
2992
|
request: Request;
|
|
@@ -3013,6 +3033,9 @@ declare type PagesPluginFunction<
|
|
|
3013
3033
|
declare module "assets:*" {
|
|
3014
3034
|
export const onRequest: PagesFunction;
|
|
3015
3035
|
}
|
|
3036
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3037
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3038
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3016
3039
|
// https://developers.cloudflare.com/pub-sub/
|
|
3017
3040
|
// PubSubMessage represents an incoming PubSub message.
|
|
3018
3041
|
// The message includes metadata about the broker, the client, and the payload
|
|
@@ -3047,6 +3070,9 @@ declare interface JsonWebKeyWithKid extends JsonWebKey {
|
|
|
3047
3070
|
// Key Identifier of the JWK
|
|
3048
3071
|
readonly kid: string;
|
|
3049
3072
|
}
|
|
3073
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3074
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3075
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3050
3076
|
declare module "cloudflare:sockets" {
|
|
3051
3077
|
function _connect(
|
|
3052
3078
|
address: string | SocketAddress,
|
|
@@ -3054,6 +3080,9 @@ declare module "cloudflare:sockets" {
|
|
|
3054
3080
|
): Socket;
|
|
3055
3081
|
export { _connect as connect };
|
|
3056
3082
|
}
|
|
3083
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3084
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3085
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3057
3086
|
// https://developers.cloudflare.com/cloudflare-for-platforms/workers-for-platforms/
|
|
3058
3087
|
declare interface DynamicDispatchLimits {
|
|
3059
3088
|
/**
|
package/2021-11-03/index.ts
CHANGED
|
@@ -354,6 +354,17 @@ export interface Performance {
|
|
|
354
354
|
export interface DurableObject {
|
|
355
355
|
fetch(request: Request): Response | Promise<Response>;
|
|
356
356
|
alarm?(): void | Promise<void>;
|
|
357
|
+
webSocketMessage(
|
|
358
|
+
ws: WebSocket,
|
|
359
|
+
message: string | ArrayBuffer
|
|
360
|
+
): void | Promise<void>;
|
|
361
|
+
webSocketClose(
|
|
362
|
+
ws: WebSocket,
|
|
363
|
+
code: number,
|
|
364
|
+
reason: string,
|
|
365
|
+
wasClean: boolean
|
|
366
|
+
): void | Promise<void>;
|
|
367
|
+
webSocketError(ws: WebSocket, error: unknown): void | Promise<void>;
|
|
357
368
|
}
|
|
358
369
|
export interface DurableObjectStub extends Fetcher {
|
|
359
370
|
readonly id: DurableObjectId;
|
|
@@ -2884,6 +2895,9 @@ export type ContinentCode = "AF" | "AN" | "AS" | "EU" | "NA" | "OC" | "SA";
|
|
|
2884
2895
|
export type CfProperties<HostMetadata = unknown> =
|
|
2885
2896
|
| IncomingRequestCfProperties<HostMetadata>
|
|
2886
2897
|
| RequestInitCfProperties;
|
|
2898
|
+
// Copyright (c) 2022-2023 Cloudflare, Inc.
|
|
2899
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2900
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2887
2901
|
export interface D1Result<T = unknown> {
|
|
2888
2902
|
results: T[];
|
|
2889
2903
|
success: true;
|
|
@@ -2908,6 +2922,9 @@ export declare abstract class D1PreparedStatement {
|
|
|
2908
2922
|
all<T = unknown>(): Promise<D1Result<T[]>>;
|
|
2909
2923
|
raw<T = unknown>(): Promise<T[]>;
|
|
2910
2924
|
}
|
|
2925
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
2926
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2927
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2911
2928
|
/**
|
|
2912
2929
|
* An email message that can be sent from a Worker.
|
|
2913
2930
|
*/
|
|
@@ -2965,6 +2982,9 @@ export type EmailExportedHandler<Env = unknown> = (
|
|
|
2965
2982
|
env: Env,
|
|
2966
2983
|
ctx: ExecutionContext
|
|
2967
2984
|
) => void | Promise<void>;
|
|
2985
|
+
// Copyright (c) 2022-2023 Cloudflare, Inc.
|
|
2986
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2987
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2968
2988
|
export type Params<P extends string = any> = Record<P, string | string[]>;
|
|
2969
2989
|
export type EventContext<Env, P extends string, Data> = {
|
|
2970
2990
|
request: Request;
|
|
@@ -3008,6 +3028,9 @@ export type PagesPluginFunction<
|
|
|
3008
3028
|
> = (
|
|
3009
3029
|
context: EventPluginContext<Env, Params, Data, PluginArgs>
|
|
3010
3030
|
) => Response | Promise<Response>;
|
|
3031
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3032
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3033
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3011
3034
|
// https://developers.cloudflare.com/pub-sub/
|
|
3012
3035
|
// PubSubMessage represents an incoming PubSub message.
|
|
3013
3036
|
// The message includes metadata about the broker, the client, and the payload
|
|
@@ -3042,6 +3065,9 @@ export interface JsonWebKeyWithKid extends JsonWebKey {
|
|
|
3042
3065
|
// Key Identifier of the JWK
|
|
3043
3066
|
readonly kid: string;
|
|
3044
3067
|
}
|
|
3068
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3069
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3070
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3045
3071
|
// https://developers.cloudflare.com/cloudflare-for-platforms/workers-for-platforms/
|
|
3046
3072
|
export interface DynamicDispatchLimits {
|
|
3047
3073
|
/**
|
package/2022-01-31/index.d.ts
CHANGED
|
@@ -352,6 +352,17 @@ declare interface Performance {
|
|
|
352
352
|
declare interface DurableObject {
|
|
353
353
|
fetch(request: Request): Response | Promise<Response>;
|
|
354
354
|
alarm?(): void | Promise<void>;
|
|
355
|
+
webSocketMessage(
|
|
356
|
+
ws: WebSocket,
|
|
357
|
+
message: string | ArrayBuffer
|
|
358
|
+
): void | Promise<void>;
|
|
359
|
+
webSocketClose(
|
|
360
|
+
ws: WebSocket,
|
|
361
|
+
code: number,
|
|
362
|
+
reason: string,
|
|
363
|
+
wasClean: boolean
|
|
364
|
+
): void | Promise<void>;
|
|
365
|
+
webSocketError(ws: WebSocket, error: unknown): void | Promise<void>;
|
|
355
366
|
}
|
|
356
367
|
declare interface DurableObjectStub extends Fetcher {
|
|
357
368
|
readonly id: DurableObjectId;
|
|
@@ -2865,6 +2876,9 @@ declare type ContinentCode = "AF" | "AN" | "AS" | "EU" | "NA" | "OC" | "SA";
|
|
|
2865
2876
|
declare type CfProperties<HostMetadata = unknown> =
|
|
2866
2877
|
| IncomingRequestCfProperties<HostMetadata>
|
|
2867
2878
|
| RequestInitCfProperties;
|
|
2879
|
+
// Copyright (c) 2022-2023 Cloudflare, Inc.
|
|
2880
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2881
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2868
2882
|
declare interface D1Result<T = unknown> {
|
|
2869
2883
|
results: T[];
|
|
2870
2884
|
success: true;
|
|
@@ -2889,6 +2903,9 @@ declare abstract class D1PreparedStatement {
|
|
|
2889
2903
|
all<T = unknown>(): Promise<D1Result<T[]>>;
|
|
2890
2904
|
raw<T = unknown>(): Promise<T[]>;
|
|
2891
2905
|
}
|
|
2906
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
2907
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2908
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2892
2909
|
/**
|
|
2893
2910
|
* An email message that can be sent from a Worker.
|
|
2894
2911
|
*/
|
|
@@ -2953,6 +2970,9 @@ declare module "cloudflare:email" {
|
|
|
2953
2970
|
};
|
|
2954
2971
|
export { _EmailMessage as EmailMessage };
|
|
2955
2972
|
}
|
|
2973
|
+
// Copyright (c) 2022-2023 Cloudflare, Inc.
|
|
2974
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2975
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2956
2976
|
declare type Params<P extends string = any> = Record<P, string | string[]>;
|
|
2957
2977
|
declare type EventContext<Env, P extends string, Data> = {
|
|
2958
2978
|
request: Request;
|
|
@@ -2999,6 +3019,9 @@ declare type PagesPluginFunction<
|
|
|
2999
3019
|
declare module "assets:*" {
|
|
3000
3020
|
export const onRequest: PagesFunction;
|
|
3001
3021
|
}
|
|
3022
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3023
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3024
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3002
3025
|
// https://developers.cloudflare.com/pub-sub/
|
|
3003
3026
|
// PubSubMessage represents an incoming PubSub message.
|
|
3004
3027
|
// The message includes metadata about the broker, the client, and the payload
|
|
@@ -3033,6 +3056,9 @@ declare interface JsonWebKeyWithKid extends JsonWebKey {
|
|
|
3033
3056
|
// Key Identifier of the JWK
|
|
3034
3057
|
readonly kid: string;
|
|
3035
3058
|
}
|
|
3059
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3060
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3061
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3036
3062
|
declare module "cloudflare:sockets" {
|
|
3037
3063
|
function _connect(
|
|
3038
3064
|
address: string | SocketAddress,
|
|
@@ -3040,6 +3066,9 @@ declare module "cloudflare:sockets" {
|
|
|
3040
3066
|
): Socket;
|
|
3041
3067
|
export { _connect as connect };
|
|
3042
3068
|
}
|
|
3069
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3070
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3071
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3043
3072
|
// https://developers.cloudflare.com/cloudflare-for-platforms/workers-for-platforms/
|
|
3044
3073
|
declare interface DynamicDispatchLimits {
|
|
3045
3074
|
/**
|
package/2022-01-31/index.ts
CHANGED
|
@@ -354,6 +354,17 @@ export interface Performance {
|
|
|
354
354
|
export interface DurableObject {
|
|
355
355
|
fetch(request: Request): Response | Promise<Response>;
|
|
356
356
|
alarm?(): void | Promise<void>;
|
|
357
|
+
webSocketMessage(
|
|
358
|
+
ws: WebSocket,
|
|
359
|
+
message: string | ArrayBuffer
|
|
360
|
+
): void | Promise<void>;
|
|
361
|
+
webSocketClose(
|
|
362
|
+
ws: WebSocket,
|
|
363
|
+
code: number,
|
|
364
|
+
reason: string,
|
|
365
|
+
wasClean: boolean
|
|
366
|
+
): void | Promise<void>;
|
|
367
|
+
webSocketError(ws: WebSocket, error: unknown): void | Promise<void>;
|
|
357
368
|
}
|
|
358
369
|
export interface DurableObjectStub extends Fetcher {
|
|
359
370
|
readonly id: DurableObjectId;
|
|
@@ -2870,6 +2881,9 @@ export type ContinentCode = "AF" | "AN" | "AS" | "EU" | "NA" | "OC" | "SA";
|
|
|
2870
2881
|
export type CfProperties<HostMetadata = unknown> =
|
|
2871
2882
|
| IncomingRequestCfProperties<HostMetadata>
|
|
2872
2883
|
| RequestInitCfProperties;
|
|
2884
|
+
// Copyright (c) 2022-2023 Cloudflare, Inc.
|
|
2885
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2886
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2873
2887
|
export interface D1Result<T = unknown> {
|
|
2874
2888
|
results: T[];
|
|
2875
2889
|
success: true;
|
|
@@ -2894,6 +2908,9 @@ export declare abstract class D1PreparedStatement {
|
|
|
2894
2908
|
all<T = unknown>(): Promise<D1Result<T[]>>;
|
|
2895
2909
|
raw<T = unknown>(): Promise<T[]>;
|
|
2896
2910
|
}
|
|
2911
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
2912
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2913
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2897
2914
|
/**
|
|
2898
2915
|
* An email message that can be sent from a Worker.
|
|
2899
2916
|
*/
|
|
@@ -2951,6 +2968,9 @@ export type EmailExportedHandler<Env = unknown> = (
|
|
|
2951
2968
|
env: Env,
|
|
2952
2969
|
ctx: ExecutionContext
|
|
2953
2970
|
) => void | Promise<void>;
|
|
2971
|
+
// Copyright (c) 2022-2023 Cloudflare, Inc.
|
|
2972
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2973
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2954
2974
|
export type Params<P extends string = any> = Record<P, string | string[]>;
|
|
2955
2975
|
export type EventContext<Env, P extends string, Data> = {
|
|
2956
2976
|
request: Request;
|
|
@@ -2994,6 +3014,9 @@ export type PagesPluginFunction<
|
|
|
2994
3014
|
> = (
|
|
2995
3015
|
context: EventPluginContext<Env, Params, Data, PluginArgs>
|
|
2996
3016
|
) => Response | Promise<Response>;
|
|
3017
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3018
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3019
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2997
3020
|
// https://developers.cloudflare.com/pub-sub/
|
|
2998
3021
|
// PubSubMessage represents an incoming PubSub message.
|
|
2999
3022
|
// The message includes metadata about the broker, the client, and the payload
|
|
@@ -3028,6 +3051,9 @@ export interface JsonWebKeyWithKid extends JsonWebKey {
|
|
|
3028
3051
|
// Key Identifier of the JWK
|
|
3029
3052
|
readonly kid: string;
|
|
3030
3053
|
}
|
|
3054
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3055
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3056
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3031
3057
|
// https://developers.cloudflare.com/cloudflare-for-platforms/workers-for-platforms/
|
|
3032
3058
|
export interface DynamicDispatchLimits {
|
|
3033
3059
|
/**
|
package/2022-03-21/index.d.ts
CHANGED
|
@@ -358,6 +358,17 @@ declare interface Performance {
|
|
|
358
358
|
declare interface DurableObject {
|
|
359
359
|
fetch(request: Request): Response | Promise<Response>;
|
|
360
360
|
alarm?(): void | Promise<void>;
|
|
361
|
+
webSocketMessage(
|
|
362
|
+
ws: WebSocket,
|
|
363
|
+
message: string | ArrayBuffer
|
|
364
|
+
): void | Promise<void>;
|
|
365
|
+
webSocketClose(
|
|
366
|
+
ws: WebSocket,
|
|
367
|
+
code: number,
|
|
368
|
+
reason: string,
|
|
369
|
+
wasClean: boolean
|
|
370
|
+
): void | Promise<void>;
|
|
371
|
+
webSocketError(ws: WebSocket, error: unknown): void | Promise<void>;
|
|
361
372
|
}
|
|
362
373
|
declare interface DurableObjectStub extends Fetcher {
|
|
363
374
|
readonly id: DurableObjectId;
|
|
@@ -2871,6 +2882,9 @@ declare type ContinentCode = "AF" | "AN" | "AS" | "EU" | "NA" | "OC" | "SA";
|
|
|
2871
2882
|
declare type CfProperties<HostMetadata = unknown> =
|
|
2872
2883
|
| IncomingRequestCfProperties<HostMetadata>
|
|
2873
2884
|
| RequestInitCfProperties;
|
|
2885
|
+
// Copyright (c) 2022-2023 Cloudflare, Inc.
|
|
2886
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2887
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2874
2888
|
declare interface D1Result<T = unknown> {
|
|
2875
2889
|
results: T[];
|
|
2876
2890
|
success: true;
|
|
@@ -2895,6 +2909,9 @@ declare abstract class D1PreparedStatement {
|
|
|
2895
2909
|
all<T = unknown>(): Promise<D1Result<T[]>>;
|
|
2896
2910
|
raw<T = unknown>(): Promise<T[]>;
|
|
2897
2911
|
}
|
|
2912
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
2913
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2914
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2898
2915
|
/**
|
|
2899
2916
|
* An email message that can be sent from a Worker.
|
|
2900
2917
|
*/
|
|
@@ -2959,6 +2976,9 @@ declare module "cloudflare:email" {
|
|
|
2959
2976
|
};
|
|
2960
2977
|
export { _EmailMessage as EmailMessage };
|
|
2961
2978
|
}
|
|
2979
|
+
// Copyright (c) 2022-2023 Cloudflare, Inc.
|
|
2980
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2981
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2962
2982
|
declare type Params<P extends string = any> = Record<P, string | string[]>;
|
|
2963
2983
|
declare type EventContext<Env, P extends string, Data> = {
|
|
2964
2984
|
request: Request;
|
|
@@ -3005,6 +3025,9 @@ declare type PagesPluginFunction<
|
|
|
3005
3025
|
declare module "assets:*" {
|
|
3006
3026
|
export const onRequest: PagesFunction;
|
|
3007
3027
|
}
|
|
3028
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3029
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3030
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3008
3031
|
// https://developers.cloudflare.com/pub-sub/
|
|
3009
3032
|
// PubSubMessage represents an incoming PubSub message.
|
|
3010
3033
|
// The message includes metadata about the broker, the client, and the payload
|
|
@@ -3039,6 +3062,9 @@ declare interface JsonWebKeyWithKid extends JsonWebKey {
|
|
|
3039
3062
|
// Key Identifier of the JWK
|
|
3040
3063
|
readonly kid: string;
|
|
3041
3064
|
}
|
|
3065
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3066
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3067
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3042
3068
|
declare module "cloudflare:sockets" {
|
|
3043
3069
|
function _connect(
|
|
3044
3070
|
address: string | SocketAddress,
|
|
@@ -3046,6 +3072,9 @@ declare module "cloudflare:sockets" {
|
|
|
3046
3072
|
): Socket;
|
|
3047
3073
|
export { _connect as connect };
|
|
3048
3074
|
}
|
|
3075
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3076
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3077
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3049
3078
|
// https://developers.cloudflare.com/cloudflare-for-platforms/workers-for-platforms/
|
|
3050
3079
|
declare interface DynamicDispatchLimits {
|
|
3051
3080
|
/**
|
package/2022-03-21/index.ts
CHANGED
|
@@ -360,6 +360,17 @@ export interface Performance {
|
|
|
360
360
|
export interface DurableObject {
|
|
361
361
|
fetch(request: Request): Response | Promise<Response>;
|
|
362
362
|
alarm?(): void | Promise<void>;
|
|
363
|
+
webSocketMessage(
|
|
364
|
+
ws: WebSocket,
|
|
365
|
+
message: string | ArrayBuffer
|
|
366
|
+
): void | Promise<void>;
|
|
367
|
+
webSocketClose(
|
|
368
|
+
ws: WebSocket,
|
|
369
|
+
code: number,
|
|
370
|
+
reason: string,
|
|
371
|
+
wasClean: boolean
|
|
372
|
+
): void | Promise<void>;
|
|
373
|
+
webSocketError(ws: WebSocket, error: unknown): void | Promise<void>;
|
|
363
374
|
}
|
|
364
375
|
export interface DurableObjectStub extends Fetcher {
|
|
365
376
|
readonly id: DurableObjectId;
|
|
@@ -2876,6 +2887,9 @@ export type ContinentCode = "AF" | "AN" | "AS" | "EU" | "NA" | "OC" | "SA";
|
|
|
2876
2887
|
export type CfProperties<HostMetadata = unknown> =
|
|
2877
2888
|
| IncomingRequestCfProperties<HostMetadata>
|
|
2878
2889
|
| RequestInitCfProperties;
|
|
2890
|
+
// Copyright (c) 2022-2023 Cloudflare, Inc.
|
|
2891
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2892
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2879
2893
|
export interface D1Result<T = unknown> {
|
|
2880
2894
|
results: T[];
|
|
2881
2895
|
success: true;
|
|
@@ -2900,6 +2914,9 @@ export declare abstract class D1PreparedStatement {
|
|
|
2900
2914
|
all<T = unknown>(): Promise<D1Result<T[]>>;
|
|
2901
2915
|
raw<T = unknown>(): Promise<T[]>;
|
|
2902
2916
|
}
|
|
2917
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
2918
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2919
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2903
2920
|
/**
|
|
2904
2921
|
* An email message that can be sent from a Worker.
|
|
2905
2922
|
*/
|
|
@@ -2957,6 +2974,9 @@ export type EmailExportedHandler<Env = unknown> = (
|
|
|
2957
2974
|
env: Env,
|
|
2958
2975
|
ctx: ExecutionContext
|
|
2959
2976
|
) => void | Promise<void>;
|
|
2977
|
+
// Copyright (c) 2022-2023 Cloudflare, Inc.
|
|
2978
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2979
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2960
2980
|
export type Params<P extends string = any> = Record<P, string | string[]>;
|
|
2961
2981
|
export type EventContext<Env, P extends string, Data> = {
|
|
2962
2982
|
request: Request;
|
|
@@ -3000,6 +3020,9 @@ export type PagesPluginFunction<
|
|
|
3000
3020
|
> = (
|
|
3001
3021
|
context: EventPluginContext<Env, Params, Data, PluginArgs>
|
|
3002
3022
|
) => Response | Promise<Response>;
|
|
3023
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3024
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3025
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3003
3026
|
// https://developers.cloudflare.com/pub-sub/
|
|
3004
3027
|
// PubSubMessage represents an incoming PubSub message.
|
|
3005
3028
|
// The message includes metadata about the broker, the client, and the payload
|
|
@@ -3034,6 +3057,9 @@ export interface JsonWebKeyWithKid extends JsonWebKey {
|
|
|
3034
3057
|
// Key Identifier of the JWK
|
|
3035
3058
|
readonly kid: string;
|
|
3036
3059
|
}
|
|
3060
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3061
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3062
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3037
3063
|
// https://developers.cloudflare.com/cloudflare-for-platforms/workers-for-platforms/
|
|
3038
3064
|
export interface DynamicDispatchLimits {
|
|
3039
3065
|
/**
|
package/2022-08-04/index.d.ts
CHANGED
|
@@ -358,6 +358,17 @@ declare interface Performance {
|
|
|
358
358
|
declare interface DurableObject {
|
|
359
359
|
fetch(request: Request): Response | Promise<Response>;
|
|
360
360
|
alarm?(): void | Promise<void>;
|
|
361
|
+
webSocketMessage(
|
|
362
|
+
ws: WebSocket,
|
|
363
|
+
message: string | ArrayBuffer
|
|
364
|
+
): void | Promise<void>;
|
|
365
|
+
webSocketClose(
|
|
366
|
+
ws: WebSocket,
|
|
367
|
+
code: number,
|
|
368
|
+
reason: string,
|
|
369
|
+
wasClean: boolean
|
|
370
|
+
): void | Promise<void>;
|
|
371
|
+
webSocketError(ws: WebSocket, error: unknown): void | Promise<void>;
|
|
361
372
|
}
|
|
362
373
|
declare interface DurableObjectStub extends Fetcher {
|
|
363
374
|
readonly id: DurableObjectId;
|
|
@@ -2872,6 +2883,9 @@ declare type ContinentCode = "AF" | "AN" | "AS" | "EU" | "NA" | "OC" | "SA";
|
|
|
2872
2883
|
declare type CfProperties<HostMetadata = unknown> =
|
|
2873
2884
|
| IncomingRequestCfProperties<HostMetadata>
|
|
2874
2885
|
| RequestInitCfProperties;
|
|
2886
|
+
// Copyright (c) 2022-2023 Cloudflare, Inc.
|
|
2887
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2888
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2875
2889
|
declare interface D1Result<T = unknown> {
|
|
2876
2890
|
results: T[];
|
|
2877
2891
|
success: true;
|
|
@@ -2896,6 +2910,9 @@ declare abstract class D1PreparedStatement {
|
|
|
2896
2910
|
all<T = unknown>(): Promise<D1Result<T[]>>;
|
|
2897
2911
|
raw<T = unknown>(): Promise<T[]>;
|
|
2898
2912
|
}
|
|
2913
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
2914
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2915
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2899
2916
|
/**
|
|
2900
2917
|
* An email message that can be sent from a Worker.
|
|
2901
2918
|
*/
|
|
@@ -2960,6 +2977,9 @@ declare module "cloudflare:email" {
|
|
|
2960
2977
|
};
|
|
2961
2978
|
export { _EmailMessage as EmailMessage };
|
|
2962
2979
|
}
|
|
2980
|
+
// Copyright (c) 2022-2023 Cloudflare, Inc.
|
|
2981
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2982
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2963
2983
|
declare type Params<P extends string = any> = Record<P, string | string[]>;
|
|
2964
2984
|
declare type EventContext<Env, P extends string, Data> = {
|
|
2965
2985
|
request: Request;
|
|
@@ -3006,6 +3026,9 @@ declare type PagesPluginFunction<
|
|
|
3006
3026
|
declare module "assets:*" {
|
|
3007
3027
|
export const onRequest: PagesFunction;
|
|
3008
3028
|
}
|
|
3029
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3030
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3031
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3009
3032
|
// https://developers.cloudflare.com/pub-sub/
|
|
3010
3033
|
// PubSubMessage represents an incoming PubSub message.
|
|
3011
3034
|
// The message includes metadata about the broker, the client, and the payload
|
|
@@ -3040,6 +3063,9 @@ declare interface JsonWebKeyWithKid extends JsonWebKey {
|
|
|
3040
3063
|
// Key Identifier of the JWK
|
|
3041
3064
|
readonly kid: string;
|
|
3042
3065
|
}
|
|
3066
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3067
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3068
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3043
3069
|
declare module "cloudflare:sockets" {
|
|
3044
3070
|
function _connect(
|
|
3045
3071
|
address: string | SocketAddress,
|
|
@@ -3047,6 +3073,9 @@ declare module "cloudflare:sockets" {
|
|
|
3047
3073
|
): Socket;
|
|
3048
3074
|
export { _connect as connect };
|
|
3049
3075
|
}
|
|
3076
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3077
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3078
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3050
3079
|
// https://developers.cloudflare.com/cloudflare-for-platforms/workers-for-platforms/
|
|
3051
3080
|
declare interface DynamicDispatchLimits {
|
|
3052
3081
|
/**
|
package/2022-08-04/index.ts
CHANGED
|
@@ -360,6 +360,17 @@ export interface Performance {
|
|
|
360
360
|
export interface DurableObject {
|
|
361
361
|
fetch(request: Request): Response | Promise<Response>;
|
|
362
362
|
alarm?(): void | Promise<void>;
|
|
363
|
+
webSocketMessage(
|
|
364
|
+
ws: WebSocket,
|
|
365
|
+
message: string | ArrayBuffer
|
|
366
|
+
): void | Promise<void>;
|
|
367
|
+
webSocketClose(
|
|
368
|
+
ws: WebSocket,
|
|
369
|
+
code: number,
|
|
370
|
+
reason: string,
|
|
371
|
+
wasClean: boolean
|
|
372
|
+
): void | Promise<void>;
|
|
373
|
+
webSocketError(ws: WebSocket, error: unknown): void | Promise<void>;
|
|
363
374
|
}
|
|
364
375
|
export interface DurableObjectStub extends Fetcher {
|
|
365
376
|
readonly id: DurableObjectId;
|
|
@@ -2877,6 +2888,9 @@ export type ContinentCode = "AF" | "AN" | "AS" | "EU" | "NA" | "OC" | "SA";
|
|
|
2877
2888
|
export type CfProperties<HostMetadata = unknown> =
|
|
2878
2889
|
| IncomingRequestCfProperties<HostMetadata>
|
|
2879
2890
|
| RequestInitCfProperties;
|
|
2891
|
+
// Copyright (c) 2022-2023 Cloudflare, Inc.
|
|
2892
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2893
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2880
2894
|
export interface D1Result<T = unknown> {
|
|
2881
2895
|
results: T[];
|
|
2882
2896
|
success: true;
|
|
@@ -2901,6 +2915,9 @@ export declare abstract class D1PreparedStatement {
|
|
|
2901
2915
|
all<T = unknown>(): Promise<D1Result<T[]>>;
|
|
2902
2916
|
raw<T = unknown>(): Promise<T[]>;
|
|
2903
2917
|
}
|
|
2918
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
2919
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2920
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2904
2921
|
/**
|
|
2905
2922
|
* An email message that can be sent from a Worker.
|
|
2906
2923
|
*/
|
|
@@ -2958,6 +2975,9 @@ export type EmailExportedHandler<Env = unknown> = (
|
|
|
2958
2975
|
env: Env,
|
|
2959
2976
|
ctx: ExecutionContext
|
|
2960
2977
|
) => void | Promise<void>;
|
|
2978
|
+
// Copyright (c) 2022-2023 Cloudflare, Inc.
|
|
2979
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2980
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2961
2981
|
export type Params<P extends string = any> = Record<P, string | string[]>;
|
|
2962
2982
|
export type EventContext<Env, P extends string, Data> = {
|
|
2963
2983
|
request: Request;
|
|
@@ -3001,6 +3021,9 @@ export type PagesPluginFunction<
|
|
|
3001
3021
|
> = (
|
|
3002
3022
|
context: EventPluginContext<Env, Params, Data, PluginArgs>
|
|
3003
3023
|
) => Response | Promise<Response>;
|
|
3024
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3025
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3026
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3004
3027
|
// https://developers.cloudflare.com/pub-sub/
|
|
3005
3028
|
// PubSubMessage represents an incoming PubSub message.
|
|
3006
3029
|
// The message includes metadata about the broker, the client, and the payload
|
|
@@ -3035,6 +3058,9 @@ export interface JsonWebKeyWithKid extends JsonWebKey {
|
|
|
3035
3058
|
// Key Identifier of the JWK
|
|
3036
3059
|
readonly kid: string;
|
|
3037
3060
|
}
|
|
3061
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3062
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3063
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3038
3064
|
// https://developers.cloudflare.com/cloudflare-for-platforms/workers-for-platforms/
|
|
3039
3065
|
export interface DynamicDispatchLimits {
|
|
3040
3066
|
/**
|
package/2022-10-31/index.d.ts
CHANGED
|
@@ -358,6 +358,17 @@ declare interface Performance {
|
|
|
358
358
|
declare interface DurableObject {
|
|
359
359
|
fetch(request: Request): Response | Promise<Response>;
|
|
360
360
|
alarm?(): void | Promise<void>;
|
|
361
|
+
webSocketMessage(
|
|
362
|
+
ws: WebSocket,
|
|
363
|
+
message: string | ArrayBuffer
|
|
364
|
+
): void | Promise<void>;
|
|
365
|
+
webSocketClose(
|
|
366
|
+
ws: WebSocket,
|
|
367
|
+
code: number,
|
|
368
|
+
reason: string,
|
|
369
|
+
wasClean: boolean
|
|
370
|
+
): void | Promise<void>;
|
|
371
|
+
webSocketError(ws: WebSocket, error: unknown): void | Promise<void>;
|
|
361
372
|
}
|
|
362
373
|
declare interface DurableObjectStub extends Fetcher {
|
|
363
374
|
readonly id: DurableObjectId;
|
|
@@ -2869,6 +2880,9 @@ declare type ContinentCode = "AF" | "AN" | "AS" | "EU" | "NA" | "OC" | "SA";
|
|
|
2869
2880
|
declare type CfProperties<HostMetadata = unknown> =
|
|
2870
2881
|
| IncomingRequestCfProperties<HostMetadata>
|
|
2871
2882
|
| RequestInitCfProperties;
|
|
2883
|
+
// Copyright (c) 2022-2023 Cloudflare, Inc.
|
|
2884
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2885
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2872
2886
|
declare interface D1Result<T = unknown> {
|
|
2873
2887
|
results: T[];
|
|
2874
2888
|
success: true;
|
|
@@ -2893,6 +2907,9 @@ declare abstract class D1PreparedStatement {
|
|
|
2893
2907
|
all<T = unknown>(): Promise<D1Result<T[]>>;
|
|
2894
2908
|
raw<T = unknown>(): Promise<T[]>;
|
|
2895
2909
|
}
|
|
2910
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
2911
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2912
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2896
2913
|
/**
|
|
2897
2914
|
* An email message that can be sent from a Worker.
|
|
2898
2915
|
*/
|
|
@@ -2957,6 +2974,9 @@ declare module "cloudflare:email" {
|
|
|
2957
2974
|
};
|
|
2958
2975
|
export { _EmailMessage as EmailMessage };
|
|
2959
2976
|
}
|
|
2977
|
+
// Copyright (c) 2022-2023 Cloudflare, Inc.
|
|
2978
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2979
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2960
2980
|
declare type Params<P extends string = any> = Record<P, string | string[]>;
|
|
2961
2981
|
declare type EventContext<Env, P extends string, Data> = {
|
|
2962
2982
|
request: Request;
|
|
@@ -3003,6 +3023,9 @@ declare type PagesPluginFunction<
|
|
|
3003
3023
|
declare module "assets:*" {
|
|
3004
3024
|
export const onRequest: PagesFunction;
|
|
3005
3025
|
}
|
|
3026
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3027
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3028
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3006
3029
|
// https://developers.cloudflare.com/pub-sub/
|
|
3007
3030
|
// PubSubMessage represents an incoming PubSub message.
|
|
3008
3031
|
// The message includes metadata about the broker, the client, and the payload
|
|
@@ -3037,6 +3060,9 @@ declare interface JsonWebKeyWithKid extends JsonWebKey {
|
|
|
3037
3060
|
// Key Identifier of the JWK
|
|
3038
3061
|
readonly kid: string;
|
|
3039
3062
|
}
|
|
3063
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3064
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3065
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3040
3066
|
declare module "cloudflare:sockets" {
|
|
3041
3067
|
function _connect(
|
|
3042
3068
|
address: string | SocketAddress,
|
|
@@ -3044,6 +3070,9 @@ declare module "cloudflare:sockets" {
|
|
|
3044
3070
|
): Socket;
|
|
3045
3071
|
export { _connect as connect };
|
|
3046
3072
|
}
|
|
3073
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3074
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3075
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3047
3076
|
// https://developers.cloudflare.com/cloudflare-for-platforms/workers-for-platforms/
|
|
3048
3077
|
declare interface DynamicDispatchLimits {
|
|
3049
3078
|
/**
|
package/2022-10-31/index.ts
CHANGED
|
@@ -360,6 +360,17 @@ export interface Performance {
|
|
|
360
360
|
export interface DurableObject {
|
|
361
361
|
fetch(request: Request): Response | Promise<Response>;
|
|
362
362
|
alarm?(): void | Promise<void>;
|
|
363
|
+
webSocketMessage(
|
|
364
|
+
ws: WebSocket,
|
|
365
|
+
message: string | ArrayBuffer
|
|
366
|
+
): void | Promise<void>;
|
|
367
|
+
webSocketClose(
|
|
368
|
+
ws: WebSocket,
|
|
369
|
+
code: number,
|
|
370
|
+
reason: string,
|
|
371
|
+
wasClean: boolean
|
|
372
|
+
): void | Promise<void>;
|
|
373
|
+
webSocketError(ws: WebSocket, error: unknown): void | Promise<void>;
|
|
363
374
|
}
|
|
364
375
|
export interface DurableObjectStub extends Fetcher {
|
|
365
376
|
readonly id: DurableObjectId;
|
|
@@ -2874,6 +2885,9 @@ export type ContinentCode = "AF" | "AN" | "AS" | "EU" | "NA" | "OC" | "SA";
|
|
|
2874
2885
|
export type CfProperties<HostMetadata = unknown> =
|
|
2875
2886
|
| IncomingRequestCfProperties<HostMetadata>
|
|
2876
2887
|
| RequestInitCfProperties;
|
|
2888
|
+
// Copyright (c) 2022-2023 Cloudflare, Inc.
|
|
2889
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2890
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2877
2891
|
export interface D1Result<T = unknown> {
|
|
2878
2892
|
results: T[];
|
|
2879
2893
|
success: true;
|
|
@@ -2898,6 +2912,9 @@ export declare abstract class D1PreparedStatement {
|
|
|
2898
2912
|
all<T = unknown>(): Promise<D1Result<T[]>>;
|
|
2899
2913
|
raw<T = unknown>(): Promise<T[]>;
|
|
2900
2914
|
}
|
|
2915
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
2916
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2917
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2901
2918
|
/**
|
|
2902
2919
|
* An email message that can be sent from a Worker.
|
|
2903
2920
|
*/
|
|
@@ -2955,6 +2972,9 @@ export type EmailExportedHandler<Env = unknown> = (
|
|
|
2955
2972
|
env: Env,
|
|
2956
2973
|
ctx: ExecutionContext
|
|
2957
2974
|
) => void | Promise<void>;
|
|
2975
|
+
// Copyright (c) 2022-2023 Cloudflare, Inc.
|
|
2976
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2977
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2958
2978
|
export type Params<P extends string = any> = Record<P, string | string[]>;
|
|
2959
2979
|
export type EventContext<Env, P extends string, Data> = {
|
|
2960
2980
|
request: Request;
|
|
@@ -2998,6 +3018,9 @@ export type PagesPluginFunction<
|
|
|
2998
3018
|
> = (
|
|
2999
3019
|
context: EventPluginContext<Env, Params, Data, PluginArgs>
|
|
3000
3020
|
) => Response | Promise<Response>;
|
|
3021
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3022
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3023
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3001
3024
|
// https://developers.cloudflare.com/pub-sub/
|
|
3002
3025
|
// PubSubMessage represents an incoming PubSub message.
|
|
3003
3026
|
// The message includes metadata about the broker, the client, and the payload
|
|
@@ -3032,6 +3055,9 @@ export interface JsonWebKeyWithKid extends JsonWebKey {
|
|
|
3032
3055
|
// Key Identifier of the JWK
|
|
3033
3056
|
readonly kid: string;
|
|
3034
3057
|
}
|
|
3058
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3059
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3060
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3035
3061
|
// https://developers.cloudflare.com/cloudflare-for-platforms/workers-for-platforms/
|
|
3036
3062
|
export interface DynamicDispatchLimits {
|
|
3037
3063
|
/**
|
package/2022-11-30/index.d.ts
CHANGED
|
@@ -362,6 +362,17 @@ declare interface Performance {
|
|
|
362
362
|
declare interface DurableObject {
|
|
363
363
|
fetch(request: Request): Response | Promise<Response>;
|
|
364
364
|
alarm?(): void | Promise<void>;
|
|
365
|
+
webSocketMessage(
|
|
366
|
+
ws: WebSocket,
|
|
367
|
+
message: string | ArrayBuffer
|
|
368
|
+
): void | Promise<void>;
|
|
369
|
+
webSocketClose(
|
|
370
|
+
ws: WebSocket,
|
|
371
|
+
code: number,
|
|
372
|
+
reason: string,
|
|
373
|
+
wasClean: boolean
|
|
374
|
+
): void | Promise<void>;
|
|
375
|
+
webSocketError(ws: WebSocket, error: unknown): void | Promise<void>;
|
|
365
376
|
}
|
|
366
377
|
declare interface DurableObjectStub extends Fetcher {
|
|
367
378
|
readonly id: DurableObjectId;
|
|
@@ -2872,6 +2883,9 @@ declare type ContinentCode = "AF" | "AN" | "AS" | "EU" | "NA" | "OC" | "SA";
|
|
|
2872
2883
|
declare type CfProperties<HostMetadata = unknown> =
|
|
2873
2884
|
| IncomingRequestCfProperties<HostMetadata>
|
|
2874
2885
|
| RequestInitCfProperties;
|
|
2886
|
+
// Copyright (c) 2022-2023 Cloudflare, Inc.
|
|
2887
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2888
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2875
2889
|
declare interface D1Result<T = unknown> {
|
|
2876
2890
|
results: T[];
|
|
2877
2891
|
success: true;
|
|
@@ -2896,6 +2910,9 @@ declare abstract class D1PreparedStatement {
|
|
|
2896
2910
|
all<T = unknown>(): Promise<D1Result<T[]>>;
|
|
2897
2911
|
raw<T = unknown>(): Promise<T[]>;
|
|
2898
2912
|
}
|
|
2913
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
2914
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2915
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2899
2916
|
/**
|
|
2900
2917
|
* An email message that can be sent from a Worker.
|
|
2901
2918
|
*/
|
|
@@ -2960,6 +2977,9 @@ declare module "cloudflare:email" {
|
|
|
2960
2977
|
};
|
|
2961
2978
|
export { _EmailMessage as EmailMessage };
|
|
2962
2979
|
}
|
|
2980
|
+
// Copyright (c) 2022-2023 Cloudflare, Inc.
|
|
2981
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2982
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2963
2983
|
declare type Params<P extends string = any> = Record<P, string | string[]>;
|
|
2964
2984
|
declare type EventContext<Env, P extends string, Data> = {
|
|
2965
2985
|
request: Request;
|
|
@@ -3006,6 +3026,9 @@ declare type PagesPluginFunction<
|
|
|
3006
3026
|
declare module "assets:*" {
|
|
3007
3027
|
export const onRequest: PagesFunction;
|
|
3008
3028
|
}
|
|
3029
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3030
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3031
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3009
3032
|
// https://developers.cloudflare.com/pub-sub/
|
|
3010
3033
|
// PubSubMessage represents an incoming PubSub message.
|
|
3011
3034
|
// The message includes metadata about the broker, the client, and the payload
|
|
@@ -3040,6 +3063,9 @@ declare interface JsonWebKeyWithKid extends JsonWebKey {
|
|
|
3040
3063
|
// Key Identifier of the JWK
|
|
3041
3064
|
readonly kid: string;
|
|
3042
3065
|
}
|
|
3066
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3067
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3068
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3043
3069
|
declare module "cloudflare:sockets" {
|
|
3044
3070
|
function _connect(
|
|
3045
3071
|
address: string | SocketAddress,
|
|
@@ -3047,6 +3073,9 @@ declare module "cloudflare:sockets" {
|
|
|
3047
3073
|
): Socket;
|
|
3048
3074
|
export { _connect as connect };
|
|
3049
3075
|
}
|
|
3076
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3077
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3078
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3050
3079
|
// https://developers.cloudflare.com/cloudflare-for-platforms/workers-for-platforms/
|
|
3051
3080
|
declare interface DynamicDispatchLimits {
|
|
3052
3081
|
/**
|
package/2022-11-30/index.ts
CHANGED
|
@@ -364,6 +364,17 @@ export interface Performance {
|
|
|
364
364
|
export interface DurableObject {
|
|
365
365
|
fetch(request: Request): Response | Promise<Response>;
|
|
366
366
|
alarm?(): void | Promise<void>;
|
|
367
|
+
webSocketMessage(
|
|
368
|
+
ws: WebSocket,
|
|
369
|
+
message: string | ArrayBuffer
|
|
370
|
+
): void | Promise<void>;
|
|
371
|
+
webSocketClose(
|
|
372
|
+
ws: WebSocket,
|
|
373
|
+
code: number,
|
|
374
|
+
reason: string,
|
|
375
|
+
wasClean: boolean
|
|
376
|
+
): void | Promise<void>;
|
|
377
|
+
webSocketError(ws: WebSocket, error: unknown): void | Promise<void>;
|
|
367
378
|
}
|
|
368
379
|
export interface DurableObjectStub extends Fetcher {
|
|
369
380
|
readonly id: DurableObjectId;
|
|
@@ -2877,6 +2888,9 @@ export type ContinentCode = "AF" | "AN" | "AS" | "EU" | "NA" | "OC" | "SA";
|
|
|
2877
2888
|
export type CfProperties<HostMetadata = unknown> =
|
|
2878
2889
|
| IncomingRequestCfProperties<HostMetadata>
|
|
2879
2890
|
| RequestInitCfProperties;
|
|
2891
|
+
// Copyright (c) 2022-2023 Cloudflare, Inc.
|
|
2892
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2893
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2880
2894
|
export interface D1Result<T = unknown> {
|
|
2881
2895
|
results: T[];
|
|
2882
2896
|
success: true;
|
|
@@ -2901,6 +2915,9 @@ export declare abstract class D1PreparedStatement {
|
|
|
2901
2915
|
all<T = unknown>(): Promise<D1Result<T[]>>;
|
|
2902
2916
|
raw<T = unknown>(): Promise<T[]>;
|
|
2903
2917
|
}
|
|
2918
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
2919
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2920
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2904
2921
|
/**
|
|
2905
2922
|
* An email message that can be sent from a Worker.
|
|
2906
2923
|
*/
|
|
@@ -2958,6 +2975,9 @@ export type EmailExportedHandler<Env = unknown> = (
|
|
|
2958
2975
|
env: Env,
|
|
2959
2976
|
ctx: ExecutionContext
|
|
2960
2977
|
) => void | Promise<void>;
|
|
2978
|
+
// Copyright (c) 2022-2023 Cloudflare, Inc.
|
|
2979
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2980
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2961
2981
|
export type Params<P extends string = any> = Record<P, string | string[]>;
|
|
2962
2982
|
export type EventContext<Env, P extends string, Data> = {
|
|
2963
2983
|
request: Request;
|
|
@@ -3001,6 +3021,9 @@ export type PagesPluginFunction<
|
|
|
3001
3021
|
> = (
|
|
3002
3022
|
context: EventPluginContext<Env, Params, Data, PluginArgs>
|
|
3003
3023
|
) => Response | Promise<Response>;
|
|
3024
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3025
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3026
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3004
3027
|
// https://developers.cloudflare.com/pub-sub/
|
|
3005
3028
|
// PubSubMessage represents an incoming PubSub message.
|
|
3006
3029
|
// The message includes metadata about the broker, the client, and the payload
|
|
@@ -3035,6 +3058,9 @@ export interface JsonWebKeyWithKid extends JsonWebKey {
|
|
|
3035
3058
|
// Key Identifier of the JWK
|
|
3036
3059
|
readonly kid: string;
|
|
3037
3060
|
}
|
|
3061
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3062
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3063
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3038
3064
|
// https://developers.cloudflare.com/cloudflare-for-platforms/workers-for-platforms/
|
|
3039
3065
|
export interface DynamicDispatchLimits {
|
|
3040
3066
|
/**
|
package/experimental/index.d.ts
CHANGED
|
@@ -362,6 +362,17 @@ declare interface Performance {
|
|
|
362
362
|
declare interface DurableObject {
|
|
363
363
|
fetch(request: Request): Response | Promise<Response>;
|
|
364
364
|
alarm?(): void | Promise<void>;
|
|
365
|
+
webSocketMessage(
|
|
366
|
+
ws: WebSocket,
|
|
367
|
+
message: string | ArrayBuffer
|
|
368
|
+
): void | Promise<void>;
|
|
369
|
+
webSocketClose(
|
|
370
|
+
ws: WebSocket,
|
|
371
|
+
code: number,
|
|
372
|
+
reason: string,
|
|
373
|
+
wasClean: boolean
|
|
374
|
+
): void | Promise<void>;
|
|
375
|
+
webSocketError(ws: WebSocket, error: unknown): void | Promise<void>;
|
|
365
376
|
}
|
|
366
377
|
declare interface DurableObjectStub extends Fetcher {
|
|
367
378
|
readonly id: DurableObjectId;
|
|
@@ -2912,6 +2923,9 @@ declare type ContinentCode = "AF" | "AN" | "AS" | "EU" | "NA" | "OC" | "SA";
|
|
|
2912
2923
|
declare type CfProperties<HostMetadata = unknown> =
|
|
2913
2924
|
| IncomingRequestCfProperties<HostMetadata>
|
|
2914
2925
|
| RequestInitCfProperties;
|
|
2926
|
+
// Copyright (c) 2022-2023 Cloudflare, Inc.
|
|
2927
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2928
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2915
2929
|
declare interface D1Result<T = unknown> {
|
|
2916
2930
|
results: T[];
|
|
2917
2931
|
success: true;
|
|
@@ -2936,6 +2950,9 @@ declare abstract class D1PreparedStatement {
|
|
|
2936
2950
|
all<T = unknown>(): Promise<D1Result<T[]>>;
|
|
2937
2951
|
raw<T = unknown>(): Promise<T[]>;
|
|
2938
2952
|
}
|
|
2953
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
2954
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2955
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2939
2956
|
/**
|
|
2940
2957
|
* An email message that can be sent from a Worker.
|
|
2941
2958
|
*/
|
|
@@ -3000,6 +3017,9 @@ declare module "cloudflare:email" {
|
|
|
3000
3017
|
};
|
|
3001
3018
|
export { _EmailMessage as EmailMessage };
|
|
3002
3019
|
}
|
|
3020
|
+
// Copyright (c) 2022-2023 Cloudflare, Inc.
|
|
3021
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3022
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3003
3023
|
declare type Params<P extends string = any> = Record<P, string | string[]>;
|
|
3004
3024
|
declare type EventContext<Env, P extends string, Data> = {
|
|
3005
3025
|
request: Request;
|
|
@@ -3046,6 +3066,9 @@ declare type PagesPluginFunction<
|
|
|
3046
3066
|
declare module "assets:*" {
|
|
3047
3067
|
export const onRequest: PagesFunction;
|
|
3048
3068
|
}
|
|
3069
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3070
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3071
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3049
3072
|
// https://developers.cloudflare.com/pub-sub/
|
|
3050
3073
|
// PubSubMessage represents an incoming PubSub message.
|
|
3051
3074
|
// The message includes metadata about the broker, the client, and the payload
|
|
@@ -3080,6 +3103,9 @@ declare interface JsonWebKeyWithKid extends JsonWebKey {
|
|
|
3080
3103
|
// Key Identifier of the JWK
|
|
3081
3104
|
readonly kid: string;
|
|
3082
3105
|
}
|
|
3106
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3107
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3108
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3083
3109
|
declare module "cloudflare:sockets" {
|
|
3084
3110
|
function _connect(
|
|
3085
3111
|
address: string | SocketAddress,
|
|
@@ -3087,6 +3113,9 @@ declare module "cloudflare:sockets" {
|
|
|
3087
3113
|
): Socket;
|
|
3088
3114
|
export { _connect as connect };
|
|
3089
3115
|
}
|
|
3116
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3117
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3118
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3090
3119
|
// https://developers.cloudflare.com/cloudflare-for-platforms/workers-for-platforms/
|
|
3091
3120
|
declare interface DynamicDispatchLimits {
|
|
3092
3121
|
/**
|
package/experimental/index.ts
CHANGED
|
@@ -364,6 +364,17 @@ export interface Performance {
|
|
|
364
364
|
export interface DurableObject {
|
|
365
365
|
fetch(request: Request): Response | Promise<Response>;
|
|
366
366
|
alarm?(): void | Promise<void>;
|
|
367
|
+
webSocketMessage(
|
|
368
|
+
ws: WebSocket,
|
|
369
|
+
message: string | ArrayBuffer
|
|
370
|
+
): void | Promise<void>;
|
|
371
|
+
webSocketClose(
|
|
372
|
+
ws: WebSocket,
|
|
373
|
+
code: number,
|
|
374
|
+
reason: string,
|
|
375
|
+
wasClean: boolean
|
|
376
|
+
): void | Promise<void>;
|
|
377
|
+
webSocketError(ws: WebSocket, error: unknown): void | Promise<void>;
|
|
367
378
|
}
|
|
368
379
|
export interface DurableObjectStub extends Fetcher {
|
|
369
380
|
readonly id: DurableObjectId;
|
|
@@ -2917,6 +2928,9 @@ export type ContinentCode = "AF" | "AN" | "AS" | "EU" | "NA" | "OC" | "SA";
|
|
|
2917
2928
|
export type CfProperties<HostMetadata = unknown> =
|
|
2918
2929
|
| IncomingRequestCfProperties<HostMetadata>
|
|
2919
2930
|
| RequestInitCfProperties;
|
|
2931
|
+
// Copyright (c) 2022-2023 Cloudflare, Inc.
|
|
2932
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2933
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2920
2934
|
export interface D1Result<T = unknown> {
|
|
2921
2935
|
results: T[];
|
|
2922
2936
|
success: true;
|
|
@@ -2941,6 +2955,9 @@ export declare abstract class D1PreparedStatement {
|
|
|
2941
2955
|
all<T = unknown>(): Promise<D1Result<T[]>>;
|
|
2942
2956
|
raw<T = unknown>(): Promise<T[]>;
|
|
2943
2957
|
}
|
|
2958
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
2959
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2960
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2944
2961
|
/**
|
|
2945
2962
|
* An email message that can be sent from a Worker.
|
|
2946
2963
|
*/
|
|
@@ -2998,6 +3015,9 @@ export type EmailExportedHandler<Env = unknown> = (
|
|
|
2998
3015
|
env: Env,
|
|
2999
3016
|
ctx: ExecutionContext
|
|
3000
3017
|
) => void | Promise<void>;
|
|
3018
|
+
// Copyright (c) 2022-2023 Cloudflare, Inc.
|
|
3019
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3020
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3001
3021
|
export type Params<P extends string = any> = Record<P, string | string[]>;
|
|
3002
3022
|
export type EventContext<Env, P extends string, Data> = {
|
|
3003
3023
|
request: Request;
|
|
@@ -3041,6 +3061,9 @@ export type PagesPluginFunction<
|
|
|
3041
3061
|
> = (
|
|
3042
3062
|
context: EventPluginContext<Env, Params, Data, PluginArgs>
|
|
3043
3063
|
) => Response | Promise<Response>;
|
|
3064
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3065
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3066
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3044
3067
|
// https://developers.cloudflare.com/pub-sub/
|
|
3045
3068
|
// PubSubMessage represents an incoming PubSub message.
|
|
3046
3069
|
// The message includes metadata about the broker, the client, and the payload
|
|
@@ -3075,6 +3098,9 @@ export interface JsonWebKeyWithKid extends JsonWebKey {
|
|
|
3075
3098
|
// Key Identifier of the JWK
|
|
3076
3099
|
readonly kid: string;
|
|
3077
3100
|
}
|
|
3101
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3102
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3103
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3078
3104
|
// https://developers.cloudflare.com/cloudflare-for-platforms/workers-for-platforms/
|
|
3079
3105
|
export interface DynamicDispatchLimits {
|
|
3080
3106
|
/**
|
package/index.d.ts
CHANGED
|
@@ -352,6 +352,17 @@ declare interface Performance {
|
|
|
352
352
|
declare interface DurableObject {
|
|
353
353
|
fetch(request: Request): Response | Promise<Response>;
|
|
354
354
|
alarm?(): void | Promise<void>;
|
|
355
|
+
webSocketMessage(
|
|
356
|
+
ws: WebSocket,
|
|
357
|
+
message: string | ArrayBuffer
|
|
358
|
+
): void | Promise<void>;
|
|
359
|
+
webSocketClose(
|
|
360
|
+
ws: WebSocket,
|
|
361
|
+
code: number,
|
|
362
|
+
reason: string,
|
|
363
|
+
wasClean: boolean
|
|
364
|
+
): void | Promise<void>;
|
|
365
|
+
webSocketError(ws: WebSocket, error: unknown): void | Promise<void>;
|
|
355
366
|
}
|
|
356
367
|
declare interface DurableObjectStub extends Fetcher {
|
|
357
368
|
readonly id: DurableObjectId;
|
|
@@ -2879,6 +2890,9 @@ declare type ContinentCode = "AF" | "AN" | "AS" | "EU" | "NA" | "OC" | "SA";
|
|
|
2879
2890
|
declare type CfProperties<HostMetadata = unknown> =
|
|
2880
2891
|
| IncomingRequestCfProperties<HostMetadata>
|
|
2881
2892
|
| RequestInitCfProperties;
|
|
2893
|
+
// Copyright (c) 2022-2023 Cloudflare, Inc.
|
|
2894
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2895
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2882
2896
|
declare interface D1Result<T = unknown> {
|
|
2883
2897
|
results: T[];
|
|
2884
2898
|
success: true;
|
|
@@ -2903,6 +2917,9 @@ declare abstract class D1PreparedStatement {
|
|
|
2903
2917
|
all<T = unknown>(): Promise<D1Result<T[]>>;
|
|
2904
2918
|
raw<T = unknown>(): Promise<T[]>;
|
|
2905
2919
|
}
|
|
2920
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
2921
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2922
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2906
2923
|
/**
|
|
2907
2924
|
* An email message that can be sent from a Worker.
|
|
2908
2925
|
*/
|
|
@@ -2967,6 +2984,9 @@ declare module "cloudflare:email" {
|
|
|
2967
2984
|
};
|
|
2968
2985
|
export { _EmailMessage as EmailMessage };
|
|
2969
2986
|
}
|
|
2987
|
+
// Copyright (c) 2022-2023 Cloudflare, Inc.
|
|
2988
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2989
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2970
2990
|
declare type Params<P extends string = any> = Record<P, string | string[]>;
|
|
2971
2991
|
declare type EventContext<Env, P extends string, Data> = {
|
|
2972
2992
|
request: Request;
|
|
@@ -3013,6 +3033,9 @@ declare type PagesPluginFunction<
|
|
|
3013
3033
|
declare module "assets:*" {
|
|
3014
3034
|
export const onRequest: PagesFunction;
|
|
3015
3035
|
}
|
|
3036
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3037
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3038
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3016
3039
|
// https://developers.cloudflare.com/pub-sub/
|
|
3017
3040
|
// PubSubMessage represents an incoming PubSub message.
|
|
3018
3041
|
// The message includes metadata about the broker, the client, and the payload
|
|
@@ -3047,6 +3070,9 @@ declare interface JsonWebKeyWithKid extends JsonWebKey {
|
|
|
3047
3070
|
// Key Identifier of the JWK
|
|
3048
3071
|
readonly kid: string;
|
|
3049
3072
|
}
|
|
3073
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3074
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3075
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3050
3076
|
declare module "cloudflare:sockets" {
|
|
3051
3077
|
function _connect(
|
|
3052
3078
|
address: string | SocketAddress,
|
|
@@ -3054,6 +3080,9 @@ declare module "cloudflare:sockets" {
|
|
|
3054
3080
|
): Socket;
|
|
3055
3081
|
export { _connect as connect };
|
|
3056
3082
|
}
|
|
3083
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3084
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3085
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3057
3086
|
// https://developers.cloudflare.com/cloudflare-for-platforms/workers-for-platforms/
|
|
3058
3087
|
declare interface DynamicDispatchLimits {
|
|
3059
3088
|
/**
|
package/index.ts
CHANGED
|
@@ -354,6 +354,17 @@ export interface Performance {
|
|
|
354
354
|
export interface DurableObject {
|
|
355
355
|
fetch(request: Request): Response | Promise<Response>;
|
|
356
356
|
alarm?(): void | Promise<void>;
|
|
357
|
+
webSocketMessage(
|
|
358
|
+
ws: WebSocket,
|
|
359
|
+
message: string | ArrayBuffer
|
|
360
|
+
): void | Promise<void>;
|
|
361
|
+
webSocketClose(
|
|
362
|
+
ws: WebSocket,
|
|
363
|
+
code: number,
|
|
364
|
+
reason: string,
|
|
365
|
+
wasClean: boolean
|
|
366
|
+
): void | Promise<void>;
|
|
367
|
+
webSocketError(ws: WebSocket, error: unknown): void | Promise<void>;
|
|
357
368
|
}
|
|
358
369
|
export interface DurableObjectStub extends Fetcher {
|
|
359
370
|
readonly id: DurableObjectId;
|
|
@@ -2884,6 +2895,9 @@ export type ContinentCode = "AF" | "AN" | "AS" | "EU" | "NA" | "OC" | "SA";
|
|
|
2884
2895
|
export type CfProperties<HostMetadata = unknown> =
|
|
2885
2896
|
| IncomingRequestCfProperties<HostMetadata>
|
|
2886
2897
|
| RequestInitCfProperties;
|
|
2898
|
+
// Copyright (c) 2022-2023 Cloudflare, Inc.
|
|
2899
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2900
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2887
2901
|
export interface D1Result<T = unknown> {
|
|
2888
2902
|
results: T[];
|
|
2889
2903
|
success: true;
|
|
@@ -2908,6 +2922,9 @@ export declare abstract class D1PreparedStatement {
|
|
|
2908
2922
|
all<T = unknown>(): Promise<D1Result<T[]>>;
|
|
2909
2923
|
raw<T = unknown>(): Promise<T[]>;
|
|
2910
2924
|
}
|
|
2925
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
2926
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2927
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2911
2928
|
/**
|
|
2912
2929
|
* An email message that can be sent from a Worker.
|
|
2913
2930
|
*/
|
|
@@ -2965,6 +2982,9 @@ export type EmailExportedHandler<Env = unknown> = (
|
|
|
2965
2982
|
env: Env,
|
|
2966
2983
|
ctx: ExecutionContext
|
|
2967
2984
|
) => void | Promise<void>;
|
|
2985
|
+
// Copyright (c) 2022-2023 Cloudflare, Inc.
|
|
2986
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2987
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2968
2988
|
export type Params<P extends string = any> = Record<P, string | string[]>;
|
|
2969
2989
|
export type EventContext<Env, P extends string, Data> = {
|
|
2970
2990
|
request: Request;
|
|
@@ -3008,6 +3028,9 @@ export type PagesPluginFunction<
|
|
|
3008
3028
|
> = (
|
|
3009
3029
|
context: EventPluginContext<Env, Params, Data, PluginArgs>
|
|
3010
3030
|
) => Response | Promise<Response>;
|
|
3031
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3032
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3033
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3011
3034
|
// https://developers.cloudflare.com/pub-sub/
|
|
3012
3035
|
// PubSubMessage represents an incoming PubSub message.
|
|
3013
3036
|
// The message includes metadata about the broker, the client, and the payload
|
|
@@ -3042,6 +3065,9 @@ export interface JsonWebKeyWithKid extends JsonWebKey {
|
|
|
3042
3065
|
// Key Identifier of the JWK
|
|
3043
3066
|
readonly kid: string;
|
|
3044
3067
|
}
|
|
3068
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3069
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3070
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3045
3071
|
// https://developers.cloudflare.com/cloudflare-for-platforms/workers-for-platforms/
|
|
3046
3072
|
export interface DynamicDispatchLimits {
|
|
3047
3073
|
/**
|
package/oldest/index.d.ts
CHANGED
|
@@ -352,6 +352,17 @@ declare interface Performance {
|
|
|
352
352
|
declare interface DurableObject {
|
|
353
353
|
fetch(request: Request): Response | Promise<Response>;
|
|
354
354
|
alarm?(): void | Promise<void>;
|
|
355
|
+
webSocketMessage(
|
|
356
|
+
ws: WebSocket,
|
|
357
|
+
message: string | ArrayBuffer
|
|
358
|
+
): void | Promise<void>;
|
|
359
|
+
webSocketClose(
|
|
360
|
+
ws: WebSocket,
|
|
361
|
+
code: number,
|
|
362
|
+
reason: string,
|
|
363
|
+
wasClean: boolean
|
|
364
|
+
): void | Promise<void>;
|
|
365
|
+
webSocketError(ws: WebSocket, error: unknown): void | Promise<void>;
|
|
355
366
|
}
|
|
356
367
|
declare interface DurableObjectStub extends Fetcher {
|
|
357
368
|
readonly id: DurableObjectId;
|
|
@@ -2879,6 +2890,9 @@ declare type ContinentCode = "AF" | "AN" | "AS" | "EU" | "NA" | "OC" | "SA";
|
|
|
2879
2890
|
declare type CfProperties<HostMetadata = unknown> =
|
|
2880
2891
|
| IncomingRequestCfProperties<HostMetadata>
|
|
2881
2892
|
| RequestInitCfProperties;
|
|
2893
|
+
// Copyright (c) 2022-2023 Cloudflare, Inc.
|
|
2894
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2895
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2882
2896
|
declare interface D1Result<T = unknown> {
|
|
2883
2897
|
results: T[];
|
|
2884
2898
|
success: true;
|
|
@@ -2903,6 +2917,9 @@ declare abstract class D1PreparedStatement {
|
|
|
2903
2917
|
all<T = unknown>(): Promise<D1Result<T[]>>;
|
|
2904
2918
|
raw<T = unknown>(): Promise<T[]>;
|
|
2905
2919
|
}
|
|
2920
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
2921
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2922
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2906
2923
|
/**
|
|
2907
2924
|
* An email message that can be sent from a Worker.
|
|
2908
2925
|
*/
|
|
@@ -2967,6 +2984,9 @@ declare module "cloudflare:email" {
|
|
|
2967
2984
|
};
|
|
2968
2985
|
export { _EmailMessage as EmailMessage };
|
|
2969
2986
|
}
|
|
2987
|
+
// Copyright (c) 2022-2023 Cloudflare, Inc.
|
|
2988
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2989
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2970
2990
|
declare type Params<P extends string = any> = Record<P, string | string[]>;
|
|
2971
2991
|
declare type EventContext<Env, P extends string, Data> = {
|
|
2972
2992
|
request: Request;
|
|
@@ -3013,6 +3033,9 @@ declare type PagesPluginFunction<
|
|
|
3013
3033
|
declare module "assets:*" {
|
|
3014
3034
|
export const onRequest: PagesFunction;
|
|
3015
3035
|
}
|
|
3036
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3037
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3038
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3016
3039
|
// https://developers.cloudflare.com/pub-sub/
|
|
3017
3040
|
// PubSubMessage represents an incoming PubSub message.
|
|
3018
3041
|
// The message includes metadata about the broker, the client, and the payload
|
|
@@ -3047,6 +3070,9 @@ declare interface JsonWebKeyWithKid extends JsonWebKey {
|
|
|
3047
3070
|
// Key Identifier of the JWK
|
|
3048
3071
|
readonly kid: string;
|
|
3049
3072
|
}
|
|
3073
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3074
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3075
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3050
3076
|
declare module "cloudflare:sockets" {
|
|
3051
3077
|
function _connect(
|
|
3052
3078
|
address: string | SocketAddress,
|
|
@@ -3054,6 +3080,9 @@ declare module "cloudflare:sockets" {
|
|
|
3054
3080
|
): Socket;
|
|
3055
3081
|
export { _connect as connect };
|
|
3056
3082
|
}
|
|
3083
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3084
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3085
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3057
3086
|
// https://developers.cloudflare.com/cloudflare-for-platforms/workers-for-platforms/
|
|
3058
3087
|
declare interface DynamicDispatchLimits {
|
|
3059
3088
|
/**
|
package/oldest/index.ts
CHANGED
|
@@ -354,6 +354,17 @@ export interface Performance {
|
|
|
354
354
|
export interface DurableObject {
|
|
355
355
|
fetch(request: Request): Response | Promise<Response>;
|
|
356
356
|
alarm?(): void | Promise<void>;
|
|
357
|
+
webSocketMessage(
|
|
358
|
+
ws: WebSocket,
|
|
359
|
+
message: string | ArrayBuffer
|
|
360
|
+
): void | Promise<void>;
|
|
361
|
+
webSocketClose(
|
|
362
|
+
ws: WebSocket,
|
|
363
|
+
code: number,
|
|
364
|
+
reason: string,
|
|
365
|
+
wasClean: boolean
|
|
366
|
+
): void | Promise<void>;
|
|
367
|
+
webSocketError(ws: WebSocket, error: unknown): void | Promise<void>;
|
|
357
368
|
}
|
|
358
369
|
export interface DurableObjectStub extends Fetcher {
|
|
359
370
|
readonly id: DurableObjectId;
|
|
@@ -2884,6 +2895,9 @@ export type ContinentCode = "AF" | "AN" | "AS" | "EU" | "NA" | "OC" | "SA";
|
|
|
2884
2895
|
export type CfProperties<HostMetadata = unknown> =
|
|
2885
2896
|
| IncomingRequestCfProperties<HostMetadata>
|
|
2886
2897
|
| RequestInitCfProperties;
|
|
2898
|
+
// Copyright (c) 2022-2023 Cloudflare, Inc.
|
|
2899
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2900
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2887
2901
|
export interface D1Result<T = unknown> {
|
|
2888
2902
|
results: T[];
|
|
2889
2903
|
success: true;
|
|
@@ -2908,6 +2922,9 @@ export declare abstract class D1PreparedStatement {
|
|
|
2908
2922
|
all<T = unknown>(): Promise<D1Result<T[]>>;
|
|
2909
2923
|
raw<T = unknown>(): Promise<T[]>;
|
|
2910
2924
|
}
|
|
2925
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
2926
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2927
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2911
2928
|
/**
|
|
2912
2929
|
* An email message that can be sent from a Worker.
|
|
2913
2930
|
*/
|
|
@@ -2965,6 +2982,9 @@ export type EmailExportedHandler<Env = unknown> = (
|
|
|
2965
2982
|
env: Env,
|
|
2966
2983
|
ctx: ExecutionContext
|
|
2967
2984
|
) => void | Promise<void>;
|
|
2985
|
+
// Copyright (c) 2022-2023 Cloudflare, Inc.
|
|
2986
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
2987
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
2968
2988
|
export type Params<P extends string = any> = Record<P, string | string[]>;
|
|
2969
2989
|
export type EventContext<Env, P extends string, Data> = {
|
|
2970
2990
|
request: Request;
|
|
@@ -3008,6 +3028,9 @@ export type PagesPluginFunction<
|
|
|
3008
3028
|
> = (
|
|
3009
3029
|
context: EventPluginContext<Env, Params, Data, PluginArgs>
|
|
3010
3030
|
) => Response | Promise<Response>;
|
|
3031
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3032
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3033
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3011
3034
|
// https://developers.cloudflare.com/pub-sub/
|
|
3012
3035
|
// PubSubMessage represents an incoming PubSub message.
|
|
3013
3036
|
// The message includes metadata about the broker, the client, and the payload
|
|
@@ -3042,6 +3065,9 @@ export interface JsonWebKeyWithKid extends JsonWebKey {
|
|
|
3042
3065
|
// Key Identifier of the JWK
|
|
3043
3066
|
readonly kid: string;
|
|
3044
3067
|
}
|
|
3068
|
+
// Copyright (c) 2023 Cloudflare, Inc.
|
|
3069
|
+
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
3070
|
+
// https://opensource.org/licenses/Apache-2.0
|
|
3045
3071
|
// https://developers.cloudflare.com/cloudflare-for-platforms/workers-for-platforms/
|
|
3046
3072
|
export interface DynamicDispatchLimits {
|
|
3047
3073
|
/**
|
package/package.json
CHANGED