llaminate 0.1.0

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 (72) hide show
  1. package/.gitattributes +2 -0
  2. package/LICENSE +21 -0
  3. package/README.md +95 -0
  4. package/assets/llaminate-256.webp +0 -0
  5. package/assets/llaminate.jpg +0 -0
  6. package/assets/llaminate.webp +0 -0
  7. package/dist/build-info.json +5 -0
  8. package/dist/config.schema.json +126 -0
  9. package/dist/llaminate.d.ts +202 -0
  10. package/dist/llaminate.min.js +9 -0
  11. package/dist/llaminate.min.js.map +1 -0
  12. package/dist/ratelimiter.d.ts +33 -0
  13. package/dist/ratelimiter.min.js +7 -0
  14. package/dist/ratelimiter.min.js.map +1 -0
  15. package/dist/system.hbs +3 -0
  16. package/docs/LICENSE +21 -0
  17. package/docs/Llaminate.html +1040 -0
  18. package/docs/Llaminate.module_Endpoints.html +278 -0
  19. package/docs/Llaminate.module_Llaminate.html +200 -0
  20. package/docs/Llaminate.module_MimeTypes.html +275 -0
  21. package/docs/LlaminateConfig.html +667 -0
  22. package/docs/LlaminateMessage.html +328 -0
  23. package/docs/LlaminateResponse.html +253 -0
  24. package/docs/assets/llaminate-256.webp +0 -0
  25. package/docs/fonts/OpenSans-Bold-webfont.eot +0 -0
  26. package/docs/fonts/OpenSans-Bold-webfont.svg +1830 -0
  27. package/docs/fonts/OpenSans-Bold-webfont.woff +0 -0
  28. package/docs/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
  29. package/docs/fonts/OpenSans-BoldItalic-webfont.svg +1830 -0
  30. package/docs/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
  31. package/docs/fonts/OpenSans-Italic-webfont.eot +0 -0
  32. package/docs/fonts/OpenSans-Italic-webfont.svg +1830 -0
  33. package/docs/fonts/OpenSans-Italic-webfont.woff +0 -0
  34. package/docs/fonts/OpenSans-Light-webfont.eot +0 -0
  35. package/docs/fonts/OpenSans-Light-webfont.svg +1831 -0
  36. package/docs/fonts/OpenSans-Light-webfont.woff +0 -0
  37. package/docs/fonts/OpenSans-LightItalic-webfont.eot +0 -0
  38. package/docs/fonts/OpenSans-LightItalic-webfont.svg +1835 -0
  39. package/docs/fonts/OpenSans-LightItalic-webfont.woff +0 -0
  40. package/docs/fonts/OpenSans-Regular-webfont.eot +0 -0
  41. package/docs/fonts/OpenSans-Regular-webfont.svg +1831 -0
  42. package/docs/fonts/OpenSans-Regular-webfont.woff +0 -0
  43. package/docs/index.html +142 -0
  44. package/docs/scripts/linenumber.js +25 -0
  45. package/docs/scripts/prettify/Apache-License-2.0.txt +202 -0
  46. package/docs/scripts/prettify/lang-css.js +2 -0
  47. package/docs/scripts/prettify/prettify.js +28 -0
  48. package/docs/styles/jsdoc-default.css +358 -0
  49. package/docs/styles/prettify-jsdoc.css +111 -0
  50. package/docs/styles/prettify-tomorrow.css +132 -0
  51. package/jsdoc.json +23 -0
  52. package/package.json +38 -0
  53. package/scripts/build.sh +21 -0
  54. package/scripts/docs.sh +28 -0
  55. package/scripts/prebuild.js +43 -0
  56. package/scripts/prepare.sh +11 -0
  57. package/scripts/pretest.js +14 -0
  58. package/src/config.schema.json +126 -0
  59. package/src/llaminate.d.ts +99 -0
  60. package/src/llaminate.ts +1326 -0
  61. package/src/llaminate.types.js +176 -0
  62. package/src/ratelimiter.ts +95 -0
  63. package/src/system.hbs +3 -0
  64. package/tests/attachments.test.js +66 -0
  65. package/tests/common/base64.js +13 -0
  66. package/tests/common/matches.js +69 -0
  67. package/tests/common/setup.js +45 -0
  68. package/tests/complete.test.js +27 -0
  69. package/tests/extensions/toMatchSchema.js +20 -0
  70. package/tests/history.test.js +86 -0
  71. package/tests/stream.test.js +67 -0
  72. package/tsconfig.json +12 -0
