mavenagi 0.0.0-alpha.23 → 0.0.0-alpha.25
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.
- package/api/resources/actions/client/Client.js +6 -6
- package/api/resources/appSettings/client/Client.js +2 -2
- package/api/resources/conversation/client/Client.d.ts +5 -1
- package/api/resources/conversation/client/Client.js +25 -21
- package/api/resources/conversation/types/AskRequest.d.ts +7 -1
- package/api/resources/conversation/types/Attachment.d.ts +9 -0
- package/api/resources/conversation/types/Attachment.js +4 -0
- package/api/resources/conversation/types/index.d.ts +1 -0
- package/api/resources/conversation/types/index.js +1 -0
- package/api/resources/knowledge/client/Client.js +14 -14
- package/api/resources/triggers/client/Client.js +6 -6
- package/api/resources/users/client/Client.js +4 -4
- package/dist/api/resources/actions/client/Client.js +6 -6
- package/dist/api/resources/appSettings/client/Client.js +2 -2
- package/dist/api/resources/conversation/client/Client.d.ts +5 -1
- package/dist/api/resources/conversation/client/Client.js +25 -21
- package/dist/api/resources/conversation/types/AskRequest.d.ts +7 -1
- package/dist/api/resources/conversation/types/Attachment.d.ts +9 -0
- package/dist/api/resources/conversation/types/Attachment.js +4 -0
- package/dist/api/resources/conversation/types/index.d.ts +1 -0
- package/dist/api/resources/conversation/types/index.js +1 -0
- package/dist/api/resources/knowledge/client/Client.js +14 -14
- package/dist/api/resources/triggers/client/Client.js +6 -6
- package/dist/api/resources/users/client/Client.js +4 -4
- package/dist/serialization/resources/conversation/types/AskRequest.d.ts +2 -0
- package/dist/serialization/resources/conversation/types/AskRequest.js +2 -0
- package/dist/serialization/resources/conversation/types/Attachment.d.ts +13 -0
- package/dist/serialization/resources/conversation/types/Attachment.js +8 -0
- package/dist/serialization/resources/conversation/types/index.d.ts +1 -0
- package/dist/serialization/resources/conversation/types/index.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +12 -0
- package/serialization/resources/conversation/types/AskRequest.d.ts +2 -0
- package/serialization/resources/conversation/types/AskRequest.js +2 -0
- package/serialization/resources/conversation/types/Attachment.d.ts +13 -0
- package/serialization/resources/conversation/types/Attachment.js +8 -0
- package/serialization/resources/conversation/types/index.d.ts +1 -0
- package/serialization/resources/conversation/types/index.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -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.
|
|
68
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
67
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
68
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
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.
|
|
158
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
157
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
158
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
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.
|
|
247
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
246
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
247
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
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.
|
|
48
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
47
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
48
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
49
49
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
50
50
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
51
51
|
},
|
|
@@ -136,7 +136,11 @@ export declare class Conversation {
|
|
|
136
136
|
* userId: {
|
|
137
137
|
* referenceId: "user-1"
|
|
138
138
|
* },
|
|
139
|
-
* text: "How do I reset my password?"
|
|
139
|
+
* text: "How do I reset my password?",
|
|
140
|
+
* attachments: [{
|
|
141
|
+
* type: "image/png",
|
|
142
|
+
* content: "iVBORw0KGgo..."
|
|
143
|
+
* }]
|
|
140
144
|
* })
|
|
141
145
|
*/
|
|
142
146
|
ask(conversationId: string, request: MavenAGI.AskRequest, requestOptions?: Conversation.RequestOptions): Promise<MavenAGI.ConversationResponse>;
|
|
@@ -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.
|
|
78
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
77
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
78
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
79
79
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
80
80
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
81
81
|
},
|
|
@@ -172,8 +172,8 @@ export class Conversation {
|
|
|
172
172
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
173
173
|
"X-Fern-Language": "JavaScript",
|
|
174
174
|
"X-Fern-SDK-Name": "mavenagi",
|
|
175
|
-
"X-Fern-SDK-Version": "0.0.0-alpha.
|
|
176
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
175
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
176
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
177
177
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
178
178
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
179
179
|
},
|
|
@@ -274,8 +274,8 @@ export class Conversation {
|
|
|
274
274
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
275
275
|
"X-Fern-Language": "JavaScript",
|
|
276
276
|
"X-Fern-SDK-Name": "mavenagi",
|
|
277
|
-
"X-Fern-SDK-Version": "0.0.0-alpha.
|
|
278
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
277
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
278
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
279
279
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
280
280
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
281
281
|
},
|
|
@@ -360,7 +360,11 @@ export class Conversation {
|
|
|
360
360
|
* userId: {
|
|
361
361
|
* referenceId: "user-1"
|
|
362
362
|
* },
|
|
363
|
-
* text: "How do I reset my password?"
|
|
363
|
+
* text: "How do I reset my password?",
|
|
364
|
+
* attachments: [{
|
|
365
|
+
* type: "image/png",
|
|
366
|
+
* content: "iVBORw0KGgo..."
|
|
367
|
+
* }]
|
|
364
368
|
* })
|
|
365
369
|
*/
|
|
366
370
|
ask(conversationId, request, requestOptions) {
|
|
@@ -375,8 +379,8 @@ export class Conversation {
|
|
|
375
379
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
376
380
|
"X-Fern-Language": "JavaScript",
|
|
377
381
|
"X-Fern-SDK-Name": "mavenagi",
|
|
378
|
-
"X-Fern-SDK-Version": "0.0.0-alpha.
|
|
379
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
382
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
383
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
380
384
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
381
385
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
382
386
|
},
|
|
@@ -455,8 +459,8 @@ export class Conversation {
|
|
|
455
459
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
456
460
|
"X-Fern-Language": "JavaScript",
|
|
457
461
|
"X-Fern-SDK-Name": "mavenagi",
|
|
458
|
-
"X-Fern-SDK-Version": "0.0.0-alpha.
|
|
459
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
462
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
463
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
460
464
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
461
465
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
462
466
|
},
|
|
@@ -561,8 +565,8 @@ export class Conversation {
|
|
|
561
565
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
562
566
|
"X-Fern-Language": "JavaScript",
|
|
563
567
|
"X-Fern-SDK-Name": "mavenagi",
|
|
564
|
-
"X-Fern-SDK-Version": "0.0.0-alpha.
|
|
565
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
568
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
569
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
566
570
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
567
571
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
568
572
|
},
|
|
@@ -651,8 +655,8 @@ export class Conversation {
|
|
|
651
655
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
652
656
|
"X-Fern-Language": "JavaScript",
|
|
653
657
|
"X-Fern-SDK-Name": "mavenagi",
|
|
654
|
-
"X-Fern-SDK-Version": "0.0.0-alpha.
|
|
655
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
658
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
659
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
656
660
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
657
661
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
658
662
|
},
|
|
@@ -752,8 +756,8 @@ export class Conversation {
|
|
|
752
756
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
753
757
|
"X-Fern-Language": "JavaScript",
|
|
754
758
|
"X-Fern-SDK-Name": "mavenagi",
|
|
755
|
-
"X-Fern-SDK-Version": "0.0.0-alpha.
|
|
756
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
759
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
760
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
757
761
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
758
762
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
759
763
|
},
|
|
@@ -850,8 +854,8 @@ export class Conversation {
|
|
|
850
854
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
851
855
|
"X-Fern-Language": "JavaScript",
|
|
852
856
|
"X-Fern-SDK-Name": "mavenagi",
|
|
853
|
-
"X-Fern-SDK-Version": "0.0.0-alpha.
|
|
854
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
857
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
858
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
855
859
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
856
860
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
857
861
|
},
|
|
@@ -943,8 +947,8 @@ export class Conversation {
|
|
|
943
947
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
944
948
|
"X-Fern-Language": "JavaScript",
|
|
945
949
|
"X-Fern-SDK-Name": "mavenagi",
|
|
946
|
-
"X-Fern-SDK-Version": "0.0.0-alpha.
|
|
947
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
950
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
951
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
948
952
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
949
953
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
950
954
|
},
|
|
@@ -11,7 +11,11 @@ import * as MavenAGI from "../../../index";
|
|
|
11
11
|
* userId: {
|
|
12
12
|
* referenceId: "user-1"
|
|
13
13
|
* },
|
|
14
|
-
* text: "How do I reset my password?"
|
|
14
|
+
* text: "How do I reset my password?",
|
|
15
|
+
* attachments: [{
|
|
16
|
+
* type: "image/png",
|
|
17
|
+
* content: "iVBORw0KGgo..."
|
|
18
|
+
* }]
|
|
15
19
|
* }
|
|
16
20
|
*/
|
|
17
21
|
export interface AskRequest {
|
|
@@ -21,4 +25,6 @@ export interface AskRequest {
|
|
|
21
25
|
userId: MavenAGI.EntityIdBase;
|
|
22
26
|
/** The text of the message */
|
|
23
27
|
text: string;
|
|
28
|
+
/** The attachments to the message. */
|
|
29
|
+
attachments?: MavenAGI.Attachment[];
|
|
24
30
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface Attachment {
|
|
5
|
+
/** The mime-type of the attachment. Supported types are {image/jpeg, image/jpg, image/png, image/gif, image/webp}. */
|
|
6
|
+
type: string;
|
|
7
|
+
/** The attachment data. */
|
|
8
|
+
content: string;
|
|
9
|
+
}
|
|
@@ -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.
|
|
55
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
54
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
55
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
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.
|
|
145
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
144
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
145
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
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.
|
|
237
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
236
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
237
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
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.
|
|
327
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
326
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
327
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
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.
|
|
419
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
418
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
419
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
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.
|
|
517
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
516
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
517
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
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.
|
|
608
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
607
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
608
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
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.
|
|
55
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
54
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
55
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
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.
|
|
145
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
144
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
145
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
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.
|
|
234
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
233
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
234
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
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.
|
|
63
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
62
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
63
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
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.
|
|
153
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
152
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
153
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
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.
|
|
68
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
67
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
68
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
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.
|
|
158
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
157
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
158
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
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.
|
|
247
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
246
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
247
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
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.
|
|
48
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
47
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
48
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
49
49
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
50
50
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
51
51
|
},
|
|
@@ -136,7 +136,11 @@ export declare class Conversation {
|
|
|
136
136
|
* userId: {
|
|
137
137
|
* referenceId: "user-1"
|
|
138
138
|
* },
|
|
139
|
-
* text: "How do I reset my password?"
|
|
139
|
+
* text: "How do I reset my password?",
|
|
140
|
+
* attachments: [{
|
|
141
|
+
* type: "image/png",
|
|
142
|
+
* content: "iVBORw0KGgo..."
|
|
143
|
+
* }]
|
|
140
144
|
* })
|
|
141
145
|
*/
|
|
142
146
|
ask(conversationId: string, request: MavenAGI.AskRequest, requestOptions?: Conversation.RequestOptions): Promise<MavenAGI.ConversationResponse>;
|
|
@@ -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.
|
|
78
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
77
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
78
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
79
79
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
80
80
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
81
81
|
},
|
|
@@ -172,8 +172,8 @@ export class Conversation {
|
|
|
172
172
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
173
173
|
"X-Fern-Language": "JavaScript",
|
|
174
174
|
"X-Fern-SDK-Name": "mavenagi",
|
|
175
|
-
"X-Fern-SDK-Version": "0.0.0-alpha.
|
|
176
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
175
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
176
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
177
177
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
178
178
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
179
179
|
},
|
|
@@ -274,8 +274,8 @@ export class Conversation {
|
|
|
274
274
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
275
275
|
"X-Fern-Language": "JavaScript",
|
|
276
276
|
"X-Fern-SDK-Name": "mavenagi",
|
|
277
|
-
"X-Fern-SDK-Version": "0.0.0-alpha.
|
|
278
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
277
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
278
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
279
279
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
280
280
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
281
281
|
},
|
|
@@ -360,7 +360,11 @@ export class Conversation {
|
|
|
360
360
|
* userId: {
|
|
361
361
|
* referenceId: "user-1"
|
|
362
362
|
* },
|
|
363
|
-
* text: "How do I reset my password?"
|
|
363
|
+
* text: "How do I reset my password?",
|
|
364
|
+
* attachments: [{
|
|
365
|
+
* type: "image/png",
|
|
366
|
+
* content: "iVBORw0KGgo..."
|
|
367
|
+
* }]
|
|
364
368
|
* })
|
|
365
369
|
*/
|
|
366
370
|
ask(conversationId, request, requestOptions) {
|
|
@@ -375,8 +379,8 @@ export class Conversation {
|
|
|
375
379
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
376
380
|
"X-Fern-Language": "JavaScript",
|
|
377
381
|
"X-Fern-SDK-Name": "mavenagi",
|
|
378
|
-
"X-Fern-SDK-Version": "0.0.0-alpha.
|
|
379
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
382
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
383
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
380
384
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
381
385
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
382
386
|
},
|
|
@@ -455,8 +459,8 @@ export class Conversation {
|
|
|
455
459
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
456
460
|
"X-Fern-Language": "JavaScript",
|
|
457
461
|
"X-Fern-SDK-Name": "mavenagi",
|
|
458
|
-
"X-Fern-SDK-Version": "0.0.0-alpha.
|
|
459
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
462
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
463
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
460
464
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
461
465
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
462
466
|
},
|
|
@@ -561,8 +565,8 @@ export class Conversation {
|
|
|
561
565
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
562
566
|
"X-Fern-Language": "JavaScript",
|
|
563
567
|
"X-Fern-SDK-Name": "mavenagi",
|
|
564
|
-
"X-Fern-SDK-Version": "0.0.0-alpha.
|
|
565
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
568
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
569
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
566
570
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
567
571
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
568
572
|
},
|
|
@@ -651,8 +655,8 @@ export class Conversation {
|
|
|
651
655
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
652
656
|
"X-Fern-Language": "JavaScript",
|
|
653
657
|
"X-Fern-SDK-Name": "mavenagi",
|
|
654
|
-
"X-Fern-SDK-Version": "0.0.0-alpha.
|
|
655
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
658
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
659
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
656
660
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
657
661
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
658
662
|
},
|
|
@@ -752,8 +756,8 @@ export class Conversation {
|
|
|
752
756
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
753
757
|
"X-Fern-Language": "JavaScript",
|
|
754
758
|
"X-Fern-SDK-Name": "mavenagi",
|
|
755
|
-
"X-Fern-SDK-Version": "0.0.0-alpha.
|
|
756
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
759
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
760
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
757
761
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
758
762
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
759
763
|
},
|
|
@@ -850,8 +854,8 @@ export class Conversation {
|
|
|
850
854
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
851
855
|
"X-Fern-Language": "JavaScript",
|
|
852
856
|
"X-Fern-SDK-Name": "mavenagi",
|
|
853
|
-
"X-Fern-SDK-Version": "0.0.0-alpha.
|
|
854
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
857
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
858
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
855
859
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
856
860
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
857
861
|
},
|
|
@@ -943,8 +947,8 @@ export class Conversation {
|
|
|
943
947
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
944
948
|
"X-Fern-Language": "JavaScript",
|
|
945
949
|
"X-Fern-SDK-Name": "mavenagi",
|
|
946
|
-
"X-Fern-SDK-Version": "0.0.0-alpha.
|
|
947
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
950
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
951
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
948
952
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
949
953
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
950
954
|
},
|
|
@@ -11,7 +11,11 @@ import * as MavenAGI from "../../../index";
|
|
|
11
11
|
* userId: {
|
|
12
12
|
* referenceId: "user-1"
|
|
13
13
|
* },
|
|
14
|
-
* text: "How do I reset my password?"
|
|
14
|
+
* text: "How do I reset my password?",
|
|
15
|
+
* attachments: [{
|
|
16
|
+
* type: "image/png",
|
|
17
|
+
* content: "iVBORw0KGgo..."
|
|
18
|
+
* }]
|
|
15
19
|
* }
|
|
16
20
|
*/
|
|
17
21
|
export interface AskRequest {
|
|
@@ -21,4 +25,6 @@ export interface AskRequest {
|
|
|
21
25
|
userId: MavenAGI.EntityIdBase;
|
|
22
26
|
/** The text of the message */
|
|
23
27
|
text: string;
|
|
28
|
+
/** The attachments to the message. */
|
|
29
|
+
attachments?: MavenAGI.Attachment[];
|
|
24
30
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface Attachment {
|
|
5
|
+
/** The mime-type of the attachment. Supported types are {image/jpeg, image/jpg, image/png, image/gif, image/webp}. */
|
|
6
|
+
type: string;
|
|
7
|
+
/** The attachment data. */
|
|
8
|
+
content: string;
|
|
9
|
+
}
|
|
@@ -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.
|
|
55
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
54
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
55
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
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.
|
|
145
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
144
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
145
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
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.
|
|
237
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
236
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
237
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
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.
|
|
327
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
326
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
327
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
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.
|
|
419
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
418
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
419
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
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.
|
|
517
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
516
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
517
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
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.
|
|
608
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
607
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
608
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
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.
|
|
55
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
54
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
55
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
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.
|
|
145
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
144
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
145
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
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.
|
|
234
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
233
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
234
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
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.
|
|
63
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
62
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
63
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
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.
|
|
153
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
152
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.25",
|
|
153
|
+
"User-Agent": "mavenagi/0.0.0-alpha.25",
|
|
154
154
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
155
155
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
156
156
|
},
|
|
@@ -5,11 +5,13 @@ import * as serializers from "../../../index";
|
|
|
5
5
|
import * as MavenAGI from "../../../../api/index";
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
import { EntityIdBase } from "../../commons/types/EntityIdBase";
|
|
8
|
+
import { Attachment } from "./Attachment";
|
|
8
9
|
export declare const AskRequest: core.serialization.ObjectSchema<serializers.AskRequest.Raw, MavenAGI.AskRequest>;
|
|
9
10
|
export declare namespace AskRequest {
|
|
10
11
|
interface Raw {
|
|
11
12
|
conversationMessageId: EntityIdBase.Raw;
|
|
12
13
|
userId: EntityIdBase.Raw;
|
|
13
14
|
text: string;
|
|
15
|
+
attachments?: Attachment.Raw[] | null;
|
|
14
16
|
}
|
|
15
17
|
}
|
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as core from "../../../../core";
|
|
5
5
|
import { EntityIdBase } from "../../commons/types/EntityIdBase";
|
|
6
|
+
import { Attachment } from "./Attachment";
|
|
6
7
|
export const AskRequest = core.serialization.object({
|
|
7
8
|
conversationMessageId: EntityIdBase,
|
|
8
9
|
userId: EntityIdBase,
|
|
9
10
|
text: core.serialization.string(),
|
|
11
|
+
attachments: core.serialization.list(Attachment).optional(),
|
|
10
12
|
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as MavenAGI from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const Attachment: core.serialization.ObjectSchema<serializers.Attachment.Raw, MavenAGI.Attachment>;
|
|
8
|
+
export declare namespace Attachment {
|
|
9
|
+
interface Raw {
|
|
10
|
+
type: string;
|
|
11
|
+
content: string;
|
|
12
|
+
}
|
|
13
|
+
}
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.0-alpha.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.0-alpha.25";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.0.0-alpha.
|
|
1
|
+
export const SDK_VERSION = "0.0.0-alpha.25";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -559,6 +559,12 @@ await client.conversation.ask("string", {
|
|
|
559
559
|
referenceId: "user-1",
|
|
560
560
|
},
|
|
561
561
|
text: "How do I reset my password?",
|
|
562
|
+
attachments: [
|
|
563
|
+
{
|
|
564
|
+
type: "image/png",
|
|
565
|
+
content: "iVBORw0KGgo...",
|
|
566
|
+
},
|
|
567
|
+
],
|
|
562
568
|
});
|
|
563
569
|
```
|
|
564
570
|
|
|
@@ -638,6 +644,12 @@ await client.conversation.askStream("conversation-0", {
|
|
|
638
644
|
referenceId: "user-1",
|
|
639
645
|
},
|
|
640
646
|
text: "How do I reset my password?",
|
|
647
|
+
attachments: [
|
|
648
|
+
{
|
|
649
|
+
type: "image/png",
|
|
650
|
+
content: "iVBORw0KGgo...",
|
|
651
|
+
},
|
|
652
|
+
],
|
|
641
653
|
});
|
|
642
654
|
```
|
|
643
655
|
|
|
@@ -5,11 +5,13 @@ import * as serializers from "../../../index";
|
|
|
5
5
|
import * as MavenAGI from "../../../../api/index";
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
import { EntityIdBase } from "../../commons/types/EntityIdBase";
|
|
8
|
+
import { Attachment } from "./Attachment";
|
|
8
9
|
export declare const AskRequest: core.serialization.ObjectSchema<serializers.AskRequest.Raw, MavenAGI.AskRequest>;
|
|
9
10
|
export declare namespace AskRequest {
|
|
10
11
|
interface Raw {
|
|
11
12
|
conversationMessageId: EntityIdBase.Raw;
|
|
12
13
|
userId: EntityIdBase.Raw;
|
|
13
14
|
text: string;
|
|
15
|
+
attachments?: Attachment.Raw[] | null;
|
|
14
16
|
}
|
|
15
17
|
}
|
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as core from "../../../../core";
|
|
5
5
|
import { EntityIdBase } from "../../commons/types/EntityIdBase";
|
|
6
|
+
import { Attachment } from "./Attachment";
|
|
6
7
|
export const AskRequest = core.serialization.object({
|
|
7
8
|
conversationMessageId: EntityIdBase,
|
|
8
9
|
userId: EntityIdBase,
|
|
9
10
|
text: core.serialization.string(),
|
|
11
|
+
attachments: core.serialization.list(Attachment).optional(),
|
|
10
12
|
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as MavenAGI from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const Attachment: core.serialization.ObjectSchema<serializers.Attachment.Raw, MavenAGI.Attachment>;
|
|
8
|
+
export declare namespace Attachment {
|
|
9
|
+
interface Raw {
|
|
10
|
+
type: string;
|
|
11
|
+
content: string;
|
|
12
|
+
}
|
|
13
|
+
}
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.0-alpha.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.0-alpha.25";
|
package/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.0.0-alpha.
|
|
1
|
+
export const SDK_VERSION = "0.0.0-alpha.25";
|