mavenagi 1.2.70 → 1.2.72

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 (118) hide show
  1. package/BaseClient.js +2 -2
  2. package/api/resources/capabilities/client/Client.d.ts +3 -3
  3. package/api/resources/capabilities/client/Client.js +3 -3
  4. package/api/resources/commons/types/AbsoluteTimeWindow.d.ts +5 -2
  5. package/api/resources/commons/types/ActionEffects.d.ts +18 -0
  6. package/api/resources/commons/types/ActionEffects.js +3 -0
  7. package/api/resources/commons/types/AllUsersConversationAudience.d.ts +1 -0
  8. package/api/resources/commons/types/AllUsersConversationAudience.js +3 -0
  9. package/api/resources/commons/types/ChangeAuthor.d.ts +18 -0
  10. package/api/resources/commons/types/ChangeAuthor.js +3 -0
  11. package/api/resources/commons/types/ConversationAudience.d.ts +19 -0
  12. package/api/resources/commons/types/ConversationAudience.js +3 -0
  13. package/api/resources/commons/types/ConversationAudienceResponse.d.ts +16 -0
  14. package/api/resources/commons/types/ConversationAudienceResponse.js +3 -0
  15. package/api/resources/commons/types/ConversationResponse.d.ts +8 -0
  16. package/api/resources/commons/types/ConversationSetupFields.d.ts +21 -0
  17. package/api/resources/commons/types/ConversationSetupFields.js +3 -0
  18. package/api/resources/commons/types/CrossOrganizationLevelEntityId.d.ts +7 -0
  19. package/api/resources/commons/types/CrossOrganizationLevelEntityId.js +3 -0
  20. package/api/resources/commons/types/FieldCondition.d.ts +3 -2
  21. package/api/resources/commons/types/InitializeConversationResponse.d.ts +3 -0
  22. package/api/resources/commons/types/LeveledEntityId.d.ts +28 -0
  23. package/api/resources/commons/types/LeveledEntityId.js +3 -0
  24. package/api/resources/commons/types/MetadataPrecondition.d.ts +27 -3
  25. package/api/resources/commons/types/OrganizationLevelEntityId.d.ts +9 -0
  26. package/api/resources/commons/types/OrganizationLevelEntityId.js +3 -0
  27. package/api/resources/commons/types/PresenceOperator.d.ts +2 -1
  28. package/api/resources/commons/types/PresenceOperator.js +2 -1
  29. package/api/resources/commons/types/ResolutionStatus.d.ts +9 -5
  30. package/api/resources/commons/types/ResolutionStatus.js +9 -5
  31. package/api/resources/commons/types/SimulationActionBehavior.d.ts +1 -1
  32. package/api/resources/commons/types/SimulationContext.d.ts +6 -24
  33. package/api/resources/commons/types/SimulationFixedResponse.d.ts +14 -0
  34. package/api/resources/commons/types/SimulationFixedResponse.js +3 -0
  35. package/api/resources/commons/types/SimulationSetupFields.d.ts +29 -0
  36. package/api/resources/commons/types/SimulationSetupFields.js +3 -0
  37. package/api/resources/commons/types/TagsPrecondition.d.ts +12 -1
  38. package/api/resources/commons/types/TimePrecondition.d.ts +1 -0
  39. package/api/resources/commons/types/UserDataEffect.d.ts +10 -0
  40. package/api/resources/commons/types/UserDataEffect.js +3 -0
  41. package/api/resources/commons/types/UserDataPatch.d.ts +10 -0
  42. package/api/resources/commons/types/UserDataPatch.js +3 -0
  43. package/api/resources/commons/types/UsersConversationAudience.d.ts +8 -0
  44. package/api/resources/commons/types/UsersConversationAudience.js +3 -0
  45. package/api/resources/commons/types/UsersConversationAudienceResponse.d.ts +9 -0
  46. package/api/resources/commons/types/UsersConversationAudienceResponse.js +3 -0
  47. package/api/resources/commons/types/index.d.ts +15 -0
  48. package/api/resources/commons/types/index.js +15 -0
  49. package/api/resources/conversation/client/Client.d.ts +35 -1
  50. package/api/resources/conversation/client/Client.js +35 -1
  51. package/api/resources/conversation/types/AskRequest.d.ts +4 -1
  52. package/api/resources/conversation/types/BillableFilterField.d.ts +1 -1
  53. package/api/resources/conversation/types/BillableFilterField.js +1 -1
  54. package/api/resources/conversation/types/ConversationRequest.d.ts +26 -16
  55. package/api/resources/conversation/types/DeliverMessageResponse.d.ts +5 -0
  56. package/api/resources/conversation/types/DeliverUserMessageRequest.d.ts +20 -0
  57. package/api/resources/intelligentFields/types/IntelligentFieldResponse.d.ts +4 -0
  58. package/api/resources/knowledge/client/Client.d.ts +14 -0
  59. package/api/resources/knowledge/client/Client.js +14 -0
  60. package/api/resources/knowledge/types/KnowledgeBaseType.d.ts +2 -0
  61. package/api/resources/knowledge/types/KnowledgeBaseType.js +2 -0
  62. package/api/resources/knowledge/types/KnowledgeBaseVersionRequest.d.ts +2 -0
  63. package/package.json +1 -1
  64. package/reference.md +29 -4
  65. package/serialization/resources/commons/types/AbsoluteTimeWindow.d.ts +1 -0
  66. package/serialization/resources/commons/types/AbsoluteTimeWindow.js +1 -0
  67. package/serialization/resources/commons/types/ActionEffects.d.ts +11 -0
  68. package/serialization/resources/commons/types/ActionEffects.js +45 -0
  69. package/serialization/resources/commons/types/AllUsersConversationAudience.d.ts +7 -0
  70. package/serialization/resources/commons/types/AllUsersConversationAudience.js +39 -0
  71. package/serialization/resources/commons/types/ChangeAuthor.d.ts +12 -0
  72. package/serialization/resources/commons/types/ChangeAuthor.js +44 -0
  73. package/serialization/resources/commons/types/ConversationAudience.d.ts +15 -0
  74. package/serialization/resources/commons/types/ConversationAudience.js +49 -0
  75. package/serialization/resources/commons/types/ConversationAudienceResponse.d.ts +15 -0
  76. package/serialization/resources/commons/types/ConversationAudienceResponse.js +49 -0
  77. package/serialization/resources/commons/types/ConversationResponse.d.ts +2 -0
  78. package/serialization/resources/commons/types/ConversationResponse.js +2 -0
  79. package/serialization/resources/commons/types/ConversationSetupFields.d.ts +12 -0
  80. package/serialization/resources/commons/types/ConversationSetupFields.js +44 -0
  81. package/serialization/resources/commons/types/CrossOrganizationLevelEntityId.d.ts +9 -0
  82. package/serialization/resources/commons/types/CrossOrganizationLevelEntityId.js +40 -0
  83. package/serialization/resources/commons/types/LeveledEntityId.d.ts +19 -0
  84. package/serialization/resources/commons/types/LeveledEntityId.js +51 -0
  85. package/serialization/resources/commons/types/MetadataPrecondition.d.ts +2 -0
  86. package/serialization/resources/commons/types/MetadataPrecondition.js +2 -0
  87. package/serialization/resources/commons/types/OrganizationLevelEntityId.d.ts +10 -0
  88. package/serialization/resources/commons/types/OrganizationLevelEntityId.js +44 -0
  89. package/serialization/resources/commons/types/SimulationActionBehavior.d.ts +2 -2
  90. package/serialization/resources/commons/types/SimulationActionBehavior.js +2 -2
  91. package/serialization/resources/commons/types/SimulationContext.d.ts +2 -6
  92. package/serialization/resources/commons/types/SimulationContext.js +5 -7
  93. package/serialization/resources/commons/types/SimulationFixedResponse.d.ts +11 -0
  94. package/serialization/resources/commons/types/SimulationFixedResponse.js +45 -0
  95. package/serialization/resources/commons/types/SimulationSetupFields.d.ts +13 -0
  96. package/serialization/resources/commons/types/SimulationSetupFields.js +45 -0
  97. package/serialization/resources/commons/types/UserDataEffect.d.ts +11 -0
  98. package/serialization/resources/commons/types/UserDataEffect.js +43 -0
  99. package/serialization/resources/commons/types/UserDataPatch.d.ts +11 -0
  100. package/serialization/resources/commons/types/UserDataPatch.js +43 -0
  101. package/serialization/resources/commons/types/UsersConversationAudience.d.ts +10 -0
  102. package/serialization/resources/commons/types/UsersConversationAudience.js +42 -0
  103. package/serialization/resources/commons/types/UsersConversationAudienceResponse.d.ts +10 -0
  104. package/serialization/resources/commons/types/UsersConversationAudienceResponse.js +42 -0
  105. package/serialization/resources/commons/types/index.d.ts +15 -0
  106. package/serialization/resources/commons/types/index.js +15 -0
  107. package/serialization/resources/conversation/types/ConversationRequest.d.ts +4 -5
  108. package/serialization/resources/conversation/types/ConversationRequest.js +7 -6
  109. package/serialization/resources/conversation/types/DeliverMessageResponse.d.ts +2 -0
  110. package/serialization/resources/conversation/types/DeliverMessageResponse.js +2 -0
  111. package/serialization/resources/conversation/types/DeliverUserMessageRequest.d.ts +1 -0
  112. package/serialization/resources/conversation/types/DeliverUserMessageRequest.js +1 -0
  113. package/serialization/resources/intelligentFields/types/IntelligentFieldResponse.d.ts +3 -0
  114. package/serialization/resources/intelligentFields/types/IntelligentFieldResponse.js +3 -0
  115. package/serialization/resources/knowledge/types/KnowledgeBaseVersionRequest.d.ts +2 -0
  116. package/serialization/resources/knowledge/types/KnowledgeBaseVersionRequest.js +2 -0
  117. package/version.d.ts +1 -1
  118. package/version.js +1 -1
