@cloudflare/workers-types 4.20250303.0 → 4.20250310.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 -1
- package/2021-11-03/index.ts +28 -1
- package/2022-01-31/index.d.ts +29 -1
- package/2022-01-31/index.ts +28 -1
- package/2022-03-21/index.d.ts +29 -1
- package/2022-03-21/index.ts +28 -1
- package/2022-08-04/index.d.ts +29 -1
- package/2022-08-04/index.ts +28 -1
- package/2022-10-31/index.d.ts +29 -1
- package/2022-10-31/index.ts +28 -1
- package/2022-11-30/index.d.ts +29 -1
- package/2022-11-30/index.ts +28 -1
- package/2023-03-01/index.d.ts +29 -1
- package/2023-03-01/index.ts +28 -1
- package/2023-07-01/index.d.ts +29 -1
- package/2023-07-01/index.ts +28 -1
- package/experimental/index.d.ts +29 -1
- package/experimental/index.ts +28 -1
- package/index.d.ts +29 -1
- package/index.ts +28 -1
- package/oldest/index.d.ts +29 -1
- package/oldest/index.ts +28 -1
- package/package.json +1 -1
package/2021-11-03/index.d.ts
CHANGED
|
@@ -3849,7 +3849,7 @@ interface Ai_Cf_Openai_Whisper_Large_V3_Turbo_Output {
|
|
|
3849
3849
|
*/
|
|
3850
3850
|
end?: number;
|
|
3851
3851
|
}[];
|
|
3852
|
-
};
|
|
3852
|
+
}[];
|
|
3853
3853
|
/**
|
|
3854
3854
|
* The transcription in WebVTT format, which includes timing and text information for use in subtitles.
|
|
3855
3855
|
*/
|
|
@@ -4239,6 +4239,13 @@ type AiOptions = {
|
|
|
4239
4239
|
prefix?: string;
|
|
4240
4240
|
extraHeaders?: object;
|
|
4241
4241
|
};
|
|
4242
|
+
type ConversionResponse = {
|
|
4243
|
+
name: string;
|
|
4244
|
+
mimeType: string;
|
|
4245
|
+
format: "markdown";
|
|
4246
|
+
tokens: number;
|
|
4247
|
+
data: string;
|
|
4248
|
+
};
|
|
4242
4249
|
type AiModelsSearchParams = {
|
|
4243
4250
|
author?: string;
|
|
4244
4251
|
hide_experimental?: boolean;
|
|
@@ -4282,6 +4289,24 @@ declare abstract class Ai<AiModelList extends AiModelListType = AiModels> {
|
|
|
4282
4289
|
: AiModelList[Name]["postProcessedOutputs"]
|
|
4283
4290
|
>;
|
|
4284
4291
|
public models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
|
|
4292
|
+
public toMarkdown(
|
|
4293
|
+
files: {
|
|
4294
|
+
name: string;
|
|
4295
|
+
blob: Blob;
|
|
4296
|
+
}[],
|
|
4297
|
+
options?: {
|
|
4298
|
+
gateway?: GatewayOptions;
|
|
4299
|
+
},
|
|
4300
|
+
): Promise<ConversionResponse[]>;
|
|
4301
|
+
public toMarkdown(
|
|
4302
|
+
files: {
|
|
4303
|
+
name: string;
|
|
4304
|
+
blob: Blob;
|
|
4305
|
+
},
|
|
4306
|
+
options?: {
|
|
4307
|
+
gateway?: GatewayOptions;
|
|
4308
|
+
},
|
|
4309
|
+
): Promise<ConversionResponse>;
|
|
4285
4310
|
}
|
|
4286
4311
|
type GatewayOptions = {
|
|
4287
4312
|
id: string;
|
|
@@ -5773,6 +5798,8 @@ interface RateLimit {
|
|
|
5773
5798
|
*/
|
|
5774
5799
|
limit(options: RateLimitOptions): Promise<RateLimitOutcome>;
|
|
5775
5800
|
}
|
|
5801
|
+
// Extend this in your apps to properly type Env
|
|
5802
|
+
interface Env {}
|
|
5776
5803
|
// Namespace for RPC utility types. Unfortunately, we can't use a `module` here as these types need
|
|
5777
5804
|
// to referenced by `Fetcher`. This is included in the "importable" version of the types which
|
|
5778
5805
|
// strips all `module` blocks.
|
|
@@ -6031,6 +6058,7 @@ declare module "cloudflare:workers" {
|
|
|
6031
6058
|
step: WorkflowStep,
|
|
6032
6059
|
): Promise<unknown>;
|
|
6033
6060
|
}
|
|
6061
|
+
export const env: Env;
|
|
6034
6062
|
}
|
|
6035
6063
|
declare module "cloudflare:sockets" {
|
|
6036
6064
|
function _connect(
|
package/2021-11-03/index.ts
CHANGED
|
@@ -3861,7 +3861,7 @@ export interface Ai_Cf_Openai_Whisper_Large_V3_Turbo_Output {
|
|
|
3861
3861
|
*/
|
|
3862
3862
|
end?: number;
|
|
3863
3863
|
}[];
|
|
3864
|
-
};
|
|
3864
|
+
}[];
|
|
3865
3865
|
/**
|
|
3866
3866
|
* The transcription in WebVTT format, which includes timing and text information for use in subtitles.
|
|
3867
3867
|
*/
|
|
@@ -4251,6 +4251,13 @@ export type AiOptions = {
|
|
|
4251
4251
|
prefix?: string;
|
|
4252
4252
|
extraHeaders?: object;
|
|
4253
4253
|
};
|
|
4254
|
+
export type ConversionResponse = {
|
|
4255
|
+
name: string;
|
|
4256
|
+
mimeType: string;
|
|
4257
|
+
format: "markdown";
|
|
4258
|
+
tokens: number;
|
|
4259
|
+
data: string;
|
|
4260
|
+
};
|
|
4254
4261
|
export type AiModelsSearchParams = {
|
|
4255
4262
|
author?: string;
|
|
4256
4263
|
hide_experimental?: boolean;
|
|
@@ -4296,6 +4303,24 @@ export declare abstract class Ai<
|
|
|
4296
4303
|
: AiModelList[Name]["postProcessedOutputs"]
|
|
4297
4304
|
>;
|
|
4298
4305
|
public models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
|
|
4306
|
+
public toMarkdown(
|
|
4307
|
+
files: {
|
|
4308
|
+
name: string;
|
|
4309
|
+
blob: Blob;
|
|
4310
|
+
}[],
|
|
4311
|
+
options?: {
|
|
4312
|
+
gateway?: GatewayOptions;
|
|
4313
|
+
},
|
|
4314
|
+
): Promise<ConversionResponse[]>;
|
|
4315
|
+
public toMarkdown(
|
|
4316
|
+
files: {
|
|
4317
|
+
name: string;
|
|
4318
|
+
blob: Blob;
|
|
4319
|
+
},
|
|
4320
|
+
options?: {
|
|
4321
|
+
gateway?: GatewayOptions;
|
|
4322
|
+
},
|
|
4323
|
+
): Promise<ConversionResponse>;
|
|
4299
4324
|
}
|
|
4300
4325
|
export type GatewayOptions = {
|
|
4301
4326
|
id: string;
|
|
@@ -5789,6 +5814,8 @@ export interface RateLimit {
|
|
|
5789
5814
|
*/
|
|
5790
5815
|
limit(options: RateLimitOptions): Promise<RateLimitOutcome>;
|
|
5791
5816
|
}
|
|
5817
|
+
// Extend this in your apps to properly type Env
|
|
5818
|
+
export interface Env {}
|
|
5792
5819
|
// Namespace for RPC utility types. Unfortunately, we can't use a `module` here as these types need
|
|
5793
5820
|
// to referenced by `Fetcher`. This is included in the "importable" version of the types which
|
|
5794
5821
|
// strips all `module` blocks.
|
package/2022-01-31/index.d.ts
CHANGED
|
@@ -3875,7 +3875,7 @@ interface Ai_Cf_Openai_Whisper_Large_V3_Turbo_Output {
|
|
|
3875
3875
|
*/
|
|
3876
3876
|
end?: number;
|
|
3877
3877
|
}[];
|
|
3878
|
-
};
|
|
3878
|
+
}[];
|
|
3879
3879
|
/**
|
|
3880
3880
|
* The transcription in WebVTT format, which includes timing and text information for use in subtitles.
|
|
3881
3881
|
*/
|
|
@@ -4265,6 +4265,13 @@ type AiOptions = {
|
|
|
4265
4265
|
prefix?: string;
|
|
4266
4266
|
extraHeaders?: object;
|
|
4267
4267
|
};
|
|
4268
|
+
type ConversionResponse = {
|
|
4269
|
+
name: string;
|
|
4270
|
+
mimeType: string;
|
|
4271
|
+
format: "markdown";
|
|
4272
|
+
tokens: number;
|
|
4273
|
+
data: string;
|
|
4274
|
+
};
|
|
4268
4275
|
type AiModelsSearchParams = {
|
|
4269
4276
|
author?: string;
|
|
4270
4277
|
hide_experimental?: boolean;
|
|
@@ -4308,6 +4315,24 @@ declare abstract class Ai<AiModelList extends AiModelListType = AiModels> {
|
|
|
4308
4315
|
: AiModelList[Name]["postProcessedOutputs"]
|
|
4309
4316
|
>;
|
|
4310
4317
|
public models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
|
|
4318
|
+
public toMarkdown(
|
|
4319
|
+
files: {
|
|
4320
|
+
name: string;
|
|
4321
|
+
blob: Blob;
|
|
4322
|
+
}[],
|
|
4323
|
+
options?: {
|
|
4324
|
+
gateway?: GatewayOptions;
|
|
4325
|
+
},
|
|
4326
|
+
): Promise<ConversionResponse[]>;
|
|
4327
|
+
public toMarkdown(
|
|
4328
|
+
files: {
|
|
4329
|
+
name: string;
|
|
4330
|
+
blob: Blob;
|
|
4331
|
+
},
|
|
4332
|
+
options?: {
|
|
4333
|
+
gateway?: GatewayOptions;
|
|
4334
|
+
},
|
|
4335
|
+
): Promise<ConversionResponse>;
|
|
4311
4336
|
}
|
|
4312
4337
|
type GatewayOptions = {
|
|
4313
4338
|
id: string;
|
|
@@ -5799,6 +5824,8 @@ interface RateLimit {
|
|
|
5799
5824
|
*/
|
|
5800
5825
|
limit(options: RateLimitOptions): Promise<RateLimitOutcome>;
|
|
5801
5826
|
}
|
|
5827
|
+
// Extend this in your apps to properly type Env
|
|
5828
|
+
interface Env {}
|
|
5802
5829
|
// Namespace for RPC utility types. Unfortunately, we can't use a `module` here as these types need
|
|
5803
5830
|
// to referenced by `Fetcher`. This is included in the "importable" version of the types which
|
|
5804
5831
|
// strips all `module` blocks.
|
|
@@ -6057,6 +6084,7 @@ declare module "cloudflare:workers" {
|
|
|
6057
6084
|
step: WorkflowStep,
|
|
6058
6085
|
): Promise<unknown>;
|
|
6059
6086
|
}
|
|
6087
|
+
export const env: Env;
|
|
6060
6088
|
}
|
|
6061
6089
|
declare module "cloudflare:sockets" {
|
|
6062
6090
|
function _connect(
|
package/2022-01-31/index.ts
CHANGED
|
@@ -3887,7 +3887,7 @@ export interface Ai_Cf_Openai_Whisper_Large_V3_Turbo_Output {
|
|
|
3887
3887
|
*/
|
|
3888
3888
|
end?: number;
|
|
3889
3889
|
}[];
|
|
3890
|
-
};
|
|
3890
|
+
}[];
|
|
3891
3891
|
/**
|
|
3892
3892
|
* The transcription in WebVTT format, which includes timing and text information for use in subtitles.
|
|
3893
3893
|
*/
|
|
@@ -4277,6 +4277,13 @@ export type AiOptions = {
|
|
|
4277
4277
|
prefix?: string;
|
|
4278
4278
|
extraHeaders?: object;
|
|
4279
4279
|
};
|
|
4280
|
+
export type ConversionResponse = {
|
|
4281
|
+
name: string;
|
|
4282
|
+
mimeType: string;
|
|
4283
|
+
format: "markdown";
|
|
4284
|
+
tokens: number;
|
|
4285
|
+
data: string;
|
|
4286
|
+
};
|
|
4280
4287
|
export type AiModelsSearchParams = {
|
|
4281
4288
|
author?: string;
|
|
4282
4289
|
hide_experimental?: boolean;
|
|
@@ -4322,6 +4329,24 @@ export declare abstract class Ai<
|
|
|
4322
4329
|
: AiModelList[Name]["postProcessedOutputs"]
|
|
4323
4330
|
>;
|
|
4324
4331
|
public models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
|
|
4332
|
+
public toMarkdown(
|
|
4333
|
+
files: {
|
|
4334
|
+
name: string;
|
|
4335
|
+
blob: Blob;
|
|
4336
|
+
}[],
|
|
4337
|
+
options?: {
|
|
4338
|
+
gateway?: GatewayOptions;
|
|
4339
|
+
},
|
|
4340
|
+
): Promise<ConversionResponse[]>;
|
|
4341
|
+
public toMarkdown(
|
|
4342
|
+
files: {
|
|
4343
|
+
name: string;
|
|
4344
|
+
blob: Blob;
|
|
4345
|
+
},
|
|
4346
|
+
options?: {
|
|
4347
|
+
gateway?: GatewayOptions;
|
|
4348
|
+
},
|
|
4349
|
+
): Promise<ConversionResponse>;
|
|
4325
4350
|
}
|
|
4326
4351
|
export type GatewayOptions = {
|
|
4327
4352
|
id: string;
|
|
@@ -5815,6 +5840,8 @@ export interface RateLimit {
|
|
|
5815
5840
|
*/
|
|
5816
5841
|
limit(options: RateLimitOptions): Promise<RateLimitOutcome>;
|
|
5817
5842
|
}
|
|
5843
|
+
// Extend this in your apps to properly type Env
|
|
5844
|
+
export interface Env {}
|
|
5818
5845
|
// Namespace for RPC utility types. Unfortunately, we can't use a `module` here as these types need
|
|
5819
5846
|
// to referenced by `Fetcher`. This is included in the "importable" version of the types which
|
|
5820
5847
|
// strips all `module` blocks.
|
package/2022-03-21/index.d.ts
CHANGED
|
@@ -3900,7 +3900,7 @@ interface Ai_Cf_Openai_Whisper_Large_V3_Turbo_Output {
|
|
|
3900
3900
|
*/
|
|
3901
3901
|
end?: number;
|
|
3902
3902
|
}[];
|
|
3903
|
-
};
|
|
3903
|
+
}[];
|
|
3904
3904
|
/**
|
|
3905
3905
|
* The transcription in WebVTT format, which includes timing and text information for use in subtitles.
|
|
3906
3906
|
*/
|
|
@@ -4290,6 +4290,13 @@ type AiOptions = {
|
|
|
4290
4290
|
prefix?: string;
|
|
4291
4291
|
extraHeaders?: object;
|
|
4292
4292
|
};
|
|
4293
|
+
type ConversionResponse = {
|
|
4294
|
+
name: string;
|
|
4295
|
+
mimeType: string;
|
|
4296
|
+
format: "markdown";
|
|
4297
|
+
tokens: number;
|
|
4298
|
+
data: string;
|
|
4299
|
+
};
|
|
4293
4300
|
type AiModelsSearchParams = {
|
|
4294
4301
|
author?: string;
|
|
4295
4302
|
hide_experimental?: boolean;
|
|
@@ -4333,6 +4340,24 @@ declare abstract class Ai<AiModelList extends AiModelListType = AiModels> {
|
|
|
4333
4340
|
: AiModelList[Name]["postProcessedOutputs"]
|
|
4334
4341
|
>;
|
|
4335
4342
|
public models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
|
|
4343
|
+
public toMarkdown(
|
|
4344
|
+
files: {
|
|
4345
|
+
name: string;
|
|
4346
|
+
blob: Blob;
|
|
4347
|
+
}[],
|
|
4348
|
+
options?: {
|
|
4349
|
+
gateway?: GatewayOptions;
|
|
4350
|
+
},
|
|
4351
|
+
): Promise<ConversionResponse[]>;
|
|
4352
|
+
public toMarkdown(
|
|
4353
|
+
files: {
|
|
4354
|
+
name: string;
|
|
4355
|
+
blob: Blob;
|
|
4356
|
+
},
|
|
4357
|
+
options?: {
|
|
4358
|
+
gateway?: GatewayOptions;
|
|
4359
|
+
},
|
|
4360
|
+
): Promise<ConversionResponse>;
|
|
4336
4361
|
}
|
|
4337
4362
|
type GatewayOptions = {
|
|
4338
4363
|
id: string;
|
|
@@ -5824,6 +5849,8 @@ interface RateLimit {
|
|
|
5824
5849
|
*/
|
|
5825
5850
|
limit(options: RateLimitOptions): Promise<RateLimitOutcome>;
|
|
5826
5851
|
}
|
|
5852
|
+
// Extend this in your apps to properly type Env
|
|
5853
|
+
interface Env {}
|
|
5827
5854
|
// Namespace for RPC utility types. Unfortunately, we can't use a `module` here as these types need
|
|
5828
5855
|
// to referenced by `Fetcher`. This is included in the "importable" version of the types which
|
|
5829
5856
|
// strips all `module` blocks.
|
|
@@ -6082,6 +6109,7 @@ declare module "cloudflare:workers" {
|
|
|
6082
6109
|
step: WorkflowStep,
|
|
6083
6110
|
): Promise<unknown>;
|
|
6084
6111
|
}
|
|
6112
|
+
export const env: Env;
|
|
6085
6113
|
}
|
|
6086
6114
|
declare module "cloudflare:sockets" {
|
|
6087
6115
|
function _connect(
|
package/2022-03-21/index.ts
CHANGED
|
@@ -3912,7 +3912,7 @@ export interface Ai_Cf_Openai_Whisper_Large_V3_Turbo_Output {
|
|
|
3912
3912
|
*/
|
|
3913
3913
|
end?: number;
|
|
3914
3914
|
}[];
|
|
3915
|
-
};
|
|
3915
|
+
}[];
|
|
3916
3916
|
/**
|
|
3917
3917
|
* The transcription in WebVTT format, which includes timing and text information for use in subtitles.
|
|
3918
3918
|
*/
|
|
@@ -4302,6 +4302,13 @@ export type AiOptions = {
|
|
|
4302
4302
|
prefix?: string;
|
|
4303
4303
|
extraHeaders?: object;
|
|
4304
4304
|
};
|
|
4305
|
+
export type ConversionResponse = {
|
|
4306
|
+
name: string;
|
|
4307
|
+
mimeType: string;
|
|
4308
|
+
format: "markdown";
|
|
4309
|
+
tokens: number;
|
|
4310
|
+
data: string;
|
|
4311
|
+
};
|
|
4305
4312
|
export type AiModelsSearchParams = {
|
|
4306
4313
|
author?: string;
|
|
4307
4314
|
hide_experimental?: boolean;
|
|
@@ -4347,6 +4354,24 @@ export declare abstract class Ai<
|
|
|
4347
4354
|
: AiModelList[Name]["postProcessedOutputs"]
|
|
4348
4355
|
>;
|
|
4349
4356
|
public models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
|
|
4357
|
+
public toMarkdown(
|
|
4358
|
+
files: {
|
|
4359
|
+
name: string;
|
|
4360
|
+
blob: Blob;
|
|
4361
|
+
}[],
|
|
4362
|
+
options?: {
|
|
4363
|
+
gateway?: GatewayOptions;
|
|
4364
|
+
},
|
|
4365
|
+
): Promise<ConversionResponse[]>;
|
|
4366
|
+
public toMarkdown(
|
|
4367
|
+
files: {
|
|
4368
|
+
name: string;
|
|
4369
|
+
blob: Blob;
|
|
4370
|
+
},
|
|
4371
|
+
options?: {
|
|
4372
|
+
gateway?: GatewayOptions;
|
|
4373
|
+
},
|
|
4374
|
+
): Promise<ConversionResponse>;
|
|
4350
4375
|
}
|
|
4351
4376
|
export type GatewayOptions = {
|
|
4352
4377
|
id: string;
|
|
@@ -5840,6 +5865,8 @@ export interface RateLimit {
|
|
|
5840
5865
|
*/
|
|
5841
5866
|
limit(options: RateLimitOptions): Promise<RateLimitOutcome>;
|
|
5842
5867
|
}
|
|
5868
|
+
// Extend this in your apps to properly type Env
|
|
5869
|
+
export interface Env {}
|
|
5843
5870
|
// Namespace for RPC utility types. Unfortunately, we can't use a `module` here as these types need
|
|
5844
5871
|
// to referenced by `Fetcher`. This is included in the "importable" version of the types which
|
|
5845
5872
|
// strips all `module` blocks.
|
package/2022-08-04/index.d.ts
CHANGED
|
@@ -3901,7 +3901,7 @@ interface Ai_Cf_Openai_Whisper_Large_V3_Turbo_Output {
|
|
|
3901
3901
|
*/
|
|
3902
3902
|
end?: number;
|
|
3903
3903
|
}[];
|
|
3904
|
-
};
|
|
3904
|
+
}[];
|
|
3905
3905
|
/**
|
|
3906
3906
|
* The transcription in WebVTT format, which includes timing and text information for use in subtitles.
|
|
3907
3907
|
*/
|
|
@@ -4291,6 +4291,13 @@ type AiOptions = {
|
|
|
4291
4291
|
prefix?: string;
|
|
4292
4292
|
extraHeaders?: object;
|
|
4293
4293
|
};
|
|
4294
|
+
type ConversionResponse = {
|
|
4295
|
+
name: string;
|
|
4296
|
+
mimeType: string;
|
|
4297
|
+
format: "markdown";
|
|
4298
|
+
tokens: number;
|
|
4299
|
+
data: string;
|
|
4300
|
+
};
|
|
4294
4301
|
type AiModelsSearchParams = {
|
|
4295
4302
|
author?: string;
|
|
4296
4303
|
hide_experimental?: boolean;
|
|
@@ -4334,6 +4341,24 @@ declare abstract class Ai<AiModelList extends AiModelListType = AiModels> {
|
|
|
4334
4341
|
: AiModelList[Name]["postProcessedOutputs"]
|
|
4335
4342
|
>;
|
|
4336
4343
|
public models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
|
|
4344
|
+
public toMarkdown(
|
|
4345
|
+
files: {
|
|
4346
|
+
name: string;
|
|
4347
|
+
blob: Blob;
|
|
4348
|
+
}[],
|
|
4349
|
+
options?: {
|
|
4350
|
+
gateway?: GatewayOptions;
|
|
4351
|
+
},
|
|
4352
|
+
): Promise<ConversionResponse[]>;
|
|
4353
|
+
public toMarkdown(
|
|
4354
|
+
files: {
|
|
4355
|
+
name: string;
|
|
4356
|
+
blob: Blob;
|
|
4357
|
+
},
|
|
4358
|
+
options?: {
|
|
4359
|
+
gateway?: GatewayOptions;
|
|
4360
|
+
},
|
|
4361
|
+
): Promise<ConversionResponse>;
|
|
4337
4362
|
}
|
|
4338
4363
|
type GatewayOptions = {
|
|
4339
4364
|
id: string;
|
|
@@ -5825,6 +5850,8 @@ interface RateLimit {
|
|
|
5825
5850
|
*/
|
|
5826
5851
|
limit(options: RateLimitOptions): Promise<RateLimitOutcome>;
|
|
5827
5852
|
}
|
|
5853
|
+
// Extend this in your apps to properly type Env
|
|
5854
|
+
interface Env {}
|
|
5828
5855
|
// Namespace for RPC utility types. Unfortunately, we can't use a `module` here as these types need
|
|
5829
5856
|
// to referenced by `Fetcher`. This is included in the "importable" version of the types which
|
|
5830
5857
|
// strips all `module` blocks.
|
|
@@ -6083,6 +6110,7 @@ declare module "cloudflare:workers" {
|
|
|
6083
6110
|
step: WorkflowStep,
|
|
6084
6111
|
): Promise<unknown>;
|
|
6085
6112
|
}
|
|
6113
|
+
export const env: Env;
|
|
6086
6114
|
}
|
|
6087
6115
|
declare module "cloudflare:sockets" {
|
|
6088
6116
|
function _connect(
|
package/2022-08-04/index.ts
CHANGED
|
@@ -3913,7 +3913,7 @@ export interface Ai_Cf_Openai_Whisper_Large_V3_Turbo_Output {
|
|
|
3913
3913
|
*/
|
|
3914
3914
|
end?: number;
|
|
3915
3915
|
}[];
|
|
3916
|
-
};
|
|
3916
|
+
}[];
|
|
3917
3917
|
/**
|
|
3918
3918
|
* The transcription in WebVTT format, which includes timing and text information for use in subtitles.
|
|
3919
3919
|
*/
|
|
@@ -4303,6 +4303,13 @@ export type AiOptions = {
|
|
|
4303
4303
|
prefix?: string;
|
|
4304
4304
|
extraHeaders?: object;
|
|
4305
4305
|
};
|
|
4306
|
+
export type ConversionResponse = {
|
|
4307
|
+
name: string;
|
|
4308
|
+
mimeType: string;
|
|
4309
|
+
format: "markdown";
|
|
4310
|
+
tokens: number;
|
|
4311
|
+
data: string;
|
|
4312
|
+
};
|
|
4306
4313
|
export type AiModelsSearchParams = {
|
|
4307
4314
|
author?: string;
|
|
4308
4315
|
hide_experimental?: boolean;
|
|
@@ -4348,6 +4355,24 @@ export declare abstract class Ai<
|
|
|
4348
4355
|
: AiModelList[Name]["postProcessedOutputs"]
|
|
4349
4356
|
>;
|
|
4350
4357
|
public models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
|
|
4358
|
+
public toMarkdown(
|
|
4359
|
+
files: {
|
|
4360
|
+
name: string;
|
|
4361
|
+
blob: Blob;
|
|
4362
|
+
}[],
|
|
4363
|
+
options?: {
|
|
4364
|
+
gateway?: GatewayOptions;
|
|
4365
|
+
},
|
|
4366
|
+
): Promise<ConversionResponse[]>;
|
|
4367
|
+
public toMarkdown(
|
|
4368
|
+
files: {
|
|
4369
|
+
name: string;
|
|
4370
|
+
blob: Blob;
|
|
4371
|
+
},
|
|
4372
|
+
options?: {
|
|
4373
|
+
gateway?: GatewayOptions;
|
|
4374
|
+
},
|
|
4375
|
+
): Promise<ConversionResponse>;
|
|
4351
4376
|
}
|
|
4352
4377
|
export type GatewayOptions = {
|
|
4353
4378
|
id: string;
|
|
@@ -5841,6 +5866,8 @@ export interface RateLimit {
|
|
|
5841
5866
|
*/
|
|
5842
5867
|
limit(options: RateLimitOptions): Promise<RateLimitOutcome>;
|
|
5843
5868
|
}
|
|
5869
|
+
// Extend this in your apps to properly type Env
|
|
5870
|
+
export interface Env {}
|
|
5844
5871
|
// Namespace for RPC utility types. Unfortunately, we can't use a `module` here as these types need
|
|
5845
5872
|
// to referenced by `Fetcher`. This is included in the "importable" version of the types which
|
|
5846
5873
|
// strips all `module` blocks.
|
package/2022-10-31/index.d.ts
CHANGED
|
@@ -3905,7 +3905,7 @@ interface Ai_Cf_Openai_Whisper_Large_V3_Turbo_Output {
|
|
|
3905
3905
|
*/
|
|
3906
3906
|
end?: number;
|
|
3907
3907
|
}[];
|
|
3908
|
-
};
|
|
3908
|
+
}[];
|
|
3909
3909
|
/**
|
|
3910
3910
|
* The transcription in WebVTT format, which includes timing and text information for use in subtitles.
|
|
3911
3911
|
*/
|
|
@@ -4295,6 +4295,13 @@ type AiOptions = {
|
|
|
4295
4295
|
prefix?: string;
|
|
4296
4296
|
extraHeaders?: object;
|
|
4297
4297
|
};
|
|
4298
|
+
type ConversionResponse = {
|
|
4299
|
+
name: string;
|
|
4300
|
+
mimeType: string;
|
|
4301
|
+
format: "markdown";
|
|
4302
|
+
tokens: number;
|
|
4303
|
+
data: string;
|
|
4304
|
+
};
|
|
4298
4305
|
type AiModelsSearchParams = {
|
|
4299
4306
|
author?: string;
|
|
4300
4307
|
hide_experimental?: boolean;
|
|
@@ -4338,6 +4345,24 @@ declare abstract class Ai<AiModelList extends AiModelListType = AiModels> {
|
|
|
4338
4345
|
: AiModelList[Name]["postProcessedOutputs"]
|
|
4339
4346
|
>;
|
|
4340
4347
|
public models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
|
|
4348
|
+
public toMarkdown(
|
|
4349
|
+
files: {
|
|
4350
|
+
name: string;
|
|
4351
|
+
blob: Blob;
|
|
4352
|
+
}[],
|
|
4353
|
+
options?: {
|
|
4354
|
+
gateway?: GatewayOptions;
|
|
4355
|
+
},
|
|
4356
|
+
): Promise<ConversionResponse[]>;
|
|
4357
|
+
public toMarkdown(
|
|
4358
|
+
files: {
|
|
4359
|
+
name: string;
|
|
4360
|
+
blob: Blob;
|
|
4361
|
+
},
|
|
4362
|
+
options?: {
|
|
4363
|
+
gateway?: GatewayOptions;
|
|
4364
|
+
},
|
|
4365
|
+
): Promise<ConversionResponse>;
|
|
4341
4366
|
}
|
|
4342
4367
|
type GatewayOptions = {
|
|
4343
4368
|
id: string;
|
|
@@ -5829,6 +5854,8 @@ interface RateLimit {
|
|
|
5829
5854
|
*/
|
|
5830
5855
|
limit(options: RateLimitOptions): Promise<RateLimitOutcome>;
|
|
5831
5856
|
}
|
|
5857
|
+
// Extend this in your apps to properly type Env
|
|
5858
|
+
interface Env {}
|
|
5832
5859
|
// Namespace for RPC utility types. Unfortunately, we can't use a `module` here as these types need
|
|
5833
5860
|
// to referenced by `Fetcher`. This is included in the "importable" version of the types which
|
|
5834
5861
|
// strips all `module` blocks.
|
|
@@ -6087,6 +6114,7 @@ declare module "cloudflare:workers" {
|
|
|
6087
6114
|
step: WorkflowStep,
|
|
6088
6115
|
): Promise<unknown>;
|
|
6089
6116
|
}
|
|
6117
|
+
export const env: Env;
|
|
6090
6118
|
}
|
|
6091
6119
|
declare module "cloudflare:sockets" {
|
|
6092
6120
|
function _connect(
|
package/2022-10-31/index.ts
CHANGED
|
@@ -3917,7 +3917,7 @@ export interface Ai_Cf_Openai_Whisper_Large_V3_Turbo_Output {
|
|
|
3917
3917
|
*/
|
|
3918
3918
|
end?: number;
|
|
3919
3919
|
}[];
|
|
3920
|
-
};
|
|
3920
|
+
}[];
|
|
3921
3921
|
/**
|
|
3922
3922
|
* The transcription in WebVTT format, which includes timing and text information for use in subtitles.
|
|
3923
3923
|
*/
|
|
@@ -4307,6 +4307,13 @@ export type AiOptions = {
|
|
|
4307
4307
|
prefix?: string;
|
|
4308
4308
|
extraHeaders?: object;
|
|
4309
4309
|
};
|
|
4310
|
+
export type ConversionResponse = {
|
|
4311
|
+
name: string;
|
|
4312
|
+
mimeType: string;
|
|
4313
|
+
format: "markdown";
|
|
4314
|
+
tokens: number;
|
|
4315
|
+
data: string;
|
|
4316
|
+
};
|
|
4310
4317
|
export type AiModelsSearchParams = {
|
|
4311
4318
|
author?: string;
|
|
4312
4319
|
hide_experimental?: boolean;
|
|
@@ -4352,6 +4359,24 @@ export declare abstract class Ai<
|
|
|
4352
4359
|
: AiModelList[Name]["postProcessedOutputs"]
|
|
4353
4360
|
>;
|
|
4354
4361
|
public models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
|
|
4362
|
+
public toMarkdown(
|
|
4363
|
+
files: {
|
|
4364
|
+
name: string;
|
|
4365
|
+
blob: Blob;
|
|
4366
|
+
}[],
|
|
4367
|
+
options?: {
|
|
4368
|
+
gateway?: GatewayOptions;
|
|
4369
|
+
},
|
|
4370
|
+
): Promise<ConversionResponse[]>;
|
|
4371
|
+
public toMarkdown(
|
|
4372
|
+
files: {
|
|
4373
|
+
name: string;
|
|
4374
|
+
blob: Blob;
|
|
4375
|
+
},
|
|
4376
|
+
options?: {
|
|
4377
|
+
gateway?: GatewayOptions;
|
|
4378
|
+
},
|
|
4379
|
+
): Promise<ConversionResponse>;
|
|
4355
4380
|
}
|
|
4356
4381
|
export type GatewayOptions = {
|
|
4357
4382
|
id: string;
|
|
@@ -5845,6 +5870,8 @@ export interface RateLimit {
|
|
|
5845
5870
|
*/
|
|
5846
5871
|
limit(options: RateLimitOptions): Promise<RateLimitOutcome>;
|
|
5847
5872
|
}
|
|
5873
|
+
// Extend this in your apps to properly type Env
|
|
5874
|
+
export interface Env {}
|
|
5848
5875
|
// Namespace for RPC utility types. Unfortunately, we can't use a `module` here as these types need
|
|
5849
5876
|
// to referenced by `Fetcher`. This is included in the "importable" version of the types which
|
|
5850
5877
|
// strips all `module` blocks.
|
package/2022-11-30/index.d.ts
CHANGED
|
@@ -3910,7 +3910,7 @@ interface Ai_Cf_Openai_Whisper_Large_V3_Turbo_Output {
|
|
|
3910
3910
|
*/
|
|
3911
3911
|
end?: number;
|
|
3912
3912
|
}[];
|
|
3913
|
-
};
|
|
3913
|
+
}[];
|
|
3914
3914
|
/**
|
|
3915
3915
|
* The transcription in WebVTT format, which includes timing and text information for use in subtitles.
|
|
3916
3916
|
*/
|
|
@@ -4300,6 +4300,13 @@ type AiOptions = {
|
|
|
4300
4300
|
prefix?: string;
|
|
4301
4301
|
extraHeaders?: object;
|
|
4302
4302
|
};
|
|
4303
|
+
type ConversionResponse = {
|
|
4304
|
+
name: string;
|
|
4305
|
+
mimeType: string;
|
|
4306
|
+
format: "markdown";
|
|
4307
|
+
tokens: number;
|
|
4308
|
+
data: string;
|
|
4309
|
+
};
|
|
4303
4310
|
type AiModelsSearchParams = {
|
|
4304
4311
|
author?: string;
|
|
4305
4312
|
hide_experimental?: boolean;
|
|
@@ -4343,6 +4350,24 @@ declare abstract class Ai<AiModelList extends AiModelListType = AiModels> {
|
|
|
4343
4350
|
: AiModelList[Name]["postProcessedOutputs"]
|
|
4344
4351
|
>;
|
|
4345
4352
|
public models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
|
|
4353
|
+
public toMarkdown(
|
|
4354
|
+
files: {
|
|
4355
|
+
name: string;
|
|
4356
|
+
blob: Blob;
|
|
4357
|
+
}[],
|
|
4358
|
+
options?: {
|
|
4359
|
+
gateway?: GatewayOptions;
|
|
4360
|
+
},
|
|
4361
|
+
): Promise<ConversionResponse[]>;
|
|
4362
|
+
public toMarkdown(
|
|
4363
|
+
files: {
|
|
4364
|
+
name: string;
|
|
4365
|
+
blob: Blob;
|
|
4366
|
+
},
|
|
4367
|
+
options?: {
|
|
4368
|
+
gateway?: GatewayOptions;
|
|
4369
|
+
},
|
|
4370
|
+
): Promise<ConversionResponse>;
|
|
4346
4371
|
}
|
|
4347
4372
|
type GatewayOptions = {
|
|
4348
4373
|
id: string;
|
|
@@ -5834,6 +5859,8 @@ interface RateLimit {
|
|
|
5834
5859
|
*/
|
|
5835
5860
|
limit(options: RateLimitOptions): Promise<RateLimitOutcome>;
|
|
5836
5861
|
}
|
|
5862
|
+
// Extend this in your apps to properly type Env
|
|
5863
|
+
interface Env {}
|
|
5837
5864
|
// Namespace for RPC utility types. Unfortunately, we can't use a `module` here as these types need
|
|
5838
5865
|
// to referenced by `Fetcher`. This is included in the "importable" version of the types which
|
|
5839
5866
|
// strips all `module` blocks.
|
|
@@ -6092,6 +6119,7 @@ declare module "cloudflare:workers" {
|
|
|
6092
6119
|
step: WorkflowStep,
|
|
6093
6120
|
): Promise<unknown>;
|
|
6094
6121
|
}
|
|
6122
|
+
export const env: Env;
|
|
6095
6123
|
}
|
|
6096
6124
|
declare module "cloudflare:sockets" {
|
|
6097
6125
|
function _connect(
|
package/2022-11-30/index.ts
CHANGED
|
@@ -3922,7 +3922,7 @@ export interface Ai_Cf_Openai_Whisper_Large_V3_Turbo_Output {
|
|
|
3922
3922
|
*/
|
|
3923
3923
|
end?: number;
|
|
3924
3924
|
}[];
|
|
3925
|
-
};
|
|
3925
|
+
}[];
|
|
3926
3926
|
/**
|
|
3927
3927
|
* The transcription in WebVTT format, which includes timing and text information for use in subtitles.
|
|
3928
3928
|
*/
|
|
@@ -4312,6 +4312,13 @@ export type AiOptions = {
|
|
|
4312
4312
|
prefix?: string;
|
|
4313
4313
|
extraHeaders?: object;
|
|
4314
4314
|
};
|
|
4315
|
+
export type ConversionResponse = {
|
|
4316
|
+
name: string;
|
|
4317
|
+
mimeType: string;
|
|
4318
|
+
format: "markdown";
|
|
4319
|
+
tokens: number;
|
|
4320
|
+
data: string;
|
|
4321
|
+
};
|
|
4315
4322
|
export type AiModelsSearchParams = {
|
|
4316
4323
|
author?: string;
|
|
4317
4324
|
hide_experimental?: boolean;
|
|
@@ -4357,6 +4364,24 @@ export declare abstract class Ai<
|
|
|
4357
4364
|
: AiModelList[Name]["postProcessedOutputs"]
|
|
4358
4365
|
>;
|
|
4359
4366
|
public models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
|
|
4367
|
+
public toMarkdown(
|
|
4368
|
+
files: {
|
|
4369
|
+
name: string;
|
|
4370
|
+
blob: Blob;
|
|
4371
|
+
}[],
|
|
4372
|
+
options?: {
|
|
4373
|
+
gateway?: GatewayOptions;
|
|
4374
|
+
},
|
|
4375
|
+
): Promise<ConversionResponse[]>;
|
|
4376
|
+
public toMarkdown(
|
|
4377
|
+
files: {
|
|
4378
|
+
name: string;
|
|
4379
|
+
blob: Blob;
|
|
4380
|
+
},
|
|
4381
|
+
options?: {
|
|
4382
|
+
gateway?: GatewayOptions;
|
|
4383
|
+
},
|
|
4384
|
+
): Promise<ConversionResponse>;
|
|
4360
4385
|
}
|
|
4361
4386
|
export type GatewayOptions = {
|
|
4362
4387
|
id: string;
|
|
@@ -5850,6 +5875,8 @@ export interface RateLimit {
|
|
|
5850
5875
|
*/
|
|
5851
5876
|
limit(options: RateLimitOptions): Promise<RateLimitOutcome>;
|
|
5852
5877
|
}
|
|
5878
|
+
// Extend this in your apps to properly type Env
|
|
5879
|
+
export interface Env {}
|
|
5853
5880
|
// Namespace for RPC utility types. Unfortunately, we can't use a `module` here as these types need
|
|
5854
5881
|
// to referenced by `Fetcher`. This is included in the "importable" version of the types which
|
|
5855
5882
|
// strips all `module` blocks.
|
package/2023-03-01/index.d.ts
CHANGED
|
@@ -3912,7 +3912,7 @@ interface Ai_Cf_Openai_Whisper_Large_V3_Turbo_Output {
|
|
|
3912
3912
|
*/
|
|
3913
3913
|
end?: number;
|
|
3914
3914
|
}[];
|
|
3915
|
-
};
|
|
3915
|
+
}[];
|
|
3916
3916
|
/**
|
|
3917
3917
|
* The transcription in WebVTT format, which includes timing and text information for use in subtitles.
|
|
3918
3918
|
*/
|
|
@@ -4302,6 +4302,13 @@ type AiOptions = {
|
|
|
4302
4302
|
prefix?: string;
|
|
4303
4303
|
extraHeaders?: object;
|
|
4304
4304
|
};
|
|
4305
|
+
type ConversionResponse = {
|
|
4306
|
+
name: string;
|
|
4307
|
+
mimeType: string;
|
|
4308
|
+
format: "markdown";
|
|
4309
|
+
tokens: number;
|
|
4310
|
+
data: string;
|
|
4311
|
+
};
|
|
4305
4312
|
type AiModelsSearchParams = {
|
|
4306
4313
|
author?: string;
|
|
4307
4314
|
hide_experimental?: boolean;
|
|
@@ -4345,6 +4352,24 @@ declare abstract class Ai<AiModelList extends AiModelListType = AiModels> {
|
|
|
4345
4352
|
: AiModelList[Name]["postProcessedOutputs"]
|
|
4346
4353
|
>;
|
|
4347
4354
|
public models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
|
|
4355
|
+
public toMarkdown(
|
|
4356
|
+
files: {
|
|
4357
|
+
name: string;
|
|
4358
|
+
blob: Blob;
|
|
4359
|
+
}[],
|
|
4360
|
+
options?: {
|
|
4361
|
+
gateway?: GatewayOptions;
|
|
4362
|
+
},
|
|
4363
|
+
): Promise<ConversionResponse[]>;
|
|
4364
|
+
public toMarkdown(
|
|
4365
|
+
files: {
|
|
4366
|
+
name: string;
|
|
4367
|
+
blob: Blob;
|
|
4368
|
+
},
|
|
4369
|
+
options?: {
|
|
4370
|
+
gateway?: GatewayOptions;
|
|
4371
|
+
},
|
|
4372
|
+
): Promise<ConversionResponse>;
|
|
4348
4373
|
}
|
|
4349
4374
|
type GatewayOptions = {
|
|
4350
4375
|
id: string;
|
|
@@ -5836,6 +5861,8 @@ interface RateLimit {
|
|
|
5836
5861
|
*/
|
|
5837
5862
|
limit(options: RateLimitOptions): Promise<RateLimitOutcome>;
|
|
5838
5863
|
}
|
|
5864
|
+
// Extend this in your apps to properly type Env
|
|
5865
|
+
interface Env {}
|
|
5839
5866
|
// Namespace for RPC utility types. Unfortunately, we can't use a `module` here as these types need
|
|
5840
5867
|
// to referenced by `Fetcher`. This is included in the "importable" version of the types which
|
|
5841
5868
|
// strips all `module` blocks.
|
|
@@ -6094,6 +6121,7 @@ declare module "cloudflare:workers" {
|
|
|
6094
6121
|
step: WorkflowStep,
|
|
6095
6122
|
): Promise<unknown>;
|
|
6096
6123
|
}
|
|
6124
|
+
export const env: Env;
|
|
6097
6125
|
}
|
|
6098
6126
|
declare module "cloudflare:sockets" {
|
|
6099
6127
|
function _connect(
|
package/2023-03-01/index.ts
CHANGED
|
@@ -3924,7 +3924,7 @@ export interface Ai_Cf_Openai_Whisper_Large_V3_Turbo_Output {
|
|
|
3924
3924
|
*/
|
|
3925
3925
|
end?: number;
|
|
3926
3926
|
}[];
|
|
3927
|
-
};
|
|
3927
|
+
}[];
|
|
3928
3928
|
/**
|
|
3929
3929
|
* The transcription in WebVTT format, which includes timing and text information for use in subtitles.
|
|
3930
3930
|
*/
|
|
@@ -4314,6 +4314,13 @@ export type AiOptions = {
|
|
|
4314
4314
|
prefix?: string;
|
|
4315
4315
|
extraHeaders?: object;
|
|
4316
4316
|
};
|
|
4317
|
+
export type ConversionResponse = {
|
|
4318
|
+
name: string;
|
|
4319
|
+
mimeType: string;
|
|
4320
|
+
format: "markdown";
|
|
4321
|
+
tokens: number;
|
|
4322
|
+
data: string;
|
|
4323
|
+
};
|
|
4317
4324
|
export type AiModelsSearchParams = {
|
|
4318
4325
|
author?: string;
|
|
4319
4326
|
hide_experimental?: boolean;
|
|
@@ -4359,6 +4366,24 @@ export declare abstract class Ai<
|
|
|
4359
4366
|
: AiModelList[Name]["postProcessedOutputs"]
|
|
4360
4367
|
>;
|
|
4361
4368
|
public models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
|
|
4369
|
+
public toMarkdown(
|
|
4370
|
+
files: {
|
|
4371
|
+
name: string;
|
|
4372
|
+
blob: Blob;
|
|
4373
|
+
}[],
|
|
4374
|
+
options?: {
|
|
4375
|
+
gateway?: GatewayOptions;
|
|
4376
|
+
},
|
|
4377
|
+
): Promise<ConversionResponse[]>;
|
|
4378
|
+
public toMarkdown(
|
|
4379
|
+
files: {
|
|
4380
|
+
name: string;
|
|
4381
|
+
blob: Blob;
|
|
4382
|
+
},
|
|
4383
|
+
options?: {
|
|
4384
|
+
gateway?: GatewayOptions;
|
|
4385
|
+
},
|
|
4386
|
+
): Promise<ConversionResponse>;
|
|
4362
4387
|
}
|
|
4363
4388
|
export type GatewayOptions = {
|
|
4364
4389
|
id: string;
|
|
@@ -5852,6 +5877,8 @@ export interface RateLimit {
|
|
|
5852
5877
|
*/
|
|
5853
5878
|
limit(options: RateLimitOptions): Promise<RateLimitOutcome>;
|
|
5854
5879
|
}
|
|
5880
|
+
// Extend this in your apps to properly type Env
|
|
5881
|
+
export interface Env {}
|
|
5855
5882
|
// Namespace for RPC utility types. Unfortunately, we can't use a `module` here as these types need
|
|
5856
5883
|
// to referenced by `Fetcher`. This is included in the "importable" version of the types which
|
|
5857
5884
|
// strips all `module` blocks.
|
package/2023-07-01/index.d.ts
CHANGED
|
@@ -3912,7 +3912,7 @@ interface Ai_Cf_Openai_Whisper_Large_V3_Turbo_Output {
|
|
|
3912
3912
|
*/
|
|
3913
3913
|
end?: number;
|
|
3914
3914
|
}[];
|
|
3915
|
-
};
|
|
3915
|
+
}[];
|
|
3916
3916
|
/**
|
|
3917
3917
|
* The transcription in WebVTT format, which includes timing and text information for use in subtitles.
|
|
3918
3918
|
*/
|
|
@@ -4302,6 +4302,13 @@ type AiOptions = {
|
|
|
4302
4302
|
prefix?: string;
|
|
4303
4303
|
extraHeaders?: object;
|
|
4304
4304
|
};
|
|
4305
|
+
type ConversionResponse = {
|
|
4306
|
+
name: string;
|
|
4307
|
+
mimeType: string;
|
|
4308
|
+
format: "markdown";
|
|
4309
|
+
tokens: number;
|
|
4310
|
+
data: string;
|
|
4311
|
+
};
|
|
4305
4312
|
type AiModelsSearchParams = {
|
|
4306
4313
|
author?: string;
|
|
4307
4314
|
hide_experimental?: boolean;
|
|
@@ -4345,6 +4352,24 @@ declare abstract class Ai<AiModelList extends AiModelListType = AiModels> {
|
|
|
4345
4352
|
: AiModelList[Name]["postProcessedOutputs"]
|
|
4346
4353
|
>;
|
|
4347
4354
|
public models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
|
|
4355
|
+
public toMarkdown(
|
|
4356
|
+
files: {
|
|
4357
|
+
name: string;
|
|
4358
|
+
blob: Blob;
|
|
4359
|
+
}[],
|
|
4360
|
+
options?: {
|
|
4361
|
+
gateway?: GatewayOptions;
|
|
4362
|
+
},
|
|
4363
|
+
): Promise<ConversionResponse[]>;
|
|
4364
|
+
public toMarkdown(
|
|
4365
|
+
files: {
|
|
4366
|
+
name: string;
|
|
4367
|
+
blob: Blob;
|
|
4368
|
+
},
|
|
4369
|
+
options?: {
|
|
4370
|
+
gateway?: GatewayOptions;
|
|
4371
|
+
},
|
|
4372
|
+
): Promise<ConversionResponse>;
|
|
4348
4373
|
}
|
|
4349
4374
|
type GatewayOptions = {
|
|
4350
4375
|
id: string;
|
|
@@ -5836,6 +5861,8 @@ interface RateLimit {
|
|
|
5836
5861
|
*/
|
|
5837
5862
|
limit(options: RateLimitOptions): Promise<RateLimitOutcome>;
|
|
5838
5863
|
}
|
|
5864
|
+
// Extend this in your apps to properly type Env
|
|
5865
|
+
interface Env {}
|
|
5839
5866
|
// Namespace for RPC utility types. Unfortunately, we can't use a `module` here as these types need
|
|
5840
5867
|
// to referenced by `Fetcher`. This is included in the "importable" version of the types which
|
|
5841
5868
|
// strips all `module` blocks.
|
|
@@ -6094,6 +6121,7 @@ declare module "cloudflare:workers" {
|
|
|
6094
6121
|
step: WorkflowStep,
|
|
6095
6122
|
): Promise<unknown>;
|
|
6096
6123
|
}
|
|
6124
|
+
export const env: Env;
|
|
6097
6125
|
}
|
|
6098
6126
|
declare module "cloudflare:sockets" {
|
|
6099
6127
|
function _connect(
|
package/2023-07-01/index.ts
CHANGED
|
@@ -3924,7 +3924,7 @@ export interface Ai_Cf_Openai_Whisper_Large_V3_Turbo_Output {
|
|
|
3924
3924
|
*/
|
|
3925
3925
|
end?: number;
|
|
3926
3926
|
}[];
|
|
3927
|
-
};
|
|
3927
|
+
}[];
|
|
3928
3928
|
/**
|
|
3929
3929
|
* The transcription in WebVTT format, which includes timing and text information for use in subtitles.
|
|
3930
3930
|
*/
|
|
@@ -4314,6 +4314,13 @@ export type AiOptions = {
|
|
|
4314
4314
|
prefix?: string;
|
|
4315
4315
|
extraHeaders?: object;
|
|
4316
4316
|
};
|
|
4317
|
+
export type ConversionResponse = {
|
|
4318
|
+
name: string;
|
|
4319
|
+
mimeType: string;
|
|
4320
|
+
format: "markdown";
|
|
4321
|
+
tokens: number;
|
|
4322
|
+
data: string;
|
|
4323
|
+
};
|
|
4317
4324
|
export type AiModelsSearchParams = {
|
|
4318
4325
|
author?: string;
|
|
4319
4326
|
hide_experimental?: boolean;
|
|
@@ -4359,6 +4366,24 @@ export declare abstract class Ai<
|
|
|
4359
4366
|
: AiModelList[Name]["postProcessedOutputs"]
|
|
4360
4367
|
>;
|
|
4361
4368
|
public models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
|
|
4369
|
+
public toMarkdown(
|
|
4370
|
+
files: {
|
|
4371
|
+
name: string;
|
|
4372
|
+
blob: Blob;
|
|
4373
|
+
}[],
|
|
4374
|
+
options?: {
|
|
4375
|
+
gateway?: GatewayOptions;
|
|
4376
|
+
},
|
|
4377
|
+
): Promise<ConversionResponse[]>;
|
|
4378
|
+
public toMarkdown(
|
|
4379
|
+
files: {
|
|
4380
|
+
name: string;
|
|
4381
|
+
blob: Blob;
|
|
4382
|
+
},
|
|
4383
|
+
options?: {
|
|
4384
|
+
gateway?: GatewayOptions;
|
|
4385
|
+
},
|
|
4386
|
+
): Promise<ConversionResponse>;
|
|
4362
4387
|
}
|
|
4363
4388
|
export type GatewayOptions = {
|
|
4364
4389
|
id: string;
|
|
@@ -5852,6 +5877,8 @@ export interface RateLimit {
|
|
|
5852
5877
|
*/
|
|
5853
5878
|
limit(options: RateLimitOptions): Promise<RateLimitOutcome>;
|
|
5854
5879
|
}
|
|
5880
|
+
// Extend this in your apps to properly type Env
|
|
5881
|
+
export interface Env {}
|
|
5855
5882
|
// Namespace for RPC utility types. Unfortunately, we can't use a `module` here as these types need
|
|
5856
5883
|
// to referenced by `Fetcher`. This is included in the "importable" version of the types which
|
|
5857
5884
|
// strips all `module` blocks.
|
package/experimental/index.d.ts
CHANGED
|
@@ -3993,7 +3993,7 @@ interface Ai_Cf_Openai_Whisper_Large_V3_Turbo_Output {
|
|
|
3993
3993
|
*/
|
|
3994
3994
|
end?: number;
|
|
3995
3995
|
}[];
|
|
3996
|
-
};
|
|
3996
|
+
}[];
|
|
3997
3997
|
/**
|
|
3998
3998
|
* The transcription in WebVTT format, which includes timing and text information for use in subtitles.
|
|
3999
3999
|
*/
|
|
@@ -4383,6 +4383,13 @@ type AiOptions = {
|
|
|
4383
4383
|
prefix?: string;
|
|
4384
4384
|
extraHeaders?: object;
|
|
4385
4385
|
};
|
|
4386
|
+
type ConversionResponse = {
|
|
4387
|
+
name: string;
|
|
4388
|
+
mimeType: string;
|
|
4389
|
+
format: "markdown";
|
|
4390
|
+
tokens: number;
|
|
4391
|
+
data: string;
|
|
4392
|
+
};
|
|
4386
4393
|
type AiModelsSearchParams = {
|
|
4387
4394
|
author?: string;
|
|
4388
4395
|
hide_experimental?: boolean;
|
|
@@ -4426,6 +4433,24 @@ declare abstract class Ai<AiModelList extends AiModelListType = AiModels> {
|
|
|
4426
4433
|
: AiModelList[Name]["postProcessedOutputs"]
|
|
4427
4434
|
>;
|
|
4428
4435
|
public models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
|
|
4436
|
+
public toMarkdown(
|
|
4437
|
+
files: {
|
|
4438
|
+
name: string;
|
|
4439
|
+
blob: Blob;
|
|
4440
|
+
}[],
|
|
4441
|
+
options?: {
|
|
4442
|
+
gateway?: GatewayOptions;
|
|
4443
|
+
},
|
|
4444
|
+
): Promise<ConversionResponse[]>;
|
|
4445
|
+
public toMarkdown(
|
|
4446
|
+
files: {
|
|
4447
|
+
name: string;
|
|
4448
|
+
blob: Blob;
|
|
4449
|
+
},
|
|
4450
|
+
options?: {
|
|
4451
|
+
gateway?: GatewayOptions;
|
|
4452
|
+
},
|
|
4453
|
+
): Promise<ConversionResponse>;
|
|
4429
4454
|
}
|
|
4430
4455
|
type GatewayOptions = {
|
|
4431
4456
|
id: string;
|
|
@@ -5917,6 +5942,8 @@ interface RateLimit {
|
|
|
5917
5942
|
*/
|
|
5918
5943
|
limit(options: RateLimitOptions): Promise<RateLimitOutcome>;
|
|
5919
5944
|
}
|
|
5945
|
+
// Extend this in your apps to properly type Env
|
|
5946
|
+
interface Env {}
|
|
5920
5947
|
// Namespace for RPC utility types. Unfortunately, we can't use a `module` here as these types need
|
|
5921
5948
|
// to referenced by `Fetcher`. This is included in the "importable" version of the types which
|
|
5922
5949
|
// strips all `module` blocks.
|
|
@@ -6175,6 +6202,7 @@ declare module "cloudflare:workers" {
|
|
|
6175
6202
|
step: WorkflowStep,
|
|
6176
6203
|
): Promise<unknown>;
|
|
6177
6204
|
}
|
|
6205
|
+
export const env: Env;
|
|
6178
6206
|
}
|
|
6179
6207
|
declare module "cloudflare:sockets" {
|
|
6180
6208
|
function _connect(
|
package/experimental/index.ts
CHANGED
|
@@ -4005,7 +4005,7 @@ export interface Ai_Cf_Openai_Whisper_Large_V3_Turbo_Output {
|
|
|
4005
4005
|
*/
|
|
4006
4006
|
end?: number;
|
|
4007
4007
|
}[];
|
|
4008
|
-
};
|
|
4008
|
+
}[];
|
|
4009
4009
|
/**
|
|
4010
4010
|
* The transcription in WebVTT format, which includes timing and text information for use in subtitles.
|
|
4011
4011
|
*/
|
|
@@ -4395,6 +4395,13 @@ export type AiOptions = {
|
|
|
4395
4395
|
prefix?: string;
|
|
4396
4396
|
extraHeaders?: object;
|
|
4397
4397
|
};
|
|
4398
|
+
export type ConversionResponse = {
|
|
4399
|
+
name: string;
|
|
4400
|
+
mimeType: string;
|
|
4401
|
+
format: "markdown";
|
|
4402
|
+
tokens: number;
|
|
4403
|
+
data: string;
|
|
4404
|
+
};
|
|
4398
4405
|
export type AiModelsSearchParams = {
|
|
4399
4406
|
author?: string;
|
|
4400
4407
|
hide_experimental?: boolean;
|
|
@@ -4440,6 +4447,24 @@ export declare abstract class Ai<
|
|
|
4440
4447
|
: AiModelList[Name]["postProcessedOutputs"]
|
|
4441
4448
|
>;
|
|
4442
4449
|
public models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
|
|
4450
|
+
public toMarkdown(
|
|
4451
|
+
files: {
|
|
4452
|
+
name: string;
|
|
4453
|
+
blob: Blob;
|
|
4454
|
+
}[],
|
|
4455
|
+
options?: {
|
|
4456
|
+
gateway?: GatewayOptions;
|
|
4457
|
+
},
|
|
4458
|
+
): Promise<ConversionResponse[]>;
|
|
4459
|
+
public toMarkdown(
|
|
4460
|
+
files: {
|
|
4461
|
+
name: string;
|
|
4462
|
+
blob: Blob;
|
|
4463
|
+
},
|
|
4464
|
+
options?: {
|
|
4465
|
+
gateway?: GatewayOptions;
|
|
4466
|
+
},
|
|
4467
|
+
): Promise<ConversionResponse>;
|
|
4443
4468
|
}
|
|
4444
4469
|
export type GatewayOptions = {
|
|
4445
4470
|
id: string;
|
|
@@ -5933,6 +5958,8 @@ export interface RateLimit {
|
|
|
5933
5958
|
*/
|
|
5934
5959
|
limit(options: RateLimitOptions): Promise<RateLimitOutcome>;
|
|
5935
5960
|
}
|
|
5961
|
+
// Extend this in your apps to properly type Env
|
|
5962
|
+
export interface Env {}
|
|
5936
5963
|
// Namespace for RPC utility types. Unfortunately, we can't use a `module` here as these types need
|
|
5937
5964
|
// to referenced by `Fetcher`. This is included in the "importable" version of the types which
|
|
5938
5965
|
// strips all `module` blocks.
|
package/index.d.ts
CHANGED
|
@@ -3849,7 +3849,7 @@ interface Ai_Cf_Openai_Whisper_Large_V3_Turbo_Output {
|
|
|
3849
3849
|
*/
|
|
3850
3850
|
end?: number;
|
|
3851
3851
|
}[];
|
|
3852
|
-
};
|
|
3852
|
+
}[];
|
|
3853
3853
|
/**
|
|
3854
3854
|
* The transcription in WebVTT format, which includes timing and text information for use in subtitles.
|
|
3855
3855
|
*/
|
|
@@ -4239,6 +4239,13 @@ type AiOptions = {
|
|
|
4239
4239
|
prefix?: string;
|
|
4240
4240
|
extraHeaders?: object;
|
|
4241
4241
|
};
|
|
4242
|
+
type ConversionResponse = {
|
|
4243
|
+
name: string;
|
|
4244
|
+
mimeType: string;
|
|
4245
|
+
format: "markdown";
|
|
4246
|
+
tokens: number;
|
|
4247
|
+
data: string;
|
|
4248
|
+
};
|
|
4242
4249
|
type AiModelsSearchParams = {
|
|
4243
4250
|
author?: string;
|
|
4244
4251
|
hide_experimental?: boolean;
|
|
@@ -4282,6 +4289,24 @@ declare abstract class Ai<AiModelList extends AiModelListType = AiModels> {
|
|
|
4282
4289
|
: AiModelList[Name]["postProcessedOutputs"]
|
|
4283
4290
|
>;
|
|
4284
4291
|
public models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
|
|
4292
|
+
public toMarkdown(
|
|
4293
|
+
files: {
|
|
4294
|
+
name: string;
|
|
4295
|
+
blob: Blob;
|
|
4296
|
+
}[],
|
|
4297
|
+
options?: {
|
|
4298
|
+
gateway?: GatewayOptions;
|
|
4299
|
+
},
|
|
4300
|
+
): Promise<ConversionResponse[]>;
|
|
4301
|
+
public toMarkdown(
|
|
4302
|
+
files: {
|
|
4303
|
+
name: string;
|
|
4304
|
+
blob: Blob;
|
|
4305
|
+
},
|
|
4306
|
+
options?: {
|
|
4307
|
+
gateway?: GatewayOptions;
|
|
4308
|
+
},
|
|
4309
|
+
): Promise<ConversionResponse>;
|
|
4285
4310
|
}
|
|
4286
4311
|
type GatewayOptions = {
|
|
4287
4312
|
id: string;
|
|
@@ -5773,6 +5798,8 @@ interface RateLimit {
|
|
|
5773
5798
|
*/
|
|
5774
5799
|
limit(options: RateLimitOptions): Promise<RateLimitOutcome>;
|
|
5775
5800
|
}
|
|
5801
|
+
// Extend this in your apps to properly type Env
|
|
5802
|
+
interface Env {}
|
|
5776
5803
|
// Namespace for RPC utility types. Unfortunately, we can't use a `module` here as these types need
|
|
5777
5804
|
// to referenced by `Fetcher`. This is included in the "importable" version of the types which
|
|
5778
5805
|
// strips all `module` blocks.
|
|
@@ -6031,6 +6058,7 @@ declare module "cloudflare:workers" {
|
|
|
6031
6058
|
step: WorkflowStep,
|
|
6032
6059
|
): Promise<unknown>;
|
|
6033
6060
|
}
|
|
6061
|
+
export const env: Env;
|
|
6034
6062
|
}
|
|
6035
6063
|
declare module "cloudflare:sockets" {
|
|
6036
6064
|
function _connect(
|
package/index.ts
CHANGED
|
@@ -3861,7 +3861,7 @@ export interface Ai_Cf_Openai_Whisper_Large_V3_Turbo_Output {
|
|
|
3861
3861
|
*/
|
|
3862
3862
|
end?: number;
|
|
3863
3863
|
}[];
|
|
3864
|
-
};
|
|
3864
|
+
}[];
|
|
3865
3865
|
/**
|
|
3866
3866
|
* The transcription in WebVTT format, which includes timing and text information for use in subtitles.
|
|
3867
3867
|
*/
|
|
@@ -4251,6 +4251,13 @@ export type AiOptions = {
|
|
|
4251
4251
|
prefix?: string;
|
|
4252
4252
|
extraHeaders?: object;
|
|
4253
4253
|
};
|
|
4254
|
+
export type ConversionResponse = {
|
|
4255
|
+
name: string;
|
|
4256
|
+
mimeType: string;
|
|
4257
|
+
format: "markdown";
|
|
4258
|
+
tokens: number;
|
|
4259
|
+
data: string;
|
|
4260
|
+
};
|
|
4254
4261
|
export type AiModelsSearchParams = {
|
|
4255
4262
|
author?: string;
|
|
4256
4263
|
hide_experimental?: boolean;
|
|
@@ -4296,6 +4303,24 @@ export declare abstract class Ai<
|
|
|
4296
4303
|
: AiModelList[Name]["postProcessedOutputs"]
|
|
4297
4304
|
>;
|
|
4298
4305
|
public models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
|
|
4306
|
+
public toMarkdown(
|
|
4307
|
+
files: {
|
|
4308
|
+
name: string;
|
|
4309
|
+
blob: Blob;
|
|
4310
|
+
}[],
|
|
4311
|
+
options?: {
|
|
4312
|
+
gateway?: GatewayOptions;
|
|
4313
|
+
},
|
|
4314
|
+
): Promise<ConversionResponse[]>;
|
|
4315
|
+
public toMarkdown(
|
|
4316
|
+
files: {
|
|
4317
|
+
name: string;
|
|
4318
|
+
blob: Blob;
|
|
4319
|
+
},
|
|
4320
|
+
options?: {
|
|
4321
|
+
gateway?: GatewayOptions;
|
|
4322
|
+
},
|
|
4323
|
+
): Promise<ConversionResponse>;
|
|
4299
4324
|
}
|
|
4300
4325
|
export type GatewayOptions = {
|
|
4301
4326
|
id: string;
|
|
@@ -5789,6 +5814,8 @@ export interface RateLimit {
|
|
|
5789
5814
|
*/
|
|
5790
5815
|
limit(options: RateLimitOptions): Promise<RateLimitOutcome>;
|
|
5791
5816
|
}
|
|
5817
|
+
// Extend this in your apps to properly type Env
|
|
5818
|
+
export interface Env {}
|
|
5792
5819
|
// Namespace for RPC utility types. Unfortunately, we can't use a `module` here as these types need
|
|
5793
5820
|
// to referenced by `Fetcher`. This is included in the "importable" version of the types which
|
|
5794
5821
|
// strips all `module` blocks.
|
package/oldest/index.d.ts
CHANGED
|
@@ -3849,7 +3849,7 @@ interface Ai_Cf_Openai_Whisper_Large_V3_Turbo_Output {
|
|
|
3849
3849
|
*/
|
|
3850
3850
|
end?: number;
|
|
3851
3851
|
}[];
|
|
3852
|
-
};
|
|
3852
|
+
}[];
|
|
3853
3853
|
/**
|
|
3854
3854
|
* The transcription in WebVTT format, which includes timing and text information for use in subtitles.
|
|
3855
3855
|
*/
|
|
@@ -4239,6 +4239,13 @@ type AiOptions = {
|
|
|
4239
4239
|
prefix?: string;
|
|
4240
4240
|
extraHeaders?: object;
|
|
4241
4241
|
};
|
|
4242
|
+
type ConversionResponse = {
|
|
4243
|
+
name: string;
|
|
4244
|
+
mimeType: string;
|
|
4245
|
+
format: "markdown";
|
|
4246
|
+
tokens: number;
|
|
4247
|
+
data: string;
|
|
4248
|
+
};
|
|
4242
4249
|
type AiModelsSearchParams = {
|
|
4243
4250
|
author?: string;
|
|
4244
4251
|
hide_experimental?: boolean;
|
|
@@ -4282,6 +4289,24 @@ declare abstract class Ai<AiModelList extends AiModelListType = AiModels> {
|
|
|
4282
4289
|
: AiModelList[Name]["postProcessedOutputs"]
|
|
4283
4290
|
>;
|
|
4284
4291
|
public models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
|
|
4292
|
+
public toMarkdown(
|
|
4293
|
+
files: {
|
|
4294
|
+
name: string;
|
|
4295
|
+
blob: Blob;
|
|
4296
|
+
}[],
|
|
4297
|
+
options?: {
|
|
4298
|
+
gateway?: GatewayOptions;
|
|
4299
|
+
},
|
|
4300
|
+
): Promise<ConversionResponse[]>;
|
|
4301
|
+
public toMarkdown(
|
|
4302
|
+
files: {
|
|
4303
|
+
name: string;
|
|
4304
|
+
blob: Blob;
|
|
4305
|
+
},
|
|
4306
|
+
options?: {
|
|
4307
|
+
gateway?: GatewayOptions;
|
|
4308
|
+
},
|
|
4309
|
+
): Promise<ConversionResponse>;
|
|
4285
4310
|
}
|
|
4286
4311
|
type GatewayOptions = {
|
|
4287
4312
|
id: string;
|
|
@@ -5773,6 +5798,8 @@ interface RateLimit {
|
|
|
5773
5798
|
*/
|
|
5774
5799
|
limit(options: RateLimitOptions): Promise<RateLimitOutcome>;
|
|
5775
5800
|
}
|
|
5801
|
+
// Extend this in your apps to properly type Env
|
|
5802
|
+
interface Env {}
|
|
5776
5803
|
// Namespace for RPC utility types. Unfortunately, we can't use a `module` here as these types need
|
|
5777
5804
|
// to referenced by `Fetcher`. This is included in the "importable" version of the types which
|
|
5778
5805
|
// strips all `module` blocks.
|
|
@@ -6031,6 +6058,7 @@ declare module "cloudflare:workers" {
|
|
|
6031
6058
|
step: WorkflowStep,
|
|
6032
6059
|
): Promise<unknown>;
|
|
6033
6060
|
}
|
|
6061
|
+
export const env: Env;
|
|
6034
6062
|
}
|
|
6035
6063
|
declare module "cloudflare:sockets" {
|
|
6036
6064
|
function _connect(
|
package/oldest/index.ts
CHANGED
|
@@ -3861,7 +3861,7 @@ export interface Ai_Cf_Openai_Whisper_Large_V3_Turbo_Output {
|
|
|
3861
3861
|
*/
|
|
3862
3862
|
end?: number;
|
|
3863
3863
|
}[];
|
|
3864
|
-
};
|
|
3864
|
+
}[];
|
|
3865
3865
|
/**
|
|
3866
3866
|
* The transcription in WebVTT format, which includes timing and text information for use in subtitles.
|
|
3867
3867
|
*/
|
|
@@ -4251,6 +4251,13 @@ export type AiOptions = {
|
|
|
4251
4251
|
prefix?: string;
|
|
4252
4252
|
extraHeaders?: object;
|
|
4253
4253
|
};
|
|
4254
|
+
export type ConversionResponse = {
|
|
4255
|
+
name: string;
|
|
4256
|
+
mimeType: string;
|
|
4257
|
+
format: "markdown";
|
|
4258
|
+
tokens: number;
|
|
4259
|
+
data: string;
|
|
4260
|
+
};
|
|
4254
4261
|
export type AiModelsSearchParams = {
|
|
4255
4262
|
author?: string;
|
|
4256
4263
|
hide_experimental?: boolean;
|
|
@@ -4296,6 +4303,24 @@ export declare abstract class Ai<
|
|
|
4296
4303
|
: AiModelList[Name]["postProcessedOutputs"]
|
|
4297
4304
|
>;
|
|
4298
4305
|
public models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
|
|
4306
|
+
public toMarkdown(
|
|
4307
|
+
files: {
|
|
4308
|
+
name: string;
|
|
4309
|
+
blob: Blob;
|
|
4310
|
+
}[],
|
|
4311
|
+
options?: {
|
|
4312
|
+
gateway?: GatewayOptions;
|
|
4313
|
+
},
|
|
4314
|
+
): Promise<ConversionResponse[]>;
|
|
4315
|
+
public toMarkdown(
|
|
4316
|
+
files: {
|
|
4317
|
+
name: string;
|
|
4318
|
+
blob: Blob;
|
|
4319
|
+
},
|
|
4320
|
+
options?: {
|
|
4321
|
+
gateway?: GatewayOptions;
|
|
4322
|
+
},
|
|
4323
|
+
): Promise<ConversionResponse>;
|
|
4299
4324
|
}
|
|
4300
4325
|
export type GatewayOptions = {
|
|
4301
4326
|
id: string;
|
|
@@ -5789,6 +5814,8 @@ export interface RateLimit {
|
|
|
5789
5814
|
*/
|
|
5790
5815
|
limit(options: RateLimitOptions): Promise<RateLimitOutcome>;
|
|
5791
5816
|
}
|
|
5817
|
+
// Extend this in your apps to properly type Env
|
|
5818
|
+
export interface Env {}
|
|
5792
5819
|
// Namespace for RPC utility types. Unfortunately, we can't use a `module` here as these types need
|
|
5793
5820
|
// to referenced by `Fetcher`. This is included in the "importable" version of the types which
|
|
5794
5821
|
// strips all `module` blocks.
|
package/package.json
CHANGED