@docbrasil/api-systemmanager 1.1.39 → 1.1.40

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/ai.js CHANGED
@@ -54,8 +54,11 @@ class MyndAI {
54
54
  * @param {string} params.model The model to use for the explain
55
55
  * @param {object} params.context The context to apply to a prompt
56
56
  * @param {string} params.text The text to add to the prompt
57
- * @param {array<base64>} params.medias Medias to add to the case in base64 (PDF, Image, Video, Audio)
58
- * @param {array<string>} params.mediaIds Media Ids to add - id of an internal document (PDF, Image, Video, Audio)
57
+ * @param {array<object>} params.medias Medias to add (PDF, Image, Video, Audio)
58
+ * @param {string} params.medias.type can be base64 | document
59
+ * @param {string} params.medias.mime the mime type of the media
60
+ * @param {string} params.medias.base64 the base64 of the image (in the case the type is base64)
61
+ * @param {string} params.medias.document the document path for the image (in the case the type is document)
59
62
  * @param {string} params.prompt The actual prompt with context and text to apply to
60
63
  * @param {boolean} params.json=false If we return in json format or not
61
64
  * @return {Promise<object>} data
package/dist/bundle.cjs CHANGED
@@ -14110,8 +14110,11 @@ class MyndAI {
14110
14110
  * @param {string} params.model The model to use for the explain
14111
14111
  * @param {object} params.context The context to apply to a prompt
14112
14112
  * @param {string} params.text The text to add to the prompt
14113
- * @param {array<base64>} params.medias Medias to add to the case in base64 (PDF, Image, Video, Audio)
14114
- * @param {array<string>} params.mediaIds Media Ids to add - id of an internal document (PDF, Image, Video, Audio)
14113
+ * @param {array<object>} params.medias Medias to add (PDF, Image, Video, Audio)
14114
+ * @param {string} params.medias.type can be base64 | document
14115
+ * @param {string} params.medias.mime the mime type of the media
14116
+ * @param {string} params.medias.base64 the base64 of the image (in the case the type is base64)
14117
+ * @param {string} params.medias.document the document path for the image (in the case the type is document)
14115
14118
  * @param {string} params.prompt The actual prompt with context and text to apply to
14116
14119
  * @param {boolean} params.json=false If we return in json format or not
14117
14120
  * @return {Promise<object>} data
package/doc/api.md CHANGED
@@ -3920,8 +3920,11 @@ Create new document
3920
3920
  | params.model | <code>string</code> | | The model to use for the explain |
3921
3921
  | params.context | <code>object</code> | | The context to apply to a prompt |
3922
3922
  | params.text | <code>string</code> | | The text to add to the prompt |
3923
- | params.medias | <code>array.&lt;base64&gt;</code> | | Medias to add to the case in base64 (PDF, Image, Video, Audio) |
3924
- | params.mediaIds | <code>array.&lt;string&gt;</code> | | Media Ids to add - id of an internal document (PDF, Image, Video, Audio) |
3923
+ | params.medias | <code>array.&lt;object&gt;</code> | | Medias to add (PDF, Image, Video, Audio) |
3924
+ | params.medias.type | <code>string</code> | | can be base64 | document |
3925
+ | params.medias.mime | <code>string</code> | | the mime type of the media |
3926
+ | params.medias.base64 | <code>string</code> | | the base64 of the image (in the case the type is base64) |
3927
+ | params.medias.document | <code>string</code> | | the document path for the image (in the case the type is document) |
3925
3928
  | params.prompt | <code>string</code> | | The actual prompt with context and text to apply to |
3926
3929
  | params.json | <code>boolean</code> | <code>false</code> | If we return in json format or not |
3927
3930
 
package/docs/MyndAI.html CHANGED
@@ -397,7 +397,7 @@
397
397
  <td class="type">
398
398
 
399
399
 
400
- <code class="param-type">array.&lt;base64></code>
400
+ <code class="param-type">array.&lt;object></code>
401
401
 
402
402
 
403
403
 
@@ -411,20 +411,101 @@
411
411
  </td>
412
412
 
413
413
 
414
- <td class="description last">Medias to add to the case in base64 (PDF, Image, Video, Audio)</td>
414
+ <td class="description last">Medias to add (PDF, Image, Video, Audio)</td>
415
415
  </tr>
416
416
 
417
417
 
418
418
 
419
419
  <tr class="deep-level-1">
420
420
 
421
- <td class="name"><code>mediaIds</code></td>
421
+ <td class="name"><code>medias.type</code></td>
422
422
 
423
423
 
424
424
  <td class="type">
425
425
 
426
426
 
427
- <code class="param-type">array.&lt;string></code>
427
+ <code class="param-type">string</code>
428
+
429
+
430
+
431
+ </td>
432
+
433
+
434
+
435
+
436
+ <td class="default">
437
+
438
+ </td>
439
+
440
+
441
+ <td class="description last">can be base64 | document</td>
442
+ </tr>
443
+
444
+
445
+
446
+ <tr class="deep-level-1">
447
+
448
+ <td class="name"><code>medias.mime</code></td>
449
+
450
+
451
+ <td class="type">
452
+
453
+
454
+ <code class="param-type">string</code>
455
+
456
+
457
+
458
+ </td>
459
+
460
+
461
+
462
+
463
+ <td class="default">
464
+
465
+ </td>
466
+
467
+
468
+ <td class="description last">the mime type of the media</td>
469
+ </tr>
470
+
471
+
472
+
473
+ <tr class="deep-level-1">
474
+
475
+ <td class="name"><code>medias.base64</code></td>
476
+
477
+
478
+ <td class="type">
479
+
480
+
481
+ <code class="param-type">string</code>
482
+
483
+
484
+
485
+ </td>
486
+
487
+
488
+
489
+
490
+ <td class="default">
491
+
492
+ </td>
493
+
494
+
495
+ <td class="description last">the base64 of the image (in the case the type is base64)</td>
496
+ </tr>
497
+
498
+
499
+
500
+ <tr class="deep-level-1">
501
+
502
+ <td class="name"><code>medias.document</code></td>
503
+
504
+
505
+ <td class="type">
506
+
507
+
508
+ <code class="param-type">string</code>
428
509
 
429
510
 
430
511
 
@@ -438,7 +519,7 @@
438
519
  </td>
439
520
 
440
521
 
441
- <td class="description last">Media Ids to add - id of an internal document (PDF, Image, Video, Audio)</td>
522
+ <td class="description last">the document path for the image (in the case the type is document)</td>
442
523
  </tr>
443
524
 
444
525
 
@@ -551,7 +632,7 @@
551
632
  <p class="tag-source">
552
633
  <a href="ai.js.html" class="button">View Source</a>
553
634
  <span>
554
- <a href="ai.js.html">ai.js</a>, <a href="ai.js.html#line82">line 82</a>
635
+ <a href="ai.js.html">ai.js</a>, <a href="ai.js.html#line85">line 85</a>
555
636
  </span>
556
637
  </p>
557
638
 
package/docs/ai.js.html CHANGED
@@ -141,8 +141,11 @@ class MyndAI {
141
141
  * @param {string} params.model The model to use for the explain
142
142
  * @param {object} params.context The context to apply to a prompt
143
143
  * @param {string} params.text The text to add to the prompt
144
- * @param {array&lt;base64>} params.medias Medias to add to the case in base64 (PDF, Image, Video, Audio)
145
- * @param {array&lt;string>} params.mediaIds Media Ids to add - id of an internal document (PDF, Image, Video, Audio)
144
+ * @param {array&lt;object>} params.medias Medias to add (PDF, Image, Video, Audio)
145
+ * @param {string} params.medias.type can be base64 | document
146
+ * @param {string} params.medias.mime the mime type of the media
147
+ * @param {string} params.medias.base64 the base64 of the image (in the case the type is base64)
148
+ * @param {string} params.medias.document the document path for the image (in the case the type is document)
146
149
  * @param {string} params.prompt The actual prompt with context and text to apply to
147
150
  * @param {boolean} params.json=false If we return in json format or not
148
151
  * @return {Promise&lt;object>} data
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@docbrasil/api-systemmanager",
3
3
  "description": "Module API System Manager",
4
- "version": "1.1.39",
4
+ "version": "1.1.40",
5
5
  "scripts": {
6
6
  "htmldoc": "rm -rf docs && jsdoc api/** -d docs -t ./node_modules/better-docs",
7
7
  "doc": "rm -rf doc && mkdir doc && jsdoc2md api/**/* api/* > doc/api.md",