@cloudflare/workers-types 4.20251004.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/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/2022-11-30/index.d.ts
CHANGED
|
@@ -6704,13 +6704,6 @@ type AiOptions = {
|
|
|
6704
6704
|
prefix?: string;
|
|
6705
6705
|
extraHeaders?: object;
|
|
6706
6706
|
};
|
|
6707
|
-
type ConversionResponse = {
|
|
6708
|
-
name: string;
|
|
6709
|
-
mimeType: string;
|
|
6710
|
-
format: "markdown";
|
|
6711
|
-
tokens: number;
|
|
6712
|
-
data: string;
|
|
6713
|
-
};
|
|
6714
6707
|
type AiModelsSearchParams = {
|
|
6715
6708
|
author?: string;
|
|
6716
6709
|
hide_experimental?: boolean;
|
|
@@ -6767,6 +6760,7 @@ declare abstract class Ai<AiModelList extends AiModelListType = AiModels> {
|
|
|
6767
6760
|
: AiModelList[Name]["postProcessedOutputs"]
|
|
6768
6761
|
>;
|
|
6769
6762
|
models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
|
|
6763
|
+
toMarkdown(): ToMarkdownService;
|
|
6770
6764
|
toMarkdown(
|
|
6771
6765
|
files: {
|
|
6772
6766
|
name: string;
|
|
@@ -8987,6 +8981,47 @@ declare module "cloudflare:sockets" {
|
|
|
8987
8981
|
): Socket;
|
|
8988
8982
|
export { _connect as connect };
|
|
8989
8983
|
}
|
|
8984
|
+
type ConversionResponse = {
|
|
8985
|
+
name: string;
|
|
8986
|
+
mimeType: string;
|
|
8987
|
+
} & (
|
|
8988
|
+
| {
|
|
8989
|
+
format: "markdown";
|
|
8990
|
+
tokens: number;
|
|
8991
|
+
data: string;
|
|
8992
|
+
}
|
|
8993
|
+
| {
|
|
8994
|
+
format: "error";
|
|
8995
|
+
error: string;
|
|
8996
|
+
}
|
|
8997
|
+
);
|
|
8998
|
+
type SupportedFileFormat = {
|
|
8999
|
+
mimeType: string;
|
|
9000
|
+
extension: string;
|
|
9001
|
+
};
|
|
9002
|
+
declare abstract class ToMarkdownService {
|
|
9003
|
+
transform(
|
|
9004
|
+
files: {
|
|
9005
|
+
name: string;
|
|
9006
|
+
blob: Blob;
|
|
9007
|
+
}[],
|
|
9008
|
+
options?: {
|
|
9009
|
+
gateway?: GatewayOptions;
|
|
9010
|
+
extraHeaders?: object;
|
|
9011
|
+
},
|
|
9012
|
+
): Promise<ConversionResponse[]>;
|
|
9013
|
+
transform(
|
|
9014
|
+
files: {
|
|
9015
|
+
name: string;
|
|
9016
|
+
blob: Blob;
|
|
9017
|
+
},
|
|
9018
|
+
options?: {
|
|
9019
|
+
gateway?: GatewayOptions;
|
|
9020
|
+
extraHeaders?: object;
|
|
9021
|
+
},
|
|
9022
|
+
): Promise<ConversionResponse>;
|
|
9023
|
+
supported(): Promise<SupportedFileFormat[]>;
|
|
9024
|
+
}
|
|
8990
9025
|
declare namespace TailStream {
|
|
8991
9026
|
interface Header {
|
|
8992
9027
|
readonly name: string;
|
package/2022-11-30/index.ts
CHANGED
|
@@ -6721,13 +6721,6 @@ export type AiOptions = {
|
|
|
6721
6721
|
prefix?: string;
|
|
6722
6722
|
extraHeaders?: object;
|
|
6723
6723
|
};
|
|
6724
|
-
export type ConversionResponse = {
|
|
6725
|
-
name: string;
|
|
6726
|
-
mimeType: string;
|
|
6727
|
-
format: "markdown";
|
|
6728
|
-
tokens: number;
|
|
6729
|
-
data: string;
|
|
6730
|
-
};
|
|
6731
6724
|
export type AiModelsSearchParams = {
|
|
6732
6725
|
author?: string;
|
|
6733
6726
|
hide_experimental?: boolean;
|
|
@@ -6786,6 +6779,7 @@ export declare abstract class Ai<
|
|
|
6786
6779
|
: AiModelList[Name]["postProcessedOutputs"]
|
|
6787
6780
|
>;
|
|
6788
6781
|
models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
|
|
6782
|
+
toMarkdown(): ToMarkdownService;
|
|
6789
6783
|
toMarkdown(
|
|
6790
6784
|
files: {
|
|
6791
6785
|
name: string;
|
|
@@ -8952,6 +8946,47 @@ export interface SecretsStoreSecret {
|
|
|
8952
8946
|
*/
|
|
8953
8947
|
get(): Promise<string>;
|
|
8954
8948
|
}
|
|
8949
|
+
export type ConversionResponse = {
|
|
8950
|
+
name: string;
|
|
8951
|
+
mimeType: string;
|
|
8952
|
+
} & (
|
|
8953
|
+
| {
|
|
8954
|
+
format: "markdown";
|
|
8955
|
+
tokens: number;
|
|
8956
|
+
data: string;
|
|
8957
|
+
}
|
|
8958
|
+
| {
|
|
8959
|
+
format: "error";
|
|
8960
|
+
error: string;
|
|
8961
|
+
}
|
|
8962
|
+
);
|
|
8963
|
+
export type SupportedFileFormat = {
|
|
8964
|
+
mimeType: string;
|
|
8965
|
+
extension: string;
|
|
8966
|
+
};
|
|
8967
|
+
export declare abstract class ToMarkdownService {
|
|
8968
|
+
transform(
|
|
8969
|
+
files: {
|
|
8970
|
+
name: string;
|
|
8971
|
+
blob: Blob;
|
|
8972
|
+
}[],
|
|
8973
|
+
options?: {
|
|
8974
|
+
gateway?: GatewayOptions;
|
|
8975
|
+
extraHeaders?: object;
|
|
8976
|
+
},
|
|
8977
|
+
): Promise<ConversionResponse[]>;
|
|
8978
|
+
transform(
|
|
8979
|
+
files: {
|
|
8980
|
+
name: string;
|
|
8981
|
+
blob: Blob;
|
|
8982
|
+
},
|
|
8983
|
+
options?: {
|
|
8984
|
+
gateway?: GatewayOptions;
|
|
8985
|
+
extraHeaders?: object;
|
|
8986
|
+
},
|
|
8987
|
+
): Promise<ConversionResponse>;
|
|
8988
|
+
supported(): Promise<SupportedFileFormat[]>;
|
|
8989
|
+
}
|
|
8955
8990
|
export declare namespace TailStream {
|
|
8956
8991
|
interface Header {
|
|
8957
8992
|
readonly name: string;
|
package/2023-03-01/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/2023-03-01/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;
|
package/2023-07-01/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/2023-07-01/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;
|
package/experimental/index.d.ts
CHANGED
|
@@ -7117,13 +7117,6 @@ type AiOptions = {
|
|
|
7117
7117
|
prefix?: string;
|
|
7118
7118
|
extraHeaders?: object;
|
|
7119
7119
|
};
|
|
7120
|
-
type ConversionResponse = {
|
|
7121
|
-
name: string;
|
|
7122
|
-
mimeType: string;
|
|
7123
|
-
format: "markdown";
|
|
7124
|
-
tokens: number;
|
|
7125
|
-
data: string;
|
|
7126
|
-
};
|
|
7127
7120
|
type AiModelsSearchParams = {
|
|
7128
7121
|
author?: string;
|
|
7129
7122
|
hide_experimental?: boolean;
|
|
@@ -7180,6 +7173,7 @@ declare abstract class Ai<AiModelList extends AiModelListType = AiModels> {
|
|
|
7180
7173
|
: AiModelList[Name]["postProcessedOutputs"]
|
|
7181
7174
|
>;
|
|
7182
7175
|
models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
|
|
7176
|
+
toMarkdown(): ToMarkdownService;
|
|
7183
7177
|
toMarkdown(
|
|
7184
7178
|
files: {
|
|
7185
7179
|
name: string;
|
|
@@ -9400,6 +9394,47 @@ declare module "cloudflare:sockets" {
|
|
|
9400
9394
|
): Socket;
|
|
9401
9395
|
export { _connect as connect };
|
|
9402
9396
|
}
|
|
9397
|
+
type ConversionResponse = {
|
|
9398
|
+
name: string;
|
|
9399
|
+
mimeType: string;
|
|
9400
|
+
} & (
|
|
9401
|
+
| {
|
|
9402
|
+
format: "markdown";
|
|
9403
|
+
tokens: number;
|
|
9404
|
+
data: string;
|
|
9405
|
+
}
|
|
9406
|
+
| {
|
|
9407
|
+
format: "error";
|
|
9408
|
+
error: string;
|
|
9409
|
+
}
|
|
9410
|
+
);
|
|
9411
|
+
type SupportedFileFormat = {
|
|
9412
|
+
mimeType: string;
|
|
9413
|
+
extension: string;
|
|
9414
|
+
};
|
|
9415
|
+
declare abstract class ToMarkdownService {
|
|
9416
|
+
transform(
|
|
9417
|
+
files: {
|
|
9418
|
+
name: string;
|
|
9419
|
+
blob: Blob;
|
|
9420
|
+
}[],
|
|
9421
|
+
options?: {
|
|
9422
|
+
gateway?: GatewayOptions;
|
|
9423
|
+
extraHeaders?: object;
|
|
9424
|
+
},
|
|
9425
|
+
): Promise<ConversionResponse[]>;
|
|
9426
|
+
transform(
|
|
9427
|
+
files: {
|
|
9428
|
+
name: string;
|
|
9429
|
+
blob: Blob;
|
|
9430
|
+
},
|
|
9431
|
+
options?: {
|
|
9432
|
+
gateway?: GatewayOptions;
|
|
9433
|
+
extraHeaders?: object;
|
|
9434
|
+
},
|
|
9435
|
+
): Promise<ConversionResponse>;
|
|
9436
|
+
supported(): Promise<SupportedFileFormat[]>;
|
|
9437
|
+
}
|
|
9403
9438
|
declare namespace TailStream {
|
|
9404
9439
|
interface Header {
|
|
9405
9440
|
readonly name: string;
|
package/experimental/index.ts
CHANGED
|
@@ -7136,13 +7136,6 @@ export type AiOptions = {
|
|
|
7136
7136
|
prefix?: string;
|
|
7137
7137
|
extraHeaders?: object;
|
|
7138
7138
|
};
|
|
7139
|
-
export type ConversionResponse = {
|
|
7140
|
-
name: string;
|
|
7141
|
-
mimeType: string;
|
|
7142
|
-
format: "markdown";
|
|
7143
|
-
tokens: number;
|
|
7144
|
-
data: string;
|
|
7145
|
-
};
|
|
7146
7139
|
export type AiModelsSearchParams = {
|
|
7147
7140
|
author?: string;
|
|
7148
7141
|
hide_experimental?: boolean;
|
|
@@ -7201,6 +7194,7 @@ export declare abstract class Ai<
|
|
|
7201
7194
|
: AiModelList[Name]["postProcessedOutputs"]
|
|
7202
7195
|
>;
|
|
7203
7196
|
models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
|
|
7197
|
+
toMarkdown(): ToMarkdownService;
|
|
7204
7198
|
toMarkdown(
|
|
7205
7199
|
files: {
|
|
7206
7200
|
name: string;
|
|
@@ -9367,6 +9361,47 @@ export interface SecretsStoreSecret {
|
|
|
9367
9361
|
*/
|
|
9368
9362
|
get(): Promise<string>;
|
|
9369
9363
|
}
|
|
9364
|
+
export type ConversionResponse = {
|
|
9365
|
+
name: string;
|
|
9366
|
+
mimeType: string;
|
|
9367
|
+
} & (
|
|
9368
|
+
| {
|
|
9369
|
+
format: "markdown";
|
|
9370
|
+
tokens: number;
|
|
9371
|
+
data: string;
|
|
9372
|
+
}
|
|
9373
|
+
| {
|
|
9374
|
+
format: "error";
|
|
9375
|
+
error: string;
|
|
9376
|
+
}
|
|
9377
|
+
);
|
|
9378
|
+
export type SupportedFileFormat = {
|
|
9379
|
+
mimeType: string;
|
|
9380
|
+
extension: string;
|
|
9381
|
+
};
|
|
9382
|
+
export declare abstract class ToMarkdownService {
|
|
9383
|
+
transform(
|
|
9384
|
+
files: {
|
|
9385
|
+
name: string;
|
|
9386
|
+
blob: Blob;
|
|
9387
|
+
}[],
|
|
9388
|
+
options?: {
|
|
9389
|
+
gateway?: GatewayOptions;
|
|
9390
|
+
extraHeaders?: object;
|
|
9391
|
+
},
|
|
9392
|
+
): Promise<ConversionResponse[]>;
|
|
9393
|
+
transform(
|
|
9394
|
+
files: {
|
|
9395
|
+
name: string;
|
|
9396
|
+
blob: Blob;
|
|
9397
|
+
},
|
|
9398
|
+
options?: {
|
|
9399
|
+
gateway?: GatewayOptions;
|
|
9400
|
+
extraHeaders?: object;
|
|
9401
|
+
},
|
|
9402
|
+
): Promise<ConversionResponse>;
|
|
9403
|
+
supported(): Promise<SupportedFileFormat[]>;
|
|
9404
|
+
}
|
|
9370
9405
|
export declare namespace TailStream {
|
|
9371
9406
|
interface Header {
|
|
9372
9407
|
readonly name: string;
|
package/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/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;
|