@fencyai/js 0.1.93 → 0.1.94

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.
Files changed (36) hide show
  1. package/lib/api/createAgentTask.d.ts +7 -0
  2. package/lib/api/createAgentTask.js +31 -0
  3. package/lib/api/createStream.d.ts +0 -2
  4. package/lib/api/createStream.js +2 -20
  5. package/lib/index.d.ts +2 -1
  6. package/lib/index.js +1 -0
  7. package/lib/openapi/index.d.ts +4 -3
  8. package/lib/openapi/index.js +1 -1
  9. package/lib/openapi/models/AgentTaskStatusDto.d.ts +5 -0
  10. package/lib/openapi/models/AgentTaskStatusDto.js +10 -0
  11. package/lib/openapi/models/NewAgentTaskReasoningChunkEventDto.d.ts +8 -0
  12. package/lib/openapi/models/PubAgentTaskDto.d.ts +7 -0
  13. package/lib/openapi/models/PubChatCompletionDto.d.ts +0 -1
  14. package/lib/openapi/models/PubCreateAgentTaskRequest.d.ts +4 -0
  15. package/lib/openapi/models/StreamEventType.d.ts +2 -1
  16. package/lib/openapi/models/StreamEventType.js +1 -0
  17. package/lib/openapi/services/PubService.d.ts +12 -4
  18. package/lib/openapi/services/PubService.js +15 -4
  19. package/lib/types/AgentTask.d.ts +8 -0
  20. package/lib/types/AgentTask.js +8 -0
  21. package/lib/types/CreateAgentTaskRequest.d.ts +4 -0
  22. package/lib/types/CreateAgentTaskRequest.js +1 -0
  23. package/lib/types/CreateAgentTaskResponse.d.ts +9 -0
  24. package/lib/types/CreateAgentTaskResponse.js +1 -0
  25. package/lib/types/index.d.ts +4 -1
  26. package/lib/types/index.js +1 -0
  27. package/lib/utils/version.js +1 -1
  28. package/package.json +2 -2
  29. package/lib/openapi/models/CreateChatCompletionStreamRequest.d.ts +0 -3
  30. package/lib/openapi/models/CreateStreamRequest.d.ts +0 -6
  31. package/lib/openapi/models/StreamType.d.ts +0 -5
  32. package/lib/openapi/models/StreamType.js +0 -10
  33. package/lib/types/CreateStreamRequest.d.ts +0 -6
  34. /package/lib/openapi/models/{CreateChatCompletionStreamRequest.js → NewAgentTaskReasoningChunkEventDto.js} +0 -0
  35. /package/lib/openapi/models/{CreateStreamRequest.js → PubAgentTaskDto.js} +0 -0
  36. /package/lib/{types/CreateStreamRequest.js → openapi/models/PubCreateAgentTaskRequest.js} +0 -0
@@ -0,0 +1,7 @@
1
+ import { CreateAgentTaskRequest } from '../types/CreateAgentTaskRequest';
2
+ import { CreateAgentTaskResponse } from '../types/CreateAgentTaskResponse';
3
+ export declare function createAgentTask(params: {
4
+ pk: string;
5
+ request: CreateAgentTaskRequest;
6
+ baseUrl: string;
7
+ }): Promise<CreateAgentTaskResponse>;
@@ -0,0 +1,31 @@
1
+ import { OpenAPI, PubService } from '../openapi';
2
+ import { getPackageVersion } from '../utils/version';
3
+ export async function createAgentTask(params) {
4
+ try {
5
+ OpenAPI.BASE = params.baseUrl;
6
+ OpenAPI.HEADERS = {
7
+ 'Content-Type': 'application/json',
8
+ Authorization: `Bearer ${params.pk}`,
9
+ 'X-Fency-Sdk-Version': getPackageVersion(),
10
+ };
11
+ const response = await PubService.createAgentTask(params.request);
12
+ return {
13
+ type: 'success',
14
+ agentTask: {
15
+ id: response.id,
16
+ createdAt: response.createdAt,
17
+ status: response.status,
18
+ response: response.response,
19
+ },
20
+ };
21
+ }
22
+ catch (error) {
23
+ return {
24
+ type: 'error',
25
+ error: {
26
+ code: 'UnknownError',
27
+ message: `Unknown error!\n${error ? `Error: ${error}\n` : ''}`.trim(),
28
+ },
29
+ };
30
+ }
31
+ }
@@ -1,7 +1,5 @@
1
- import { CreateStreamRequest } from '../types/CreateStreamRequest';
2
1
  import { CreateStreamResponse } from '../types/CreateStreamResponse';
