@mastra/client-js 0.1.0-alpha.1 → 0.1.0-alpha.10

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 (294) hide show
  1. package/.eslintrc.js +10 -0
  2. package/.prettierignore +3 -0
  3. package/.prettierrc.json +26 -0
  4. package/LICENSE +44 -201
  5. package/README.md +90 -271
  6. package/dist/index.d.mts +359 -0
  7. package/dist/index.mjs +410 -0
  8. package/package.json +32 -95
  9. package/src/client.ts +135 -0
  10. package/src/example.ts +47 -0
  11. package/src/index.test.ts +585 -0
  12. package/src/index.ts +2 -194
  13. package/src/resources/agent.ts +115 -0
  14. package/src/resources/base.ts +68 -0
  15. package/src/resources/index.ts +6 -9
  16. package/src/resources/memory-thread.ts +57 -0
  17. package/src/resources/tool.ts +31 -0
  18. package/src/resources/vector.ts +82 -0
  19. package/src/resources/workflow.ts +31 -0
  20. package/src/types.ts +142 -0
  21. package/tsconfig.json +29 -0
  22. package/vitest.config.js +8 -0
  23. package/CHANGELOG.md +0 -21
  24. package/_shims/MultipartBody.d.ts +0 -9
  25. package/_shims/MultipartBody.d.ts.map +0 -1
  26. package/_shims/MultipartBody.js +0 -16
  27. package/_shims/MultipartBody.js.map +0 -1
  28. package/_shims/MultipartBody.mjs +0 -12
  29. package/_shims/MultipartBody.mjs.map +0 -1
  30. package/_shims/README.md +0 -46
  31. package/_shims/auto/runtime-bun.d.ts +0 -5
  32. package/_shims/auto/runtime-bun.d.ts.map +0 -1
  33. package/_shims/auto/runtime-bun.js +0 -21
  34. package/_shims/auto/runtime-bun.js.map +0 -1
  35. package/_shims/auto/runtime-bun.mjs +0 -2
  36. package/_shims/auto/runtime-bun.mjs.map +0 -1
  37. package/_shims/auto/runtime-node.d.ts +0 -5
  38. package/_shims/auto/runtime-node.d.ts.map +0 -1
  39. package/_shims/auto/runtime-node.js +0 -21
  40. package/_shims/auto/runtime-node.js.map +0 -1
  41. package/_shims/auto/runtime-node.mjs +0 -2
  42. package/_shims/auto/runtime-node.mjs.map +0 -1
  43. package/_shims/auto/runtime.d.ts +0 -5
  44. package/_shims/auto/runtime.d.ts.map +0 -1
  45. package/_shims/auto/runtime.js +0 -21
  46. package/_shims/auto/runtime.js.map +0 -1
  47. package/_shims/auto/runtime.mjs +0 -2
  48. package/_shims/auto/runtime.mjs.map +0 -1
  49. package/_shims/auto/types-node.d.ts +0 -5
  50. package/_shims/auto/types-node.d.ts.map +0 -1
  51. package/_shims/auto/types-node.js +0 -21
  52. package/_shims/auto/types-node.js.map +0 -1
  53. package/_shims/auto/types-node.mjs +0 -2
  54. package/_shims/auto/types-node.mjs.map +0 -1
  55. package/_shims/auto/types.d.ts +0 -101
  56. package/_shims/auto/types.js +0 -3
  57. package/_shims/auto/types.mjs +0 -3
  58. package/_shims/bun-runtime.d.ts +0 -6
  59. package/_shims/bun-runtime.d.ts.map +0 -1
  60. package/_shims/bun-runtime.js +0 -14
  61. package/_shims/bun-runtime.js.map +0 -1
  62. package/_shims/bun-runtime.mjs +0 -10
  63. package/_shims/bun-runtime.mjs.map +0 -1
  64. package/_shims/index.d.ts +0 -81
  65. package/_shims/index.js +0 -13
  66. package/_shims/index.mjs +0 -7
  67. package/_shims/manual-types.d.ts +0 -12
  68. package/_shims/manual-types.js +0 -3
  69. package/_shims/manual-types.mjs +0 -3
  70. package/_shims/node-runtime.d.ts +0 -3
  71. package/_shims/node-runtime.d.ts.map +0 -1
  72. package/_shims/node-runtime.js +0 -89
  73. package/_shims/node-runtime.js.map +0 -1
  74. package/_shims/node-runtime.mjs +0 -56
  75. package/_shims/node-runtime.mjs.map +0 -1
  76. package/_shims/node-types.d.ts +0 -42
  77. package/_shims/node-types.js +0 -3
  78. package/_shims/node-types.mjs +0 -3
  79. package/_shims/registry.d.ts +0 -37
  80. package/_shims/registry.d.ts.map +0 -1
  81. package/_shims/registry.js +0 -41
  82. package/_shims/registry.js.map +0 -1
  83. package/_shims/registry.mjs +0 -37
  84. package/_shims/registry.mjs.map +0 -1
  85. package/_shims/web-runtime.d.ts +0 -5
  86. package/_shims/web-runtime.d.ts.map +0 -1
  87. package/_shims/web-runtime.js +0 -78
  88. package/_shims/web-runtime.js.map +0 -1
  89. package/_shims/web-runtime.mjs +0 -71
  90. package/_shims/web-runtime.mjs.map +0 -1
  91. package/_shims/web-types.d.ts +0 -83
  92. package/_shims/web-types.js +0 -3
  93. package/_shims/web-types.mjs +0 -3
  94. package/core.d.ts +0 -241
  95. package/core.d.ts.map +0 -1
  96. package/core.js +0 -908
  97. package/core.js.map +0 -1
  98. package/core.mjs +0 -876
  99. package/core.mjs.map +0 -1
  100. package/error.d.ts +0 -47
  101. package/error.d.ts.map +0 -1
  102. package/error.js +0 -113
  103. package/error.js.map +0 -1
  104. package/error.mjs +0 -97
  105. package/error.mjs.map +0 -1
  106. package/index.d.mts +0 -121
  107. package/index.d.ts +0 -121
  108. package/index.d.ts.map +0 -1
  109. package/index.js +0 -131
  110. package/index.js.map +0 -1
  111. package/index.mjs +0 -88
  112. package/index.mjs.map +0 -1
  113. package/resource.d.ts +0 -6
  114. package/resource.d.ts.map +0 -1
  115. package/resource.js +0 -11
  116. package/resource.js.map +0 -1
  117. package/resource.mjs +0 -7
  118. package/resource.mjs.map +0 -1
  119. package/resources/agents/agents.d.ts +0 -40
  120. package/resources/agents/agents.d.ts.map +0 -1
  121. package/resources/agents/agents.js +0 -74
  122. package/resources/agents/agents.js.map +0 -1
  123. package/resources/agents/agents.mjs +0 -47
  124. package/resources/agents/agents.mjs.map +0 -1
  125. package/resources/agents/index.d.ts +0 -3
  126. package/resources/agents/index.d.ts.map +0 -1
  127. package/resources/agents/index.js +0 -9
  128. package/resources/agents/index.js.map +0 -1
  129. package/resources/agents/index.mjs +0 -4
  130. package/resources/agents/index.mjs.map +0 -1
  131. package/resources/agents/tools.d.ts +0 -17
  132. package/resources/agents/tools.d.ts.map +0 -1
  133. package/resources/agents/tools.js +0 -19
  134. package/resources/agents/tools.js.map +0 -1
  135. package/resources/agents/tools.mjs +0 -15
  136. package/resources/agents/tools.mjs.map +0 -1
  137. package/resources/index.d.ts +0 -8
  138. package/resources/index.d.ts.map +0 -1
  139. package/resources/index.js +0 -19
  140. package/resources/index.js.map +0 -1
  141. package/resources/index.mjs +0 -9
  142. package/resources/index.mjs.map +0 -1
  143. package/resources/logs.d.ts +0 -13
  144. package/resources/logs.d.ts.map +0 -1
  145. package/resources/logs.js +0 -24
  146. package/resources/logs.js.map +0 -1
  147. package/resources/logs.mjs +0 -20
  148. package/resources/logs.mjs.map +0 -1
  149. package/resources/memory/index.d.ts +0 -4
  150. package/resources/memory/index.d.ts.map +0 -1
  151. package/resources/memory/index.js +0 -11
  152. package/resources/memory/index.js.map +0 -1
  153. package/resources/memory/index.mjs +0 -5
  154. package/resources/memory/index.mjs.map +0 -1
  155. package/resources/memory/memory.d.ts +0 -23
  156. package/resources/memory/memory.d.ts.map +0 -1
  157. package/resources/memory/memory.js +0 -53
  158. package/resources/memory/memory.js.map +0 -1
  159. package/resources/memory/memory.mjs +0 -26
  160. package/resources/memory/memory.mjs.map +0 -1
  161. package/resources/memory/status.d.ts +0 -9
  162. package/resources/memory/status.d.ts.map +0 -1
  163. package/resources/memory/status.js +0 -18
  164. package/resources/memory/status.js.map +0 -1
  165. package/resources/memory/status.mjs +0 -14
  166. package/resources/memory/status.mjs.map +0 -1
  167. package/resources/memory/threads/index.d.ts +0 -3
  168. package/resources/memory/threads/index.d.ts.map +0 -1
  169. package/resources/memory/threads/index.js +0 -9
  170. package/resources/memory/threads/index.js.map +0 -1
  171. package/resources/memory/threads/index.mjs +0 -4
  172. package/resources/memory/threads/index.mjs.map +0 -1
  173. package/resources/memory/threads/messages.d.ts +0 -9
  174. package/resources/memory/threads/messages.d.ts.map +0 -1
  175. package/resources/memory/threads/messages.js +0 -18
  176. package/resources/memory/threads/messages.js.map +0 -1
  177. package/resources/memory/threads/messages.mjs +0 -14
  178. package/resources/memory/threads/messages.mjs.map +0 -1
  179. package/resources/memory/threads/threads.d.ts +0 -45
  180. package/resources/memory/threads/threads.d.ts.map +0 -1
  181. package/resources/memory/threads/threads.js +0 -104
  182. package/resources/memory/threads/threads.js.map +0 -1
  183. package/resources/memory/threads/threads.mjs +0 -77
  184. package/resources/memory/threads/threads.mjs.map +0 -1
  185. package/resources/syncs.d.ts +0 -15
  186. package/resources/syncs.d.ts.map +0 -1
  187. package/resources/syncs.js +0 -19
  188. package/resources/syncs.js.map +0 -1
  189. package/resources/syncs.mjs +0 -15
  190. package/resources/syncs.mjs.map +0 -1
  191. package/resources/system.d.ts +0 -9
  192. package/resources/system.d.ts.map +0 -1
  193. package/resources/system.js +0 -15
  194. package/resources/system.js.map +0 -1
  195. package/resources/system.mjs +0 -11
  196. package/resources/system.mjs.map +0 -1
  197. package/resources/tools/index.d.ts +0 -3
  198. package/resources/tools/index.d.ts.map +0 -1
  199. package/resources/tools/index.js +0 -9
  200. package/resources/tools/index.js.map +0 -1
  201. package/resources/tools/index.mjs +0 -4
  202. package/resources/tools/index.mjs.map +0 -1
  203. package/resources/tools/result.d.ts +0 -9
  204. package/resources/tools/result.d.ts.map +0 -1
  205. package/resources/tools/result.js +0 -18
  206. package/resources/tools/result.js.map +0 -1
  207. package/resources/tools/result.mjs +0 -14
  208. package/resources/tools/result.mjs.map +0 -1
  209. package/resources/tools/tools.d.ts +0 -29
  210. package/resources/tools/tools.d.ts.map +0 -1
  211. package/resources/tools/tools.js +0 -64
  212. package/resources/tools/tools.js.map +0 -1
  213. package/resources/tools/tools.mjs +0 -37
  214. package/resources/tools/tools.mjs.map +0 -1
  215. package/resources/workflows.d.ts +0 -23
  216. package/resources/workflows.d.ts.map +0 -1
  217. package/resources/workflows.js +0 -37
  218. package/resources/workflows.js.map +0 -1
  219. package/resources/workflows.mjs +0 -33
  220. package/resources/workflows.mjs.map +0 -1
  221. package/shims/node.d.ts +0 -30
  222. package/shims/node.d.ts.map +0 -1
  223. package/shims/node.js +0 -31
  224. package/shims/node.js.map +0 -1
  225. package/shims/node.mjs +0 -5
  226. package/shims/node.mjs.map +0 -1
  227. package/shims/web.d.ts +0 -26
  228. package/shims/web.d.ts.map +0 -1
  229. package/shims/web.js +0 -31
  230. package/shims/web.js.map +0 -1
  231. package/shims/web.mjs +0 -5
  232. package/shims/web.mjs.map +0 -1
  233. package/src/_shims/MultipartBody.ts +0 -9
  234. package/src/_shims/README.md +0 -46
  235. package/src/_shims/auto/runtime-bun.ts +0 -4
  236. package/src/_shims/auto/runtime-node.ts +0 -4
  237. package/src/_shims/auto/runtime.ts +0 -4
  238. package/src/_shims/auto/types-node.ts +0 -4
  239. package/src/_shims/auto/types.d.ts +0 -101
  240. package/src/_shims/auto/types.js +0 -3
  241. package/src/_shims/auto/types.mjs +0 -3
  242. package/src/_shims/bun-runtime.ts +0 -14
  243. package/src/_shims/index.d.ts +0 -81
  244. package/src/_shims/index.js +0 -13
  245. package/src/_shims/index.mjs +0 -7
  246. package/src/_shims/manual-types.d.ts +0 -12
  247. package/src/_shims/manual-types.js +0 -3
  248. package/src/_shims/manual-types.mjs +0 -3
  249. package/src/_shims/node-runtime.ts +0 -81
  250. package/src/_shims/node-types.d.ts +0 -42
  251. package/src/_shims/node-types.js +0 -3
  252. package/src/_shims/node-types.mjs +0 -3
  253. package/src/_shims/registry.ts +0 -67
  254. package/src/_shims/web-runtime.ts +0 -103
  255. package/src/_shims/web-types.d.ts +0 -83
  256. package/src/_shims/web-types.js +0 -3
  257. package/src/_shims/web-types.mjs +0 -3
  258. package/src/core.ts +0 -1201
  259. package/src/error.ts +0 -130
  260. package/src/lib/.keep +0 -4
  261. package/src/resource.ts +0 -11
  262. package/src/resources/agents/agents.ts +0 -77
  263. package/src/resources/agents/index.ts +0 -4
  264. package/src/resources/agents/tools.ts +0 -34
  265. package/src/resources/logs.ts +0 -23
  266. package/src/resources/memory/index.ts +0 -5
  267. package/src/resources/memory/memory.ts +0 -43
  268. package/src/resources/memory/status.ts +0 -16
  269. package/src/resources/memory/threads/index.ts +0 -4
  270. package/src/resources/memory/threads/messages.ts +0 -16
  271. package/src/resources/memory/threads/threads.ts +0 -105
  272. package/src/resources/syncs.ts +0 -25
  273. package/src/resources/system.ts +0 -13
  274. package/src/resources/tools/index.ts +0 -4
  275. package/src/resources/tools/result.ts +0 -16
  276. package/src/resources/tools/tools.ts +0 -54
  277. package/src/resources/workflows.ts +0 -49
  278. package/src/shims/node.ts +0 -50
  279. package/src/shims/web.ts +0 -50
  280. package/src/tsconfig.json +0 -11
  281. package/src/uploads.ts +0 -255
  282. package/src/version.ts +0 -1
  283. package/uploads.d.ts +0 -75
  284. package/uploads.d.ts.map +0 -1
  285. package/uploads.js +0 -171
  286. package/uploads.js.map +0 -1
  287. package/uploads.mjs +0 -158
  288. package/uploads.mjs.map +0 -1
  289. package/version.d.ts +0 -2
  290. package/version.d.ts.map +0 -1
  291. package/version.js +0 -5
  292. package/version.js.map +0 -1
  293. package/version.mjs +0 -2
  294. package/version.mjs.map +0 -1
