mavenagi 0.0.0-alpha.21 → 0.0.0-alpha.23

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 (43) hide show
  1. package/README.md +27 -14
  2. package/api/resources/actions/client/Client.js +6 -6
  3. package/api/resources/appSettings/client/Client.js +2 -2
  4. package/api/resources/conversation/client/Client.d.ts +5 -2
  5. package/api/resources/conversation/client/Client.js +31 -22
  6. package/api/resources/conversation/client/index.d.ts +1 -1
  7. package/api/resources/conversation/client/index.js +1 -1
  8. package/api/resources/conversation/client/requests/ConversationGetRequest.d.ts +15 -0
  9. package/api/resources/conversation/client/requests/ConversationGetRequest.js +4 -0
  10. package/api/resources/conversation/client/requests/index.d.ts +1 -0
  11. package/api/resources/conversation/client/requests/index.js +1 -0
  12. package/api/resources/conversation/types/ConversationAnalysis.d.ts +4 -0
  13. package/api/resources/index.d.ts +1 -0
  14. package/api/resources/index.js +1 -0
  15. package/api/resources/knowledge/client/Client.js +14 -14
  16. package/api/resources/triggers/client/Client.js +6 -6
  17. package/api/resources/users/client/Client.js +4 -4
  18. package/dist/api/resources/actions/client/Client.js +6 -6
  19. package/dist/api/resources/appSettings/client/Client.js +2 -2
  20. package/dist/api/resources/conversation/client/Client.d.ts +5 -2
  21. package/dist/api/resources/conversation/client/Client.js +31 -22
  22. package/dist/api/resources/conversation/client/index.d.ts +1 -1
  23. package/dist/api/resources/conversation/client/index.js +1 -1
  24. package/dist/api/resources/conversation/client/requests/ConversationGetRequest.d.ts +15 -0
  25. package/dist/api/resources/conversation/client/requests/ConversationGetRequest.js +4 -0
  26. package/dist/api/resources/conversation/client/requests/index.d.ts +1 -0
  27. package/dist/api/resources/conversation/client/requests/index.js +1 -0
  28. package/dist/api/resources/conversation/types/ConversationAnalysis.d.ts +4 -0
  29. package/dist/api/resources/index.d.ts +1 -0
  30. package/dist/api/resources/index.js +1 -0
  31. package/dist/api/resources/knowledge/client/Client.js +14 -14
  32. package/dist/api/resources/triggers/client/Client.js +6 -6
  33. package/dist/api/resources/users/client/Client.js +4 -4
  34. package/dist/serialization/resources/conversation/types/ConversationAnalysis.d.ts +2 -0
  35. package/dist/serialization/resources/conversation/types/ConversationAnalysis.js +2 -0
  36. package/dist/version.d.ts +1 -1
  37. package/dist/version.js +1 -1
  38. package/package.json +1 -1
  39. package/reference.md +12 -2
  40. package/serialization/resources/conversation/types/ConversationAnalysis.d.ts +2 -0
  41. package/serialization/resources/conversation/types/ConversationAnalysis.js +2 -0
  42. package/version.d.ts +1 -1
  43. package/version.js +1 -1
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Mavenagi TypeScript Library
2
2
 