3
2
  export declare function createStream(params: {
4
3
  pk: string;
5
- request: CreateStreamRequest;
6
4
  baseUrl: string;
7
5
  }): Promise<CreateStreamResponse>;
@@ -1,4 +1,4 @@
1
- import { OpenAPI, PubService, StreamType } from '../openapi';
1
+ import { OpenAPI, PubService } from '../openapi';
2
2
  import { getPackageVersion } from '../utils/version';
3
3
  export async function createStream(params) {
4
4
  try {
@@ -8,15 +8,7 @@ export async function createStream(params) {
8
8
  Authorization: `Bearer ${params.pk}`,
9
9
  'X-Fency-Sdk-Version': getPackageVersion(),
10
10
  };
11
- const response = await PubService.createStream({
12
- type: mapTypeToStreamType(params.request.type),
13
- chatCompletionStream: params.request.type === 'ChatCompletionStream'
14
- ? {
15
- clientSecret: params.request.chatCompletionStreamOptions
16
- ?.sessionClientSecret,
17
- }
18
- : undefined,
19
- });
11
+ const response = await PubService.createStream();
20
12
  return {
21
13
  type: 'success',
22
14
  stream: {
@@ -35,13 +27,3 @@ export async function createStream(params) {
35
27
  };
36
28
  }
37
29
  }
38
- const mapTypeToStreamType = (type) => {
39
- switch (type) {
40
- case 'ChatCompletionStream':
41
- return StreamType.CHAT_COMPLETION_STREAM;
42
- case 'FileStream':
43
- return StreamType.FILE_STREAM;
44
- case 'WebsiteStream':
45
- return StreamType.WEBSITE_STREAM;
46
- }
47
- };
package/lib/index.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  export { loadFency } from './loadFency';
2
2
  export type { FencyInstance, FencyOptions } from './types';
3
3
  export * from './types/index';
4
- export type { ChatCompletionStreamCompletedEventDto, FileTextContentReadyEventDto, FileUploadCompletedEventDto, NewChatCompletionStreamChunkEventDto, StreamNotFoundEventDto, StreamTimeoutEventDto, WebsiteHtmlContentReadyEventDto, WebsiteTextContentReadyEventDto, } from './openapi';
4
+ export type { ChatCompletionStreamCompletedEventDto, FileTextContentReadyEventDto, FileUploadCompletedEventDto, NewChatCompletionStreamChunkEventDto, StreamNotFoundEventDto, StreamTimeoutEventDto, WebsiteHtmlContentReadyEventDto, WebsiteTextContentReadyEventDto, NewAgentTaskReasoningChunkEventDto, } from './openapi';
5
+ export { createAgentTask } from './api/createAgentTask';
5
6
  export { createChatCompletion } from './api/createChatCompletion';
6
7
  export { createStream } from './api/createStream';
7
8
  export { listMemoryTypes } from './api/listMemoryTypes';
package/lib/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export { loadFency } from './loadFency';
2
2
  export * from './types/index';
3
3
  // api
4
+ export { createAgentTask } from './api/createAgentTask';
4
5
  export { createChatCompletion } from './api/createChatCompletion';
5
6
  export { createStream } from './api/createStream';
6
7
  export { listMemoryTypes } from './api/listMemoryTypes';
@@ -2,24 +2,26 @@ export { ApiError } from './core/ApiError';
2
2
  export { CancelablePromise, CancelError } from './core/CancelablePromise';
3
3
  export { OpenAPI } from './core/OpenAPI';
4
4
  export type { OpenAPIConfig } from './core/OpenAPI';
5
+ export { AgentTaskStatusDto } from './models/AgentTaskStatusDto';
5
6
  export { ApiDtoType } from './models/ApiDtoType';
6
7
  export type { ChatCompletionStreamCompletedEventDto } from './models/ChatCompletionStreamCompletedEventDto';
7
- export type { CreateChatCompletionStreamRequest } from './models/CreateChatCompletionStreamRequest';
8
8
  export type { CreateClaudeChatCompletionDto } from './models/CreateClaudeChatCompletionDto';
9
9
  export type { CreateClaudeChatCompletionMessageDto } from './models/CreateClaudeChatCompletionMessageDto';
10
10
  export type { CreateGeminiChatCompletionDto } from './models/CreateGeminiChatCompletionDto';
11
11
  export type { CreateGeminiChatCompletionMessageDto } from './models/CreateGeminiChatCompletionMessageDto';
12
12
  export type { CreateOpenAiChatCompletionDto } from './models/CreateOpenAiChatCompletionDto';
13
13
  export type { CreateOpenAiChatCompletionMessageDto } from './models/CreateOpenAiChatCompletionMessageDto';
14
- export type { CreateStreamRequest } from './models/CreateStreamRequest';
15
14
  export type { FileSearchIndexReadyEventDto } from './models/FileSearchIndexReadyEventDto';
16
15
  export type { FileTextContentReadyEventDto } from './models/FileTextContentReadyEventDto';
17
16
  export type { FileUploadCompletedEventDto } from './models/FileUploadCompletedEventDto';
18
17
  export type { ListMemoriesResponse } from './models/ListMemoriesResponse';
19
18
  export type { ListMemoryTypesResponse } from './models/ListMemoryTypesResponse';
19
+ export type { NewAgentTaskReasoningChunkEventDto } from './models/NewAgentTaskReasoningChunkEventDto';
20
20
  export type { NewChatCompletionStreamChunkEventDto } from './models/NewChatCompletionStreamChunkEventDto';
21
21
  export type { PaginationDto } from './models/PaginationDto';
22
+ export type { PubAgentTaskDto } from './models/PubAgentTaskDto';
22
23
  export type { PubChatCompletionDto } from './models/PubChatCompletionDto';
24
+ export type { PubCreateAgentTaskRequest } from './models/PubCreateAgentTaskRequest';
23
25
  export type { PubCreateChatCompletionRequest } from './models/PubCreateChatCompletionRequest';
24
26
  export type { PubMemoryDto } from './models/PubMemoryDto';
25
27
  export type { PubMemoryTypeDto } from './models/PubMemoryTypeDto';
@@ -27,7 +29,6 @@ export type { StreamDto } from './models/StreamDto';
27
29
  export { StreamEventType } from './models/StreamEventType';
28
30
  export type { StreamNotFoundEventDto } from './models/StreamNotFoundEventDto';
29
31
  export type { StreamTimeoutEventDto } from './models/StreamTimeoutEventDto';
30
- export { StreamType } from './models/StreamType';
31
32
  export type { WebsiteHtmlContentReadyEventDto } from './models/WebsiteHtmlContentReadyEventDto';
32
33
  export type { WebsiteTextContentReadyEventDto } from './models/WebsiteTextContentReadyEventDto';
33
34
  export { PubService } from './services/PubService';
@@ -5,7 +5,7 @@
5
5
  export { ApiError } from './core/ApiError';
6
6
  export { CancelablePromise, CancelError } from './core/CancelablePromise';
7
7
  export { OpenAPI } from './core/OpenAPI';
8
+ export { AgentTaskStatusDto } from './models/AgentTaskStatusDto';
8
9
  export { ApiDtoType } from './models/ApiDtoType';
9
10
  export { StreamEventType } from './models/StreamEventType';
10
- export { StreamType } from './models/StreamType';
11
11
  export { PubService } from './services/PubService';
@@ -0,0 +1,5 @@
1
+ export declare enum AgentTaskStatusDto {
2
+ IN_PROGRESS = "InProgress",
3
+ FAILED = "Failed",
4
+ COMPLETED = "Completed"
5
+ }
@@ -0,0 +1,10 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export var AgentTaskStatusDto;
6
+ (function (AgentTaskStatusDto) {
7
+ AgentTaskStatusDto["IN_PROGRESS"] = "InProgress";
8
+ AgentTaskStatusDto["FAILED"] = "Failed";
9
+ AgentTaskStatusDto["COMPLETED"] = "Completed";
10
+ })(AgentTaskStatusDto || (AgentTaskStatusDto = {}));
@@ -0,0 +1,8 @@
1
+ import type { StreamEventType } from './StreamEventType';
2
+ export type NewAgentTaskReasoningChunkEventDto = {
3
+ type: StreamEventType;
4
+ streamId: string;
5
+ agentTaskId: string;
6
+ timestamp: string;
7
+ content: string;
8
+ };
@@ -0,0 +1,7 @@
1
+ import type { AgentTaskStatusDto } from './AgentTaskStatusDto';
2
+ export type PubAgentTaskDto = {
3
+ id: string;
4
+ createdAt: string;
5
+ status: AgentTaskStatusDto;
6
+ response?: Record<string, any>;
7
+ };
@@ -6,5 +6,4 @@ export type PubChatCompletionDto = {
6
6
  streamId?: string | null;
7
7
  response?: string | null;
8
8
  responseIsStructured?: boolean | null;
9
- userId?: string | null;
10
9
  };
@@ -0,0 +1,4 @@
1
+ export type PubCreateAgentTaskRequest = {
2
+ queryText: string;
3
+ streamId: string;
4
+ };
@@ -7,5 +7,6 @@ export declare enum StreamEventType {
7
7
  FILE_TEXT_CONTENT_READY = "FileTextContentReady",
8
8
  WEBSITE_HTML_CONTENT_READY = "WebsiteHtmlContentReady",
9
9
  WEBSITE_TEXT_CONTENT_READY = "WebsiteTextContentReady",
10
- FILE_SEARCH_INDEX_READY = "FileSearchIndexReady"
10
+ FILE_SEARCH_INDEX_READY = "FileSearchIndexReady",
11
+ NEW_AGENT_TASK_REASONING_CHUNK = "NewAgentTaskReasoningChunk"
11
12
  }
@@ -13,4 +13,5 @@ export var StreamEventType;
13
13
  StreamEventType["WEBSITE_HTML_CONTENT_READY"] = "WebsiteHtmlContentReady";
14
14
  StreamEventType["WEBSITE_TEXT_CONTENT_READY"] = "WebsiteTextContentReady";
15
15
  StreamEventType["FILE_SEARCH_INDEX_READY"] = "FileSearchIndexReady";
16
+ StreamEventType["NEW_AGENT_TASK_REASONING_CHUNK"] = "NewAgentTaskReasoningChunk";
16
17
  })(StreamEventType || (StreamEventType = {}));
