@fencyai/js 0.1.106 → 0.1.108
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.
- package/lib/api/createAgentTask.d.ts +2 -1
- package/lib/api/createAgentTask.js +4 -4
- package/lib/api/createFileDownloadLink.d.ts +2 -1
- package/lib/api/createFileDownloadLink.js +5 -3
- package/lib/api/createStream.d.ts +1 -1
- package/lib/api/createStream.js +20 -4
- package/lib/index.d.ts +10 -5
- package/lib/index.js +2 -3
- package/lib/loadFency.d.ts +2 -1
- package/lib/openapi/client/index.d.ts +9 -0
- package/lib/openapi/client/index.js +9 -0
- package/lib/openapi/{models → client/models}/PubCreateAgentTaskRequest.d.ts +0 -1
- package/lib/openapi/client/services/PubService.d.ts +20 -0
- package/lib/openapi/client/services/PubService.js +33 -0
- package/lib/openapi/stream/core/ApiError.d.ts +10 -0
- package/lib/openapi/stream/core/ApiError.js +11 -0
- package/lib/openapi/stream/core/ApiRequestOptions.d.ts +13 -0
- package/lib/openapi/stream/core/ApiResult.d.ts +7 -0
- package/lib/openapi/stream/core/CancelablePromise.d.ts +20 -0
- package/lib/openapi/stream/core/CancelablePromise.js +111 -0
- package/lib/openapi/stream/core/OpenAPI.d.ts +16 -0
- package/lib/openapi/stream/core/OpenAPI.js +11 -0
- package/lib/openapi/stream/core/request.d.ts +30 -0
- package/lib/openapi/stream/core/request.js +275 -0
- package/lib/openapi/{index.d.ts → stream/index.d.ts} +0 -10
- package/lib/openapi/{index.js → stream/index.js} +0 -1
- package/lib/openapi/{models → stream/models}/StreamDto.d.ts +1 -0
- package/lib/openapi/stream/services/PubService.d.ts +24 -0
- package/lib/openapi/stream/services/PubService.js +26 -0
- package/lib/types/AgentTask.d.ts +1 -1
- package/lib/types/Stream.d.ts +1 -0
- package/lib/types/index.d.ts +1 -22
- package/lib/types/index.js +1 -2
- package/lib/utils/version.js +1 -1
- package/package.json +3 -3
- package/lib/api/listMemoryTypes.d.ts +0 -6
- package/lib/api/listMemoryTypes.js +0 -28
- package/lib/api/searchMemories.d.ts +0 -8
- package/lib/api/searchMemories.js +0 -27
- package/lib/openapi/models/ListMemoryTypesResponse.d.ts +0 -6
- package/lib/openapi/models/PaginationDto.d.ts +0 -4
- package/lib/openapi/models/PubMemoryDto.d.ts +0 -5
- package/lib/openapi/models/PubMemoryDto.js +0 -1
- package/lib/openapi/models/PubMemoryTypeDto.d.ts +0 -5
- package/lib/openapi/models/PubMemoryTypeDto.js +0 -1
- package/lib/openapi/models/PubSearchMemoriesRequest.d.ts +0 -4
- package/lib/openapi/models/PubSearchMemoriesRequest.js +0 -1
- package/lib/openapi/models/PubSearchMemoriesResponse.d.ts +0 -4
- package/lib/openapi/models/PubSearchMemoriesResponse.js +0 -1
- package/lib/openapi/services/PubService.d.ts +0 -63
- package/lib/openapi/services/PubService.js +0 -96
- package/lib/types/AnthropicModel.d.ts +0 -1
- package/lib/types/AnthropicModel.js +0 -1
- package/lib/types/ChatCompletion.d.ts +0 -8
- package/lib/types/ChatCompletion.js +0 -7
- package/lib/types/ChatCompletionMessage.d.ts +0 -4
- package/lib/types/ChatCompletionMessage.js +0 -1
- package/lib/types/ClaudeChatCompletionMessage.d.ts +0 -4
- package/lib/types/ClaudeChatCompletionMessage.js +0 -1
- package/lib/types/CreateChatCompletionRequest.d.ts +0 -10
- package/lib/types/CreateChatCompletionRequest.js +0 -1
- package/lib/types/CreateChatCompletionResponse.d.ts +0 -9
- package/lib/types/CreateChatCompletionResponse.js +0 -1
- package/lib/types/CreateClaudeChatCompletionRequestParams.d.ts +0 -10
- package/lib/types/CreateClaudeChatCompletionRequestParams.js +0 -1
- package/lib/types/CreateGeminiChatCompletionRequestParams.d.ts +0 -11
- package/lib/types/CreateGeminiChatCompletionRequestParams.js +0 -1
- package/lib/types/CreateOpenAiChatCompletionRequestParams.d.ts +0 -9
- package/lib/types/CreateOpenAiChatCompletionRequestParams.js +0 -1
- package/lib/types/GeminiChatCompletionMessage.d.ts +0 -4
- package/lib/types/GeminiChatCompletionMessage.js +0 -1
- package/lib/types/GeminiModel.d.ts +0 -1
- package/lib/types/GeminiModel.js +0 -1
- package/lib/types/ListMemoryTypesResponse.d.ts +0 -10
- package/lib/types/ListMemoryTypesResponse.js +0 -1
- package/lib/types/OpenAiModel.d.ts +0 -1
- package/lib/types/OpenAiModel.js +0 -1
- package/lib/types/SearchMemoriesRequest.d.ts +0 -4
- package/lib/types/SearchMemoriesRequest.js +0 -1
- package/lib/types/SearchMemoriesResponse.d.ts +0 -9
- package/lib/types/SearchMemoriesResponse.js +0 -1
- /package/lib/openapi/{core → client/core}/ApiError.d.ts +0 -0
- /package/lib/openapi/{core → client/core}/ApiError.js +0 -0
- /package/lib/openapi/{core → client/core}/ApiRequestOptions.d.ts +0 -0
- /package/lib/openapi/{core → client/core}/ApiRequestOptions.js +0 -0
- /package/lib/openapi/{core → client/core}/ApiResult.d.ts +0 -0
- /package/lib/openapi/{core → client/core}/ApiResult.js +0 -0
- /package/lib/openapi/{core → client/core}/CancelablePromise.d.ts +0 -0
- /package/lib/openapi/{core → client/core}/CancelablePromise.js +0 -0
- /package/lib/openapi/{core → client/core}/OpenAPI.d.ts +0 -0
- /package/lib/openapi/{core → client/core}/OpenAPI.js +0 -0
- /package/lib/openapi/{core → client/core}/request.d.ts +0 -0
- /package/lib/openapi/{core → client/core}/request.js +0 -0
- /package/lib/openapi/{models → client/models}/AgentTaskStatusDto.d.ts +0 -0
- /package/lib/openapi/{models → client/models}/AgentTaskStatusDto.js +0 -0
- /package/lib/openapi/{models → client/models}/PubAgentTaskDto.d.ts +0 -0
- /package/lib/openapi/{models → client/models}/PubAgentTaskDto.js +0 -0
- /package/lib/openapi/{models → client/models}/PubCreateAgentTaskRequest.js +0 -0
- /package/lib/openapi/{models → client/models}/PubCreateFileDownloadLinkResponse.d.ts +0 -0
- /package/lib/openapi/{models → client/models}/PubCreateFileDownloadLinkResponse.js +0 -0
- /package/lib/openapi/{models/AgentTaskProgressItemUpdatedEventDto.js → stream/core/ApiRequestOptions.js} +0 -0
- /package/lib/openapi/{models/ChatCompletionStreamCompletedEventDto.js → stream/core/ApiResult.js} +0 -0
- /package/lib/openapi/{models → stream/models}/AgentTaskProgressItemType.d.ts +0 -0
- /package/lib/openapi/{models → stream/models}/AgentTaskProgressItemType.js +0 -0
- /package/lib/openapi/{models → stream/models}/AgentTaskProgressItemUpdatedEventDto.d.ts +0 -0
- /package/lib/openapi/{models/FileSearchIndexReadyEventDto.js → stream/models/AgentTaskProgressItemUpdatedEventDto.js} +0 -0
- /package/lib/openapi/{models → stream/models}/ApiDtoType.d.ts +0 -0
- /package/lib/openapi/{models → stream/models}/ApiDtoType.js +0 -0
- /package/lib/openapi/{models → stream/models}/ChatCompletionStreamCompletedEventDto.d.ts +0 -0
- /package/lib/openapi/{models/FileTextContentReadyEventDto.js → stream/models/ChatCompletionStreamCompletedEventDto.js} +0 -0
- /package/lib/openapi/{models → stream/models}/FileSearchIndexReadyEventDto.d.ts +0 -0
- /package/lib/openapi/{models/FileUploadCompletedEventDto.js → stream/models/FileSearchIndexReadyEventDto.js} +0 -0
- /package/lib/openapi/{models → stream/models}/FileTextContentReadyEventDto.d.ts +0 -0
- /package/lib/openapi/{models/ListMemoryTypesResponse.js → stream/models/FileTextContentReadyEventDto.js} +0 -0
- /package/lib/openapi/{models → stream/models}/FileUploadCompletedEventDto.d.ts +0 -0
- /package/lib/openapi/{models/NewChatCompletionStreamChunkEventDto.js → stream/models/FileUploadCompletedEventDto.js} +0 -0
- /package/lib/openapi/{models → stream/models}/NewChatCompletionStreamChunkEventDto.d.ts +0 -0
- /package/lib/openapi/{models/PaginationDto.js → stream/models/NewChatCompletionStreamChunkEventDto.js} +0 -0
- /package/lib/openapi/{models → stream/models}/StreamDto.js +0 -0
- /package/lib/openapi/{models → stream/models}/StreamEventType.d.ts +0 -0
- /package/lib/openapi/{models → stream/models}/StreamEventType.js +0 -0
- /package/lib/openapi/{models → stream/models}/StreamNotFoundEventDto.d.ts +0 -0
- /package/lib/openapi/{models → stream/models}/StreamNotFoundEventDto.js +0 -0
- /package/lib/openapi/{models → stream/models}/StreamTimeoutEventDto.d.ts +0 -0
- /package/lib/openapi/{models → stream/models}/StreamTimeoutEventDto.js +0 -0
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
-
import { request as __request } from '../core/request';
|
|
3
|
-
export class PubService {
|
|
4
|
-
/**
|
|
5
|
-
* Create AgentTask
|
|
6
|
-
* @param requestBody
|
|
7
|
-
* @returns PubAgentTaskDto Created
|
|
8
|
-
* @throws ApiError
|
|
9
|
-
*/
|
|
10
|
-
static createAgentTask(requestBody) {
|
|
11
|
-
return __request(OpenAPI, {
|
|
12
|
-
method: 'POST',
|
|
13
|
-
url: '/v1/pub/agent-tasks',
|
|
14
|
-
body: requestBody,
|
|
15
|
-
mediaType: 'application/json',
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Create File Download Link
|
|
20
|
-
* @param fileId
|
|
21
|
-
* @returns PubCreateFileDownloadLinkResponse OK
|
|
22
|
-
* @throws ApiError
|
|
23
|
-
*/
|
|
24
|
-
static createFileDownloadLink(fileId) {
|
|
25
|
-
return __request(OpenAPI, {
|
|
26
|
-
method: 'POST',
|
|
27
|
-
url: '/v1/pub/files/{fileId}/download-links',
|
|
28
|
-
path: {
|
|
29
|
-
'fileId': fileId,
|
|
30
|
-
},
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Search Memories
|
|
35
|
-
* @param requestBody
|
|
36
|
-
* @param nextPageToken
|
|
37
|
-
* @param previousPageToken
|
|
38
|
-
* @param limit
|
|
39
|
-
* @returns PubSearchMemoriesResponse OK
|
|
40
|
-
* @throws ApiError
|
|
41
|
-
*/
|
|
42
|
-
static searchMemories(requestBody, nextPageToken, previousPageToken, limit) {
|
|
43
|
-
return __request(OpenAPI, {
|
|
44
|
-
method: 'POST',
|
|
45
|
-
url: '/v1/pub/memories/search',
|
|
46
|
-
query: {
|
|
47
|
-
'nextPageToken': nextPageToken,
|
|
48
|
-
'previousPageToken': previousPageToken,
|
|
49
|
-
'limit': limit,
|
|
50
|
-
},
|
|
51
|
-
body: requestBody,
|
|
52
|
-
mediaType: 'application/json',
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* List Memory Types
|
|
57
|
-
* @param nextPageToken
|
|
58
|
-
* @param previousPageToken
|
|
59
|
-
* @param limit
|
|
60
|
-
* @returns ListMemoryTypesResponse OK
|
|
61
|
-
* @throws ApiError
|
|
62
|
-
*/
|
|
63
|
-
static listMemoryTypes(nextPageToken, previousPageToken, limit) {
|
|
64
|
-
return __request(OpenAPI, {
|
|
65
|
-
method: 'GET',
|
|
66
|
-
url: '/v1/pub/memory-types',
|
|
67
|
-
query: {
|
|
68
|
-
'nextPageToken': nextPageToken,
|
|
69
|
-
'previousPageToken': previousPageToken,
|
|
70
|
-
'limit': limit,
|
|
71
|
-
},
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Create Chat Completion Stream
|
|
76
|
-
* @returns StreamDto Created
|
|
77
|
-
* @throws ApiError
|
|
78
|
-
*/
|
|
79
|
-
static createStream() {
|
|
80
|
-
return __request(OpenAPI, {
|
|
81
|
-
method: 'POST',
|
|
82
|
-
url: '/v1/pub/streams',
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* Get pub types
|
|
87
|
-
* @returns any OK
|
|
88
|
-
* @throws ApiError
|
|
89
|
-
*/
|
|
90
|
-
static getPubTypes() {
|
|
91
|
-
return __request(OpenAPI, {
|
|
92
|
-
method: 'POST',
|
|
93
|
-
url: '/v1/pub/types',
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type AnthropicModel = 'claude-opus-4-0' | 'claude-sonnet-4-0';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { CreateClaudeChatCompletionRequestParams } from './CreateClaudeChatCompletionRequestParams';
|
|
2
|
-
import { CreateGeminiChatCompletionRequestParams } from './CreateGeminiChatCompletionRequestParams';
|
|
3
|
-
import { CreateOpenAiChatCompletionRequestParams } from './CreateOpenAiChatCompletionRequestParams';
|
|
4
|
-
export interface CreateChatCompletionRequest {
|
|
5
|
-
streamId?: string;
|
|
6
|
-
sessionClientSecret?: string;
|
|
7
|
-
openai?: CreateOpenAiChatCompletionRequestParams;
|
|
8
|
-
gemini?: CreateGeminiChatCompletionRequestParams;
|
|
9
|
-
claude?: CreateClaudeChatCompletionRequestParams;
|
|
10
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { AnthropicModel } from './AnthropicModel';
|
|
2
|
-
import { ClaudeChatCompletionMessage } from './ClaudeChatCompletionMessage';
|
|
3
|
-
export type CreateClaudeChatCompletionRequestParams = {
|
|
4
|
-
model: AnthropicModel;
|
|
5
|
-
messages: Array<ClaudeChatCompletionMessage>;
|
|
6
|
-
systemPrompt?: string;
|
|
7
|
-
temperature?: number;
|
|
8
|
-
topP?: number;
|
|
9
|
-
topK?: number;
|
|
10
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { GeminiChatCompletionMessage } from './GeminiChatCompletionMessage';
|
|
2
|
-
import { GeminiModel } from './GeminiModel';
|
|
3
|
-
export type CreateGeminiChatCompletionRequestParams = {
|
|
4
|
-
model: GeminiModel;
|
|
5
|
-
messages: Array<GeminiChatCompletionMessage>;
|
|
6
|
-
systemPrompt?: string;
|
|
7
|
-
responseJsonSchema?: string;
|
|
8
|
-
temperature?: number;
|
|
9
|
-
topP?: number;
|
|
10
|
-
topK?: number;
|
|
11
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ChatCompletionMessage } from './ChatCompletionMessage';
|
|
2
|
-
import { OpenAiModel } from './OpenAiModel';
|
|
3
|
-
export type CreateOpenAiChatCompletionRequestParams = {
|
|
4
|
-
model: OpenAiModel;
|
|
5
|
-
messages: Array<ChatCompletionMessage>;
|
|
6
|
-
responseJsonSchema?: string;
|
|
7
|
-
temperature?: number;
|
|
8
|
-
topP?: number;
|
|
9
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type GeminiModel = 'gemini-2.5-pro' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite-preview-06-17';
|
package/lib/types/GeminiModel.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { PaginationDto, PubMemoryTypeDto } from '../openapi';
|
|
2
|
-
import { ApiError } from './ApiError';
|
|
3
|
-
export type ListMemoryTypesResponse = {
|
|
4
|
-
type: 'success';
|
|
5
|
-
items: PubMemoryTypeDto[];
|
|
6
|
-
pagination: PaginationDto;
|
|
7
|
-
} | {
|
|
8
|
-
type: 'error';
|
|
9
|
-
error: ApiError;
|
|
10
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type OpenAiModel = 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-4o' | 'gpt-4o-mini';
|
package/lib/types/OpenAiModel.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/lib/openapi/{models/ChatCompletionStreamCompletedEventDto.js → stream/core/ApiResult.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|