@squiz/dxp-ai-client
Advanced tools
Comparing version 0.10.0 to 0.11.0
# @squiz/dxp-ai-client | ||
## 0.11.0 | ||
### Minor Changes | ||
- 9e296b2: Added pagination to the contexts endpoint. | ||
## 0.10.0 | ||
@@ -4,0 +10,0 @@ |
@@ -63,3 +63,3 @@ export type AiAuthType = 'none' | 'dxp'; | ||
pageSize?: PaginationPageLimit; | ||
sortDirection?: SortDirectionEnum1; | ||
sortDirection?: SortDirectionEnum2; | ||
} | ||
@@ -147,5 +147,4 @@ export type GetAllGenerativeThreadsParams1SortDirectionEnum = 'asc' | 'desc'; | ||
} | ||
export interface ListParams3 { | ||
export interface ListParams2 { | ||
aiId: string; | ||
contextId: string; | ||
cursor?: number; | ||
@@ -155,4 +154,12 @@ pageSize?: PaginationPageLimit; | ||
} | ||
export type ListParams4SortDirectionEnum = 'asc' | 'desc'; | ||
export interface ListParams5 { | ||
export type ListParams3SortDirectionEnum = 'asc' | 'desc'; | ||
export interface ListParams4 { | ||
aiId: string; | ||
contextId: string; | ||
cursor?: number; | ||
pageSize?: PaginationPageLimit; | ||
sortDirection?: SortDirectionEnum1; | ||
} | ||
export type ListParams5SortDirectionEnum = 'asc' | 'desc'; | ||
export interface ListParams6 { | ||
cursor?: string; | ||
@@ -306,2 +313,3 @@ direction?: Direction; | ||
export type SortDirectionEnum1 = 'asc' | 'desc'; | ||
export type SortDirectionEnum2 = 'asc' | 'desc'; | ||
export interface Thread { | ||
@@ -394,3 +402,7 @@ aiId: string; | ||
}; | ||
type RequestQuery = {}; | ||
type RequestQuery = { | ||
cursor?: number; | ||
pageSize?: PaginationPageLimit; | ||
sortDirection?: ListParams3SortDirectionEnum; | ||
}; | ||
type RequestBody = never; | ||
@@ -442,3 +454,3 @@ type RequestHeaders = {}; | ||
pageSize?: PaginationPageLimit; | ||
sortDirection?: ListParams4SortDirectionEnum; | ||
sortDirection?: ListParams5SortDirectionEnum; | ||
}; | ||
@@ -638,3 +650,3 @@ type RequestBody = never; | ||
getSchema: (aiId: string, contextId: string, params?: RequestParams) => Promise<ExtendedJsonSchema>; | ||
list: (aiId: string, params?: RequestParams) => Promise<PageResultContext>; | ||
list: ({ aiId, ...query }: ListParams2, params?: RequestParams) => Promise<PageResultContext>; | ||
}; | ||
@@ -645,3 +657,3 @@ chatbotContextItem: { | ||
get: (aiId: string, contextId: string, contextItemId: string, params?: RequestParams) => Promise<ContextItem>; | ||
list: ({ aiId, contextId, ...query }: ListParams3, params?: RequestParams) => Promise<PageResultContextItem>; | ||
list: ({ aiId, contextId, ...query }: ListParams4, params?: RequestParams) => Promise<PageResultContextItem>; | ||
update: (aiId: string, contextId: string, contextItemId: string, data: PersistedContextItem, params?: RequestParams) => Promise<PersistedContextItem>; | ||
@@ -657,3 +669,3 @@ }; | ||
getGenerativeThreadQueryAndResponse: (aiId: string, threadId: string, params?: RequestParams) => Promise<Message>; | ||
list: (query: ListParams5, params?: RequestParams) => Promise<PageResultAiResponse>; | ||
list: (query: ListParams6, params?: RequestParams) => Promise<PageResultAiResponse>; | ||
rate: (aiId: string, threadId: string, data: RatePayload, params?: RequestParams) => Promise<Thread>; | ||
@@ -660,0 +672,0 @@ set: (id: string, data: GenerativeWrite, params?: RequestParams) => Promise<PickAiExcludeKeysTenantOrMetadata>; |
@@ -5,3 +5,3 @@ { | ||
"private": false, | ||
"version": "0.10.0", | ||
"version": "0.11.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.6.0" | ||
"@squiz/ai-service": "1.7.0" | ||
}, | ||
"dependencies": {} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
214286
1821