@@ -0,0 +1,275 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>: Module: MimeTypes</title>
6
+
7
+ <script src="scripts/prettify/prettify.js"> </script>
8
+ <script src="scripts/prettify/lang-css.js"> </script>
9
+ <!--[if lt IE 9]>
10
+ <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
11
+ <![endif]-->
12
+ <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
13
+ <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
14
+ </head>
15
+
16
+ <body>
17
+
18
+ <div id="main">
19
+
20
+ <h1 class="page-title">Module: MimeTypes</h1>
21
+
22
+
23
+
24
+
25
+
26
+
27
+ <section>
28
+
29
+ <header>
30
+
31
+ </header>
32
+
33
+ <article>
34
+ <div class="container-overview">
35
+
36
+
37
+ <div class="description">Static MIME types for various file formats.</div>
38
+
39
+
40
+
41
+
42
+
43
+ <h5 class="subsection-title">Properties:</h5>
44
+
45
+
46
+
47
+ <table class="props">
48
+ <thead>
49
+ <tr>
50
+
51
+ <th>Name</th>
52
+
53
+
54
+ <th>Type</th>
55
+
56
+
57
+
58
+
59
+
60
+ <th class="last">Description</th>
61
+ </tr>
62
+ </thead>
63
+
64
+ <tbody>
65
+
66
+
67
+ <tr>
68
+
69
+ <td class="name"><code>Llaminate.GIF</code></td>
70
+
71
+
72
+ <td class="type">
73
+
74
+
75
+ <span class="param-type">string</span>
76
+
77
+
78
+
79
+ </td>
80
+
81
+
82
+
83
+
84
+
85
+ <td class="description last">MIME type for GIF images (`image/gif`).</td>
86
+ </tr>
87
+
88
+
89
+
90
+ <tr>
91
+
92
+ <td class="name"><code>Llaminate.JPEG</code></td>
93
+
94
+
95
+ <td class="type">
96
+
97
+
98
+ <span class="param-type">string</span>
99
+
100
+
101
+
102
+ </td>
103
+
104
+
105
+
106
+
107
+
108
+ <td class="description last">MIME type for JPEG images (`image/jpeg`).</td>
109
+ </tr>
110
+
111
+
112
+
113
+ <tr>
114
+
115
+ <td class="name"><code>Llaminate.PDF</code></td>
116
+
117
+
118
+ <td class="type">
119
+
120
+
121
+ <span class="param-type">string</span>
122
+
123
+
124
+
125
+ </td>
126
+
127
+
128
+
129
+
130
+
131
+ <td class="description last">MIME type for PDF files (`application/pdf`).</td>
132
+ </tr>
133
+
134
+
135
+
136
+ <tr>
137
+
138
+ <td class="name"><code>Llaminate.PNG</code></td>
139
+
140
+
141
+ <td class="type">
142
+
143
+
144
+ <span class="param-type">string</span>
145
+
146
+
147
+
148
+ </td>
149
+
150
+
151
+
152
+
153
+
154
+ <td class="description last">MIME type for PNG images (`image/png`).</td>
155
+ </tr>
156
+
157
+
158
+
159
+ <tr>
160
+
161
+ <td class="name"><code>Llaminate.WEBP</code></td>
162
+
163
+
164
+ <td class="type">
165
+
166
+
167
+ <span class="param-type">string</span>
168
+
169
+
170
+
171
+ </td>
172
+
173
+
174
+
175
+
176
+
177
+ <td class="description last">MIME type for WEBP images (`image/webp`).</td>
178
+ </tr>
179
+
180
+
181
+ </tbody>
182
+ </table>
183
+
184
+
185
+
186
+
187
+ <dl class="details">
188
+
189
+
190
+
191
+
192
+
193
+
194
+
195
+
196
+
197
+
198
+
199
+
200
+
201
+
202
+
203
+
204
+
205
+
206
+
207
+
208
+
209
+
210
+
211
+
212
+
213
+
214
+
215
+
216
+
217
+
218
+
219
+
220
+ </dl>
221
+
222
+
223
+
224
+ <h3>Example</h3>
225
+
226
+ <pre class="prettyprint"><code>const response = await mistral.complete("Summarize the content of this image.", {
227
+ attachments: [ { type: Llaminate.JPEG, url: "https://example.com/image.jpg" } ]
228
+ });</code></pre>
229
+
230
+
231
+
232
+ </div>
233
+
234
+
235
+
236
+
237
+
238
+
239
+
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+
251
+
252
+
253
+ </article>
254
+
255
+ </section>
256
+
257
+
258
+
259
+
260
+ </div>
261
+
262
+ <nav>
263
+ <h4><a href="index.html">README.md</a></h4><h3>Modules</h3><ul><li><a href="Llaminate.module_Endpoints.html">Endpoints</a></li><li><a href="Llaminate.module_Llaminate.html">Llaminate</a></li><li><a href="Llaminate.module_MimeTypes.html">MimeTypes</a></li></ul><h3>Classes</h3><ul><li><a href="Llaminate.html">Llaminate</a></li></ul><h3>Interfaces</h3><ul><li><a href="LlaminateConfig.html">LlaminateConfig</a></li><li><a href="LlaminateMessage.html">LlaminateMessage</a></li><li><a href="LlaminateResponse.html">LlaminateResponse</a></li></ul>
264
+ </nav>
265
+
266
+ <br class="clear">
267
+
268
+ <footer>
269
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc"> 4.0.5</a>
270
+ </footer>
271
+
272
+ <script> prettyPrint(); </script>
273
+ <script src="scripts/linenumber.js"> </script>
274
+ </body>
275
+ </html>