mavenagi 1.2.57 → 1.2.58
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/BaseClient.js +2 -2
- package/api/resources/commons/types/BaseCursorRequest.d.ts +21 -0
- package/api/resources/commons/types/BaseCursorRequest.js +3 -0
- package/api/resources/commons/types/CursorPage.d.ts +12 -0
- package/api/resources/commons/types/CursorPage.js +3 -0
- package/api/resources/commons/types/index.d.ts +2 -0
- package/api/resources/commons/types/index.js +2 -0
- package/api/resources/conversation/client/Client.d.ts +32 -1
- package/api/resources/conversation/client/Client.js +116 -1
- package/api/resources/conversation/types/ConversationRequest.d.ts +12 -1
- package/api/resources/conversation/types/ConversationsCursorSearchRequest.d.ts +4 -0
- package/api/resources/conversation/types/ConversationsCursorSearchRequest.js +3 -0
- package/api/resources/conversation/types/ConversationsCursorSearchResponse.d.ts +11 -0
- package/api/resources/conversation/types/ConversationsCursorSearchResponse.js +3 -0
- package/api/resources/conversation/types/index.d.ts +2 -0
- package/api/resources/conversation/types/index.js +2 -0
- package/api/resources/knowledge/types/KnowledgeBaseDocumentDeltas.d.ts +16 -0
- package/api/resources/knowledge/types/KnowledgeBaseDocumentDeltas.js +3 -0
- package/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +5 -0
- package/api/resources/knowledge/types/index.d.ts +1 -0
- package/api/resources/knowledge/types/index.js +1 -0
- package/package.json +1 -1
- package/reference.md +76 -1
- package/serialization/resources/commons/types/BaseCursorRequest.d.ts +11 -0
- package/serialization/resources/commons/types/BaseCursorRequest.js +43 -0
- package/serialization/resources/commons/types/CursorPage.d.ts +9 -0
- package/serialization/resources/commons/types/CursorPage.js +41 -0
- package/serialization/resources/commons/types/index.d.ts +2 -0
- package/serialization/resources/commons/types/index.js +2 -0
- package/serialization/resources/conversation/types/ConversationsCursorSearchRequest.d.ts +11 -0
- package/serialization/resources/conversation/types/ConversationsCursorSearchRequest.js +45 -0
- package/serialization/resources/conversation/types/ConversationsCursorSearchResponse.d.ts +12 -0
- package/serialization/resources/conversation/types/ConversationsCursorSearchResponse.js +46 -0
- package/serialization/resources/conversation/types/index.d.ts +2 -0
- package/serialization/resources/conversation/types/index.js +2 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseDocumentDeltas.d.ts +11 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseDocumentDeltas.js +43 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseVersion.d.ts +2 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseVersion.js +2 -0
- package/serialization/resources/knowledge/types/index.d.ts +1 -0
- package/serialization/resources/knowledge/types/index.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "mavenagi",
|
|
46
|
-
"X-Fern-SDK-Version": "1.2.
|
|
47
|
-
"User-Agent": "mavenagi/1.2.
|
|
46
|
+
"X-Fern-SDK-Version": "1.2.58",
|
|
47
|
+
"User-Agent": "mavenagi/1.2.58",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
"X-Organization-Id": options === null || options === void 0 ? void 0 : options.organizationId,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pagination parameters for endpoints traversed by an opaque cursor rather than by page offset.
|
|
3
|
+
* Defined as a sibling of BasePaginatedRequest, not a subtype: a cursor traversal has no page
|
|
4
|
+
* number, and offering `page` alongside `cursor` would let a caller send a self-contradictory
|
|
5
|
+
* request. The 200 ceiling is tighter than either offset variant because cursor traversal is
|
|
6
|
+
* designed to walk a whole result set in many small pages.
|
|
7
|
+
*/
|
|
8
|
+
export interface BaseCursorRequest {
|
|
9
|
+
/** The size of the page to return, defaults to 20. Max 200. */
|
|
10
|
+
size?: number;
|
|
11
|
+
/** Whether to sort descending, defaults to true */
|
|
12
|
+
sortDesc?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Opaque cursor from the previous response's `nextCursor`, passed back unchanged. Omit it to
|
|
15
|
+
* start a new traversal. Every other field must stay identical for the whole traversal;
|
|
16
|
+
* changing one is rejected rather than silently restarting from the beginning. Cursors have
|
|
17
|
+
* no expiry, but a cursor can still be rejected with a 400 if the server's signing key has
|
|
18
|
+
* since been rotated out; if that happens, discard it and restart the traversal.
|
|
19
|
+
*/
|
|
20
|
+
cursor?: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pagination metadata for a cursor traversal. The counterpart to Page, which describes an
|
|
3
|
+
* offset-paginated response.
|
|
4
|
+
*/
|
|
5
|
+
export interface CursorPage {
|
|
6
|
+
/**
|
|
7
|
+
* Pass this back as `cursor` to read the next page. Omitted when the traversal is
|
|
8
|
+
* complete. This is the only reliable end-of-results signal — a page can legitimately hold
|
|
9
|
+
* fewer items than `size` while more pages remain.
|
|
10
|
+
*/
|
|
11
|
+
nextCursor?: string;
|
|
12
|
+
}
|
|
@@ -22,6 +22,7 @@ export * from "./AttachmentStatus";
|
|
|
22
22
|
export * from "./BaseAttachment";
|
|
23
23
|
export * from "./BaseCappedPaginatedRequest";
|
|
24
24
|
export * from "./BaseConversationResponse";
|
|
25
|
+
export * from "./BaseCursorRequest";
|
|
25
26
|
export * from "./BasePaginatedRequest";
|
|
26
27
|
export * from "./BaseSearchRequest";
|
|
27
28
|
export * from "./BooleanCondition";
|
|
@@ -76,6 +77,7 @@ export * from "./ConversationState";
|
|
|
76
77
|
export * from "./ConversationStatePrecondition";
|
|
77
78
|
export * from "./ConversationSummary";
|
|
78
79
|
export * from "./CsatInfo";
|
|
80
|
+
export * from "./CursorPage";
|
|
79
81
|
export * from "./DeviceInfo";
|
|
80
82
|
export * from "./DeviceType";
|
|
81
83
|
export * from "./DocumentInformation";
|
|
@@ -38,6 +38,7 @@ __exportStar(require("./AttachmentStatus"), exports);
|
|
|
38
38
|
__exportStar(require("./BaseAttachment"), exports);
|
|
39
39
|
__exportStar(require("./BaseCappedPaginatedRequest"), exports);
|
|
40
40
|
__exportStar(require("./BaseConversationResponse"), exports);
|
|
41
|
+
__exportStar(require("./BaseCursorRequest"), exports);
|
|
41
42
|
__exportStar(require("./BasePaginatedRequest"), exports);
|
|
42
43
|
__exportStar(require("./BaseSearchRequest"), exports);
|
|
43
44
|
__exportStar(require("./BooleanCondition"), exports);
|
|
@@ -92,6 +93,7 @@ __exportStar(require("./ConversationState"), exports);
|
|
|
92
93
|
__exportStar(require("./ConversationStatePrecondition"), exports);
|
|
93
94
|
__exportStar(require("./ConversationSummary"), exports);
|
|
94
95
|
__exportStar(require("./CsatInfo"), exports);
|
|
96
|
+
__exportStar(require("./CursorPage"), exports);
|
|
95
97
|
__exportStar(require("./DeviceInfo"), exports);
|
|
96
98
|
__exportStar(require("./DeviceType"), exports);
|
|
97
99
|
__exportStar(require("./DocumentInformation"), exports);
|
|
@@ -243,7 +243,11 @@ export declare class ConversationClient {
|
|
|
243
243
|
categorize(conversationId: string, requestOptions?: ConversationClient.RequestOptions): core.HttpResponsePromise<MavenAGI.CategorizationResponse>;
|
|
244
244
|
private __categorize;
|
|
245
245
|
/**
|
|
246
|
-
*
|
|
246
|
+
* @deprecated
|
|
247
|
+
*
|
|
248
|
+
* Replaced by the Create events API, which records feedback as a user event.
|
|
249
|
+
*
|
|
250
|
+
* Update feedback or create it if it doesn't exist.
|
|
247
251
|
*
|
|
248
252
|
* @param {MavenAGI.FeedbackRequest} request
|
|
249
253
|
* @param {ConversationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -373,6 +377,33 @@ export declare class ConversationClient {
|
|
|
373
377
|
*/
|
|
374
378
|
search(request: MavenAGI.ConversationsSearchRequest, requestOptions?: ConversationClient.RequestOptions): core.HttpResponsePromise<MavenAGI.ConversationsResponse>;
|
|
375
379
|
private __search;
|
|
380
|
+
/**
|
|
381
|
+
* Search conversations using cursor pagination, which can read past the 10,000th result that
|
|
382
|
+
* `search` cannot reach.
|
|
383
|
+
*
|
|
384
|
+
* Results are ordered by conversation creation time. Start with no `cursor`, then pass each
|
|
385
|
+
* response's `nextCursor` back unchanged until the response omits it. Keep every other field
|
|
386
|
+
* identical for the whole traversal — changing the filter, size, or sort direction mid-way is
|
|
387
|
+
* rejected rather than silently restarting you at the beginning.
|
|
388
|
+
*
|
|
389
|
+
* `nextCursor` is the only reliable end-of-results signal. Do not stop early because a page
|
|
390
|
+
* came back with fewer conversations than you asked for: that happens legitimately, and more
|
|
391
|
+
* pages may still remain.
|
|
392
|
+
*
|
|
393
|
+
* @param {MavenAGI.ConversationsCursorSearchRequest} request
|
|
394
|
+
* @param {ConversationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
395
|
+
*
|
|
396
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
397
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
398
|
+
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
399
|
+
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
400
|
+
* @throws {@link MavenAGI.ServerError}
|
|
401
|
+
*
|
|
402
|
+
* @example
|
|
403
|
+
* await client.conversation.searchCursor({})
|
|
404
|
+
*/
|
|
405
|
+
searchCursor(request: MavenAGI.ConversationsCursorSearchRequest, requestOptions?: ConversationClient.RequestOptions): core.HttpResponsePromise<MavenAGI.ConversationsCursorSearchResponse>;
|
|
406
|
+
private __searchCursor;
|
|
376
407
|
/**
|
|
377
408
|
* Export conversations to a CSV file.
|
|
378
409
|
*
|
|
@@ -959,7 +959,11 @@ class ConversationClient {
|
|
|
959
959
|
});
|
|
960
960
|
}
|
|
961
961
|
/**
|
|
962
|
-
*
|
|
962
|
+
* @deprecated
|
|
963
|
+
*
|
|
964
|
+
* Replaced by the Create events API, which records feedback as a user event.
|
|
965
|
+
*
|
|
966
|
+
* Update feedback or create it if it doesn't exist.
|
|
963
967
|
*
|
|
964
968
|
* @param {MavenAGI.FeedbackRequest} request
|
|
965
969
|
* @param {ConversationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -1501,6 +1505,117 @@ class ConversationClient {
|
|
|
1501
1505
|
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/conversations/search");
|
|
1502
1506
|
});
|
|
1503
1507
|
}
|
|
1508
|
+
/**
|
|
1509
|
+
* Search conversations using cursor pagination, which can read past the 10,000th result that
|
|
1510
|
+
* `search` cannot reach.
|
|
1511
|
+
*
|
|
1512
|
+
* Results are ordered by conversation creation time. Start with no `cursor`, then pass each
|
|
1513
|
+
* response's `nextCursor` back unchanged until the response omits it. Keep every other field
|
|
1514
|
+
* identical for the whole traversal — changing the filter, size, or sort direction mid-way is
|
|
1515
|
+
* rejected rather than silently restarting you at the beginning.
|
|
1516
|
+
*
|
|
1517
|
+
* `nextCursor` is the only reliable end-of-results signal. Do not stop early because a page
|
|
1518
|
+
* came back with fewer conversations than you asked for: that happens legitimately, and more
|
|
1519
|
+
* pages may still remain.
|
|
1520
|
+
*
|
|
1521
|
+
* @param {MavenAGI.ConversationsCursorSearchRequest} request
|
|
1522
|
+
* @param {ConversationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1523
|
+
*
|
|
1524
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
1525
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
1526
|
+
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
1527
|
+
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
1528
|
+
* @throws {@link MavenAGI.ServerError}
|
|
1529
|
+
*
|
|
1530
|
+
* @example
|
|
1531
|
+
* await client.conversation.searchCursor({})
|
|
1532
|
+
*/
|
|
1533
|
+
searchCursor(request, requestOptions) {
|
|
1534
|
+
return core.HttpResponsePromise.fromPromise(this.__searchCursor(request, requestOptions));
|
|
1535
|
+
}
|
|
1536
|
+
__searchCursor(request, requestOptions) {
|
|
1537
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1538
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
1539
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
1540
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
1541
|
+
"X-Organization-Id": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationId) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.organizationId,
|
|
1542
|
+
"X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
|
|
1543
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1544
|
+
const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
|
|
1545
|
+
url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, "/v1/conversations/search/cursor"),
|
|
1546
|
+
method: "POST",
|
|
1547
|
+
headers: _headers,
|
|
1548
|
+
contentType: "application/json",
|
|
1549
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
1550
|
+
requestType: "json",
|
|
1551
|
+
body: serializers.ConversationsCursorSearchRequest.jsonOrThrow(request, {
|
|
1552
|
+
unrecognizedObjectKeys: "strip",
|
|
1553
|
+
}),
|
|
1554
|
+
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
1555
|
+
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|
|
1556
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1557
|
+
fetchFn: (_p = this._options) === null || _p === void 0 ? void 0 : _p.fetch,
|
|
1558
|
+
logging: this._options.logging,
|
|
1559
|
+
});
|
|
1560
|
+
if (_response.ok) {
|
|
1561
|
+
return {
|
|
1562
|
+
data: serializers.ConversationsCursorSearchResponse.parseOrThrow(_response.body, {
|
|
1563
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1564
|
+
allowUnrecognizedUnionMembers: true,
|
|
1565
|
+
allowUnrecognizedEnumValues: true,
|
|
1566
|
+
breadcrumbsPrefix: ["response"],
|
|
1567
|
+
}),
|
|
1568
|
+
rawResponse: _response.rawResponse,
|
|
1569
|
+
};
|
|
1570
|
+
}
|
|
1571
|
+
if (_response.error.reason === "status-code") {
|
|
1572
|
+
switch (_response.error.statusCode) {
|
|
1573
|
+
case 404:
|
|
1574
|
+
throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
1575
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1576
|
+
allowUnrecognizedUnionMembers: true,
|
|
1577
|
+
allowUnrecognizedEnumValues: true,
|
|
1578
|
+
breadcrumbsPrefix: ["response"],
|
|
1579
|
+
}), _response.rawResponse);
|
|
1580
|
+
case 400:
|
|
1581
|
+
throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
1582
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1583
|
+
allowUnrecognizedUnionMembers: true,
|
|
1584
|
+
allowUnrecognizedEnumValues: true,
|
|
1585
|
+
breadcrumbsPrefix: ["response"],
|
|
1586
|
+
}), _response.rawResponse);
|
|
1587
|
+
case 413:
|
|
1588
|
+
throw new MavenAGI.PayloadTooLargeError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
1589
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1590
|
+
allowUnrecognizedUnionMembers: true,
|
|
1591
|
+
allowUnrecognizedEnumValues: true,
|
|
1592
|
+
breadcrumbsPrefix: ["response"],
|
|
1593
|
+
}), _response.rawResponse);
|
|
1594
|
+
case 429:
|
|
1595
|
+
throw new MavenAGI.TooManyRequestsError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
1596
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1597
|
+
allowUnrecognizedUnionMembers: true,
|
|
1598
|
+
allowUnrecognizedEnumValues: true,
|
|
1599
|
+
breadcrumbsPrefix: ["response"],
|
|
1600
|
+
}), _response.rawResponse);
|
|
1601
|
+
case 500:
|
|
1602
|
+
throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
1603
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1604
|
+
allowUnrecognizedUnionMembers: true,
|
|
1605
|
+
allowUnrecognizedEnumValues: true,
|
|
1606
|
+
breadcrumbsPrefix: ["response"],
|
|
1607
|
+
}), _response.rawResponse);
|
|
1608
|
+
default:
|
|
1609
|
+
throw new errors.MavenAGIError({
|
|
1610
|
+
statusCode: _response.error.statusCode,
|
|
1611
|
+
body: _response.error.body,
|
|
1612
|
+
rawResponse: _response.rawResponse,
|
|
1613
|
+
});
|
|
1614
|
+
}
|
|
1615
|
+
}
|
|
1616
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/conversations/search/cursor");
|
|
1617
|
+
});
|
|
1618
|
+
}
|
|
1504
1619
|
/**
|
|
1505
1620
|
* Export conversations to a CSV file.
|
|
1506
1621
|
*
|
|
@@ -33,6 +33,17 @@ export interface ConversationRequest {
|
|
|
33
33
|
metadata?: Record<string, string>;
|
|
34
34
|
/** The messages in the conversation */
|
|
35
35
|
messages: MavenAGI.ConversationMessageRequest[];
|
|
36
|
-
/**
|
|
36
|
+
/**
|
|
37
|
+
* The unique identifier of the conversation this new conversation was spawned from, if applicable.
|
|
38
|
+
*
|
|
39
|
+
* Setting this also gives the new conversation access to the context it branched from: when the bot
|
|
40
|
+
* answers, the transcript of the spawned-from conversation (and of the conversations that one was
|
|
41
|
+
* spawned from, in turn) is merged into the prompt ahead of this conversation's own messages. Each
|
|
42
|
+
* ancestor is truncated at the point the spawn happened, so messages it receives afterwards are not
|
|
43
|
+
* included.
|
|
44
|
+
*
|
|
45
|
+
* The referenced conversation must belong to the same agent. Because the merged transcript is read
|
|
46
|
+
* back to the end user, only set this to a conversation the current user is entitled to see.
|
|
47
|
+
*/
|
|
37
48
|
spawnedFromConversationId?: MavenAGI.EntityId;
|
|
38
49
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
export interface ConversationsCursorSearchResponse extends MavenAGI.CursorPage {
|
|
3
|
+
/** The conversations that match the search criteria */
|
|
4
|
+
conversations: MavenAGI.ConversationPreview[];
|
|
5
|
+
/**
|
|
6
|
+
* The total number of matching conversations, returned only on the first page of a
|
|
7
|
+
* traversal and omitted on continuations — the count is paid for once. A snapshot taken
|
|
8
|
+
* when the traversal began; the underlying set may grow while you read.
|
|
9
|
+
*/
|
|
10
|
+
totalElements?: number;
|
|
11
|
+
}
|
|
@@ -17,6 +17,8 @@ export * from "./ConversationMessageRequest";
|
|
|
17
17
|
export * from "./ConversationMetadata";
|
|
18
18
|
export * from "./ConversationPatchRequest";
|
|
19
19
|
export * from "./ConversationRequest";
|
|
20
|
+
export * from "./ConversationsCursorSearchRequest";
|
|
21
|
+
export * from "./ConversationsCursorSearchResponse";
|
|
20
22
|
export * from "./ConversationsResponse";
|
|
21
23
|
export * from "./ConversationsSearchRequest";
|
|
22
24
|
export * from "./DeliverConversationMessageRequest";
|
|
@@ -33,6 +33,8 @@ __exportStar(require("./ConversationMessageRequest"), exports);
|
|
|
33
33
|
__exportStar(require("./ConversationMetadata"), exports);
|
|
34
34
|
__exportStar(require("./ConversationPatchRequest"), exports);
|
|
35
35
|
__exportStar(require("./ConversationRequest"), exports);
|
|
36
|
+
__exportStar(require("./ConversationsCursorSearchRequest"), exports);
|
|
37
|
+
__exportStar(require("./ConversationsCursorSearchResponse"), exports);
|
|
36
38
|
__exportStar(require("./ConversationsResponse"), exports);
|
|
37
39
|
__exportStar(require("./ConversationsSearchRequest"), exports);
|
|
38
40
|
__exportStar(require("./DeliverConversationMessageRequest"), exports);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How a knowledge base version changed the knowledge base, relative to the version that was
|
|
3
|
+
* published when it finalized.
|
|
4
|
+
*
|
|
5
|
+
* Documents are identified by their reference ID, so re-sending a document with changed content
|
|
6
|
+
* counts as an update rather than as an add plus a remove. A full refresh removes a document
|
|
7
|
+
* implicitly, by not including it.
|
|
8
|
+
*/
|
|
9
|
+
export interface KnowledgeBaseDocumentDeltas {
|
|
10
|
+
/** The number of documents this version added. */
|
|
11
|
+
addedCount: number;
|
|
12
|
+
/** The number of documents this version replaced with new content. */
|
|
13
|
+
updatedCount: number;
|
|
14
|
+
/** The number of documents this version removed. */
|
|
15
|
+
removedCount: number;
|
|
16
|
+
}
|
|
@@ -53,4 +53,9 @@ export interface KnowledgeBaseVersion extends MavenAGI.KnowledgeBaseVersionReque
|
|
|
53
53
|
* Only populated while the version is in progress - absent once the version has completed.
|
|
54
54
|
*/
|
|
55
55
|
progress?: MavenAGI.KnowledgeBaseVersionProgress;
|
|
56
|
+
/**
|
|
57
|
+
* How this version changed the knowledge base. Absent for historical versions and for
|
|
58
|
+
* versions that did not complete successfully.
|
|
59
|
+
*/
|
|
60
|
+
documentDeltas?: MavenAGI.KnowledgeBaseDocumentDeltas;
|
|
56
61
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./BaseKnowledgeDocument";
|
|
2
2
|
export * from "./CancelKnowledgeBaseVersionRequest";
|
|
3
3
|
export * from "./FinalizeKnowledgeBaseVersionRequest";
|
|
4
|
+
export * from "./KnowledgeBaseDocumentDeltas";
|
|
4
5
|
export * from "./KnowledgeBaseField";
|
|
5
6
|
export * from "./KnowledgeBaseFilter";
|
|
6
7
|
export * from "./KnowledgeBaseIndexingProgressState";
|
|
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./BaseKnowledgeDocument"), exports);
|
|
18
18
|
__exportStar(require("./CancelKnowledgeBaseVersionRequest"), exports);
|
|
19
19
|
__exportStar(require("./FinalizeKnowledgeBaseVersionRequest"), exports);
|
|
20
|
+
__exportStar(require("./KnowledgeBaseDocumentDeltas"), exports);
|
|
20
21
|
__exportStar(require("./KnowledgeBaseField"), exports);
|
|
21
22
|
__exportStar(require("./KnowledgeBaseFilter"), exports);
|
|
22
23
|
__exportStar(require("./KnowledgeBaseIndexingProgressState"), exports);
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -2366,7 +2366,9 @@ await client.conversation.categorize("conversationId");
|
|
|
2366
2366
|
<dl>
|
|
2367
2367
|
<dd>
|
|
2368
2368
|
|
|
2369
|
-
|
|
2369
|
+
Replaced by the Create events API, which records feedback as a user event.
|
|
2370
|
+
|
|
2371
|
+
Update feedback or create it if it doesn't exist.
|
|
2370
2372
|
</dd>
|
|
2371
2373
|
</dl>
|
|
2372
2374
|
</dd>
|
|
@@ -2730,6 +2732,79 @@ await client.conversation.search({});
|
|
|
2730
2732
|
</dl>
|
|
2731
2733
|
|
|
2732
2734
|
|
|
2735
|
+
</dd>
|
|
2736
|
+
</dl>
|
|
2737
|
+
</details>
|
|
2738
|
+
|
|
2739
|
+
<details><summary><code>client.conversation.<a href="/src/api/resources/conversation/client/Client.ts">searchCursor</a>({ ...params }) -> MavenAGI.ConversationsCursorSearchResponse</code></summary>
|
|
2740
|
+
<dl>
|
|
2741
|
+
<dd>
|
|
2742
|
+
|
|
2743
|
+
#### 📝 Description
|
|
2744
|
+
|
|
2745
|
+
<dl>
|
|
2746
|
+
<dd>
|
|
2747
|
+
|
|
2748
|
+
<dl>
|
|
2749
|
+
<dd>
|
|
2750
|
+
|
|
2751
|
+
Search conversations using cursor pagination, which can read past the 10,000th result that
|
|
2752
|
+
`search` cannot reach.
|
|
2753
|
+
|
|
2754
|
+
Results are ordered by conversation creation time. Start with no `cursor`, then pass each
|
|
2755
|
+
response's `nextCursor` back unchanged until the response omits it. Keep every other field
|
|
2756
|
+
identical for the whole traversal — changing the filter, size, or sort direction mid-way is
|
|
2757
|
+
rejected rather than silently restarting you at the beginning.
|
|
2758
|
+
|
|
2759
|
+
`nextCursor` is the only reliable end-of-results signal. Do not stop early because a page
|
|
2760
|
+
came back with fewer conversations than you asked for: that happens legitimately, and more
|
|
2761
|
+
pages may still remain.
|
|
2762
|
+
</dd>
|
|
2763
|
+
</dl>
|
|
2764
|
+
</dd>
|
|
2765
|
+
</dl>
|
|
2766
|
+
|
|
2767
|
+
#### 🔌 Usage
|
|
2768
|
+
|
|
2769
|
+
<dl>
|
|
2770
|
+
<dd>
|
|
2771
|
+
|
|
2772
|
+
<dl>
|
|
2773
|
+
<dd>
|
|
2774
|
+
|
|
2775
|
+
```typescript
|
|
2776
|
+
await client.conversation.searchCursor({});
|
|
2777
|
+
|
|
2778
|
+
```
|
|
2779
|
+
</dd>
|
|
2780
|
+
</dl>
|
|
2781
|
+
</dd>
|
|
2782
|
+
</dl>
|
|
2783
|
+
|
|
2784
|
+
#### ⚙️ Parameters
|
|
2785
|
+
|
|
2786
|
+
<dl>
|
|
2787
|
+
<dd>
|
|
2788
|
+
|
|
2789
|
+
<dl>
|
|
2790
|
+
<dd>
|
|
2791
|
+
|
|
2792
|
+
**request:** `MavenAGI.ConversationsCursorSearchRequest`
|
|
2793
|
+
|
|
2794
|
+
</dd>
|
|
2795
|
+
</dl>
|
|
2796
|
+
|
|
2797
|
+
<dl>
|
|
2798
|
+
<dd>
|
|
2799
|
+
|
|
2800
|
+
**requestOptions:** `ConversationClient.RequestOptions`
|
|
2801
|
+
|
|
2802
|
+
</dd>
|
|
2803
|
+
</dl>
|
|
2804
|
+
</dd>
|
|
2805
|
+
</dl>
|
|
2806
|
+
|
|
2807
|
+
|
|
2733
2808
|
</dd>
|
|
2734
2809
|
</dl>
|
|
2735
2810
|
</details>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
export declare const BaseCursorRequest: core.serialization.ObjectSchema<serializers.BaseCursorRequest.Raw, MavenAGI.BaseCursorRequest>;
|
|
5
|
+
export declare namespace BaseCursorRequest {
|
|
6
|
+
interface Raw {
|
|
7
|
+
size?: number | null;
|
|
8
|
+
sortDesc?: boolean | null;
|
|
9
|
+
cursor?: string | null;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.BaseCursorRequest = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core"));
|
|
39
|
+
exports.BaseCursorRequest = core.serialization.object({
|
|
40
|
+
size: core.serialization.number().optional(),
|
|
41
|
+
sortDesc: core.serialization.boolean().optional(),
|
|
42
|
+
cursor: core.serialization.string().optional(),
|
|
43
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
export declare const CursorPage: core.serialization.ObjectSchema<serializers.CursorPage.Raw, MavenAGI.CursorPage>;
|
|
5
|
+
export declare namespace CursorPage {
|
|
6
|
+
interface Raw {
|
|
7
|
+
nextCursor?: string | null;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.CursorPage = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core"));
|
|
39
|
+
exports.CursorPage = core.serialization.object({
|
|
40
|
+
nextCursor: core.serialization.string().optional(),
|
|
41
|
+
});
|
|
@@ -22,6 +22,7 @@ export * from "./AttachmentStatus";
|
|
|
22
22
|
export * from "./BaseAttachment";
|
|
23
23
|
export * from "./BaseCappedPaginatedRequest";
|
|
24
24
|
export * from "./BaseConversationResponse";
|
|
25
|
+
export * from "./BaseCursorRequest";
|
|
25
26
|
export * from "./BasePaginatedRequest";
|
|
26
27
|
export * from "./BaseSearchRequest";
|
|
27
28
|
export * from "./BooleanCondition";
|
|
@@ -76,6 +77,7 @@ export * from "./ConversationState";
|
|
|
76
77
|
export * from "./ConversationStatePrecondition";
|
|
77
78
|
export * from "./ConversationSummary";
|
|
78
79
|
export * from "./CsatInfo";
|
|
80
|
+
export * from "./CursorPage";
|
|
79
81
|
export * from "./DeviceInfo";
|
|
80
82
|
export * from "./DeviceType";
|
|
81
83
|
export * from "./DocumentInformation";
|
|
@@ -38,6 +38,7 @@ __exportStar(require("./AttachmentStatus"), exports);
|
|
|
38
38
|
__exportStar(require("./BaseAttachment"), exports);
|
|
39
39
|
__exportStar(require("./BaseCappedPaginatedRequest"), exports);
|
|
40
40
|
__exportStar(require("./BaseConversationResponse"), exports);
|
|
41
|
+
__exportStar(require("./BaseCursorRequest"), exports);
|
|
41
42
|
__exportStar(require("./BasePaginatedRequest"), exports);
|
|
42
43
|
__exportStar(require("./BaseSearchRequest"), exports);
|
|
43
44
|
__exportStar(require("./BooleanCondition"), exports);
|
|
@@ -92,6 +93,7 @@ __exportStar(require("./ConversationState"), exports);
|
|
|
92
93
|
__exportStar(require("./ConversationStatePrecondition"), exports);
|
|
93
94
|
__exportStar(require("./ConversationSummary"), exports);
|
|
94
95
|
__exportStar(require("./CsatInfo"), exports);
|
|
96
|
+
__exportStar(require("./CursorPage"), exports);
|
|
95
97
|
__exportStar(require("./DeviceInfo"), exports);
|
|
96
98
|
__exportStar(require("./DeviceType"), exports);
|
|
97
99
|
__exportStar(require("./DocumentInformation"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
import { BaseCursorRequest } from "../../commons/types/BaseCursorRequest";
|
|
5
|
+
import { ConversationFilter } from "./ConversationFilter";
|
|
6
|
+
export declare const ConversationsCursorSearchRequest: core.serialization.ObjectSchema<serializers.ConversationsCursorSearchRequest.Raw, MavenAGI.ConversationsCursorSearchRequest>;
|
|
7
|
+
export declare namespace ConversationsCursorSearchRequest {
|
|
8
|
+
interface Raw extends BaseCursorRequest.Raw {
|
|
9
|
+
filter?: ConversationFilter.Raw | null;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.ConversationsCursorSearchRequest = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core"));
|
|
39
|
+
const BaseCursorRequest_1 = require("../../commons/types/BaseCursorRequest");
|
|
40
|
+
const ConversationFilter_1 = require("./ConversationFilter");
|
|
41
|
+
exports.ConversationsCursorSearchRequest = core.serialization
|
|
42
|
+
.object({
|
|
43
|
+
filter: ConversationFilter_1.ConversationFilter.optional(),
|
|
44
|
+
})
|
|
45
|
+
.extend(BaseCursorRequest_1.BaseCursorRequest);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
import { ConversationPreview } from "../../commons/types/ConversationPreview";
|
|
5
|
+
import { CursorPage } from "../../commons/types/CursorPage";
|
|
6
|
+
export declare const ConversationsCursorSearchResponse: core.serialization.ObjectSchema<serializers.ConversationsCursorSearchResponse.Raw, MavenAGI.ConversationsCursorSearchResponse>;
|
|
7
|
+
export declare namespace ConversationsCursorSearchResponse {
|
|
8
|
+
interface Raw extends CursorPage.Raw {
|
|
9
|
+
conversations: ConversationPreview.Raw[];
|
|
10
|
+
totalElements?: number | null;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.ConversationsCursorSearchResponse = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core"));
|
|
39
|
+
const ConversationPreview_1 = require("../../commons/types/ConversationPreview");
|
|
40
|
+
const CursorPage_1 = require("../../commons/types/CursorPage");
|
|
41
|
+
exports.ConversationsCursorSearchResponse = core.serialization
|
|
42
|
+
.object({
|
|
43
|
+
conversations: core.serialization.list(ConversationPreview_1.ConversationPreview),
|
|
44
|
+
totalElements: core.serialization.number().optional(),
|
|
45
|
+
})
|
|
46
|
+
.extend(CursorPage_1.CursorPage);
|
|
@@ -17,6 +17,8 @@ export * from "./ConversationMessageRequest";
|
|
|
17
17
|
export * from "./ConversationMetadata";
|
|
18
18
|
export * from "./ConversationPatchRequest";
|
|
19
19
|
export * from "./ConversationRequest";
|
|
20
|
+
export * from "./ConversationsCursorSearchRequest";
|
|
21
|
+
export * from "./ConversationsCursorSearchResponse";
|
|
20
22
|
export * from "./ConversationsResponse";
|
|
21
23
|
export * from "./ConversationsSearchRequest";
|
|
22
24
|
export * from "./DeliverConversationMessageRequest";
|
|
@@ -33,6 +33,8 @@ __exportStar(require("./ConversationMessageRequest"), exports);
|
|
|
33
33
|
__exportStar(require("./ConversationMetadata"), exports);
|
|
34
34
|
__exportStar(require("./ConversationPatchRequest"), exports);
|
|
35
35
|
__exportStar(require("./ConversationRequest"), exports);
|
|
36
|
+
__exportStar(require("./ConversationsCursorSearchRequest"), exports);
|
|
37
|
+
__exportStar(require("./ConversationsCursorSearchResponse"), exports);
|
|
36
38
|
__exportStar(require("./ConversationsResponse"), exports);
|
|
37
39
|
__exportStar(require("./ConversationsSearchRequest"), exports);
|
|
38
40
|
__exportStar(require("./DeliverConversationMessageRequest"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
export declare const KnowledgeBaseDocumentDeltas: core.serialization.ObjectSchema<serializers.KnowledgeBaseDocumentDeltas.Raw, MavenAGI.KnowledgeBaseDocumentDeltas>;
|
|
5
|
+
export declare namespace KnowledgeBaseDocumentDeltas {
|
|
6
|
+
interface Raw {
|
|
7
|
+
addedCount: number;
|
|
8
|
+
updatedCount: number;
|
|
9
|
+
removedCount: number;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.KnowledgeBaseDocumentDeltas = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core"));
|
|
39
|
+
exports.KnowledgeBaseDocumentDeltas = core.serialization.object({
|
|
40
|
+
addedCount: core.serialization.number(),
|
|
41
|
+
updatedCount: core.serialization.number(),
|
|
42
|
+
removedCount: core.serialization.number(),
|
|
43
|
+
});
|
|
@@ -2,6 +2,7 @@ import type * as MavenAGI from "../../../../api/index";
|
|
|
2
2
|
import * as core from "../../../../core";
|
|
3
3
|
import type * as serializers from "../../../index";
|
|
4
4
|
import { EntityId } from "../../commons/types/EntityId";
|
|
5
|
+
import { KnowledgeBaseDocumentDeltas } from "./KnowledgeBaseDocumentDeltas";
|
|
5
6
|
import { KnowledgeBaseIndexingProgressState } from "./KnowledgeBaseIndexingProgressState";
|
|
6
7
|
import { KnowledgeBaseVersionProgress } from "./KnowledgeBaseVersionProgress";
|
|
7
8
|
import { KnowledgeBaseVersionRequest } from "./KnowledgeBaseVersionRequest";
|
|
@@ -16,5 +17,6 @@ export declare namespace KnowledgeBaseVersion {
|
|
|
16
17
|
updatedAt: string;
|
|
17
18
|
indexingState?: KnowledgeBaseIndexingProgressState.Raw | null;
|
|
18
19
|
progress?: KnowledgeBaseVersionProgress.Raw | null;
|
|
20
|
+
documentDeltas?: KnowledgeBaseDocumentDeltas.Raw | null;
|
|
19
21
|
}
|
|
20
22
|
}
|
|
@@ -37,6 +37,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.KnowledgeBaseVersion = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core"));
|
|
39
39
|
const EntityId_1 = require("../../commons/types/EntityId");
|
|
40
|
+
const KnowledgeBaseDocumentDeltas_1 = require("./KnowledgeBaseDocumentDeltas");
|
|
40
41
|
const KnowledgeBaseIndexingProgressState_1 = require("./KnowledgeBaseIndexingProgressState");
|
|
41
42
|
const KnowledgeBaseVersionProgress_1 = require("./KnowledgeBaseVersionProgress");
|
|
42
43
|
const KnowledgeBaseVersionRequest_1 = require("./KnowledgeBaseVersionRequest");
|
|
@@ -50,5 +51,6 @@ exports.KnowledgeBaseVersion = core.serialization
|
|
|
50
51
|
updatedAt: core.serialization.date(),
|
|
51
52
|
indexingState: KnowledgeBaseIndexingProgressState_1.KnowledgeBaseIndexingProgressState.optional(),
|
|
52
53
|
progress: KnowledgeBaseVersionProgress_1.KnowledgeBaseVersionProgress.optional(),
|
|
54
|
+
documentDeltas: KnowledgeBaseDocumentDeltas_1.KnowledgeBaseDocumentDeltas.optional(),
|
|
53
55
|
})
|
|
54
56
|
.extend(KnowledgeBaseVersionRequest_1.KnowledgeBaseVersionRequest);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./BaseKnowledgeDocument";
|
|
2
2
|
export * from "./CancelKnowledgeBaseVersionRequest";
|
|
3
3
|
export * from "./FinalizeKnowledgeBaseVersionRequest";
|
|
4
|
+
export * from "./KnowledgeBaseDocumentDeltas";
|
|
4
5
|
export * from "./KnowledgeBaseField";
|
|
5
6
|
export * from "./KnowledgeBaseFilter";
|
|
6
7
|
export * from "./KnowledgeBaseIndexingProgressState";
|
|
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./BaseKnowledgeDocument"), exports);
|
|
18
18
|
__exportStar(require("./CancelKnowledgeBaseVersionRequest"), exports);
|
|
19
19
|
__exportStar(require("./FinalizeKnowledgeBaseVersionRequest"), exports);
|
|
20
|
+
__exportStar(require("./KnowledgeBaseDocumentDeltas"), exports);
|
|
20
21
|
__exportStar(require("./KnowledgeBaseField"), exports);
|
|
21
22
|
__exportStar(require("./KnowledgeBaseFilter"), exports);
|
|
22
23
|
__exportStar(require("./KnowledgeBaseIndexingProgressState"), exports);
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.2.
|
|
1
|
+
export declare const SDK_VERSION = "1.2.58";
|
package/version.js
CHANGED