@squiz/dxp-ai-client
Advanced tools
Comparing version 0.12.0 to 0.13.0
# @squiz/dxp-ai-client | ||
## 0.13.0 | ||
### Minor Changes | ||
- 0ce3fb7: expose chatbot getAllThreads | ||
## 0.12.0 | ||
@@ -4,0 +10,0 @@ |
@@ -59,3 +59,3 @@ export type AiAuthType = 'none' | 'dxp'; | ||
}; | ||
export interface GetAllGenerativeThreadsParams { | ||
export interface GetAllChatBotThreadsParams { | ||
aiId: string; | ||
@@ -69,2 +69,12 @@ cursor?: number; | ||
} | ||
export type GetAllChatBotThreadsParams1SortDirectionEnum = 'asc' | 'desc'; | ||
export interface GetAllGenerativeThreadsParams { | ||
aiId: string; | ||
cursor?: number; | ||
filterByDateFrom?: string; | ||
filterByDateTo?: string; | ||
filterByRating?: ThreadRatingParameter; | ||
pageSize?: PaginationPageLimit; | ||
sortDirection?: SortDirectionEnum3; | ||
} | ||
export type GetAllGenerativeThreadsParams1SortDirectionEnum = 'asc' | 'desc'; | ||
@@ -316,2 +326,3 @@ export interface GetExecutionOutputsResponse { | ||
export type SortDirectionEnum2 = 'asc' | 'desc'; | ||
export type SortDirectionEnum3 = 'asc' | 'desc'; | ||
export interface Thread { | ||
@@ -361,2 +372,18 @@ aiId: string; | ||
} | ||
namespace GetAllChatBotThreads { | ||
type RequestParams = { | ||
aiId: string; | ||
}; | ||
type RequestQuery = { | ||
cursor?: number; | ||
filterByDateFrom?: string; | ||
filterByDateTo?: string; | ||
filterByRating?: ThreadRatingParameter; | ||
pageSize?: PaginationPageLimit; | ||
sortDirection?: GetAllChatBotThreadsParams1SortDirectionEnum; | ||
}; | ||
type RequestBody = never; | ||
type RequestHeaders = {}; | ||
type ResponseBody = PageResultThread; | ||
} | ||
namespace List { | ||
@@ -652,2 +679,3 @@ type RequestParams = {}; | ||
get: (id: string, params?: RequestParams) => Promise<PickAiExcludeKeysTenantOrMetadata>; | ||
getAllChatBotThreads: ({ aiId, ...query }: GetAllChatBotThreadsParams, params?: RequestParams) => Promise<PageResultThread>; | ||
list: (query: ListParams, params?: RequestParams) => Promise<PageResultAiResponse>; | ||
@@ -654,0 +682,0 @@ set: (id: string, data: ChatBotWrite, params?: RequestParams) => Promise<PickAiExcludeKeysTenantOrMetadata>; |
@@ -5,3 +5,3 @@ { | ||
"private": false, | ||
"version": "0.12.0", | ||
"version": "0.13.0", | ||
"description": "Exposes the DXP AI service as a package for consumers", | ||
@@ -8,0 +8,0 @@ "main": "dist/index.js", |
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
219780
1867