mavenagi 1.2.26 → 1.2.28
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 +2 -2
- package/api/resources/assets/types/CommitAssetUploadRequest.d.ts +1 -1
- package/api/resources/commons/types/ActionBase.d.ts +1 -1
- package/api/resources/commons/types/BotLogicCharterDetail.d.ts +14 -0
- package/api/resources/commons/types/BotLogicCharterDetail.js +3 -0
- package/api/resources/commons/types/BotLogicChartersItem.d.ts +10 -0
- package/api/resources/commons/types/BotLogicChartersItem.js +3 -0
- package/api/resources/commons/types/BotLogicIntelligentFieldDetail.d.ts +8 -0
- package/api/resources/commons/types/BotLogicIntelligentFieldDetail.js +3 -0
- package/api/resources/commons/types/BotLogicIntelligentFieldsItem.d.ts +4 -0
- package/api/resources/commons/types/BotLogicIntelligentFieldsItem.js +3 -0
- package/api/resources/commons/types/BotLogicItem.d.ts +7 -1
- package/api/resources/commons/types/InboxItemCustom.d.ts +1 -5
- package/api/resources/commons/types/IntelligentFieldValueResponse.d.ts +3 -0
- package/api/resources/commons/types/index.d.ts +4 -0
- package/api/resources/commons/types/index.js +4 -0
- package/api/resources/inbox/client/Client.d.ts +24 -2
- package/api/resources/inbox/client/Client.js +104 -2
- package/api/resources/inbox/client/requests/InboxItemPatchRequest.d.ts +20 -0
- package/api/resources/inbox/client/requests/InboxItemPatchRequest.js +3 -0
- package/api/resources/inbox/client/requests/index.d.ts +1 -0
- package/api/resources/inbox/types/InboxItemCreateRequest.d.ts +2 -8
- package/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +6 -1
- package/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +2 -2
- package/dist/Client.js +2 -2
- package/dist/api/resources/assets/types/CommitAssetUploadRequest.d.ts +1 -1
- package/dist/api/resources/commons/types/ActionBase.d.ts +1 -1
- package/dist/api/resources/commons/types/BotLogicCharterDetail.d.ts +14 -0
- package/dist/api/resources/commons/types/BotLogicCharterDetail.js +3 -0
- package/dist/api/resources/commons/types/BotLogicChartersItem.d.ts +10 -0
- package/dist/api/resources/commons/types/BotLogicChartersItem.js +3 -0
- package/dist/api/resources/commons/types/BotLogicIntelligentFieldDetail.d.ts +8 -0
- package/dist/api/resources/commons/types/BotLogicIntelligentFieldDetail.js +3 -0
- package/dist/api/resources/commons/types/BotLogicIntelligentFieldsItem.d.ts +4 -0
- package/dist/api/resources/commons/types/BotLogicIntelligentFieldsItem.js +3 -0
- package/dist/api/resources/commons/types/BotLogicItem.d.ts +7 -1
- package/dist/api/resources/commons/types/InboxItemCustom.d.ts +1 -5
- package/dist/api/resources/commons/types/IntelligentFieldValueResponse.d.ts +3 -0
- package/dist/api/resources/commons/types/index.d.ts +4 -0
- package/dist/api/resources/commons/types/index.js +4 -0
- package/dist/api/resources/inbox/client/Client.d.ts +24 -2
- package/dist/api/resources/inbox/client/Client.js +104 -2
- package/dist/api/resources/inbox/client/requests/InboxItemPatchRequest.d.ts +20 -0
- package/dist/api/resources/inbox/client/requests/InboxItemPatchRequest.js +3 -0
- package/dist/api/resources/inbox/client/requests/index.d.ts +1 -0
- package/dist/api/resources/inbox/types/InboxItemCreateRequest.d.ts +2 -8
- package/dist/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +6 -1
- package/dist/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +2 -2
- package/dist/serialization/resources/commons/types/BotLogicCharterDetail.d.ts +13 -0
- package/dist/serialization/resources/commons/types/BotLogicCharterDetail.js +45 -0
- package/dist/serialization/resources/commons/types/BotLogicChartersItem.d.ts +11 -0
- package/dist/serialization/resources/commons/types/BotLogicChartersItem.js +43 -0
- package/dist/serialization/resources/commons/types/BotLogicIntelligentFieldDetail.d.ts +14 -0
- package/dist/serialization/resources/commons/types/BotLogicIntelligentFieldDetail.js +46 -0
- package/dist/serialization/resources/commons/types/BotLogicIntelligentFieldsItem.d.ts +10 -0
- package/dist/serialization/resources/commons/types/BotLogicIntelligentFieldsItem.js +42 -0
- package/dist/serialization/resources/commons/types/BotLogicItem.d.ts +9 -1
- package/dist/serialization/resources/commons/types/BotLogicItem.js +4 -0
- package/dist/serialization/resources/commons/types/InboxItemCustom.d.ts +1 -3
- package/dist/serialization/resources/commons/types/InboxItemCustom.js +1 -3
- package/dist/serialization/resources/commons/types/IntelligentFieldValueResponse.d.ts +1 -0
- package/dist/serialization/resources/commons/types/IntelligentFieldValueResponse.js +1 -0
- package/dist/serialization/resources/commons/types/index.d.ts +4 -0
- package/dist/serialization/resources/commons/types/index.js +4 -0
- package/dist/serialization/resources/inbox/client/requests/InboxItemPatchRequest.d.ts +14 -0
- package/dist/serialization/resources/inbox/client/requests/InboxItemPatchRequest.js +46 -0
- package/dist/serialization/resources/inbox/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/inbox/client/requests/index.js +3 -1
- package/dist/serialization/resources/inbox/types/InboxItemCreateRequest.d.ts +2 -4
- package/dist/serialization/resources/inbox/types/InboxItemCreateRequest.js +2 -4
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +1 -1
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +79 -2
- package/serialization/resources/commons/types/BotLogicCharterDetail.d.ts +13 -0
- package/serialization/resources/commons/types/BotLogicCharterDetail.js +45 -0
- package/serialization/resources/commons/types/BotLogicChartersItem.d.ts +11 -0
- package/serialization/resources/commons/types/BotLogicChartersItem.js +43 -0
- package/serialization/resources/commons/types/BotLogicIntelligentFieldDetail.d.ts +14 -0
- package/serialization/resources/commons/types/BotLogicIntelligentFieldDetail.js +46 -0
- package/serialization/resources/commons/types/BotLogicIntelligentFieldsItem.d.ts +10 -0
- package/serialization/resources/commons/types/BotLogicIntelligentFieldsItem.js +42 -0
- package/serialization/resources/commons/types/BotLogicItem.d.ts +9 -1
- package/serialization/resources/commons/types/BotLogicItem.js +4 -0
- package/serialization/resources/commons/types/InboxItemCustom.d.ts +1 -3
- package/serialization/resources/commons/types/InboxItemCustom.js +1 -3
- package/serialization/resources/commons/types/IntelligentFieldValueResponse.d.ts +1 -0
- package/serialization/resources/commons/types/IntelligentFieldValueResponse.js +1 -0
- package/serialization/resources/commons/types/index.d.ts +4 -0
- package/serialization/resources/commons/types/index.js +4 -0
- package/serialization/resources/inbox/client/requests/InboxItemPatchRequest.d.ts +14 -0
- package/serialization/resources/inbox/client/requests/InboxItemPatchRequest.js +46 -0
- package/serialization/resources/inbox/client/requests/index.d.ts +1 -0
- package/serialization/resources/inbox/client/requests/index.js +3 -1
- package/serialization/resources/inbox/types/InboxItemCreateRequest.d.ts +2 -4
- package/serialization/resources/inbox/types/InboxItemCreateRequest.js +2 -4
- package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +1 -1
- package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -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.InboxItemPatchRequest = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../../core"));
|
|
39
|
+
const InboxItemSeverity_1 = require("../../../commons/types/InboxItemSeverity");
|
|
40
|
+
const InboxItemStatus_1 = require("../../../commons/types/InboxItemStatus");
|
|
41
|
+
exports.InboxItemPatchRequest = core.serialization.object({
|
|
42
|
+
appId: core.serialization.string().optional(),
|
|
43
|
+
status: InboxItemStatus_1.InboxItemStatus.optional(),
|
|
44
|
+
severity: InboxItemSeverity_1.InboxItemSeverity.optional(),
|
|
45
|
+
metadata: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
|
|
46
|
+
});
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InboxItemApplyTagsRequest = void 0;
|
|
3
|
+
exports.InboxItemPatchRequest = exports.InboxItemApplyTagsRequest = void 0;
|
|
4
4
|
var InboxItemApplyTagsRequest_1 = require("./InboxItemApplyTagsRequest");
|
|
5
5
|
Object.defineProperty(exports, "InboxItemApplyTagsRequest", { enumerable: true, get: function () { return InboxItemApplyTagsRequest_1.InboxItemApplyTagsRequest; } });
|
|
6
|
+
var InboxItemPatchRequest_1 = require("./InboxItemPatchRequest");
|
|
7
|
+
Object.defineProperty(exports, "InboxItemPatchRequest", { enumerable: true, get: function () { return InboxItemPatchRequest_1.InboxItemPatchRequest; } });
|
|
@@ -12,12 +12,10 @@ export declare namespace InboxItemCreateRequest {
|
|
|
12
12
|
status: InboxItemStatus.Raw;
|
|
13
13
|
severity: InboxItemSeverity.Raw;
|
|
14
14
|
metadata: Record<string, string>;
|
|
15
|
-
title
|
|
15
|
+
title: string;
|
|
16
16
|
description?: string | null;
|
|
17
17
|
externalUrl?: string | null;
|
|
18
|
-
|
|
19
|
-
snoozedUntil?: string | null;
|
|
20
|
-
assignee?: string | null;
|
|
18
|
+
assignee?: ScopedEntity.Raw | null;
|
|
21
19
|
references?: ScopedEntity.Raw[] | null;
|
|
22
20
|
}
|
|
23
21
|
}
|
|
@@ -45,11 +45,9 @@ exports.InboxItemCreateRequest = core.serialization.object({
|
|
|
45
45
|
status: InboxItemStatus_1.InboxItemStatus,
|
|
46
46
|
severity: InboxItemSeverity_1.InboxItemSeverity,
|
|
47
47
|
metadata: core.serialization.record(core.serialization.string(), core.serialization.string()),
|
|
48
|
-
title: core.serialization.string()
|
|
48
|
+
title: core.serialization.string(),
|
|
49
49
|
description: core.serialization.string().optional(),
|
|
50
50
|
externalUrl: core.serialization.string().optional(),
|
|
51
|
-
|
|
52
|
-
snoozedUntil: core.serialization.date().optional(),
|
|
53
|
-
assignee: core.serialization.string().optional(),
|
|
51
|
+
assignee: ScopedEntity_1.ScopedEntity.optional(),
|
|
54
52
|
references: core.serialization.list(ScopedEntity_1.ScopedEntity).optional(),
|
|
55
53
|
});
|
|
@@ -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
|
|
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.
|
|
1
|
+
export declare const SDK_VERSION = "1.2.28";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -3529,8 +3529,6 @@ await client.inbox.createOrUpdate({
|
|
|
3529
3529
|
"key": "value"
|
|
3530
3530
|
},
|
|
3531
3531
|
externalUrl: "todo.com",
|
|
3532
|
-
deadline: new Date("2026-12-31T23:59:59.000Z"),
|
|
3533
|
-
snoozedUntil: new Date("2026-12-25T23:59:59.000Z"),
|
|
3534
3532
|
references: [{
|
|
3535
3533
|
entityId: {
|
|
3536
3534
|
type: "CONVERSATION_MESSAGE",
|
|
@@ -3579,6 +3577,85 @@ await client.inbox.createOrUpdate({
|
|
|
3579
3577
|
</dl>
|
|
3580
3578
|
|
|
3581
3579
|
|
|
3580
|
+
</dd>
|
|
3581
|
+
</dl>
|
|
3582
|
+
</details>
|
|
3583
|
+
|
|
3584
|
+
<details><summary><code>client.inbox.<a href="/src/api/resources/inbox/client/Client.ts">patch</a>(inboxItemId, { ...params }) -> MavenAGI.InboxItem</code></summary>
|
|
3585
|
+
<dl>
|
|
3586
|
+
<dd>
|
|
3587
|
+
|
|
3588
|
+
#### 📝 Description
|
|
3589
|
+
|
|
3590
|
+
<dl>
|
|
3591
|
+
<dd>
|
|
3592
|
+
|
|
3593
|
+
<dl>
|
|
3594
|
+
<dd>
|
|
3595
|
+
|
|
3596
|
+
Update mutable inbox item fields. Only supported for custom inbox items.
|
|
3597
|
+
|
|
3598
|
+
The `appId` field can be provided to update a inbox item owned by a different app.
|
|
3599
|
+
All other fields will overwrite the existing value on the inbox item only if provided.
|
|
3600
|
+
</dd>
|
|
3601
|
+
</dl>
|
|
3602
|
+
</dd>
|
|
3603
|
+
</dl>
|
|
3604
|
+
|
|
3605
|
+
#### 🔌 Usage
|
|
3606
|
+
|
|
3607
|
+
<dl>
|
|
3608
|
+
<dd>
|
|
3609
|
+
|
|
3610
|
+
<dl>
|
|
3611
|
+
<dd>
|
|
3612
|
+
|
|
3613
|
+
```typescript
|
|
3614
|
+
await client.inbox.patch("custom-item-1", {
|
|
3615
|
+
status: "OPEN",
|
|
3616
|
+
metadata: {
|
|
3617
|
+
"key": "value"
|
|
3618
|
+
}
|
|
3619
|
+
});
|
|
3620
|
+
|
|
3621
|
+
```
|
|
3622
|
+
</dd>
|
|
3623
|
+
</dl>
|
|
3624
|
+
</dd>
|
|
3625
|
+
</dl>
|
|
3626
|
+
|
|
3627
|
+
#### ⚙️ Parameters
|
|
3628
|
+
|
|
3629
|
+
<dl>
|
|
3630
|
+
<dd>
|
|
3631
|
+
|
|
3632
|
+
<dl>
|
|
3633
|
+
<dd>
|
|
3634
|
+
|
|
3635
|
+
**inboxItemId:** `string` — The ID of the inbox item to patch
|
|
3636
|
+
|
|
3637
|
+
</dd>
|
|
3638
|
+
</dl>
|
|
3639
|
+
|
|
3640
|
+
<dl>
|
|
3641
|
+
<dd>
|
|
3642
|
+
|
|
3643
|
+
**request:** `MavenAGI.InboxItemPatchRequest`
|
|
3644
|
+
|
|
3645
|
+
</dd>
|
|
3646
|
+
</dl>
|
|
3647
|
+
|
|
3648
|
+
<dl>
|
|
3649
|
+
<dd>
|
|
3650
|
+
|
|
3651
|
+
**requestOptions:** `Inbox.RequestOptions`
|
|
3652
|
+
|
|
3653
|
+
</dd>
|
|
3654
|
+
</dl>
|
|
3655
|
+
</dd>
|
|
3656
|
+
</dl>
|
|
3657
|
+
|
|
3658
|
+
|
|
3582
3659
|
</dd>
|
|
3583
3660
|
</dl>
|
|
3584
3661
|
</details>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
import { EntityIdWithoutAgent } from "./EntityIdWithoutAgent";
|
|
5
|
+
export declare const BotLogicCharterDetail: core.serialization.ObjectSchema<serializers.BotLogicCharterDetail.Raw, MavenAGI.BotLogicCharterDetail>;
|
|
6
|
+
export declare namespace BotLogicCharterDetail {
|
|
7
|
+
interface Raw {
|
|
8
|
+
charterId: EntityIdWithoutAgent.Raw;
|
|
9
|
+
name: string;
|
|
10
|
+
segmentId?: EntityIdWithoutAgent.Raw | null;
|
|
11
|
+
parentId?: EntityIdWithoutAgent.Raw | null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -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.BotLogicCharterDetail = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core"));
|
|
39
|
+
const EntityIdWithoutAgent_1 = require("./EntityIdWithoutAgent");
|
|
40
|
+
exports.BotLogicCharterDetail = core.serialization.object({
|
|
41
|
+
charterId: EntityIdWithoutAgent_1.EntityIdWithoutAgent,
|
|
42
|
+
name: core.serialization.string(),
|
|
43
|
+
segmentId: EntityIdWithoutAgent_1.EntityIdWithoutAgent.optional(),
|
|
44
|
+
parentId: EntityIdWithoutAgent_1.EntityIdWithoutAgent.optional(),
|
|
45
|
+
});
|
|
@@ -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 { BotLogicCharterDetail } from "./BotLogicCharterDetail";
|
|
5
|
+
export declare const BotLogicChartersItem: core.serialization.ObjectSchema<serializers.BotLogicChartersItem.Raw, MavenAGI.BotLogicChartersItem>;
|
|
6
|
+
export declare namespace BotLogicChartersItem {
|
|
7
|
+
interface Raw {
|
|
8
|
+
matchedCharters: BotLogicCharterDetail.Raw[];
|
|
9
|
+
evaluationTruncated: boolean;
|
|
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.BotLogicChartersItem = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core"));
|
|
39
|
+
const BotLogicCharterDetail_1 = require("./BotLogicCharterDetail");
|
|
40
|
+
exports.BotLogicChartersItem = core.serialization.object({
|
|
41
|
+
matchedCharters: core.serialization.list(BotLogicCharterDetail_1.BotLogicCharterDetail),
|
|
42
|
+
evaluationTruncated: core.serialization.boolean(),
|
|
43
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
import { EntityIdWithoutAgent } from "./EntityIdWithoutAgent";
|
|
5
|
+
export declare const BotLogicIntelligentFieldDetail: core.serialization.ObjectSchema<serializers.BotLogicIntelligentFieldDetail.Raw, MavenAGI.BotLogicIntelligentFieldDetail>;
|
|
6
|
+
export declare namespace BotLogicIntelligentFieldDetail {
|
|
7
|
+
interface Raw {
|
|
8
|
+
fieldId: EntityIdWithoutAgent.Raw;
|
|
9
|
+
name: string;
|
|
10
|
+
value?: string | null;
|
|
11
|
+
confidence?: number | null;
|
|
12
|
+
rationale?: string | null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -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.BotLogicIntelligentFieldDetail = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core"));
|
|
39
|
+
const EntityIdWithoutAgent_1 = require("./EntityIdWithoutAgent");
|
|
40
|
+
exports.BotLogicIntelligentFieldDetail = core.serialization.object({
|
|
41
|
+
fieldId: EntityIdWithoutAgent_1.EntityIdWithoutAgent,
|
|
42
|
+
name: core.serialization.string(),
|
|
43
|
+
value: core.serialization.string().optional(),
|
|
44
|
+
confidence: core.serialization.number().optional(),
|
|
45
|
+
rationale: core.serialization.string().optional(),
|
|
46
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
import { BotLogicIntelligentFieldDetail } from "./BotLogicIntelligentFieldDetail";
|
|
5
|
+
export declare const BotLogicIntelligentFieldsItem: core.serialization.ObjectSchema<serializers.BotLogicIntelligentFieldsItem.Raw, MavenAGI.BotLogicIntelligentFieldsItem>;
|
|
6
|
+
export declare namespace BotLogicIntelligentFieldsItem {
|
|
7
|
+
interface Raw {
|
|
8
|
+
refreshedFields: BotLogicIntelligentFieldDetail.Raw[];
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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.BotLogicIntelligentFieldsItem = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core"));
|
|
39
|
+
const BotLogicIntelligentFieldDetail_1 = require("./BotLogicIntelligentFieldDetail");
|
|
40
|
+
exports.BotLogicIntelligentFieldsItem = core.serialization.object({
|
|
41
|
+
refreshedFields: core.serialization.list(BotLogicIntelligentFieldDetail_1.BotLogicIntelligentFieldDetail),
|
|
42
|
+
});
|
|
@@ -2,14 +2,16 @@ 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 { BotLogicActionItem } from "./BotLogicActionItem";
|
|
5
|
+
import { BotLogicChartersItem } from "./BotLogicChartersItem";
|
|
5
6
|
import { BotLogicFormSubmissionItem } from "./BotLogicFormSubmissionItem";
|
|
7
|
+
import { BotLogicIntelligentFieldsItem } from "./BotLogicIntelligentFieldsItem";
|
|
6
8
|
import { BotLogicKnowledgeItem } from "./BotLogicKnowledgeItem";
|
|
7
9
|
import { BotLogicSafetyItem } from "./BotLogicSafetyItem";
|
|
8
10
|
import { BotLogicSegmentsItem } from "./BotLogicSegmentsItem";
|
|
9
11
|
import { BotLogicUserItem } from "./BotLogicUserItem";
|
|
10
12
|
export declare const BotLogicItem: core.serialization.Schema<serializers.BotLogicItem.Raw, MavenAGI.BotLogicItem>;
|
|
11
13
|
export declare namespace BotLogicItem {
|
|
12
|
-
type Raw = BotLogicItem.Knowledge | BotLogicItem.Actions | BotLogicItem.Form | BotLogicItem.Safety | BotLogicItem.User | BotLogicItem.Segments;
|
|
14
|
+
type Raw = BotLogicItem.Knowledge | BotLogicItem.Actions | BotLogicItem.Form | BotLogicItem.Safety | BotLogicItem.User | BotLogicItem.Segments | BotLogicItem.IntelligentFields | BotLogicItem.Charters;
|
|
13
15
|
interface Knowledge extends BotLogicKnowledgeItem.Raw {
|
|
14
16
|
type: "knowledge";
|
|
15
17
|
}
|
|
@@ -28,4 +30,10 @@ export declare namespace BotLogicItem {
|
|
|
28
30
|
interface Segments extends BotLogicSegmentsItem.Raw {
|
|
29
31
|
type: "segments";
|
|
30
32
|
}
|
|
33
|
+
interface IntelligentFields extends BotLogicIntelligentFieldsItem.Raw {
|
|
34
|
+
type: "intelligentFields";
|
|
35
|
+
}
|
|
36
|
+
interface Charters extends BotLogicChartersItem.Raw {
|
|
37
|
+
type: "charters";
|
|
38
|
+
}
|
|
31
39
|
}
|
|
@@ -37,7 +37,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.BotLogicItem = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core"));
|
|
39
39
|
const BotLogicActionItem_1 = require("./BotLogicActionItem");
|
|
40
|
+
const BotLogicChartersItem_1 = require("./BotLogicChartersItem");
|
|
40
41
|
const BotLogicFormSubmissionItem_1 = require("./BotLogicFormSubmissionItem");
|
|
42
|
+
const BotLogicIntelligentFieldsItem_1 = require("./BotLogicIntelligentFieldsItem");
|
|
41
43
|
const BotLogicKnowledgeItem_1 = require("./BotLogicKnowledgeItem");
|
|
42
44
|
const BotLogicSafetyItem_1 = require("./BotLogicSafetyItem");
|
|
43
45
|
const BotLogicSegmentsItem_1 = require("./BotLogicSegmentsItem");
|
|
@@ -50,6 +52,8 @@ exports.BotLogicItem = core.serialization
|
|
|
50
52
|
safety: BotLogicSafetyItem_1.BotLogicSafetyItem,
|
|
51
53
|
user: BotLogicUserItem_1.BotLogicUserItem,
|
|
52
54
|
segments: BotLogicSegmentsItem_1.BotLogicSegmentsItem,
|
|
55
|
+
intelligentFields: BotLogicIntelligentFieldsItem_1.BotLogicIntelligentFieldsItem,
|
|
56
|
+
charters: BotLogicChartersItem_1.BotLogicChartersItem,
|
|
53
57
|
})
|
|
54
58
|
.transform({
|
|
55
59
|
transform: (value) => value,
|
|
@@ -10,9 +10,7 @@ export declare namespace InboxItemCustom {
|
|
|
10
10
|
title?: string | null;
|
|
11
11
|
description?: string | null;
|
|
12
12
|
externalUrl?: string | null;
|
|
13
|
-
|
|
14
|
-
snoozedUntil?: string | null;
|
|
15
|
-
assignee?: string | null;
|
|
13
|
+
assignee?: ScopedEntity.Raw | null;
|
|
16
14
|
references?: ScopedEntity.Raw[] | null;
|
|
17
15
|
}
|
|
18
16
|
}
|
|
@@ -44,9 +44,7 @@ exports.InboxItemCustom = core.serialization
|
|
|
44
44
|
title: core.serialization.string().optional(),
|
|
45
45
|
description: core.serialization.string().optional(),
|
|
46
46
|
externalUrl: core.serialization.string().optional(),
|
|
47
|
-
|
|
48
|
-
snoozedUntil: core.serialization.date().optional(),
|
|
49
|
-
assignee: core.serialization.string().optional(),
|
|
47
|
+
assignee: ScopedEntity_1.ScopedEntity.optional(),
|
|
50
48
|
references: core.serialization.list(ScopedEntity_1.ScopedEntity).optional(),
|
|
51
49
|
})
|
|
52
50
|
.extend(InboxItemBase_1.InboxItemBase);
|
|
@@ -6,6 +6,7 @@ export declare const IntelligentFieldValueResponse: core.serialization.ObjectSch
|
|
|
6
6
|
export declare namespace IntelligentFieldValueResponse {
|
|
7
7
|
interface Raw {
|
|
8
8
|
fieldId: EntityId.Raw;
|
|
9
|
+
name: string;
|
|
9
10
|
entityId: EntityId.Raw;
|
|
10
11
|
value?: unknown | null;
|
|
11
12
|
confidence?: number | null;
|
|
@@ -39,6 +39,7 @@ const core = __importStar(require("../../../../core"));
|
|
|
39
39
|
const EntityId_1 = require("./EntityId");
|
|
40
40
|
exports.IntelligentFieldValueResponse = core.serialization.object({
|
|
41
41
|
fieldId: EntityId_1.EntityId,
|
|
42
|
+
name: core.serialization.string(),
|
|
42
43
|
entityId: EntityId_1.EntityId,
|
|
43
44
|
value: core.serialization.unknown().optional(),
|
|
44
45
|
confidence: core.serialization.number().optional(),
|
|
@@ -30,7 +30,11 @@ export * from "./BotLogic";
|
|
|
30
30
|
export * from "./BotLogicActionExecutedDetail";
|
|
31
31
|
export * from "./BotLogicActionItem";
|
|
32
32
|
export * from "./BotLogicActionReviewedDetail";
|
|
33
|
+
export * from "./BotLogicCharterDetail";
|
|
34
|
+
export * from "./BotLogicChartersItem";
|
|
33
35
|
export * from "./BotLogicFormSubmissionItem";
|
|
36
|
+
export * from "./BotLogicIntelligentFieldDetail";
|
|
37
|
+
export * from "./BotLogicIntelligentFieldsItem";
|
|
34
38
|
export * from "./BotLogicItem";
|
|
35
39
|
export * from "./BotLogicKnowledgeDetail";
|
|
36
40
|
export * from "./BotLogicKnowledgeItem";
|
|
@@ -46,7 +46,11 @@ __exportStar(require("./BotLogic"), exports);
|
|
|
46
46
|
__exportStar(require("./BotLogicActionExecutedDetail"), exports);
|
|
47
47
|
__exportStar(require("./BotLogicActionItem"), exports);
|
|
48
48
|
__exportStar(require("./BotLogicActionReviewedDetail"), exports);
|
|
49
|
+
__exportStar(require("./BotLogicCharterDetail"), exports);
|
|
50
|
+
__exportStar(require("./BotLogicChartersItem"), exports);
|
|
49
51
|
__exportStar(require("./BotLogicFormSubmissionItem"), exports);
|
|
52
|
+
__exportStar(require("./BotLogicIntelligentFieldDetail"), exports);
|
|
53
|
+
__exportStar(require("./BotLogicIntelligentFieldsItem"), exports);
|
|
50
54
|
__exportStar(require("./BotLogicItem"), exports);
|
|
51
55
|
__exportStar(require("./BotLogicKnowledgeDetail"), exports);
|
|
52
56
|
__exportStar(require("./BotLogicKnowledgeItem"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../../../api/index";
|
|
2
|
+
import * as core from "../../../../../core";
|
|
3
|
+
import type * as serializers from "../../../../index";
|
|
4
|
+
import { InboxItemSeverity } from "../../../commons/types/InboxItemSeverity";
|
|
5
|
+
import { InboxItemStatus } from "../../../commons/types/InboxItemStatus";
|
|
6
|
+
export declare const InboxItemPatchRequest: core.serialization.Schema<serializers.InboxItemPatchRequest.Raw, MavenAGI.InboxItemPatchRequest>;
|
|
7
|
+
export declare namespace InboxItemPatchRequest {
|
|
8
|
+
interface Raw {
|
|
9
|
+
appId?: string | null;
|
|
10
|
+
status?: InboxItemStatus.Raw | null;
|
|
11
|
+
severity?: InboxItemSeverity.Raw | null;
|
|
12
|
+
metadata?: Record<string, string> | null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -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.InboxItemPatchRequest = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../../core"));
|
|
39
|
+
const InboxItemSeverity_1 = require("../../../commons/types/InboxItemSeverity");
|
|
40
|
+
const InboxItemStatus_1 = require("../../../commons/types/InboxItemStatus");
|
|
41
|
+
exports.InboxItemPatchRequest = core.serialization.object({
|
|
42
|
+
appId: core.serialization.string().optional(),
|
|
43
|
+
status: InboxItemStatus_1.InboxItemStatus.optional(),
|
|
44
|
+
severity: InboxItemSeverity_1.InboxItemSeverity.optional(),
|
|
45
|
+
metadata: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
|
|
46
|
+
});
|