@fencyai/js 0.1.49 → 0.1.51

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.
@@ -22,6 +22,7 @@ export async function createFile(params) {
22
22
  fileName: params.request.fileName,
23
23
  mimeType: params.request.fileType,
24
24
  fileSize: params.request.fileSize,
25
+ extractTextContent: params.request.extractTextContent,
25
26
  });
26
27
  return {
27
28
  type: 'success',
@@ -20,6 +20,8 @@ export async function createWebsite(params) {
20
20
  const response = await PubService.createWebsite({
21
21
  url: params.request.url,
22
22
  streamId: params.request.streamId,
23
+ extractHtmlContent: params.request.extractHtmlContent,
24
+ extractTextContent: params.request.extractTextContent,
23
25
  });
24
26
  return {
25
27
  type: 'success',
@@ -20,10 +20,6 @@ export type { PubCreateFileRequest } from './models/PubCreateFileRequest';
20
20
  export type { PubFileDto } from './models/PubFileDto';
21
21
  export type { PubWebsiteDto } from './models/PubWebsiteDto';
22
22
  export type { S3PostRequestDto } from './models/S3PostRequestDto';
23
- export type { StoredChatCompletionId } from './models/StoredChatCompletionId';
24
- export type { StoredFileId } from './models/StoredFileId';
25
- export type { StoredStreamId } from './models/StoredStreamId';
26
- export type { StoredWebsiteId } from './models/StoredWebsiteId';
27
23
  export type { StreamDto } from './models/StreamDto';
28
24
  export { StreamEventType } from './models/StreamEventType';
29
25
  export type { StreamNotFoundEventDto } from './models/StreamNotFoundEventDto';
@@ -1,9 +1,7 @@
1
- import type { StoredChatCompletionId } from './StoredChatCompletionId';
2
- import type { StoredStreamId } from './StoredStreamId';
3
1
  import type { StreamEventType } from './StreamEventType';
4
2
  export type ChatCompletionStreamCompletedEventDto = {
5
3
  type: StreamEventType;
6
- streamId: StoredStreamId;
7
- chatCompletionId: StoredChatCompletionId;
4
+ streamId: string;
5
+ chatCompletionId: string;
8
6
  timestamp: string;
9
7
  };
@@ -1,4 +1,6 @@
1
1
  export type CreateWebsiteRequest = {
2
2
  url: string;
3
3
  streamId: string;
4
+ extractHtmlContent: boolean;
5
+ extractTextContent: boolean;
4
6
  };
@@ -1,10 +1,8 @@
1
- import type { StoredFileId } from './StoredFileId';
2
- import type { StoredStreamId } from './StoredStreamId';
3
1
  import type { StreamEventType } from './StreamEventType';
4
2
  export type FileTextContentReadyEventDto = {
5
3
  type: StreamEventType;
6
- streamId: StoredStreamId;
7
- fileId: StoredFileId;
4
+ streamId: string;
5
+ fileId: string;
8
6
  textContent: string;
9
7
  timestamp: string;
10
8
  };
@@ -1,9 +1,7 @@
1
- import type { StoredFileId } from './StoredFileId';
2
- import type { StoredStreamId } from './StoredStreamId';
3
1
  import type { StreamEventType } from './StreamEventType';
4
2
  export type FileUploadCompletedEventDto = {
5
3
  type: StreamEventType;
6
- streamId: StoredStreamId;
7
- fileId: StoredFileId;
4
+ streamId: string;
5
+ fileId: string;
8
6
  timestamp: string;
9
7
  };
@@ -1,10 +1,8 @@
1
- import type { StoredChatCompletionId } from './StoredChatCompletionId';
2
- import type { StoredStreamId } from './StoredStreamId';
3
1
  import type { StreamEventType } from './StreamEventType';
4
2
  export type NewChatCompletionStreamChunkEventDto = {
5
3
  type: StreamEventType;
6
- streamId: StoredStreamId;
7
- chatCompletionId: StoredChatCompletionId;
4
+ streamId: string;
5
+ chatCompletionId: string;
8
6
  timestamp: string;
9
7
  content: string;
10
8
  };
@@ -3,4 +3,5 @@ export type PubCreateFileRequest = {
3
3
  fileName: string;
4
4
  mimeType: string;
5
5
  fileSize: number;
6
+ extractTextContent: boolean;
6
7
  };
@@ -1,7 +1,6 @@
1
- import type { StoredStreamId } from './StoredStreamId';
2
1
  import type { StreamEventType } from './StreamEventType';
3
2
  export type StreamNotFoundEventDto = {
4
3
  type: StreamEventType;
5
- streamId: StoredStreamId;
4
+ streamId: string;
6
5
  timestamp: string;
7
6
  };
@@ -1,7 +1,6 @@
1
- import type { StoredStreamId } from './StoredStreamId';
2
1
  import type { StreamEventType } from './StreamEventType';
3
2
  export type StreamTimeoutEventDto = {
4
3
  type: StreamEventType;
5
- streamId: StoredStreamId;
4
+ streamId: string;
6
5
  timestamp: string;
7
6
  };
@@ -1,10 +1,8 @@
1
- import type { StoredStreamId } from './StoredStreamId';
2
- import type { StoredWebsiteId } from './StoredWebsiteId';
3
1
  import type { StreamEventType } from './StreamEventType';
4
2
  export type WebsiteHtmlContentReadyEventDto = {
5
3
  type: StreamEventType;
6
- streamId: StoredStreamId;
7
- websiteId: StoredWebsiteId;
4
+ streamId: string;
5
+ websiteId: string;
8
6
  htmlContent: string;
9
7
  timestamp: string;
10
8
  };
@@ -1,10 +1,8 @@
1
- import type { StoredStreamId } from './StoredStreamId';
2
- import type { StoredWebsiteId } from './StoredWebsiteId';
3
1
  import type { StreamEventType } from './StreamEventType';
4
2
  export type WebsiteTextContentReadyEventDto = {
5
3
  type: StreamEventType;
6
- streamId: StoredStreamId;
7
- websiteId: StoredWebsiteId;
4
+ streamId: string;
5
+ websiteId: string;
8
6
  textContent: string;
9
7
  timestamp: string;
10
8
  };
@@ -3,4 +3,5 @@ export interface CreateFileRequest {
3
3
  fileName: string;
4
4
  fileType: string;
5
5
  fileSize: number;
6
+ extractTextContent: boolean;
6
7
  }
@@ -1,4 +1,6 @@
1
1
  export interface CreateWebsiteRequest {
2
2
  url: string;
3
3
  streamId: string;
4
+ extractHtmlContent: boolean;
5
+ extractTextContent: boolean;
4
6
  }
@@ -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.49';
4
+ const SDK_VERSION = '0.1.51';
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.49",
3
+ "version": "0.1.51",
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": "68078f631c0f2ea5530ecbf46c3922dba402ac59"
44
+ "gitHead": "78ae5a655bece0599efe1e207ebda23e2e6b0260"
45
45
  }
@@ -1,3 +0,0 @@
1
- export type StoredChatCompletionId = {
2
- value: string;
3
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- export type StoredFileId = {
2
- value: string;
3
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- export type StoredStreamId = {
2
- value: string;
3
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- export type StoredWebsiteId = {
2
- value: string;
3
- };
@@ -1 +0,0 @@
1
- export {};