@workers-community/workers-types 4.20251008.0 → 4.20251011.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/index.d.ts +42 -7
- package/index.ts +42 -7
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -6706,13 +6706,6 @@ type AiOptions = {
|
|
|
6706
6706
|
prefix?: string;
|
|
6707
6707
|
extraHeaders?: object;
|
|
6708
6708
|
};
|
|
6709
|
-
type ConversionResponse = {
|
|
6710
|
-
name: string;
|
|
6711
|
-
mimeType: string;
|
|
6712
|
-
format: "markdown";
|
|
6713
|
-
tokens: number;
|
|
6714
|
-
data: string;
|
|
6715
|
-
};
|
|
6716
6709
|
type AiModelsSearchParams = {
|
|
6717
6710
|
author?: string;
|
|
6718
6711
|
hide_experimental?: boolean;
|
|
@@ -6769,6 +6762,7 @@ declare abstract class Ai<AiModelList extends AiModelListType = AiModels> {
|
|
|
6769
6762
|
: AiModelList[Name]["postProcessedOutputs"]
|
|
6770
6763
|
>;
|
|
6771
6764
|
models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
|
|
6765
|
+
toMarkdown(): ToMarkdownService;
|
|
6772
6766
|
toMarkdown(
|
|
6773
6767
|
files: {
|
|
6774
6768
|
name: string;
|
|
@@ -8989,6 +8983,47 @@ declare module "cloudflare:sockets" {
|
|
|
8989
8983
|
): Socket;
|
|
8990
8984
|
export { _connect as connect };
|
|
8991
8985
|
}
|
|
8986
|
+
type ConversionResponse = {
|
|
8987
|
+
name: string;
|
|
8988
|
+
mimeType: string;
|
|
8989
|
+
} & (
|
|
8990
|
+
| {
|
|
8991
|
+
format: "markdown";
|
|
8992
|
+
tokens: number;
|
|
8993
|
+
data: string;
|
|
8994
|
+
}
|
|
8995
|
+
| {
|
|
8996
|
+
format: "error";
|
|
8997
|
+
error: string;
|
|
8998
|
+
}
|
|
8999
|
+
);
|
|
9000
|
+
type SupportedFileFormat = {
|
|
9001
|
+
mimeType: string;
|
|
9002
|
+
extension: string;
|
|
9003
|
+
};
|
|
9004
|
+
declare abstract class ToMarkdownService {
|
|
9005
|
+
transform(
|
|
9006
|
+
files: {
|
|
9007
|
+
name: string;
|
|
9008
|
+
blob: Blob;
|
|
9009
|
+
}[],
|
|
9010
|
+
options?: {
|
|
9011
|
+
gateway?: GatewayOptions;
|
|
9012
|
+
extraHeaders?: object;
|
|
9013
|
+
},
|
|
9014
|
+
): Promise<ConversionResponse[]>;
|
|
9015
|
+
transform(
|
|
9016
|
+
files: {
|
|
9017
|
+
name: string;
|
|
9018
|
+
blob: Blob;
|
|
9019
|
+
},
|
|
9020
|
+
options?: {
|
|
9021
|
+
gateway?: GatewayOptions;
|
|
9022
|
+
extraHeaders?: object;
|
|
9023
|
+
},
|
|
9024
|
+
): Promise<ConversionResponse>;
|
|
9025
|
+
supported(): Promise<SupportedFileFormat[]>;
|
|
9026
|
+
}
|
|
8992
9027
|
declare namespace TailStream {
|
|
8993
9028
|
interface Header {
|
|
8994
9029
|
readonly name: string;
|
package/index.ts
CHANGED
|
@@ -6723,13 +6723,6 @@ export type AiOptions = {
|
|
|
6723
6723
|
prefix?: string;
|
|
6724
6724
|
extraHeaders?: object;
|
|
6725
6725
|
};
|
|
6726
|
-
export type ConversionResponse = {
|
|
6727
|
-
name: string;
|
|
6728
|
-
mimeType: string;
|
|
6729
|
-
format: "markdown";
|
|
6730
|
-
tokens: number;
|
|
6731
|
-
data: string;
|
|
6732
|
-
};
|
|
6733
6726
|
export type AiModelsSearchParams = {
|
|
6734
6727
|
author?: string;
|
|
6735
6728
|
hide_experimental?: boolean;
|
|
@@ -6788,6 +6781,7 @@ export declare abstract class Ai<
|
|
|
6788
6781
|
: AiModelList[Name]["postProcessedOutputs"]
|
|
6789
6782
|
>;
|
|
6790
6783
|
models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
|
|
6784
|
+
toMarkdown(): ToMarkdownService;
|
|
6791
6785
|
toMarkdown(
|
|
6792
6786
|
files: {
|
|
6793
6787
|
name: string;
|
|
@@ -8954,6 +8948,47 @@ export interface SecretsStoreSecret {
|
|
|
8954
8948
|
*/
|
|
8955
8949
|
get(): Promise<string>;
|
|
8956
8950
|
}
|
|
8951
|
+
export type ConversionResponse = {
|
|
8952
|
+
name: string;
|
|
8953
|
+
mimeType: string;
|
|
8954
|
+
} & (
|
|
8955
|
+
| {
|
|
8956
|
+
format: "markdown";
|
|
8957
|
+
tokens: number;
|
|
8958
|
+
data: string;
|
|
8959
|
+
}
|
|
8960
|
+
| {
|
|
8961
|
+
format: "error";
|
|
8962
|
+
error: string;
|
|
8963
|
+
}
|
|
8964
|
+
);
|
|
8965
|
+
export type SupportedFileFormat = {
|
|
8966
|
+
mimeType: string;
|
|
8967
|
+
extension: string;
|
|
8968
|
+
};
|
|
8969
|
+
export declare abstract class ToMarkdownService {
|
|
8970
|
+
transform(
|
|
8971
|
+
files: {
|
|
8972
|
+
name: string;
|
|
8973
|
+
blob: Blob;
|
|
8974
|
+
}[],
|
|
8975
|
+
options?: {
|
|
8976
|
+
gateway?: GatewayOptions;
|
|
8977
|
+
extraHeaders?: object;
|
|
8978
|
+
},
|
|
8979
|
+
): Promise<ConversionResponse[]>;
|
|
8980
|
+
transform(
|
|
8981
|
+
files: {
|
|
8982
|
+
name: string;
|
|
8983
|
+
blob: Blob;
|
|
8984
|
+
},
|
|
8985
|
+
options?: {
|
|
8986
|
+
gateway?: GatewayOptions;
|
|
8987
|
+
extraHeaders?: object;
|
|
8988
|
+
},
|
|
8989
|
+
): Promise<ConversionResponse>;
|
|
8990
|
+
supported(): Promise<SupportedFileFormat[]>;
|
|
8991
|
+
}
|
|
8957
8992
|
export declare namespace TailStream {
|
|
8958
8993
|
interface Header {
|
|
8959
8994
|
readonly name: string;
|