mavenagi 1.2.65 → 1.2.66

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 (159) hide show
  1. package/BaseClient.d.ts +4 -2
  2. package/BaseClient.js +8 -3
  3. package/README.md +2 -2
  4. package/api/resources/analytics/client/Client.d.ts +0 -38
  5. package/api/resources/analytics/client/Client.js +0 -120
  6. package/api/resources/analytics/types/AgentUserGroupBy.d.ts +15 -0
  7. package/api/resources/analytics/types/AgentUserRowIdentifier.d.ts +2 -0
  8. package/api/resources/analytics/types/AgentUserTableRequest.d.ts +7 -0
  9. package/api/resources/analytics/types/AgentUserTableResponse.d.ts +4 -1
  10. package/api/resources/analytics/types/index.d.ts +1 -10
  11. package/api/resources/analytics/types/index.js +1 -10
  12. package/api/resources/capabilities/client/requests/CapabilitiesSearchRequest.d.ts +0 -4
  13. package/api/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.d.ts +5 -0
  14. package/api/resources/capabilities/types/CapabilityExecutionBase.d.ts +5 -0
  15. package/api/resources/capabilities/types/CapabilityExecutionsSearchResponse.d.ts +3 -1
  16. package/api/resources/commons/types/AdditionalDataKey.d.ts +81 -3
  17. package/api/resources/commons/types/AdditionalDataKey.js +81 -3
  18. package/api/resources/commons/types/BaseConversationResponse.d.ts +6 -0
  19. package/api/resources/commons/types/BotMessage.d.ts +1 -1
  20. package/api/resources/commons/types/ConversationResponse.d.ts +1 -0
  21. package/api/resources/commons/types/ConversationValueSource.d.ts +4 -1
  22. package/api/resources/commons/types/ErrorReason.d.ts +2 -2
  23. package/api/resources/commons/types/ErrorReason.js +2 -2
  24. package/api/resources/commons/types/EventBaseNoId.d.ts +6 -0
  25. package/api/resources/commons/types/EventFilter.d.ts +2 -0
  26. package/api/resources/commons/types/EventTriggerType.d.ts +7 -0
  27. package/api/resources/commons/types/EventTriggerType.js +7 -0
  28. package/api/resources/commons/types/InitializeConversationResponse.d.ts +40 -0
  29. package/api/resources/commons/types/MetadataConversationValueFilter.d.ts +3 -3
  30. package/api/resources/commons/types/SimulationActionBehavior.d.ts +3 -2
  31. package/api/resources/commons/types/SimulationActionMock.d.ts +2 -1
  32. package/api/resources/commons/types/UserDataValueSource.d.ts +8 -0
  33. package/api/resources/commons/types/UserEventName.d.ts +79 -4
  34. package/api/resources/commons/types/UserEventName.js +79 -4
  35. package/api/resources/commons/types/index.d.ts +2 -0
  36. package/api/resources/commons/types/index.js +2 -0
  37. package/api/resources/conversation/client/Client.d.ts +42 -22
  38. package/api/resources/conversation/client/Client.js +44 -23
  39. package/api/resources/conversation/client/requests/ConversationGetRequest.d.ts +2 -0
  40. package/api/resources/conversation/types/ConversationRequest.d.ts +45 -0
  41. package/api/resources/conversation/types/DeliverConversationMessageRequest.d.ts +1 -1
  42. package/api/resources/conversation/types/index.d.ts +0 -3
  43. package/api/resources/conversation/types/index.js +0 -3
  44. package/api/resources/developersCommons/types/BaseDetailApp.d.ts +13 -4
  45. package/api/resources/developersCommons/types/Link.d.ts +1 -1
  46. package/api/resources/developersCommons/types/MarketplaceAppDetail.d.ts +2 -1
  47. package/api/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +0 -2
  48. package/api/resources/knowledge/types/KnowledgeBaseFunctionBindings.d.ts +12 -0
  49. package/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +1 -1
  50. package/api/resources/knowledge/types/index.d.ts +1 -0
  51. package/api/resources/knowledge/types/index.js +1 -0
  52. package/api/resources/organizations/client/Client.d.ts +13 -15
  53. package/api/resources/organizations/client/Client.js +13 -15
  54. package/api/resources/users/types/AgentUserField.d.ts +8 -0
  55. package/api/resources/users/types/AgentUserField.js +8 -0
  56. package/api/resources/users/types/AgentUserSearchRequest.d.ts +4 -0
  57. package/auth/AnyAuthProvider.d.ts +23 -0
  58. package/auth/AnyAuthProvider.js +46 -0
  59. package/auth/BearerAuthProvider.d.ts +20 -0
  60. package/auth/BearerAuthProvider.js +82 -0
  61. package/auth/index.d.ts +2 -0
  62. package/auth/index.js +5 -1
  63. package/package.json +1 -1
  64. package/reference.md +19 -117
  65. package/serialization/resources/analytics/types/AgentUserGroupBy.d.ts +15 -0
  66. package/serialization/resources/analytics/types/{FeedbackGroupBy.js → AgentUserGroupBy.js} +8 -4
  67. package/serialization/resources/analytics/types/AgentUserRowIdentifier.d.ts +2 -0
  68. package/serialization/resources/analytics/types/AgentUserRowIdentifier.js +2 -0
  69. package/serialization/resources/analytics/types/AgentUserTableRequest.d.ts +2 -0
  70. package/serialization/resources/analytics/types/AgentUserTableRequest.js +2 -0
  71. package/serialization/resources/analytics/types/index.d.ts +1 -10
  72. package/serialization/resources/analytics/types/index.js +1 -10
  73. package/serialization/resources/capabilities/client/requests/CapabilitiesSearchRequest.d.ts +0 -2
  74. package/serialization/resources/capabilities/client/requests/CapabilitiesSearchRequest.js +0 -2
  75. package/serialization/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.d.ts +2 -0
  76. package/serialization/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.js +2 -0
  77. package/serialization/resources/capabilities/types/CapabilityExecutionBase.d.ts +2 -0
  78. package/serialization/resources/capabilities/types/CapabilityExecutionBase.js +2 -0
  79. package/serialization/resources/commons/types/AdditionalDataKey.d.ts +1 -1
  80. package/serialization/resources/commons/types/AdditionalDataKey.js +26 -0
  81. package/serialization/resources/commons/types/BaseConversationResponse.d.ts +2 -0
  82. package/serialization/resources/commons/types/BaseConversationResponse.js +2 -0
  83. package/serialization/resources/commons/types/ConversationValueSource.d.ts +5 -1
  84. package/serialization/resources/commons/types/ConversationValueSource.js +2 -0
  85. package/serialization/resources/commons/types/EventBaseNoId.d.ts +2 -0
  86. package/serialization/resources/commons/types/EventBaseNoId.js +2 -0
  87. package/serialization/resources/commons/types/EventFilter.d.ts +2 -0
  88. package/serialization/resources/commons/types/EventFilter.js +2 -0
  89. package/serialization/resources/commons/types/UserDataValueSource.d.ts +9 -0
  90. package/serialization/resources/{analytics/types/FeedbackCount.js → commons/types/UserDataValueSource.js} +4 -2
  91. package/serialization/resources/commons/types/UserEventName.d.ts +1 -1
  92. package/serialization/resources/commons/types/UserEventName.js +25 -0
  93. package/serialization/resources/commons/types/index.d.ts +2 -0
  94. package/serialization/resources/commons/types/index.js +2 -0
  95. package/serialization/resources/conversation/types/ConversationFilter.d.ts +1 -1
  96. package/serialization/resources/conversation/types/ConversationFilter.js +1 -1
  97. package/serialization/resources/conversation/types/index.d.ts +0 -3
  98. package/serialization/resources/conversation/types/index.js +0 -3
  99. package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +0 -1
  100. package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.js +0 -1
  101. package/serialization/resources/knowledge/types/KnowledgeBaseFunctionBindings.d.ts +12 -0
  102. package/serialization/resources/{analytics/types/FeedbackAnalyticsRequest.js → knowledge/types/KnowledgeBaseFunctionBindings.js} +6 -5
  103. package/serialization/resources/knowledge/types/index.d.ts +1 -0
  104. package/serialization/resources/knowledge/types/index.js +1 -0
  105. package/serialization/resources/users/types/AgentUserField.d.ts +1 -1
  106. package/serialization/resources/users/types/AgentUserField.js +1 -1
  107. package/serialization/resources/users/types/AgentUserFilter.d.ts +1 -1
  108. package/serialization/resources/users/types/AgentUserFilter.js +1 -1
  109. package/version.d.ts +1 -1
  110. package/version.js +1 -1
  111. package/api/resources/analytics/types/FeedbackAnalyticsRequest.d.ts +0 -11
  112. package/api/resources/analytics/types/FeedbackColumnDefinition.d.ts +0 -5
  113. package/api/resources/analytics/types/FeedbackCount.d.ts +0 -4
  114. package/api/resources/analytics/types/FeedbackDistinctCount.d.ts +0 -9
  115. package/api/resources/analytics/types/FeedbackDistinctCount.js +0 -3
  116. package/api/resources/analytics/types/FeedbackGroupBy.d.ts +0 -5
  117. package/api/resources/analytics/types/FeedbackGroupBy.js +0 -3
  118. package/api/resources/analytics/types/FeedbackMetric.d.ts +0 -13
  119. package/api/resources/analytics/types/FeedbackMetric.js +0 -3
  120. package/api/resources/analytics/types/FeedbackRow.d.ts +0 -11
  121. package/api/resources/analytics/types/FeedbackRow.js +0 -3
  122. package/api/resources/analytics/types/FeedbackRowIdentifier.d.ts +0 -5
  123. package/api/resources/analytics/types/FeedbackRowIdentifier.js +0 -3
  124. package/api/resources/analytics/types/FeedbackTableRequest.d.ts +0 -38
  125. package/api/resources/analytics/types/FeedbackTableRequest.js +0 -3
  126. package/api/resources/analytics/types/FeedbackTableResponse.d.ts +0 -56
  127. package/api/resources/analytics/types/FeedbackTableResponse.js +0 -3
  128. package/api/resources/conversation/types/FeedbackField.d.ts +0 -7
  129. package/api/resources/conversation/types/FeedbackField.js +0 -10
  130. package/api/resources/conversation/types/FeedbackFilter.d.ts +0 -9
  131. package/api/resources/conversation/types/FeedbackFilter.js +0 -3
  132. package/serialization/resources/analytics/types/FeedbackAnalyticsRequest.d.ts +0 -11
  133. package/serialization/resources/analytics/types/FeedbackColumnDefinition.d.ts +0 -11
  134. package/serialization/resources/analytics/types/FeedbackColumnDefinition.js +0 -45
  135. package/serialization/resources/analytics/types/FeedbackCount.d.ts +0 -7
  136. package/serialization/resources/analytics/types/FeedbackDistinctCount.d.ts +0 -10
  137. package/serialization/resources/analytics/types/FeedbackDistinctCount.js +0 -42
  138. package/serialization/resources/analytics/types/FeedbackGroupBy.d.ts +0 -11
  139. package/serialization/resources/analytics/types/FeedbackMetric.d.ts +0 -15
  140. package/serialization/resources/analytics/types/FeedbackMetric.js +0 -49
  141. package/serialization/resources/analytics/types/FeedbackRow.d.ts +0 -14
  142. package/serialization/resources/analytics/types/FeedbackRow.js +0 -48
  143. package/serialization/resources/analytics/types/FeedbackRowIdentifier.d.ts +0 -11
  144. package/serialization/resources/analytics/types/FeedbackRowIdentifier.js +0 -45
  145. package/serialization/resources/analytics/types/FeedbackTableRequest.d.ts +0 -15
  146. package/serialization/resources/analytics/types/FeedbackTableRequest.js +0 -49
  147. package/serialization/resources/analytics/types/FeedbackTableResponse.d.ts +0 -11
  148. package/serialization/resources/analytics/types/FeedbackTableResponse.js +0 -45
  149. package/serialization/resources/conversation/types/FeedbackField.d.ts +0 -7
  150. package/serialization/resources/conversation/types/FeedbackField.js +0 -39
  151. package/serialization/resources/conversation/types/FeedbackFilter.d.ts +0 -15
  152. package/serialization/resources/conversation/types/FeedbackFilter.js +0 -47
  153. /package/api/resources/analytics/types/{FeedbackAnalyticsRequest.js → AgentUserGroupBy.js} +0 -0
  154. /package/api/resources/{conversation → commons}/types/SimulationFilter.d.ts +0 -0
  155. /package/api/resources/{conversation → commons}/types/SimulationFilter.js +0 -0
  156. /package/api/resources/{analytics/types/FeedbackColumnDefinition.js → commons/types/UserDataValueSource.js} +0 -0
  157. /package/api/resources/{analytics/types/FeedbackCount.js → knowledge/types/KnowledgeBaseFunctionBindings.js} +0 -0
  158. /package/serialization/resources/{conversation → commons}/types/SimulationFilter.d.ts +0 -0
  159. /package/serialization/resources/{conversation → commons}/types/SimulationFilter.js +0 -0
