mavenagi 1.2.70 → 1.2.71

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 (103) hide show
  1. package/BaseClient.js +2 -2
  2. package/api/resources/commons/types/AbsoluteTimeWindow.d.ts +5 -2
  3. package/api/resources/commons/types/ActionEffects.d.ts +18 -0
  4. package/api/resources/commons/types/ActionEffects.js +3 -0
  5. package/api/resources/commons/types/AllUsersConversationAudience.d.ts +1 -0
  6. package/api/resources/commons/types/AllUsersConversationAudience.js +3 -0
  7. package/api/resources/commons/types/ChangeAuthor.d.ts +18 -0
  8. package/api/resources/commons/types/ChangeAuthor.js +3 -0
  9. package/api/resources/commons/types/ConversationAudience.d.ts +19 -0
  10. package/api/resources/commons/types/ConversationAudience.js +3 -0
  11. package/api/resources/commons/types/ConversationAudienceResponse.d.ts +16 -0
  12. package/api/resources/commons/types/ConversationAudienceResponse.js +3 -0
  13. package/api/resources/commons/types/ConversationResponse.d.ts +8 -0
  14. package/api/resources/commons/types/ConversationSetupFields.d.ts +21 -0
  15. package/api/resources/commons/types/ConversationSetupFields.js +3 -0
  16. package/api/resources/commons/types/CrossOrganizationLevelEntityId.d.ts +7 -0
  17. package/api/resources/commons/types/CrossOrganizationLevelEntityId.js +3 -0
  18. package/api/resources/commons/types/InitializeConversationResponse.d.ts +3 -0
  19. package/api/resources/commons/types/LeveledEntityId.d.ts +28 -0
  20. package/api/resources/commons/types/LeveledEntityId.js +3 -0
  21. package/api/resources/commons/types/OrganizationLevelEntityId.d.ts +9 -0
  22. package/api/resources/commons/types/OrganizationLevelEntityId.js +3 -0
  23. package/api/resources/commons/types/SimulationActionBehavior.d.ts +1 -1
  24. package/api/resources/commons/types/SimulationContext.d.ts +1 -24
  25. package/api/resources/commons/types/SimulationFixedResponse.d.ts +14 -0
  26. package/api/resources/commons/types/SimulationFixedResponse.js +3 -0
  27. package/api/resources/commons/types/SimulationSetupFields.d.ts +29 -0
  28. package/api/resources/commons/types/SimulationSetupFields.js +3 -0
  29. package/api/resources/commons/types/TimePrecondition.d.ts +1 -0
  30. package/api/resources/commons/types/UserDataEffect.d.ts +10 -0
  31. package/api/resources/commons/types/UserDataEffect.js +3 -0
  32. package/api/resources/commons/types/UserDataPatch.d.ts +10 -0
  33. package/api/resources/commons/types/UserDataPatch.js +3 -0
  34. package/api/resources/commons/types/UsersConversationAudience.d.ts +8 -0
  35. package/api/resources/commons/types/UsersConversationAudience.js +3 -0
  36. package/api/resources/commons/types/UsersConversationAudienceResponse.d.ts +9 -0
  37. package/api/resources/commons/types/UsersConversationAudienceResponse.js +3 -0
  38. package/api/resources/commons/types/index.d.ts +15 -0
  39. package/api/resources/commons/types/index.js +15 -0
  40. package/api/resources/conversation/client/Client.d.ts +34 -1
  41. package/api/resources/conversation/client/Client.js +34 -1
  42. package/api/resources/conversation/types/AskRequest.d.ts +4 -1
  43. package/api/resources/conversation/types/ConversationRequest.d.ts +26 -16
  44. package/api/resources/conversation/types/DeliverMessageResponse.d.ts +5 -0
  45. package/api/resources/conversation/types/DeliverUserMessageRequest.d.ts +20 -0
  46. package/api/resources/intelligentFields/types/IntelligentFieldResponse.d.ts +4 -0
  47. package/api/resources/knowledge/types/KnowledgeBaseType.d.ts +2 -0
  48. package/api/resources/knowledge/types/KnowledgeBaseType.js +2 -0
  49. package/api/resources/knowledge/types/KnowledgeBaseVersionRequest.d.ts +2 -0
  50. package/package.json +1 -1
  51. package/reference.md +12 -1
  52. package/serialization/resources/commons/types/AbsoluteTimeWindow.d.ts +1 -0
  53. package/serialization/resources/commons/types/AbsoluteTimeWindow.js +1 -0
  54. package/serialization/resources/commons/types/ActionEffects.d.ts +11 -0
  55. package/serialization/resources/commons/types/ActionEffects.js +45 -0
  56. package/serialization/resources/commons/types/AllUsersConversationAudience.d.ts +7 -0
  57. package/serialization/resources/commons/types/AllUsersConversationAudience.js +39 -0
  58. package/serialization/resources/commons/types/ChangeAuthor.d.ts +12 -0
  59. package/serialization/resources/commons/types/ChangeAuthor.js +44 -0
  60. package/serialization/resources/commons/types/ConversationAudience.d.ts +15 -0
  61. package/serialization/resources/commons/types/ConversationAudience.js +49 -0
  62. package/serialization/resources/commons/types/ConversationAudienceResponse.d.ts +15 -0
  63. package/serialization/resources/commons/types/ConversationAudienceResponse.js +49 -0
  64. package/serialization/resources/commons/types/ConversationResponse.d.ts +2 -0
  65. package/serialization/resources/commons/types/ConversationResponse.js +2 -0
  66. package/serialization/resources/commons/types/ConversationSetupFields.d.ts +12 -0
  67. package/serialization/resources/commons/types/ConversationSetupFields.js +44 -0
  68. package/serialization/resources/commons/types/CrossOrganizationLevelEntityId.d.ts +9 -0
  69. package/serialization/resources/commons/types/CrossOrganizationLevelEntityId.js +40 -0
  70. package/serialization/resources/commons/types/LeveledEntityId.d.ts +19 -0
  71. package/serialization/resources/commons/types/LeveledEntityId.js +51 -0
  72. package/serialization/resources/commons/types/OrganizationLevelEntityId.d.ts +10 -0
  73. package/serialization/resources/commons/types/OrganizationLevelEntityId.js +44 -0
  74. package/serialization/resources/commons/types/SimulationActionBehavior.d.ts +2 -2
  75. package/serialization/resources/commons/types/SimulationActionBehavior.js +2 -2
  76. package/serialization/resources/commons/types/SimulationContext.d.ts +2 -6
  77. package/serialization/resources/commons/types/SimulationContext.js +5 -7
  78. package/serialization/resources/commons/types/SimulationFixedResponse.d.ts +11 -0
  79. package/serialization/resources/commons/types/SimulationFixedResponse.js +45 -0
  80. package/serialization/resources/commons/types/SimulationSetupFields.d.ts +13 -0
  81. package/serialization/resources/commons/types/SimulationSetupFields.js +45 -0
  82. package/serialization/resources/commons/types/UserDataEffect.d.ts +11 -0
  83. package/serialization/resources/commons/types/UserDataEffect.js +43 -0
  84. package/serialization/resources/commons/types/UserDataPatch.d.ts +11 -0
  85. package/serialization/resources/commons/types/UserDataPatch.js +43 -0
  86. package/serialization/resources/commons/types/UsersConversationAudience.d.ts +10 -0
  87. package/serialization/resources/commons/types/UsersConversationAudience.js +42 -0
  88. package/serialization/resources/commons/types/UsersConversationAudienceResponse.d.ts +10 -0
  89. package/serialization/resources/commons/types/UsersConversationAudienceResponse.js +42 -0
  90. package/serialization/resources/commons/types/index.d.ts +15 -0
  91. package/serialization/resources/commons/types/index.js +15 -0
  92. package/serialization/resources/conversation/types/ConversationRequest.d.ts +4 -5
  93. package/serialization/resources/conversation/types/ConversationRequest.js +7 -6
  94. package/serialization/resources/conversation/types/DeliverMessageResponse.d.ts +2 -0
  95. package/serialization/resources/conversation/types/DeliverMessageResponse.js +2 -0
  96. package/serialization/resources/conversation/types/DeliverUserMessageRequest.d.ts +1 -0
  97. package/serialization/resources/conversation/types/DeliverUserMessageRequest.js +1 -0
  98. package/serialization/resources/intelligentFields/types/IntelligentFieldResponse.d.ts +3 -0
  99. package/serialization/resources/intelligentFields/types/IntelligentFieldResponse.js +3 -0
  100. package/serialization/resources/knowledge/types/KnowledgeBaseVersionRequest.d.ts +2 -0
  101. package/serialization/resources/knowledge/types/KnowledgeBaseVersionRequest.js +2 -0
  102. package/version.d.ts +1 -1
  103. package/version.js +1 -1
