@fencyai/js 0.1.47 → 0.1.49

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 (43) hide show
  1. package/lib/api/{createUpload.d.ts → createFile.d.ts} +5 -5
  2. package/lib/api/{createUpload.js → createFile.js} +8 -3
  3. package/lib/api/createStream.js +4 -2
  4. package/lib/api/createWebsite.js +7 -2
  5. package/lib/index.d.ts +6 -7
  6. package/lib/index.js +1 -1
  7. package/lib/openapi/index.d.ts +5 -3
  8. package/lib/openapi/models/CreateWebsiteRequest.d.ts +1 -0
  9. package/lib/openapi/models/FileTextContentReadyEventDto.d.ts +1 -3
  10. package/lib/openapi/models/FileUploadCompletedEventDto.d.ts +0 -2
  11. package/lib/openapi/models/{PubCreateUploadRequest.d.ts → PubCreateFileRequest.d.ts} +1 -1
  12. package/lib/openapi/models/{PubUploadDto.d.ts → PubFileDto.d.ts} +4 -1
  13. package/lib/openapi/models/PubWebsiteDto.d.ts +1 -1
  14. package/lib/openapi/models/StoredWebsiteId.d.ts +3 -0
  15. package/lib/openapi/models/StreamEventType.d.ts +3 -1
  16. package/lib/openapi/models/StreamEventType.js +2 -0
  17. package/lib/openapi/models/StreamType.d.ts +2 -1
  18. package/lib/openapi/models/StreamType.js +2 -1
  19. package/lib/openapi/models/WebsiteHtmlContentReadyEventDto.d.ts +10 -0
  20. package/lib/openapi/models/WebsiteTextContentReadyEventDto.d.ts +10 -0
  21. package/lib/openapi/services/PubService.d.ts +12 -10
  22. package/lib/openapi/services/PubService.js +14 -14
  23. package/lib/types/{CreateUploadRequest.d.ts → CreateFileRequest.d.ts} +1 -1
  24. package/lib/types/{CreateUploadResponse.d.ts → CreateFileResponse.d.ts} +3 -3
  25. package/lib/types/CreateStreamRequest.d.ts +1 -1
  26. package/lib/types/CreateWebsiteRequest.d.ts +1 -0
  27. package/lib/types/CreateWebsiteResponse.d.ts +2 -2
  28. package/lib/types/FencyFile.d.ts +6 -3
  29. package/lib/types/Website.d.ts +7 -0
  30. package/lib/utils/version.js +1 -1
  31. package/package.json +2 -2
  32. package/lib/openapi/models/StoredUploadId.d.ts +0 -3
  33. package/lib/types/FencyUpload.d.ts +0 -6
  34. package/lib/types/FencyWebsite.d.ts +0 -5
  35. package/lib/types/StreamData.d.ts +0 -39
  36. /package/lib/openapi/models/{PubCreateUploadRequest.js → PubCreateFileRequest.js} +0 -0
  37. /package/lib/openapi/models/{PubUploadDto.js → PubFileDto.js} +0 -0
  38. /package/lib/openapi/models/{StoredUploadId.js → StoredWebsiteId.js} +0 -0
  39. /package/lib/{types/CreateUploadRequest.js → openapi/models/WebsiteHtmlContentReadyEventDto.js} +0 -0
  40. /package/lib/{types/CreateUploadResponse.js → openapi/models/WebsiteTextContentReadyEventDto.js} +0 -0
  41. /package/lib/types/{FencyUpload.js → CreateFileRequest.js} +0 -0
  42. /package/lib/types/{FencyWebsite.js → CreateFileResponse.js} +0 -0
  43. /package/lib/types/{StreamData.js → Website.js} +0 -0