@@ -71,4 +71,29 @@ exports.UserEventName = core.serialization.forwardCompatibleEnum_([
71
71
  "ORDER_CANCELLED",
72
72
  "PAYMENT_FAILED",
73
73
  "ERROR_DISPLAYED",
74
+ "AD_IMPRESSION",
75
+ "EARN_VIRTUAL_CURRENCY",
76
+ "JOIN_GROUP",
77
+ "SELECT_CONTENT",
78
+ "SHARE",
79
+ "SPEND_VIRTUAL_CURRENCY",
80
+ "VIEW_ITEM_LIST",
81
+ "SELECT_ITEM",
82
+ "VIEW_ITEM",
83
+ "VIEW_PROMOTION",
84
+ "SELECT_PROMOTION",
85
+ "ADD_TO_WISHLIST",
86
+ "ADD_TO_CART",
87
+ "REMOVE_FROM_CART",
88
+ "VIEW_CART",
89
+ "BEGIN_CHECKOUT",
90
+ "ADD_SHIPPING_INFO",
91
+ "ADD_PAYMENT_INFO",
92
+ "REFUND",
93
+ "GENERATE_LEAD",
94
+ "QUALIFY_LEAD",
95
+ "DISQUALIFY_LEAD",
96
+ "WORKING_LEAD",
97
+ "CLOSE_CONVERT_LEAD",
98
+ "CLOSE_UNCONVERT_LEAD",
74
99
  ]);