@@ -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 { UserDataEffect } from "./UserDataEffect";
5
+ export declare const ActionEffects: core.serialization.ObjectSchema<serializers.ActionEffects.Raw, MavenAGI.ActionEffects>;
6
+ export declare namespace ActionEffects {
7
+ interface Raw {
8
+ conversationMetadata?: Record<string, string> | null;
9
+ userData?: UserDataEffect.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.ActionEffects = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const UserDataEffect_1 = require("./UserDataEffect");
40
+ exports.ActionEffects = core.serialization.object({
41
+ conversationMetadata: core.serialization
42
+ .record(core.serialization.string(), core.serialization.string())
43
+ .optional(),
44
+ userData: UserDataEffect_1.UserDataEffect.optional(),
45
+ });
@@ -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 AllUsersConversationAudience: core.serialization.ObjectSchema<serializers.AllUsersConversationAudience.Raw, MavenAGI.AllUsersConversationAudience>;
5
+ export declare namespace AllUsersConversationAudience {
6
+ type Raw = {};
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.AllUsersConversationAudience = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ exports.AllUsersConversationAudience = core.serialization.object({});
@@ -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 { LeveledEntityId } from "./LeveledEntityId";
5
+ export declare const ChangeAuthor: core.serialization.ObjectSchema<serializers.ChangeAuthor.Raw, MavenAGI.ChangeAuthor>;
6
+ export declare namespace ChangeAuthor {
7
+ interface Raw {
8
+ mavenUserId?: LeveledEntityId.Raw | null;
9
+ name?: string | null;
10
+ actingAppId?: 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.ChangeAuthor = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const LeveledEntityId_1 = require("./LeveledEntityId");
40
+ exports.ChangeAuthor = core.serialization.object({
41
+ mavenUserId: LeveledEntityId_1.LeveledEntityId.optional(),
42
+ name: core.serialization.string().optional(),
43
+ actingAppId: core.serialization.string().optional(),
44
+ });
@@ -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 { AllUsersConversationAudience } from "./AllUsersConversationAudience";
5
+ import { UsersConversationAudience } from "./UsersConversationAudience";
6
+ export declare const ConversationAudience: core.serialization.Schema<serializers.ConversationAudience.Raw, MavenAGI.ConversationAudience>;
7
+ export declare namespace ConversationAudience {
8
+ type Raw = ConversationAudience.AllUsers | ConversationAudience.Users;
9
+ interface AllUsers extends AllUsersConversationAudience.Raw {
10
+ type: "allUsers";
11
+ }
12
+ interface Users extends UsersConversationAudience.Raw {
13
+ type: "users";
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.ConversationAudience = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const AllUsersConversationAudience_1 = require("./AllUsersConversationAudience");
40
+ const UsersConversationAudience_1 = require("./UsersConversationAudience");
41
+ exports.ConversationAudience = core.serialization
42
+ .union("type", {
43
+ allUsers: AllUsersConversationAudience_1.AllUsersConversationAudience,
44
+ users: UsersConversationAudience_1.UsersConversationAudience,
45
+ })
46
+ .transform({
47
+ transform: (value) => value,
48
+ untransform: (value) => value,
49
+ });
@@ -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 { AllUsersConversationAudience } from "./AllUsersConversationAudience";
5
+ import { UsersConversationAudienceResponse } from "./UsersConversationAudienceResponse";
6
+ export declare const ConversationAudienceResponse: core.serialization.Schema<serializers.ConversationAudienceResponse.Raw, MavenAGI.ConversationAudienceResponse>;
7
+ export declare namespace ConversationAudienceResponse {
8
+ type Raw = ConversationAudienceResponse.AllUsers | ConversationAudienceResponse.Users;
9
+ interface AllUsers extends AllUsersConversationAudience.Raw {
10
+ type: "allUsers";
11
+ }
12
+ interface Users extends UsersConversationAudienceResponse.Raw {
13
+ type: "users";
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.ConversationAudienceResponse = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const AllUsersConversationAudience_1 = require("./AllUsersConversationAudience");
40
+ const UsersConversationAudienceResponse_1 = require("./UsersConversationAudienceResponse");
41
+ exports.ConversationAudienceResponse = core.serialization
42
+ .union("type", {
43
+ allUsers: AllUsersConversationAudience_1.AllUsersConversationAudience,
44
+ users: UsersConversationAudienceResponse_1.UsersConversationAudienceResponse,
45
+ })
46
+ .transform({
47
+ transform: (value) => value,
48
+ untransform: (value) => value,
49
+ });
@@ -3,11 +3,13 @@ import * as core from "../../../../core";
3
3
  import type * as serializers from "../../../index";
4
4
  import { AttachmentResponse } from "./AttachmentResponse";
5
5
  import { BaseConversationResponse } from "./BaseConversationResponse";
6
+ import { ConversationAudienceResponse } from "./ConversationAudienceResponse";
6
7
  import { ConversationMessageResponse } from "./ConversationMessageResponse";
7
8
  export declare const ConversationResponse: core.serialization.ObjectSchema<serializers.ConversationResponse.Raw, MavenAGI.ConversationResponse>;
8
9
  export declare namespace ConversationResponse {
9
10
  interface Raw extends BaseConversationResponse.Raw {
10
11
  messages: ConversationMessageResponse.Raw[];
11
12
  attachments: AttachmentResponse.Raw[];
13
+ audience: ConversationAudienceResponse.Raw;
12
14
  }
13
15
  }
@@ -38,10 +38,12 @@ exports.ConversationResponse = void 0;
38
38
  const core = __importStar(require("../../../../core"));
39
39
  const AttachmentResponse_1 = require("./AttachmentResponse");
40
40
  const BaseConversationResponse_1 = require("./BaseConversationResponse");
41
+ const ConversationAudienceResponse_1 = require("./ConversationAudienceResponse");
41
42
  const ConversationMessageResponse_1 = require("./ConversationMessageResponse");
42
43
  exports.ConversationResponse = core.serialization
43
44
  .object({
44
45
  messages: core.serialization.list(ConversationMessageResponse_1.ConversationMessageResponse),
45
46
  attachments: core.serialization.list(AttachmentResponse_1.AttachmentResponse),
47
+ audience: ConversationAudienceResponse_1.ConversationAudienceResponse,
46
48
  })
47
49
  .extend(BaseConversationResponse_1.BaseConversationResponse);
@@ -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
+ });
@@ -1,6 +1,7 @@
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 { FieldCondition } from "./FieldCondition";
4
5
  import { PreconditionBase } from "./PreconditionBase";
5
6
  export declare const MetadataPrecondition: core.serialization.ObjectSchema<serializers.MetadataPrecondition.Raw, MavenAGI.MetadataPrecondition>;
6
7
  export declare namespace MetadataPrecondition {
@@ -8,5 +9,6 @@ export declare namespace MetadataPrecondition {
8
9
  key: string;
9
10
  value?: string | null;
10
11
  values?: string[] | null;
12
+ fieldCondition?: FieldCondition.Raw | null;
11
13
  }
12
14
  }
@@ -36,11 +36,13 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.MetadataPrecondition = void 0;
38
38
  const core = __importStar(require("../../../../core"));
39
+ const FieldCondition_1 = require("./FieldCondition");
39
40
  const PreconditionBase_1 = require("./PreconditionBase");
40
41
  exports.MetadataPrecondition = core.serialization
41
42
  .object({
42
43
  key: core.serialization.string(),
43
44
  value: core.serialization.string().optional(),
44
45
  values: core.serialization.list(core.serialization.string()).optional(),
46
+ fieldCondition: FieldCondition_1.FieldCondition.optional(),
45
47
  })
46
48
  .extend(PreconditionBase_1.PreconditionBase);
@@ -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
  }