@sermas/api-client 1.0.0-alpha.121 → 1.0.0-alpha.122

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 (3) hide show
  1. package/index.d.cts +10 -9
  2. package/index.d.ts +10 -9
  3. package/package.json +1 -1
package/index.d.cts CHANGED
@@ -732,25 +732,26 @@ type PlatformAppExportFilterDto = {
732
732
  name?: string;
733
733
  appId?: Array<string>;
734
734
  };
735
- type DialogueDocumentMetadataDto = {
736
- uri?: string;
737
- source?: string;
738
- };
739
735
  type DialogueDocumentOptionsDto = {
740
736
  /**
741
737
  * Define the document splitting strategy. "phrase" split by sentence, "single-line" use each line as document, "double-line" use double break-line as document
742
738
  */
743
739
  parser?: Record<string, unknown>;
744
740
  };
741
+ type DialogueDocumentMetadataDto = {
742
+ uri?: string;
743
+ source?: string;
744
+ filename?: string;
745
+ /**
746
+ * Configure the document import handling, such as parser
747
+ */
748
+ options?: DialogueDocumentOptionsDto;
749
+ };
745
750
  type DialogueDocumentDto = {
746
751
  appId: string;
747
752
  documentId: string;
748
753
  content: string;
749
- metadata: DialogueDocumentMetadataDto;
750
- /**
751
- * Configure the document import handling, such as parser
752
- */
753
- options: DialogueDocumentOptionsDto;
754
+ metadata?: DialogueDocumentMetadataDto;
754
755
  };
755
756
  type RagWebsiteDto = {
756
757
  appId: string;
package/index.d.ts CHANGED
@@ -732,25 +732,26 @@ type PlatformAppExportFilterDto = {
732
732
  name?: string;
733
733
  appId?: Array<string>;
734
734
  };
735
- type DialogueDocumentMetadataDto = {
736
- uri?: string;
737
- source?: string;
738
- };
739
735
  type DialogueDocumentOptionsDto = {
740
736
  /**
741
737
  * Define the document splitting strategy. "phrase" split by sentence, "single-line" use each line as document, "double-line" use double break-line as document
742
738
  */
743
739
  parser?: Record<string, unknown>;
744
740
  };
741
+ type DialogueDocumentMetadataDto = {
742
+ uri?: string;
743
+ source?: string;
744
+ filename?: string;
745
+ /**
746
+ * Configure the document import handling, such as parser
747
+ */
748
+ options?: DialogueDocumentOptionsDto;
749
+ };
745
750
  type DialogueDocumentDto = {
746
751
  appId: string;
747
752
  documentId: string;
748
753
  content: string;
749
- metadata: DialogueDocumentMetadataDto;
750
- /**
751
- * Configure the document import handling, such as parser
752
- */
753
- options: DialogueDocumentOptionsDto;
754
+ metadata?: DialogueDocumentMetadataDto;
754
755
  };
755
756
  type RagWebsiteDto = {
756
757
  appId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sermas/api-client",
3
- "version": "1.0.0-alpha.121",
3
+ "version": "1.0.0-alpha.122",
4
4
  "description": "Sermas API client",
5
5
  "type": "module",
6
6
  "main": "./index.cjs",