@@ -1,5 +1,5 @@
1
- import { CreateUploadRequest } from '../types/CreateUploadRequest';
2
- import { CreateUploadResponse } from '../types/CreateUploadResponse';
1
+ import { CreateFileRequest } from '../types/CreateFileRequest';
2
+ import { CreateFileResponse } from '../types/CreateFileResponse';
3
3
  /**
4
4
  * Creates a website by making a POST request to the Fency API.
5
5
  *
@@ -9,8 +9,8 @@ import { CreateUploadResponse } from '../types/CreateUploadResponse';
9
9
  * @returns A promise that resolves to a CreateWebsiteResponse
10
10
  * @throws Error if the request fails or the response is invalid
11
11
  */
12
- export declare function createUpload(params: {
12
+ export declare function createFile(params: {
13
13
  pk: string;
14
- request: CreateUploadRequest;
14
+ request: CreateFileRequest;
15
15
  baseUrl: string;
16
- }): Promise<CreateUploadResponse>;
16
+ }): Promise<CreateFileResponse>;
@@ -9,7 +9,7 @@ import { getPackageVersion } from '../utils/version';
9
9
  * @returns A promise that resolves to a CreateWebsiteResponse
10
10
  * @throws Error if the request fails or the response is invalid
11
11
  */
12
- export async function createUpload(params) {
12
+ export async function createFile(params) {
13
13
  try {
14
14
  OpenAPI.BASE = params.baseUrl;
15
15
  OpenAPI.HEADERS = {
@@ -17,7 +17,7 @@ export async function createUpload(params) {
17
17
  Authorization: `Bearer ${params.pk}`,
18
18
  'X-Fency-Sdk-Version': getPackageVersion(),
19
19
  };
20
- const response = await PubService.createUpload({
20
+ const response = await PubService.createFile({
21
21
  streamId: params.request.streamId,
22
22
  fileName: params.request.fileName,
23
23
  mimeType: params.request.fileType,
@@ -25,9 +25,14 @@ export async function createUpload(params) {
25
25
  });
26
26
  return {
27
27
  type: 'success',
28
- upload: {
28
+ file: {
29
29
  id: response.id,
30
30
  createdAt: response.createdAt,
31
+ size: response.size,
32
+ type: response.type,
33
+ name: response.name,
34
+ content: null,
35
+ text: null,
31
36
  s3PostRequest: {
32
37
  xAmzDate: response.s3PostRequest.amzDate,
33
38
  xAmzSignature: response.s3PostRequest.amzSignature,
@@ -47,7 +47,9 @@ const mapTypeToStreamType = (type) => {
47
47
  switch (type) {
48
48
  case 'ChatCompletionStream':
49
49
  return StreamType.CHAT_COMPLETION_STREAM;
50
- case 'FileUploadStream':
51
- return StreamType.FILE_UPLOAD_STREAM;
50
+ case 'FileStream':
51
+ return StreamType.FILE_STREAM;
52
+ case 'WebsiteStream':
53
+ return StreamType.WEBSITE_STREAM;
52
54
  }
53
55
  };
@@ -17,13 +17,18 @@ export async function createWebsite(params) {
17
17
  Authorization: `Bearer ${params.pk}`,
18
18
  'X-Fency-Sdk-Version': getPackageVersion(),
19
19
  };
20
- const response = await PubService.createWebsite(params.request);
20
+ const response = await PubService.createWebsite({
21
+ url: params.request.url,
22
+ streamId: params.request.streamId,
23
+ });
21
24
  return {
22
25
  type: 'success',
23
26
  website: {
24
27
  id: response.id,
25
28
  createdAt: response.createdAt,
26
- content: response.content,
29
+ url: response.url,
30
+ content: null,
31
+ text: null,
27
32
  },
28
33
  };
29
34
  }
package/lib/index.d.ts CHANGED
@@ -12,19 +12,18 @@ export type { CreateOpenAiChatCompletionParams } from './types/CreateOpenAiChatC
12
12
  export type { CreateStreamRequest } from './types/CreateStreamRequest';
13
13
  export type { CreateStreamResponse } from './types/CreateStreamResponse';
14
14
  export type { CreateWebsiteRequest } from './types/CreateWebsiteRequest';
15
- export type { FencyUpload } from './types/FencyUpload';
16
- export type { FencyWebsite } from './types/FencyWebsite';
15
+ export type { FencyFile } from './types/FencyFile';
17
16
  export type { GeminiModel } from './types/GeminiModel';
18
17
  export type { OpenAiModel } from './types/OpenAiModel';
19
18
  export type { Stream } from './types/Stream';
19
+ export type { Website } from './types/Website';
20
20
  export { createChatCompletion } from './api/createChatCompletion';
21
21
  export type { CreateChatCompletionResponse } from './api/createChatCompletion';
22
- export { createUpload } from './api/createUpload';
23
- export type { CreateUploadRequest } from './types/CreateUploadRequest';
24
- export type { CreateUploadResponse } from './types/CreateUploadResponse';
25
- export type { FencyFile } from './types/FencyFile';
22
+ export { createFile } from './api/createFile';
23
+ export type { CreateFileRequest } from './types/CreateFileRequest';
24
+ export type { CreateFileResponse } from './types/CreateFileResponse';
26
25
  export { createStream } from './api/createStream';
27
- export type { ChatCompletionStreamCompleted, FileUploadCompleted, NewChatCompletionStreamChunk, StreamData, StreamNotFound, StreamTimeout, FileTextContentReady, } from './types/StreamData';
26
+ export type { ChatCompletionStreamCompletedEventDto, FileTextContentReadyEventDto, FileUploadCompletedEventDto, NewChatCompletionStreamChunkEventDto, StreamNotFoundEventDto, StreamTimeoutEventDto, WebsiteHtmlContentReadyEventDto, WebsiteTextContentReadyEventDto, } from './openapi';
28
27
  export { createWebsite } from './api/createWebsite';
29
28
  export type { CreateWebsiteResponse } from './types/CreateWebsiteResponse';
30
29
  export { loadFency } from './loadFency';
package/lib/index.js CHANGED
@@ -7,7 +7,7 @@ import { loadFency } from './loadFency';
7
7
  // create chat completion
8
8
  export { createChatCompletion } from './api/createChatCompletion';
9
9
  // uploads
10
- export { createUpload } from './api/createUpload';
10
+ export { createFile } from './api/createFile';
11
11
  // create chat completion stream
12
12
  export { createStream } from './api/createStream';
13
13
  // create website
@@ -16,17 +16,19 @@ export type { CreateWebsiteRequest } from './models/CreateWebsiteRequest';
16
16
  export type { FileTextContentReadyEventDto } from './models/FileTextContentReadyEventDto';
17
17
  export type { FileUploadCompletedEventDto } from './models/FileUploadCompletedEventDto';
18
18
  export type { NewChatCompletionStreamChunkEventDto } from './models/NewChatCompletionStreamChunkEventDto';
19
- export type { PubCreateUploadRequest } from './models/PubCreateUploadRequest';
20
- export type { PubUploadDto } from './models/PubUploadDto';
19
+ export type { PubCreateFileRequest } from './models/PubCreateFileRequest';
20
+ export type { PubFileDto } from './models/PubFileDto';
21
21
  export type { PubWebsiteDto } from './models/PubWebsiteDto';
22
22
  export type { S3PostRequestDto } from './models/S3PostRequestDto';
23
23
  export type { StoredChatCompletionId } from './models/StoredChatCompletionId';
24
24
  export type { StoredFileId } from './models/StoredFileId';
25
25
  export type { StoredStreamId } from './models/StoredStreamId';
26
- export type { StoredUploadId } from './models/StoredUploadId';
26
+ export type { StoredWebsiteId } from './models/StoredWebsiteId';
27
27
  export type { StreamDto } from './models/StreamDto';
28
28
  export { StreamEventType } from './models/StreamEventType';
29
29
  export type { StreamNotFoundEventDto } from './models/StreamNotFoundEventDto';
30
30
  export type { StreamTimeoutEventDto } from './models/StreamTimeoutEventDto';
31
31
  export { StreamType } from './models/StreamType';
32
+ export type { WebsiteHtmlContentReadyEventDto } from './models/WebsiteHtmlContentReadyEventDto';
33
+ export type { WebsiteTextContentReadyEventDto } from './models/WebsiteTextContentReadyEventDto';
32
34
  export { PubService } from './services/PubService';
@@ -1,3 +1,4 @@
1
1
  export type CreateWebsiteRequest = {
2
2
  url: string;
3
+ streamId: string;
3
4
  };
@@ -1,12 +1,10 @@
1
1
  import type { StoredFileId } from './StoredFileId';
2
2
  import type { StoredStreamId } from './StoredStreamId';
3
- import type { StoredUploadId } from './StoredUploadId';
4
3
  import type { StreamEventType } from './StreamEventType';
5
4
  export type FileTextContentReadyEventDto = {
6
5
  type: StreamEventType;
7
6
  streamId: StoredStreamId;
8
- uploadId: StoredUploadId;
9
7
  fileId: StoredFileId;
10
- text: string;
8
+ textContent: string;
11
9
  timestamp: string;
12
10
  };
@@ -1,11 +1,9 @@
1
1
  import type { StoredFileId } from './StoredFileId';
2
2
  import type { StoredStreamId } from './StoredStreamId';
3
- import type { StoredUploadId } from './StoredUploadId';
4
3
  import type { StreamEventType } from './StreamEventType';
5
4
  export type FileUploadCompletedEventDto = {
6
5
  type: StreamEventType;
7
6
  streamId: StoredStreamId;
8
- uploadId: StoredUploadId;
9
7
  fileId: StoredFileId;
10
8
  timestamp: string;
11
9
  };
@@ -1,4 +1,4 @@
1
- export type PubCreateUploadRequest = {
1
+ export type PubCreateFileRequest = {
2
2
  streamId: string;
3
3
  fileName: string;
4
4
  mimeType: string;
@@ -1,6 +1,9 @@
1
1
  import type { S3PostRequestDto } from './S3PostRequestDto';
2
- export type PubUploadDto = {
2
+ export type PubFileDto = {
3
3
  id: string;
4
4
  createdAt: string;
5
+ size: number;
6
+ type: string;
7
+ name: string;
5
8
  s3PostRequest: S3PostRequestDto;
6
9
  };
@@ -1,5 +1,5 @@
1
1
  export type PubWebsiteDto = {
2
2
  id: string;
3
3
  createdAt: string;
4
- content: string;
4
+ url: string;
5
5
  };
@@ -0,0 +1,3 @@
1
+ export type StoredWebsiteId = {
2
+ value: string;
3
+ };
@@ -4,5 +4,7 @@ export declare enum StreamEventType {
4
4
  STREAM_TIMEOUT = "StreamTimeout",
5
5
  STREAM_NOT_FOUND = "StreamNotFound",
6
6
  FILE_UPLOAD_COMPLETED = "FileUploadCompleted",
7
- FILE_TEXT_CONTENT_READY = "FileTextContentReady"
7
+ FILE_TEXT_CONTENT_READY = "FileTextContentReady",
8
+ WEBSITE_HTML_CONTENT_READY = "WebsiteHtmlContentReady",
9
+ WEBSITE_TEXT_CONTENT_READY = "WebsiteTextContentReady"
8
10
  }
@@ -10,4 +10,6 @@ export var StreamEventType;
10
10
  StreamEventType["STREAM_NOT_FOUND"] = "StreamNotFound";
11
11
  StreamEventType["FILE_UPLOAD_COMPLETED"] = "FileUploadCompleted";
12
12
  StreamEventType["FILE_TEXT_CONTENT_READY"] = "FileTextContentReady";
13
+ StreamEventType["WEBSITE_HTML_CONTENT_READY"] = "WebsiteHtmlContentReady";
14
+ StreamEventType["WEBSITE_TEXT_CONTENT_READY"] = "WebsiteTextContentReady";
13
15
  })(StreamEventType || (StreamEventType = {}));
@@ -1,4 +1,5 @@
1
1
  export declare enum StreamType {
2
2
  CHAT_COMPLETION_STREAM = "ChatCompletionStream",
3
- FILE_UPLOAD_STREAM = "FileUploadStream"
3
+ FILE_STREAM = "FileStream",
4
+ WEBSITE_STREAM = "WebsiteStream"
4
5
  }
@@ -5,5 +5,6 @@
5
5
  export var StreamType;
6
6
  (function (StreamType) {
7
7
  StreamType["CHAT_COMPLETION_STREAM"] = "ChatCompletionStream";
8
- StreamType["FILE_UPLOAD_STREAM"] = "FileUploadStream";
8
+ StreamType["FILE_STREAM"] = "FileStream";
9
+ StreamType["WEBSITE_STREAM"] = "WebsiteStream";
9
10
  })(StreamType || (StreamType = {}));
@@ -0,0 +1,10 @@
1
+ import type { StoredStreamId } from './StoredStreamId';
2
+ import type { StoredWebsiteId } from './StoredWebsiteId';
3
+ import type { StreamEventType } from './StreamEventType';
4
+ export type WebsiteHtmlContentReadyEventDto = {
5
+ type: StreamEventType;
6
+ streamId: StoredStreamId;
7
+ websiteId: StoredWebsiteId;
8
+ htmlContent: string;
9
+ timestamp: string;
10
+ };
@@ -0,0 +1,10 @@
1
+ import type { StoredStreamId } from './StoredStreamId';
2
+ import type { StoredWebsiteId } from './StoredWebsiteId';
3
+ import type { StreamEventType } from './StreamEventType';
4
+ export type WebsiteTextContentReadyEventDto = {
5
+ type: StreamEventType;
6
+ streamId: StoredStreamId;
7
+ websiteId: StoredWebsiteId;
8
+ textContent: string;
9
+ timestamp: string;
10
+ };
@@ -6,12 +6,14 @@ import type { CreateWebsiteRequest } from '../models/CreateWebsiteRequest';
6
6
  import type { FileTextContentReadyEventDto } from '../models/FileTextContentReadyEventDto';
7
7
  import type { FileUploadCompletedEventDto } from '../models/FileUploadCompletedEventDto';
8
8
  import type { NewChatCompletionStreamChunkEventDto } from '../models/NewChatCompletionStreamChunkEventDto';
9
- import type { PubCreateUploadRequest } from '../models/PubCreateUploadRequest';
10
- import type { PubUploadDto } from '../models/PubUploadDto';
9
+ import type { PubCreateFileRequest } from '../models/PubCreateFileRequest';
10
+ import type { PubFileDto } from '../models/PubFileDto';
11
11
  import type { PubWebsiteDto } from '../models/PubWebsiteDto';
12
12
  import type { StreamDto } from '../models/StreamDto';
13
13
  import type { StreamNotFoundEventDto } from '../models/StreamNotFoundEventDto';
14
14
  import type { StreamTimeoutEventDto } from '../models/StreamTimeoutEventDto';
15
+ import type { WebsiteHtmlContentReadyEventDto } from '../models/WebsiteHtmlContentReadyEventDto';
16
+ import type { WebsiteTextContentReadyEventDto } from '../models/WebsiteTextContentReadyEventDto';
15
17
  import type { CancelablePromise } from '../core/CancelablePromise';
16
18
  export declare class PubService {
17
19
  /**
@@ -21,6 +23,13 @@ export declare class PubService {
21
23
  * @throws ApiError
22
24
  */
23
25
  static createChatCompletion(requestBody: CreateChatCompletionRequest): CancelablePromise<ChatCompletionDto>;
26
+ /**
27
+ * Create File
28
+ * @param requestBody
29
+ * @returns PubFileDto Created
30
+ * @throws ApiError
31
+ */
32
+ static createFile(requestBody: PubCreateFileRequest): CancelablePromise<PubFileDto>;
24
33
  /**
25
34
  * Create Chat Completion Stream
26
35
  * @param requestBody
@@ -33,14 +42,7 @@ export declare class PubService {
33
42
  * @returns any OK
34
43
  * @throws ApiError
35
44
  */
36
- static getPubTypes(): CancelablePromise<(StreamTimeoutEventDto | StreamNotFoundEventDto | NewChatCompletionStreamChunkEventDto | ChatCompletionStreamCompletedEventDto | FileUploadCompletedEventDto | FileTextContentReadyEventDto)>;
37
- /**
38
- * Create Upload
39
- * @param requestBody
40
- * @returns PubUploadDto Created
41
- * @throws ApiError
42
- */
43
- static createUpload(requestBody: PubCreateUploadRequest): CancelablePromise<PubUploadDto>;
45
+ static getPubTypes(): CancelablePromise<(StreamTimeoutEventDto | StreamNotFoundEventDto | NewChatCompletionStreamChunkEventDto | ChatCompletionStreamCompletedEventDto | FileUploadCompletedEventDto | FileTextContentReadyEventDto | WebsiteHtmlContentReadyEventDto | WebsiteTextContentReadyEventDto)>;
44
46
  /**
45
47
  * Create Website
46
48
  * @param requestBody
@@ -15,6 +15,20 @@ export class PubService {
15
15
  mediaType: 'application/json',
16
16
  });
17
17
  }
18
+ /**
19
+ * Create File
20
+ * @param requestBody
21
+ * @returns PubFileDto Created
22
+ * @throws ApiError
23
+ */
24
+ static createFile(requestBody) {
25
+ return __request(OpenAPI, {
26
+ method: 'POST',
27
+ url: '/v1/pub/files',
28
+ body: requestBody,
29
+ mediaType: 'application/json',
30
+ });
31
+ }
18
32
  /**
19
33
  * Create Chat Completion Stream
20
34
  * @param requestBody
@@ -40,20 +54,6 @@ export class PubService {
40
54
  url: '/v1/pub/types',
41
55
  });
42
56
  }
43
- /**
44
- * Create Upload
45
- * @param requestBody
46
- * @returns PubUploadDto Created
47
- * @throws ApiError
48
- */
49
- static createUpload(requestBody) {
50
- return __request(OpenAPI, {
51
- method: 'POST',
52
- url: '/v1/pub/uploads',
53
- body: requestBody,
54
- mediaType: 'application/json',
55
- });
56
- }
57
57
  /**
58
58
  * Create Website
59
59
  * @param requestBody
@@ -1,4 +1,4 @@
1
- export interface CreateUploadRequest {
1
+ export interface CreateFileRequest {
2
2
  streamId: string;
3
3
  fileName: string;
4
4
  fileType: string;
@@ -1,8 +1,8 @@
1
1
  import { ApiError } from './ApiError';
2
- import { FencyUpload } from './FencyUpload';
3
- export type CreateUploadResponse = {
2
+ import { FencyFile } from './FencyFile';
3
+ export type CreateFileResponse = {
4
4
  type: 'success';
5
- upload: FencyUpload;
5
+ file: FencyFile;
6
6
  } | {
7
7
  type: 'error';
8
8
  error: ApiError;
@@ -1,5 +1,5 @@
1
1
  export interface CreateStreamRequest {
2
- type: 'ChatCompletionStream' | 'FileUploadStream';
2
+ type: 'ChatCompletionStream' | 'FileStream' | 'WebsiteStream';
3
3
  chatCompletionStreamOptions?: {
4
4
  sessionClientSecret?: string;
5
5
  };
@@ -1,3 +1,4 @@
1
1
  export interface CreateWebsiteRequest {
2
2
  url: string;
3
+ streamId: string;
3
4
  }
@@ -1,8 +1,8 @@
1
1
  import { ApiError } from './ApiError';
2
- import { FencyWebsite } from './FencyWebsite';
2
+ import { Website } from './Website';
3
3
  export type CreateWebsiteResponse = {
4
4
  type: 'success';
5
- website: FencyWebsite;
5
+ website: Website;
6
6
  } | {
7
7
  type: 'error';
8
8
  error: ApiError;
@@ -1,8 +1,11 @@
1
+ import { S3PostRequest } from "./S3PostRequest";
1
2
  export interface FencyFile {
2
3
  id: string;
3
4
  createdAt: string;
5
+ size: number;
6
+ type: string;
7
+ name: string;
4
8
  content: string | null;
5
- size: number | null;
6
- type: string | null;
7
- name: string | null;
9
+ text: string | null;
10
+ s3PostRequest: S3PostRequest;
8
11
  }
@@ -0,0 +1,7 @@
1
+ export type Website = {
2
+ id: string;
3
+ createdAt: string;
4
+ url: string;
5
+ content: string | null;
6
+ text: string | null;
7
+ };
@@ -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.47';
4
+ const SDK_VERSION = '0.1.49';
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.47",
3
+ "version": "0.1.49",
4
4
  "description": "> TODO: description",
5
5
  "author": "staklau <steinaageklaussen@gmail.com>",
6
6
  "homepage": "",
@@ -41,5 +41,5 @@
41
41
  "ts-jest": "^29.1.1",
42
42
  "typescript": "^5.3.3"
43
43
  },
44
- "gitHead": "f86bd2ae856f0dfc51edbf434e62e63f4c86f79b"
44
+ "gitHead": "68078f631c0f2ea5530ecbf46c3922dba402ac59"
45
45
  }
@@ -1,3 +0,0 @@
1
- export type StoredUploadId = {
2
- value: string;
3
- };
@@ -1,6 +0,0 @@
1
- import { S3PostRequest } from './S3PostRequest';
2
- export interface FencyUpload {
3
- id: string;
4
- createdAt: string;
5
- s3PostRequest: S3PostRequest;
6
- }
@@ -1,5 +0,0 @@
1
- export type FencyWebsite = {
2
- id: string;
3
- createdAt: string;
4
- content: string;
5
- };
@@ -1,39 +0,0 @@
1
- export type NewChatCompletionStreamChunk = {
2
- type: 'NewChatCompletionStreamChunk';
3
- streamId: string;
4
- chatCompletionId: string;
5
- timestamp: string;
6
- content: string;
7
- };
8
- export type ChatCompletionStreamCompleted = {
9
- type: 'ChatCompletionStreamCompleted';
10
- streamId: string;
11
- chatCompletionId: string;
12
- timestamp: string;
13
- };
14
- export type StreamTimeout = {
15
- type: 'StreamTimeout';
16
- streamId: string;
17
- timestamp: string;
18
- };
19
- export type StreamNotFound = {
20
- type: 'StreamNotFound';
21
- streamId: string;
22
- timestamp: string;
23
- };
24
- export type FileUploadCompleted = {
25
- type: 'FileUploadCompleted';
26
- streamId: string;
27
- uploadId: string;
28
- fileId: string;
29
- timestamp: string;
30
- };
31
- export type FileTextContentReady = {
32
- type: 'FileTextContentReady';
33
- streamId: string;
34
- uploadId: string;
35
- fileId: string;
36
- text: string;
37
- timestamp: string;
38
- };
39
- export type StreamData = NewChatCompletionStreamChunk | ChatCompletionStreamCompleted | StreamTimeout | StreamNotFound | FileUploadCompleted | FileTextContentReady;
File without changes