3
- [![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-SDK%20generated%20by%20Fern-brightgreen)](https://github.com/fern-api/fern)
3
+ [![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fmavenagi%2Fmavenagi-node)
4
4
  [![npm shield](https://img.shields.io/npm/v/mavenagi)](https://www.npmjs.com/package/mavenagi)
5
5
 
6
6
  The Mavenagi TypeScript library provides convenient access to the Mavenagi API from TypeScript.
@@ -58,23 +58,17 @@ await client.conversation.initialize({
58
58
  });
59
59
  ```
60
60
 
61
- ## Exception Handling
61
+ ## Request And Response Types
62
62
 
63
- When the API returns a non-success status code (4xx or 5xx response), a subclass of the following error
64
- will be thrown.
63
+ The SDK exports all request and response types as TypeScript interfaces. Simply import them with the
64
+ following namespace:
65
65
 
66
66
  ```typescript
67
- import { MavenAGIError } from "mavenagi";
67
+ import { MavenAGI } from "mavenagi";
68
68
 
69
- try {
70
- await client.conversation.initialize(...);
71
- } catch (err) {
72
- if (err instanceof MavenAGIError) {
73
- console.log(err.statusCode);
74
- console.log(err.message);
75
- console.log(err.body);
76
- }
77
- }
69
+ const request: MavenAGI.ConversationGetRequest = {
70
+ ...
71
+ };
78
72
  ```
79
73
 
80
74
  ## Aborting Requests
@@ -115,6 +109,25 @@ const client = new MavenAGIClient({
115
109
  });
116
110
  ```
117
111
 
112
+ ## Exception Handling
113
+
114
+ When the API returns a non-success status code (4xx or 5xx response), a subclass of the following error
115
+ will be thrown.
116
+
117
+ ```typescript
118
+ import { MavenAGIError } from "mavenagi";
119
+
120
+ try {
121
+ await client.conversation.initialize(...);
122
+ } catch (err) {
123
+ if (err instanceof MavenAGIError) {
124
+ console.log(err.statusCode);
125
+ console.log(err.message);
126
+ console.log(err.body);
127
+ }
128
+ }
129
+ ```
130
+
118
131
  ## Advanced
119
132
 
120
133
  ### Retries
@@ -64,8 +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.21",
68
- "User-Agent": "mavenagi/0.0.0-alpha.21",
67
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
68
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
69
69
  "X-Fern-Runtime": core.RUNTIME.type,
70
70
  "X-Fern-Runtime-Version": core.RUNTIME.version,
71
71
  },
@@ -154,8 +154,8 @@ export class Actions {
154
154
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
155
155
  "X-Fern-Language": "JavaScript",
156
156
  "X-Fern-SDK-Name": "mavenagi",
157
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
158
- "User-Agent": "mavenagi/0.0.0-alpha.21",
157
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
158
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
159
159
  "X-Fern-Runtime": core.RUNTIME.type,
160
160
  "X-Fern-Runtime-Version": core.RUNTIME.version,
161
161
  },
@@ -243,8 +243,8 @@ export class Actions {
243
243
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
244
244
  "X-Fern-Language": "JavaScript",
245
245
  "X-Fern-SDK-Name": "mavenagi",
246
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
247
- "User-Agent": "mavenagi/0.0.0-alpha.21",
246
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
247
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
248
248
  "X-Fern-Runtime": core.RUNTIME.type,
249
249
  "X-Fern-Runtime-Version": core.RUNTIME.version,
250
250
  },
@@ -44,8 +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.21",
48
- "User-Agent": "mavenagi/0.0.0-alpha.21",
47
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
48
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
49
49
  "X-Fern-Runtime": core.RUNTIME.type,
50
50
  "X-Fern-Runtime-Version": core.RUNTIME.version,
51
51
  },
@@ -78,6 +78,7 @@ export declare class Conversation {
78
78
  * Get a conversation
79
79
  *
80
80
  * @param {string} conversationId - The ID of the conversation to get
81
+ * @param {MavenAGI.ConversationGetRequest} request
81
82
  * @param {Conversation.RequestOptions} requestOptions - Request-specific configuration.
82
83
  *
83
84
  * @throws {@link MavenAGI.NotFoundError}
@@ -85,9 +86,11 @@ export declare class Conversation {
85
86
  * @throws {@link MavenAGI.ServerError}
86
87
  *
87
88
  * @example
88
- * await client.conversation.get("string")
89
+ * await client.conversation.get("string", {
90
+ * appId: "string"
91
+ * })
89
92
  */
90
- get(conversationId: string, requestOptions?: Conversation.RequestOptions): Promise<MavenAGI.ConversationResponse>;
93
+ get(conversationId: string, request?: MavenAGI.ConversationGetRequest, requestOptions?: Conversation.RequestOptions): Promise<MavenAGI.ConversationResponse>;
91
94
  /**
92
95
  * Append messages to an existing conversation. The conversation must be initialized first. If a message with the same id already exists, it will be ignored.
93
96
  *
@@ -74,8 +74,8 @@ export class Conversation {
74
74
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
75
75
  "X-Fern-Language": "JavaScript",
76
76
  "X-Fern-SDK-Name": "mavenagi",
77
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
78
- "User-Agent": "mavenagi/0.0.0-alpha.21",
77
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
78
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
79
79
  "X-Fern-Runtime": core.RUNTIME.type,
80
80
  "X-Fern-Runtime-Version": core.RUNTIME.version,
81
81
  },
@@ -143,6 +143,7 @@ export class Conversation {
143
143
  * Get a conversation
144
144
  *
145
145
  * @param {string} conversationId - The ID of the conversation to get
146
+ * @param {MavenAGI.ConversationGetRequest} request
146
147
  * @param {Conversation.RequestOptions} requestOptions - Request-specific configuration.
147
148
  *
148
149
  * @throws {@link MavenAGI.NotFoundError}
@@ -150,11 +151,18 @@ export class Conversation {
150
151
  * @throws {@link MavenAGI.ServerError}
151
152
  *
152
153
  * @example
153
- * await client.conversation.get("string")
154
+ * await client.conversation.get("string", {
155
+ * appId: "string"
156
+ * })
154
157
  */
155
- get(conversationId, requestOptions) {
158
+ get(conversationId, request = {}, requestOptions) {
156
159
  var _a, _b;
157
160
  return __awaiter(this, void 0, void 0, function* () {
161
+ const { appId } = request;
162
+ const _queryParams = {};
163
+ if (appId != null) {
164
+ _queryParams["appId"] = appId;
165
+ }
158
166
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
159
167
  url: urlJoin((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.MavenAGIEnvironment.Production, `/v1/conversations/${encodeURIComponent(conversationId)}`),
160
168
  method: "GET",
@@ -164,12 +172,13 @@ export class Conversation {
164
172
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
165
173
  "X-Fern-Language": "JavaScript",
166
174
  "X-Fern-SDK-Name": "mavenagi",
167
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
168
- "User-Agent": "mavenagi/0.0.0-alpha.21",
175
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
176
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
169
177
  "X-Fern-Runtime": core.RUNTIME.type,
170
178
  "X-Fern-Runtime-Version": core.RUNTIME.version,
171
179
  },
172
180
  contentType: "application/json",
181
+ queryParameters: _queryParams,
173
182
  requestType: "json",
174
183
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
175
184
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -265,8 +274,8 @@ export class Conversation {
265
274
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
266
275
  "X-Fern-Language": "JavaScript",
267
276
  "X-Fern-SDK-Name": "mavenagi",
268
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
269
- "User-Agent": "mavenagi/0.0.0-alpha.21",
277
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
278
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
270
279
  "X-Fern-Runtime": core.RUNTIME.type,
271
280
  "X-Fern-Runtime-Version": core.RUNTIME.version,
272
281
  },
@@ -366,8 +375,8 @@ export class Conversation {
366
375
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
367
376
  "X-Fern-Language": "JavaScript",
368
377
  "X-Fern-SDK-Name": "mavenagi",
369
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
370
- "User-Agent": "mavenagi/0.0.0-alpha.21",
378
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
379
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
371
380
  "X-Fern-Runtime": core.RUNTIME.type,
372
381
  "X-Fern-Runtime-Version": core.RUNTIME.version,
373
382
  },
@@ -446,8 +455,8 @@ export class Conversation {
446
455
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
447
456
  "X-Fern-Language": "JavaScript",
448
457
  "X-Fern-SDK-Name": "mavenagi",
449
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
450
- "User-Agent": "mavenagi/0.0.0-alpha.21",
458
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
459
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
451
460
  "X-Fern-Runtime": core.RUNTIME.type,
452
461
  "X-Fern-Runtime-Version": core.RUNTIME.version,
453
462
  },
@@ -552,8 +561,8 @@ export class Conversation {
552
561
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
553
562
  "X-Fern-Language": "JavaScript",
554
563
  "X-Fern-SDK-Name": "mavenagi",
555
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
556
- "User-Agent": "mavenagi/0.0.0-alpha.21",
564
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
565
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
557
566
  "X-Fern-Runtime": core.RUNTIME.type,
558
567
  "X-Fern-Runtime-Version": core.RUNTIME.version,
559
568
  },
@@ -642,8 +651,8 @@ export class Conversation {
642
651
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
643
652
  "X-Fern-Language": "JavaScript",
644
653
  "X-Fern-SDK-Name": "mavenagi",
645
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
646
- "User-Agent": "mavenagi/0.0.0-alpha.21",
654
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
655
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
647
656
  "X-Fern-Runtime": core.RUNTIME.type,
648
657
  "X-Fern-Runtime-Version": core.RUNTIME.version,
649
658
  },
@@ -743,8 +752,8 @@ export class Conversation {
743
752
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
744
753
  "X-Fern-Language": "JavaScript",
745
754
  "X-Fern-SDK-Name": "mavenagi",
746
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
747
- "User-Agent": "mavenagi/0.0.0-alpha.21",
755
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
756
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
748
757
  "X-Fern-Runtime": core.RUNTIME.type,
749
758
  "X-Fern-Runtime-Version": core.RUNTIME.version,
750
759
  },
@@ -841,8 +850,8 @@ export class Conversation {
841
850
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
842
851
  "X-Fern-Language": "JavaScript",
843
852
  "X-Fern-SDK-Name": "mavenagi",
844
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
845
- "User-Agent": "mavenagi/0.0.0-alpha.21",
853
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
854
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
846
855
  "X-Fern-Runtime": core.RUNTIME.type,
847
856
  "X-Fern-Runtime-Version": core.RUNTIME.version,
848
857
  },
@@ -934,8 +943,8 @@ export class Conversation {
934
943
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
935
944
  "X-Fern-Language": "JavaScript",
936
945
  "X-Fern-SDK-Name": "mavenagi",
937
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
938
- "User-Agent": "mavenagi/0.0.0-alpha.21",
946
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
947
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
939
948
  "X-Fern-Runtime": core.RUNTIME.type,
940
949
  "X-Fern-Runtime-Version": core.RUNTIME.version,
941
950
  },
@@ -1 +1 @@
1
- export {};
1
+ export * from "./requests";
@@ -1 +1 @@
1
- export {};
1
+ export * from "./requests";
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * appId: "string"
8
+ * }
9
+ */
10
+ export interface ConversationGetRequest {
11
+ /**
12
+ * The App ID of the conversation to get. If not provided the ID of the calling app will be used.
13
+ */
14
+ appId?: string;
15
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1 @@
1
+ export { type ConversationGetRequest } from "./ConversationGetRequest";
@@ -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
  }
@@ -11,3 +11,4 @@ export * from "./triggers/types";
11
11
  export * from "./commons/errors";
12
12
  export * as appSettings from "./appSettings";
13
13
  export * as users from "./users";
14
+ export * from "./conversation/client/requests";
@@ -11,3 +11,4 @@ export * from "./triggers/types";
11
11
  export * from "./commons/errors";
12
12
  export * as appSettings from "./appSettings";
13
13
  export * as users from "./users";
14
+ export * from "./conversation/client/requests";
@@ -51,8 +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.21",
55
- "User-Agent": "mavenagi/0.0.0-alpha.21",
54
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
55
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
56
56
  "X-Fern-Runtime": core.RUNTIME.type,
57
57
  "X-Fern-Runtime-Version": core.RUNTIME.version,
58
58
  },
@@ -141,8 +141,8 @@ export class Knowledge {
141
141
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
142
142
  "X-Fern-Language": "JavaScript",
143
143
  "X-Fern-SDK-Name": "mavenagi",
144
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
145
- "User-Agent": "mavenagi/0.0.0-alpha.21",
144
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
145
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
146
146
  "X-Fern-Runtime": core.RUNTIME.type,
147
147
  "X-Fern-Runtime-Version": core.RUNTIME.version,
148
148
  },
@@ -233,8 +233,8 @@ export class Knowledge {
233
233
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
234
234
  "X-Fern-Language": "JavaScript",
235
235
  "X-Fern-SDK-Name": "mavenagi",
236
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
237
- "User-Agent": "mavenagi/0.0.0-alpha.21",
236
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
237
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
238
238
  "X-Fern-Runtime": core.RUNTIME.type,
239
239
  "X-Fern-Runtime-Version": core.RUNTIME.version,
240
240
  },
@@ -323,8 +323,8 @@ export class Knowledge {
323
323
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
324
324
  "X-Fern-Language": "JavaScript",
325
325
  "X-Fern-SDK-Name": "mavenagi",
326
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
327
- "User-Agent": "mavenagi/0.0.0-alpha.21",
326
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
327
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
328
328
  "X-Fern-Runtime": core.RUNTIME.type,
329
329
  "X-Fern-Runtime-Version": core.RUNTIME.version,
330
330
  },
@@ -415,8 +415,8 @@ export class Knowledge {
415
415
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
416
416
  "X-Fern-Language": "JavaScript",
417
417
  "X-Fern-SDK-Name": "mavenagi",
418
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
419
- "User-Agent": "mavenagi/0.0.0-alpha.21",
418
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
419
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
420
420
  "X-Fern-Runtime": core.RUNTIME.type,
421
421
  "X-Fern-Runtime-Version": core.RUNTIME.version,
422
422
  },
@@ -513,8 +513,8 @@ export class Knowledge {
513
513
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
514
514
  "X-Fern-Language": "JavaScript",
515
515
  "X-Fern-SDK-Name": "mavenagi",
516
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
517
- "User-Agent": "mavenagi/0.0.0-alpha.21",
516
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
517
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
518
518
  "X-Fern-Runtime": core.RUNTIME.type,
519
519
  "X-Fern-Runtime-Version": core.RUNTIME.version,
520
520
  },
@@ -604,8 +604,8 @@ export class Knowledge {
604
604
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
605
605
  "X-Fern-Language": "JavaScript",
606
606
  "X-Fern-SDK-Name": "mavenagi",
607
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
608
- "User-Agent": "mavenagi/0.0.0-alpha.21",
607
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
608
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
609
609
  "X-Fern-Runtime": core.RUNTIME.type,
610
610
  "X-Fern-Runtime-Version": core.RUNTIME.version,
611
611
  },
@@ -51,8 +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.21",
55
- "User-Agent": "mavenagi/0.0.0-alpha.21",
54
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
55
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
56
56
  "X-Fern-Runtime": core.RUNTIME.type,
57
57
  "X-Fern-Runtime-Version": core.RUNTIME.version,
58
58
  },
@@ -141,8 +141,8 @@ export class Triggers {
141
141
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
142
142
  "X-Fern-Language": "JavaScript",
143
143
  "X-Fern-SDK-Name": "mavenagi",
144
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
145
- "User-Agent": "mavenagi/0.0.0-alpha.21",
144
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
145
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
146
146
  "X-Fern-Runtime": core.RUNTIME.type,
147
147
  "X-Fern-Runtime-Version": core.RUNTIME.version,
148
148
  },
@@ -230,8 +230,8 @@ export class Triggers {
230
230
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
231
231
  "X-Fern-Language": "JavaScript",
232
232
  "X-Fern-SDK-Name": "mavenagi",
233
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
234
- "User-Agent": "mavenagi/0.0.0-alpha.21",
233
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
234
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
235
235
  "X-Fern-Runtime": core.RUNTIME.type,
236
236
  "X-Fern-Runtime-Version": core.RUNTIME.version,
237
237
  },
@@ -59,8 +59,8 @@ export class Users {
59
59
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
60
60
  "X-Fern-Language": "JavaScript",
61
61
  "X-Fern-SDK-Name": "mavenagi",
62
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
63
- "User-Agent": "mavenagi/0.0.0-alpha.21",
62
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
63
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
64
64
  "X-Fern-Runtime": core.RUNTIME.type,
65
65
  "X-Fern-Runtime-Version": core.RUNTIME.version,
66
66
  },
@@ -149,8 +149,8 @@ export class Users {
149
149
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
150
150
  "X-Fern-Language": "JavaScript",
151
151
  "X-Fern-SDK-Name": "mavenagi",
152
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
153
- "User-Agent": "mavenagi/0.0.0-alpha.21",
152
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
153
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
154
154
  "X-Fern-Runtime": core.RUNTIME.type,
155
155
  "X-Fern-Runtime-Version": core.RUNTIME.version,
156
156
  },
@@ -64,8 +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.21",
68
- "User-Agent": "mavenagi/0.0.0-alpha.21",
67
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
68
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
69
69
  "X-Fern-Runtime": core.RUNTIME.type,
70
70
  "X-Fern-Runtime-Version": core.RUNTIME.version,
71
71
  },
@@ -154,8 +154,8 @@ export class Actions {
154
154
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
155
155
  "X-Fern-Language": "JavaScript",
156
156
  "X-Fern-SDK-Name": "mavenagi",
157
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
158
- "User-Agent": "mavenagi/0.0.0-alpha.21",
157
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
158
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
159
159
  "X-Fern-Runtime": core.RUNTIME.type,
160
160
  "X-Fern-Runtime-Version": core.RUNTIME.version,
161
161
  },
@@ -243,8 +243,8 @@ export class Actions {
243
243
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
244
244
  "X-Fern-Language": "JavaScript",
245
245
  "X-Fern-SDK-Name": "mavenagi",
246
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
247
- "User-Agent": "mavenagi/0.0.0-alpha.21",
246
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
247
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
248
248
  "X-Fern-Runtime": core.RUNTIME.type,
249
249
  "X-Fern-Runtime-Version": core.RUNTIME.version,
250
250
  },
@@ -44,8 +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.21",
48
- "User-Agent": "mavenagi/0.0.0-alpha.21",
47
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
48
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
49
49
  "X-Fern-Runtime": core.RUNTIME.type,
50
50
  "X-Fern-Runtime-Version": core.RUNTIME.version,
51
51
  },
@@ -78,6 +78,7 @@ export declare class Conversation {
78
78
  * Get a conversation
79
79
  *
80
80
  * @param {string} conversationId - The ID of the conversation to get
81
+ * @param {MavenAGI.ConversationGetRequest} request
81
82
  * @param {Conversation.RequestOptions} requestOptions - Request-specific configuration.
82
83
  *
83
84
  * @throws {@link MavenAGI.NotFoundError}
@@ -85,9 +86,11 @@ export declare class Conversation {
85
86
  * @throws {@link MavenAGI.ServerError}
86
87
  *
87
88
  * @example
88
- * await client.conversation.get("string")
89
+ * await client.conversation.get("string", {
90
+ * appId: "string"
91
+ * })
89
92
  */
90
- get(conversationId: string, requestOptions?: Conversation.RequestOptions): Promise<MavenAGI.ConversationResponse>;
93
+ get(conversationId: string, request?: MavenAGI.ConversationGetRequest, requestOptions?: Conversation.RequestOptions): Promise<MavenAGI.ConversationResponse>;
91
94
  /**
92
95
  * Append messages to an existing conversation. The conversation must be initialized first. If a message with the same id already exists, it will be ignored.
93
96
  *
@@ -74,8 +74,8 @@ export class Conversation {
74
74
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
75
75
  "X-Fern-Language": "JavaScript",
76
76
  "X-Fern-SDK-Name": "mavenagi",
77
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
78
- "User-Agent": "mavenagi/0.0.0-alpha.21",
77
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
78
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
79
79
  "X-Fern-Runtime": core.RUNTIME.type,
80
80
  "X-Fern-Runtime-Version": core.RUNTIME.version,
81
81
  },
@@ -143,6 +143,7 @@ export class Conversation {
143
143
  * Get a conversation
144
144
  *
145
145
  * @param {string} conversationId - The ID of the conversation to get
146
+ * @param {MavenAGI.ConversationGetRequest} request
146
147
  * @param {Conversation.RequestOptions} requestOptions - Request-specific configuration.
147
148
  *
148
149
  * @throws {@link MavenAGI.NotFoundError}
@@ -150,11 +151,18 @@ export class Conversation {
150
151
  * @throws {@link MavenAGI.ServerError}
151
152
  *
152
153
  * @example
153
- * await client.conversation.get("string")
154
+ * await client.conversation.get("string", {
155
+ * appId: "string"
156
+ * })
154
157
  */
155
- get(conversationId, requestOptions) {
158
+ get(conversationId, request = {}, requestOptions) {
156
159
  var _a, _b;
157
160
  return __awaiter(this, void 0, void 0, function* () {
161
+ const { appId } = request;
162
+ const _queryParams = {};
163
+ if (appId != null) {
164
+ _queryParams["appId"] = appId;
165
+ }
158
166
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
159
167
  url: urlJoin((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.MavenAGIEnvironment.Production, `/v1/conversations/${encodeURIComponent(conversationId)}`),
160
168
  method: "GET",
@@ -164,12 +172,13 @@ export class Conversation {
164
172
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
165
173
  "X-Fern-Language": "JavaScript",
166
174
  "X-Fern-SDK-Name": "mavenagi",
167
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
168
- "User-Agent": "mavenagi/0.0.0-alpha.21",
175
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
176
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
169
177
  "X-Fern-Runtime": core.RUNTIME.type,
170
178
  "X-Fern-Runtime-Version": core.RUNTIME.version,
171
179
  },
172
180
  contentType: "application/json",
181
+ queryParameters: _queryParams,
173
182
  requestType: "json",
174
183
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
175
184
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -265,8 +274,8 @@ export class Conversation {
265
274
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
266
275
  "X-Fern-Language": "JavaScript",
267
276
  "X-Fern-SDK-Name": "mavenagi",
268
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
269
- "User-Agent": "mavenagi/0.0.0-alpha.21",
277
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
278
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
270
279
  "X-Fern-Runtime": core.RUNTIME.type,
271
280
  "X-Fern-Runtime-Version": core.RUNTIME.version,
272
281
  },
@@ -366,8 +375,8 @@ export class Conversation {
366
375
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
367
376
  "X-Fern-Language": "JavaScript",
368
377
  "X-Fern-SDK-Name": "mavenagi",
369
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
370
- "User-Agent": "mavenagi/0.0.0-alpha.21",
378
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
379
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
371
380
  "X-Fern-Runtime": core.RUNTIME.type,
372
381
  "X-Fern-Runtime-Version": core.RUNTIME.version,
373
382
  },
@@ -446,8 +455,8 @@ export class Conversation {
446
455
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
447
456
  "X-Fern-Language": "JavaScript",
448
457
  "X-Fern-SDK-Name": "mavenagi",
449
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
450
- "User-Agent": "mavenagi/0.0.0-alpha.21",
458
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
459
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
451
460
  "X-Fern-Runtime": core.RUNTIME.type,
452
461
  "X-Fern-Runtime-Version": core.RUNTIME.version,
453
462
  },
@@ -552,8 +561,8 @@ export class Conversation {
552
561
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
553
562
  "X-Fern-Language": "JavaScript",
554
563
  "X-Fern-SDK-Name": "mavenagi",
555
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
556
- "User-Agent": "mavenagi/0.0.0-alpha.21",
564
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
565
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
557
566
  "X-Fern-Runtime": core.RUNTIME.type,
558
567
  "X-Fern-Runtime-Version": core.RUNTIME.version,
559
568
  },
@@ -642,8 +651,8 @@ export class Conversation {
642
651
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
643
652
  "X-Fern-Language": "JavaScript",
644
653
  "X-Fern-SDK-Name": "mavenagi",
645
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
646
- "User-Agent": "mavenagi/0.0.0-alpha.21",
654
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
655
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
647
656
  "X-Fern-Runtime": core.RUNTIME.type,
648
657
  "X-Fern-Runtime-Version": core.RUNTIME.version,
649
658
  },
@@ -743,8 +752,8 @@ export class Conversation {
743
752
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
744
753
  "X-Fern-Language": "JavaScript",
745
754
  "X-Fern-SDK-Name": "mavenagi",
746
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
747
- "User-Agent": "mavenagi/0.0.0-alpha.21",
755
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
756
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
748
757
  "X-Fern-Runtime": core.RUNTIME.type,
749
758
  "X-Fern-Runtime-Version": core.RUNTIME.version,
750
759
  },
@@ -841,8 +850,8 @@ export class Conversation {
841
850
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
842
851
  "X-Fern-Language": "JavaScript",
843
852
  "X-Fern-SDK-Name": "mavenagi",
844
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
845
- "User-Agent": "mavenagi/0.0.0-alpha.21",
853
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
854
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
846
855
  "X-Fern-Runtime": core.RUNTIME.type,
847
856
  "X-Fern-Runtime-Version": core.RUNTIME.version,
848
857
  },
@@ -934,8 +943,8 @@ export class Conversation {
934
943
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
935
944
  "X-Fern-Language": "JavaScript",
936
945
  "X-Fern-SDK-Name": "mavenagi",
937
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
938
- "User-Agent": "mavenagi/0.0.0-alpha.21",
946
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
947
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
939
948
  "X-Fern-Runtime": core.RUNTIME.type,
940
949
  "X-Fern-Runtime-Version": core.RUNTIME.version,
941
950
  },
@@ -1 +1 @@
1
- export {};
1
+ export * from "./requests";
@@ -1 +1 @@
1
- export {};
1
+ export * from "./requests";
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * appId: "string"
8
+ * }
9
+ */
10
+ export interface ConversationGetRequest {
11
+ /**
12
+ * The App ID of the conversation to get. If not provided the ID of the calling app will be used.
13
+ */
14
+ appId?: string;
15
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1 @@
1
+ export { type ConversationGetRequest } from "./ConversationGetRequest";
@@ -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
  }
@@ -11,3 +11,4 @@ export * from "./triggers/types";
11
11
  export * from "./commons/errors";
12
12
  export * as appSettings from "./appSettings";
13
13
  export * as users from "./users";
14
+ export * from "./conversation/client/requests";
@@ -11,3 +11,4 @@ export * from "./triggers/types";
11
11
  export * from "./commons/errors";
12
12
  export * as appSettings from "./appSettings";
13
13
  export * as users from "./users";
14
+ export * from "./conversation/client/requests";
@@ -51,8 +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.21",
55
- "User-Agent": "mavenagi/0.0.0-alpha.21",
54
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
55
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
56
56
  "X-Fern-Runtime": core.RUNTIME.type,
57
57
  "X-Fern-Runtime-Version": core.RUNTIME.version,
58
58
  },
@@ -141,8 +141,8 @@ export class Knowledge {
141
141
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
142
142
  "X-Fern-Language": "JavaScript",
143
143
  "X-Fern-SDK-Name": "mavenagi",
144
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
145
- "User-Agent": "mavenagi/0.0.0-alpha.21",
144
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
145
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
146
146
  "X-Fern-Runtime": core.RUNTIME.type,
147
147
  "X-Fern-Runtime-Version": core.RUNTIME.version,
148
148
  },
@@ -233,8 +233,8 @@ export class Knowledge {
233
233
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
234
234
  "X-Fern-Language": "JavaScript",
235
235
  "X-Fern-SDK-Name": "mavenagi",
236
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
237
- "User-Agent": "mavenagi/0.0.0-alpha.21",
236
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
237
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
238
238
  "X-Fern-Runtime": core.RUNTIME.type,
239
239
  "X-Fern-Runtime-Version": core.RUNTIME.version,
240
240
  },
@@ -323,8 +323,8 @@ export class Knowledge {
323
323
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
324
324
  "X-Fern-Language": "JavaScript",
325
325
  "X-Fern-SDK-Name": "mavenagi",
326
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
327
- "User-Agent": "mavenagi/0.0.0-alpha.21",
326
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
327
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
328
328
  "X-Fern-Runtime": core.RUNTIME.type,
329
329
  "X-Fern-Runtime-Version": core.RUNTIME.version,
330
330
  },
@@ -415,8 +415,8 @@ export class Knowledge {
415
415
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
416
416
  "X-Fern-Language": "JavaScript",
417
417
  "X-Fern-SDK-Name": "mavenagi",
418
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
419
- "User-Agent": "mavenagi/0.0.0-alpha.21",
418
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
419
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
420
420
  "X-Fern-Runtime": core.RUNTIME.type,
421
421
  "X-Fern-Runtime-Version": core.RUNTIME.version,
422
422
  },
@@ -513,8 +513,8 @@ export class Knowledge {
513
513
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
514
514
  "X-Fern-Language": "JavaScript",
515
515
  "X-Fern-SDK-Name": "mavenagi",
516
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
517
- "User-Agent": "mavenagi/0.0.0-alpha.21",
516
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
517
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
518
518
  "X-Fern-Runtime": core.RUNTIME.type,
519
519
  "X-Fern-Runtime-Version": core.RUNTIME.version,
520
520
  },
@@ -604,8 +604,8 @@ export class Knowledge {
604
604
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
605
605
  "X-Fern-Language": "JavaScript",
606
606
  "X-Fern-SDK-Name": "mavenagi",
607
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
608
- "User-Agent": "mavenagi/0.0.0-alpha.21",
607
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
608
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
609
609
  "X-Fern-Runtime": core.RUNTIME.type,
610
610
  "X-Fern-Runtime-Version": core.RUNTIME.version,
611
611
  },
@@ -51,8 +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.21",
55
- "User-Agent": "mavenagi/0.0.0-alpha.21",
54
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
55
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
56
56
  "X-Fern-Runtime": core.RUNTIME.type,
57
57
  "X-Fern-Runtime-Version": core.RUNTIME.version,
58
58
  },
@@ -141,8 +141,8 @@ export class Triggers {
141
141
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
142
142
  "X-Fern-Language": "JavaScript",
143
143
  "X-Fern-SDK-Name": "mavenagi",
144
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
145
- "User-Agent": "mavenagi/0.0.0-alpha.21",
144
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
145
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
146
146
  "X-Fern-Runtime": core.RUNTIME.type,
147
147
  "X-Fern-Runtime-Version": core.RUNTIME.version,
148
148
  },
@@ -230,8 +230,8 @@ export class Triggers {
230
230
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
231
231
  "X-Fern-Language": "JavaScript",
232
232
  "X-Fern-SDK-Name": "mavenagi",
233
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
234
- "User-Agent": "mavenagi/0.0.0-alpha.21",
233
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
234
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
235
235
  "X-Fern-Runtime": core.RUNTIME.type,
236
236
  "X-Fern-Runtime-Version": core.RUNTIME.version,
237
237
  },
@@ -59,8 +59,8 @@ export class Users {
59
59
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
60
60
  "X-Fern-Language": "JavaScript",
61
61
  "X-Fern-SDK-Name": "mavenagi",
62
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
63
- "User-Agent": "mavenagi/0.0.0-alpha.21",
62
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
63
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
64
64
  "X-Fern-Runtime": core.RUNTIME.type,
65
65
  "X-Fern-Runtime-Version": core.RUNTIME.version,
66
66
  },
@@ -149,8 +149,8 @@ export class Users {
149
149
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
150
150
  "X-Fern-Language": "JavaScript",
151
151
  "X-Fern-SDK-Name": "mavenagi",
152
- "X-Fern-SDK-Version": "0.0.0-alpha.21",
153
- "User-Agent": "mavenagi/0.0.0-alpha.21",
152
+ "X-Fern-SDK-Version": "0.0.0-alpha.23",
153
+ "User-Agent": "mavenagi/0.0.0-alpha.23",
154
154
  "X-Fern-Runtime": core.RUNTIME.type,
155
155
  "X-Fern-Runtime-Version": core.RUNTIME.version,
156
156
  },
@@ -10,6 +10,8 @@ export declare namespace ConversationAnalysis {
10
10
  interface Raw {
11
11
  userRequest?: string | null;
12
12
  agentResponse?: string | null;
13
+ resolutionStatus?: string | null;
14
+ category?: string | null;
13
15
  sentiment?: Sentiment.Raw | null;
14
16
  }
15
17
  }
@@ -6,5 +6,7 @@ import { Sentiment } from "./Sentiment";
6
6
  export const ConversationAnalysis = core.serialization.object({
7
7
  userRequest: core.serialization.string().optional(),
8
8
  agentResponse: core.serialization.string().optional(),
9
+ resolutionStatus: core.serialization.string().optional(),
10
+ category: core.serialization.string().optional(),
9
11
  sentiment: Sentiment.optional(),
10
12
  });
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.0-alpha.21";
1
+ export declare const SDK_VERSION = "0.0.0-alpha.23";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.0.0-alpha.21";
1
+ export const SDK_VERSION = "0.0.0-alpha.23";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mavenagi",
3
- "version": "0.0.0-alpha.21",
3
+ "version": "0.0.0-alpha.23",
4
4
  "private": false,
5
5
  "repository": "https://github.com/mavenagi/mavenagi-node",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -366,7 +366,7 @@ await client.conversation.initialize({
366
366
  </dl>
367
367
  </details>
368
368
 
369
- <details><summary><code>client.conversation.<a href="/src/api/resources/conversation/client/Client.ts">get</a>(conversationId) -> MavenAGI.ConversationResponse</code></summary>
369
+ <details><summary><code>client.conversation.<a href="/src/api/resources/conversation/client/Client.ts">get</a>(conversationId, { ...params }) -> MavenAGI.ConversationResponse</code></summary>
370
370
  <dl>
371
371
  <dd>
372
372
 
@@ -394,7 +394,9 @@ Get a conversation
394
394
  <dd>
395
395
 
396
396
  ```typescript
397
- await client.conversation.get("string");
397
+ await client.conversation.get("string", {
398
+ appId: "string",
399
+ });
398
400
  ```
399
401
 
400
402
  </dd>
@@ -418,6 +420,14 @@ await client.conversation.get("string");
418
420
  <dl>
419
421
  <dd>
420
422
 
423
+ **request:** `MavenAGI.ConversationGetRequest`
424
+
425
+ </dd>
426
+ </dl>
427
+
428
+ <dl>
429
+ <dd>
430
+
421
431
  **requestOptions:** `Conversation.RequestOptions`
422
432
 
423
433
  </dd>
@@ -10,6 +10,8 @@ export declare namespace ConversationAnalysis {
10
10
  interface Raw {
11
11
  userRequest?: string | null;
12
12
  agentResponse?: string | null;
13
+ resolutionStatus?: string | null;
14
+ category?: string | null;
13
15
  sentiment?: Sentiment.Raw | null;
14
16
  }
15
17
  }
@@ -6,5 +6,7 @@ import { Sentiment } from "./Sentiment";
6
6
  export const ConversationAnalysis = core.serialization.object({
7
7
  userRequest: core.serialization.string().optional(),
8
8
  agentResponse: core.serialization.string().optional(),
9
+ resolutionStatus: core.serialization.string().optional(),
10
+ category: core.serialization.string().optional(),
9
11
  sentiment: Sentiment.optional(),
10
12
  });
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.0-alpha.21";
1
+ export declare const SDK_VERSION = "0.0.0-alpha.23";
package/version.js CHANGED
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.0.0-alpha.21";
1
+ export const SDK_VERSION = "0.0.0-alpha.23";