mavenagi 0.0.0-alpha.20 → 0.0.0-alpha.22

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 (111) hide show
  1. package/README.md +19 -6
  2. package/api/resources/actions/client/Client.d.ts +1 -1
  3. package/api/resources/actions/client/Client.js +7 -4
  4. package/api/resources/actions/types/ConversationExecutedActionPrecondition.d.ts +1 -3
  5. package/api/resources/actions/types/ConversationPrecondition.d.ts +2 -6
  6. package/api/resources/actions/types/MetadataPrecondition.d.ts +1 -3
  7. package/api/resources/actions/types/PreconditionBase.d.ts +8 -0
  8. package/api/resources/actions/types/PreconditionBase.js +4 -0
  9. package/api/resources/actions/types/TagsPrecondition.d.ts +8 -0
  10. package/api/resources/actions/types/TagsPrecondition.js +4 -0
  11. package/api/resources/actions/types/index.d.ts +4 -2
  12. package/api/resources/actions/types/index.js +4 -2
  13. package/api/resources/appSettings/client/Client.js +2 -1
  14. package/api/resources/conversation/client/Client.d.ts +20 -9
  15. package/api/resources/conversation/client/Client.js +40 -19
  16. package/api/resources/conversation/types/ConversationAnalysis.d.ts +4 -0
  17. package/api/resources/knowledge/client/Client.d.ts +4 -4
  18. package/api/resources/knowledge/client/Client.js +18 -11
  19. package/api/resources/triggers/client/Client.d.ts +1 -1
  20. package/api/resources/triggers/client/Client.js +7 -4
  21. package/api/resources/users/client/Client.d.ts +2 -2
  22. package/api/resources/users/client/Client.js +6 -4
  23. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +8 -8
  24. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +23 -2
  25. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +2 -1
  26. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +16 -0
  27. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +2 -1
  28. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +23 -2
  29. package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -0
  30. package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +1 -1
  31. package/core/schemas/Schema.d.ts +1 -0
  32. package/core/schemas/Schema.js +1 -0
  33. package/core/schemas/builders/bigint/bigint.d.ts +2 -0
  34. package/core/schemas/builders/bigint/bigint.js +46 -0
  35. package/core/schemas/builders/bigint/index.d.ts +1 -0
  36. package/core/schemas/builders/bigint/index.js +1 -0
  37. package/core/schemas/builders/index.d.ts +1 -0
  38. package/core/schemas/builders/index.js +1 -0
  39. package/core/schemas/utils/getErrorMessageForIncorrectType.js +4 -0
  40. package/dist/api/resources/actions/client/Client.d.ts +1 -1
  41. package/dist/api/resources/actions/client/Client.js +7 -4
  42. package/dist/api/resources/actions/types/ConversationExecutedActionPrecondition.d.ts +1 -3
  43. package/dist/api/resources/actions/types/ConversationPrecondition.d.ts +2 -6
  44. package/dist/api/resources/actions/types/MetadataPrecondition.d.ts +1 -3
  45. package/dist/api/resources/actions/types/PreconditionBase.d.ts +8 -0
  46. package/dist/api/resources/actions/types/PreconditionBase.js +4 -0
  47. package/dist/api/resources/actions/types/TagsPrecondition.d.ts +8 -0
  48. package/dist/api/resources/actions/types/TagsPrecondition.js +4 -0
  49. package/dist/api/resources/actions/types/index.d.ts +4 -2
  50. package/dist/api/resources/actions/types/index.js +4 -2
  51. package/dist/api/resources/appSettings/client/Client.js +2 -1
  52. package/dist/api/resources/conversation/client/Client.d.ts +20 -9
  53. package/dist/api/resources/conversation/client/Client.js +40 -19
  54. package/dist/api/resources/conversation/types/ConversationAnalysis.d.ts +4 -0
  55. package/dist/api/resources/knowledge/client/Client.d.ts +4 -4
  56. package/dist/api/resources/knowledge/client/Client.js +18 -11
  57. package/dist/api/resources/triggers/client/Client.d.ts +1 -1
  58. package/dist/api/resources/triggers/client/Client.js +7 -4
  59. package/dist/api/resources/users/client/Client.d.ts +2 -2
  60. package/dist/api/resources/users/client/Client.js +6 -4
  61. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +8 -8
  62. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +23 -2
  63. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +2 -1
  64. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +16 -0
  65. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +2 -1
  66. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +23 -2
  67. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -0
  68. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +1 -1
  69. package/dist/core/schemas/Schema.d.ts +1 -0
  70. package/dist/core/schemas/Schema.js +1 -0
  71. package/dist/core/schemas/builders/bigint/bigint.d.ts +2 -0
  72. package/dist/core/schemas/builders/bigint/bigint.js +46 -0
  73. package/dist/core/schemas/builders/bigint/index.d.ts +1 -0
  74. package/dist/core/schemas/builders/bigint/index.js +1 -0
  75. package/dist/core/schemas/builders/index.d.ts +1 -0
  76. package/dist/core/schemas/builders/index.js +1 -0
  77. package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +4 -0
  78. package/dist/serialization/resources/actions/types/ConversationExecutedActionPrecondition.d.ts +2 -3
  79. package/dist/serialization/resources/actions/types/ConversationExecutedActionPrecondition.js +5 -4
  80. package/dist/serialization/resources/actions/types/ConversationPrecondition.d.ts +2 -2
  81. package/dist/serialization/resources/actions/types/ConversationPrecondition.js +2 -3
  82. package/dist/serialization/resources/actions/types/MetadataPrecondition.d.ts +2 -3
  83. package/dist/serialization/resources/actions/types/MetadataPrecondition.js +5 -4
  84. package/dist/serialization/resources/actions/types/PreconditionBase.d.ts +13 -0
  85. package/dist/serialization/resources/actions/types/PreconditionBase.js +8 -0
  86. package/dist/serialization/resources/actions/types/TagsPrecondition.d.ts +13 -0
  87. package/dist/serialization/resources/actions/types/TagsPrecondition.js +10 -0
  88. package/dist/serialization/resources/actions/types/index.d.ts +4 -2
  89. package/dist/serialization/resources/actions/types/index.js +4 -2
  90. package/dist/serialization/resources/conversation/types/ConversationAnalysis.d.ts +2 -0
  91. package/dist/serialization/resources/conversation/types/ConversationAnalysis.js +2 -0
  92. package/dist/version.d.ts +1 -0
  93. package/dist/version.js +1 -0
  94. package/package.json +6 -1
  95. package/reference.md +30 -17
  96. package/serialization/resources/actions/types/ConversationExecutedActionPrecondition.d.ts +2 -3
  97. package/serialization/resources/actions/types/ConversationExecutedActionPrecondition.js +5 -4
  98. package/serialization/resources/actions/types/ConversationPrecondition.d.ts +2 -2
  99. package/serialization/resources/actions/types/ConversationPrecondition.js +2 -3
  100. package/serialization/resources/actions/types/MetadataPrecondition.d.ts +2 -3
  101. package/serialization/resources/actions/types/MetadataPrecondition.js +5 -4
  102. package/serialization/resources/actions/types/PreconditionBase.d.ts +13 -0
  103. package/serialization/resources/actions/types/PreconditionBase.js +8 -0
  104. package/serialization/resources/actions/types/TagsPrecondition.d.ts +13 -0
  105. package/serialization/resources/actions/types/TagsPrecondition.js +10 -0
  106. package/serialization/resources/actions/types/index.d.ts +4 -2
  107. package/serialization/resources/actions/types/index.js +4 -2
  108. package/serialization/resources/conversation/types/ConversationAnalysis.d.ts +2 -0
  109. package/serialization/resources/conversation/types/ConversationAnalysis.js +2 -0
  110. package/version.d.ts +1 -0
  111. package/version.js +1 -0