@@ -1,12 +1,14 @@
1
1
  import type { ChatCompletionStreamCompletedEventDto } from '../models/ChatCompletionStreamCompletedEventDto';
2
- import type { CreateStreamRequest } from '../models/CreateStreamRequest';
3
2
  import type { FileSearchIndexReadyEventDto } from '../models/FileSearchIndexReadyEventDto';
4
3
  import type { FileTextContentReadyEventDto } from '../models/FileTextContentReadyEventDto';
5
4
  import type { FileUploadCompletedEventDto } from '../models/FileUploadCompletedEventDto';
6
5
  import type { ListMemoriesResponse } from '../models/ListMemoriesResponse';
7
6
  import type { ListMemoryTypesResponse } from '../models/ListMemoryTypesResponse';
7
+ import type { NewAgentTaskReasoningChunkEventDto } from '../models/NewAgentTaskReasoningChunkEventDto';
8
8
  import type { NewChatCompletionStreamChunkEventDto } from '../models/NewChatCompletionStreamChunkEventDto';
9
+ import type { PubAgentTaskDto } from '../models/PubAgentTaskDto';
9
10
  import type { PubChatCompletionDto } from '../models/PubChatCompletionDto';
11
+ import type { PubCreateAgentTaskRequest } from '../models/PubCreateAgentTaskRequest';
10
12
  import type { PubCreateChatCompletionRequest } from '../models/PubCreateChatCompletionRequest';
