mavenagi 0.0.0-alpha.22 → 0.0.0-alpha.24
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/README.md +27 -14
- 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 +10 -3
- package/api/resources/conversation/client/Client.js +36 -23
- package/api/resources/conversation/client/index.d.ts +1 -1
- package/api/resources/conversation/client/index.js +1 -1
- package/api/resources/conversation/client/requests/ConversationGetRequest.d.ts +15 -0
- package/api/resources/conversation/client/requests/ConversationGetRequest.js +4 -0
- package/api/resources/conversation/client/requests/index.d.ts +1 -0
- package/api/resources/conversation/client/requests/index.js +1 -0
- 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/index.d.ts +1 -0
- package/api/resources/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 +10 -3
- package/dist/api/resources/conversation/client/Client.js +36 -23
- package/dist/api/resources/conversation/client/index.d.ts +1 -1
- package/dist/api/resources/conversation/client/index.js +1 -1
- package/dist/api/resources/conversation/client/requests/ConversationGetRequest.d.ts +15 -0
- package/dist/api/resources/conversation/client/requests/ConversationGetRequest.js +4 -0
- package/dist/api/resources/conversation/client/requests/index.d.ts +1 -0
- package/dist/api/resources/conversation/client/requests/index.js +1 -0
- 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/index.d.ts +1 -0
- package/dist/api/resources/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 +24 -2
- 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
|
@@ -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.24",
|
|
78
|
+
"User-Agent": "mavenagi/0.0.0-alpha.24",
|
|
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.
|
|
168
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
175
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.24",
|
|
176
|
+
"User-Agent": "mavenagi/0.0.0-alpha.24",
|
|
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.
|
|
269
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
277
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.24",
|
|
278
|
+
"User-Agent": "mavenagi/0.0.0-alpha.24",
|
|
270
279
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
271
280
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
272
281
|
},
|
|
@@ -351,7 +360,11 @@ export class Conversation {
|
|
|
351
360
|
* userId: {
|
|
352
361
|
* referenceId: "user-1"
|
|
353
362
|
* },
|
|
354
|
-
* 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
|
+
* }]
|
|
355
368
|
* })
|
|
356
369
|
*/
|
|
357
370
|
ask(conversationId, request, requestOptions) {
|
|
@@ -366,8 +379,8 @@ export class Conversation {
|
|
|
366
379
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
367
380
|
"X-Fern-Language": "JavaScript",
|
|
368
381
|
"X-Fern-SDK-Name": "mavenagi",
|
|
369
|
-
"X-Fern-SDK-Version": "0.0.0-alpha.
|
|
370
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
382
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.24",
|
|
383
|
+
"User-Agent": "mavenagi/0.0.0-alpha.24",
|
|
371
384
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
372
385
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
373
386
|
},
|
|
@@ -446,8 +459,8 @@ export class Conversation {
|
|
|
446
459
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
447
460
|
"X-Fern-Language": "JavaScript",
|
|
448
461
|
"X-Fern-SDK-Name": "mavenagi",
|
|
449
|
-
"X-Fern-SDK-Version": "0.0.0-alpha.
|
|
450
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
462
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.24",
|
|
463
|
+
"User-Agent": "mavenagi/0.0.0-alpha.24",
|
|
451
464
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
452
465
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
453
466
|
},
|
|
@@ -552,8 +565,8 @@ export class Conversation {
|
|
|
552
565
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
553
566
|
"X-Fern-Language": "JavaScript",
|
|
554
567
|
"X-Fern-SDK-Name": "mavenagi",
|
|
555
|
-
"X-Fern-SDK-Version": "0.0.0-alpha.
|
|
556
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
568
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.24",
|
|
569
|
+
"User-Agent": "mavenagi/0.0.0-alpha.24",
|
|
557
570
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
558
571
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
559
572
|
},
|
|
@@ -642,8 +655,8 @@ export class Conversation {
|
|
|
642
655
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
643
656
|
"X-Fern-Language": "JavaScript",
|
|
644
657
|
"X-Fern-SDK-Name": "mavenagi",
|
|
645
|
-
"X-Fern-SDK-Version": "0.0.0-alpha.
|
|
646
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
658
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.24",
|
|
659
|
+
"User-Agent": "mavenagi/0.0.0-alpha.24",
|
|
647
660
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
648
661
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
649
662
|
},
|
|
@@ -743,8 +756,8 @@ export class Conversation {
|
|
|
743
756
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
744
757
|
"X-Fern-Language": "JavaScript",
|
|
745
758
|
"X-Fern-SDK-Name": "mavenagi",
|
|
746
|
-
"X-Fern-SDK-Version": "0.0.0-alpha.
|
|
747
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
759
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.24",
|
|
760
|
+
"User-Agent": "mavenagi/0.0.0-alpha.24",
|
|
748
761
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
749
762
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
750
763
|
},
|
|
@@ -841,8 +854,8 @@ export class Conversation {
|
|
|
841
854
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
842
855
|
"X-Fern-Language": "JavaScript",
|
|
843
856
|
"X-Fern-SDK-Name": "mavenagi",
|
|
844
|
-
"X-Fern-SDK-Version": "0.0.0-alpha.
|
|
845
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
857
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.24",
|
|
858
|
+
"User-Agent": "mavenagi/0.0.0-alpha.24",
|
|
846
859
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
847
860
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
848
861
|
},
|
|
@@ -934,8 +947,8 @@ export class Conversation {
|
|
|
934
947
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
935
948
|
"X-Fern-Language": "JavaScript",
|
|
936
949
|
"X-Fern-SDK-Name": "mavenagi",
|
|
937
|
-
"X-Fern-SDK-Version": "0.0.0-alpha.
|
|
938
|
-
"User-Agent": "mavenagi/0.0.0-alpha.
|
|
950
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.24",
|
|
951
|
+
"User-Agent": "mavenagi/0.0.0-alpha.24",
|
|
939
952
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
940
953
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
941
954
|
},
|
|
@@ -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 @@
|
|
|
1
|
+
export { type ConversationGetRequest } from "./ConversationGetRequest";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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.24",
|
|
55
|
+
"User-Agent": "mavenagi/0.0.0-alpha.24",
|
|
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.24",
|
|
145
|
+
"User-Agent": "mavenagi/0.0.0-alpha.24",
|
|
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.24",
|
|
237
|
+
"User-Agent": "mavenagi/0.0.0-alpha.24",
|
|
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.24",
|
|
327
|
+
"User-Agent": "mavenagi/0.0.0-alpha.24",
|
|
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.24",
|
|
419
|
+
"User-Agent": "mavenagi/0.0.0-alpha.24",
|
|
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.24",
|
|
517
|
+
"User-Agent": "mavenagi/0.0.0-alpha.24",
|
|
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.24",
|
|
608
|
+
"User-Agent": "mavenagi/0.0.0-alpha.24",
|
|
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.24",
|
|
55
|
+
"User-Agent": "mavenagi/0.0.0-alpha.24",
|
|
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.24",
|
|
145
|
+
"User-Agent": "mavenagi/0.0.0-alpha.24",
|
|
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.24",
|
|
234
|
+
"User-Agent": "mavenagi/0.0.0-alpha.24",
|
|
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.24",
|
|
63
|
+
"User-Agent": "mavenagi/0.0.0-alpha.24",
|
|
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.24",
|
|
153
|
+
"User-Agent": "mavenagi/0.0.0-alpha.24",
|
|
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.24";
|
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.24";
|
package/package.json
CHANGED
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>
|
|
@@ -549,6 +559,12 @@ await client.conversation.ask("string", {
|
|
|
549
559
|
referenceId: "user-1",
|
|
550
560
|
},
|
|
551
561
|
text: "How do I reset my password?",
|
|
562
|
+
attachments: [
|
|
563
|
+
{
|
|
564
|
+
type: "image/png",
|
|
565
|
+
content: "iVBORw0KGgo...",
|
|
566
|
+
},
|
|
567
|
+
],
|
|
552
568
|
});
|
|
553
569
|
```
|
|
554
570
|
|
|
@@ -628,6 +644,12 @@ await client.conversation.askStream("conversation-0", {
|
|
|
628
644
|
referenceId: "user-1",
|
|
629
645
|
},
|
|
630
646
|
text: "How do I reset my password?",
|
|
647
|
+
attachments: [
|
|
648
|
+
{
|
|
649
|
+
type: "image/png",
|
|
650
|
+
content: "iVBORw0KGgo...",
|
|
651
|
+
},
|
|
652
|
+
],
|
|
631
653
|
});
|
|
632
654
|
```
|
|
633
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.24";
|
package/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.0.0-alpha.
|
|
1
|
+
export const SDK_VERSION = "0.0.0-alpha.24";
|