mavenagi 1.2.48 → 1.2.50

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 (73) hide show
  1. package/BaseClient.js +2 -2
  2. package/api/resources/commons/types/ConversationKickoffResult.d.ts +7 -0
  3. package/api/resources/commons/types/ConversationKickoffResult.js +3 -0
  4. package/api/resources/commons/types/ConversationKickoffStatus.d.ts +5 -0
  5. package/api/resources/commons/types/ConversationKickoffStatus.js +8 -0
  6. package/api/resources/commons/types/ConversationMessageBase.d.ts +9 -0
  7. package/api/resources/commons/types/ConversationResponse.d.ts +3 -0
  8. package/api/resources/commons/types/ConversationSummary.d.ts +6 -0
  9. package/api/resources/commons/types/EntityType.d.ts +3 -0
  10. package/api/resources/commons/types/EntityType.js +3 -0
  11. package/api/resources/commons/types/InitializeConversationResponse.d.ts +14 -0
  12. package/api/resources/commons/types/InitializeConversationResponse.js +3 -0
  13. package/api/resources/commons/types/IntelligentFieldCondition.d.ts +5 -1
  14. package/api/resources/commons/types/JsonSchemaSettingsSchemaEntry.d.ts +6 -0
  15. package/api/resources/commons/types/JsonSchemaSettingsSchemaEntry.js +3 -0
  16. package/api/resources/commons/types/PresenceCondition.d.ts +9 -0
  17. package/api/resources/commons/types/PresenceCondition.js +3 -0
  18. package/api/resources/commons/types/PresenceOperator.d.ts +15 -0
  19. package/api/resources/commons/types/PresenceOperator.js +18 -0
  20. package/api/resources/commons/types/SettingsSchemaEntry.d.ts +7 -1
  21. package/api/resources/commons/types/SwitchSettingsSchemaEntry.d.ts +4 -0
  22. package/api/resources/commons/types/SwitchSettingsSchemaEntry.js +3 -0
  23. package/api/resources/commons/types/UniversalCondition.d.ts +13 -0
  24. package/api/resources/commons/types/UniversalCondition.js +3 -0
  25. package/api/resources/commons/types/index.d.ts +8 -0
  26. package/api/resources/commons/types/index.js +8 -0
  27. package/api/resources/conversation/client/Client.d.ts +1 -1
  28. package/api/resources/conversation/client/Client.js +1 -1
  29. package/api/resources/conversation/types/AskRequest.d.ts +9 -0
  30. package/api/resources/conversation/types/ConversationField.d.ts +1 -0
  31. package/api/resources/conversation/types/ConversationField.js +1 -0
  32. package/api/resources/knowledge/client/Client.d.ts +17 -0
  33. package/api/resources/knowledge/client/Client.js +88 -0
  34. package/api/resources/knowledge/types/KnowledgeBaseIndexingStatus.d.ts +2 -0
  35. package/api/resources/knowledge/types/KnowledgeBaseIndexingStatus.js +2 -0
  36. package/package.json +1 -1
  37. package/reference.md +64 -1
  38. package/serialization/resources/commons/types/ConversationKickoffResult.d.ts +11 -0
  39. package/serialization/resources/commons/types/ConversationKickoffResult.js +43 -0
  40. package/serialization/resources/commons/types/ConversationKickoffStatus.d.ts +7 -0
  41. package/serialization/resources/commons/types/ConversationKickoffStatus.js +39 -0
  42. package/serialization/resources/commons/types/ConversationMessageBase.d.ts +1 -0
  43. package/serialization/resources/commons/types/ConversationMessageBase.js +1 -0
  44. package/serialization/resources/commons/types/ConversationSummary.d.ts +3 -0
  45. package/serialization/resources/commons/types/ConversationSummary.js +3 -0
  46. package/serialization/resources/commons/types/EntityType.d.ts +1 -1
  47. package/serialization/resources/commons/types/EntityType.js +3 -0
  48. package/serialization/resources/commons/types/InitializeConversationResponse.d.ts +11 -0
  49. package/serialization/resources/commons/types/InitializeConversationResponse.js +45 -0
  50. package/serialization/resources/commons/types/IntelligentFieldCondition.d.ts +6 -1
  51. package/serialization/resources/commons/types/IntelligentFieldCondition.js +4 -0
  52. package/serialization/resources/commons/types/JsonSchemaSettingsSchemaEntry.d.ts +11 -0
  53. package/serialization/resources/commons/types/JsonSchemaSettingsSchemaEntry.js +45 -0
  54. package/serialization/resources/commons/types/PresenceCondition.d.ts +10 -0
  55. package/serialization/resources/commons/types/PresenceCondition.js +42 -0
  56. package/serialization/resources/commons/types/PresenceOperator.d.ts +7 -0
  57. package/serialization/resources/commons/types/PresenceOperator.js +39 -0
  58. package/serialization/resources/commons/types/SettingsSchemaEntry.d.ts +9 -1
  59. package/serialization/resources/commons/types/SettingsSchemaEntry.js +4 -0
  60. package/serialization/resources/commons/types/SwitchSettingsSchemaEntry.d.ts +10 -0
  61. package/serialization/resources/commons/types/SwitchSettingsSchemaEntry.js +44 -0
  62. package/serialization/resources/commons/types/UniversalCondition.d.ts +11 -0
  63. package/serialization/resources/commons/types/UniversalCondition.js +47 -0
  64. package/serialization/resources/commons/types/index.d.ts +8 -0
  65. package/serialization/resources/commons/types/index.js +8 -0
  66. package/serialization/resources/conversation/types/AskRequest.d.ts +1 -0
  67. package/serialization/resources/conversation/types/AskRequest.js +1 -0
  68. package/serialization/resources/conversation/types/ConversationField.d.ts +1 -1
  69. package/serialization/resources/conversation/types/ConversationField.js +1 -0
  70. package/serialization/resources/knowledge/types/KnowledgeBaseIndexingStatus.d.ts +1 -1
  71. package/serialization/resources/knowledge/types/KnowledgeBaseIndexingStatus.js +10 -1
  72. package/version.d.ts +1 -1
  73. 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 { ConversationKickoffStatus } from "./ConversationKickoffStatus";
