mavenagi 0.0.0-alpha.8 → 0.0.0-alpha.9

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 (28) hide show
  1. package/README.md +3 -0
  2. package/api/resources/actions/client/Client.js +3 -3
  3. package/api/resources/conversation/client/Client.d.ts +3 -0
  4. package/api/resources/conversation/client/Client.js +12 -9
  5. package/api/resources/conversation/types/ConversationRequest.d.ts +2 -0
  6. package/api/resources/conversation/types/ConversationResponse.d.ts +2 -0
  7. package/api/resources/knowledge/client/Client.js +7 -7
  8. package/api/resources/triggers/client/Client.d.ts +1 -1
  9. package/api/resources/triggers/client/Client.js +4 -4
  10. package/api/resources/users/client/Client.js +2 -2
  11. package/dist/api/resources/actions/client/Client.js +3 -3
  12. package/dist/api/resources/conversation/client/Client.d.ts +3 -0
  13. package/dist/api/resources/conversation/client/Client.js +12 -9
  14. package/dist/api/resources/conversation/types/ConversationRequest.d.ts +2 -0
  15. package/dist/api/resources/conversation/types/ConversationResponse.d.ts +2 -0
  16. package/dist/api/resources/knowledge/client/Client.js +7 -7
  17. package/dist/api/resources/triggers/client/Client.d.ts +1 -1
  18. package/dist/api/resources/triggers/client/Client.js +4 -4
  19. package/dist/api/resources/users/client/Client.js +2 -2
  20. package/dist/serialization/resources/conversation/types/ConversationRequest.d.ts +2 -0
  21. package/dist/serialization/resources/conversation/types/ConversationRequest.js +2 -0
  22. package/dist/serialization/resources/conversation/types/ConversationResponse.d.ts +2 -0
  23. package/dist/serialization/resources/conversation/types/ConversationResponse.js +2 -0
  24. package/package.json +1 -1
  25. package/serialization/resources/conversation/types/ConversationRequest.d.ts +2 -0
  26. package/serialization/resources/conversation/types/ConversationRequest.js +2 -0
  27. package/serialization/resources/conversation/types/ConversationResponse.d.ts +2 -0
  28. package/serialization/resources/conversation/types/ConversationResponse.js +2 -0
package/README.md CHANGED
@@ -26,6 +26,9 @@ const client = new MavenAGIClient({
26
26
  agentId: "YOUR_AGENT_ID",
27
27
  });