package/.eslintrc.js ADDED
@@ -0,0 +1,10 @@
1
+ module.exports = {
2
+ parser: '@typescript-eslint/parser',
3
+ plugins: ['@typescript-eslint', 'unused-imports', 'prettier'],
4
+ rules: {
5
+ 'no-unused-vars': 'off',
6
+ 'prettier/prettier': 'error',
7
+ 'unused-imports/no-unused-imports': 'error',
8
+ },
9
+ root: true,
10
+ };
@@ -0,0 +1,3 @@
1
+
2
+ /node_modules
3
+ /dist
@@ -0,0 +1,26 @@
1
+ {
2
+ "endOfLine": "lf",
3
+ "semi": true,
4
+ "singleQuote": true,
5
+ "tabWidth": 2,
6
+ "useTabs": false,
7
+ "trailingComma": "all",
8
+ "bracketSpacing": true,
9
+ "printWidth": 120,
10
+ "arrowParens": "avoid",
11
+ "importOrder": [
12
+ "<THIRD_PARTY_MODULES>",
13
+ "^next\\/(.*)$",
14
+ "^@\\/components/(.*)$",
15
+ "^@\\/icons/(.*)$",
16
+ "^@\\/lib/(.*)$",
17
+ "^@\\/(.*)$",
18
+ "^[\\w\\d-_]+\\/(.*)$",
19
+ "^\\.\\.\\/(.*)$",
20
+ "^\\.\\/(.*)$",
21
+ "^[./]"
22
+ ],
23
+ "importOrderSeparation": true,
24
+ "importOrderParserPlugins": ["jsx", "typescript", "classProperties", "decorators-legacy"],
25
+ "plugins": ["@trivago/prettier-plugin-sort-imports"]
26
+ }
package/LICENSE CHANGED
@@ -1,201 +1,44 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction,
10
- and distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by
13
- the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all
16
- other entities that control, are controlled by, or are under common
17
- control with that entity. For the purposes of this definition,
18
- "control" means (i) the power, direct or indirect, to cause the
19
- direction or management of such entity, whether by contract or
20
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
- outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity
24
- exercising permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation
28
- source, and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical
31
- transformation or translation of a Source form, including but
32
- not limited to compiled object code, generated documentation,
33
- and conversions to other media types.
34
-
35
- "Work" shall mean the work of authorship, whether in Source or
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work
38
- (an example is provided in the Appendix below).
39
-
40
- "Derivative Works" shall mean any work, whether in Source or Object
41
- form, that is based on (or derived from) the Work and for which the
42
- editorial revisions, annotations, elaborations, or other modifications
43
- represent, as a whole, an original work of authorship. For the purposes
44
- of this License, Derivative Works shall not include works that remain
45
- separable from, or merely link (or bind by name) to the interfaces of,
46
- the Work and Derivative Works thereof.
47
-
48
- "Contribution" shall mean any work of authorship, including
49
- the original version of the Work and any modifications or additions
50
- to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
- or by an individual or Legal Entity authorized to submit on behalf of
53
- the copyright owner. For the purposes of this definition, "submitted"
54
- means any form of electronic, verbal, or written communication sent
55
- to the Licensor or its representatives, including but not limited to
56
- communication on electronic mailing lists, source code control systems,
57
- and issue tracking systems that are managed by, or on behalf of, the
58
- Licensor for the purpose of discussing and improving the Work, but
59
- excluding communication that is conspicuously marked or otherwise
60
- designated in writing by the copyright owner as "Not a Contribution."
61
-
62
- "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
- subsequently incorporated within the Work.
65
-
66
- 2. Grant of Copyright License. Subject to the terms and conditions of
67
- this License, each Contributor hereby grants to You a perpetual,
68
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
- copyright license to reproduce, prepare Derivative Works of,
70
- publicly display, publicly perform, sublicense, and distribute the
71
- Work and such Derivative Works in Source or Object form.
72
-
73
- 3. Grant of Patent License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- (except as stated in this section) patent license to make, have made,
77
- use, offer to sell, sell, import, and otherwise transfer the Work,
78
- where such license applies only to those patent claims licensable
79
- by such Contributor that are necessarily infringed by their
80
- Contribution(s) alone or by combination of their Contribution(s)
81
- with the Work to which such Contribution(s) was submitted. If You
82
- institute patent litigation against any entity (including a
83
- cross-claim or counterclaim in a lawsuit) alleging that the Work
84
- or a Contribution incorporated within the Work constitutes direct
85
- or contributory patent infringement, then any patent licenses
86
- granted to You under this License for that Work shall terminate
87
- as of the date such litigation is filed.
88
-
89
- 4. Redistribution. You may reproduce and distribute copies of the
90
- Work or Derivative Works thereof in any medium, with or without
91
- modifications, and in Source or Object form, provided that You
92
- meet the following conditions:
93
-
94
- (a) You must give any other recipients of the Work or
95
- Derivative Works a copy of this License; and
96
-
97
- (b) You must cause any modified files to carry prominent notices
98
- stating that You changed the files; and
99
-
100
- (c) You must retain, in the Source form of any Derivative Works
101
- that You distribute, all copyright, patent, trademark, and
102
- attribution notices from the Source form of the Work,
103
- excluding those notices that do not pertain to any part of
104
- the Derivative Works; and
105
-
106
- (d) If the Work includes a "NOTICE" text file as part of its
107
- distribution, then any Derivative Works that You distribute must
108
- include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
- pertain to any part of the Derivative Works, in at least one
111
- of the following places: within a NOTICE text file distributed
112
- as part of the Derivative Works; within the Source form or
113
- documentation, if provided along with the Derivative Works; or,
114
- within a display generated by the Derivative Works, if and
115
- wherever such third-party notices normally appear. The contents
116
- of the NOTICE file are for informational purposes only and
117
- do not modify the License. You may add Your own attribution
118
- notices within Derivative Works that You distribute, alongside
119
- or as an addendum to the NOTICE text from the Work, provided
120
- that such additional attribution notices cannot be construed
121
- as modifying the License.
122
-
123
- You may add Your own copyright statement to Your modifications and
124
- may provide additional or different license terms and conditions
125
- for use, reproduction, or distribution of Your modifications, or
126
- for any such Derivative Works as a whole, provided Your use,
127
- reproduction, and distribution of the Work otherwise complies with
128
- the conditions stated in this License.
129
-
130
- 5. Submission of Contributions. Unless You explicitly state otherwise,
131
- any Contribution intentionally submitted for inclusion in the Work
132
- by You to the Licensor shall be under the terms and conditions of
133
- this License, without any additional terms or conditions.
134
- Notwithstanding the above, nothing herein shall supersede or modify
135
- the terms of any separate license agreement you may have executed
136
- with Licensor regarding such Contributions.
137
-
138
- 6. Trademarks. This License does not grant permission to use the trade
139
- names, trademarks, service marks, or product names of the Licensor,
140
- except as required for reasonable and customary use in describing the
141
- origin of the Work and reproducing the content of the NOTICE file.
142
-
143
- 7. Disclaimer of Warranty. Unless required by applicable law or
144
- agreed to in writing, Licensor provides the Work (and each
145
- Contributor provides its Contributions) on an "AS IS" BASIS,
146
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
- implied, including, without limitation, any warranties or conditions
148
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
- PARTICULAR PURPOSE. You are solely responsible for determining the
150
- appropriateness of using or redistributing the Work and assume any
151
- risks associated with Your exercise of permissions under this License.
152
-
153
- 8. Limitation of Liability. In no event and under no legal theory,
154
- whether in tort (including negligence), contract, or otherwise,
155
- unless required by applicable law (such as deliberate and grossly
156
- negligent acts) or agreed to in writing, shall any Contributor be
157
- liable to You for damages, including any direct, indirect, special,
158
- incidental, or consequential damages of any character arising as a
159
- result of this License or out of the use or inability to use the
160
- Work (including but not limited to damages for loss of goodwill,
161
- work stoppage, computer failure or malfunction, or any and all
162
- other commercial damages or losses), even if such Contributor
163
- has been advised of the possibility of such damages.
164
-
165
- 9. Accepting Warranty or Additional Liability. While redistributing
166
- the Work or Derivative Works thereof, You may choose to offer,
167
- and charge a fee for, acceptance of support, warranty, indemnity,
168
- or other liability obligations and/or rights consistent with this
169
- License. However, in accepting such obligations, You may act only
170
- on Your own behalf and on Your sole responsibility, not on behalf
171
- of any other Contributor, and only if You agree to indemnify,
172
- defend, and hold each Contributor harmless for any liability
173
- incurred by, or claims asserted against, such Contributor by reason
174
- of your accepting any such warranty or additional liability.
175
-
176
- END OF TERMS AND CONDITIONS
177
-
178
- APPENDIX: How to apply the Apache License to your work.
179
-
180
- To apply the Apache License to your work, attach the following
181
- boilerplate notice, with the fields enclosed by brackets "[]"
182
- replaced with your own identifying information. (Don't include
183
- the brackets!) The text should be enclosed in the appropriate
184
- comment syntax for the file format. We also recommend that a
185
- file or class name and description of purpose be included on the
186
- same "printed page" as the copyright notice for easier
187
- identification within third-party archives.
188
-
189
- Copyright 2025 Mastra Client
190
-
191
- Licensed under the Apache License, Version 2.0 (the "License");
192
- you may not use this file except in compliance with the License.
193
- You may obtain a copy of the License at
194
-
195
- http://www.apache.org/licenses/LICENSE-2.0
196
-
197
- Unless required by applicable law or agreed to in writing, software
198
- distributed under the License is distributed on an "AS IS" BASIS,
199
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
- See the License for the specific language governing permissions and
201
- limitations under the License.
1
+ Elastic License 2.0 (ELv2)
2
+
3
+ **Acceptance**
4
+ By using the software, you agree to all of the terms and conditions below.
5
+
6
+ **Copyright License**
7
+ The licensor grants you a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable license to use, copy, distribute, make available, and prepare derivative works of the software, in each case subject to the limitations and conditions below
8
+
9
+ **Limitations**
10
+ You may not provide the software to third parties as a hosted or managed service, where the service provides users with access to any substantial set of the features or functionality of the software.
11
+
12
+ You may not move, change, disable, or circumvent the license key functionality in the software, and you may not remove or obscure any functionality in the software that is protected by the license key.
13
+
14
+ You may not alter, remove, or obscure any licensing, copyright, or other notices of the licensor in the software. Any use of the licensor’s trademarks is subject to applicable law.
15
+
16
+ **Patents**
17
+ The licensor grants you a license, under any patent claims the licensor can license, or becomes able to license, to make, have made, use, sell, offer for sale, import and have imported the software, in each case subject to the limitations and conditions in this license. This license does not cover any patent claims that you cause to be infringed by modifications or additions to the software. If you or your company make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
18
+
19
+ **Notices**
20
+ You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms.
21
+
22
+ If you modify the software, you must include in any modified copies of the software prominent notices stating that you have modified the software.
23
+
24
+ **No Other Rights**
25
+ These terms do not imply any licenses other than those expressly granted in these terms.
26
+
27
+ **Termination**
28
+ If you use the software in violation of these terms, such use is not licensed, and your licenses will automatically terminate. If the licensor provides you with a notice of your violation, and you cease all violation of this license no later than 30 days after you receive that notice, your licenses will be reinstated retroactively. However, if you violate these terms after such reinstatement, any additional violation of these terms will cause your licenses to terminate automatically and permanently.
29
+
30
+ **No Liability**
31
+ As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.
32
+
33
+ **Definitions**
34
+ The _licensor_ is the entity offering these terms, and the _software_ is the software the licensor makes available under these terms, including any portion of it.
35
+
36
+ _you_ refers to the individual or entity agreeing to these terms.
37
+
38
+ _your company_ is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. _control_ means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
39
+
40
+ _your licenses_ are all the licenses granted to you for the software under these terms.
41
+
42
+ _use_ means anything you do with the software requiring one of your licenses.
43
+
44
+ _trademark_ means trademarks, service marks, and similar rights.