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.
Files changed (102) hide show
  1. package/Client.js +2 -2
  2. package/api/resources/assets/types/CommitAssetUploadRequest.d.ts +1 -1
  3. package/api/resources/commons/types/ActionBase.d.ts +1 -1
  4. package/api/resources/commons/types/BotLogicCharterDetail.d.ts +14 -0
  5. package/api/resources/commons/types/BotLogicCharterDetail.js +3 -0
  6. package/api/resources/commons/types/BotLogicChartersItem.d.ts +10 -0
  7. package/api/resources/commons/types/BotLogicChartersItem.js +3 -0
  8. package/api/resources/commons/types/BotLogicIntelligentFieldDetail.d.ts +8 -0
  9. package/api/resources/commons/types/BotLogicIntelligentFieldDetail.js +3 -0
  10. package/api/resources/commons/types/BotLogicIntelligentFieldsItem.d.ts +4 -0
  11. package/api/resources/commons/types/BotLogicIntelligentFieldsItem.js +3 -0
  12. package/api/resources/commons/types/BotLogicItem.d.ts +7 -1
  13. package/api/resources/commons/types/InboxItemCustom.d.ts +1 -5
  14. package/api/resources/commons/types/IntelligentFieldValueResponse.d.ts +3 -0
  15. package/api/resources/commons/types/index.d.ts +4 -0
  16. package/api/resources/commons/types/index.js +4 -0
  17. package/api/resources/inbox/client/Client.d.ts +24 -2
  18. package/api/resources/inbox/client/Client.js +104 -2
  19. package/api/resources/inbox/client/requests/InboxItemPatchRequest.d.ts +20 -0
  20. package/api/resources/inbox/client/requests/InboxItemPatchRequest.js +3 -0
  21. package/api/resources/inbox/client/requests/index.d.ts +1 -0
  22. package/api/resources/inbox/types/InboxItemCreateRequest.d.ts +2 -8
  23. package/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +6 -1
  24. package/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +2 -2
  25. package/dist/Client.js +2 -2
  26. package/dist/api/resources/assets/types/CommitAssetUploadRequest.d.ts +1 -1
  27. package/dist/api/resources/commons/types/ActionBase.d.ts +1 -1
  28. package/dist/api/resources/commons/types/BotLogicCharterDetail.d.ts +14 -0
  29. package/dist/api/resources/commons/types/BotLogicCharterDetail.js +3 -0
  30. package/dist/api/resources/commons/types/BotLogicChartersItem.d.ts +10 -0
  31. package/dist/api/resources/commons/types/BotLogicChartersItem.js +3 -0
  32. package/dist/api/resources/commons/types/BotLogicIntelligentFieldDetail.d.ts +8 -0
  33. package/dist/api/resources/commons/types/BotLogicIntelligentFieldDetail.js +3 -0
  34. package/dist/api/resources/commons/types/BotLogicIntelligentFieldsItem.d.ts +4 -0
  35. package/dist/api/resources/commons/types/BotLogicIntelligentFieldsItem.js +3 -0
  36. package/dist/api/resources/commons/types/BotLogicItem.d.ts +7 -1
  37. package/dist/api/resources/commons/types/InboxItemCustom.d.ts +1 -5
  38. package/dist/api/resources/commons/types/IntelligentFieldValueResponse.d.ts +3 -0
  39. package/dist/api/resources/commons/types/index.d.ts +4 -0
  40. package/dist/api/resources/commons/types/index.js +4 -0
  41. package/dist/api/resources/inbox/client/Client.d.ts +24 -2
  42. package/dist/api/resources/inbox/client/Client.js +104 -2
  43. package/dist/api/resources/inbox/client/requests/InboxItemPatchRequest.d.ts +20 -0
  44. package/dist/api/resources/inbox/client/requests/InboxItemPatchRequest.js +3 -0
  45. package/dist/api/resources/inbox/client/requests/index.d.ts +1 -0
  46. package/dist/api/resources/inbox/types/InboxItemCreateRequest.d.ts +2 -8
  47. package/dist/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +6 -1
  48. package/dist/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +2 -2
  49. package/dist/serialization/resources/commons/types/BotLogicCharterDetail.d.ts +13 -0
  50. package/dist/serialization/resources/commons/types/BotLogicCharterDetail.js +45 -0
  51. package/dist/serialization/resources/commons/types/BotLogicChartersItem.d.ts +11 -0
  52. package/dist/serialization/resources/commons/types/BotLogicChartersItem.js +43 -0
  53. package/dist/serialization/resources/commons/types/BotLogicIntelligentFieldDetail.d.ts +14 -0
  54. package/dist/serialization/resources/commons/types/BotLogicIntelligentFieldDetail.js +46 -0
  55. package/dist/serialization/resources/commons/types/BotLogicIntelligentFieldsItem.d.ts +10 -0
  56. package/dist/serialization/resources/commons/types/BotLogicIntelligentFieldsItem.js +42 -0
  57. package/dist/serialization/resources/commons/types/BotLogicItem.d.ts +9 -1
  58. package/dist/serialization/resources/commons/types/BotLogicItem.js +4 -0
  59. package/dist/serialization/resources/commons/types/InboxItemCustom.d.ts +1 -3
  60. package/dist/serialization/resources/commons/types/InboxItemCustom.js +1 -3
  61. package/dist/serialization/resources/commons/types/IntelligentFieldValueResponse.d.ts +1 -0
  62. package/dist/serialization/resources/commons/types/IntelligentFieldValueResponse.js +1 -0
  63. package/dist/serialization/resources/commons/types/index.d.ts +4 -0
  64. package/dist/serialization/resources/commons/types/index.js +4 -0
  65. package/dist/serialization/resources/inbox/client/requests/InboxItemPatchRequest.d.ts +14 -0
  66. package/dist/serialization/resources/inbox/client/requests/InboxItemPatchRequest.js +46 -0
  67. package/dist/serialization/resources/inbox/client/requests/index.d.ts +1 -0
  68. package/dist/serialization/resources/inbox/client/requests/index.js +3 -1
  69. package/dist/serialization/resources/inbox/types/InboxItemCreateRequest.d.ts +2 -4
  70. package/dist/serialization/resources/inbox/types/InboxItemCreateRequest.js +2 -4
  71. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +1 -1
  72. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +1 -1
  73. package/dist/version.d.ts +1 -1
  74. package/dist/version.js +1 -1
  75. package/package.json +1 -1
  76. package/reference.md +79 -2
  77. package/serialization/resources/commons/types/BotLogicCharterDetail.d.ts +13 -0
  78. package/serialization/resources/commons/types/BotLogicCharterDetail.js +45 -0
  79. package/serialization/resources/commons/types/BotLogicChartersItem.d.ts +11 -0
  80. package/serialization/resources/commons/types/BotLogicChartersItem.js +43 -0
  81. package/serialization/resources/commons/types/BotLogicIntelligentFieldDetail.d.ts +14 -0
  82. package/serialization/resources/commons/types/BotLogicIntelligentFieldDetail.js +46 -0
  83. package/serialization/resources/commons/types/BotLogicIntelligentFieldsItem.d.ts +10 -0
  84. package/serialization/resources/commons/types/BotLogicIntelligentFieldsItem.js +42 -0
  85. package/serialization/resources/commons/types/BotLogicItem.d.ts +9 -1
  86. package/serialization/resources/commons/types/BotLogicItem.js +4 -0
  87. package/serialization/resources/commons/types/InboxItemCustom.d.ts +1 -3
  88. package/serialization/resources/commons/types/InboxItemCustom.js +1 -3
  89. package/serialization/resources/commons/types/IntelligentFieldValueResponse.d.ts +1 -0
  90. package/serialization/resources/commons/types/IntelligentFieldValueResponse.js +1 -0
  91. package/serialization/resources/commons/types/index.d.ts +4 -0
  92. package/serialization/resources/commons/types/index.js +4 -0
  93. package/serialization/resources/inbox/client/requests/InboxItemPatchRequest.d.ts +14 -0
  94. package/serialization/resources/inbox/client/requests/InboxItemPatchRequest.js +46 -0
  95. package/serialization/resources/inbox/client/requests/index.d.ts +1 -0
  96. package/serialization/resources/inbox/client/requests/index.js +3 -1
  97. package/serialization/resources/inbox/types/InboxItemCreateRequest.d.ts +2 -4
  98. package/serialization/resources/inbox/types/InboxItemCreateRequest.js +2 -4
  99. package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +1 -1
  100. package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +1 -1
  101. package/version.d.ts +1 -1
  102. package/version.js +1 -1
