@fencyai/react 0.1.99 → 0.1.101

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,7 @@
1
+ export interface SearchMemoriesParams {
2
+ memoryTypeId?: string;
3
+ title?: string;
4
+ fetchClientSecret: () => Promise<{
5
+ clientSecret: string;
6
+ }>;
7
+ }
@@ -0,0 +1,8 @@
1
+ import { ApiError, PubMemoryDto } from '@fencyai/js';
2
+ export type SearchMemoriesResult = {
3
+ type: 'success';
4
+ items: PubMemoryDto[];
5
+ } | {
6
+ type: 'error';
7
+ error: ApiError;
8
+ };
@@ -0,0 +1,5 @@
1
+ import { SearchMemoriesParams } from './SearchMemoriesParams';
2
+ import { SearchMemoriesResult } from './SearchMemoriesResult';
3
+ export interface UseSearchMemories {
4
+ search: (params: SearchMemoriesParams) => Promise<SearchMemoriesResult>;
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fencyai/react",
3
- "version": "0.1.99",
3
+ "version": "0.1.101",
4
4
  "description": "> TODO: description",
5
5
  "author": "staklau <steinaageklaussen@gmail.com>",
6
6
  "homepage": "",
@@ -32,7 +32,7 @@
32
32
  "prepublishOnly": "npm run build"
33
33
  },
34
34
  "devDependencies": {
35
- "@fencyai/js": "^0.1.99",
35
+ "@fencyai/js": "^0.1.101",
36
36
  "@types/jest": "^29.5.11",
37
37
  "@types/node": "^20.10.5",
38
38
  "@types/react": "^18.2.45",
@@ -46,7 +46,7 @@
46
46
  "vite-plugin-lib-inject-css": "^2.1.1"
47
47
  },
48
48
  "peerDependencies": {
49
- "@fencyai/js": "^0.1.99",
49
+ "@fencyai/js": "^0.1.101",
50
50
  "@radix-ui/react-popover": "^1.1.15",
51
51
  "react": ">=16.8.0",
52
52
  "react-markdown": "^10.1.0",
@@ -60,5 +60,5 @@
60
60
  "optional": false
61
61
  }
62
62
  },
63
- "gitHead": "982cdf11451b24fd0b968fdc83e0f7df296d3989"
63
+ "gitHead": "96ee2d5073669fa2a1a677648b2724230547dd80"
64
64
  }
@@ -1,2 +0,0 @@
1
- import { UseBasicChatCompletions } from '../../types/UseBasicChatCompletions';
2
- export declare const useBasicChatCompletions: () => UseBasicChatCompletions;
@@ -1,2 +0,0 @@
1
- import { UseListMemories } from '../../types/UseListMemories';
2
- export declare function useListMemories(): UseListMemories;
@@ -1,3 +0,0 @@
1
- import { UseStreamingChatCompletions } from '../../types/UseStreamingChatCompletions';
2
- import { UseStreamingChatCompletionsProps } from '../../types/UseStreamingChatCompletionsProps';
3
- export declare const useStreamingChatCompletions: (props: UseStreamingChatCompletionsProps) => UseStreamingChatCompletions;
@@ -1,2 +0,0 @@
1
- import { UseStructuredChatCompletions } from '../../types/UseStructuredChatCompletions';
2
- export declare const useStructuredChatCompletions: () => UseStructuredChatCompletions;
@@ -1,7 +0,0 @@
1
- import { PaginationDto, PubMemoryDto } from '@fencyai/js';
2
- export interface ListMemoriesPage {
3
- items: PubMemoryDto[];
4
- hasNextPage: boolean;
5
- hasPreviousPage: boolean;
6
- pagination: PaginationDto;
7
- }
@@ -1,12 +0,0 @@
1
- export interface ListMemoriesParams {
2
- memoryIds?: string[];
3
- typeId?: string;
4
- title?: string;
5
- meta: Record<string, string>;
6
- nextPageToken?: string;
7
- previousPageToken?: string;
8
- limit?: number;
9
- fetchClientSecret: () => Promise<{
10
- clientSecret: string;
11
- }>;
12
- }
@@ -1,9 +0,0 @@
1
- import { ApiError } from '@fencyai/js';
2
- import { ListMemoriesPage } from './ListMemoriesPage';
3
- export type ListMemoriesResult = {
4
- type: 'success';
5
- page: ListMemoriesPage;
6
- } | {
7
- type: 'error';
8
- error: ApiError;
9
- };
@@ -1,10 +0,0 @@
1
- import { ListMemoriesPage } from './ListMemoriesPage';
2
- import { ListMemoriesParams } from './ListMemoriesParams';
3
- import { ListMemoriesResult } from './ListMemoriesResult';
4
- export interface UseListMemories {
5
- listFirstPage: (params: ListMemoriesParams) => Promise<ListMemoriesResult>;
6
- listNextPage: (params: ListMemoriesParams) => Promise<ListMemoriesResult>;
7
- listPreviousPage: (params: ListMemoriesParams) => Promise<ListMemoriesResult>;
8
- refetchCurrentPage: () => Promise<ListMemoriesResult>;
9
- currentPage: ListMemoriesPage | null;
10
- }