@@ -218,6 +218,7 @@ export * from "./SimulationActionBehavior";
218
218
  export * from "./SimulationActionCallApp";
219
219
  export * from "./SimulationActionMock";
220
220
  export * from "./SimulationContext";
221
+ export * from "./SimulationFilter";
221
222
  export * from "./Source";
222
223
  export * from "./SourceInfo";
223
224
  export * from "./SourceType";
@@ -239,6 +240,7 @@ export * from "./TextSettingsSchemaEntry";
239
240
  export * from "./UniversalCondition";
240
241
  export * from "./UserConversationMessageType";
241
242
  export * from "./UserData";
243
+ export * from "./UserDataValueSource";
242
244
  export * from "./UserDataWithReference";
243
245
  export * from "./UserEvent";
244
246
  export * from "./UserEventName";
@@ -234,6 +234,7 @@ __exportStar(require("./SimulationActionBehavior"), exports);
234
234
  __exportStar(require("./SimulationActionCallApp"), exports);
235
235
  __exportStar(require("./SimulationActionMock"), exports);
236
236
  __exportStar(require("./SimulationContext"), exports);
237
+ __exportStar(require("./SimulationFilter"), exports);
237
238
  __exportStar(require("./Source"), exports);
238
239
  __exportStar(require("./SourceInfo"), exports);
