@compassdigital/sdk.typescript 4.375.0 → 4.376.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/lib/index.d.ts +1 -8
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +0 -9
- package/lib/index.js.map +1 -1
- package/lib/interface/ai.d.ts +1 -8
- package/lib/interface/ai.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +0 -22
- package/src/interface/ai.ts +1 -16
package/src/index.ts
CHANGED
|
@@ -1291,8 +1291,6 @@ import {
|
|
|
1291
1291
|
PostAiImageGenerateResponse,
|
|
1292
1292
|
PostAiTranslateBody,
|
|
1293
1293
|
PostAiTranslateResponse,
|
|
1294
|
-
PostAiLanguageGenerateSearchParamsBody,
|
|
1295
|
-
PostAiLanguageGenerateSearchParamsResponse,
|
|
1296
1294
|
} from './interface/ai';
|
|
1297
1295
|
|
|
1298
1296
|
import {
|
|
@@ -14085,26 +14083,6 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
14085
14083
|
return this.request('ai', '/ai/translate', 'POST', `/ai/translate`, body, options);
|
|
14086
14084
|
}
|
|
14087
14085
|
|
|
14088
|
-
/**
|
|
14089
|
-
* POST /ai/language/generate-search-params - Generate search query parameters from natural language
|
|
14090
|
-
*
|
|
14091
|
-
* @param body
|
|
14092
|
-
* @param options - additional request options
|
|
14093
|
-
*/
|
|
14094
|
-
post_ai_language_generate_search_params(
|
|
14095
|
-
body: PostAiLanguageGenerateSearchParamsBody,
|
|
14096
|
-
options?: RequestOptions,
|
|
14097
|
-
): ResponsePromise<PostAiLanguageGenerateSearchParamsResponse> {
|
|
14098
|
-
return this.request(
|
|
14099
|
-
'ai',
|
|
14100
|
-
'/ai/language/generate-search-params',
|
|
14101
|
-
'POST',
|
|
14102
|
-
`/ai/language/generate-search-params`,
|
|
14103
|
-
body,
|
|
14104
|
-
options,
|
|
14105
|
-
);
|
|
14106
|
-
}
|
|
14107
|
-
|
|
14108
14086
|
/**
|
|
14109
14087
|
* POST /centricos/ai/item/description - Generate item description
|
|
14110
14088
|
*
|
package/src/interface/ai.ts
CHANGED
|
@@ -52,6 +52,7 @@ export interface GenerateImageRequest {
|
|
|
52
52
|
prompt: string;
|
|
53
53
|
number_of_images?: number;
|
|
54
54
|
negative_prompt?: string;
|
|
55
|
+
options: OptionsDTO;
|
|
55
56
|
}
|
|
56
57
|
|
|
57
58
|
export interface ImageDTO {
|
|
@@ -77,16 +78,6 @@ export interface TranslateResponse {
|
|
|
77
78
|
translations: Record<string, string>;
|
|
78
79
|
}
|
|
79
80
|
|
|
80
|
-
export interface GenerateSearchParamsRequest {
|
|
81
|
-
// Natural language query to convert to search parameters
|
|
82
|
-
query: string;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export interface GenerateSearchParamsResponse {
|
|
86
|
-
// Query parameters for get_search_order endpoint
|
|
87
|
-
params: Record<string, any>;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
81
|
// POST /ai/language/generate - Generate text from a given prompt
|
|
91
82
|
|
|
92
83
|
export type PostAiLanguageGenerateBody = GenerateTextRequest;
|
|
@@ -104,9 +95,3 @@ export type PostAiImageGenerateResponse = GenerateImageResponse;
|
|
|
104
95
|
export type PostAiTranslateBody = TranslateRequest;
|
|
105
96
|
|
|
106
97
|
export type PostAiTranslateResponse = TranslateResponse;
|
|
107
|
-
|
|
108
|
-
// POST /ai/language/generate-search-params - Generate search query parameters from natural language
|
|
109
|
-
|
|
110
|
-
export type PostAiLanguageGenerateSearchParamsBody = GenerateSearchParamsRequest;
|
|
111
|
-
|
|
112
|
-
export type PostAiLanguageGenerateSearchParamsResponse = GenerateSearchParamsResponse;
|