11
13
  import type { StreamDto } from '../models/StreamDto';
12
14
  import type { StreamNotFoundEventDto } from '../models/StreamNotFoundEventDto';
@@ -15,6 +17,13 @@ import type { WebsiteHtmlContentReadyEventDto } from '../models/WebsiteHtmlConte
15
17
  import type { WebsiteTextContentReadyEventDto } from '../models/WebsiteTextContentReadyEventDto';
16
18
  import type { CancelablePromise } from '../core/CancelablePromise';
17
19
  export declare class PubService {
20
+ /**
21
+ * Create AgentTask
22
+ * @param requestBody
23
+ * @returns PubAgentTaskDto Created
24
+ * @throws ApiError
25
+ */
26
+ static createAgentTask(requestBody: PubCreateAgentTaskRequest): CancelablePromise<PubAgentTaskDto>;
18
27
  /**
19
28
  * Create ChatCompletion
20
29
  * @param requestBody
@@ -42,15 +51,14 @@ export declare class PubService {
42
51
  static listMemoryTypes(nextPageToken?: string, previousPageToken?: string, limit?: number): CancelablePromise<ListMemoryTypesResponse>;
43
52
  /**
44
53
  * Create Chat Completion Stream
45
- * @param requestBody
46
54
  * @returns StreamDto Created
47
55
  * @throws ApiError
48
56
  */
49
- static createStream(requestBody: CreateStreamRequest): CancelablePromise<StreamDto>;
57
+ static createStream(): CancelablePromise<StreamDto>;
50
58
  /**
51
59
  * Get pub types
52
60
  * @returns any OK
53
61
  * @throws ApiError
54
62
  */
55
- static getPubTypes(): CancelablePromise<(StreamTimeoutEventDto | StreamNotFoundEventDto | NewChatCompletionStreamChunkEventDto | ChatCompletionStreamCompletedEventDto | FileUploadCompletedEventDto | FileTextContentReadyEventDto | WebsiteHtmlContentReadyEventDto | WebsiteTextContentReadyEventDto | FileSearchIndexReadyEventDto)>;
63
+ static getPubTypes(): CancelablePromise<(StreamTimeoutEventDto | StreamNotFoundEventDto | NewChatCompletionStreamChunkEventDto | ChatCompletionStreamCompletedEventDto | FileUploadCompletedEventDto | FileTextContentReadyEventDto | WebsiteHtmlContentReadyEventDto | WebsiteTextContentReadyEventDto | FileSearchIndexReadyEventDto | NewAgentTaskReasoningChunkEventDto)>;
56
64
  }
