mavenagi 1.2.63 → 1.2.64

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 (83) hide show
  1. package/BaseClient.js +2 -2
  2. package/api/resources/agents/client/requests/AgentPatchRequest.d.ts +13 -1
  3. package/api/resources/agents/types/Agent.d.ts +6 -0
  4. package/api/resources/agents/types/AgentPrompting.d.ts +2 -0
  5. package/api/resources/capabilities/client/Client.d.ts +35 -0
  6. package/api/resources/capabilities/client/Client.js +117 -0
  7. package/api/resources/capabilities/client/requests/CapabilitiesSearchRequest.d.ts +4 -1
  8. package/api/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.d.ts +36 -0
  9. package/api/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.js +3 -0
  10. package/api/resources/capabilities/client/requests/GetCapabilityByTypeRequest.d.ts +4 -1
  11. package/api/resources/capabilities/client/requests/index.d.ts +1 -0
  12. package/api/resources/capabilities/types/CapabilityExecution.d.ts +14 -0
  13. package/api/resources/capabilities/types/CapabilityExecution.js +3 -0
  14. package/api/resources/capabilities/types/CapabilityExecutionBase.d.ts +32 -0
  15. package/api/resources/capabilities/types/CapabilityExecutionBase.js +3 -0
  16. package/api/resources/capabilities/types/CapabilityExecutionCompletionReason.d.ts +36 -0
  17. package/api/resources/capabilities/types/CapabilityExecutionCompletionReason.js +39 -0
  18. package/api/resources/capabilities/types/CapabilityExecutionRetryability.d.ts +17 -0
  19. package/api/resources/capabilities/types/CapabilityExecutionRetryability.js +20 -0
  20. package/api/resources/capabilities/types/CapabilityExecutionStatus.d.ts +10 -0
  21. package/api/resources/capabilities/types/CapabilityExecutionStatus.js +13 -0
  22. package/api/resources/capabilities/types/CapabilityExecutionsSearchResponse.d.ts +62 -0
  23. package/api/resources/capabilities/types/CapabilityExecutionsSearchResponse.js +3 -0
  24. package/api/resources/capabilities/types/ConversationKickoffCapabilityExecution.d.ts +7 -0
  25. package/api/resources/capabilities/types/ConversationKickoffCapabilityExecution.js +3 -0
  26. package/api/resources/capabilities/types/TriggerCapabilityExecution.d.ts +19 -0
  27. package/api/resources/capabilities/types/TriggerCapabilityExecution.js +3 -0
  28. package/api/resources/capabilities/types/index.d.ts +8 -0
  29. package/api/resources/capabilities/types/index.js +8 -0
  30. package/api/resources/charters/client/Client.js +3 -1
  31. package/api/resources/charters/client/requests/CharterDeleteRequest.d.ts +6 -6
  32. package/api/resources/charters/client/requests/CharterGetAncestorsRequest.d.ts +12 -0
  33. package/api/resources/charters/client/requests/CharterGetRequest.d.ts +9 -1
  34. package/api/resources/charters/client/requests/CharterPatchRequest.d.ts +5 -6
  35. package/api/resources/charters/types/CharterBase.d.ts +4 -3
  36. package/api/resources/charters/types/CharterListChildrenRequest.d.ts +10 -0
  37. package/api/resources/charters/types/CharterSearchFilter.d.ts +9 -1
  38. package/api/resources/commons/types/BotLogicCharterDetail.d.ts +1 -1
  39. package/api/resources/commons/types/BotLogicSegmentsItem.d.ts +3 -0
  40. package/api/resources/commons/types/ConversationAnalysis.d.ts +1 -1
  41. package/api/resources/commons/types/ErrorReason.d.ts +3 -0
  42. package/api/resources/commons/types/ErrorReason.js +3 -0
  43. package/api/resources/conversation/client/Client.d.ts +6 -2
  44. package/api/resources/conversation/client/Client.js +6 -2
  45. package/api/resources/customers/types/CustomerFilter.d.ts +14 -1
  46. package/api/resources/intelligentFields/client/Client.d.ts +1 -1
  47. package/api/resources/intelligentFields/client/Client.js +1 -1
  48. package/api/resources/intelligentFields/client/requests/IntelligentFieldGetRequest.d.ts +9 -1
  49. package/api/resources/intelligentFields/types/IntelligentFieldValueSearchRequest.d.ts +5 -4
  50. package/package.json +1 -1
  51. package/reference.md +85 -2
  52. package/serialization/resources/agents/client/requests/AgentPatchRequest.d.ts +2 -0
  53. package/serialization/resources/agents/client/requests/AgentPatchRequest.js +2 -0
  54. package/serialization/resources/agents/types/Agent.d.ts +2 -0
  55. package/serialization/resources/agents/types/Agent.js +2 -0
  56. package/serialization/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.d.ts +16 -0
  57. package/serialization/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.js +50 -0
  58. package/serialization/resources/capabilities/client/requests/index.d.ts +1 -0
  59. package/serialization/resources/capabilities/client/requests/index.js +3 -1
  60. package/serialization/resources/capabilities/types/CapabilityExecution.d.ts +15 -0
  61. package/serialization/resources/capabilities/types/CapabilityExecution.js +49 -0
  62. package/serialization/resources/capabilities/types/CapabilityExecutionBase.d.ts +20 -0
  63. package/serialization/resources/capabilities/types/CapabilityExecutionBase.js +52 -0
  64. package/serialization/resources/capabilities/types/CapabilityExecutionCompletionReason.d.ts +7 -0
  65. package/serialization/resources/capabilities/types/CapabilityExecutionCompletionReason.js +50 -0
  66. package/serialization/resources/capabilities/types/CapabilityExecutionRetryability.d.ts +7 -0
  67. package/serialization/resources/capabilities/types/CapabilityExecutionRetryability.js +39 -0
  68. package/serialization/resources/capabilities/types/CapabilityExecutionStatus.d.ts +7 -0
  69. package/serialization/resources/capabilities/types/CapabilityExecutionStatus.js +39 -0
  70. package/serialization/resources/capabilities/types/CapabilityExecutionsSearchResponse.d.ts +11 -0
  71. package/serialization/resources/capabilities/types/CapabilityExecutionsSearchResponse.js +45 -0
  72. package/serialization/resources/capabilities/types/ConversationKickoffCapabilityExecution.d.ts +9 -0
  73. package/serialization/resources/capabilities/types/ConversationKickoffCapabilityExecution.js +40 -0
  74. package/serialization/resources/capabilities/types/TriggerCapabilityExecution.d.ts +15 -0
  75. package/serialization/resources/capabilities/types/TriggerCapabilityExecution.js +49 -0
  76. package/serialization/resources/capabilities/types/index.d.ts +8 -0
  77. package/serialization/resources/capabilities/types/index.js +8 -0
  78. package/serialization/resources/charters/types/CharterListChildrenRequest.d.ts +2 -0
  79. package/serialization/resources/charters/types/CharterListChildrenRequest.js +2 -0
  80. package/serialization/resources/commons/types/ErrorReason.d.ts +1 -1
  81. package/serialization/resources/commons/types/ErrorReason.js +1 -0
  82. package/version.d.ts +1 -1
  83. package/version.js +1 -1
