@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/2021-11-03/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/2021-11-03/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/2022-01-31/index.d.ts
CHANGED
|
@@ -6676,13 +6676,6 @@ type AiOptions = {
|
|
|
6676
6676
|
prefix?: string;
|
|
6677
6677
|
extraHeaders?: object;
|
|
6678
6678
|
};
|
|
6679
|
-
type ConversionResponse = {
|
|
6680
|
-
name: string;
|
|
6681
|
-
mimeType: string;
|
|
6682
|
-
format: "markdown";
|
|
6683
|
-
tokens: number;
|
|
6684
|
-
data: string;
|
|
6685
|
-
};
|
|
6686
6679
|
type AiModelsSearchParams = {
|
|
6687
6680
|
author?: string;
|
|
6688
6681
|
hide_experimental?: boolean;
|
|
@@ -6739,6 +6732,7 @@ declare abstract class Ai<AiModelList extends AiModelListType = AiModels> {
|
|
|
6739
6732
|
: AiModelList[Name]["postProcessedOutputs"]
|
|
6740
6733
|
>;
|
|
6741
6734
|
models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
|
|
6735
|
+
toMarkdown(): ToMarkdownService;
|
|
6742
6736
|
toMarkdown(
|
|
6743
6737
|
files: {
|
|
6744
6738
|
name: string;
|
|
@@ -8959,6 +8953,47 @@ declare module "cloudflare:sockets" {
|
|
|
8959
8953
|
): Socket;
|
|
8960
8954
|
export { _connect as connect };
|
|
8961
8955
|
}
|
|
8956
|
+
type ConversionResponse = {
|
|
8957
|
+
name: string;
|
|
8958
|
+
mimeType: string;
|
|
8959
|
+
} & (
|
|
8960
|
+
| {
|
|
8961
|
+
format: "markdown";
|
|
8962
|
+
tokens: number;
|
|
8963
|
+
data: string;
|
|
8964
|
+
}
|
|
8965
|
+
| {
|
|
8966
|
+
format: "error";
|
|
8967
|
+
error: string;
|
|
8968
|
+
}
|
|
8969
|
+
);
|
|
8970
|
+
type SupportedFileFormat = {
|
|
8971
|
+
mimeType: string;
|
|
8972
|
+
extension: string;
|
|
8973
|
+
};
|
|
8974
|
+
declare abstract class ToMarkdownService {
|
|
8975
|
+
transform(
|
|
8976
|
+
files: {
|
|
8977
|
+
name: string;
|
|
8978
|
+
blob: Blob;
|
|
8979
|
+
}[],
|
|
8980
|
+
options?: {
|
|
8981
|
+
gateway?: GatewayOptions;
|
|
8982
|
+
extraHeaders?: object;
|
|
8983
|
+
},
|
|
8984
|
+
): Promise<ConversionResponse[]>;
|
|
8985
|
+
transform(
|
|
8986
|
+
files: {
|
|
8987
|
+
name: string;
|
|
8988
|
+
blob: Blob;
|
|
8989
|
+
},
|
|
8990
|
+
options?: {
|
|
8991
|
+
gateway?: GatewayOptions;
|
|
8992
|
+
extraHeaders?: object;
|
|
8993
|
+
},
|
|
8994
|
+
): Promise<ConversionResponse>;
|
|
8995
|
+
supported(): Promise<SupportedFileFormat[]>;
|
|
8996
|
+
}
|
|
8962
8997
|
declare namespace TailStream {
|
|
8963
8998
|
interface Header {
|
|
8964
8999
|
readonly name: string;
|
package/2022-01-31/index.ts
CHANGED
|
@@ -6693,13 +6693,6 @@ export type AiOptions = {
|
|
|
6693
6693
|
prefix?: string;
|
|
6694
6694
|
extraHeaders?: object;
|
|
6695
6695
|
};
|
|
6696
|
-
export type ConversionResponse = {
|
|
6697
|
-
name: string;
|
|
6698
|
-
mimeType: string;
|
|
6699
|
-
format: "markdown";
|
|
6700
|
-
tokens: number;
|
|
6701
|
-
data: string;
|
|
6702
|
-
};
|
|
6703
6696
|
export type AiModelsSearchParams = {
|
|
6704
6697
|
author?: string;
|
|
6705
6698
|
hide_experimental?: boolean;
|
|
@@ -6758,6 +6751,7 @@ export declare abstract class Ai<
|
|
|
6758
6751
|
: AiModelList[Name]["postProcessedOutputs"]
|
|
6759
6752
|
>;
|
|
6760
6753
|
models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
|
|
6754
|
+
toMarkdown(): ToMarkdownService;
|
|
6761
6755
|
toMarkdown(
|
|
6762
6756
|
files: {
|
|
6763
6757
|
name: string;
|
|
@@ -8924,6 +8918,47 @@ export interface SecretsStoreSecret {
|
|
|
8924
8918
|
*/
|
|
8925
8919
|
get(): Promise<string>;
|
|
8926
8920
|
}
|
|
8921
|
+
export type ConversionResponse = {
|
|
8922
|
+
name: string;
|
|
8923
|
+
mimeType: string;
|
|
8924
|
+
} & (
|
|
8925
|
+
| {
|
|
8926
|
+
format: "markdown";
|
|
8927
|
+
tokens: number;
|
|
8928
|
+
data: string;
|
|
8929
|
+
}
|
|
8930
|
+
| {
|
|
8931
|
+
format: "error";
|
|
8932
|
+
error: string;
|
|
8933
|
+
}
|
|
8934
|
+
);
|
|
8935
|
+
export type SupportedFileFormat = {
|
|
8936
|
+
mimeType: string;
|
|
8937
|
+
extension: string;
|
|
8938
|
+
};
|
|
8939
|
+
export declare abstract class ToMarkdownService {
|
|
8940
|
+
transform(
|
|
8941
|
+
files: {
|
|
8942
|
+
name: string;
|
|
8943
|
+
blob: Blob;
|
|
8944
|
+
}[],
|
|
8945
|
+
options?: {
|
|
8946
|
+
gateway?: GatewayOptions;
|
|
8947
|
+
extraHeaders?: object;
|
|
8948
|
+
},
|
|
8949
|
+
): Promise<ConversionResponse[]>;
|
|
8950
|
+
transform(
|
|
8951
|
+
files: {
|
|
8952
|
+
name: string;
|
|
8953
|
+
blob: Blob;
|
|
8954
|
+
},
|
|
8955
|
+
options?: {
|
|
8956
|
+
gateway?: GatewayOptions;
|
|
8957
|
+
extraHeaders?: object;
|
|
8958
|
+
},
|
|
8959
|
+
): Promise<ConversionResponse>;
|
|
8960
|
+
supported(): Promise<SupportedFileFormat[]>;
|
|
8961
|
+
}
|
|
8927
8962
|
export declare namespace TailStream {
|
|
8928
8963
|
interface Header {
|
|
8929
8964
|
readonly name: string;
|
package/2022-03-21/index.d.ts
CHANGED
|
@@ -6694,13 +6694,6 @@ type AiOptions = {
|
|
|
6694
6694
|
prefix?: string;
|
|
6695
6695
|
extraHeaders?: object;
|
|
6696
6696
|
};
|
|
6697
|
-
type ConversionResponse = {
|
|
6698
|
-
name: string;
|
|
6699
|
-
mimeType: string;
|
|
6700
|
-
format: "markdown";
|
|
6701
|
-
tokens: number;
|
|
6702
|
-
data: string;
|
|
6703
|
-
};
|
|
6704
6697
|
type AiModelsSearchParams = {
|
|
6705
6698
|
author?: string;
|
|
6706
6699
|
hide_experimental?: boolean;
|
|
@@ -6757,6 +6750,7 @@ declare abstract class Ai<AiModelList extends AiModelListType = AiModels> {
|
|
|
6757
6750
|
: AiModelList[Name]["postProcessedOutputs"]
|
|
6758
6751
|
>;
|
|
6759
6752
|
models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
|
|
6753
|
+
toMarkdown(): ToMarkdownService;
|
|
6760
6754
|
toMarkdown(
|
|
6761
6755
|
files: {
|
|
6762
6756
|
name: string;
|
|
@@ -8977,6 +8971,47 @@ declare module "cloudflare:sockets" {
|
|
|
8977
8971
|
): Socket;
|
|
8978
8972
|
export { _connect as connect };
|
|
8979
8973
|
}
|
|
8974
|
+
type ConversionResponse = {
|
|
8975
|
+
name: string;
|
|
8976
|
+
mimeType: string;
|
|
8977
|
+
} & (
|
|
8978
|
+
| {
|
|
8979
|
+
format: "markdown";
|
|
8980
|
+
tokens: number;
|
|
8981
|
+
data: string;
|
|
8982
|
+
}
|
|
8983
|
+
| {
|
|
8984
|
+
format: "error";
|
|
8985
|
+
error: string;
|
|
8986
|
+
}
|
|
8987
|
+
);
|
|
8988
|
+
type SupportedFileFormat = {
|
|
8989
|
+
mimeType: string;
|
|
8990
|
+
extension: string;
|
|
8991
|
+
};
|
|
8992
|
+
declare abstract class ToMarkdownService {
|
|
8993
|
+
transform(
|
|
8994
|
+
files: {
|
|
8995
|
+
name: string;
|
|
8996
|
+
blob: Blob;
|
|
8997
|
+
}[],
|
|
8998
|
+
options?: {
|
|
8999
|
+
gateway?: GatewayOptions;
|
|
9000
|
+
extraHeaders?: object;
|
|
9001
|
+
},
|
|
9002
|
+
): Promise<ConversionResponse[]>;
|
|
9003
|
+
transform(
|
|
9004
|
+
files: {
|
|
9005
|
+
name: string;
|
|
9006
|
+
blob: Blob;
|
|
9007
|
+
},
|
|
9008
|
+
options?: {
|
|
9009
|
+
gateway?: GatewayOptions;
|
|
9010
|
+
extraHeaders?: object;
|
|
9011
|
+
},
|
|
9012
|
+
): Promise<ConversionResponse>;
|
|
9013
|
+
supported(): Promise<SupportedFileFormat[]>;
|
|
9014
|
+
}
|
|
8980
9015
|
declare namespace TailStream {
|
|
8981
9016
|
interface Header {
|
|
8982
9017
|
readonly name: string;
|
package/2022-03-21/index.ts
CHANGED
|
@@ -6711,13 +6711,6 @@ export type AiOptions = {
|
|
|
6711
6711
|
prefix?: string;
|
|
6712
6712
|
extraHeaders?: object;
|
|
6713
6713
|
};
|
|
6714
|
-
export type ConversionResponse = {
|
|
6715
|
-
name: string;
|
|
6716
|
-
mimeType: string;
|
|
6717
|
-
format: "markdown";
|
|
6718
|
-
tokens: number;
|
|
6719
|
-
data: string;
|
|
6720
|
-
};
|
|
6721
6714
|
export type AiModelsSearchParams = {
|
|
6722
6715
|
author?: string;
|
|
6723
6716
|
hide_experimental?: boolean;
|
|
@@ -6776,6 +6769,7 @@ export declare abstract class Ai<
|
|
|
6776
6769
|
: AiModelList[Name]["postProcessedOutputs"]
|
|
6777
6770
|
>;
|
|
6778
6771
|
models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
|
|
6772
|
+
toMarkdown(): ToMarkdownService;
|
|
6779
6773
|
toMarkdown(
|
|
6780
6774
|
files: {
|
|
6781
6775
|
name: string;
|
|
@@ -8942,6 +8936,47 @@ export interface SecretsStoreSecret {
|
|
|
8942
8936
|
*/
|
|
8943
8937
|
get(): Promise<string>;
|
|
8944
8938
|
}
|
|
8939
|
+
export type ConversionResponse = {
|
|
8940
|
+
name: string;
|
|
8941
|
+
mimeType: string;
|
|
8942
|
+
} & (
|
|
8943
|
+
| {
|
|
8944
|
+
format: "markdown";
|
|
8945
|
+
tokens: number;
|
|
8946
|
+
data: string;
|
|
8947
|
+
}
|
|
8948
|
+
| {
|
|
8949
|
+
format: "error";
|
|
8950
|
+
error: string;
|
|
8951
|
+
}
|
|
8952
|
+
);
|
|
8953
|
+
export type SupportedFileFormat = {
|
|
8954
|
+
mimeType: string;
|
|
8955
|
+
extension: string;
|
|
8956
|
+
};
|
|
8957
|
+
export declare abstract class ToMarkdownService {
|
|
8958
|
+
transform(
|
|
8959
|
+
files: {
|
|
8960
|
+
name: string;
|
|
8961
|
+
blob: Blob;
|
|
8962
|
+
}[],
|
|
8963
|
+
options?: {
|
|
8964
|
+
gateway?: GatewayOptions;
|
|
8965
|
+
extraHeaders?: object;
|
|
8966
|
+
},
|
|
8967
|
+
): Promise<ConversionResponse[]>;
|
|
8968
|
+
transform(
|
|
8969
|
+
files: {
|
|
8970
|
+
name: string;
|
|
8971
|
+
blob: Blob;
|
|
8972
|
+
},
|
|
8973
|
+
options?: {
|
|
8974
|
+
gateway?: GatewayOptions;
|
|
8975
|
+
extraHeaders?: object;
|
|
8976
|
+
},
|
|
8977
|
+
): Promise<ConversionResponse>;
|
|
8978
|
+
supported(): Promise<SupportedFileFormat[]>;
|
|
8979
|
+
}
|
|
8945
8980
|
export declare namespace TailStream {
|
|
8946
8981
|
interface Header {
|
|
8947
8982
|
readonly name: string;
|
package/2022-08-04/index.d.ts
CHANGED
|
@@ -6695,13 +6695,6 @@ type AiOptions = {
|
|
|
6695
6695
|
prefix?: string;
|
|
6696
6696
|
extraHeaders?: object;
|
|
6697
6697
|
};
|
|
6698
|
-
type ConversionResponse = {
|
|
6699
|
-
name: string;
|
|
6700
|
-
mimeType: string;
|
|
6701
|
-
format: "markdown";
|
|
6702
|
-
tokens: number;
|
|
6703
|
-
data: string;
|
|
6704
|
-
};
|
|
6705
6698
|
type AiModelsSearchParams = {
|
|
6706
6699
|
author?: string;
|
|
6707
6700
|
hide_experimental?: boolean;
|
|
@@ -6758,6 +6751,7 @@ declare abstract class Ai<AiModelList extends AiModelListType = AiModels> {
|
|
|
6758
6751
|
: AiModelList[Name]["postProcessedOutputs"]
|
|
6759
6752
|
>;
|
|
6760
6753
|
models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
|
|
6754
|
+
toMarkdown(): ToMarkdownService;
|
|
6761
6755
|
toMarkdown(
|
|
6762
6756
|
files: {
|
|
6763
6757
|
name: string;
|
|
@@ -8978,6 +8972,47 @@ declare module "cloudflare:sockets" {
|
|
|
8978
8972
|
): Socket;
|
|
8979
8973
|
export { _connect as connect };
|
|
8980
8974
|
}
|
|
8975
|
+
type ConversionResponse = {
|
|
8976
|
+
name: string;
|
|
8977
|
+
mimeType: string;
|
|
8978
|
+
} & (
|
|
8979
|
+
| {
|
|
8980
|
+
format: "markdown";
|
|
8981
|
+
tokens: number;
|
|
8982
|
+
data: string;
|
|
8983
|
+
}
|
|
8984
|
+
| {
|
|
8985
|
+
format: "error";
|
|
8986
|
+
error: string;
|
|
8987
|
+
}
|
|
8988
|
+
);
|
|
8989
|
+
type SupportedFileFormat = {
|
|
8990
|
+
mimeType: string;
|
|
8991
|
+
extension: string;
|
|
8992
|
+
};
|
|
8993
|
+
declare abstract class ToMarkdownService {
|
|
8994
|
+
transform(
|
|
8995
|
+
files: {
|
|
8996
|
+
name: string;
|
|
8997
|
+
blob: Blob;
|
|
8998
|
+
}[],
|
|
8999
|
+
options?: {
|
|
9000
|
+
gateway?: GatewayOptions;
|
|
9001
|
+
extraHeaders?: object;
|
|
9002
|
+
},
|
|
9003
|
+
): Promise<ConversionResponse[]>;
|
|
9004
|
+
transform(
|
|
9005
|
+
files: {
|
|
9006
|
+
name: string;
|
|
9007
|
+
blob: Blob;
|
|
9008
|
+
},
|
|
9009
|
+
options?: {
|
|
9010
|
+
gateway?: GatewayOptions;
|
|
9011
|
+
extraHeaders?: object;
|
|
9012
|
+
},
|
|
9013
|
+
): Promise<ConversionResponse>;
|
|
9014
|
+
supported(): Promise<SupportedFileFormat[]>;
|
|
9015
|
+
}
|
|
8981
9016
|
declare namespace TailStream {
|
|
8982
9017
|
interface Header {
|
|
8983
9018
|
readonly name: string;
|
package/2022-08-04/index.ts
CHANGED
|
@@ -6712,13 +6712,6 @@ export type AiOptions = {
|
|
|
6712
6712
|
prefix?: string;
|
|
6713
6713
|
extraHeaders?: object;
|
|
6714
6714
|
};
|
|
6715
|
-
export type ConversionResponse = {
|
|
6716
|
-
name: string;
|
|
6717
|
-
mimeType: string;
|
|
6718
|
-
format: "markdown";
|
|
6719
|
-
tokens: number;
|
|
6720
|
-
data: string;
|
|
6721
|
-
};
|
|
6722
6715
|
export type AiModelsSearchParams = {
|
|
6723
6716
|
author?: string;
|
|
6724
6717
|
hide_experimental?: boolean;
|
|
@@ -6777,6 +6770,7 @@ export declare abstract class Ai<
|
|
|
6777
6770
|
: AiModelList[Name]["postProcessedOutputs"]
|
|
6778
6771
|
>;
|
|
6779
6772
|
models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
|
|
6773
|
+
toMarkdown(): ToMarkdownService;
|
|
6780
6774
|
toMarkdown(
|
|
6781
6775
|
files: {
|
|
6782
6776
|
name: string;
|
|
@@ -8943,6 +8937,47 @@ export interface SecretsStoreSecret {
|
|
|
8943
8937
|
*/
|
|
8944
8938
|
get(): Promise<string>;
|
|
8945
8939
|
}
|
|
8940
|
+
export type ConversionResponse = {
|
|
8941
|
+
name: string;
|
|
8942
|
+
mimeType: string;
|
|
8943
|
+
} & (
|
|
8944
|
+
| {
|
|
8945
|
+
format: "markdown";
|
|
8946
|
+
tokens: number;
|
|
8947
|
+
data: string;
|
|
8948
|
+
}
|
|
8949
|
+
| {
|
|
8950
|
+
format: "error";
|
|
8951
|
+
error: string;
|
|
8952
|
+
}
|
|
8953
|
+
);
|
|
8954
|
+
export type SupportedFileFormat = {
|
|
8955
|
+
mimeType: string;
|
|
8956
|
+
extension: string;
|
|
8957
|
+
};
|
|
8958
|
+
export declare abstract class ToMarkdownService {
|
|
8959
|
+
transform(
|
|
8960
|
+
files: {
|
|
8961
|
+
name: string;
|
|
8962
|
+
blob: Blob;
|
|
8963
|
+
}[],
|
|
8964
|
+
options?: {
|
|
8965
|
+
gateway?: GatewayOptions;
|
|
8966
|
+
extraHeaders?: object;
|
|
8967
|
+
},
|
|
8968
|
+
): Promise<ConversionResponse[]>;
|
|
8969
|
+
transform(
|
|
8970
|
+
files: {
|
|
8971
|
+
name: string;
|
|
8972
|
+
blob: Blob;
|
|
8973
|
+
},
|
|
8974
|
+
options?: {
|
|
8975
|
+
gateway?: GatewayOptions;
|
|
8976
|
+
extraHeaders?: object;
|
|
8977
|
+
},
|
|
8978
|
+
): Promise<ConversionResponse>;
|
|
8979
|
+
supported(): Promise<SupportedFileFormat[]>;
|
|
8980
|
+
}
|
|
8946
8981
|
export declare namespace TailStream {
|
|
8947
8982
|
interface Header {
|
|
8948
8983
|
readonly name: string;
|
package/2022-10-31/index.d.ts
CHANGED
|
@@ -6699,13 +6699,6 @@ type AiOptions = {
|
|
|
6699
6699
|
prefix?: string;
|
|
6700
6700
|
extraHeaders?: object;
|
|
6701
6701
|
};
|
|
6702
|
-
type ConversionResponse = {
|
|
6703
|
-
name: string;
|
|
6704
|
-
mimeType: string;
|
|
6705
|
-
format: "markdown";
|
|
6706
|
-
tokens: number;
|
|
6707
|
-
data: string;
|
|
6708
|
-
};
|
|
6709
6702
|
type AiModelsSearchParams = {
|
|
6710
6703
|
author?: string;
|
|
6711
6704
|
hide_experimental?: boolean;
|
|
@@ -6762,6 +6755,7 @@ declare abstract class Ai<AiModelList extends AiModelListType = AiModels> {
|
|
|
6762
6755
|
: AiModelList[Name]["postProcessedOutputs"]
|
|
6763
6756
|
>;
|
|
6764
6757
|
models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
|
|
6758
|
+
toMarkdown(): ToMarkdownService;
|
|
6765
6759
|
toMarkdown(
|
|
6766
6760
|
files: {
|
|
6767
6761
|
name: string;
|
|
@@ -8982,6 +8976,47 @@ declare module "cloudflare:sockets" {
|
|
|
8982
8976
|
): Socket;
|
|
8983
8977
|
export { _connect as connect };
|
|
8984
8978
|
}
|
|
8979
|
+
type ConversionResponse = {
|
|
8980
|
+
name: string;
|
|
8981
|
+
mimeType: string;
|
|
8982
|
+
} & (
|
|
8983
|
+
| {
|
|
8984
|
+
format: "markdown";
|
|
8985
|
+
tokens: number;
|
|
8986
|
+
data: string;
|
|
8987
|
+
}
|
|
8988
|
+
| {
|
|
8989
|
+
format: "error";
|
|
8990
|
+
error: string;
|
|
8991
|
+
}
|
|
8992
|
+
);
|
|
8993
|
+
type SupportedFileFormat = {
|
|
8994
|
+
mimeType: string;
|
|
8995
|
+
extension: string;
|
|
8996
|
+
};
|
|
8997
|
+
declare abstract class ToMarkdownService {
|
|
8998
|
+
transform(
|
|
8999
|
+
files: {
|
|
9000
|
+
name: string;
|
|
9001
|
+
blob: Blob;
|
|
9002
|
+
}[],
|
|
9003
|
+
options?: {
|
|
9004
|
+
gateway?: GatewayOptions;
|
|
9005
|
+
extraHeaders?: object;
|
|
9006
|
+
},
|
|
9007
|
+
): Promise<ConversionResponse[]>;
|
|
9008
|
+
transform(
|
|
9009
|
+
files: {
|
|
9010
|
+
name: string;
|
|
9011
|
+
blob: Blob;
|
|
9012
|
+
},
|
|
9013
|
+
options?: {
|
|
9014
|
+
gateway?: GatewayOptions;
|
|
9015
|
+
extraHeaders?: object;
|
|
9016
|
+
},
|
|
9017
|
+
): Promise<ConversionResponse>;
|
|
9018
|
+
supported(): Promise<SupportedFileFormat[]>;
|
|
9019
|
+
}
|
|
8985
9020
|
declare namespace TailStream {
|
|
8986
9021
|
interface Header {
|
|
8987
9022
|
readonly name: string;
|
package/2022-10-31/index.ts
CHANGED
|
@@ -6716,13 +6716,6 @@ export type AiOptions = {
|
|
|
6716
6716
|
prefix?: string;
|
|
6717
6717
|
extraHeaders?: object;
|
|
6718
6718
|
};
|
|
6719
|
-
export type ConversionResponse = {
|
|
6720
|
-
name: string;
|
|
6721
|
-
mimeType: string;
|
|
6722
|
-
format: "markdown";
|
|
6723
|
-
tokens: number;
|
|
6724
|
-
data: string;
|
|
6725
|
-
};
|
|
6726
6719
|
export type AiModelsSearchParams = {
|
|
6727
6720
|
author?: string;
|
|
6728
6721
|
hide_experimental?: boolean;
|
|
@@ -6781,6 +6774,7 @@ export declare abstract class Ai<
|
|
|
6781
6774
|
: AiModelList[Name]["postProcessedOutputs"]
|
|
6782
6775
|
>;
|
|
6783
6776
|
models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
|
|
6777
|
+
toMarkdown(): ToMarkdownService;
|
|
6784
6778
|
toMarkdown(
|
|
6785
6779
|
files: {
|
|
6786
6780
|
name: string;
|
|
@@ -8947,6 +8941,47 @@ export interface SecretsStoreSecret {
|
|
|
8947
8941
|
*/
|
|
8948
8942
|
get(): Promise<string>;
|
|
8949
8943
|
}
|
|
8944
|
+
export type ConversionResponse = {
|
|
8945
|
+
name: string;
|
|
8946
|
+
mimeType: string;
|
|
8947
|
+
} & (
|
|
8948
|
+
| {
|
|
8949
|
+
format: "markdown";
|
|
8950
|
+
tokens: number;
|
|
8951
|
+
data: string;
|
|
8952
|
+
}
|
|
8953
|
+
| {
|
|
8954
|
+
format: "error";
|
|
8955
|
+
error: string;
|
|
8956
|
+
}
|
|
8957
|
+
);
|
|
8958
|
+
export type SupportedFileFormat = {
|
|
8959
|
+
mimeType: string;
|
|
8960
|
+
extension: string;
|
|
8961
|
+
};
|
|
8962
|
+
export declare abstract class ToMarkdownService {
|
|
8963
|
+
transform(
|
|
8964
|
+
files: {
|
|
8965
|
+
name: string;
|
|
8966
|
+
blob: Blob;
|
|
8967
|
+
}[],
|
|
8968
|
+
options?: {
|
|
8969
|
+
gateway?: GatewayOptions;
|
|
8970
|
+
extraHeaders?: object;
|
|
8971
|
+
},
|
|
8972
|
+
): Promise<ConversionResponse[]>;
|
|
8973
|
+
transform(
|
|
8974
|
+
files: {
|
|
8975
|
+
name: string;
|
|
8976
|
+
blob: Blob;
|
|
8977
|
+
},
|
|
8978
|
+
options?: {
|
|
8979
|
+
gateway?: GatewayOptions;
|
|
8980
|
+
extraHeaders?: object;
|
|
8981
|
+
},
|
|
8982
|
+
): Promise<ConversionResponse>;
|
|
8983
|
+
supported(): Promise<SupportedFileFormat[]>;
|
|
8984
|
+
}
|
|
8950
8985
|
export declare namespace TailStream {
|
|
8951
8986
|
interface Header {
|
|
8952
8987
|
readonly name: string;
|