@iblai/data-layer 1.8.3 → 1.8.5

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.
@@ -0,0 +1,3 @@
1
+ export declare const CHAT_HISTORY_PAGE_SIZE = 10;
2
+ export declare const CHAT_HISTORY_PAGE_PARAM = "page";
3
+ export declare const CHAT_HISTORY_PAGE_SIZE_PARAM = "page_size";
@@ -0,0 +1,9 @@
1
+ export type GetSessionIdArgs = {
2
+ org: string;
3
+ sessionId: string;
4
+ userId?: string;
5
+ page?: number;
6
+ pageSize?: number;
7
+ };
8
+ export declare const buildSessionRetrieveUrl: ({ org, sessionId, userId, page, pageSize, }: GetSessionIdArgs) => string;
9
+ export declare const buildSharedSessionRetrieveUrl: ({ org, sessionId, userId, page, pageSize, }: GetSessionIdArgs) => string;
@@ -50,6 +50,13 @@ export declare const buildEndpointFromDmService: <Args extends Record<string, un
50
50
  export declare const buildEndpointFromAxdService: <Args extends Record<string, unknown>, Result>(serviceFn: (args: Args) => Promise<Result>, options?: BuildEndpointOptions) => {
51
51
  queryFn: BaseQueryFn<Args, Result, FetchBaseQueryError | CustomError>;
52
52
  };
53
+ /**
54
+ * Build an endpoint from a hand-assembled URL (rather than a generated service
55
+ * method), routed through `iblFetchBaseQuery`. Defaults to the DM service.
56
+ */
57
+ export declare const buildEndpointFromDmUrl: <Args extends Record<string, unknown>, Result>(buildUrl: (args: Args) => string, service?: SERVICES) => {
58
+ queryFn: BaseQueryFn<Args, Result, FetchBaseQueryError | CustomError>;
59
+ };
53
60
  export interface CustomQueryArgs extends Omit<FetchArgs, 'url'> {
54
61
  url: string;
55
62
  service: SERVICES;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iblai/data-layer",
3
- "version": "1.8.3",
3
+ "version": "1.8.5",
4
4
  "description": "ibl.ai data layer",
5
5
  "main": "dist/index.esm.js",
6
6
  "types": "dist/index.d.ts",