@@ -0,0 +1,49 @@
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.CapabilityExecution = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const ConversationKickoffCapabilityExecution_1 = require("./ConversationKickoffCapabilityExecution");
40
+ const TriggerCapabilityExecution_1 = require("./TriggerCapabilityExecution");
41
+ exports.CapabilityExecution = core.serialization
42
+ .union("capabilityType", {
43
+ TRIGGER: TriggerCapabilityExecution_1.TriggerCapabilityExecution,
44
+ CONVERSATION_KICKOFF: ConversationKickoffCapabilityExecution_1.ConversationKickoffCapabilityExecution,
45
+ })
46
+ .transform({
47
+ transform: (value) => value,
48
+ untransform: (value) => value,
49
+ });
@@ -0,0 +1,20 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ import { EntityId } from "../../commons/types/EntityId";
5
+ import { CapabilityExecutionCompletionReason } from "./CapabilityExecutionCompletionReason";
6
+ import { CapabilityExecutionStatus } from "./CapabilityExecutionStatus";
7
+ export declare const CapabilityExecutionBase: core.serialization.ObjectSchema<serializers.CapabilityExecutionBase.Raw, MavenAGI.CapabilityExecutionBase>;
8
+ export declare namespace CapabilityExecutionBase {
9
+ interface Raw {
10
+ capabilityId: EntityId.Raw;
11
+ subjectId: EntityId.Raw;
12
+ status: CapabilityExecutionStatus.Raw;
13
+ completionReason?: CapabilityExecutionCompletionReason.Raw | null;
14
+ message?: string | null;
15
+ startedAt: string;
16
+ completedAt?: string | null;
17
+ durationMs?: number | null;
18
+ createdAt: string;
19
+ }
20
+ }
@@ -0,0 +1,52 @@
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.CapabilityExecutionBase = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const EntityId_1 = require("../../commons/types/EntityId");
40
+ const CapabilityExecutionCompletionReason_1 = require("./CapabilityExecutionCompletionReason");
41
+ const CapabilityExecutionStatus_1 = require("./CapabilityExecutionStatus");
42
+ exports.CapabilityExecutionBase = core.serialization.object({
43
+ capabilityId: EntityId_1.EntityId,
44
+ subjectId: EntityId_1.EntityId,
45
+ status: CapabilityExecutionStatus_1.CapabilityExecutionStatus,
46
+ completionReason: CapabilityExecutionCompletionReason_1.CapabilityExecutionCompletionReason.optional(),
47
+ message: core.serialization.string().optional(),
48
+ startedAt: core.serialization.date(),
49
+ completedAt: core.serialization.date().optional(),
50
+ durationMs: core.serialization.number().optional(),
51
+ createdAt: core.serialization.date(),
52
+ });
@@ -0,0 +1,7 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ export declare const CapabilityExecutionCompletionReason: core.serialization.Schema<serializers.CapabilityExecutionCompletionReason.Raw, MavenAGI.CapabilityExecutionCompletionReason>;
5
+ export declare namespace CapabilityExecutionCompletionReason {
6
+ type Raw = "SUCCESS" | "DISPATCH_ERROR" | "RATE_LIMITED" | "TIMEOUT" | "HANDLER_ERROR" | "NO_HANDLER" | "FORBIDDEN" | "OUTCOME_UNKNOWN" | "APP_RETRYABLE" | "APP_REJECTED";
7
+ }
@@ -0,0 +1,50 @@
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.CapabilityExecutionCompletionReason = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ exports.CapabilityExecutionCompletionReason = core.serialization.forwardCompatibleEnum_([
40
+ "SUCCESS",
41
+ "DISPATCH_ERROR",
42
+ "RATE_LIMITED",
43
+ "TIMEOUT",
44
+ "HANDLER_ERROR",
45
+ "NO_HANDLER",
46
+ "FORBIDDEN",
47
+ "OUTCOME_UNKNOWN",
48
+ "APP_RETRYABLE",
49
+ "APP_REJECTED",
50
+ ]);
@@ -0,0 +1,7 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ export declare const CapabilityExecutionRetryability: core.serialization.Schema<serializers.CapabilityExecutionRetryability.Raw, MavenAGI.CapabilityExecutionRetryability>;
5
+ export declare namespace CapabilityExecutionRetryability {
6
+ type Raw = "RETRYABLE" | "UNSAFE" | "PERMANENT";
7
+ }
@@ -0,0 +1,39 @@
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.CapabilityExecutionRetryability = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ exports.CapabilityExecutionRetryability = core.serialization.forwardCompatibleEnum_(["RETRYABLE", "UNSAFE", "PERMANENT"]);
@@ -0,0 +1,7 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ export declare const CapabilityExecutionStatus: core.serialization.Schema<serializers.CapabilityExecutionStatus.Raw, MavenAGI.CapabilityExecutionStatus>;
5
+ export declare namespace CapabilityExecutionStatus {
6
+ type Raw = "RUNNING" | "SUCCESS" | "FAILED";
7
+ }
@@ -0,0 +1,39 @@
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.CapabilityExecutionStatus = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ exports.CapabilityExecutionStatus = core.serialization.forwardCompatibleEnum_(["RUNNING", "SUCCESS", "FAILED"]);
@@ -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 { Page } from "../../commons/types/Page";
5
+ import { CapabilityExecution } from "./CapabilityExecution";
6
+ export declare const CapabilityExecutionsSearchResponse: core.serialization.ObjectSchema<serializers.CapabilityExecutionsSearchResponse.Raw, MavenAGI.CapabilityExecutionsSearchResponse>;
7
+ export declare namespace CapabilityExecutionsSearchResponse {
8
+ interface Raw extends Page.Raw {
9
+ executions: CapabilityExecution.Raw[];
10
+ }
11
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.CapabilityExecutionsSearchResponse = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const Page_1 = require("../../commons/types/Page");
40
+ const CapabilityExecution_1 = require("./CapabilityExecution");
41
+ exports.CapabilityExecutionsSearchResponse = core.serialization
42
+ .object({
43
+ executions: core.serialization.list(CapabilityExecution_1.CapabilityExecution),
44
+ })
45
+ .extend(Page_1.Page);
@@ -0,0 +1,9 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ import { CapabilityExecutionBase } from "./CapabilityExecutionBase";
5
+ export declare const ConversationKickoffCapabilityExecution: core.serialization.ObjectSchema<serializers.ConversationKickoffCapabilityExecution.Raw, MavenAGI.ConversationKickoffCapabilityExecution>;
6
+ export declare namespace ConversationKickoffCapabilityExecution {
7
+ interface Raw extends CapabilityExecutionBase.Raw {
8
+ }
9
+ }
@@ -0,0 +1,40 @@
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.ConversationKickoffCapabilityExecution = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const CapabilityExecutionBase_1 = require("./CapabilityExecutionBase");
40
+ exports.ConversationKickoffCapabilityExecution = core.serialization.object({}).extend(CapabilityExecutionBase_1.CapabilityExecutionBase);
@@ -0,0 +1,15 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ import { EventTriggerType } from "../../commons/types/EventTriggerType";
5
+ import { CapabilityExecutionBase } from "./CapabilityExecutionBase";
6
+ import { CapabilityExecutionRetryability } from "./CapabilityExecutionRetryability";
7
+ export declare const TriggerCapabilityExecution: core.serialization.ObjectSchema<serializers.TriggerCapabilityExecution.Raw, MavenAGI.TriggerCapabilityExecution>;
8
+ export declare namespace TriggerCapabilityExecution {
9
+ interface Raw extends CapabilityExecutionBase.Raw {
10
+ eventType: EventTriggerType.Raw;
11
+ attempt: number;
12
+ retryability?: CapabilityExecutionRetryability.Raw | null;
13
+ httpStatus?: number | null;
14
+ }
15
+ }
@@ -0,0 +1,49 @@
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.TriggerCapabilityExecution = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const EventTriggerType_1 = require("../../commons/types/EventTriggerType");
40
+ const CapabilityExecutionBase_1 = require("./CapabilityExecutionBase");
41
+ const CapabilityExecutionRetryability_1 = require("./CapabilityExecutionRetryability");
42
+ exports.TriggerCapabilityExecution = core.serialization
43
+ .object({
44
+ eventType: EventTriggerType_1.EventTriggerType,
45
+ attempt: core.serialization.number(),
46
+ retryability: CapabilityExecutionRetryability_1.CapabilityExecutionRetryability.optional(),
47
+ httpStatus: core.serialization.number().optional(),
48
+ })
49
+ .extend(CapabilityExecutionBase_1.CapabilityExecutionBase);
@@ -1,4 +1,12 @@
1
1
  export * from "./CapabilitiesSearchResponse";
2
+ export * from "./CapabilityExecution";
3
+ export * from "./CapabilityExecutionBase";
4
+ export * from "./CapabilityExecutionCompletionReason";
5
+ export * from "./CapabilityExecutionRetryability";
6
+ export * from "./CapabilityExecutionStatus";
7
+ export * from "./CapabilityExecutionsSearchResponse";
2
8
  export * from "./CapabilityResponse";
3
9
  export * from "./CapabilitySortField";
4
10
  export * from "./CapabilitySummary";
11
+ export * from "./ConversationKickoffCapabilityExecution";
12
+ export * from "./TriggerCapabilityExecution";
@@ -15,6 +15,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./CapabilitiesSearchResponse"), exports);
18
+ __exportStar(require("./CapabilityExecution"), exports);
19
+ __exportStar(require("./CapabilityExecutionBase"), exports);
20
+ __exportStar(require("./CapabilityExecutionCompletionReason"), exports);
21
+ __exportStar(require("./CapabilityExecutionRetryability"), exports);
22
+ __exportStar(require("./CapabilityExecutionStatus"), exports);
23
+ __exportStar(require("./CapabilityExecutionsSearchResponse"), exports);
18
24
  __exportStar(require("./CapabilityResponse"), exports);
19
25
  __exportStar(require("./CapabilitySortField"), exports);
20
26
  __exportStar(require("./CapabilitySummary"), exports);
27
+ __exportStar(require("./ConversationKickoffCapabilityExecution"), exports);
28
+ __exportStar(require("./TriggerCapabilityExecution"), exports);
@@ -3,9 +3,11 @@ import * as core from "../../../../core";
3
3
  import type * as serializers from "../../../index";
4
4
  import { BaseCappedPaginatedRequest } from "../../commons/types/BaseCappedPaginatedRequest";
5
5
  import { EntityId } from "../../commons/types/EntityId";
6
+ import { EntityIdWithoutAgent } from "../../commons/types/EntityIdWithoutAgent";
6
7
  export declare const CharterListChildrenRequest: core.serialization.ObjectSchema<serializers.CharterListChildrenRequest.Raw, MavenAGI.CharterListChildrenRequest>;
7
8
  export declare namespace CharterListChildrenRequest {
8
9
  interface Raw extends BaseCappedPaginatedRequest.Raw {
9
10
  parentIds: EntityId.Raw[];
11
+ variantId?: EntityIdWithoutAgent.Raw | null;
10
12
  }
11
13
  }
@@ -38,8 +38,10 @@ exports.CharterListChildrenRequest = void 0;
38
38
  const core = __importStar(require("../../../../core"));
39
39
  const BaseCappedPaginatedRequest_1 = require("../../commons/types/BaseCappedPaginatedRequest");
40
40
  const EntityId_1 = require("../../commons/types/EntityId");
41
+ const EntityIdWithoutAgent_1 = require("../../commons/types/EntityIdWithoutAgent");
41
42
  exports.CharterListChildrenRequest = core.serialization
42
43
  .object({
43
44
  parentIds: core.serialization.list(EntityId_1.EntityId),
45
+ variantId: EntityIdWithoutAgent_1.EntityIdWithoutAgent.optional(),
44
46
  })
45
47
  .extend(BaseCappedPaginatedRequest_1.BaseCappedPaginatedRequest);
@@ -3,5 +3,5 @@ import * as core from "../../../../core";
3
3
  import type * as serializers from "../../../index";
4
4
  export declare const ErrorReason: core.serialization.Schema<serializers.ErrorReason.Raw, MavenAGI.ErrorReason>;
5
5
  export declare namespace ErrorReason {
6
- type Raw = "VARIANT_LIVE" | "VARIANT_NOT_ACTIVE" | "STALE_TRAFFIC_REVISION" | "STALE_WORKING_SET" | "NOTHING_TO_COMMIT" | "VARIANT_ALREADY_EXISTS" | "CANNOT_ARCHIVE_LIVE_VARIANT" | "VARIANT_HAS_STAGED_EDITS" | "VARIANT_REQUIRED" | "INTELLIGENT_FIELD_TYPE_CHANGED";
6
+ type Raw = "VARIANT_LIVE" | "VARIANT_NOT_ACTIVE" | "STALE_TRAFFIC_REVISION" | "STALE_WORKING_SET" | "NOTHING_TO_COMMIT" | "VARIANT_ALREADY_EXISTS" | "CANNOT_ARCHIVE_LIVE_VARIANT" | "VARIANT_HAS_STAGED_EDITS" | "VARIANT_REQUIRED" | "INTELLIGENT_FIELD_TYPE_CHANGED" | "WORKING_SET_HAS_UNVERSIONED_EDITS";
7
7
  }
@@ -47,4 +47,5 @@ exports.ErrorReason = core.serialization.forwardCompatibleEnum_([
47
47
  "VARIANT_HAS_STAGED_EDITS",
48
48
  "VARIANT_REQUIRED",
49
49
  "INTELLIGENT_FIELD_TYPE_CHANGED",
50
+ "WORKING_SET_HAS_UNVERSIONED_EDITS",
50
51
  ]);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.2.63";
1
+ export declare const SDK_VERSION = "1.2.64";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.2.63";
4
+ exports.SDK_VERSION = "1.2.64";