mavenagi 1.2.24 → 1.2.26
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/commons/types/InboxItemCustom.d.ts +14 -0
- package/api/resources/commons/types/UserEventName.d.ts +3 -0
- package/api/resources/commons/types/UserEventName.js +3 -0
- package/api/resources/inbox/client/Client.d.ts +45 -0
- package/api/resources/inbox/client/Client.js +125 -0
- package/api/resources/inbox/types/InboxItemCreateRequest.d.ts +59 -0
- package/api/resources/inbox/types/InboxItemCreateRequest.js +3 -0
- package/api/resources/inbox/types/index.d.ts +1 -0
- package/api/resources/inbox/types/index.js +1 -0
- package/api/resources/knowledge/client/Client.d.ts +19 -0
- package/api/resources/knowledge/client/Client.js +93 -0
- package/api/resources/knowledge/types/CancelKnowledgeBaseVersionRequest.d.ts +5 -0
- package/api/resources/knowledge/types/CancelKnowledgeBaseVersionRequest.js +3 -0
- package/api/resources/knowledge/types/index.d.ts +1 -0
- package/api/resources/knowledge/types/index.js +1 -0
- package/api/resources/triggers/types/EventTriggerBase.d.ts +2 -0
- package/api/resources/voice/client/Client.d.ts +2 -2
- package/api/resources/voice/client/Client.js +2 -2
- package/api/resources/voice/types/VoiceSessionTokenRequest.d.ts +8 -1
- package/dist/Client.js +2 -2
- package/dist/api/resources/commons/types/InboxItemCustom.d.ts +14 -0
- package/dist/api/resources/commons/types/UserEventName.d.ts +3 -0
- package/dist/api/resources/commons/types/UserEventName.js +3 -0
- package/dist/api/resources/inbox/client/Client.d.ts +45 -0
- package/dist/api/resources/inbox/client/Client.js +125 -0
- package/dist/api/resources/inbox/types/InboxItemCreateRequest.d.ts +59 -0
- package/dist/api/resources/inbox/types/InboxItemCreateRequest.js +3 -0
- package/dist/api/resources/inbox/types/index.d.ts +1 -0
- package/dist/api/resources/inbox/types/index.js +1 -0
- package/dist/api/resources/knowledge/client/Client.d.ts +19 -0
- package/dist/api/resources/knowledge/client/Client.js +93 -0
- package/dist/api/resources/knowledge/types/CancelKnowledgeBaseVersionRequest.d.ts +5 -0
- package/dist/api/resources/knowledge/types/CancelKnowledgeBaseVersionRequest.js +3 -0
- package/dist/api/resources/knowledge/types/index.d.ts +1 -0
- package/dist/api/resources/knowledge/types/index.js +1 -0
- package/dist/api/resources/triggers/types/EventTriggerBase.d.ts +2 -0
- package/dist/api/resources/voice/client/Client.d.ts +2 -2
- package/dist/api/resources/voice/client/Client.js +2 -2
- package/dist/api/resources/voice/types/VoiceSessionTokenRequest.d.ts +8 -1
- package/dist/serialization/resources/commons/types/InboxItemCustom.d.ts +8 -0
- package/dist/serialization/resources/commons/types/InboxItemCustom.js +8 -0
- package/dist/serialization/resources/commons/types/UserEventName.d.ts +1 -1
- package/dist/serialization/resources/commons/types/UserEventName.js +8 -1
- package/dist/serialization/resources/inbox/types/InboxItemCreateRequest.d.ts +23 -0
- package/dist/serialization/resources/inbox/types/InboxItemCreateRequest.js +55 -0
- package/dist/serialization/resources/inbox/types/index.d.ts +1 -0
- package/dist/serialization/resources/inbox/types/index.js +1 -0
- package/dist/serialization/resources/knowledge/types/CancelKnowledgeBaseVersionRequest.d.ts +10 -0
- package/dist/serialization/resources/knowledge/types/CancelKnowledgeBaseVersionRequest.js +42 -0
- package/dist/serialization/resources/knowledge/types/index.d.ts +1 -0
- package/dist/serialization/resources/knowledge/types/index.js +1 -0
- package/dist/serialization/resources/triggers/types/EventTriggerBase.d.ts +1 -0
- package/dist/serialization/resources/triggers/types/EventTriggerBase.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +169 -2
- package/serialization/resources/commons/types/InboxItemCustom.d.ts +8 -0
- package/serialization/resources/commons/types/InboxItemCustom.js +8 -0
- package/serialization/resources/commons/types/UserEventName.d.ts +1 -1
- package/serialization/resources/commons/types/UserEventName.js +8 -1
- package/serialization/resources/inbox/types/InboxItemCreateRequest.d.ts +23 -0
- package/serialization/resources/inbox/types/InboxItemCreateRequest.js +55 -0
- package/serialization/resources/inbox/types/index.d.ts +1 -0
- package/serialization/resources/inbox/types/index.js +1 -0
- package/serialization/resources/knowledge/types/CancelKnowledgeBaseVersionRequest.d.ts +10 -0
- package/serialization/resources/knowledge/types/CancelKnowledgeBaseVersionRequest.js +42 -0
- package/serialization/resources/knowledge/types/index.d.ts +1 -0
- package/serialization/resources/knowledge/types/index.js +1 -0
- package/serialization/resources/triggers/types/EventTriggerBase.d.ts +1 -0
- package/serialization/resources/triggers/types/EventTriggerBase.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -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.CancelKnowledgeBaseVersionRequest = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core"));
|
|
39
|
+
const EntityIdWithoutAgent_1 = require("../../commons/types/EntityIdWithoutAgent");
|
|
40
|
+
exports.CancelKnowledgeBaseVersionRequest = core.serialization.object({
|
|
41
|
+
versionId: EntityIdWithoutAgent_1.EntityIdWithoutAgent.optional(),
|
|
42
|
+
});
|
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./BaseKnowledgeDocument"), exports);
|
|
18
|
+
__exportStar(require("./CancelKnowledgeBaseVersionRequest"), exports);
|
|
18
19
|
__exportStar(require("./FinalizeKnowledgeBaseVersionRequest"), exports);
|
|
19
20
|
__exportStar(require("./KnowledgeBaseField"), exports);
|
|
20
21
|
__exportStar(require("./KnowledgeBaseFilter"), exports);
|
|
@@ -5,6 +5,7 @@ import { EventTriggerType } from "../../commons/types/EventTriggerType";
|
|
|
5
5
|
export declare const EventTriggerBase: core.serialization.ObjectSchema<serializers.EventTriggerBase.Raw, MavenAGI.EventTriggerBase>;
|
|
6
6
|
export declare namespace EventTriggerBase {
|
|
7
7
|
interface Raw {
|
|
8
|
+
name?: string | null;
|
|
8
9
|
description: string;
|
|
9
10
|
type: EventTriggerType.Raw;
|
|
10
11
|
}
|
|
@@ -38,6 +38,7 @@ exports.EventTriggerBase = void 0;
|
|
|
38
38
|
const core = __importStar(require("../../../../core"));
|
|
39
39
|
const EventTriggerType_1 = require("../../commons/types/EventTriggerType");
|
|
40
40
|
exports.EventTriggerBase = core.serialization.object({
|
|
41
|
+
name: core.serialization.string().optional(),
|
|
41
42
|
description: core.serialization.string(),
|
|
42
43
|
type: EventTriggerType_1.EventTriggerType,
|
|
43
44
|
});
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.2.
|
|
1
|
+
export declare const SDK_VERSION = "1.2.26";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -3486,6 +3486,99 @@ await client.inbox.search({});
|
|
|
3486
3486
|
</dl>
|
|
3487
3487
|
|
|
3488
3488
|
|
|
3489
|
+
</dd>
|
|
3490
|
+
</dl>
|
|
3491
|
+
</details>
|
|
3492
|
+
|
|
3493
|
+
<details><summary><code>client.inbox.<a href="/src/api/resources/inbox/client/Client.ts">createOrUpdate</a>({ ...params }) -> MavenAGI.InboxItem</code></summary>
|
|
3494
|
+
<dl>
|
|
3495
|
+
<dd>
|
|
3496
|
+
|
|
3497
|
+
#### 📝 Description
|
|
3498
|
+
|
|
3499
|
+
<dl>
|
|
3500
|
+
<dd>
|
|
3501
|
+
|
|
3502
|
+
<dl>
|
|
3503
|
+
<dd>
|
|
3504
|
+
|
|
3505
|
+
Update an inbox item or create it if it doesn't exist.
|
|
3506
|
+
</dd>
|
|
3507
|
+
</dl>
|
|
3508
|
+
</dd>
|
|
3509
|
+
</dl>
|
|
3510
|
+
|
|
3511
|
+
#### 🔌 Usage
|
|
3512
|
+
|
|
3513
|
+
<dl>
|
|
3514
|
+
<dd>
|
|
3515
|
+
|
|
3516
|
+
<dl>
|
|
3517
|
+
<dd>
|
|
3518
|
+
|
|
3519
|
+
```typescript
|
|
3520
|
+
await client.inbox.createOrUpdate({
|
|
3521
|
+
inboxItemId: {
|
|
3522
|
+
referenceId: "todo-item-1"
|
|
3523
|
+
},
|
|
3524
|
+
status: "OPEN",
|
|
3525
|
+
severity: "HIGH",
|
|
3526
|
+
title: "Todo Item",
|
|
3527
|
+
description: "This is the first todo item.",
|
|
3528
|
+
metadata: {
|
|
3529
|
+
"key": "value"
|
|
3530
|
+
},
|
|
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
|
+
references: [{
|
|
3535
|
+
entityId: {
|
|
3536
|
+
type: "CONVERSATION_MESSAGE",
|
|
3537
|
+
appId: "app1",
|
|
3538
|
+
referenceId: "msgRef1201",
|
|
3539
|
+
organizationId: "acme",
|
|
3540
|
+
agentId: "support"
|
|
3541
|
+
},
|
|
3542
|
+
scopeEntityId: {
|
|
3543
|
+
type: "CONVERSATION",
|
|
3544
|
+
appId: "app1",
|
|
3545
|
+
referenceId: "ref1200",
|
|
3546
|
+
organizationId: "acme",
|
|
3547
|
+
agentId: "support"
|
|
3548
|
+
}
|
|
3549
|
+
}]
|
|
3550
|
+
});
|
|
3551
|
+
|
|
3552
|
+
```
|
|
3553
|
+
</dd>
|
|
3554
|
+
</dl>
|
|
3555
|
+
</dd>
|
|
3556
|
+
</dl>
|
|
3557
|
+
|
|
3558
|
+
#### ⚙️ Parameters
|
|
3559
|
+
|
|
3560
|
+
<dl>
|
|
3561
|
+
<dd>
|
|
3562
|
+
|
|
3563
|
+
<dl>
|
|
3564
|
+
<dd>
|
|
3565
|
+
|
|
3566
|
+
**request:** `MavenAGI.InboxItemCreateRequest`
|
|
3567
|
+
|
|
3568
|
+
</dd>
|
|
3569
|
+
</dl>
|
|
3570
|
+
|
|
3571
|
+
<dl>
|
|
3572
|
+
<dd>
|
|
3573
|
+
|
|
3574
|
+
**requestOptions:** `Inbox.RequestOptions`
|
|
3575
|
+
|
|
3576
|
+
</dd>
|
|
3577
|
+
</dl>
|
|
3578
|
+
</dd>
|
|
3579
|
+
</dl>
|
|
3580
|
+
|
|
3581
|
+
|
|
3489
3582
|
</dd>
|
|
3490
3583
|
</dl>
|
|
3491
3584
|
</details>
|
|
@@ -4211,6 +4304,80 @@ await client.knowledge.refreshKnowledgeBase("help-center", {
|
|
|
4211
4304
|
</dl>
|
|
4212
4305
|
|
|
4213
4306
|
|
|
4307
|
+
</dd>
|
|
4308
|
+
</dl>
|
|
4309
|
+
</details>
|
|
4310
|
+
|
|
4311
|
+
<details><summary><code>client.knowledge.<a href="/src/api/resources/knowledge/client/Client.ts">cancelKnowledgeBaseVersion</a>(knowledgeBaseReferenceId, { ...params }) -> void</code></summary>
|
|
4312
|
+
<dl>
|
|
4313
|
+
<dd>
|
|
4314
|
+
|
|
4315
|
+
#### 📝 Description
|
|
4316
|
+
|
|
4317
|
+
<dl>
|
|
4318
|
+
<dd>
|
|
4319
|
+
|
|
4320
|
+
<dl>
|
|
4321
|
+
<dd>
|
|
4322
|
+
|
|
4323
|
+
in-progress knowledge base version.
|
|
4324
|
+
|
|
4325
|
+
If the knowledge base has a version that is currently being ingested,
|
|
4326
|
+
this will cancel the ingestion workflow and set the version status to FAILED.
|
|
4327
|
+
</dd>
|
|
4328
|
+
</dl>
|
|
4329
|
+
</dd>
|
|
4330
|
+
</dl>
|
|
4331
|
+
|
|
4332
|
+
#### 🔌 Usage
|
|
4333
|
+
|
|
4334
|
+
<dl>
|
|
4335
|
+
<dd>
|
|
4336
|
+
|
|
4337
|
+
<dl>
|
|
4338
|
+
<dd>
|
|
4339
|
+
|
|
4340
|
+
```typescript
|
|
4341
|
+
await client.knowledge.cancelKnowledgeBaseVersion("knowledgeBaseReferenceId", {});
|
|
4342
|
+
|
|
4343
|
+
```
|
|
4344
|
+
</dd>
|
|
4345
|
+
</dl>
|
|
4346
|
+
</dd>
|
|
4347
|
+
</dl>
|
|
4348
|
+
|
|
4349
|
+
#### ⚙️ Parameters
|
|
4350
|
+
|
|
4351
|
+
<dl>
|
|
4352
|
+
<dd>
|
|
4353
|
+
|
|
4354
|
+
<dl>
|
|
4355
|
+
<dd>
|
|
4356
|
+
|
|
4357
|
+
**knowledgeBaseReferenceId:** `string` — The reference ID of the knowledge base to cancel ingestion for. All other entity ID fields are inferred from the request.
|
|
4358
|
+
|
|
4359
|
+
</dd>
|
|
4360
|
+
</dl>
|
|
4361
|
+
|
|
4362
|
+
<dl>
|
|
4363
|
+
<dd>
|
|
4364
|
+
|
|
4365
|
+
**request:** `MavenAGI.CancelKnowledgeBaseVersionRequest`
|
|
4366
|
+
|
|
4367
|
+
</dd>
|
|
4368
|
+
</dl>
|
|
4369
|
+
|
|
4370
|
+
<dl>
|
|
4371
|
+
<dd>
|
|
4372
|
+
|
|
4373
|
+
**requestOptions:** `Knowledge.RequestOptions`
|
|
4374
|
+
|
|
4375
|
+
</dd>
|
|
4376
|
+
</dl>
|
|
4377
|
+
</dd>
|
|
4378
|
+
</dl>
|
|
4379
|
+
|
|
4380
|
+
|
|
4214
4381
|
</dd>
|
|
4215
4382
|
</dl>
|
|
4216
4383
|
</details>
|
|
@@ -6496,7 +6663,7 @@ Creates a short-lived session token for authenticating voice connections.
|
|
|
6496
6663
|
|
|
6497
6664
|
Supports two token types:
|
|
6498
6665
|
- **webrtc**: A Twilio-compatible access token for browser-based WebRTC calls
|
|
6499
|
-
- **websocket**: An
|
|
6666
|
+
- **websocket**: An ES256 JWT for direct WebSocket connections to /v1/voice/conversations
|
|
6500
6667
|
|
|
6501
6668
|
Session tokens are required before establishing any voice connection.
|
|
6502
6669
|
</dd>
|
|
@@ -6514,7 +6681,7 @@ Session tokens are required before establishing any voice connection.
|
|
|
6514
6681
|
|
|
6515
6682
|
```typescript
|
|
6516
6683
|
await client.voice.sessionToken({
|
|
6517
|
-
appUserId: "
|
|
6684
|
+
appUserId: "x",
|
|
6518
6685
|
type: "webrtc"
|
|
6519
6686
|
});
|
|
6520
6687
|
|
|
@@ -2,9 +2,17 @@ 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 { InboxItemBase } from "./InboxItemBase";
|
|
5
|
+
import { ScopedEntity } from "./ScopedEntity";
|
|
5
6
|
export declare const InboxItemCustom: core.serialization.ObjectSchema<serializers.InboxItemCustom.Raw, MavenAGI.InboxItemCustom>;
|
|
6
7
|
export declare namespace InboxItemCustom {
|
|
7
8
|
interface Raw extends InboxItemBase.Raw {
|
|
8
9
|
metadata: Record<string, string>;
|
|
10
|
+
title?: string | null;
|
|
11
|
+
description?: string | null;
|
|
12
|
+
externalUrl?: string | null;
|
|
13
|
+
deadline?: string | null;
|
|
14
|
+
snoozedUntil?: string | null;
|
|
15
|
+
assignee?: string | null;
|
|
16
|
+
references?: ScopedEntity.Raw[] | null;
|
|
9
17
|
}
|
|
10
18
|
}
|
|
@@ -37,8 +37,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.InboxItemCustom = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core"));
|
|
39
39
|
const InboxItemBase_1 = require("./InboxItemBase");
|
|
40
|
+
const ScopedEntity_1 = require("./ScopedEntity");
|
|
40
41
|
exports.InboxItemCustom = core.serialization
|
|
41
42
|
.object({
|
|
42
43
|
metadata: core.serialization.record(core.serialization.string(), core.serialization.string()),
|
|
44
|
+
title: core.serialization.string().optional(),
|
|
45
|
+
description: core.serialization.string().optional(),
|
|
46
|
+
externalUrl: core.serialization.string().optional(),
|
|
47
|
+
deadline: core.serialization.date().optional(),
|
|
48
|
+
snoozedUntil: core.serialization.date().optional(),
|
|
49
|
+
assignee: core.serialization.string().optional(),
|
|
50
|
+
references: core.serialization.list(ScopedEntity_1.ScopedEntity).optional(),
|
|
43
51
|
})
|
|
44
52
|
.extend(InboxItemBase_1.InboxItemBase);
|
|
@@ -3,5 +3,5 @@ import * as core from "../../../../core";
|
|
|
3
3
|
import type * as serializers from "../../../index";
|
|
4
4
|
export declare const UserEventName: core.serialization.Schema<serializers.UserEventName.Raw, MavenAGI.UserEventName>;
|
|
5
5
|
export declare namespace UserEventName {
|
|
6
|
-
type Raw = "BUTTON_CLICKED" | "LINK_CLICKED" | "CHAT_OPENED" | "CHAT_CLOSED" | "TEXT_INSERTED";
|
|
6
|
+
type Raw = "BUTTON_CLICKED" | "LINK_CLICKED" | "CHAT_OPENED" | "CHAT_CLOSED" | "TEXT_INSERTED" | "CSAT_SUBMITTED";
|
|
7
7
|
}
|
|
@@ -36,4 +36,11 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.UserEventName = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core"));
|
|
39
|
-
exports.UserEventName = core.serialization.enum_([
|
|
39
|
+
exports.UserEventName = core.serialization.enum_([
|
|
40
|
+
"BUTTON_CLICKED",
|
|
41
|
+
"LINK_CLICKED",
|
|
42
|
+
"CHAT_OPENED",
|
|
43
|
+
"CHAT_CLOSED",
|
|
44
|
+
"TEXT_INSERTED",
|
|
45
|
+
"CSAT_SUBMITTED",
|
|
46
|
+
]);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
import { EntityIdBase } from "../../commons/types/EntityIdBase";
|
|
5
|
+
import { InboxItemSeverity } from "../../commons/types/InboxItemSeverity";
|
|
6
|
+
import { InboxItemStatus } from "../../commons/types/InboxItemStatus";
|
|
7
|
+
import { ScopedEntity } from "../../commons/types/ScopedEntity";
|
|
8
|
+
export declare const InboxItemCreateRequest: core.serialization.ObjectSchema<serializers.InboxItemCreateRequest.Raw, MavenAGI.InboxItemCreateRequest>;
|
|
9
|
+
export declare namespace InboxItemCreateRequest {
|
|
10
|
+
interface Raw {
|
|
11
|
+
inboxItemId: EntityIdBase.Raw;
|
|
12
|
+
status: InboxItemStatus.Raw;
|
|
13
|
+
severity: InboxItemSeverity.Raw;
|
|
14
|
+
metadata: Record<string, string>;
|
|
15
|
+
title?: string | null;
|
|
16
|
+
description?: string | null;
|
|
17
|
+
externalUrl?: string | null;
|
|
18
|
+
deadline?: string | null;
|
|
19
|
+
snoozedUntil?: string | null;
|
|
20
|
+
assignee?: string | null;
|
|
21
|
+
references?: ScopedEntity.Raw[] | null;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
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.InboxItemCreateRequest = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core"));
|
|
39
|
+
const EntityIdBase_1 = require("../../commons/types/EntityIdBase");
|
|
40
|
+
const InboxItemSeverity_1 = require("../../commons/types/InboxItemSeverity");
|
|
41
|
+
const InboxItemStatus_1 = require("../../commons/types/InboxItemStatus");
|
|
42
|
+
const ScopedEntity_1 = require("../../commons/types/ScopedEntity");
|
|
43
|
+
exports.InboxItemCreateRequest = core.serialization.object({
|
|
44
|
+
inboxItemId: EntityIdBase_1.EntityIdBase,
|
|
45
|
+
status: InboxItemStatus_1.InboxItemStatus,
|
|
46
|
+
severity: InboxItemSeverity_1.InboxItemSeverity,
|
|
47
|
+
metadata: core.serialization.record(core.serialization.string(), core.serialization.string()),
|
|
48
|
+
title: core.serialization.string().optional(),
|
|
49
|
+
description: core.serialization.string().optional(),
|
|
50
|
+
externalUrl: core.serialization.string().optional(),
|
|
51
|
+
deadline: core.serialization.date().optional(),
|
|
52
|
+
snoozedUntil: core.serialization.date().optional(),
|
|
53
|
+
assignee: core.serialization.string().optional(),
|
|
54
|
+
references: core.serialization.list(ScopedEntity_1.ScopedEntity).optional(),
|
|
55
|
+
});
|
|
@@ -17,5 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./AddDocumentFixRequest"), exports);
|
|
18
18
|
__exportStar(require("./ApplyFixesRequest"), exports);
|
|
19
19
|
__exportStar(require("./InboxFilter"), exports);
|
|
20
|
+
__exportStar(require("./InboxItemCreateRequest"), exports);
|
|
20
21
|
__exportStar(require("./InboxSearchRequest"), exports);
|
|
21
22
|
__exportStar(require("./InboxSearchResponse"), exports);
|
|
@@ -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 { EntityIdWithoutAgent } from "../../commons/types/EntityIdWithoutAgent";
|
|
5
|
+
export declare const CancelKnowledgeBaseVersionRequest: core.serialization.ObjectSchema<serializers.CancelKnowledgeBaseVersionRequest.Raw, MavenAGI.CancelKnowledgeBaseVersionRequest>;
|
|
6
|
+
export declare namespace CancelKnowledgeBaseVersionRequest {
|
|
7
|
+
interface Raw {
|
|
8
|
+
versionId?: EntityIdWithoutAgent.Raw | null;
|
|
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.CancelKnowledgeBaseVersionRequest = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core"));
|
|
39
|
+
const EntityIdWithoutAgent_1 = require("../../commons/types/EntityIdWithoutAgent");
|
|
40
|
+
exports.CancelKnowledgeBaseVersionRequest = core.serialization.object({
|
|
41
|
+
versionId: EntityIdWithoutAgent_1.EntityIdWithoutAgent.optional(),
|
|
42
|
+
});
|
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./BaseKnowledgeDocument"), exports);
|
|
18
|
+
__exportStar(require("./CancelKnowledgeBaseVersionRequest"), exports);
|
|
18
19
|
__exportStar(require("./FinalizeKnowledgeBaseVersionRequest"), exports);
|
|
19
20
|
__exportStar(require("./KnowledgeBaseField"), exports);
|
|
20
21
|
__exportStar(require("./KnowledgeBaseFilter"), exports);
|
|
@@ -5,6 +5,7 @@ import { EventTriggerType } from "../../commons/types/EventTriggerType";
|
|
|
5
5
|
export declare const EventTriggerBase: core.serialization.ObjectSchema<serializers.EventTriggerBase.Raw, MavenAGI.EventTriggerBase>;
|
|
6
6
|
export declare namespace EventTriggerBase {
|
|
7
7
|
interface Raw {
|
|
8
|
+
name?: string | null;
|
|
8
9
|
description: string;
|
|
9
10
|
type: EventTriggerType.Raw;
|
|
10
11
|
}
|
|
@@ -38,6 +38,7 @@ exports.EventTriggerBase = void 0;
|
|
|
38
38
|
const core = __importStar(require("../../../../core"));
|
|
39
39
|
const EventTriggerType_1 = require("../../commons/types/EventTriggerType");
|
|
40
40
|
exports.EventTriggerBase = core.serialization.object({
|
|
41
|
+
name: core.serialization.string().optional(),
|
|
41
42
|
description: core.serialization.string(),
|
|
42
43
|
type: EventTriggerType_1.EventTriggerType,
|
|
43
44
|
});
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.2.
|
|
1
|
+
export declare const SDK_VERSION = "1.2.26";
|
package/version.js
CHANGED