239
240
  __exportStar(require("./SourceType"), exports);
@@ -255,6 +256,7 @@ __exportStar(require("./TextSettingsSchemaEntry"), exports);
255
256
  __exportStar(require("./UniversalCondition"), exports);
256
257
  __exportStar(require("./UserConversationMessageType"), exports);
257
258
  __exportStar(require("./UserData"), exports);
259
+ __exportStar(require("./UserDataValueSource"), exports);
258
260
  __exportStar(require("./UserDataWithReference"), exports);
259
261
  __exportStar(require("./UserEvent"), exports);
260
262
  __exportStar(require("./UserEventName"), exports);
@@ -11,8 +11,8 @@ import { QualityReason } from "../../commons/types/QualityReason";
11
11
  import { ResolutionStatus } from "../../commons/types/ResolutionStatus";
12
12
  import { ResponseLength } from "../../commons/types/ResponseLength";
13
13
  import { Sentiment } from "../../commons/types/Sentiment";
14
+ import { SimulationFilter } from "../../commons/types/SimulationFilter";
14
15
  import { BillableFilterField } from "./BillableFilterField";
15
- import { SimulationFilter } from "./SimulationFilter";
16
16
  export declare const ConversationFilter: core.serialization.ObjectSchema<serializers.ConversationFilter.Raw, MavenAGI.ConversationFilter>;