@@ -1,6 +1,20 @@
1
1
  import { OpenAPI } from '../core/OpenAPI';
2
2
  import { request as __request } from '../core/request';
3
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
+ }
4
18
  /**
5
19
  * Create ChatCompletion
6
20
  * @param requestBody
@@ -55,16 +69,13 @@ export class PubService {
55
69
  }
56
70
  /**
57
71
  * Create Chat Completion Stream
58
- * @param requestBody
59
72
  * @returns StreamDto Created
60
73
  * @throws ApiError
61
74
  */
62
- static createStream(requestBody) {
75
+ static createStream() {
63
76
  return __request(OpenAPI, {
64
77
  method: 'POST',
65
78
  url: '/v1/pub/streams',
66
- body: requestBody,
67
- mediaType: 'application/json',
68
79
  });
69
80
  }
70
81
  /**
@@ -0,0 +1,8 @@
1
+ import { AgentTaskStatusDto } from "../openapi";
2
+ export type AgentTask = {
3
+ id: string;
4
+ status: AgentTaskStatusDto;
5
+ response?: Record<string, any>;
6
+ createdAt: string;
7
+ };
8
+ export declare const isAgentTask: (data: any) => data is AgentTask;
@@ -0,0 +1,8 @@
1
+ export const isAgentTask = (data) => {
2
+ return (typeof data === 'object' &&
3
+ data !== null &&
4
+ 'id' in data &&
5
+ 'status' in data &&
6
+ 'createdAt' in data &&
7
+ data.type === 'AgentTask');
8
+ };
@@ -0,0 +1,4 @@
1
+ export interface CreateAgentTaskRequest {
2
+ queryText: string;
3
+ streamId: string;
4
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ import { ApiError } from './ApiError';
2
+ import { AgentTask } from './AgentTask';
3
+ export type CreateAgentTaskResponse = {
4
+ type: 'success';
5
+ agentTask: AgentTask;
6
+ } | {
7
+ type: 'error';
8
+ error: ApiError;
9
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,14 +1,17 @@
1
1
  export type { AnthropicModel } from './AnthropicModel';
2
2
  export type { ApiError } from './ApiError';
3
+ export { isAgentTask } from './AgentTask';
4
+ export type { AgentTask } from './AgentTask';
3
5
  export { isChatCompletion } from './ChatCompletion';
4
6
  export type { ChatCompletion } from './ChatCompletion';
5
7
  export type { ChatCompletionMessage } from './ChatCompletionMessage';
6
8
  export type { ClaudeChatCompletionMessage } from './ClaudeChatCompletionMessage';
9
+ export type { CreateAgentTaskRequest } from './CreateAgentTaskRequest';
10
+ export type { CreateAgentTaskResponse } from './CreateAgentTaskResponse';
7
11
  export type { CreateChatCompletionRequest } from './CreateChatCompletionRequest';
8
12
  export type { CreateClaudeChatCompletionRequestParams } from './CreateClaudeChatCompletionRequestParams';
9
13
  export type { CreateGeminiChatCompletionRequestParams } from './CreateGeminiChatCompletionRequestParams';
10
14
  export type { CreateOpenAiChatCompletionRequestParams } from './CreateOpenAiChatCompletionRequestParams';
11
- export type { CreateStreamRequest } from './CreateStreamRequest';
12
15
  export type { CreateStreamResponse } from './CreateStreamResponse';
13
16
  export type { GeminiChatCompletionMessage } from './GeminiChatCompletionMessage';
14
17
  export type { GeminiModel } from './GeminiModel';
@@ -1 +1,2 @@
1
+ export { isAgentTask } from './AgentTask';
1
2
  export { isChatCompletion } from './ChatCompletion';
@@ -1,7 +1,7 @@
1
1
  // Browser-compatible version utility
2
2
  // The version is set at build time and can be overridden if needed
3
3
  // Build-time version constant - this should be updated during the build process
4
- const SDK_VERSION = '0.1.90';
4
+ const SDK_VERSION = '0.1.91';
5
5
  // Allow runtime override if needed
6
6
  let versionOverride = null;
7
7
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fencyai/js",
3
- "version": "0.1.93",
3
+ "version": "0.1.94",
4
4
  "description": "> TODO: description",
5
5
  "author": "staklau <steinaageklaussen@gmail.com>",
6
6
  "homepage": "",
@@ -42,5 +42,5 @@
42
42
  "ts-jest": "^29.1.1",
43
43
  "typescript": "^5.3.3"
44
44
  },
45
- "gitHead": "348583c746b538ff996b2d1f713af5e8f06c184c"
45
+ "gitHead": "51cd3642df31bd1fe84bfce6a7f1c128560cd83f"
46
46
  }
@@ -1,3 +0,0 @@
1
- export type CreateChatCompletionStreamRequest = {
2
- clientSecret?: string | null;
3
- };
@@ -1,6 +0,0 @@
1
- import type { CreateChatCompletionStreamRequest } from './CreateChatCompletionStreamRequest';
2
- import type { StreamType } from './StreamType';
3
- export type CreateStreamRequest = {
4
- type: StreamType;
5
- chatCompletionStream?: CreateChatCompletionStreamRequest;
6
- };
@@ -1,5 +0,0 @@
1
- export declare enum StreamType {
2
- CHAT_COMPLETION_STREAM = "ChatCompletionStream",
3
- FILE_STREAM = "FileStream",
4
- WEBSITE_STREAM = "WebsiteStream"
5
- }
@@ -1,10 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do not edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- export var StreamType;
6
- (function (StreamType) {
7
- StreamType["CHAT_COMPLETION_STREAM"] = "ChatCompletionStream";
8
- StreamType["FILE_STREAM"] = "FileStream";
9
- StreamType["WEBSITE_STREAM"] = "WebsiteStream";
10
- })(StreamType || (StreamType = {}));
@@ -1,6 +0,0 @@
1
- export interface CreateStreamRequest {
2
- type: 'ChatCompletionStream' | 'FileStream' | 'WebsiteStream';
3
- chatCompletionStreamOptions?: {
4
- sessionClientSecret?: string;
5
- };
6
- }