@@ -0,0 +1,12 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ import { ResponseConfig } from "./ResponseConfig";
5
+ export declare const ConversationSetupFields: core.serialization.ObjectSchema<serializers.ConversationSetupFields.Raw, MavenAGI.ConversationSetupFields>;
6
+ export declare namespace ConversationSetupFields {
7
+ interface Raw {
8
+ responseConfig?: ResponseConfig.Raw | null;
9
+ tags?: string[] | null;
10
+ metadata?: Record<string, string> | null;
11
+ }
12
+ }
@@ -0,0 +1,44 @@
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.ConversationSetupFields = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const ResponseConfig_1 = require("./ResponseConfig");
40
+ exports.ConversationSetupFields = core.serialization.object({
41
+ responseConfig: ResponseConfig_1.ResponseConfig.optional(),
42
+ tags: core.serialization.set(core.serialization.string()).optional(),
43
+ metadata: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
44
+ });
@@ -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 { EntityIdWithoutAgent } from "./EntityIdWithoutAgent";
5
+ export declare const CrossOrganizationLevelEntityId: core.serialization.ObjectSchema<serializers.CrossOrganizationLevelEntityId.Raw, MavenAGI.CrossOrganizationLevelEntityId>;
6
+ export declare namespace CrossOrganizationLevelEntityId {
7
+ interface Raw extends EntityIdWithoutAgent.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.CrossOrganizationLevelEntityId = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const EntityIdWithoutAgent_1 = require("./EntityIdWithoutAgent");
40
+ exports.CrossOrganizationLevelEntityId = core.serialization.object({}).extend(EntityIdWithoutAgent_1.EntityIdWithoutAgent);
@@ -0,0 +1,19 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ import { CrossOrganizationLevelEntityId } from "./CrossOrganizationLevelEntityId";
5
+ import { EntityId } from "./EntityId";
6
+ import { OrganizationLevelEntityId } from "./OrganizationLevelEntityId";
7
+ export declare const LeveledEntityId: core.serialization.Schema<serializers.LeveledEntityId.Raw, MavenAGI.LeveledEntityId>;
8
+ export declare namespace LeveledEntityId {
9
+ type Raw = LeveledEntityId.Agent | LeveledEntityId.Organization | LeveledEntityId.CrossOrganization;
10
+ interface Agent extends EntityId.Raw {
11
+ level: "AGENT";
12
+ }
13
+ interface Organization extends OrganizationLevelEntityId.Raw {
14
+ level: "ORGANIZATION";
15
+ }
16
+ interface CrossOrganization extends CrossOrganizationLevelEntityId.Raw {
17
+ level: "CROSS_ORGANIZATION";
18
+ }
19
+ }
@@ -0,0 +1,51 @@
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.LeveledEntityId = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const CrossOrganizationLevelEntityId_1 = require("./CrossOrganizationLevelEntityId");
40
+ const EntityId_1 = require("./EntityId");
41
+ const OrganizationLevelEntityId_1 = require("./OrganizationLevelEntityId");
42
+ exports.LeveledEntityId = core.serialization
43
+ .union("level", {
44
+ AGENT: EntityId_1.EntityId,
45
+ ORGANIZATION: OrganizationLevelEntityId_1.OrganizationLevelEntityId,
46
+ CROSS_ORGANIZATION: CrossOrganizationLevelEntityId_1.CrossOrganizationLevelEntityId,
47
+ })
48
+ .transform({
49
+ transform: (value) => value,
50
+ untransform: (value) => value,
51
+ });
@@ -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 "./EntityIdWithoutAgent";
5
+ export declare const OrganizationLevelEntityId: core.serialization.ObjectSchema<serializers.OrganizationLevelEntityId.Raw, MavenAGI.OrganizationLevelEntityId>;
6
+ export declare namespace OrganizationLevelEntityId {
7
+ interface Raw extends EntityIdWithoutAgent.Raw {
8
+ organizationId: string;
9
+ }
10
+ }
@@ -0,0 +1,44 @@
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.OrganizationLevelEntityId = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const EntityIdWithoutAgent_1 = require("./EntityIdWithoutAgent");
40
+ exports.OrganizationLevelEntityId = core.serialization
41
+ .object({
42
+ organizationId: core.serialization.string(),
43
+ })
44
+ .extend(EntityIdWithoutAgent_1.EntityIdWithoutAgent);
@@ -1,12 +1,12 @@
1
1
  import type * as MavenAGI from "../../../../api/index";
2
2
  import * as core from "../../../../core";
3
3
  import type * as serializers from "../../../index";
4
- import { ExecuteActionResponse } from "./ExecuteActionResponse";
5
4
  import { SimulationActionCallApp } from "./SimulationActionCallApp";
5
+ import { SimulationFixedResponse } from "./SimulationFixedResponse";
6
6
  export declare const SimulationActionBehavior: core.serialization.Schema<serializers.SimulationActionBehavior.Raw, MavenAGI.SimulationActionBehavior>;
7
7
  export declare namespace SimulationActionBehavior {
8
8
  type Raw = SimulationActionBehavior.FixedResponse | SimulationActionBehavior.CallApp;
9
- interface FixedResponse extends ExecuteActionResponse.Raw {
9
+ interface FixedResponse extends SimulationFixedResponse.Raw {
10
10
  type: "fixedResponse";
11
11
  }
12
12
  interface CallApp extends SimulationActionCallApp.Raw {
@@ -36,11 +36,11 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.SimulationActionBehavior = void 0;
38
38
  const core = __importStar(require("../../../../core"));
39
- const ExecuteActionResponse_1 = require("./ExecuteActionResponse");
40
39
  const SimulationActionCallApp_1 = require("./SimulationActionCallApp");
40
+ const SimulationFixedResponse_1 = require("./SimulationFixedResponse");
41
41
  exports.SimulationActionBehavior = core.serialization
42
42
  .union("type", {
43
- fixedResponse: ExecuteActionResponse_1.ExecuteActionResponse,
43
+ fixedResponse: SimulationFixedResponse_1.SimulationFixedResponse,
44
44
  callApp: SimulationActionCallApp_1.SimulationActionCallApp,
45
45
  })
46
46
  .transform({
@@ -4,17 +4,13 @@ import type * as serializers from "../../../index";
4
4
  import { EntityId } from "./EntityId";
5
5
  import { EntityIdWithoutAgent } from "./EntityIdWithoutAgent";
6
6
  import { LlmPersona } from "./LlmPersona";
7
- import { SimulationActionBehavior } from "./SimulationActionBehavior";
8
- import { SimulationActionMock } from "./SimulationActionMock";
7
+ import { SimulationSetupFields } from "./SimulationSetupFields";
9
8
  export declare const SimulationContext: core.serialization.ObjectSchema<serializers.SimulationContext.Raw, MavenAGI.SimulationContext>;
10
9
  export declare namespace SimulationContext {
11
- interface Raw {
10
+ interface Raw extends SimulationSetupFields.Raw {
12
11
  additionalPromptText?: string | null;
13
12
  persona?: LlmPersona.Raw | null;
14
13
  availableKnowledgeBases?: EntityId.Raw[] | null;
15
14
  variantId?: EntityIdWithoutAgent.Raw | null;
16
- evaluateWithCharters?: boolean | null;
17
- actionMocks?: SimulationActionMock.Raw[] | null;
18
- defaultActionBehavior?: SimulationActionBehavior.Raw | null;
19
15
  }
20
16
  }
@@ -39,14 +39,12 @@ const core = __importStar(require("../../../../core"));
39
39
  const EntityId_1 = require("./EntityId");
40
40
  const EntityIdWithoutAgent_1 = require("./EntityIdWithoutAgent");
41
41
  const LlmPersona_1 = require("./LlmPersona");
42
- const SimulationActionBehavior_1 = require("./SimulationActionBehavior");
43
- const SimulationActionMock_1 = require("./SimulationActionMock");
44
- exports.SimulationContext = core.serialization.object({
42
+ const SimulationSetupFields_1 = require("./SimulationSetupFields");
43
+ exports.SimulationContext = core.serialization
44
+ .object({
45
45
  additionalPromptText: core.serialization.string().optional(),
46
46
  persona: LlmPersona_1.LlmPersona.optional(),
47
47
  availableKnowledgeBases: core.serialization.list(EntityId_1.EntityId).optional(),
48
48
  variantId: EntityIdWithoutAgent_1.EntityIdWithoutAgent.optional(),
49
- evaluateWithCharters: core.serialization.boolean().optional(),
50
- actionMocks: core.serialization.list(SimulationActionMock_1.SimulationActionMock).optional(),
51
- defaultActionBehavior: SimulationActionBehavior_1.SimulationActionBehavior.optional(),
52
- });
49
+ })
50
+ .extend(SimulationSetupFields_1.SimulationSetupFields);
@@ -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 { ActionEffects } from "./ActionEffects";
5
+ import { ExecuteActionResponse } from "./ExecuteActionResponse";
6
+ export declare const SimulationFixedResponse: core.serialization.ObjectSchema<serializers.SimulationFixedResponse.Raw, MavenAGI.SimulationFixedResponse>;
7
+ export declare namespace SimulationFixedResponse {
8
+ interface Raw extends ExecuteActionResponse.Raw {
9
+ effects?: ActionEffects.Raw | null;
10
+ }
11
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.SimulationFixedResponse = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const ActionEffects_1 = require("./ActionEffects");
40
+ const ExecuteActionResponse_1 = require("./ExecuteActionResponse");
41
+ exports.SimulationFixedResponse = core.serialization
42
+ .object({
43
+ effects: ActionEffects_1.ActionEffects.optional(),
44
+ })
45
+ .extend(ExecuteActionResponse_1.ExecuteActionResponse);
@@ -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 { SimulationActionBehavior } from "./SimulationActionBehavior";
5
+ import { SimulationActionMock } from "./SimulationActionMock";
6
+ export declare const SimulationSetupFields: core.serialization.ObjectSchema<serializers.SimulationSetupFields.Raw, MavenAGI.SimulationSetupFields>;
7
+ export declare namespace SimulationSetupFields {
8
+ interface Raw {
9
+ evaluateWithCharters?: boolean | null;
10
+ actionMocks?: SimulationActionMock.Raw[] | null;
11
+ defaultActionBehavior?: SimulationActionBehavior.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.SimulationSetupFields = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const SimulationActionBehavior_1 = require("./SimulationActionBehavior");
40
+ const SimulationActionMock_1 = require("./SimulationActionMock");
41
+ exports.SimulationSetupFields = core.serialization.object({
42
+ evaluateWithCharters: core.serialization.boolean().optional(),
43
+ actionMocks: core.serialization.list(SimulationActionMock_1.SimulationActionMock).optional(),
44
+ defaultActionBehavior: SimulationActionBehavior_1.SimulationActionBehavior.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 { UserDataPatch } from "./UserDataPatch";
5
+ export declare const UserDataEffect: core.serialization.ObjectSchema<serializers.UserDataEffect.Raw, MavenAGI.UserDataEffect>;
6
+ export declare namespace UserDataEffect {
7
+ interface Raw {
8
+ data?: Record<string, UserDataPatch.Raw> | null;
9
+ removeKeys?: string[] | null;
10
+ }
11
+ }
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.UserDataEffect = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const UserDataPatch_1 = require("./UserDataPatch");
40
+ exports.UserDataEffect = core.serialization.object({
41
+ data: core.serialization.record(core.serialization.string(), UserDataPatch_1.UserDataPatch).optional(),
42
+ removeKeys: core.serialization.list(core.serialization.string()).optional(),
43
+ });
@@ -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 { VisibilityType } from "./VisibilityType";
5
+ export declare const UserDataPatch: core.serialization.ObjectSchema<serializers.UserDataPatch.Raw, MavenAGI.UserDataPatch>;
6
+ export declare namespace UserDataPatch {
7
+ interface Raw {
8
+ value: string;
9
+ visibility?: VisibilityType.Raw | null;
10
+ }
11
+ }
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.UserDataPatch = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const VisibilityType_1 = require("./VisibilityType");
40
+ exports.UserDataPatch = core.serialization.object({
41
+ value: core.serialization.string(),
42
+ visibility: VisibilityType_1.VisibilityType.optional(),
43
+ });
@@ -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 { EntityIdBase } from "./EntityIdBase";
5
+ export declare const UsersConversationAudience: core.serialization.ObjectSchema<serializers.UsersConversationAudience.Raw, MavenAGI.UsersConversationAudience>;
6
+ export declare namespace UsersConversationAudience {
7
+ interface Raw {
8
+ userIds: EntityIdBase.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.UsersConversationAudience = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const EntityIdBase_1 = require("./EntityIdBase");
40
+ exports.UsersConversationAudience = core.serialization.object({
41
+ userIds: core.serialization.list(EntityIdBase_1.EntityIdBase),
42
+ });
@@ -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 { EntityId } from "./EntityId";
5
+ export declare const UsersConversationAudienceResponse: core.serialization.ObjectSchema<serializers.UsersConversationAudienceResponse.Raw, MavenAGI.UsersConversationAudienceResponse>;
6
+ export declare namespace UsersConversationAudienceResponse {
7
+ interface Raw {
8
+ userIds: EntityId.Raw[];
9
+ }
10
+ }