17
17
  export declare namespace ConversationFilter {
18
18
  interface Raw {
@@ -46,8 +46,8 @@ const QualityReason_1 = require("../../commons/types/QualityReason");
46
46
  const ResolutionStatus_1 = require("../../commons/types/ResolutionStatus");
47
47
  const ResponseLength_1 = require("../../commons/types/ResponseLength");
48
48
  const Sentiment_1 = require("../../commons/types/Sentiment");
49
+ const SimulationFilter_1 = require("../../commons/types/SimulationFilter");
49
50
  const BillableFilterField_1 = require("./BillableFilterField");
50
- const SimulationFilter_1 = require("./SimulationFilter");
51
51
  exports.ConversationFilter = core.serialization.object({
52
52
  search: core.serialization.string().optional(),
53
53
  createdAfter: core.serialization.date().optional(),
@@ -26,11 +26,8 @@ export * from "./DeliverMessageRequest";
26
26
  export * from "./DeliverMessageResponse";
27
27
  export * from "./DeliverUserMessageRequest";
28
28
  export * from "./DeliveryStatus";
29
- export * from "./FeedbackField";
30
- export * from "./FeedbackFilter";
31
29
  export * from "./FeedbackRequest";
32
30
  export * from "./NumericConversationField";
33
- export * from "./SimulationFilter";
34
31
  export * from "./StreamResponse";
35
32
  export * from "./SubmitActionFormRequest";
36
33
  export * from "./UpdateMetadataRequest";
@@ -42,11 +42,8 @@ __exportStar(require("./DeliverMessageRequest"), exports);
42
42
  __exportStar(require("./DeliverMessageResponse"), exports);
43
43
  __exportStar(require("./DeliverUserMessageRequest"), exports);
44
44
  __exportStar(require("./DeliveryStatus"), exports);
45
- __exportStar(require("./FeedbackField"), exports);
46
- __exportStar(require("./FeedbackFilter"), exports);
47
45
  __exportStar(require("./FeedbackRequest"), exports);
48
46
  __exportStar(require("./NumericConversationField"), exports);
49
- __exportStar(require("./SimulationFilter"), exports);
50
47
  __exportStar(require("./StreamResponse"), exports);
51
48
  __exportStar(require("./SubmitActionFormRequest"), exports);
52
49
  __exportStar(require("./UpdateMetadataRequest"), exports);
@@ -13,6 +13,5 @@ export declare namespace IntelligentFieldPatchRequest {
13
13
  description?: string | null;
14
14
  enumOptions?: EnumOption.Raw[] | null;
15
15
  variantId?: EntityIdWithoutAgent.Raw | null;
16
- variantAppId?: string | null;
17
16
  }
18
17
  }
@@ -46,5 +46,4 @@ exports.IntelligentFieldPatchRequest = core.serialization.object({
46
46
  description: core.serialization.string().optional(),
47
47
  enumOptions: core.serialization.list(EnumOption_1.EnumOption).optional(),
48
48
  variantId: EntityIdWithoutAgent_1.EntityIdWithoutAgent.optional(),
49
- variantAppId: core.serialization.string().optional(),
50
49
  });
@@ -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 { FunctionVersionBinding } from "../../commons/types/FunctionVersionBinding";
5
+ export declare const KnowledgeBaseFunctionBindings: core.serialization.ObjectSchema<serializers.KnowledgeBaseFunctionBindings.Raw, MavenAGI.KnowledgeBaseFunctionBindings>;
6
+ export declare namespace KnowledgeBaseFunctionBindings {
7
+ interface Raw {
8
+ fetchMetadata: FunctionVersionBinding.Raw;
9
+ fetchDocuments: FunctionVersionBinding.Raw;
10
+ convertDocuments: FunctionVersionBinding.Raw;
11
+ }
12
+ }
@@ -34,10 +34,11 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  };
35
35
  })();
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.FeedbackAnalyticsRequest = void 0;
37
+ exports.KnowledgeBaseFunctionBindings = void 0;
38
38
  const core = __importStar(require("../../../../core"));
