@cloudflare/workers-types 4.20251008.0 → 4.20251014.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 +42 -7
- package/2021-11-03/index.ts +42 -7
- package/2022-01-31/index.d.ts +42 -7
- package/2022-01-31/index.ts +42 -7
- package/2022-03-21/index.d.ts +42 -7
- package/2022-03-21/index.ts +42 -7
- package/2022-08-04/index.d.ts +42 -7
- package/2022-08-04/index.ts +42 -7
- package/2022-10-31/index.d.ts +42 -7
- package/2022-10-31/index.ts +42 -7
- package/2022-11-30/index.d.ts +42 -7
- package/2022-11-30/index.ts +42 -7
- package/2023-03-01/index.d.ts +42 -7
- package/2023-03-01/index.ts +42 -7
- package/2023-07-01/index.d.ts +42 -7
- package/2023-07-01/index.ts +42 -7
- package/experimental/index.d.ts +42 -7
- package/experimental/index.ts +42 -7
- package/index.d.ts +42 -7
- package/index.ts +42 -7
- package/latest/index.d.ts +42 -7
- package/latest/index.ts +42 -7
- package/oldest/index.d.ts +42 -7
- package/oldest/index.ts +42 -7
- package/package.json +1 -1
package/latest/index.d.ts
CHANGED
|
@@ -6735,13 +6735,6 @@ type AiOptions = {
|
|
|
6735
6735
|
prefix?: string;
|
|
6736
6736
|
extraHeaders?: object;
|
|
6737
6737
|
};
|
|
6738
|
-
type ConversionResponse = {
|
|
6739
|
-
name: string;
|
|
6740
|
-
mimeType: string;
|
|
6741
|
-
format: "markdown";
|
|
6742
|
-
tokens: number;
|
|
6743
|
-
data: string;
|
|
6744
|
-
};
|
|
6745
6738
|
type AiModelsSearchParams = {
|
|
6746
6739
|
author?: string;
|
|
6747
6740
|
hide_experimental?: boolean;
|
|
@@ -6798,6 +6791,7 @@ declare abstract class Ai<AiModelList extends AiModelListType = AiModels> {
|
|
|
6798
6791
|
: AiModelList[Name]["postProcessedOutputs"]
|
|
6799
6792
|
>;
|
|
6800
6793
|
models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
|
|
6794
|
+
toMarkdown(): ToMarkdownService;
|
|
6801
6795
|
toMarkdown(
|
|
6802
6796
|
files: {
|
|
6803
6797
|
name: string;
|
|
@@ -9018,6 +9012,47 @@ declare module "cloudflare:sockets" {
|
|
|
9018
9012
|
): Socket;
|
|
9019
9013
|
export { _connect as connect };
|
|
9020
9014
|
}
|
|
9015
|
+
type ConversionResponse = {
|
|
9016
|
+
name: string;
|
|
9017
|
+
mimeType: string;
|
|
9018
|
+
} & (
|
|
9019
|
+
| {
|
|
9020
|
+
format: "markdown";
|
|
9021
|
+
tokens: number;
|
|
9022
|
+
data: string;
|
|
9023
|
+
}
|
|
9024
|
+
| {
|
|
9025
|
+
format: "error";
|
|
9026
|
+
error: string;
|
|
9027
|
+
}
|
|
9028
|
+
);
|
|
9029
|
+
type SupportedFileFormat = {
|
|
9030
|
+
mimeType: string;
|
|
9031
|
+
extension: string;
|
|
9032
|
+
};
|
|
9033
|
+
declare abstract class ToMarkdownService {
|
|
9034
|
+
transform(
|
|
9035
|
+
files: {
|
|
9036
|
+
name: string;
|
|
9037
|
+
blob: Blob;
|
|
9038
|
+
}[],
|
|
9039
|
+
options?: {
|
|
9040
|
+
gateway?: GatewayOptions;
|
|
9041
|
+
extraHeaders?: object;
|
|
9042
|
+
},
|
|
9043
|
+
): Promise<ConversionResponse[]>;
|
|
9044
|
+
transform(
|
|
9045
|
+
files: {
|
|
9046
|
+
name: string;
|
|
9047
|
+
blob: Blob;
|
|
9048
|
+
},
|
|
9049
|
+
options?: {
|
|
9050
|
+
gateway?: GatewayOptions;
|
|
9051
|
+
extraHeaders?: object;
|
|
9052
|
+
},
|
|
9053
|
+
): Promise<ConversionResponse>;
|
|
9054
|
+
supported(): Promise<SupportedFileFormat[]>;
|
|
9055
|
+
}
|
|
9021
9056
|
declare namespace TailStream {
|
|
9022
9057
|
interface Header {
|
|
9023
9058
|
readonly name: string;
|
package/latest/index.ts
CHANGED
|
@@ -6752,13 +6752,6 @@ export type AiOptions = {
|
|
|
6752
6752
|
prefix?: string;
|
|
6753
6753
|
extraHeaders?: object;
|
|
6754
6754
|
};
|
|
6755
|
-
export type ConversionResponse = {
|
|
6756
|
-
name: string;
|
|
6757
|
-
mimeType: string;
|
|
6758
|
-
format: "markdown";
|
|
6759
|
-
tokens: number;
|
|
6760
|
-
data: string;
|
|
6761
|
-
};
|
|
6762
6755
|
export type AiModelsSearchParams = {
|
|
6763
6756
|
author?: string;
|
|
6764
6757
|
hide_experimental?: boolean;
|
|
@@ -6817,6 +6810,7 @@ export declare abstract class Ai<
|
|
|
6817
6810
|
: AiModelList[Name]["postProcessedOutputs"]
|
|
6818
6811
|
>;
|
|
6819
6812
|
models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
|
|
6813
|
+
toMarkdown(): ToMarkdownService;
|
|
6820
6814
|
toMarkdown(
|
|
6821
6815
|
files: {
|
|
6822
6816
|
name: string;
|
|
@@ -8983,6 +8977,47 @@ export interface SecretsStoreSecret {
|
|
|
8983
8977
|
*/
|
|
8984
8978
|
get(): Promise<string>;
|
|
8985
8979
|
}
|
|
8980
|
+
export type ConversionResponse = {
|
|
8981
|
+
name: string;
|
|
8982
|
+
mimeType: string;
|
|
8983
|
+
} & (
|
|
8984
|
+
| {
|
|
8985
|
+
format: "markdown";
|
|
8986
|
+
tokens: number;
|
|
8987
|
+
data: string;
|
|
8988
|
+
}
|
|
8989
|
+
| {
|
|
8990
|
+
format: "error";
|
|
8991
|
+
error: string;
|
|
8992
|
+
}
|
|
8993
|
+
);
|
|
8994
|
+
export type SupportedFileFormat = {
|
|
8995
|
+
mimeType: string;
|
|
8996
|
+
extension: string;
|
|
8997
|
+
};
|
|
8998
|
+
export declare abstract class ToMarkdownService {
|
|
8999
|
+
transform(
|
|
9000
|
+
files: {
|
|
9001
|
+
name: string;
|
|
9002
|
+
blob: Blob;
|
|
9003
|
+
}[],
|
|
9004
|
+
options?: {
|
|
9005
|
+
gateway?: GatewayOptions;
|
|
9006
|
+
extraHeaders?: object;
|
|
9007
|
+
},
|
|
9008
|
+
): Promise<ConversionResponse[]>;
|
|
9009
|
+
transform(
|
|
9010
|
+
files: {
|
|
9011
|
+
name: string;
|
|
9012
|
+
blob: Blob;
|
|
9013
|
+
},
|
|
9014
|
+
options?: {
|
|
9015
|
+
gateway?: GatewayOptions;
|
|
9016
|
+
extraHeaders?: object;
|
|
9017
|
+
},
|
|
9018
|
+
): Promise<ConversionResponse>;
|
|
9019
|
+
supported(): Promise<SupportedFileFormat[]>;
|
|
9020
|
+
}
|
|
8986
9021
|
export declare namespace TailStream {
|
|
8987
9022
|
interface Header {
|
|
8988
9023
|
readonly name: string;
|
package/oldest/index.d.ts
CHANGED
|
@@ -6650,13 +6650,6 @@ type AiOptions = {
|
|
|
6650
6650
|
prefix?: string;
|
|
6651
6651
|
extraHeaders?: object;
|
|
6652
6652
|
};
|
|
6653
|
-
type ConversionResponse = {
|
|
6654
|
-
name: string;
|
|
6655
|
-
mimeType: string;
|
|
6656
|
-
format: "markdown";
|
|
6657
|
-
tokens: number;
|
|
6658
|
-
data: string;
|
|
6659
|
-
};
|
|
6660
6653
|
type AiModelsSearchParams = {
|
|
6661
6654
|
author?: string;
|
|
6662
6655
|
hide_experimental?: boolean;
|
|
@@ -6713,6 +6706,7 @@ declare abstract class Ai<AiModelList extends AiModelListType = AiModels> {
|
|
|
6713
6706
|
: AiModelList[Name]["postProcessedOutputs"]
|
|
6714
6707
|
>;
|
|
6715
6708
|
models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
|
|
6709
|
+
toMarkdown(): ToMarkdownService;
|
|
6716
6710
|
toMarkdown(
|
|
6717
6711
|
files: {
|
|
6718
6712
|
name: string;
|
|
@@ -8933,6 +8927,47 @@ declare module "cloudflare:sockets" {
|
|
|
8933
8927
|
): Socket;
|
|
8934
8928
|
export { _connect as connect };
|
|
8935
8929
|
}
|
|
8930
|
+
type ConversionResponse = {
|
|
8931
|
+
name: string;
|
|
8932
|
+
mimeType: string;
|
|
8933
|
+
} & (
|
|
8934
|
+
| {
|
|
8935
|
+
format: "markdown";
|
|
8936
|
+
tokens: number;
|
|
8937
|
+
data: string;
|
|
8938
|
+
}
|
|
8939
|
+
| {
|
|
8940
|
+
format: "error";
|
|
8941
|
+
error: string;
|
|
8942
|
+
}
|
|
8943
|
+
);
|
|
8944
|
+
type SupportedFileFormat = {
|
|
8945
|
+
mimeType: string;
|
|
8946
|
+
extension: string;
|
|
8947
|
+
};
|
|
8948
|
+
declare abstract class ToMarkdownService {
|
|
8949
|
+
transform(
|
|
8950
|
+
files: {
|
|
8951
|
+
name: string;
|
|
8952
|
+
blob: Blob;
|
|
8953
|
+
}[],
|
|
8954
|
+
options?: {
|
|
8955
|
+
gateway?: GatewayOptions;
|
|
8956
|
+
extraHeaders?: object;
|
|
8957
|
+
},
|
|
8958
|
+
): Promise<ConversionResponse[]>;
|
|
8959
|
+
transform(
|
|
8960
|
+
files: {
|
|
8961
|
+
name: string;
|
|
8962
|
+
blob: Blob;
|
|
8963
|
+
},
|
|
8964
|
+
options?: {
|
|
8965
|
+
gateway?: GatewayOptions;
|
|
8966
|
+
extraHeaders?: object;
|
|
8967
|
+
},
|
|
8968
|
+
): Promise<ConversionResponse>;
|
|
8969
|
+
supported(): Promise<SupportedFileFormat[]>;
|
|
8970
|
+
}
|
|
8936
8971
|
declare namespace TailStream {
|
|
8937
8972
|
interface Header {
|
|
8938
8973
|
readonly name: string;
|
package/oldest/index.ts
CHANGED
|
@@ -6667,13 +6667,6 @@ export type AiOptions = {
|
|
|
6667
6667
|
prefix?: string;
|
|
6668
6668
|
extraHeaders?: object;
|
|
6669
6669
|
};
|
|
6670
|
-
export type ConversionResponse = {
|
|
6671
|
-
name: string;
|
|
6672
|
-
mimeType: string;
|
|
6673
|
-
format: "markdown";
|
|
6674
|
-
tokens: number;
|
|
6675
|
-
data: string;
|
|
6676
|
-
};
|
|
6677
6670
|
export type AiModelsSearchParams = {
|
|
6678
6671
|
author?: string;
|
|
6679
6672
|
hide_experimental?: boolean;
|
|
@@ -6732,6 +6725,7 @@ export declare abstract class Ai<
|
|
|
6732
6725
|
: AiModelList[Name]["postProcessedOutputs"]
|
|
6733
6726
|
>;
|
|
6734
6727
|
models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
|
|
6728
|
+
toMarkdown(): ToMarkdownService;
|
|
6735
6729
|
toMarkdown(
|
|
6736
6730
|
files: {
|
|
6737
6731
|
name: string;
|
|
@@ -8898,6 +8892,47 @@ export interface SecretsStoreSecret {
|
|
|
8898
8892
|
*/
|
|
8899
8893
|
get(): Promise<string>;
|
|
8900
8894
|
}
|
|
8895
|
+
export type ConversionResponse = {
|
|
8896
|
+
name: string;
|
|
8897
|
+
mimeType: string;
|
|
8898
|
+
} & (
|
|
8899
|
+
| {
|
|
8900
|
+
format: "markdown";
|
|
8901
|
+
tokens: number;
|
|
8902
|
+
data: string;
|
|
8903
|
+
}
|
|
8904
|
+
| {
|
|
8905
|
+
format: "error";
|
|
8906
|
+
error: string;
|
|
8907
|
+
}
|
|
8908
|
+
);
|
|
8909
|
+
export type SupportedFileFormat = {
|
|
8910
|
+
mimeType: string;
|
|
8911
|
+
extension: string;
|
|
8912
|
+
};
|
|
8913
|
+
export declare abstract class ToMarkdownService {
|
|
8914
|
+
transform(
|
|
8915
|
+
files: {
|
|
8916
|
+
name: string;
|
|
8917
|
+
blob: Blob;
|
|
8918
|
+
}[],
|
|
8919
|
+
options?: {
|
|
8920
|
+
gateway?: GatewayOptions;
|
|
8921
|
+
extraHeaders?: object;
|
|
8922
|
+
},
|
|
8923
|
+
): Promise<ConversionResponse[]>;
|
|
8924
|
+
transform(
|
|
8925
|
+
files: {
|
|
8926
|
+
name: string;
|
|
8927
|
+
blob: Blob;
|
|
8928
|
+
},
|
|
8929
|
+
options?: {
|
|
8930
|
+
gateway?: GatewayOptions;
|
|
8931
|
+
extraHeaders?: object;
|
|
8932
|
+
},
|
|
8933
|
+
): Promise<ConversionResponse>;
|
|
8934
|
+
supported(): Promise<SupportedFileFormat[]>;
|
|
8935
|
+
}
|
|
8901
8936
|
export declare namespace TailStream {
|
|
8902
8937
|
interface Header {
|
|
8903
8938
|
readonly name: string;
|
package/package.json
CHANGED