@omnikit-ai/sdk 2.2.5 → 2.2.6
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/dist/index.d.mts +36 -1
- package/dist/index.d.ts +36 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1012,9 +1012,44 @@ type UserEntityClass<T = UserInfo> = UserCollectionClass<T>;
|
|
|
1012
1012
|
*/
|
|
1013
1013
|
type IntegrationMethod = (params?: Record<string, any>, useServiceToken?: boolean) => Promise<any>;
|
|
1014
1014
|
/**
|
|
1015
|
-
* BuiltIn integration methods
|
|
1015
|
+
* BuiltIn integration methods.
|
|
1016
|
+
* Supports both camelCase (industry standard) and PascalCase (legacy).
|
|
1017
|
+
* camelCase is recommended for new code.
|
|
1016
1018
|
*/
|
|
1017
1019
|
interface BuiltInIntegration {
|
|
1020
|
+
sendEmail(params: EmailParams): Promise<ServiceResponse>;
|
|
1021
|
+
sendSMS(params: SMSParams): Promise<ServiceResponse>;
|
|
1022
|
+
invokeLLM(params: LLMParams, options?: AsyncOptions): Promise<LLMResponse | AsyncJobCreatedResponse>;
|
|
1023
|
+
uploadFile(params: {
|
|
1024
|
+
file: File;
|
|
1025
|
+
metadata?: Record<string, any>;
|
|
1026
|
+
}): Promise<ServiceResponse>;
|
|
1027
|
+
uploadPrivateFile(params: {
|
|
1028
|
+
file: File;
|
|
1029
|
+
}): Promise<{
|
|
1030
|
+
file_uri: string;
|
|
1031
|
+
file_id: string;
|
|
1032
|
+
filename: string;
|
|
1033
|
+
size: number;
|
|
1034
|
+
content_type: string;
|
|
1035
|
+
}>;
|
|
1036
|
+
createFileSignedUrl(params: {
|
|
1037
|
+
file_uri: string;
|
|
1038
|
+
expires_in?: number;
|
|
1039
|
+
}): Promise<{
|
|
1040
|
+
signed_url: string;
|
|
1041
|
+
expires_in: number;
|
|
1042
|
+
}>;
|
|
1043
|
+
downloadPrivateFile(params: {
|
|
1044
|
+
file_uri: string;
|
|
1045
|
+
filename?: string;
|
|
1046
|
+
}): Promise<void>;
|
|
1047
|
+
generateImage(params: ImageParams): Promise<ServiceResponse>;
|
|
1048
|
+
generateSpeech(params: SpeechParams): Promise<ServiceResponse>;
|
|
1049
|
+
generateVideo(params: VideoParams): Promise<ServiceResponse>;
|
|
1050
|
+
checkVideoStatus(params: VideoStatusParams): Promise<ServiceResponse>;
|
|
1051
|
+
extractData(params: ExtractParams): Promise<ServiceResponse>;
|
|
1052
|
+
checkJobStatus(params: CheckJobStatusParams): Promise<AsyncJobStatusResponse>;
|
|
1018
1053
|
SendEmail(params: EmailParams): Promise<ServiceResponse>;
|
|
1019
1054
|
SendSMS(params: SMSParams): Promise<ServiceResponse>;
|
|
1020
1055
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1012,9 +1012,44 @@ type UserEntityClass<T = UserInfo> = UserCollectionClass<T>;
|
|
|
1012
1012
|
*/
|
|
1013
1013
|
type IntegrationMethod = (params?: Record<string, any>, useServiceToken?: boolean) => Promise<any>;
|
|
1014
1014
|
/**
|
|
1015
|
-
* BuiltIn integration methods
|
|
1015
|
+
* BuiltIn integration methods.
|
|
1016
|
+
* Supports both camelCase (industry standard) and PascalCase (legacy).
|
|
1017
|
+
* camelCase is recommended for new code.
|
|
1016
1018
|
*/
|
|
1017
1019
|
interface BuiltInIntegration {
|
|
1020
|
+
sendEmail(params: EmailParams): Promise<ServiceResponse>;
|
|
1021
|
+
sendSMS(params: SMSParams): Promise<ServiceResponse>;
|
|
1022
|
+
invokeLLM(params: LLMParams, options?: AsyncOptions): Promise<LLMResponse | AsyncJobCreatedResponse>;
|
|
1023
|
+
uploadFile(params: {
|
|
1024
|
+
file: File;
|
|
1025
|
+
metadata?: Record<string, any>;
|
|
1026
|
+
}): Promise<ServiceResponse>;
|
|
1027
|
+
uploadPrivateFile(params: {
|
|
1028
|
+
file: File;
|
|
1029
|
+
}): Promise<{
|
|
1030
|
+
file_uri: string;
|
|
1031
|
+
file_id: string;
|
|
1032
|
+
filename: string;
|
|
1033
|
+
size: number;
|
|
1034
|
+
content_type: string;
|
|
1035
|
+
}>;
|
|
1036
|
+
createFileSignedUrl(params: {
|
|
1037
|
+
file_uri: string;
|
|
1038
|
+
expires_in?: number;
|
|
1039
|
+
}): Promise<{
|
|
1040
|
+
signed_url: string;
|
|
1041
|
+
expires_in: number;
|
|
1042
|
+
}>;
|
|
1043
|
+
downloadPrivateFile(params: {
|
|
1044
|
+
file_uri: string;
|
|
1045
|
+
filename?: string;
|
|
1046
|
+
}): Promise<void>;
|
|
1047
|
+
generateImage(params: ImageParams): Promise<ServiceResponse>;
|
|
1048
|
+
generateSpeech(params: SpeechParams): Promise<ServiceResponse>;
|
|
1049
|
+
generateVideo(params: VideoParams): Promise<ServiceResponse>;
|
|
1050
|
+
checkVideoStatus(params: VideoStatusParams): Promise<ServiceResponse>;
|
|
1051
|
+
extractData(params: ExtractParams): Promise<ServiceResponse>;
|
|
1052
|
+
checkJobStatus(params: CheckJobStatusParams): Promise<AsyncJobStatusResponse>;
|
|
1018
1053
|
SendEmail(params: EmailParams): Promise<ServiceResponse>;
|
|
1019
1054
|
SendSMS(params: SMSParams): Promise<ServiceResponse>;
|
|
1020
1055
|
/**
|
package/package.json
CHANGED