mavenagi 1.2.27 → 1.2.29

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/Client.js CHANGED
@@ -62,8 +62,8 @@ class MavenAGIClient {
62
62
  "X-Agent-Id": _options === null || _options === void 0 ? void 0 : _options.agentId,
63
63
  "X-Fern-Language": "JavaScript",
64
64
  "X-Fern-SDK-Name": "mavenagi",
65
- "X-Fern-SDK-Version": "1.2.27",
66
- "User-Agent": "mavenagi/1.2.27",
65
+ "X-Fern-SDK-Version": "1.2.29",
66
+ "User-Agent": "mavenagi/1.2.29",
67
67
  "X-Fern-Runtime": core.RUNTIME.type,
68
68
  "X-Fern-Runtime-Version": core.RUNTIME.version,
69
69
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -1,4 +1,4 @@
1
1
  export interface CommitAssetUploadRequest {
2
- /** Checksum of the uploaded file (optional verification) */
2
+ /** MD5 hex digest of the uploaded file. Required for assets attached to knowledge documents. Used to verify blob integrity at ingestion time. */
3
3
  checksum?: string;
4
4
  }
@@ -27,7 +27,12 @@ export interface KnowledgeDocumentRequest extends MavenAGI.BaseKnowledgeDocument
27
27
  contentType: MavenAGI.KnowledgeDocumentContentType;
28
28
  /** The title of the document. Will be shown as part of answers. */
29
29
  title: string;
30
- /** (Currently in BETA. Use at your own risk, and may not work in some circumstances) ID of the asset associated with this document. This asset will be transformed into text and set as the content of the document. The following types are supported: `application/pdf`, `text/plain`. Either this or content is required, but not both. */
30
+ /**
31
+ * (Beta: under development, endpoint may change.)
32
+ * ID of the asset associated with this document. This asset will be transformed into
33
+ * text and set as the content of the document. Supported MIME types are those accepted by `initiateUpload`.
34
+ * Either this or content is required, but not both. The asset must have a checksum provided at commit time (see `commitUpload`).
35
+ */
31
36
  assetId?: MavenAGI.EntityIdWithoutAgent;
32
37
  /** The content of the document. Not shown directly to users. May be provided in HTML or markdown. HTML will be converted to markdown automatically. Images are not currently supported and will be ignored. Either this or assetId is required, but not both */
33
38
  content?: string;
@@ -53,8 +53,8 @@ import type * as MavenAGI from "../../../index";
53
53
  export interface KnowledgeDocumentResponse extends MavenAGI.KnowledgeDocumentSearchResponse {
54
54
  /** The current processing status of the knowledge document */
55
55
  processingStatus?: MavenAGI.KnowledgeDocumentStatus;
56
- /** The content of the document in markdown format. Not shown directly to users. */
57
- content: string;
56
+ /** The content of the document in markdown format. Not shown directly to users. May be absent for asset-backed documents that have not yet been processed. */
57
+ content?: string;
58
58
  /** If the document is associated with an asset, this will contain the asset metadata */
59
59
  asset?: MavenAGI.AttachmentResponse;
60
60
  /** Metadata for the knowledge document. */
package/dist/Client.js CHANGED
@@ -62,8 +62,8 @@ class MavenAGIClient {
62
62
  "X-Agent-Id": _options === null || _options === void 0 ? void 0 : _options.agentId,
63
63
  "X-Fern-Language": "JavaScript",
64
64
  "X-Fern-SDK-Name": "mavenagi",
65
- "X-Fern-SDK-Version": "1.2.27",
66
- "User-Agent": "mavenagi/1.2.27",
65
+ "X-Fern-SDK-Version": "1.2.29",
66
+ "User-Agent": "mavenagi/1.2.29",
67
67
  "X-Fern-Runtime": core.RUNTIME.type,
68
68
  "X-Fern-Runtime-Version": core.RUNTIME.version,
69
69
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -1,4 +1,4 @@
1
1
  export interface CommitAssetUploadRequest {
2
- /** Checksum of the uploaded file (optional verification) */
2
+ /** MD5 hex digest of the uploaded file. Required for assets attached to knowledge documents. Used to verify blob integrity at ingestion time. */
3
3
  checksum?: string;
4
4
  }
@@ -27,7 +27,12 @@ export interface KnowledgeDocumentRequest extends MavenAGI.BaseKnowledgeDocument
27
27
  contentType: MavenAGI.KnowledgeDocumentContentType;
28
28
  /** The title of the document. Will be shown as part of answers. */
29
29
  title: string;
30
- /** (Currently in BETA. Use at your own risk, and may not work in some circumstances) ID of the asset associated with this document. This asset will be transformed into text and set as the content of the document. The following types are supported: `application/pdf`, `text/plain`. Either this or content is required, but not both. */
30
+ /**
31
+ * (Beta: under development, endpoint may change.)
32
+ * ID of the asset associated with this document. This asset will be transformed into
33
+ * text and set as the content of the document. Supported MIME types are those accepted by `initiateUpload`.
34
+ * Either this or content is required, but not both. The asset must have a checksum provided at commit time (see `commitUpload`).
35
+ */
31
36
  assetId?: MavenAGI.EntityIdWithoutAgent;
32
37
  /** The content of the document. Not shown directly to users. May be provided in HTML or markdown. HTML will be converted to markdown automatically. Images are not currently supported and will be ignored. Either this or assetId is required, but not both */
33
38
  content?: string;
@@ -53,8 +53,8 @@ import type * as MavenAGI from "../../../index";
53
53
  export interface KnowledgeDocumentResponse extends MavenAGI.KnowledgeDocumentSearchResponse {
54
54
  /** The current processing status of the knowledge document */
55
55
  processingStatus?: MavenAGI.KnowledgeDocumentStatus;
56
- /** The content of the document in markdown format. Not shown directly to users. */
57
- content: string;
56
+ /** The content of the document in markdown format. Not shown directly to users. May be absent for asset-backed documents that have not yet been processed. */
57
+ content?: string;
58
58
  /** If the document is associated with an asset, this will contain the asset metadata */
59
59
  asset?: MavenAGI.AttachmentResponse;
60
60
  /** Metadata for the knowledge document. */
@@ -9,7 +9,7 @@ export declare const KnowledgeDocumentResponse: core.serialization.ObjectSchema<
9
9
  export declare namespace KnowledgeDocumentResponse {
10
10
  interface Raw extends KnowledgeDocumentSearchResponse.Raw {
11
11
  processingStatus?: KnowledgeDocumentStatus.Raw | null;
12
- content: string;
12
+ content?: string | null;
13
13
  asset?: AttachmentResponse.Raw | null;
14
14
  metadata: Record<string, string>;
15
15
  relevantEntities: ScopedEntity.Raw[];
@@ -43,7 +43,7 @@ const KnowledgeDocumentStatus_1 = require("./KnowledgeDocumentStatus");
43
43
  exports.KnowledgeDocumentResponse = core.serialization
44
44
  .object({
45
45
  processingStatus: KnowledgeDocumentStatus_1.KnowledgeDocumentStatus.optional(),
46
- content: core.serialization.string(),
46
+ content: core.serialization.string().optional(),
47
47
  asset: AttachmentResponse_1.AttachmentResponse.optional(),
48
48
  metadata: core.serialization.record(core.serialization.string(), core.serialization.string()),
49
49
  relevantEntities: core.serialization.list(ScopedEntity_1.ScopedEntity),
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.2.27";
1
+ export declare const SDK_VERSION = "1.2.29";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.2.27";
4
+ exports.SDK_VERSION = "1.2.29";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mavenagi",
3
- "version": "1.2.27",
3
+ "version": "1.2.29",
4
4
  "private": false,
5
5
  "repository": "github:mavenagi/mavenagi-node",
6
6
  "main": "./index.js",
@@ -9,7 +9,7 @@ export declare const KnowledgeDocumentResponse: core.serialization.ObjectSchema<
9
9
  export declare namespace KnowledgeDocumentResponse {
10
10
  interface Raw extends KnowledgeDocumentSearchResponse.Raw {
11
11
  processingStatus?: KnowledgeDocumentStatus.Raw | null;
12
- content: string;
12
+ content?: string | null;
13
13
  asset?: AttachmentResponse.Raw | null;
14
14
  metadata: Record<string, string>;
15
15
  relevantEntities: ScopedEntity.Raw[];
@@ -43,7 +43,7 @@ const KnowledgeDocumentStatus_1 = require("./KnowledgeDocumentStatus");
43
43
  exports.KnowledgeDocumentResponse = core.serialization
44
44
  .object({
45
45
  processingStatus: KnowledgeDocumentStatus_1.KnowledgeDocumentStatus.optional(),
46
- content: core.serialization.string(),
46
+ content: core.serialization.string().optional(),
47
47
  asset: AttachmentResponse_1.AttachmentResponse.optional(),
48
48
  metadata: core.serialization.record(core.serialization.string(), core.serialization.string()),
49
49
  relevantEntities: core.serialization.list(ScopedEntity_1.ScopedEntity),
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.2.27";
1
+ export declare const SDK_VERSION = "1.2.29";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.2.27";
4
+ exports.SDK_VERSION = "1.2.29";