5
+ export declare const ConversationKickoffResult: core.serialization.ObjectSchema<serializers.ConversationKickoffResult.Raw, MavenAGI.ConversationKickoffResult>;
6
+ export declare namespace ConversationKickoffResult {
7
+ interface Raw {
8
+ status: ConversationKickoffStatus.Raw;
9
+ message?: 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.ConversationKickoffResult = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const ConversationKickoffStatus_1 = require("./ConversationKickoffStatus");
40
+ exports.ConversationKickoffResult = core.serialization.object({
41
+ status: ConversationKickoffStatus_1.ConversationKickoffStatus,
42
+ message: core.serialization.string().optional(),
43
+ });
@@ -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 ConversationKickoffStatus: core.serialization.Schema<serializers.ConversationKickoffStatus.Raw, MavenAGI.ConversationKickoffStatus>;
5
+ export declare namespace ConversationKickoffStatus {
6
+ type Raw = "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.ConversationKickoffStatus = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ exports.ConversationKickoffStatus = core.serialization.forwardCompatibleEnum_(["SUCCESS", "FAILED"]);
@@ -6,5 +6,6 @@ export declare namespace ConversationMessageBase {
6
6
  interface Raw {
7
7
  createdAt?: string | null;
8
8
  updatedAt?: string | null;
9
+ appMetadata?: Record<string, string> | null;
9
10
  }
10
11
  }
@@ -39,4 +39,5 @@ const core = __importStar(require("../../../../core"));
39
39
  exports.ConversationMessageBase = core.serialization.object({
40
40
  createdAt: core.serialization.date().optional(),
41
41
  updatedAt: core.serialization.date().optional(),
42
+ appMetadata: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
42
43
  });
@@ -7,6 +7,9 @@ export declare namespace ConversationSummary {
7
7
  interface Raw {
8
8
  actionIds: EntityIdWithoutAgent.Raw[];
9
9
  incompleteActionIds: EntityIdWithoutAgent.Raw[];
10
+ matchedCharterIds: EntityIdWithoutAgent.Raw[];
11
+ matchedCharterNames: string[];
12
+ matchedSegmentedCharterNames: string[];
10
13
  insertCount: number;
11
14
  thumbsUpCount: number;
12
15
  thumbsDownCount: number;
@@ -40,6 +40,9 @@ const EntityIdWithoutAgent_1 = require("./EntityIdWithoutAgent");
40
40
  exports.ConversationSummary = core.serialization.object({
41
41
  actionIds: core.serialization.list(EntityIdWithoutAgent_1.EntityIdWithoutAgent),
42
42
  incompleteActionIds: core.serialization.list(EntityIdWithoutAgent_1.EntityIdWithoutAgent),
43
+ matchedCharterIds: core.serialization.list(EntityIdWithoutAgent_1.EntityIdWithoutAgent),
44
+ matchedCharterNames: core.serialization.list(core.serialization.string()),
45
+ matchedSegmentedCharterNames: core.serialization.list(core.serialization.string()),
43
46
  insertCount: core.serialization.number(),
44
47
  thumbsUpCount: core.serialization.number(),
45
48
  thumbsDownCount: core.serialization.number(),
@@ -3,5 +3,5 @@ import * as core from "../../../../core";
3
3
  import type * as serializers from "../../../index";
4
4
  export declare const EntityType: core.serialization.Schema<serializers.EntityType.Raw, MavenAGI.EntityType>;
5
5
  export declare namespace EntityType {
6
- type Raw = "AGENT" | "CONVERSATION" | "CONVERSATION_MESSAGE" | "KNOWLEDGE_BASE" | "KNOWLEDGE_BASE_VERSION" | "KNOWLEDGE_DOCUMENT" | "ACTION" | "USER" | "EVENT" | "EVENT_TRIGGER" | "USER_PROFILE" | "FEEDBACK" | "INBOX_ITEM" | "INBOX_ITEM_FIX" | "SEGMENT" | "CUSTOMER" | "INTELLIGENT_FIELD" | "CHARTER";
6
+ type Raw = "AGENT" | "CONVERSATION" | "CONVERSATION_MESSAGE" | "KNOWLEDGE_BASE" | "KNOWLEDGE_BASE_VERSION" | "KNOWLEDGE_DOCUMENT" | "ACTION" | "USER" | "EVENT" | "EVENT_TRIGGER" | "USER_PROFILE" | "FEEDBACK" | "INBOX_ITEM" | "INBOX_ITEM_FIX" | "SEGMENT" | "CUSTOMER" | "INTELLIGENT_FIELD" | "CHARTER" | "CONVERSATION_KICKOFF" | "AGENT_VARIANT" | "CONFIG_SNAPSHOT";
7
7
  }
@@ -55,4 +55,7 @@ exports.EntityType = core.serialization.forwardCompatibleEnum_([
55
55
  "CUSTOMER",
56
56
  "INTELLIGENT_FIELD",
57
57
  "CHARTER",
58
+ "CONVERSATION_KICKOFF",
59
+ "AGENT_VARIANT",
60
+ "CONFIG_SNAPSHOT",
58
61
  ]);
@@ -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 { ConversationKickoffResult } from "./ConversationKickoffResult";
5
+ import { ConversationResponse } from "./ConversationResponse";
6
+ export declare const InitializeConversationResponse: core.serialization.ObjectSchema<serializers.InitializeConversationResponse.Raw, MavenAGI.InitializeConversationResponse>;
7
+ export declare namespace InitializeConversationResponse {
8
+ interface Raw extends ConversationResponse.Raw {
9
+ conversationKickoffResult?: ConversationKickoffResult.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.InitializeConversationResponse = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const ConversationKickoffResult_1 = require("./ConversationKickoffResult");
40
+ const ConversationResponse_1 = require("./ConversationResponse");
41
+ exports.InitializeConversationResponse = core.serialization
42
+ .object({
43
+ conversationKickoffResult: ConversationKickoffResult_1.ConversationKickoffResult.optional(),
44
+ })
45
+ .extend(ConversationResponse_1.ConversationResponse);
@@ -5,9 +5,10 @@ import { BooleanCondition } from "./BooleanCondition";
5
5
  import { NumericCondition } from "./NumericCondition";
6
6
  import { SetCondition } from "./SetCondition";
7
7
  import { StringCondition } from "./StringCondition";
8
+ import { UniversalCondition } from "./UniversalCondition";
8
9
  export declare const IntelligentFieldCondition: core.serialization.Schema<serializers.IntelligentFieldCondition.Raw, MavenAGI.IntelligentFieldCondition>;
9
10
  export declare namespace IntelligentFieldCondition {
10
- type Raw = IntelligentFieldCondition.String | IntelligentFieldCondition.Numeric | IntelligentFieldCondition.Boolean | IntelligentFieldCondition.Set;
11
+ type Raw = IntelligentFieldCondition.String | IntelligentFieldCondition.Numeric | IntelligentFieldCondition.Boolean | IntelligentFieldCondition.Set | IntelligentFieldCondition.Universal;
11
12
  interface String {
12
13
  fieldValidationType: "string";
13
14
  value: StringCondition.Raw;
@@ -23,4 +24,8 @@ export declare namespace IntelligentFieldCondition {
23
24
  fieldValidationType: "set";
24
25
  value: SetCondition.Raw;
25
26
  }
27
+ interface Universal {
28
+ fieldValidationType: "universal";
29
+ value: UniversalCondition.Raw;
30
+ }
26
31
  }
@@ -40,6 +40,7 @@ const BooleanCondition_1 = require("./BooleanCondition");
40
40
  const NumericCondition_1 = require("./NumericCondition");
41
41
  const SetCondition_1 = require("./SetCondition");
42
42
  const StringCondition_1 = require("./StringCondition");
43
+ const UniversalCondition_1 = require("./UniversalCondition");
43
44
  exports.IntelligentFieldCondition = core.serialization
44
45
  .union("fieldValidationType", {
45
46
  string: core.serialization.object({
@@ -52,6 +53,9 @@ exports.IntelligentFieldCondition = core.serialization
52
53
  set: core.serialization.object({
53
54
  value: SetCondition_1.SetCondition,
54
55
  }),
56
+ universal: core.serialization.object({
57
+ value: UniversalCondition_1.UniversalCondition,
58
+ }),
55
59
  })
56
60
  .transform({
57
61
  transform: (value) => value,
@@ -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 { SettingsSchemaEntryBase } from "./SettingsSchemaEntryBase";
5
+ export declare const JsonSchemaSettingsSchemaEntry: core.serialization.ObjectSchema<serializers.JsonSchemaSettingsSchemaEntry.Raw, MavenAGI.JsonSchemaSettingsSchemaEntry>;
6
+ export declare namespace JsonSchemaSettingsSchemaEntry {
7
+ interface Raw extends SettingsSchemaEntryBase.Raw {
8
+ jsonSchema: string;
9
+ defaultValue?: unknown | 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.JsonSchemaSettingsSchemaEntry = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const SettingsSchemaEntryBase_1 = require("./SettingsSchemaEntryBase");
40
+ exports.JsonSchemaSettingsSchemaEntry = core.serialization
41
+ .object({
42
+ jsonSchema: core.serialization.string(),
43
+ defaultValue: core.serialization.unknown().optional(),
44
+ })
45
+ .extend(SettingsSchemaEntryBase_1.SettingsSchemaEntryBase);
@@ -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 { PresenceOperator } from "./PresenceOperator";
5
+ export declare const PresenceCondition: core.serialization.ObjectSchema<serializers.PresenceCondition.Raw, MavenAGI.PresenceCondition>;
6
+ export declare namespace PresenceCondition {
7
+ interface Raw {
8
+ operator: PresenceOperator.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.PresenceCondition = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const PresenceOperator_1 = require("./PresenceOperator");
40
+ exports.PresenceCondition = core.serialization.object({
41
+ operator: PresenceOperator_1.PresenceOperator,
42
+ });
@@ -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 PresenceOperator: core.serialization.Schema<serializers.PresenceOperator.Raw, MavenAGI.PresenceOperator>;
5
+ export declare namespace PresenceOperator {
6
+ type Raw = "IS_UNDETERMINED" | "IS_DETERMINED";
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.PresenceOperator = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ exports.PresenceOperator = core.serialization.forwardCompatibleEnum_(["IS_UNDETERMINED", "IS_DETERMINED"]);
@@ -6,13 +6,15 @@ import { CheckboxSettingsSchemaEntry } from "./CheckboxSettingsSchemaEntry";
6
6
  import { ColorSettingsSchemaEntry } from "./ColorSettingsSchemaEntry";
7
7
  import { DropdownSettingsSchemaEntry } from "./DropdownSettingsSchemaEntry";
8
8
  import { ImageSettingsSchemaEntry } from "./ImageSettingsSchemaEntry";
9
+ import { JsonSchemaSettingsSchemaEntry } from "./JsonSchemaSettingsSchemaEntry";
9
10
  import { MultilineSettingsSchemaEntry } from "./MultilineSettingsSchemaEntry";
10
11
  import { NumberSettingsSchemaEntry } from "./NumberSettingsSchemaEntry";
11
12
  import { OAuthSettingsSchemaEntry } from "./OAuthSettingsSchemaEntry";
13
+ import { SwitchSettingsSchemaEntry } from "./SwitchSettingsSchemaEntry";
12
14
  import { TextSettingsSchemaEntry } from "./TextSettingsSchemaEntry";
13
15
  export declare const SettingsSchemaEntry: core.serialization.Schema<serializers.SettingsSchemaEntry.Raw, MavenAGI.SettingsSchemaEntry>;
14
16
  export declare namespace SettingsSchemaEntry {
15
- type Raw = SettingsSchemaEntry.Text | SettingsSchemaEntry.Multiline | SettingsSchemaEntry.Array | SettingsSchemaEntry.Complexarray | SettingsSchemaEntry.Color | SettingsSchemaEntry.Image | SettingsSchemaEntry.Checkbox | SettingsSchemaEntry.Dropdown | SettingsSchemaEntry.Section | SettingsSchemaEntry.Oauth | SettingsSchemaEntry.Number | SettingsSchemaEntry.OneOf;
17
+ type Raw = SettingsSchemaEntry.Text | SettingsSchemaEntry.Multiline | SettingsSchemaEntry.Array | SettingsSchemaEntry.Complexarray | SettingsSchemaEntry.Color | SettingsSchemaEntry.Image | SettingsSchemaEntry.Checkbox | SettingsSchemaEntry.Switch | SettingsSchemaEntry.Dropdown | SettingsSchemaEntry.Section | SettingsSchemaEntry.Oauth | SettingsSchemaEntry.Number | SettingsSchemaEntry.OneOf | SettingsSchemaEntry.JsonSchema;
16
18
  interface Text extends TextSettingsSchemaEntry.Raw {
17
19
  type: "text";
18
20
  }
@@ -34,6 +36,9 @@ export declare namespace SettingsSchemaEntry {
34
36
  interface Checkbox extends CheckboxSettingsSchemaEntry.Raw {
35
37
  type: "checkbox";
36
38
  }
39
+ interface Switch extends SwitchSettingsSchemaEntry.Raw {
40
+ type: "switch";
41
+ }
37
42
  interface Dropdown extends DropdownSettingsSchemaEntry.Raw {
38
43
  type: "dropdown";
39
44
  }
@@ -49,4 +54,7 @@ export declare namespace SettingsSchemaEntry {
49
54
  interface OneOf extends serializers.OneOfSettingsSchemaEntry.Raw {
50
55
  type: "oneOf";
51
56
  }
57
+ interface JsonSchema extends JsonSchemaSettingsSchemaEntry.Raw {
58
+ type: "jsonSchema";
59
+ }
52
60
  }
@@ -42,9 +42,11 @@ const CheckboxSettingsSchemaEntry_1 = require("./CheckboxSettingsSchemaEntry");
42
42
  const ColorSettingsSchemaEntry_1 = require("./ColorSettingsSchemaEntry");
43
43
  const DropdownSettingsSchemaEntry_1 = require("./DropdownSettingsSchemaEntry");
44
44
  const ImageSettingsSchemaEntry_1 = require("./ImageSettingsSchemaEntry");
45
+ const JsonSchemaSettingsSchemaEntry_1 = require("./JsonSchemaSettingsSchemaEntry");
45
46
  const MultilineSettingsSchemaEntry_1 = require("./MultilineSettingsSchemaEntry");
46
47
  const NumberSettingsSchemaEntry_1 = require("./NumberSettingsSchemaEntry");
47
48
  const OAuthSettingsSchemaEntry_1 = require("./OAuthSettingsSchemaEntry");
49
+ const SwitchSettingsSchemaEntry_1 = require("./SwitchSettingsSchemaEntry");
48
50
  const TextSettingsSchemaEntry_1 = require("./TextSettingsSchemaEntry");
49
51
  exports.SettingsSchemaEntry = core.serialization
50
52
  .union("type", {
@@ -55,11 +57,13 @@ exports.SettingsSchemaEntry = core.serialization
55
57
  color: ColorSettingsSchemaEntry_1.ColorSettingsSchemaEntry,
56
58
  image: ImageSettingsSchemaEntry_1.ImageSettingsSchemaEntry,
57
59
  checkbox: CheckboxSettingsSchemaEntry_1.CheckboxSettingsSchemaEntry,
60
+ switch: SwitchSettingsSchemaEntry_1.SwitchSettingsSchemaEntry,
58
61
  dropdown: DropdownSettingsSchemaEntry_1.DropdownSettingsSchemaEntry,
59
62
  section: core.serialization.lazyObject(() => serializers.SectionSettingsSchemaEntry),
60
63
  oauth: OAuthSettingsSchemaEntry_1.OAuthSettingsSchemaEntry,
61
64
  number: NumberSettingsSchemaEntry_1.NumberSettingsSchemaEntry,
62
65
  oneOf: core.serialization.lazyObject(() => serializers.OneOfSettingsSchemaEntry),
66
+ jsonSchema: JsonSchemaSettingsSchemaEntry_1.JsonSchemaSettingsSchemaEntry,
63
67
  })
64
68
  .transform({
65
69
  transform: (value) => value,
@@ -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 { SettingsSchemaEntryBase } from "./SettingsSchemaEntryBase";
5
+ export declare const SwitchSettingsSchemaEntry: core.serialization.ObjectSchema<serializers.SwitchSettingsSchemaEntry.Raw, MavenAGI.SwitchSettingsSchemaEntry>;
6
+ export declare namespace SwitchSettingsSchemaEntry {
7
+ interface Raw extends SettingsSchemaEntryBase.Raw {
8
+ defaultValue?: boolean | null;
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.SwitchSettingsSchemaEntry = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const SettingsSchemaEntryBase_1 = require("./SettingsSchemaEntryBase");
40
+ exports.SwitchSettingsSchemaEntry = core.serialization
41
+ .object({
42
+ defaultValue: core.serialization.boolean().optional(),
43
+ })
44
+ .extend(SettingsSchemaEntryBase_1.SettingsSchemaEntryBase);
@@ -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 { PresenceCondition } from "./PresenceCondition";
5
+ export declare const UniversalCondition: core.serialization.Schema<serializers.UniversalCondition.Raw, MavenAGI.UniversalCondition>;
6
+ export declare namespace UniversalCondition {
7
+ type Raw = UniversalCondition.Presence;
8
+ interface Presence extends PresenceCondition.Raw {
9
+ opType: "presence";
10
+ }
11
+ }
@@ -0,0 +1,47 @@
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.UniversalCondition = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const PresenceCondition_1 = require("./PresenceCondition");
40
+ exports.UniversalCondition = core.serialization
41
+ .union("opType", {
42
+ presence: PresenceCondition_1.PresenceCondition,
43
+ })
44
+ .transform({
45
+ transform: (value) => value,
46
+ untransform: (value) => value,
47
+ });