@squiz/dxp-ai-client
Advanced tools
Comparing version 0.17.0 to 0.18.0
# @squiz/dxp-ai-client | ||
## 0.18.0 | ||
### Minor Changes | ||
- e082981: chatbot messages endpoint | ||
## 0.17.0 | ||
@@ -4,0 +10,0 @@ |
@@ -83,5 +83,13 @@ export type AiAuthType = 'none' | 'dxp'; | ||
pageSize?: PaginationPageLimit; | ||
sortDirection?: SortDirectionEnum4; | ||
} | ||
export type GetAllGenerativeThreadsParams1SortDirectionEnum = 'asc' | 'desc'; | ||
export interface GetChatBotThreadMessagesParams { | ||
aiId: string; | ||
cursor?: number; | ||
pageSize?: PaginationPageLimit; | ||
sortDirection?: SortDirectionEnum3; | ||
threadId: string; | ||
} | ||
export type GetAllGenerativeThreadsParams1SortDirectionEnum = 'asc' | 'desc'; | ||
export type GetChatBotThreadMessagesParams1SortDirectionEnum = 'asc' | 'desc'; | ||
export interface JSONSchema7 { | ||
@@ -207,2 +215,9 @@ $comment?: string; | ||
} | ||
export interface PageResultMessage { | ||
items: Message[]; | ||
links?: { | ||
nextPage?: string; | ||
prevPage?: string; | ||
}; | ||
} | ||
export interface PageResultPersistedContextItem { | ||
@@ -328,2 +343,3 @@ items: PersistedContextItem[]; | ||
export type SortDirectionEnum3 = 'asc' | 'desc'; | ||
export type SortDirectionEnum4 = 'asc' | 'desc'; | ||
export interface Thread { | ||
@@ -389,2 +405,16 @@ aiId: string; | ||
} | ||
namespace GetChatBotThreadMessages { | ||
type RequestParams = { | ||
aiId: string; | ||
threadId: string; | ||
}; | ||
type RequestQuery = { | ||
cursor?: number; | ||
pageSize?: PaginationPageLimit; | ||
sortDirection?: GetChatBotThreadMessagesParams1SortDirectionEnum; | ||
}; | ||
type RequestBody = never; | ||
type RequestHeaders = {}; | ||
type ResponseBody = PageResultMessage; | ||
} | ||
namespace List { | ||
@@ -706,2 +736,3 @@ type RequestParams = {}; | ||
getAllChatBotThreads: ({ aiId, ...query }: GetAllChatBotThreadsParams, params?: RequestParams) => Promise<PageResultThread>; | ||
getChatBotThreadMessages: ({ aiId, threadId, ...query }: GetChatBotThreadMessagesParams, params?: RequestParams) => Promise<PageResultMessage>; | ||
list: (query: ListParams, params?: RequestParams) => Promise<PageResultAiResponse>; | ||
@@ -708,0 +739,0 @@ set: (id: string, data: ChatBotWrite, params?: RequestParams) => Promise<PickAiExcludeKeysTenantOrMetadata>; |
@@ -5,3 +5,3 @@ { | ||
"private": false, | ||
"version": "0.17.0", | ||
"version": "0.18.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.11.0" | ||
"@squiz/ai-service": "1.12.0" | ||
}, | ||
"dependencies": {} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
258494
2214
60