@cloudflare/workers-types 4.20260624.1 → 4.20260625.1
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 +63 -0
- package/2021-11-03/index.ts +66 -0
- package/2022-01-31/index.d.ts +63 -0
- package/2022-01-31/index.ts +66 -0
- package/2022-03-21/index.d.ts +63 -0
- package/2022-03-21/index.ts +66 -0
- package/2022-08-04/index.d.ts +63 -0
- package/2022-08-04/index.ts +66 -0
- package/2022-10-31/index.d.ts +63 -0
- package/2022-10-31/index.ts +66 -0
- package/2022-11-30/index.d.ts +63 -0
- package/2022-11-30/index.ts +66 -0
- package/2023-03-01/index.d.ts +63 -0
- package/2023-03-01/index.ts +66 -0
- package/2023-07-01/index.d.ts +63 -0
- package/2023-07-01/index.ts +66 -0
- package/experimental/index.d.ts +64 -0
- package/experimental/index.ts +67 -0
- package/index.d.ts +63 -0
- package/index.ts +66 -0
- package/latest/index.d.ts +63 -0
- package/latest/index.ts +66 -0
- package/oldest/index.d.ts +63 -0
- package/oldest/index.ts +66 -0
- package/package.json +1 -1
package/experimental/index.d.ts
CHANGED
|
@@ -4048,6 +4048,7 @@ interface ContainerStartupOptions {
|
|
|
4048
4048
|
}
|
|
4049
4049
|
interface ContainerInfo {
|
|
4050
4050
|
labels: Record<string, string>;
|
|
4051
|
+
image: string;
|
|
4051
4052
|
}
|
|
4052
4053
|
/**
|
|
4053
4054
|
* The **`FileSystemHandle`** interface of the File System API is an object which represents a file or directory entry.
|
|
@@ -12982,6 +12983,8 @@ interface RequestInitCfProperties extends Record<string, unknown> {
|
|
|
12982
12983
|
* (e.g. { '200-299': 86400, '404': 1, '500-599': 0 })
|
|
12983
12984
|
*/
|
|
12984
12985
|
cacheTtlByStatus?: Record<string, number>;
|
|
12986
|
+
/** Controls how responses with a `Vary` header are cached for this request. */
|
|
12987
|
+
vary?: RequestInitCfPropertiesVary;
|
|
12985
12988
|
/**
|
|
12986
12989
|
* Explicit Cache-Control header value to set on the response stored in cache.
|
|
12987
12990
|
* This gives full control over cache directives (e.g. 'public, max-age=3600, s-maxage=86400').
|
|
@@ -13050,6 +13053,67 @@ interface RequestInitCfProperties extends Record<string, unknown> {
|
|
|
13050
13053
|
*/
|
|
13051
13054
|
resolveOverride?: string;
|
|
13052
13055
|
}
|
|
13056
|
+
/**
|
|
13057
|
+
* Controls how Workers Standard Vary handles a request header listed by an
|
|
13058
|
+
* origin `Vary` response header:
|
|
13059
|
+
*
|
|
13060
|
+
* - `"normalize"`: normalize the request header value before it is used in the
|
|
13061
|
+
* cache variance key.
|
|
13062
|
+
* - `"passthrough"`: use the raw request header value in the cache variance
|
|
13063
|
+
* key.
|
|
13064
|
+
* - `"bypass"`: bypass cache when the header appears in the origin `Vary`
|
|
13065
|
+
* response header.
|
|
13066
|
+
*/
|
|
13067
|
+
type RequestInitCfPropertiesVaryAction = "normalize" | "passthrough" | "bypass";
|
|
13068
|
+
/** Configuration for Workers Standard Vary support. */
|
|
13069
|
+
interface RequestInitCfPropertiesVary {
|
|
13070
|
+
/** The fallback action for varied request headers not listed in `headers`. */
|
|
13071
|
+
default: RequestInitCfPropertiesVaryHeader;
|
|
13072
|
+
/**
|
|
13073
|
+
* Lowercase request header names and their Vary configuration.
|
|
13074
|
+
*
|
|
13075
|
+
* The `accept` header can include `media_types`, the `accept-language`
|
|
13076
|
+
* header can include `languages`, and other headers support only `action`.
|
|
13077
|
+
*/
|
|
13078
|
+
headers?: RequestInitCfPropertiesVaryHeaders;
|
|
13079
|
+
}
|
|
13080
|
+
/** Common Vary behavior for a single request header. */
|
|
13081
|
+
interface RequestInitCfPropertiesVaryHeader {
|
|
13082
|
+
/** How this request header contributes to cache variance. */
|
|
13083
|
+
action: RequestInitCfPropertiesVaryAction;
|
|
13084
|
+
}
|
|
13085
|
+
/** Vary behavior for the `accept` request header. */
|
|
13086
|
+
interface RequestInitCfPropertiesVaryAcceptHeader extends RequestInitCfPropertiesVaryHeader {
|
|
13087
|
+
/**
|
|
13088
|
+
* Media types to keep when normalizing the `Accept` request header.
|
|
13089
|
+
*
|
|
13090
|
+
* Named `media_types` to match the serialized `cf.vary` configuration.
|
|
13091
|
+
*/
|
|
13092
|
+
media_types?: string[];
|
|
13093
|
+
}
|
|
13094
|
+
/** Vary behavior for the `accept-language` request header. */
|
|
13095
|
+
interface RequestInitCfPropertiesVaryAcceptLanguageHeader extends RequestInitCfPropertiesVaryHeader {
|
|
13096
|
+
/**
|
|
13097
|
+
* Language tags to keep when normalizing the `Accept-Language` request
|
|
13098
|
+
* header.
|
|
13099
|
+
*/
|
|
13100
|
+
languages?: string[];
|
|
13101
|
+
}
|
|
13102
|
+
/**
|
|
13103
|
+
* Lowercase request header names and their Vary behavior.
|
|
13104
|
+
*
|
|
13105
|
+
* The index signature allows arbitrary custom request headers beyond the
|
|
13106
|
+
* well-known `accept` and `accept-language` specializations.
|
|
13107
|
+
*/
|
|
13108
|
+
interface RequestInitCfPropertiesVaryHeaders {
|
|
13109
|
+
accept?: RequestInitCfPropertiesVaryAcceptHeader;
|
|
13110
|
+
"accept-language"?: RequestInitCfPropertiesVaryAcceptLanguageHeader;
|
|
13111
|
+
[header: string]:
|
|
13112
|
+
| RequestInitCfPropertiesVaryHeader
|
|
13113
|
+
| RequestInitCfPropertiesVaryAcceptHeader
|
|
13114
|
+
| RequestInitCfPropertiesVaryAcceptLanguageHeader
|
|
13115
|
+
| undefined;
|
|
13116
|
+
}
|
|
13053
13117
|
interface BasicImageTransformations {
|
|
13054
13118
|
/**
|
|
13055
13119
|
* Maximum width in image pixels. The value must be an integer.
|
package/experimental/index.ts
CHANGED
|
@@ -4054,6 +4054,7 @@ export interface ContainerStartupOptions {
|
|
|
4054
4054
|
}
|
|
4055
4055
|
export interface ContainerInfo {
|
|
4056
4056
|
labels: Record<string, string>;
|
|
4057
|
+
image: string;
|
|
4057
4058
|
}
|
|
4058
4059
|
/**
|
|
4059
4060
|
* The **`FileSystemHandle`** interface of the File System API is an object which represents a file or directory entry.
|
|
@@ -12994,6 +12995,8 @@ export interface RequestInitCfProperties extends Record<string, unknown> {
|
|
|
12994
12995
|
* (e.g. { '200-299': 86400, '404': 1, '500-599': 0 })
|
|
12995
12996
|
*/
|
|
12996
12997
|
cacheTtlByStatus?: Record<string, number>;
|
|
12998
|
+
/** Controls how responses with a `Vary` header are cached for this request. */
|
|
12999
|
+
vary?: RequestInitCfPropertiesVary;
|
|
12997
13000
|
/**
|
|
12998
13001
|
* Explicit Cache-Control header value to set on the response stored in cache.
|
|
12999
13002
|
* This gives full control over cache directives (e.g. 'public, max-age=3600, s-maxage=86400').
|
|
@@ -13062,6 +13065,70 @@ export interface RequestInitCfProperties extends Record<string, unknown> {
|
|
|
13062
13065
|
*/
|
|
13063
13066
|
resolveOverride?: string;
|
|
13064
13067
|
}
|
|
13068
|
+
/**
|
|
13069
|
+
* Controls how Workers Standard Vary handles a request header listed by an
|
|
13070
|
+
* origin `Vary` response header:
|
|
13071
|
+
*
|
|
13072
|
+
* - `"normalize"`: normalize the request header value before it is used in the
|
|
13073
|
+
* cache variance key.
|
|
13074
|
+
* - `"passthrough"`: use the raw request header value in the cache variance
|
|
13075
|
+
* key.
|
|
13076
|
+
* - `"bypass"`: bypass cache when the header appears in the origin `Vary`
|
|
13077
|
+
* response header.
|
|
13078
|
+
*/
|
|
13079
|
+
export type RequestInitCfPropertiesVaryAction =
|
|
13080
|
+
| "normalize"
|
|
13081
|
+
| "passthrough"
|
|
13082
|
+
| "bypass";
|
|
13083
|
+
/** Configuration for Workers Standard Vary support. */
|
|
13084
|
+
export interface RequestInitCfPropertiesVary {
|
|
13085
|
+
/** The fallback action for varied request headers not listed in `headers`. */
|
|
13086
|
+
default: RequestInitCfPropertiesVaryHeader;
|
|
13087
|
+
/**
|
|
13088
|
+
* Lowercase request header names and their Vary configuration.
|
|
13089
|
+
*
|
|
13090
|
+
* The `accept` header can include `media_types`, the `accept-language`
|
|
13091
|
+
* header can include `languages`, and other headers support only `action`.
|
|
13092
|
+
*/
|
|
13093
|
+
headers?: RequestInitCfPropertiesVaryHeaders;
|
|
13094
|
+
}
|
|
13095
|
+
/** Common Vary behavior for a single request header. */
|
|
13096
|
+
export interface RequestInitCfPropertiesVaryHeader {
|
|
13097
|
+
/** How this request header contributes to cache variance. */
|
|
13098
|
+
action: RequestInitCfPropertiesVaryAction;
|
|
13099
|
+
}
|
|
13100
|
+
/** Vary behavior for the `accept` request header. */
|
|
13101
|
+
export interface RequestInitCfPropertiesVaryAcceptHeader extends RequestInitCfPropertiesVaryHeader {
|
|
13102
|
+
/**
|
|
13103
|
+
* Media types to keep when normalizing the `Accept` request header.
|
|
13104
|
+
*
|
|
13105
|
+
* Named `media_types` to match the serialized `cf.vary` configuration.
|
|
13106
|
+
*/
|
|
13107
|
+
media_types?: string[];
|
|
13108
|
+
}
|
|
13109
|
+
/** Vary behavior for the `accept-language` request header. */
|
|
13110
|
+
export interface RequestInitCfPropertiesVaryAcceptLanguageHeader extends RequestInitCfPropertiesVaryHeader {
|
|
13111
|
+
/**
|
|
13112
|
+
* Language tags to keep when normalizing the `Accept-Language` request
|
|
13113
|
+
* header.
|
|
13114
|
+
*/
|
|
13115
|
+
languages?: string[];
|
|
13116
|
+
}
|
|
13117
|
+
/**
|
|
13118
|
+
* Lowercase request header names and their Vary behavior.
|
|
13119
|
+
*
|
|
13120
|
+
* The index signature allows arbitrary custom request headers beyond the
|
|
13121
|
+
* well-known `accept` and `accept-language` specializations.
|
|
13122
|
+
*/
|
|
13123
|
+
export interface RequestInitCfPropertiesVaryHeaders {
|
|
13124
|
+
accept?: RequestInitCfPropertiesVaryAcceptHeader;
|
|
13125
|
+
"accept-language"?: RequestInitCfPropertiesVaryAcceptLanguageHeader;
|
|
13126
|
+
[header: string]:
|
|
13127
|
+
| RequestInitCfPropertiesVaryHeader
|
|
13128
|
+
| RequestInitCfPropertiesVaryAcceptHeader
|
|
13129
|
+
| RequestInitCfPropertiesVaryAcceptLanguageHeader
|
|
13130
|
+
| undefined;
|
|
13131
|
+
}
|
|
13065
13132
|
export interface BasicImageTransformations {
|
|
13066
13133
|
/**
|
|
13067
13134
|
* Maximum width in image pixels. The value must be an integer.
|
package/index.d.ts
CHANGED
|
@@ -12194,6 +12194,8 @@ interface RequestInitCfProperties extends Record<string, unknown> {
|
|
|
12194
12194
|
* (e.g. { '200-299': 86400, '404': 1, '500-599': 0 })
|
|
12195
12195
|
*/
|
|
12196
12196
|
cacheTtlByStatus?: Record<string, number>;
|
|
12197
|
+
/** Controls how responses with a `Vary` header are cached for this request. */
|
|
12198
|
+
vary?: RequestInitCfPropertiesVary;
|
|
12197
12199
|
/**
|
|
12198
12200
|
* Explicit Cache-Control header value to set on the response stored in cache.
|
|
12199
12201
|
* This gives full control over cache directives (e.g. 'public, max-age=3600, s-maxage=86400').
|
|
@@ -12262,6 +12264,67 @@ interface RequestInitCfProperties extends Record<string, unknown> {
|
|
|
12262
12264
|
*/
|
|
12263
12265
|
resolveOverride?: string;
|
|
12264
12266
|
}
|
|
12267
|
+
/**
|
|
12268
|
+
* Controls how Workers Standard Vary handles a request header listed by an
|
|
12269
|
+
* origin `Vary` response header:
|
|
12270
|
+
*
|
|
12271
|
+
* - `"normalize"`: normalize the request header value before it is used in the
|
|
12272
|
+
* cache variance key.
|
|
12273
|
+
* - `"passthrough"`: use the raw request header value in the cache variance
|
|
12274
|
+
* key.
|
|
12275
|
+
* - `"bypass"`: bypass cache when the header appears in the origin `Vary`
|
|
12276
|
+
* response header.
|
|
12277
|
+
*/
|
|
12278
|
+
type RequestInitCfPropertiesVaryAction = "normalize" | "passthrough" | "bypass";
|
|
12279
|
+
/** Configuration for Workers Standard Vary support. */
|
|
12280
|
+
interface RequestInitCfPropertiesVary {
|
|
12281
|
+
/** The fallback action for varied request headers not listed in `headers`. */
|
|
12282
|
+
default: RequestInitCfPropertiesVaryHeader;
|
|
12283
|
+
/**
|
|
12284
|
+
* Lowercase request header names and their Vary configuration.
|
|
12285
|
+
*
|
|
12286
|
+
* The `accept` header can include `media_types`, the `accept-language`
|
|
12287
|
+
* header can include `languages`, and other headers support only `action`.
|
|
12288
|
+
*/
|
|
12289
|
+
headers?: RequestInitCfPropertiesVaryHeaders;
|
|
12290
|
+
}
|
|
12291
|
+
/** Common Vary behavior for a single request header. */
|
|
12292
|
+
interface RequestInitCfPropertiesVaryHeader {
|
|
12293
|
+
/** How this request header contributes to cache variance. */
|
|
12294
|
+
action: RequestInitCfPropertiesVaryAction;
|
|
12295
|
+
}
|
|
12296
|
+
/** Vary behavior for the `accept` request header. */
|
|
12297
|
+
interface RequestInitCfPropertiesVaryAcceptHeader extends RequestInitCfPropertiesVaryHeader {
|
|
12298
|
+
/**
|
|
12299
|
+
* Media types to keep when normalizing the `Accept` request header.
|
|
12300
|
+
*
|
|
12301
|
+
* Named `media_types` to match the serialized `cf.vary` configuration.
|
|
12302
|
+
*/
|
|
12303
|
+
media_types?: string[];
|
|
12304
|
+
}
|
|
12305
|
+
/** Vary behavior for the `accept-language` request header. */
|
|
12306
|
+
interface RequestInitCfPropertiesVaryAcceptLanguageHeader extends RequestInitCfPropertiesVaryHeader {
|
|
12307
|
+
/**
|
|
12308
|
+
* Language tags to keep when normalizing the `Accept-Language` request
|
|
12309
|
+
* header.
|
|
12310
|
+
*/
|
|
12311
|
+
languages?: string[];
|
|
12312
|
+
}
|
|
12313
|
+
/**
|
|
12314
|
+
* Lowercase request header names and their Vary behavior.
|
|
12315
|
+
*
|
|
12316
|
+
* The index signature allows arbitrary custom request headers beyond the
|
|
12317
|
+
* well-known `accept` and `accept-language` specializations.
|
|
12318
|
+
*/
|
|
12319
|
+
interface RequestInitCfPropertiesVaryHeaders {
|
|
12320
|
+
accept?: RequestInitCfPropertiesVaryAcceptHeader;
|
|
12321
|
+
"accept-language"?: RequestInitCfPropertiesVaryAcceptLanguageHeader;
|
|
12322
|
+
[header: string]:
|
|
12323
|
+
| RequestInitCfPropertiesVaryHeader
|
|
12324
|
+
| RequestInitCfPropertiesVaryAcceptHeader
|
|
12325
|
+
| RequestInitCfPropertiesVaryAcceptLanguageHeader
|
|
12326
|
+
| undefined;
|
|
12327
|
+
}
|
|
12265
12328
|
interface BasicImageTransformations {
|
|
12266
12329
|
/**
|
|
12267
12330
|
* Maximum width in image pixels. The value must be an integer.
|
package/index.ts
CHANGED
|
@@ -12206,6 +12206,8 @@ export interface RequestInitCfProperties extends Record<string, unknown> {
|
|
|
12206
12206
|
* (e.g. { '200-299': 86400, '404': 1, '500-599': 0 })
|
|
12207
12207
|
*/
|
|
12208
12208
|
cacheTtlByStatus?: Record<string, number>;
|
|
12209
|
+
/** Controls how responses with a `Vary` header are cached for this request. */
|
|
12210
|
+
vary?: RequestInitCfPropertiesVary;
|
|
12209
12211
|
/**
|
|
12210
12212
|
* Explicit Cache-Control header value to set on the response stored in cache.
|
|
12211
12213
|
* This gives full control over cache directives (e.g. 'public, max-age=3600, s-maxage=86400').
|
|
@@ -12274,6 +12276,70 @@ export interface RequestInitCfProperties extends Record<string, unknown> {
|
|
|
12274
12276
|
*/
|
|
12275
12277
|
resolveOverride?: string;
|
|
12276
12278
|
}
|
|
12279
|
+
/**
|
|
12280
|
+
* Controls how Workers Standard Vary handles a request header listed by an
|
|
12281
|
+
* origin `Vary` response header:
|
|
12282
|
+
*
|
|
12283
|
+
* - `"normalize"`: normalize the request header value before it is used in the
|
|
12284
|
+
* cache variance key.
|
|
12285
|
+
* - `"passthrough"`: use the raw request header value in the cache variance
|
|
12286
|
+
* key.
|
|
12287
|
+
* - `"bypass"`: bypass cache when the header appears in the origin `Vary`
|
|
12288
|
+
* response header.
|
|
12289
|
+
*/
|
|
12290
|
+
export type RequestInitCfPropertiesVaryAction =
|
|
12291
|
+
| "normalize"
|
|
12292
|
+
| "passthrough"
|
|
12293
|
+
| "bypass";
|
|
12294
|
+
/** Configuration for Workers Standard Vary support. */
|
|
12295
|
+
export interface RequestInitCfPropertiesVary {
|
|
12296
|
+
/** The fallback action for varied request headers not listed in `headers`. */
|
|
12297
|
+
default: RequestInitCfPropertiesVaryHeader;
|
|
12298
|
+
/**
|
|
12299
|
+
* Lowercase request header names and their Vary configuration.
|
|
12300
|
+
*
|
|
12301
|
+
* The `accept` header can include `media_types`, the `accept-language`
|
|
12302
|
+
* header can include `languages`, and other headers support only `action`.
|
|
12303
|
+
*/
|
|
12304
|
+
headers?: RequestInitCfPropertiesVaryHeaders;
|
|
12305
|
+
}
|
|
12306
|
+
/** Common Vary behavior for a single request header. */
|
|
12307
|
+
export interface RequestInitCfPropertiesVaryHeader {
|
|
12308
|
+
/** How this request header contributes to cache variance. */
|
|
12309
|
+
action: RequestInitCfPropertiesVaryAction;
|
|
12310
|
+
}
|
|
12311
|
+
/** Vary behavior for the `accept` request header. */
|
|
12312
|
+
export interface RequestInitCfPropertiesVaryAcceptHeader extends RequestInitCfPropertiesVaryHeader {
|
|
12313
|
+
/**
|
|
12314
|
+
* Media types to keep when normalizing the `Accept` request header.
|
|
12315
|
+
*
|
|
12316
|
+
* Named `media_types` to match the serialized `cf.vary` configuration.
|
|
12317
|
+
*/
|
|
12318
|
+
media_types?: string[];
|
|
12319
|
+
}
|
|
12320
|
+
/** Vary behavior for the `accept-language` request header. */
|
|
12321
|
+
export interface RequestInitCfPropertiesVaryAcceptLanguageHeader extends RequestInitCfPropertiesVaryHeader {
|
|
12322
|
+
/**
|
|
12323
|
+
* Language tags to keep when normalizing the `Accept-Language` request
|
|
12324
|
+
* header.
|
|
12325
|
+
*/
|
|
12326
|
+
languages?: string[];
|
|
12327
|
+
}
|
|
12328
|
+
/**
|
|
12329
|
+
* Lowercase request header names and their Vary behavior.
|
|
12330
|
+
*
|
|
12331
|
+
* The index signature allows arbitrary custom request headers beyond the
|
|
12332
|
+
* well-known `accept` and `accept-language` specializations.
|
|
12333
|
+
*/
|
|
12334
|
+
export interface RequestInitCfPropertiesVaryHeaders {
|
|
12335
|
+
accept?: RequestInitCfPropertiesVaryAcceptHeader;
|
|
12336
|
+
"accept-language"?: RequestInitCfPropertiesVaryAcceptLanguageHeader;
|
|
12337
|
+
[header: string]:
|
|
12338
|
+
| RequestInitCfPropertiesVaryHeader
|
|
12339
|
+
| RequestInitCfPropertiesVaryAcceptHeader
|
|
12340
|
+
| RequestInitCfPropertiesVaryAcceptLanguageHeader
|
|
12341
|
+
| undefined;
|
|
12342
|
+
}
|
|
12277
12343
|
export interface BasicImageTransformations {
|
|
12278
12344
|
/**
|
|
12279
12345
|
* Maximum width in image pixels. The value must be an integer.
|
package/latest/index.d.ts
CHANGED
|
@@ -12335,6 +12335,8 @@ interface RequestInitCfProperties extends Record<string, unknown> {
|
|
|
12335
12335
|
* (e.g. { '200-299': 86400, '404': 1, '500-599': 0 })
|
|
12336
12336
|
*/
|
|
12337
12337
|
cacheTtlByStatus?: Record<string, number>;
|
|
12338
|
+
/** Controls how responses with a `Vary` header are cached for this request. */
|
|
12339
|
+
vary?: RequestInitCfPropertiesVary;
|
|
12338
12340
|
/**
|
|
12339
12341
|
* Explicit Cache-Control header value to set on the response stored in cache.
|
|
12340
12342
|
* This gives full control over cache directives (e.g. 'public, max-age=3600, s-maxage=86400').
|
|
@@ -12403,6 +12405,67 @@ interface RequestInitCfProperties extends Record<string, unknown> {
|
|
|
12403
12405
|
*/
|
|
12404
12406
|
resolveOverride?: string;
|
|
12405
12407
|
}
|
|
12408
|
+
/**
|
|
12409
|
+
* Controls how Workers Standard Vary handles a request header listed by an
|
|
12410
|
+
* origin `Vary` response header:
|
|
12411
|
+
*
|
|
12412
|
+
* - `"normalize"`: normalize the request header value before it is used in the
|
|
12413
|
+
* cache variance key.
|
|
12414
|
+
* - `"passthrough"`: use the raw request header value in the cache variance
|
|
12415
|
+
* key.
|
|
12416
|
+
* - `"bypass"`: bypass cache when the header appears in the origin `Vary`
|
|
12417
|
+
* response header.
|
|
12418
|
+
*/
|
|
12419
|
+
type RequestInitCfPropertiesVaryAction = "normalize" | "passthrough" | "bypass";
|
|
12420
|
+
/** Configuration for Workers Standard Vary support. */
|
|
12421
|
+
interface RequestInitCfPropertiesVary {
|
|
12422
|
+
/** The fallback action for varied request headers not listed in `headers`. */
|
|
12423
|
+
default: RequestInitCfPropertiesVaryHeader;
|
|
12424
|
+
/**
|
|
12425
|
+
* Lowercase request header names and their Vary configuration.
|
|
12426
|
+
*
|
|
12427
|
+
* The `accept` header can include `media_types`, the `accept-language`
|
|
12428
|
+
* header can include `languages`, and other headers support only `action`.
|
|
12429
|
+
*/
|
|
12430
|
+
headers?: RequestInitCfPropertiesVaryHeaders;
|
|
12431
|
+
}
|
|
12432
|
+
/** Common Vary behavior for a single request header. */
|
|
12433
|
+
interface RequestInitCfPropertiesVaryHeader {
|
|
12434
|
+
/** How this request header contributes to cache variance. */
|
|
12435
|
+
action: RequestInitCfPropertiesVaryAction;
|
|
12436
|
+
}
|
|
12437
|
+
/** Vary behavior for the `accept` request header. */
|
|
12438
|
+
interface RequestInitCfPropertiesVaryAcceptHeader extends RequestInitCfPropertiesVaryHeader {
|
|
12439
|
+
/**
|
|
12440
|
+
* Media types to keep when normalizing the `Accept` request header.
|
|
12441
|
+
*
|
|
12442
|
+
* Named `media_types` to match the serialized `cf.vary` configuration.
|
|
12443
|
+
*/
|
|
12444
|
+
media_types?: string[];
|
|
12445
|
+
}
|
|
12446
|
+
/** Vary behavior for the `accept-language` request header. */
|
|
12447
|
+
interface RequestInitCfPropertiesVaryAcceptLanguageHeader extends RequestInitCfPropertiesVaryHeader {
|
|
12448
|
+
/**
|
|
12449
|
+
* Language tags to keep when normalizing the `Accept-Language` request
|
|
12450
|
+
* header.
|
|
12451
|
+
*/
|
|
12452
|
+
languages?: string[];
|
|
12453
|
+
}
|
|
12454
|
+
/**
|
|
12455
|
+
* Lowercase request header names and their Vary behavior.
|
|
12456
|
+
*
|
|
12457
|
+
* The index signature allows arbitrary custom request headers beyond the
|
|
12458
|
+
* well-known `accept` and `accept-language` specializations.
|
|
12459
|
+
*/
|
|
12460
|
+
interface RequestInitCfPropertiesVaryHeaders {
|
|
12461
|
+
accept?: RequestInitCfPropertiesVaryAcceptHeader;
|
|
12462
|
+
"accept-language"?: RequestInitCfPropertiesVaryAcceptLanguageHeader;
|
|
12463
|
+
[header: string]:
|
|
12464
|
+
| RequestInitCfPropertiesVaryHeader
|
|
12465
|
+
| RequestInitCfPropertiesVaryAcceptHeader
|
|
12466
|
+
| RequestInitCfPropertiesVaryAcceptLanguageHeader
|
|
12467
|
+
| undefined;
|
|
12468
|
+
}
|
|
12406
12469
|
interface BasicImageTransformations {
|
|
12407
12470
|
/**
|
|
12408
12471
|
* Maximum width in image pixels. The value must be an integer.
|
package/latest/index.ts
CHANGED
|
@@ -12347,6 +12347,8 @@ export interface RequestInitCfProperties extends Record<string, unknown> {
|
|
|
12347
12347
|
* (e.g. { '200-299': 86400, '404': 1, '500-599': 0 })
|
|
12348
12348
|
*/
|
|
12349
12349
|
cacheTtlByStatus?: Record<string, number>;
|
|
12350
|
+
/** Controls how responses with a `Vary` header are cached for this request. */
|
|
12351
|
+
vary?: RequestInitCfPropertiesVary;
|
|
12350
12352
|
/**
|
|
12351
12353
|
* Explicit Cache-Control header value to set on the response stored in cache.
|
|
12352
12354
|
* This gives full control over cache directives (e.g. 'public, max-age=3600, s-maxage=86400').
|
|
@@ -12415,6 +12417,70 @@ export interface RequestInitCfProperties extends Record<string, unknown> {
|
|
|
12415
12417
|
*/
|
|
12416
12418
|
resolveOverride?: string;
|
|
12417
12419
|
}
|
|
12420
|
+
/**
|
|
12421
|
+
* Controls how Workers Standard Vary handles a request header listed by an
|
|
12422
|
+
* origin `Vary` response header:
|
|
12423
|
+
*
|
|
12424
|
+
* - `"normalize"`: normalize the request header value before it is used in the
|
|
12425
|
+
* cache variance key.
|
|
12426
|
+
* - `"passthrough"`: use the raw request header value in the cache variance
|
|
12427
|
+
* key.
|
|
12428
|
+
* - `"bypass"`: bypass cache when the header appears in the origin `Vary`
|
|
12429
|
+
* response header.
|
|
12430
|
+
*/
|
|
12431
|
+
export type RequestInitCfPropertiesVaryAction =
|
|
12432
|
+
| "normalize"
|
|
12433
|
+
| "passthrough"
|
|
12434
|
+
| "bypass";
|
|
12435
|
+
/** Configuration for Workers Standard Vary support. */
|
|
12436
|
+
export interface RequestInitCfPropertiesVary {
|
|
12437
|
+
/** The fallback action for varied request headers not listed in `headers`. */
|
|
12438
|
+
default: RequestInitCfPropertiesVaryHeader;
|
|
12439
|
+
/**
|
|
12440
|
+
* Lowercase request header names and their Vary configuration.
|
|
12441
|
+
*
|
|
12442
|
+
* The `accept` header can include `media_types`, the `accept-language`
|
|
12443
|
+
* header can include `languages`, and other headers support only `action`.
|
|
12444
|
+
*/
|
|
12445
|
+
headers?: RequestInitCfPropertiesVaryHeaders;
|
|
12446
|
+
}
|
|
12447
|
+
/** Common Vary behavior for a single request header. */
|
|
12448
|
+
export interface RequestInitCfPropertiesVaryHeader {
|
|
12449
|
+
/** How this request header contributes to cache variance. */
|
|
12450
|
+
action: RequestInitCfPropertiesVaryAction;
|
|
12451
|
+
}
|
|
12452
|
+
/** Vary behavior for the `accept` request header. */
|
|
12453
|
+
export interface RequestInitCfPropertiesVaryAcceptHeader extends RequestInitCfPropertiesVaryHeader {
|
|
12454
|
+
/**
|
|
12455
|
+
* Media types to keep when normalizing the `Accept` request header.
|
|
12456
|
+
*
|
|
12457
|
+
* Named `media_types` to match the serialized `cf.vary` configuration.
|
|
12458
|
+
*/
|
|
12459
|
+
media_types?: string[];
|
|
12460
|
+
}
|
|
12461
|
+
/** Vary behavior for the `accept-language` request header. */
|
|
12462
|
+
export interface RequestInitCfPropertiesVaryAcceptLanguageHeader extends RequestInitCfPropertiesVaryHeader {
|
|
12463
|
+
/**
|
|
12464
|
+
* Language tags to keep when normalizing the `Accept-Language` request
|
|
12465
|
+
* header.
|
|
12466
|
+
*/
|
|
12467
|
+
languages?: string[];
|
|
12468
|
+
}
|
|
12469
|
+
/**
|
|
12470
|
+
* Lowercase request header names and their Vary behavior.
|
|
12471
|
+
*
|
|
12472
|
+
* The index signature allows arbitrary custom request headers beyond the
|
|
12473
|
+
* well-known `accept` and `accept-language` specializations.
|
|
12474
|
+
*/
|
|
12475
|
+
export interface RequestInitCfPropertiesVaryHeaders {
|
|
12476
|
+
accept?: RequestInitCfPropertiesVaryAcceptHeader;
|
|
12477
|
+
"accept-language"?: RequestInitCfPropertiesVaryAcceptLanguageHeader;
|
|
12478
|
+
[header: string]:
|
|
12479
|
+
| RequestInitCfPropertiesVaryHeader
|
|
12480
|
+
| RequestInitCfPropertiesVaryAcceptHeader
|
|
12481
|
+
| RequestInitCfPropertiesVaryAcceptLanguageHeader
|
|
12482
|
+
| undefined;
|
|
12483
|
+
}
|
|
12418
12484
|
export interface BasicImageTransformations {
|
|
12419
12485
|
/**
|
|
12420
12486
|
* Maximum width in image pixels. The value must be an integer.
|
package/oldest/index.d.ts
CHANGED
|
@@ -12194,6 +12194,8 @@ interface RequestInitCfProperties extends Record<string, unknown> {
|
|
|
12194
12194
|
* (e.g. { '200-299': 86400, '404': 1, '500-599': 0 })
|
|
12195
12195
|
*/
|
|
12196
12196
|
cacheTtlByStatus?: Record<string, number>;
|
|
12197
|
+
/** Controls how responses with a `Vary` header are cached for this request. */
|
|
12198
|
+
vary?: RequestInitCfPropertiesVary;
|
|
12197
12199
|
/**
|
|
12198
12200
|
* Explicit Cache-Control header value to set on the response stored in cache.
|
|
12199
12201
|
* This gives full control over cache directives (e.g. 'public, max-age=3600, s-maxage=86400').
|
|
@@ -12262,6 +12264,67 @@ interface RequestInitCfProperties extends Record<string, unknown> {
|
|
|
12262
12264
|
*/
|
|
12263
12265
|
resolveOverride?: string;
|
|
12264
12266
|
}
|
|
12267
|
+
/**
|
|
12268
|
+
* Controls how Workers Standard Vary handles a request header listed by an
|
|
12269
|
+
* origin `Vary` response header:
|
|
12270
|
+
*
|
|
12271
|
+
* - `"normalize"`: normalize the request header value before it is used in the
|
|
12272
|
+
* cache variance key.
|
|
12273
|
+
* - `"passthrough"`: use the raw request header value in the cache variance
|
|
12274
|
+
* key.
|
|
12275
|
+
* - `"bypass"`: bypass cache when the header appears in the origin `Vary`
|
|
12276
|
+
* response header.
|
|
12277
|
+
*/
|
|
12278
|
+
type RequestInitCfPropertiesVaryAction = "normalize" | "passthrough" | "bypass";
|
|
12279
|
+
/** Configuration for Workers Standard Vary support. */
|
|
12280
|
+
interface RequestInitCfPropertiesVary {
|
|
12281
|
+
/** The fallback action for varied request headers not listed in `headers`. */
|
|
12282
|
+
default: RequestInitCfPropertiesVaryHeader;
|
|
12283
|
+
/**
|
|
12284
|
+
* Lowercase request header names and their Vary configuration.
|
|
12285
|
+
*
|
|
12286
|
+
* The `accept` header can include `media_types`, the `accept-language`
|
|
12287
|
+
* header can include `languages`, and other headers support only `action`.
|
|
12288
|
+
*/
|
|
12289
|
+
headers?: RequestInitCfPropertiesVaryHeaders;
|
|
12290
|
+
}
|
|
12291
|
+
/** Common Vary behavior for a single request header. */
|
|
12292
|
+
interface RequestInitCfPropertiesVaryHeader {
|
|
12293
|
+
/** How this request header contributes to cache variance. */
|
|
12294
|
+
action: RequestInitCfPropertiesVaryAction;
|
|
12295
|
+
}
|
|
12296
|
+
/** Vary behavior for the `accept` request header. */
|
|
12297
|
+
interface RequestInitCfPropertiesVaryAcceptHeader extends RequestInitCfPropertiesVaryHeader {
|
|
12298
|
+
/**
|
|
12299
|
+
* Media types to keep when normalizing the `Accept` request header.
|
|
12300
|
+
*
|
|
12301
|
+
* Named `media_types` to match the serialized `cf.vary` configuration.
|
|
12302
|
+
*/
|
|
12303
|
+
media_types?: string[];
|
|
12304
|
+
}
|
|
12305
|
+
/** Vary behavior for the `accept-language` request header. */
|
|
12306
|
+
interface RequestInitCfPropertiesVaryAcceptLanguageHeader extends RequestInitCfPropertiesVaryHeader {
|
|
12307
|
+
/**
|
|
12308
|
+
* Language tags to keep when normalizing the `Accept-Language` request
|
|
12309
|
+
* header.
|
|
12310
|
+
*/
|
|
12311
|
+
languages?: string[];
|
|
12312
|
+
}
|
|
12313
|
+
/**
|
|
12314
|
+
* Lowercase request header names and their Vary behavior.
|
|
12315
|
+
*
|
|
12316
|
+
* The index signature allows arbitrary custom request headers beyond the
|
|
12317
|
+
* well-known `accept` and `accept-language` specializations.
|
|
12318
|
+
*/
|
|
12319
|
+
interface RequestInitCfPropertiesVaryHeaders {
|
|
12320
|
+
accept?: RequestInitCfPropertiesVaryAcceptHeader;
|
|
12321
|
+
"accept-language"?: RequestInitCfPropertiesVaryAcceptLanguageHeader;
|
|
12322
|
+
[header: string]:
|
|
12323
|
+
| RequestInitCfPropertiesVaryHeader
|
|
12324
|
+
| RequestInitCfPropertiesVaryAcceptHeader
|
|
12325
|
+
| RequestInitCfPropertiesVaryAcceptLanguageHeader
|
|
12326
|
+
| undefined;
|
|
12327
|
+
}
|
|
12265
12328
|
interface BasicImageTransformations {
|
|
12266
12329
|
/**
|
|
12267
12330
|
* Maximum width in image pixels. The value must be an integer.
|
package/oldest/index.ts
CHANGED
|
@@ -12206,6 +12206,8 @@ export interface RequestInitCfProperties extends Record<string, unknown> {
|
|
|
12206
12206
|
* (e.g. { '200-299': 86400, '404': 1, '500-599': 0 })
|
|
12207
12207
|
*/
|
|
12208
12208
|
cacheTtlByStatus?: Record<string, number>;
|
|
12209
|
+
/** Controls how responses with a `Vary` header are cached for this request. */
|
|
12210
|
+
vary?: RequestInitCfPropertiesVary;
|
|
12209
12211
|
/**
|
|
12210
12212
|
* Explicit Cache-Control header value to set on the response stored in cache.
|
|
12211
12213
|
* This gives full control over cache directives (e.g. 'public, max-age=3600, s-maxage=86400').
|
|
@@ -12274,6 +12276,70 @@ export interface RequestInitCfProperties extends Record<string, unknown> {
|
|
|
12274
12276
|
*/
|
|
12275
12277
|
resolveOverride?: string;
|
|
12276
12278
|
}
|
|
12279
|
+
/**
|
|
12280
|
+
* Controls how Workers Standard Vary handles a request header listed by an
|
|
12281
|
+
* origin `Vary` response header:
|
|
12282
|
+
*
|
|
12283
|
+
* - `"normalize"`: normalize the request header value before it is used in the
|
|
12284
|
+
* cache variance key.
|
|
12285
|
+
* - `"passthrough"`: use the raw request header value in the cache variance
|
|
12286
|
+
* key.
|
|
12287
|
+
* - `"bypass"`: bypass cache when the header appears in the origin `Vary`
|
|
12288
|
+
* response header.
|
|
12289
|
+
*/
|
|
12290
|
+
export type RequestInitCfPropertiesVaryAction =
|
|
12291
|
+
| "normalize"
|
|
12292
|
+
| "passthrough"
|
|
12293
|
+
| "bypass";
|
|
12294
|
+
/** Configuration for Workers Standard Vary support. */
|
|
12295
|
+
export interface RequestInitCfPropertiesVary {
|
|
12296
|
+
/** The fallback action for varied request headers not listed in `headers`. */
|
|
12297
|
+
default: RequestInitCfPropertiesVaryHeader;
|
|
12298
|
+
/**
|
|
12299
|
+
* Lowercase request header names and their Vary configuration.
|
|
12300
|
+
*
|
|
12301
|
+
* The `accept` header can include `media_types`, the `accept-language`
|
|
12302
|
+
* header can include `languages`, and other headers support only `action`.
|
|
12303
|
+
*/
|
|
12304
|
+
headers?: RequestInitCfPropertiesVaryHeaders;
|
|
12305
|
+
}
|
|
12306
|
+
/** Common Vary behavior for a single request header. */
|
|
12307
|
+
export interface RequestInitCfPropertiesVaryHeader {
|
|
12308
|
+
/** How this request header contributes to cache variance. */
|
|
12309
|
+
action: RequestInitCfPropertiesVaryAction;
|
|
12310
|
+
}
|
|
12311
|
+
/** Vary behavior for the `accept` request header. */
|
|
12312
|
+
export interface RequestInitCfPropertiesVaryAcceptHeader extends RequestInitCfPropertiesVaryHeader {
|
|
12313
|
+
/**
|
|
12314
|
+
* Media types to keep when normalizing the `Accept` request header.
|
|
12315
|
+
*
|
|
12316
|
+
* Named `media_types` to match the serialized `cf.vary` configuration.
|
|
12317
|
+
*/
|
|
12318
|
+
media_types?: string[];
|
|
12319
|
+
}
|
|
12320
|
+
/** Vary behavior for the `accept-language` request header. */
|
|
12321
|
+
export interface RequestInitCfPropertiesVaryAcceptLanguageHeader extends RequestInitCfPropertiesVaryHeader {
|
|
12322
|
+
/**
|
|
12323
|
+
* Language tags to keep when normalizing the `Accept-Language` request
|
|
12324
|
+
* header.
|
|
12325
|
+
*/
|
|
12326
|
+
languages?: string[];
|
|
12327
|
+
}
|
|
12328
|
+
/**
|
|
12329
|
+
* Lowercase request header names and their Vary behavior.
|
|
12330
|
+
*
|
|
12331
|
+
* The index signature allows arbitrary custom request headers beyond the
|
|
12332
|
+
* well-known `accept` and `accept-language` specializations.
|
|
12333
|
+
*/
|
|
12334
|
+
export interface RequestInitCfPropertiesVaryHeaders {
|
|
12335
|
+
accept?: RequestInitCfPropertiesVaryAcceptHeader;
|
|
12336
|
+
"accept-language"?: RequestInitCfPropertiesVaryAcceptLanguageHeader;
|
|
12337
|
+
[header: string]:
|
|
12338
|
+
| RequestInitCfPropertiesVaryHeader
|
|
12339
|
+
| RequestInitCfPropertiesVaryAcceptHeader
|
|
12340
|
+
| RequestInitCfPropertiesVaryAcceptLanguageHeader
|
|
12341
|
+
| undefined;
|
|
12342
|
+
}
|
|
12277
12343
|
export interface BasicImageTransformations {
|
|
12278
12344
|
/**
|
|
12279
12345
|
* Maximum width in image pixels. The value must be an integer.
|
package/package.json
CHANGED