@@ -48,8 +48,6 @@ export declare class Inbox {
48
48
  * "key": "value"
49
49
  * },
50
50
  * externalUrl: "todo.com",
51
- * deadline: new Date("2026-12-31T23:59:59.000Z"),
52
- * snoozedUntil: new Date("2026-12-25T23:59:59.000Z"),
53
51
  * references: [{
54
52
  * entityId: {
55
53
  * type: "CONVERSATION_MESSAGE",
@@ -70,6 +68,30 @@ export declare class Inbox {
70
68
  */
71
69
  createOrUpdate(request: MavenAGI.InboxItemCreateRequest, requestOptions?: Inbox.RequestOptions): core.HttpResponsePromise<MavenAGI.InboxItem>;
72
70
  private __createOrUpdate;
71
+ /**
72
+ * Update mutable inbox item fields. Only supported for custom inbox items.
73
+ *
74
+ * The `appId` field can be provided to update a inbox item owned by a different app.
75
+ * All other fields will overwrite the existing value on the inbox item only if provided.
76
+ *
77
+ * @param {string} inboxItemId - The ID of the inbox item to patch
78
+ * @param {MavenAGI.InboxItemPatchRequest} request
79
+ * @param {Inbox.RequestOptions} requestOptions - Request-specific configuration.
80
+ *
81
+ * @throws {@link MavenAGI.NotFoundError}
82
+ * @throws {@link MavenAGI.BadRequestError}
83
+ * @throws {@link MavenAGI.ServerError}
84
+ *
85
+ * @example
86
+ * await client.inbox.patch("custom-item-1", {
87
+ * status: "OPEN",
88
+ * metadata: {
89
+ * "key": "value"
90
+ * }
91
+ * })
92
+ */
93
+ patch(inboxItemId: string, request?: MavenAGI.InboxItemPatchRequest, requestOptions?: Inbox.RequestOptions): core.HttpResponsePromise<MavenAGI.InboxItem>;
94
+ private __patch;
73
95
  /**
74
96
  * Update inbox item tag fields. All tags provided will overwrite the existing tags on the inbox item.
75
97
  *
@@ -172,8 +172,6 @@ class Inbox {
172
172
  * "key": "value"
173
173
  * },
174
174
  * externalUrl: "todo.com",
175
- * deadline: new Date("2026-12-31T23:59:59.000Z"),
176
- * snoozedUntil: new Date("2026-12-25T23:59:59.000Z"),
177
175
  * references: [{
178
176
  * entityId: {
179
177
  * type: "CONVERSATION_MESSAGE",
@@ -274,6 +272,110 @@ class Inbox {
274
272
  }
275
273
  });
276
274
  }
275
+ /**
276
+ * Update mutable inbox item fields. Only supported for custom inbox items.
277
+ *
278
+ * The `appId` field can be provided to update a inbox item owned by a different app.
279
+ * All other fields will overwrite the existing value on the inbox item only if provided.
280
+ *
281
+ * @param {string} inboxItemId - The ID of the inbox item to patch
282
+ * @param {MavenAGI.InboxItemPatchRequest} request
283
+ * @param {Inbox.RequestOptions} requestOptions - Request-specific configuration.
284
+ *
285
+ * @throws {@link MavenAGI.NotFoundError}
286
+ * @throws {@link MavenAGI.BadRequestError}
287
+ * @throws {@link MavenAGI.ServerError}
288
+ *
289
+ * @example
290
+ * await client.inbox.patch("custom-item-1", {
291
+ * status: "OPEN",
292
+ * metadata: {
293
+ * "key": "value"
294
+ * }
295
+ * })
296
+ */
297
+ patch(inboxItemId, request = {}, requestOptions) {
298
+ return core.HttpResponsePromise.fromPromise(this.__patch(inboxItemId, request, requestOptions));
299
+ }
300
+ __patch(inboxItemId_1) {
301
+ return __awaiter(this, arguments, void 0, function* (inboxItemId, request = {}, requestOptions) {
302
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
303
+ const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
304
+ Authorization: yield this._getAuthorizationHeader(),
305
+ "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,
306
+ "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,
307
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
308
+ const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
309
+ 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/inbox/${core.url.encodePathParam(inboxItemId)}`),
310
+ method: "PATCH",
311
+ headers: _headers,
312
+ contentType: "application/json",
313
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
314
+ requestType: "json",
315
+ body: serializers.InboxItemPatchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
316
+ 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,
317
+ 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,
318
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
319
+ });
320
+ if (_response.ok) {
321
+ return {
322
+ data: serializers.InboxItem.parseOrThrow(_response.body, {
323
+ unrecognizedObjectKeys: "passthrough",
324
+ allowUnrecognizedUnionMembers: true,
325
+ allowUnrecognizedEnumValues: true,
326
+ breadcrumbsPrefix: ["response"],
327
+ }),
328
+ rawResponse: _response.rawResponse,
329
+ };
330
+ }
331
+ if (_response.error.reason === "status-code") {
332
+ switch (_response.error.statusCode) {
333
+ case 404:
334
+ throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
335
+ unrecognizedObjectKeys: "passthrough",
336
+ allowUnrecognizedUnionMembers: true,
337
+ allowUnrecognizedEnumValues: true,
338
+ breadcrumbsPrefix: ["response"],
339
+ }), _response.rawResponse);
340
+ case 400:
341
+ throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
342
+ unrecognizedObjectKeys: "passthrough",
343
+ allowUnrecognizedUnionMembers: true,
344
+ allowUnrecognizedEnumValues: true,
345
+ breadcrumbsPrefix: ["response"],
346
+ }), _response.rawResponse);
347
+ case 500:
348
+ throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
349
+ unrecognizedObjectKeys: "passthrough",
350
+ allowUnrecognizedUnionMembers: true,
351
+ allowUnrecognizedEnumValues: true,
352
+ breadcrumbsPrefix: ["response"],
353
+ }), _response.rawResponse);
354
+ default:
355
+ throw new errors.MavenAGIError({
356
+ statusCode: _response.error.statusCode,
357
+ body: _response.error.body,
358
+ rawResponse: _response.rawResponse,
359
+ });
360
+ }
361
+ }
362
+ switch (_response.error.reason) {
363
+ case "non-json":
364
+ throw new errors.MavenAGIError({
365
+ statusCode: _response.error.statusCode,
366
+ body: _response.error.rawBody,
367
+ rawResponse: _response.rawResponse,
368
+ });
369
+ case "timeout":
370
+ throw new errors.MavenAGITimeoutError("Timeout exceeded when calling PATCH /v1/inbox/{inboxItemId}.");
371
+ case "unknown":
372
+ throw new errors.MavenAGIError({
373
+ message: _response.error.errorMessage,
374
+ rawResponse: _response.rawResponse,
375
+ });
376
+ }
377
+ });
378
+ }
277
379
  /**
278
380
  * Update inbox item tag fields. All tags provided will overwrite the existing tags on the inbox item.
279
381
  *
@@ -0,0 +1,20 @@
1
+ import type * as MavenAGI from "../../../../index";
2
+ /**
3
+ * @example
4
+ * {
5
+ * status: "OPEN",
6
+ * metadata: {
7
+ * "key": "value"
8
+ * }
9
+ * }
10
+ */
11
+ export interface InboxItemPatchRequest {
12
+ /** The App ID of the inbox item to patch. If not provided the ID of the calling app will be used. */
13
+ appId?: string;
14
+ /** Status of the inbox item. */
15
+ status?: MavenAGI.InboxItemStatus;
16
+ /** Severity of the inbox item. */
17
+ severity?: MavenAGI.InboxItemSeverity;
18
+ /** Additional metadata associated with the inbox item. */
19
+ metadata?: Record<string, string>;
20
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,5 @@
1
1
  export type { InboxItemApplyTagsRequest } from "./InboxItemApplyTagsRequest";
2
2
  export type { InboxItemFixRequest } from "./InboxItemFixRequest";
3
3
  export type { InboxItemIgnoreRequest } from "./InboxItemIgnoreRequest";
4
+ export type { InboxItemPatchRequest } from "./InboxItemPatchRequest";
4
5
  export type { InboxItemRequest } from "./InboxItemRequest";
@@ -13,8 +13,6 @@ import type * as MavenAGI from "../../../index";
13
13
  * "key": "value"
14
14
  * },
15
15
  * externalUrl: "todo.com",
16
- * deadline: new Date("2026-12-31T23:59:59.000Z"),
17
- * snoozedUntil: new Date("2026-12-25T23:59:59.000Z"),
18
16
  * references: [{
19
17
  * entityId: {
20
18
  * type: MavenAGI.EntityType.ConversationMessage,
@@ -43,17 +41,13 @@ export interface InboxItemCreateRequest {
43
41
  /** Additional metadata associated with the inbox item. */
44
42
  metadata: Record<string, string>;
45
43
  /** Title of the inbox item. */
46
- title?: string;
44
+ title: string;
47
45
  /** Description of the inbox item. */
48
46
  description?: string;
49
47
  /** An optional URL that can be associated with the inbox item. */
50
48
  externalUrl?: string;
51
- /** An optional deadline for the inbox item. */
52
- deadline?: Date;
53
- /** An optional timestamp until which the inbox item is snoozed. */
54
- snoozedUntil?: Date;
55
49
  /** An optional assignee for the inbox item. */
56
- assignee?: string;
50
+ assignee?: MavenAGI.ScopedEntity;
57
51
  /** An optional list of references to other entities that are related to this inbox item. */
58
52
  references?: MavenAGI.ScopedEntity[];
59
53
  }
@@ -27,7 +27,12 @@ export interface KnowledgeDocumentRequest extends MavenAGI.BaseKnowledgeDocument
27
27
  contentType: MavenAGI.KnowledgeDocumentContentType;
28
28
  /** The title of the document. Will be shown as part of answers. */
29
29
  title: string;
30
- /** (Currently in BETA. Use at your own risk, and may not work in some circumstances) ID of the asset associated with this document. This asset will be transformed into text and set as the content of the document. The following types are supported: `application/pdf`, `text/plain`. Either this or content is required, but not both. */
30
+ /**
31
+ * (Beta: under development, endpoint may change.)
32
+ * ID of the asset associated with this document. This asset will be transformed into
33
+ * text and set as the content of the document. Supported MIME types are those accepted by `initiateUpload`.
34
+ * Either this or content is required, but not both. The asset must have a checksum provided at commit time (see `commitUpload`).
35
+ */
31
36
  assetId?: MavenAGI.EntityIdWithoutAgent;
32
37
  /** The content of the document. Not shown directly to users. May be provided in HTML or markdown. HTML will be converted to markdown automatically. Images are not currently supported and will be ignored. Either this or assetId is required, but not both */
33
38
  content?: string;
@@ -53,8 +53,8 @@ import type * as MavenAGI from "../../../index";
53
53
  export interface KnowledgeDocumentResponse extends MavenAGI.KnowledgeDocumentSearchResponse {
54
54
  /** The current processing status of the knowledge document */
55
55
  processingStatus?: MavenAGI.KnowledgeDocumentStatus;
56
- /** The content of the document in markdown format. Not shown directly to users. */
57
- content: string;
56
+ /** The content of the document in markdown format. Not shown directly to users. May be absent for asset-backed documents that have not yet been processed. */
57
+ content?: string;
58
58
  /** If the document is associated with an asset, this will contain the asset metadata */
59
59
  asset?: MavenAGI.AttachmentResponse;
60
60
  /** Metadata for the knowledge document. */
@@ -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
- deadline?: string | null;
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
- deadline: core.serialization.date().optional(),
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
+ }