package/README.md CHANGED
@@ -16,7 +16,7 @@ npm i -s mavenagi
16
16
  Instantiate and use the client with the following:
17
17
 
18
18
  ```typescript
19
- import { MavenAGIClient, MavenAGI } from "mavenagi";
19
+ import { MavenAGIClient } from "mavenagi";
20
20
 
21
21
  const client = new MavenAGIClient({
22
22
  appId: "YOUR_APP_ID",
@@ -28,16 +28,29 @@ await client.conversation.initialize({
28
28
  conversationId: {
29
29
  referenceId: "string",
30
30
  },
31
- messages: [{}],
31
+ messages: [
32
+ {
33
+ conversationMessageId: {
34
+ referenceId: "string",
35
+ },
36
+ userId: {
37
+ referenceId: "string",
38
+ },
39
+ text: "string",
40
+ userMessageType: "USER",
41
+ createdAt: "2024-01-15T09:30:00Z",
42
+ updatedAt: "2024-01-15T09:30:00Z",
43
+ },
44
+ ],
32
45
  responseConfig: {
33
- capabilities: [MavenAGI.Capability.Markdown],
46
+ capabilities: ["MARKDOWN"],
34
47
  isCopilot: true,
35
- responseLength: MavenAGI.ResponseLength.Short,
48
+ responseLength: "SHORT",
36
49
  },
37
50
  subject: "string",
38
51
  url: "string",
39
- createdAt: new Date("2024-01-15T09:30:00.000Z"),
40
- updatedAt: new Date("2024-01-15T09:30:00.000Z"),
52
+ createdAt: "2024-01-15T09:30:00Z",
53
+ updatedAt: "2024-01-15T09:30:00Z",
41
54
  tags: new Set(["string"]),
42
55
  metadata: {
43
56
  string: "string",
@@ -52,7 +52,7 @@ export declare class Actions {
52
52
  * userFormParameters: [],
53
53
  * precondition: {
54
54
  * preconditionType: "group",
55
- * operator: MavenAGI.PreconditionGroupOperator.And,
55
+ * operator: "AND",
56
56
  * preconditions: [{
57
57
  * preconditionType: "user",
58
58
  * key: "userKey"
@@ -41,7 +41,7 @@ export class Actions {
41
41
  * userFormParameters: [],
42
42
  * precondition: {
43
43
  * preconditionType: "group",
44
- * operator: MavenAGI.PreconditionGroupOperator.And,
44
+ * operator: "AND",
45
45
  * preconditions: [{
46
46
  * preconditionType: "user",
47
47
  * key: "userKey"
@@ -64,7 +64,8 @@ export class Actions {
64
64
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
65
65
  "X-Fern-Language": "JavaScript",
66
66
  "X-Fern-SDK-Name": "mavenagi",
67
- "X-Fern-SDK-Version": "0.0.0-alpha.20",
67
+ "X-Fern-SDK-Version": "0.0.0-alpha.22",
68
+ "User-Agent": "mavenagi/0.0.0-alpha.22",
68
69
  "X-Fern-Runtime": core.RUNTIME.type,
69
70
  "X-Fern-Runtime-Version": core.RUNTIME.version,
70
71
  },
@@ -153,7 +154,8 @@ export class Actions {
153
154
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
154
155
  "X-Fern-Language": "JavaScript",
155
156
  "X-Fern-SDK-Name": "mavenagi",
156
- "X-Fern-SDK-Version": "0.0.0-alpha.20",
157
+ "X-Fern-SDK-Version": "0.0.0-alpha.22",
158
+ "User-Agent": "mavenagi/0.0.0-alpha.22",
157
159
  "X-Fern-Runtime": core.RUNTIME.type,
158
160
  "X-Fern-Runtime-Version": core.RUNTIME.version,
159
161
  },
@@ -241,7 +243,8 @@ export class Actions {
241
243
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
242
244
  "X-Fern-Language": "JavaScript",
243
245
  "X-Fern-SDK-Name": "mavenagi",
244
- "X-Fern-SDK-Version": "0.0.0-alpha.20",
246
+ "X-Fern-SDK-Version": "0.0.0-alpha.22",
247
+ "User-Agent": "mavenagi/0.0.0-alpha.22",
245
248
  "X-Fern-Runtime": core.RUNTIME.type,
246
249
  "X-Fern-Runtime-Version": core.RUNTIME.version,
247
250
  },
@@ -2,9 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as MavenAGI from "../../../index";
5
- export interface ConversationExecutedActionPrecondition {
6
- /** Operator to apply to this precondition */
7
- operator?: MavenAGI.PreconditionOperator;
5
+ export interface ConversationExecutedActionPrecondition extends MavenAGI.PreconditionBase {
8
6
  /** ID of an action that must have executed in this conversation for the precondition to be met */
9
7
  actionId: string;
10
8
  /** App ID that the given actionId belongs to. If not provided, the calling appId will be used. */
@@ -2,14 +2,10 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as MavenAGI from "../../../index";
5
- export declare type ConversationPrecondition =
6
- /**
7
- * The tags that must be present in the conversation context for the precondition to be met */
8
- MavenAGI.ConversationPrecondition.Tags | MavenAGI.ConversationPrecondition.Metadata | MavenAGI.ConversationPrecondition.ActionExecuted;
5
+ export declare type ConversationPrecondition = MavenAGI.ConversationPrecondition.Tags | MavenAGI.ConversationPrecondition.Metadata | MavenAGI.ConversationPrecondition.ActionExecuted;
9
6
  export declare namespace ConversationPrecondition {
10
- interface Tags {
7
+ interface Tags extends MavenAGI.TagsPrecondition {
11
8
  conversationPreconditionType: "tags";
12
- value: Set<string>;
13
9
  }
14
10
  interface Metadata extends MavenAGI.MetadataPrecondition {
15
11
  conversationPreconditionType: "metadata";
@@ -2,9 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as MavenAGI from "../../../index";
5
- export interface MetadataPrecondition {
6
- /** Operator to apply to this precondition */
7
- operator?: MavenAGI.PreconditionOperator;
5
+ export interface MetadataPrecondition extends MavenAGI.PreconditionBase {
8
6
  /** The key that must be present in the metadata for a precondition to be met */
9
7
  key: string;
10
8
  /** If set, the value must match the metadata value for the given key */
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as MavenAGI from "../../../index";
5
+ export interface PreconditionBase {
6
+ /** Operator to apply to this precondition */
7
+ operator?: MavenAGI.PreconditionOperator;
8
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as MavenAGI from "../../../index";
5
+ export interface TagsPrecondition extends MavenAGI.PreconditionBase {
6
+ /** The tags that must be present in the conversation context for the precondition to be met */
7
+ tags: Set<string>;
8
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -3,9 +3,11 @@ export * from "./ActionParameter";
3
3
  export * from "./ActionRequest";
4
4
  export * from "./ActionResponse";
5
5
  export * from "./Precondition";
6
- export * from "./MetadataPrecondition";
7
6
  export * from "./PreconditionOperator";
7
+ export * from "./PreconditionBase";
8
+ export * from "./MetadataPrecondition";
8
9
  export * from "./ConversationPrecondition";
9
- export * from "./PreconditionGroup";
10
10
  export * from "./PreconditionGroupOperator";
11
+ export * from "./PreconditionGroup";
12
+ export * from "./TagsPrecondition";
11
13
  export * from "./ConversationExecutedActionPrecondition";
@@ -3,9 +3,11 @@ export * from "./ActionParameter";
3
3
  export * from "./ActionRequest";
4
4
  export * from "./ActionResponse";
5
5
  export * from "./Precondition";
6
- export * from "./MetadataPrecondition";
7
6
  export * from "./PreconditionOperator";
7
+ export * from "./PreconditionBase";
8
+ export * from "./MetadataPrecondition";
8
9
  export * from "./ConversationPrecondition";
9
- export * from "./PreconditionGroup";
10
10
  export * from "./PreconditionGroupOperator";
11
+ export * from "./PreconditionGroup";
12
+ export * from "./TagsPrecondition";
11
13
  export * from "./ConversationExecutedActionPrecondition";
@@ -44,7 +44,8 @@ export class AppSettings {
44
44
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
45
45
  "X-Fern-Language": "JavaScript",
46
46
  "X-Fern-SDK-Name": "mavenagi",
47
- "X-Fern-SDK-Version": "0.0.0-alpha.20",
47
+ "X-Fern-SDK-Version": "0.0.0-alpha.22",
48
+ "User-Agent": "mavenagi/0.0.0-alpha.22",
48
49
  "X-Fern-Runtime": core.RUNTIME.type,
49
50
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
51
  },
@@ -46,16 +46,27 @@ export declare class Conversation {
46
46
  * conversationId: {
47
47
  * referenceId: "string"
48
48
  * },
49
- * messages: [{}],
49
+ * messages: [{
50
+ * conversationMessageId: {
51
+ * referenceId: "string"
52
+ * },
53
+ * userId: {
54
+ * referenceId: "string"
55
+ * },
56
+ * text: "string",
57
+ * userMessageType: "USER",
58
+ * createdAt: "2024-01-15T09:30:00Z",
59
+ * updatedAt: "2024-01-15T09:30:00Z"
60
+ * }],
50
61
  * responseConfig: {
51
- * capabilities: [MavenAGI.Capability.Markdown],
62
+ * capabilities: ["MARKDOWN"],
52
63
  * isCopilot: true,
53
- * responseLength: MavenAGI.ResponseLength.Short
64
+ * responseLength: "SHORT"
54
65
  * },
55
66
  * subject: "string",
56
67
  * url: "string",
57
- * createdAt: new Date("2024-01-15T09:30:00.000Z"),
58
- * updatedAt: new Date("2024-01-15T09:30:00.000Z"),
68
+ * createdAt: "2024-01-15T09:30:00Z",
69
+ * updatedAt: "2024-01-15T09:30:00Z",
59
70
  * tags: new Set(["string"]),
60
71
  * metadata: {
61
72
  * "string": "string"
@@ -97,9 +108,9 @@ export declare class Conversation {
97
108
  * referenceId: "string"
98
109
  * },
99
110
  * text: "string",
100
- * userMessageType: MavenAGI.UserConversationMessageType.User,
101
- * createdAt: new Date("2024-01-15T09:30:00.000Z"),
102
- * updatedAt: new Date("2024-01-15T09:30:00.000Z")
111
+ * userMessageType: "USER",
112
+ * createdAt: "2024-01-15T09:30:00Z",
113
+ * updatedAt: "2024-01-15T09:30:00Z"
103
114
  * }])
104
115
  */
105
116
  appendNewMessages(conversationId: string, request: MavenAGI.ConversationMessageRequest[], requestOptions?: Conversation.RequestOptions): Promise<MavenAGI.ConversationResponse>;
@@ -184,7 +195,7 @@ export declare class Conversation {
184
195
  * conversationMessageId: {
185
196
  * referenceId: "string"
186
197
  * },
187
- * type: MavenAGI.FeedbackType.ThumbsUp,
198
+ * type: "THUMBS_UP",
188
199
  * text: "string"
189
200
  * })
190
201
  */
@@ -35,16 +35,27 @@ export class Conversation {
35
35
  * conversationId: {
36
36
  * referenceId: "string"
37
37
  * },
38
- * messages: [{}],
38
+ * messages: [{
39
+ * conversationMessageId: {
40
+ * referenceId: "string"
41
+ * },
42
+ * userId: {
43
+ * referenceId: "string"
44
+ * },
45
+ * text: "string",
46
+ * userMessageType: "USER",
47
+ * createdAt: "2024-01-15T09:30:00Z",
48
+ * updatedAt: "2024-01-15T09:30:00Z"
49
+ * }],
39
50
  * responseConfig: {
40
- * capabilities: [MavenAGI.Capability.Markdown],
51
+ * capabilities: ["MARKDOWN"],
41
52
  * isCopilot: true,
42
- * responseLength: MavenAGI.ResponseLength.Short
53
+ * responseLength: "SHORT"
43
54
  * },
44
55
  * subject: "string",
45
56
  * url: "string",
46
- * createdAt: new Date("2024-01-15T09:30:00.000Z"),
47
- * updatedAt: new Date("2024-01-15T09:30:00.000Z"),
57
+ * createdAt: "2024-01-15T09:30:00Z",
58
+ * updatedAt: "2024-01-15T09:30:00Z",
48
59
  * tags: new Set(["string"]),
49
60
  * metadata: {
50
61
  * "string": "string"
@@ -63,7 +74,8 @@ export class Conversation {
63
74
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
64
75
  "X-Fern-Language": "JavaScript",
65
76
  "X-Fern-SDK-Name": "mavenagi",
66
- "X-Fern-SDK-Version": "0.0.0-alpha.20",
77
+ "X-Fern-SDK-Version": "0.0.0-alpha.22",
78
+ "User-Agent": "mavenagi/0.0.0-alpha.22",
67
79
  "X-Fern-Runtime": core.RUNTIME.type,
68
80
  "X-Fern-Runtime-Version": core.RUNTIME.version,
69
81
  },
@@ -152,7 +164,8 @@ export class Conversation {
152
164
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
153
165
  "X-Fern-Language": "JavaScript",
154
166
  "X-Fern-SDK-Name": "mavenagi",
155
- "X-Fern-SDK-Version": "0.0.0-alpha.20",
167
+ "X-Fern-SDK-Version": "0.0.0-alpha.22",
168
+ "User-Agent": "mavenagi/0.0.0-alpha.22",
156
169
  "X-Fern-Runtime": core.RUNTIME.type,
157
170
  "X-Fern-Runtime-Version": core.RUNTIME.version,
158
171
  },
@@ -235,9 +248,9 @@ export class Conversation {
235
248
  * referenceId: "string"
236
249
  * },
237
250
  * text: "string",
238
- * userMessageType: MavenAGI.UserConversationMessageType.User,
239
- * createdAt: new Date("2024-01-15T09:30:00.000Z"),
240
- * updatedAt: new Date("2024-01-15T09:30:00.000Z")
251
+ * userMessageType: "USER",
252
+ * createdAt: "2024-01-15T09:30:00Z",
253
+ * updatedAt: "2024-01-15T09:30:00Z"
241
254
  * }])
242
255
  */
243
256
  appendNewMessages(conversationId, request, requestOptions) {
@@ -252,7 +265,8 @@ export class Conversation {
252
265
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
253
266
  "X-Fern-Language": "JavaScript",
254
267
  "X-Fern-SDK-Name": "mavenagi",
255
- "X-Fern-SDK-Version": "0.0.0-alpha.20",
268
+ "X-Fern-SDK-Version": "0.0.0-alpha.22",
269
+ "User-Agent": "mavenagi/0.0.0-alpha.22",
256
270
  "X-Fern-Runtime": core.RUNTIME.type,
257
271
  "X-Fern-Runtime-Version": core.RUNTIME.version,
258
272
  },
@@ -352,7 +366,8 @@ export class Conversation {
352
366
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
353
367
  "X-Fern-Language": "JavaScript",
354
368
  "X-Fern-SDK-Name": "mavenagi",
355
- "X-Fern-SDK-Version": "0.0.0-alpha.20",
369
+ "X-Fern-SDK-Version": "0.0.0-alpha.22",
370
+ "User-Agent": "mavenagi/0.0.0-alpha.22",
356
371
  "X-Fern-Runtime": core.RUNTIME.type,
357
372
  "X-Fern-Runtime-Version": core.RUNTIME.version,
358
373
  },
@@ -431,7 +446,8 @@ export class Conversation {
431
446
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
432
447
  "X-Fern-Language": "JavaScript",
433
448
  "X-Fern-SDK-Name": "mavenagi",
434
- "X-Fern-SDK-Version": "0.0.0-alpha.20",
449
+ "X-Fern-SDK-Version": "0.0.0-alpha.22",
450
+ "User-Agent": "mavenagi/0.0.0-alpha.22",
435
451
  "X-Fern-Runtime": core.RUNTIME.type,
436
452
  "X-Fern-Runtime-Version": core.RUNTIME.version,
437
453
  },
@@ -536,7 +552,8 @@ export class Conversation {
536
552
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
537
553
  "X-Fern-Language": "JavaScript",
538
554
  "X-Fern-SDK-Name": "mavenagi",
539
- "X-Fern-SDK-Version": "0.0.0-alpha.20",
555
+ "X-Fern-SDK-Version": "0.0.0-alpha.22",
556
+ "User-Agent": "mavenagi/0.0.0-alpha.22",
540
557
  "X-Fern-Runtime": core.RUNTIME.type,
541
558
  "X-Fern-Runtime-Version": core.RUNTIME.version,
542
559
  },
@@ -625,7 +642,8 @@ export class Conversation {
625
642
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
626
643
  "X-Fern-Language": "JavaScript",
627
644
  "X-Fern-SDK-Name": "mavenagi",
628
- "X-Fern-SDK-Version": "0.0.0-alpha.20",
645
+ "X-Fern-SDK-Version": "0.0.0-alpha.22",
646
+ "User-Agent": "mavenagi/0.0.0-alpha.22",
629
647
  "X-Fern-Runtime": core.RUNTIME.type,
630
648
  "X-Fern-Runtime-Version": core.RUNTIME.version,
631
649
  },
@@ -709,7 +727,7 @@ export class Conversation {
709
727
  * conversationMessageId: {
710
728
  * referenceId: "string"
711
729
  * },
712
- * type: MavenAGI.FeedbackType.ThumbsUp,
730
+ * type: "THUMBS_UP",
713
731
  * text: "string"
714
732
  * })
715
733
  */
@@ -725,7 +743,8 @@ export class Conversation {
725
743
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
726
744
  "X-Fern-Language": "JavaScript",
727
745
  "X-Fern-SDK-Name": "mavenagi",
728
- "X-Fern-SDK-Version": "0.0.0-alpha.20",
746
+ "X-Fern-SDK-Version": "0.0.0-alpha.22",
747
+ "User-Agent": "mavenagi/0.0.0-alpha.22",
729
748
  "X-Fern-Runtime": core.RUNTIME.type,
730
749
  "X-Fern-Runtime-Version": core.RUNTIME.version,
731
750
  },
@@ -822,7 +841,8 @@ export class Conversation {
822
841
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
823
842
  "X-Fern-Language": "JavaScript",
824
843
  "X-Fern-SDK-Name": "mavenagi",
825
- "X-Fern-SDK-Version": "0.0.0-alpha.20",
844
+ "X-Fern-SDK-Version": "0.0.0-alpha.22",
845
+ "User-Agent": "mavenagi/0.0.0-alpha.22",
826
846
  "X-Fern-Runtime": core.RUNTIME.type,
827
847
  "X-Fern-Runtime-Version": core.RUNTIME.version,
828
848
  },
@@ -914,7 +934,8 @@ export class Conversation {
914
934
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
915
935
  "X-Fern-Language": "JavaScript",
916
936
  "X-Fern-SDK-Name": "mavenagi",
917
- "X-Fern-SDK-Version": "0.0.0-alpha.20",
937
+ "X-Fern-SDK-Version": "0.0.0-alpha.22",
938
+ "User-Agent": "mavenagi/0.0.0-alpha.22",
918
939
  "X-Fern-Runtime": core.RUNTIME.type,
919
940
  "X-Fern-Runtime-Version": core.RUNTIME.version,
920
941
  },
@@ -7,6 +7,10 @@ export interface ConversationAnalysis {
7
7
  userRequest?: string;
8
8
  /** Generated agent response summary of the conversation */
9
9
  agentResponse?: string;
10
+ /** Generated resolution status of the conversation */
11
+ resolutionStatus?: string;
12
+ /** Generated category of the conversation */
13
+ category?: string;
10
14
  /** Generated sentiment of the conversation */
11
15
  sentiment?: MavenAGI.Sentiment;
12
16
  }
@@ -47,7 +47,7 @@ export declare class Knowledge {
47
47
  * referenceId: "help-center"
48
48
  * },
49
49
  * name: "Help center",
50
- * type: MavenAGI.KnowledgeBaseType.Api
50
+ * type: "API"
51
51
  * })
52
52
  */
53
53
  createOrUpdateKnowledgeBase(request: MavenAGI.KnowledgeBaseRequest, requestOptions?: Knowledge.RequestOptions): Promise<MavenAGI.KnowledgeBaseResponse>;
@@ -78,7 +78,7 @@ export declare class Knowledge {
78
78
  *
79
79
  * @example
80
80
  * await client.knowledge.createKnowledgeBaseVersion("help-center", {
81
- * type: MavenAGI.KnowledgeBaseVersionType.Full
81
+ * type: "FULL"
82
82
  * })
83
83
  */
84
84
  createKnowledgeBaseVersion(knowledgeBaseReferenceId: string, request: MavenAGI.KnowledgeBaseVersion, requestOptions?: Knowledge.RequestOptions): Promise<MavenAGI.KnowledgeBaseVersion>;
@@ -112,7 +112,7 @@ export declare class Knowledge {
112
112
  * knowledgeDocumentId: {
113
113
  * referenceId: "getting-started"
114
114
  * },
115
- * contentType: MavenAGI.KnowledgeDocumentContentType.Markdown,
115
+ * contentType: "MARKDOWN",
116
116
  * content: "## Getting started\\nThis is a getting started guide for the help center.",
117
117
  * title: "Getting started"
118
118
  * })
@@ -134,7 +134,7 @@ export declare class Knowledge {
134
134
  * knowledgeDocumentId: {
135
135
  * referenceId: "getting-started"
136
136
  * },
137
- * contentType: MavenAGI.KnowledgeDocumentContentType.Markdown,
137
+ * contentType: "MARKDOWN",
138
138
  * content: "## Getting started\\nThis is a getting started guide for the help center.",
139
139
  * title: "Getting started"
140
140
  * })
@@ -36,7 +36,7 @@ export class Knowledge {
36
36
  * referenceId: "help-center"
37
37
  * },
38
38
  * name: "Help center",
39
- * type: MavenAGI.KnowledgeBaseType.Api
39
+ * type: "API"
40
40
  * })
41
41
  */
42
42
  createOrUpdateKnowledgeBase(request, requestOptions) {
@@ -51,7 +51,8 @@ export class Knowledge {
51
51
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
52
52
  "X-Fern-Language": "JavaScript",
53
53
  "X-Fern-SDK-Name": "mavenagi",
54
- "X-Fern-SDK-Version": "0.0.0-alpha.20",
54
+ "X-Fern-SDK-Version": "0.0.0-alpha.22",
55
+ "User-Agent": "mavenagi/0.0.0-alpha.22",
55
56
  "X-Fern-Runtime": core.RUNTIME.type,
56
57
  "X-Fern-Runtime-Version": core.RUNTIME.version,
57
58
  },
@@ -140,7 +141,8 @@ export class Knowledge {
140
141
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
141
142
  "X-Fern-Language": "JavaScript",
142
143
  "X-Fern-SDK-Name": "mavenagi",
143
- "X-Fern-SDK-Version": "0.0.0-alpha.20",
144
+ "X-Fern-SDK-Version": "0.0.0-alpha.22",
145
+ "User-Agent": "mavenagi/0.0.0-alpha.22",
144
146
  "X-Fern-Runtime": core.RUNTIME.type,
145
147
  "X-Fern-Runtime-Version": core.RUNTIME.version,
146
148
  },
@@ -216,7 +218,7 @@ export class Knowledge {
216
218
  *
217
219
  * @example
218
220
  * await client.knowledge.createKnowledgeBaseVersion("help-center", {
219
- * type: MavenAGI.KnowledgeBaseVersionType.Full
221
+ * type: "FULL"
220
222
  * })
221
223
  */
222
224
  createKnowledgeBaseVersion(knowledgeBaseReferenceId, request, requestOptions) {
@@ -231,7 +233,8 @@ export class Knowledge {
231
233
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
232
234
  "X-Fern-Language": "JavaScript",
233
235
  "X-Fern-SDK-Name": "mavenagi",
234
- "X-Fern-SDK-Version": "0.0.0-alpha.20",
236
+ "X-Fern-SDK-Version": "0.0.0-alpha.22",
237
+ "User-Agent": "mavenagi/0.0.0-alpha.22",
235
238
  "X-Fern-Runtime": core.RUNTIME.type,
236
239
  "X-Fern-Runtime-Version": core.RUNTIME.version,
237
240
  },
@@ -320,7 +323,8 @@ export class Knowledge {
320
323
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
321
324
  "X-Fern-Language": "JavaScript",
322
325
  "X-Fern-SDK-Name": "mavenagi",
323
- "X-Fern-SDK-Version": "0.0.0-alpha.20",
326
+ "X-Fern-SDK-Version": "0.0.0-alpha.22",
327
+ "User-Agent": "mavenagi/0.0.0-alpha.22",
324
328
  "X-Fern-Runtime": core.RUNTIME.type,
325
329
  "X-Fern-Runtime-Version": core.RUNTIME.version,
326
330
  },
@@ -394,7 +398,7 @@ export class Knowledge {
394
398
  * knowledgeDocumentId: {
395
399
  * referenceId: "getting-started"
396
400
  * },
397
- * contentType: MavenAGI.KnowledgeDocumentContentType.Markdown,
401
+ * contentType: "MARKDOWN",
398
402
  * content: "## Getting started\\nThis is a getting started guide for the help center.",
399
403
  * title: "Getting started"
400
404
  * })
@@ -411,7 +415,8 @@ export class Knowledge {
411
415
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
412
416
  "X-Fern-Language": "JavaScript",
413
417
  "X-Fern-SDK-Name": "mavenagi",
414
- "X-Fern-SDK-Version": "0.0.0-alpha.20",
418
+ "X-Fern-SDK-Version": "0.0.0-alpha.22",
419
+ "User-Agent": "mavenagi/0.0.0-alpha.22",
415
420
  "X-Fern-Runtime": core.RUNTIME.type,
416
421
  "X-Fern-Runtime-Version": core.RUNTIME.version,
417
422
  },
@@ -491,7 +496,7 @@ export class Knowledge {
491
496
  * knowledgeDocumentId: {
492
497
  * referenceId: "getting-started"
493
498
  * },
494
- * contentType: MavenAGI.KnowledgeDocumentContentType.Markdown,
499
+ * contentType: "MARKDOWN",
495
500
  * content: "## Getting started\\nThis is a getting started guide for the help center.",
496
501
  * title: "Getting started"
497
502
  * })
@@ -508,7 +513,8 @@ export class Knowledge {
508
513
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
509
514
  "X-Fern-Language": "JavaScript",
510
515
  "X-Fern-SDK-Name": "mavenagi",
511
- "X-Fern-SDK-Version": "0.0.0-alpha.20",
516
+ "X-Fern-SDK-Version": "0.0.0-alpha.22",
517
+ "User-Agent": "mavenagi/0.0.0-alpha.22",
512
518
  "X-Fern-Runtime": core.RUNTIME.type,
513
519
  "X-Fern-Runtime-Version": core.RUNTIME.version,
514
520
  },
@@ -598,7 +604,8 @@ export class Knowledge {
598
604
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
599
605
  "X-Fern-Language": "JavaScript",
600
606
  "X-Fern-SDK-Name": "mavenagi",
601
- "X-Fern-SDK-Version": "0.0.0-alpha.20",
607
+ "X-Fern-SDK-Version": "0.0.0-alpha.22",
608
+ "User-Agent": "mavenagi/0.0.0-alpha.22",
602
609
  "X-Fern-Runtime": core.RUNTIME.type,
603
610
  "X-Fern-Runtime-Version": core.RUNTIME.version,
604
611
  },
@@ -47,7 +47,7 @@ export declare class Triggers {
47
47
  * referenceId: "store-in-snowflake"
48
48
  * },
49
49
  * description: "Stores conversation data in Snowflake",
50
- * type: MavenAGI.EventTriggerType.ConversationCreated
50
+ * type: "CONVERSATION_CREATED"
51
51
  * })
52
52
  */
53
53
  createOrUpdate(request: MavenAGI.EventTriggerRequest, requestOptions?: Triggers.RequestOptions): Promise<MavenAGI.EventTriggerResponse>;
@@ -36,7 +36,7 @@ export class Triggers {
36
36
  * referenceId: "store-in-snowflake"
37
37
  * },
38
38
  * description: "Stores conversation data in Snowflake",
39
- * type: MavenAGI.EventTriggerType.ConversationCreated
39
+ * type: "CONVERSATION_CREATED"
40
40
  * })
41
41
  */
42
42
  createOrUpdate(request, requestOptions) {
@@ -51,7 +51,8 @@ export class Triggers {
51
51
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
52
52
  "X-Fern-Language": "JavaScript",
53
53
  "X-Fern-SDK-Name": "mavenagi",
54
- "X-Fern-SDK-Version": "0.0.0-alpha.20",
54
+ "X-Fern-SDK-Version": "0.0.0-alpha.22",
55
+ "User-Agent": "mavenagi/0.0.0-alpha.22",
55
56
  "X-Fern-Runtime": core.RUNTIME.type,
56
57
  "X-Fern-Runtime-Version": core.RUNTIME.version,
57
58
  },
@@ -140,7 +141,8 @@ export class Triggers {
140
141
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
141
142
  "X-Fern-Language": "JavaScript",
142
143
  "X-Fern-SDK-Name": "mavenagi",
143
- "X-Fern-SDK-Version": "0.0.0-alpha.20",
144
+ "X-Fern-SDK-Version": "0.0.0-alpha.22",
145
+ "User-Agent": "mavenagi/0.0.0-alpha.22",
144
146
  "X-Fern-Runtime": core.RUNTIME.type,
145
147
  "X-Fern-Runtime-Version": core.RUNTIME.version,
146
148
  },
@@ -228,7 +230,8 @@ export class Triggers {
228
230
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
229
231
  "X-Fern-Language": "JavaScript",
230
232
  "X-Fern-SDK-Name": "mavenagi",
231
- "X-Fern-SDK-Version": "0.0.0-alpha.20",
233
+ "X-Fern-SDK-Version": "0.0.0-alpha.22",
234
+ "User-Agent": "mavenagi/0.0.0-alpha.22",
232
235
  "X-Fern-Runtime": core.RUNTIME.type,
233
236
  "X-Fern-Runtime-Version": core.RUNTIME.version,
234
237
  },
@@ -48,12 +48,12 @@ export declare class Users {
48
48
  * },
49
49
  * identifiers: new Set([{
50
50
  * value: "joe@myapp.com",
51
- * type: MavenAGI.AppUserIdentifyingPropertyType.Email
51
+ * type: "EMAIL"
52
52
  * }]),
53
53
  * data: {
54
54
  * "name": {
55
55
  * value: "Joe",
56
- * visibility: MavenAGI.VisibilityType.Visible
56
+ * visibility: "VISIBLE"
57
57
  * }
58
58
  * }
59
59
  * })