@squiz/dxp-ai-client
Advanced tools
Comparing version 0.19.0 to 0.20.0
# @squiz/dxp-ai-client | ||
## 0.20.0 | ||
### Minor Changes | ||
- 918135e: Added endpoint for rating a chatbot thread. | ||
## 0.19.0 | ||
@@ -4,0 +10,0 @@ |
@@ -334,2 +334,5 @@ export type AiAuthType = 'none' | 'dxp'; | ||
} | ||
export interface RateBody { | ||
rating: ThreadRating; | ||
} | ||
export interface RatePayload { | ||
@@ -432,2 +435,12 @@ rating: ThreadRating; | ||
} | ||
namespace Rate { | ||
type RequestParams = { | ||
aiId: string; | ||
threadId: string; | ||
}; | ||
type RequestQuery = {}; | ||
type RequestBody = RatePayload; | ||
type RequestHeaders = {}; | ||
type ResponseBody = Thread; | ||
} | ||
namespace Set { | ||
@@ -655,3 +668,3 @@ type RequestParams = { | ||
type RequestQuery = {}; | ||
type RequestBody = RatePayload; | ||
type RequestBody = RateBody; | ||
type RequestHeaders = {}; | ||
@@ -739,2 +752,3 @@ type ResponseBody = Thread; | ||
list: (query: ListParams, params?: RequestParams) => Promise<PageResultAiResponse>; | ||
rate: (aiId: string, threadId: string, data: RatePayload, params?: RequestParams) => Promise<Thread>; | ||
set: (id: string, data: ChatBotWrite, params?: RequestParams) => Promise<PickAiExcludeKeysTenantOrMetadata>; | ||
@@ -767,3 +781,3 @@ update: (id: string, data: ChatBotPatch, params?: RequestParams) => Promise<PickAiExcludeKeysTenantOrMetadata>; | ||
list: (query: ListParams6, params?: RequestParams) => Promise<PageResultAiResponse>; | ||
rate: (aiId: string, threadId: string, data: RatePayload, params?: RequestParams) => Promise<Thread>; | ||
rate: (aiId: string, threadId: string, data: RateBody, params?: RequestParams) => Promise<Thread>; | ||
set: (id: string, data: GenerativeWrite, params?: RequestParams) => Promise<PickAiExcludeKeysTenantOrMetadata>; | ||
@@ -770,0 +784,0 @@ update: (id: string, data: GenerativePatch, params?: RequestParams) => Promise<PickAiExcludeKeysTenantOrMetadata>; |
@@ -5,3 +5,3 @@ { | ||
"private": false, | ||
"version": "0.19.0", | ||
"version": "0.20.0", | ||
"description": "Exposes the DXP AI service as a package for consumers", | ||
@@ -21,5 +21,5 @@ "main": "dist/index.js", | ||
"jest": "^29.7.0", | ||
"@squiz/ai-service": "1.13.0" | ||
"@squiz/ai-service": "1.14.0" | ||
}, | ||
"dependencies": {} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
261314
2239