39
- const FeedbackFilter_1 = require("../../conversation/types/FeedbackFilter");
40
- exports.FeedbackAnalyticsRequest = core.serialization.object({
41
- feedbackFilter: FeedbackFilter_1.FeedbackFilter.optional(),
42
- timezone: core.serialization.string().optional(),
39
+ const FunctionVersionBinding_1 = require("../../commons/types/FunctionVersionBinding");
40
+ exports.KnowledgeBaseFunctionBindings = core.serialization.object({
41
+ fetchMetadata: FunctionVersionBinding_1.FunctionVersionBinding,
42
+ fetchDocuments: FunctionVersionBinding_1.FunctionVersionBinding,
43
+ convertDocuments: FunctionVersionBinding_1.FunctionVersionBinding,
43
44
  });
@@ -4,6 +4,7 @@ export * from "./FinalizeKnowledgeBaseVersionRequest";
4
4
  export * from "./KnowledgeBaseDocumentDeltas";
5
5
  export * from "./KnowledgeBaseField";
6
6
  export * from "./KnowledgeBaseFilter";
7
+ export * from "./KnowledgeBaseFunctionBindings";
7
8
  export * from "./KnowledgeBaseIndexingProgressState";
8
9
  export * from "./KnowledgeBaseIndexingStatus";
9
10
  export * from "./KnowledgeBaseProperties";
@@ -20,6 +20,7 @@ __exportStar(require("./FinalizeKnowledgeBaseVersionRequest"), exports);
20
20
  __exportStar(require("./KnowledgeBaseDocumentDeltas"), exports);
21
21
  __exportStar(require("./KnowledgeBaseField"), exports);
22
22
  __exportStar(require("./KnowledgeBaseFilter"), exports);
23
+ __exportStar(require("./KnowledgeBaseFunctionBindings"), exports);
23
24
  __exportStar(require("./KnowledgeBaseIndexingProgressState"), exports);
24
25
  __exportStar(require("./KnowledgeBaseIndexingStatus"), exports);
25
26
  __exportStar(require("./KnowledgeBaseProperties"), exports);
@@ -3,5 +3,5 @@ import * as core from "../../../../core";
3
3
  import type * as serializers from "../../../index";
4
4
  export declare const AgentUserField: core.serialization.Schema<serializers.AgentUserField.Raw, MavenAGI.AgentUserField>;
5
5
  export declare namespace AgentUserField {
6
- type Raw = "CreatedAt" | "UpdatedAt";
6
+ type Raw = "CreatedAt" | "UpdatedAt" | "Anonymous" | "IntelligentField";
7
7
  }
@@ -36,4 +36,4 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.AgentUserField = void 0;
38
38
  const core = __importStar(require("../../../../core"));
39
- exports.AgentUserField = core.serialization.forwardCompatibleEnum_(["CreatedAt", "UpdatedAt"]);
39
+ exports.AgentUserField = core.serialization.forwardCompatibleEnum_(["CreatedAt", "UpdatedAt", "Anonymous", "IntelligentField"]);
@@ -2,7 +2,7 @@ import type * as MavenAGI from "../../../../api/index";
2
2
  import * as core from "../../../../core";
3
3
  import type * as serializers from "../../../index";
4
4
  import { IntelligentFieldFilter } from "../../commons/types/IntelligentFieldFilter";
5
- import { SimulationFilter } from "../../conversation/types/SimulationFilter";
5
+ import { SimulationFilter } from "../../commons/types/SimulationFilter";
6
6
  export declare const AgentUserFilter: core.serialization.ObjectSchema<serializers.AgentUserFilter.Raw, MavenAGI.AgentUserFilter>;
7
7
  export declare namespace AgentUserFilter {
8
8
  interface Raw {
@@ -37,7 +37,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.AgentUserFilter = void 0;
38
38
  const core = __importStar(require("../../../../core"));
39
39
  const IntelligentFieldFilter_1 = require("../../commons/types/IntelligentFieldFilter");
40
- const SimulationFilter_1 = require("../../conversation/types/SimulationFilter");
40
+ const SimulationFilter_1 = require("../../commons/types/SimulationFilter");
41
41
  exports.AgentUserFilter = core.serialization.object({
42
42
  search: core.serialization.string().optional(),
43
43
  identifiers: core.serialization.list(core.serialization.string()).optional(),
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.2.65";
1
+ export declare const SDK_VERSION = "1.2.66";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.2.65";
4
+ exports.SDK_VERSION = "1.2.66";
@@ -1,11 +0,0 @@
1
- import type * as MavenAGI from "../../../index";
2
- export interface FeedbackAnalyticsRequest {
3
- /** Optional filter applied to refine the feedback data before processing. */
4
- feedbackFilter?: MavenAGI.FeedbackFilter;
5
- /**
6
- * IANA timezone identifier (e.g., "America/Los_Angeles").
7
- * When provided, time-based groupings (e.g., DAY) and date filters are evaluated in this timezone;
8
- * otherwise UTC is used.
9
- */
10
- timezone?: string;
11
- }
@@ -1,5 +0,0 @@
1
- import type * as MavenAGI from "../../../index";
2
- export interface FeedbackColumnDefinition extends MavenAGI.ColumnDefinitionBase {
3
- /** The metric calculated for this column, stored in the row data under the specified header. */
4
- metric: MavenAGI.FeedbackMetric;
5
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * Returns the total count of records in a group.
3
- */
4
- export type FeedbackCount = {};
@@ -1,9 +0,0 @@
1
- import type * as MavenAGI from "../../../index";
2
- /**
3
- * Calculates the number of unique values in the specified field.
4
- * Supports fields with list values as well.
5
- */
6
- export interface FeedbackDistinctCount {
7
- /** All the distinct values of this field will be counted. */
8
- targetField: MavenAGI.FeedbackField;
9
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- import type * as MavenAGI from "../../../index";
2
- export interface FeedbackGroupBy extends MavenAGI.GroupByBase {
3
- /** Field used for data grouping. */
4
- field: MavenAGI.FeedbackField;
5
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- import type * as MavenAGI from "../../../index";
2
- /**
3
- * Defines the metric to be calculated for a column or chart.
4
- */
5
- export type FeedbackMetric = MavenAGI.FeedbackMetric.Count | MavenAGI.FeedbackMetric.DistinctCount;
6
- export declare namespace FeedbackMetric {
7
- interface Count extends MavenAGI.FeedbackCount {
8
- type: "count";
9
- }
10
- interface DistinctCount extends MavenAGI.FeedbackDistinctCount {
11
- type: "distinctCount";
12
- }
13
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- import type * as MavenAGI from "../../../index";
2
- export interface FeedbackRow extends MavenAGI.RowBase {
3
- /**
4
- * Keyed by field, so it cannot represent two groupings that share a key - notably two
5
- * intelligent fields. Use `identifiers`, which carries one entry per grouping in request
6
- * order.
7
- */
8
- identifier: Partial<Record<MavenAGI.FeedbackField, MavenAGI.FieldValue>>;
9
- /** One entry per grouping, in the order the groupings were requested. */
10
- identifiers: MavenAGI.FeedbackRowIdentifier[];
11
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- import type * as MavenAGI from "../../../index";
2
- export interface FeedbackRowIdentifier extends MavenAGI.RowIdentifierBase {
3
- /** Field this grouping was on. */
4
- field: MavenAGI.FeedbackField;
5
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,38 +0,0 @@
1
- import type * as MavenAGI from "../../../index";
2
- /**
3
- * @example
4
- * {
5
- * feedbackFilter: {
6
- * types: [MavenAGI.FeedbackType.ThumbsUp, MavenAGI.FeedbackType.Insert]
7
- * },
8
- * fieldGroupings: [{
9
- * field: MavenAGI.FeedbackField.CreatedBy
10
- * }],
11
- * columnDefinitions: [{
12
- * header: "feedback_count",
13
- * metric: {
14
- * type: "count"
15
- * }
16
- * }]
17
- * }
18
- */
19
- export interface FeedbackTableRequest extends MavenAGI.FeedbackAnalyticsRequest {
20
- /**
21
- * Defines the time interval for grouping data. If specified, data is grouped accordingly based on the time they were created.
22
- * Example: If set to "DAY," data will be aggregated by day.
23
- */
24
- timeGrouping?: MavenAGI.TimeInterval;
25
- /**
26
- * Specifies the fields by which data should be grouped. Each unique combination forms a row.
27
- * If multiple fields are provided, the result is grouped by their unique value combinations.
28
- * If empty, all data is aggregated into a single row.
29
- * Note: The field CreatedAt should not be used here, all the time-based grouping should be done using the timeGrouping field.
30
- */
31
- fieldGroupings: MavenAGI.FeedbackGroupBy[];
32
- /**
33
- * Specifies the metrics to be displayed as columns.
34
- * Column headers act as keys, with computed metric values as their mapped values.
35
- * There needs to be at least one column definition in the table request.
36
- */
37
- columnDefinitions: MavenAGI.FeedbackColumnDefinition[];
38
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,56 +0,0 @@
1
- import type * as MavenAGI from "../../../index";
2
- /**
3
- * @example
4
- * {
5
- * headers: ["feedback_count", "unique_users"],
6
- * rows: [{
7
- * identifier: {
8
- * [MavenAGI.FeedbackField.CreatedBy]: {
9
- * type: "string",
10
- * value: "John Doe"
11
- * }
12
- * },
13
- * identifiers: [{
14
- * field: MavenAGI.FeedbackField.CreatedBy,
15
- * value: {
16
- * type: "string",
17
- * value: "John Doe"
18
- * }
19
- * }],
20
- * data: {
21
- * "feedback_count": {
22
- * type: "double",
23
- * value: 5
24
- * }
25
- * }
26
- * }, {
27
- * identifier: {
28
- * [MavenAGI.FeedbackField.CreatedBy]: {
29
- * type: "string",
30
- * value: "Jane Smith"
31
- * }
32
- * },
33
- * identifiers: [{
34
- * field: MavenAGI.FeedbackField.CreatedBy,
35
- * value: {
36
- * type: "string",
37
- * value: "Jane Smith"
38
- * }
39
- * }],
40
- * data: {
41
- * "feedback_count": {
42
- * type: "double",
43
- * value: 3
44
- * }
45
- * }
46
- * }]
47
- * }
48
- */
49
- export interface FeedbackTableResponse extends MavenAGI.TableResponseBase {
50
- /**
51
- * The dataset rows, where each row represents a unique combination of grouping field values.
52
- * The identifier map contains grouping field names mapped to their respective values.
53
- * The data map contains column headers mapped to their respective metric values.
54
- */
55
- rows: MavenAGI.FeedbackRow[];
56
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- export declare const FeedbackField: {
2
- readonly Type: "Type";
3
- readonly CreatedBy: "CreatedBy";
4
- readonly CreatedAt: "CreatedAt";
5
- readonly App: "App";
6
- };
7
- export type FeedbackField = (typeof FeedbackField)[keyof typeof FeedbackField] | string;
@@ -1,10 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.FeedbackField = void 0;
5
- exports.FeedbackField = {
6
- Type: "Type",
7
- CreatedBy: "CreatedBy",
8
- CreatedAt: "CreatedAt",
9
- App: "App",
10
- };
@@ -1,9 +0,0 @@
1
- import type * as MavenAGI from "../../../index";
2
- export interface FeedbackFilter {
3
- search?: string;
4
- createdAfter?: Date;
5
- createdBefore?: Date;
6
- users?: string[];
7
- apps?: string[];
8
- types?: MavenAGI.FeedbackType[];
9
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- import type * as MavenAGI from "../../../../api/index";
2
- import * as core from "../../../../core";
3
- import type * as serializers from "../../../index";
4
- import { FeedbackFilter } from "../../conversation/types/FeedbackFilter";
5
- export declare const FeedbackAnalyticsRequest: core.serialization.ObjectSchema<serializers.FeedbackAnalyticsRequest.Raw, MavenAGI.FeedbackAnalyticsRequest>;
6
- export declare namespace FeedbackAnalyticsRequest {
7
- interface Raw {
8
- feedbackFilter?: FeedbackFilter.Raw | null;
9
- timezone?: string | null;
10
- }
11
- }
@@ -1,11 +0,0 @@
1
- import type * as MavenAGI from "../../../../api/index";
2
- import * as core from "../../../../core";
3
- import type * as serializers from "../../../index";
4
- import { ColumnDefinitionBase } from "./ColumnDefinitionBase";
5
- import { FeedbackMetric } from "./FeedbackMetric";
6
- export declare const FeedbackColumnDefinition: core.serialization.ObjectSchema<serializers.FeedbackColumnDefinition.Raw, MavenAGI.FeedbackColumnDefinition>;
7
- export declare namespace FeedbackColumnDefinition {
8
- interface Raw extends ColumnDefinitionBase.Raw {
9
- metric: FeedbackMetric.Raw;
10
- }
11
- }
@@ -1,45 +0,0 @@
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.FeedbackColumnDefinition = void 0;
38
- const core = __importStar(require("../../../../core"));
39
- const ColumnDefinitionBase_1 = require("./ColumnDefinitionBase");
40
- const FeedbackMetric_1 = require("./FeedbackMetric");
41
- exports.FeedbackColumnDefinition = core.serialization
42
- .object({
43
- metric: FeedbackMetric_1.FeedbackMetric,
44
- })
45
- .extend(ColumnDefinitionBase_1.ColumnDefinitionBase);
@@ -1,7 +0,0 @@
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 FeedbackCount: core.serialization.ObjectSchema<serializers.FeedbackCount.Raw, MavenAGI.FeedbackCount>;
5
- export declare namespace FeedbackCount {
6
- type Raw = {};
7
- }
@@ -1,10 +0,0 @@
1
- import type * as MavenAGI from "../../../../api/index";
2
- import * as core from "../../../../core";
3
- import type * as serializers from "../../../index";
4
- import { FeedbackField } from "../../conversation/types/FeedbackField";
5
- export declare const FeedbackDistinctCount: core.serialization.ObjectSchema<serializers.FeedbackDistinctCount.Raw, MavenAGI.FeedbackDistinctCount>;
6
- export declare namespace FeedbackDistinctCount {
7
- interface Raw {
8
- targetField: FeedbackField.Raw;
9
- }
10
- }
@@ -1,42 +0,0 @@
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.FeedbackDistinctCount = void 0;
38
- const core = __importStar(require("../../../../core"));
39
- const FeedbackField_1 = require("../../conversation/types/FeedbackField");
40
- exports.FeedbackDistinctCount = core.serialization.object({
41
- targetField: FeedbackField_1.FeedbackField,
42
- });
@@ -1,11 +0,0 @@
1
- import type * as MavenAGI from "../../../../api/index";
2
- import * as core from "../../../../core";
3
- import type * as serializers from "../../../index";
4
- import { FeedbackField } from "../../conversation/types/FeedbackField";
5
- import { GroupByBase } from "./GroupByBase";
6
- export declare const FeedbackGroupBy: core.serialization.ObjectSchema<serializers.FeedbackGroupBy.Raw, MavenAGI.FeedbackGroupBy>;
7
- export declare namespace FeedbackGroupBy {
8
- interface Raw extends GroupByBase.Raw {
9
- field: FeedbackField.Raw;
10
- }
11
- }