28
28
  await client.conversation.initialize({
29
+ conversationId: {
30
+ referenceId: "string",
31
+ },
29
32
  messages: [{}],
30
33
  context: {},
31
34
  id: "string",
@@ -56,7 +56,7 @@ export class Actions {
56
56
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
57
57
  "X-Fern-Language": "JavaScript",
58
58
  "X-Fern-SDK-Name": "mavenagi",
59
- "X-Fern-SDK-Version": "0.0.0-alpha.8",
59
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
60
60
  "X-Fern-Runtime": core.RUNTIME.type,
61
61
  "X-Fern-Runtime-Version": core.RUNTIME.version,
62
62
  },
@@ -144,7 +144,7 @@ export class Actions {
144
144
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
145
145
  "X-Fern-Language": "JavaScript",
146
146
  "X-Fern-SDK-Name": "mavenagi",
147
- "X-Fern-SDK-Version": "0.0.0-alpha.8",
147
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
148
148
  "X-Fern-Runtime": core.RUNTIME.type,
149
149
  "X-Fern-Runtime-Version": core.RUNTIME.version,
150
150
  },
@@ -231,7 +231,7 @@ export class Actions {
231
231
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
232
232
  "X-Fern-Language": "JavaScript",
233
233
  "X-Fern-SDK-Name": "mavenagi",
234
- "X-Fern-SDK-Version": "0.0.0-alpha.8",
234
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
235
235
  "X-Fern-Runtime": core.RUNTIME.type,
236
236
  "X-Fern-Runtime-Version": core.RUNTIME.version,
237
237
  },
@@ -34,6 +34,9 @@ export declare class Conversation {
34
34
  *
35
35
  * @example
36
36
  * await client.conversation.initialize({
37
+ * conversationId: {
38
+ * referenceId: "string"
39
+ * },
37
40
  * messages: [{}],
38
41
  * context: {},
39
42
  * id: "string",
@@ -32,6 +32,9 @@ export class Conversation {
32
32
  *
33
33
  * @example
34
34
  * await client.conversation.initialize({
35
+ * conversationId: {
36
+ * referenceId: "string"
37
+ * },
35
38
  * messages: [{}],
36
39
  * context: {},
37
40
  * id: "string",
@@ -54,7 +57,7 @@ export class Conversation {
54
57
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
55
58
  "X-Fern-Language": "JavaScript",
56
59
  "X-Fern-SDK-Name": "mavenagi",
57
- "X-Fern-SDK-Version": "0.0.0-alpha.8",
60
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
58
61
  "X-Fern-Runtime": core.RUNTIME.type,
59
62
  "X-Fern-Runtime-Version": core.RUNTIME.version,
60
63
  },
@@ -142,7 +145,7 @@ export class Conversation {
142
145
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
143
146
  "X-Fern-Language": "JavaScript",
144
147
  "X-Fern-SDK-Name": "mavenagi",
145
- "X-Fern-SDK-Version": "0.0.0-alpha.8",
148
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
146
149
  "X-Fern-Runtime": core.RUNTIME.type,
147
150
  "X-Fern-Runtime-Version": core.RUNTIME.version,
148
151
  },
@@ -235,7 +238,7 @@ export class Conversation {
235
238
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
236
239
  "X-Fern-Language": "JavaScript",
237
240
  "X-Fern-SDK-Name": "mavenagi",
238
- "X-Fern-SDK-Version": "0.0.0-alpha.8",
241
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
239
242
  "X-Fern-Runtime": core.RUNTIME.type,
240
243
  "X-Fern-Runtime-Version": core.RUNTIME.version,
241
244
  },
@@ -331,7 +334,7 @@ export class Conversation {
331
334
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
332
335
  "X-Fern-Language": "JavaScript",
333
336
  "X-Fern-SDK-Name": "mavenagi",
334
- "X-Fern-SDK-Version": "0.0.0-alpha.8",
337
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
335
338
  "X-Fern-Runtime": core.RUNTIME.type,
336
339
  "X-Fern-Runtime-Version": core.RUNTIME.version,
337
340
  },
@@ -409,7 +412,7 @@ export class Conversation {
409
412
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
410
413
  "X-Fern-Language": "JavaScript",
411
414
  "X-Fern-SDK-Name": "mavenagi",
412
- "X-Fern-SDK-Version": "0.0.0-alpha.8",
415
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
413
416
  "X-Fern-Runtime": core.RUNTIME.type,
414
417
  "X-Fern-Runtime-Version": core.RUNTIME.version,
415
418
  },
@@ -511,7 +514,7 @@ export class Conversation {
511
514
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
512
515
  "X-Fern-Language": "JavaScript",
513
516
  "X-Fern-SDK-Name": "mavenagi",
514
- "X-Fern-SDK-Version": "0.0.0-alpha.8",
517
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
515
518
  "X-Fern-Runtime": core.RUNTIME.type,
516
519
  "X-Fern-Runtime-Version": core.RUNTIME.version,
517
520
  },
@@ -607,7 +610,7 @@ export class Conversation {
607
610
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
608
611
  "X-Fern-Language": "JavaScript",
609
612
  "X-Fern-SDK-Name": "mavenagi",
610
- "X-Fern-SDK-Version": "0.0.0-alpha.8",
613
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
611
614
  "X-Fern-Runtime": core.RUNTIME.type,
612
615
  "X-Fern-Runtime-Version": core.RUNTIME.version,
613
616
  },
@@ -708,7 +711,7 @@ export class Conversation {
708
711
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
709
712
  "X-Fern-Language": "JavaScript",
710
713
  "X-Fern-SDK-Name": "mavenagi",
711
- "X-Fern-SDK-Version": "0.0.0-alpha.8",
714
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
712
715
  "X-Fern-Runtime": core.RUNTIME.type,
713
716
  "X-Fern-Runtime-Version": core.RUNTIME.version,
714
717
  },
@@ -799,7 +802,7 @@ export class Conversation {
799
802
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
800
803
  "X-Fern-Language": "JavaScript",
801
804
  "X-Fern-SDK-Name": "mavenagi",
802
- "X-Fern-SDK-Version": "0.0.0-alpha.8",
805
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
803
806
  "X-Fern-Runtime": core.RUNTIME.type,
804
807
  "X-Fern-Runtime-Version": core.RUNTIME.version,
805
808
  },
@@ -3,6 +3,8 @@
3
3
  */
4
4
  import * as MavenAGI from "../../../index";
5
5
  export interface ConversationRequest extends MavenAGI.ConversationBase {
6
+ /** An externally supplied ID to uniquely identify this conversation */
7
+ conversationId: MavenAGI.EntityIdBase;
6
8
  /** The messages in the conversation */
7
9
  messages: MavenAGI.ConversationMessageRequest[];
8
10
  /** The context of the conversation */
@@ -3,6 +3,8 @@
3
3
  */
4
4
  import * as MavenAGI from "../../../index";
5
5
  export interface ConversationResponse extends MavenAGI.ConversationBase {
6
+ /** The ID that uniquely identifies this conversation */
7
+ conversationId: MavenAGI.EntityId;
6
8
  /** The messages in the conversation */
7
9
  messages: MavenAGI.ConversationMessageResponse[];
8
10
  /** The context of the conversation */
@@ -51,7 +51,7 @@ 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.8",
54
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
55
55
  "X-Fern-Runtime": core.RUNTIME.type,
56
56
  "X-Fern-Runtime-Version": core.RUNTIME.version,
57
57
  },
@@ -139,7 +139,7 @@ export class Knowledge {
139
139
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
140
140
  "X-Fern-Language": "JavaScript",
141
141
  "X-Fern-SDK-Name": "mavenagi",
142
- "X-Fern-SDK-Version": "0.0.0-alpha.8",
142
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
143
143
  "X-Fern-Runtime": core.RUNTIME.type,
144
144
  "X-Fern-Runtime-Version": core.RUNTIME.version,
145
145
  },
@@ -229,7 +229,7 @@ export class Knowledge {
229
229
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
230
230
  "X-Fern-Language": "JavaScript",
231
231
  "X-Fern-SDK-Name": "mavenagi",
232
- "X-Fern-SDK-Version": "0.0.0-alpha.8",
232
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
233
233
  "X-Fern-Runtime": core.RUNTIME.type,
234
234
  "X-Fern-Runtime-Version": core.RUNTIME.version,
235
235
  },
@@ -317,7 +317,7 @@ export class Knowledge {
317
317
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
318
318
  "X-Fern-Language": "JavaScript",
319
319
  "X-Fern-SDK-Name": "mavenagi",
320
- "X-Fern-SDK-Version": "0.0.0-alpha.8",
320
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
321
321
  "X-Fern-Runtime": core.RUNTIME.type,
322
322
  "X-Fern-Runtime-Version": core.RUNTIME.version,
323
323
  },
@@ -407,7 +407,7 @@ export class Knowledge {
407
407
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
408
408
  "X-Fern-Language": "JavaScript",
409
409
  "X-Fern-SDK-Name": "mavenagi",
410
- "X-Fern-SDK-Version": "0.0.0-alpha.8",
410
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
411
411
  "X-Fern-Runtime": core.RUNTIME.type,
412
412
  "X-Fern-Runtime-Version": core.RUNTIME.version,
413
413
  },
@@ -503,7 +503,7 @@ export class Knowledge {
503
503
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
504
504
  "X-Fern-Language": "JavaScript",
505
505
  "X-Fern-SDK-Name": "mavenagi",
506
- "X-Fern-SDK-Version": "0.0.0-alpha.8",
506
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
507
507
  "X-Fern-Runtime": core.RUNTIME.type,
508
508
  "X-Fern-Runtime-Version": core.RUNTIME.version,
509
509
  },
@@ -592,7 +592,7 @@ export class Knowledge {
592
592
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
593
593
  "X-Fern-Language": "JavaScript",
594
594
  "X-Fern-SDK-Name": "mavenagi",
595
- "X-Fern-SDK-Version": "0.0.0-alpha.8",
595
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
596
596
  "X-Fern-Runtime": core.RUNTIME.type,
597
597
  "X-Fern-Runtime-Version": core.RUNTIME.version,
598
598
  },
@@ -59,7 +59,7 @@ export declare class Triggers {
59
59
  /**
60
60
  * Delete an event trigger
61
61
  *
62
- * @param {string} triggerReferenceId - The reference ID of the event trigger to unregister. All other entity ID fields are inferred from the request.
62
+ * @param {string} triggerReferenceId - The reference ID of the event trigger to delete. All other entity ID fields are inferred from the request.
63
63
  * @param {Triggers.RequestOptions} requestOptions - Request-specific configuration.
64
64
  *
65
65
  * @throws {@link MavenAGI.NotFoundError}
@@ -51,7 +51,7 @@ 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.8",
54
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
55
55
  "X-Fern-Runtime": core.RUNTIME.type,
56
56
  "X-Fern-Runtime-Version": core.RUNTIME.version,
57
57
  },
@@ -139,7 +139,7 @@ export class Triggers {
139
139
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
140
140
  "X-Fern-Language": "JavaScript",
141
141
  "X-Fern-SDK-Name": "mavenagi",
142
- "X-Fern-SDK-Version": "0.0.0-alpha.8",
142
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
143
143
  "X-Fern-Runtime": core.RUNTIME.type,
144
144
  "X-Fern-Runtime-Version": core.RUNTIME.version,
145
145
  },
@@ -204,7 +204,7 @@ export class Triggers {
204
204
  /**
205
205
  * Delete an event trigger
206
206
  *
207
- * @param {string} triggerReferenceId - The reference ID of the event trigger to unregister. All other entity ID fields are inferred from the request.
207
+ * @param {string} triggerReferenceId - The reference ID of the event trigger to delete. All other entity ID fields are inferred from the request.
208
208
  * @param {Triggers.RequestOptions} requestOptions - Request-specific configuration.
209
209
  *
210
210
  * @throws {@link MavenAGI.NotFoundError}
@@ -226,7 +226,7 @@ export class Triggers {
226
226
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
227
227
  "X-Fern-Language": "JavaScript",
228
228
  "X-Fern-SDK-Name": "mavenagi",
229
- "X-Fern-SDK-Version": "0.0.0-alpha.8",
229
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
230
230
  "X-Fern-Runtime": core.RUNTIME.type,
231
231
  "X-Fern-Runtime-Version": core.RUNTIME.version,
232
232
  },
@@ -53,7 +53,7 @@ export class Users {
53
53
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
54
54
  "X-Fern-Language": "JavaScript",
55
55
  "X-Fern-SDK-Name": "mavenagi",
56
- "X-Fern-SDK-Version": "0.0.0-alpha.8",
56
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
57
57
  "X-Fern-Runtime": core.RUNTIME.type,
58
58
  "X-Fern-Runtime-Version": core.RUNTIME.version,
59
59
  },
@@ -141,7 +141,7 @@ export class Users {
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.8",
144
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
145
145
  "X-Fern-Runtime": core.RUNTIME.type,
146
146
  "X-Fern-Runtime-Version": core.RUNTIME.version,
147
147
  },
@@ -56,7 +56,7 @@ export class Actions {
56
56
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
57
57
  "X-Fern-Language": "JavaScript",
58
58
  "X-Fern-SDK-Name": "mavenagi",
59
- "X-Fern-SDK-Version": "0.0.0-alpha.8",
59
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
60
60
  "X-Fern-Runtime": core.RUNTIME.type,
61
61
  "X-Fern-Runtime-Version": core.RUNTIME.version,
62
62
  },
@@ -144,7 +144,7 @@ export class Actions {
144
144
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
145
145
  "X-Fern-Language": "JavaScript",
146
146
  "X-Fern-SDK-Name": "mavenagi",
147
- "X-Fern-SDK-Version": "0.0.0-alpha.8",
147
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
148
148
  "X-Fern-Runtime": core.RUNTIME.type,
149
149
  "X-Fern-Runtime-Version": core.RUNTIME.version,
150
150
  },
@@ -231,7 +231,7 @@ export class Actions {
231
231
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
232
232
  "X-Fern-Language": "JavaScript",
233
233
  "X-Fern-SDK-Name": "mavenagi",
234
- "X-Fern-SDK-Version": "0.0.0-alpha.8",
234
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
235
235
  "X-Fern-Runtime": core.RUNTIME.type,
236
236
  "X-Fern-Runtime-Version": core.RUNTIME.version,
237
237
  },
@@ -34,6 +34,9 @@ export declare class Conversation {
34
34
  *
35
35
  * @example
36
36
  * await client.conversation.initialize({
37
+ * conversationId: {
38
+ * referenceId: "string"
39
+ * },
37
40
  * messages: [{}],
38
41
  * context: {},
39
42
  * id: "string",
@@ -32,6 +32,9 @@ export class Conversation {
32
32
  *
33
33
  * @example
34
34
  * await client.conversation.initialize({
35
+ * conversationId: {
36
+ * referenceId: "string"
37
+ * },
35
38
  * messages: [{}],
36
39
  * context: {},
37
40
  * id: "string",
@@ -54,7 +57,7 @@ export class Conversation {
54
57
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
55
58
  "X-Fern-Language": "JavaScript",
56
59
  "X-Fern-SDK-Name": "mavenagi",
57
- "X-Fern-SDK-Version": "0.0.0-alpha.8",
60
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
58
61
  "X-Fern-Runtime": core.RUNTIME.type,
59
62
  "X-Fern-Runtime-Version": core.RUNTIME.version,
60
63
  },
@@ -142,7 +145,7 @@ export class Conversation {
142
145
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
143
146
  "X-Fern-Language": "JavaScript",
144
147
  "X-Fern-SDK-Name": "mavenagi",
145
- "X-Fern-SDK-Version": "0.0.0-alpha.8",
148
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
146
149
  "X-Fern-Runtime": core.RUNTIME.type,
147
150
  "X-Fern-Runtime-Version": core.RUNTIME.version,
148
151
  },
@@ -235,7 +238,7 @@ export class Conversation {
235
238
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
236
239
  "X-Fern-Language": "JavaScript",
237
240
  "X-Fern-SDK-Name": "mavenagi",
238
- "X-Fern-SDK-Version": "0.0.0-alpha.8",
241
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
239
242
  "X-Fern-Runtime": core.RUNTIME.type,
240
243
  "X-Fern-Runtime-Version": core.RUNTIME.version,
241
244
  },
@@ -331,7 +334,7 @@ export class Conversation {
331
334
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
332
335
  "X-Fern-Language": "JavaScript",
333
336
  "X-Fern-SDK-Name": "mavenagi",
334
- "X-Fern-SDK-Version": "0.0.0-alpha.8",
337
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
335
338
  "X-Fern-Runtime": core.RUNTIME.type,
336
339
  "X-Fern-Runtime-Version": core.RUNTIME.version,
337
340
  },
@@ -409,7 +412,7 @@ export class Conversation {
409
412
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
410
413
  "X-Fern-Language": "JavaScript",
411
414
  "X-Fern-SDK-Name": "mavenagi",
412
- "X-Fern-SDK-Version": "0.0.0-alpha.8",
415
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
413
416
  "X-Fern-Runtime": core.RUNTIME.type,
414
417
  "X-Fern-Runtime-Version": core.RUNTIME.version,
415
418
  },
@@ -511,7 +514,7 @@ export class Conversation {
511
514
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
512
515
  "X-Fern-Language": "JavaScript",
513
516
  "X-Fern-SDK-Name": "mavenagi",
514
- "X-Fern-SDK-Version": "0.0.0-alpha.8",
517
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
515
518
  "X-Fern-Runtime": core.RUNTIME.type,
516
519
  "X-Fern-Runtime-Version": core.RUNTIME.version,
517
520
  },
@@ -607,7 +610,7 @@ export class Conversation {
607
610
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
608
611
  "X-Fern-Language": "JavaScript",
609
612
  "X-Fern-SDK-Name": "mavenagi",
610
- "X-Fern-SDK-Version": "0.0.0-alpha.8",
613
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
611
614
  "X-Fern-Runtime": core.RUNTIME.type,
612
615
  "X-Fern-Runtime-Version": core.RUNTIME.version,
613
616
  },
@@ -708,7 +711,7 @@ export class Conversation {
708
711
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
709
712
  "X-Fern-Language": "JavaScript",
710
713
  "X-Fern-SDK-Name": "mavenagi",
711
- "X-Fern-SDK-Version": "0.0.0-alpha.8",
714
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
712
715
  "X-Fern-Runtime": core.RUNTIME.type,
713
716
  "X-Fern-Runtime-Version": core.RUNTIME.version,
714
717
  },
@@ -799,7 +802,7 @@ export class Conversation {
799
802
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
800
803
  "X-Fern-Language": "JavaScript",
801
804
  "X-Fern-SDK-Name": "mavenagi",
802
- "X-Fern-SDK-Version": "0.0.0-alpha.8",
805
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
803
806
  "X-Fern-Runtime": core.RUNTIME.type,
804
807
  "X-Fern-Runtime-Version": core.RUNTIME.version,
805
808
  },
@@ -3,6 +3,8 @@
3
3
  */
4
4
  import * as MavenAGI from "../../../index";
5
5
  export interface ConversationRequest extends MavenAGI.ConversationBase {
6
+ /** An externally supplied ID to uniquely identify this conversation */
7
+ conversationId: MavenAGI.EntityIdBase;
6
8
  /** The messages in the conversation */
7
9
  messages: MavenAGI.ConversationMessageRequest[];
8
10
  /** The context of the conversation */
@@ -3,6 +3,8 @@
3
3
  */
4
4
  import * as MavenAGI from "../../../index";
5
5
  export interface ConversationResponse extends MavenAGI.ConversationBase {
6
+ /** The ID that uniquely identifies this conversation */
7
+ conversationId: MavenAGI.EntityId;
6
8
  /** The messages in the conversation */
7
9
  messages: MavenAGI.ConversationMessageResponse[];
8
10
  /** The context of the conversation */
@@ -51,7 +51,7 @@ 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.8",
54
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
55
55
  "X-Fern-Runtime": core.RUNTIME.type,
56
56
  "X-Fern-Runtime-Version": core.RUNTIME.version,
57
57
  },
@@ -139,7 +139,7 @@ export class Knowledge {
139
139
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
140
140
  "X-Fern-Language": "JavaScript",
141
141
  "X-Fern-SDK-Name": "mavenagi",
142
- "X-Fern-SDK-Version": "0.0.0-alpha.8",
142
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
143
143
  "X-Fern-Runtime": core.RUNTIME.type,
144
144
  "X-Fern-Runtime-Version": core.RUNTIME.version,
145
145
  },
@@ -229,7 +229,7 @@ export class Knowledge {
229
229
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
230
230
  "X-Fern-Language": "JavaScript",
231
231
  "X-Fern-SDK-Name": "mavenagi",
232
- "X-Fern-SDK-Version": "0.0.0-alpha.8",
232
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
233
233
  "X-Fern-Runtime": core.RUNTIME.type,
234
234
  "X-Fern-Runtime-Version": core.RUNTIME.version,
235
235
  },
@@ -317,7 +317,7 @@ export class Knowledge {
317
317
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
318
318
  "X-Fern-Language": "JavaScript",
319
319
  "X-Fern-SDK-Name": "mavenagi",
320
- "X-Fern-SDK-Version": "0.0.0-alpha.8",
320
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
321
321
  "X-Fern-Runtime": core.RUNTIME.type,
322
322
  "X-Fern-Runtime-Version": core.RUNTIME.version,
323
323
  },
@@ -407,7 +407,7 @@ export class Knowledge {
407
407
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
408
408
  "X-Fern-Language": "JavaScript",
409
409
  "X-Fern-SDK-Name": "mavenagi",
410
- "X-Fern-SDK-Version": "0.0.0-alpha.8",
410
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
411
411
  "X-Fern-Runtime": core.RUNTIME.type,
412
412
  "X-Fern-Runtime-Version": core.RUNTIME.version,
413
413
  },
@@ -503,7 +503,7 @@ export class Knowledge {
503
503
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
504
504
  "X-Fern-Language": "JavaScript",
505
505
  "X-Fern-SDK-Name": "mavenagi",
506
- "X-Fern-SDK-Version": "0.0.0-alpha.8",
506
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
507
507
  "X-Fern-Runtime": core.RUNTIME.type,
508
508
  "X-Fern-Runtime-Version": core.RUNTIME.version,
509
509
  },
@@ -592,7 +592,7 @@ export class Knowledge {
592
592
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
593
593
  "X-Fern-Language": "JavaScript",
594
594
  "X-Fern-SDK-Name": "mavenagi",
595
- "X-Fern-SDK-Version": "0.0.0-alpha.8",
595
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
596
596
  "X-Fern-Runtime": core.RUNTIME.type,
597
597
  "X-Fern-Runtime-Version": core.RUNTIME.version,
598
598
  },
@@ -59,7 +59,7 @@ export declare class Triggers {
59
59
  /**
60
60
  * Delete an event trigger
61
61
  *
62
- * @param {string} triggerReferenceId - The reference ID of the event trigger to unregister. All other entity ID fields are inferred from the request.
62
+ * @param {string} triggerReferenceId - The reference ID of the event trigger to delete. All other entity ID fields are inferred from the request.
63
63
  * @param {Triggers.RequestOptions} requestOptions - Request-specific configuration.
64
64
  *
65
65
  * @throws {@link MavenAGI.NotFoundError}
@@ -51,7 +51,7 @@ 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.8",
54
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
55
55
  "X-Fern-Runtime": core.RUNTIME.type,
56
56
  "X-Fern-Runtime-Version": core.RUNTIME.version,
57
57
  },
@@ -139,7 +139,7 @@ export class Triggers {
139
139
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
140
140
  "X-Fern-Language": "JavaScript",
141
141
  "X-Fern-SDK-Name": "mavenagi",
142
- "X-Fern-SDK-Version": "0.0.0-alpha.8",
142
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
143
143
  "X-Fern-Runtime": core.RUNTIME.type,
144
144
  "X-Fern-Runtime-Version": core.RUNTIME.version,
145
145
  },
@@ -204,7 +204,7 @@ export class Triggers {
204
204
  /**
205
205
  * Delete an event trigger
206
206
  *
207
- * @param {string} triggerReferenceId - The reference ID of the event trigger to unregister. All other entity ID fields are inferred from the request.
207
+ * @param {string} triggerReferenceId - The reference ID of the event trigger to delete. All other entity ID fields are inferred from the request.
208
208
  * @param {Triggers.RequestOptions} requestOptions - Request-specific configuration.
209
209
  *
210
210
  * @throws {@link MavenAGI.NotFoundError}
@@ -226,7 +226,7 @@ export class Triggers {
226
226
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
227
227
  "X-Fern-Language": "JavaScript",
228
228
  "X-Fern-SDK-Name": "mavenagi",
229
- "X-Fern-SDK-Version": "0.0.0-alpha.8",
229
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
230
230
  "X-Fern-Runtime": core.RUNTIME.type,
231
231
  "X-Fern-Runtime-Version": core.RUNTIME.version,
232
232
  },
@@ -53,7 +53,7 @@ export class Users {
53
53
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
54
54
  "X-Fern-Language": "JavaScript",
55
55
  "X-Fern-SDK-Name": "mavenagi",
56
- "X-Fern-SDK-Version": "0.0.0-alpha.8",
56
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
57
57
  "X-Fern-Runtime": core.RUNTIME.type,
58
58
  "X-Fern-Runtime-Version": core.RUNTIME.version,
59
59
  },
@@ -141,7 +141,7 @@ export class Users {
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.8",
144
+ "X-Fern-SDK-Version": "0.0.0-alpha.9",
145
145
  "X-Fern-Runtime": core.RUNTIME.type,
146
146
  "X-Fern-Runtime-Version": core.RUNTIME.version,
147
147
  },
@@ -4,12 +4,14 @@
4
4
  import * as serializers from "../../../index";
5
5
  import * as MavenAGI from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
+ import { EntityIdBase } from "../../commons/types/EntityIdBase";
7
8
  import { ConversationMessageRequest } from "./ConversationMessageRequest";
8
9
  import { ConversationContext } from "./ConversationContext";
9
10
  import { ConversationBase } from "./ConversationBase";
10
11
  export declare const ConversationRequest: core.serialization.ObjectSchema<serializers.ConversationRequest.Raw, MavenAGI.ConversationRequest>;
11
12
  export declare namespace ConversationRequest {
12
13
  interface Raw extends ConversationBase.Raw {
14
+ conversationId: EntityIdBase.Raw;
13
15
  messages: ConversationMessageRequest.Raw[];
14
16
  context?: ConversationContext.Raw | null;
15
17
  }
@@ -2,11 +2,13 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as core from "../../../../core";
5
+ import { EntityIdBase } from "../../commons/types/EntityIdBase";
5
6
  import { ConversationMessageRequest } from "./ConversationMessageRequest";
6
7
  import { ConversationContext } from "./ConversationContext";
7
8
  import { ConversationBase } from "./ConversationBase";
8
9
  export const ConversationRequest = core.serialization
9
10
  .object({
11
+ conversationId: EntityIdBase,
10
12
  messages: core.serialization.list(ConversationMessageRequest),
11
13
  context: ConversationContext.optional(),
12
14
  })
@@ -4,12 +4,14 @@
4
4
  import * as serializers from "../../../index";
5
5
  import * as MavenAGI from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
+ import { EntityId } from "../../commons/types/EntityId";
7
8
  import { ConversationMessageResponse } from "./ConversationMessageResponse";
8
9
  import { ConversationContext } from "./ConversationContext";
9
10
  import { ConversationBase } from "./ConversationBase";
10
11
  export declare const ConversationResponse: core.serialization.ObjectSchema<serializers.ConversationResponse.Raw, MavenAGI.ConversationResponse>;
11
12
  export declare namespace ConversationResponse {
12
13
  interface Raw extends ConversationBase.Raw {
14
+ conversationId: EntityId.Raw;
13
15
  messages: ConversationMessageResponse.Raw[];
14
16
  context: ConversationContext.Raw;
15
17
  }
@@ -2,11 +2,13 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as core from "../../../../core";
5
+ import { EntityId } from "../../commons/types/EntityId";
5
6
  import { ConversationMessageResponse } from "./ConversationMessageResponse";
6
7
  import { ConversationContext } from "./ConversationContext";
7
8
  import { ConversationBase } from "./ConversationBase";
8
9
  export const ConversationResponse = core.serialization
9
10
  .object({
11
+ conversationId: EntityId,
10
12
  messages: core.serialization.list(ConversationMessageResponse),
11
13
  context: ConversationContext,
12
14
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mavenagi",
3
- "version": "0.0.0-alpha.8",
3
+ "version": "0.0.0-alpha.9",
4
4
  "private": false,
5
5
  "repository": "https://github.com/mavenagi/mavenagi-node",
6
6
  "main": "./index.js",
@@ -4,12 +4,14 @@
4
4
  import * as serializers from "../../../index";
5
5
  import * as MavenAGI from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
+ import { EntityIdBase } from "../../commons/types/EntityIdBase";
7
8
  import { ConversationMessageRequest } from "./ConversationMessageRequest";
8
9
  import { ConversationContext } from "./ConversationContext";
9
10
  import { ConversationBase } from "./ConversationBase";
10
11
  export declare const ConversationRequest: core.serialization.ObjectSchema<serializers.ConversationRequest.Raw, MavenAGI.ConversationRequest>;
11
12
  export declare namespace ConversationRequest {
12
13
  interface Raw extends ConversationBase.Raw {
14
+ conversationId: EntityIdBase.Raw;
13
15
  messages: ConversationMessageRequest.Raw[];
14
16
  context?: ConversationContext.Raw | null;
15
17
  }
@@ -2,11 +2,13 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as core from "../../../../core";
5
+ import { EntityIdBase } from "../../commons/types/EntityIdBase";
5
6
  import { ConversationMessageRequest } from "./ConversationMessageRequest";
6
7
  import { ConversationContext } from "./ConversationContext";
7
8
  import { ConversationBase } from "./ConversationBase";
8
9
  export const ConversationRequest = core.serialization
9
10
  .object({
11
+ conversationId: EntityIdBase,
10
12
  messages: core.serialization.list(ConversationMessageRequest),
11
13
  context: ConversationContext.optional(),
12
14
  })
@@ -4,12 +4,14 @@
4
4
  import * as serializers from "../../../index";
5
5
  import * as MavenAGI from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
+ import { EntityId } from "../../commons/types/EntityId";
7
8
  import { ConversationMessageResponse } from "./ConversationMessageResponse";
8
9
  import { ConversationContext } from "./ConversationContext";
9
10
  import { ConversationBase } from "./ConversationBase";
10
11
  export declare const ConversationResponse: core.serialization.ObjectSchema<serializers.ConversationResponse.Raw, MavenAGI.ConversationResponse>;
11
12
  export declare namespace ConversationResponse {
12
13
  interface Raw extends ConversationBase.Raw {
14
+ conversationId: EntityId.Raw;
13
15
  messages: ConversationMessageResponse.Raw[];
14
16
  context: ConversationContext.Raw;
15
17
  }
@@ -2,11 +2,13 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as core from "../../../../core";
5
+ import { EntityId } from "../../commons/types/EntityId";
5
6
  import { ConversationMessageResponse } from "./ConversationMessageResponse";
6
7
  import { ConversationContext } from "./ConversationContext";
7
8
  import { ConversationBase } from "./ConversationBase";
8
9
  export const ConversationResponse = core.serialization
9
10
  .object({
11
+ conversationId: EntityId,
10
12
  messages: core.serialization.list(ConversationMessageResponse),
11
13
  context: ConversationContext,
12
14
  })