@inconvoai/node 0.1.0-alpha.9 → 0.2.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.
- package/CHANGELOG.md +270 -0
- package/LICENSE +1 -1
- package/README.md +62 -14
- package/client.d.mts +10 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -1
- package/client.d.ts.map +1 -1
- package/client.js +11 -2
- package/client.js.map +1 -1
- package/client.mjs +11 -2
- package/client.mjs.map +1 -1
- package/index.d.mts +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts +1 -1
- package/index.d.ts.map +1 -1
- package/internal/to-file.d.mts +1 -1
- package/internal/to-file.d.ts +1 -1
- package/internal/to-file.js +1 -1
- package/internal/to-file.mjs +1 -1
- package/internal/utils/values.js +3 -3
- package/internal/utils/values.js.map +1 -1
- package/internal/utils/values.mjs +3 -3
- package/internal/utils/values.mjs.map +1 -1
- package/package.json +4 -1
- package/resources/agents/agents.d.mts +10 -0
- package/resources/agents/agents.d.mts.map +1 -0
- package/resources/agents/agents.d.ts +10 -0
- package/resources/agents/agents.d.ts.map +1 -0
- package/resources/agents/agents.js +17 -0
- package/resources/agents/agents.js.map +1 -0
- package/resources/agents/agents.mjs +12 -0
- package/resources/agents/agents.mjs.map +1 -0
- package/resources/agents/data-summary.d.mts +19 -0
- package/resources/agents/data-summary.d.mts.map +1 -0
- package/resources/agents/data-summary.d.ts +19 -0
- package/resources/agents/data-summary.d.ts.map +1 -0
- package/resources/agents/data-summary.js +15 -0
- package/resources/agents/data-summary.js.map +1 -0
- package/resources/agents/data-summary.mjs +11 -0
- package/resources/agents/data-summary.mjs.map +1 -0
- package/resources/agents/index.d.mts +3 -0
- package/resources/agents/index.d.mts.map +1 -0
- package/resources/agents/index.d.ts +3 -0
- package/resources/agents/index.d.ts.map +1 -0
- package/resources/agents/index.js +9 -0
- package/resources/agents/index.js.map +1 -0
- package/resources/agents/index.mjs +4 -0
- package/resources/agents/index.mjs.map +1 -0
- package/resources/agents.d.mts +2 -0
- package/resources/agents.d.mts.map +1 -0
- package/resources/agents.d.ts +2 -0
- package/resources/agents.d.ts.map +1 -0
- package/resources/agents.js +6 -0
- package/resources/agents.js.map +1 -0
- package/resources/agents.mjs +3 -0
- package/resources/agents.mjs.map +1 -0
- package/resources/conversations/conversations.d.mts +5 -2
- package/resources/conversations/conversations.d.mts.map +1 -1
- package/resources/conversations/conversations.d.ts +5 -2
- package/resources/conversations/conversations.d.ts.map +1 -1
- package/resources/conversations/conversations.js.map +1 -1
- package/resources/conversations/conversations.mjs +1 -1
- package/resources/conversations/conversations.mjs.map +1 -1
- package/resources/conversations/index.d.mts +1 -1
- package/resources/conversations/index.d.mts.map +1 -1
- package/resources/conversations/index.d.ts +1 -1
- package/resources/conversations/index.d.ts.map +1 -1
- package/resources/conversations/index.js.map +1 -1
- package/resources/conversations/index.mjs.map +1 -1
- package/resources/conversations/response/index.d.mts +1 -1
- package/resources/conversations/response/index.d.mts.map +1 -1
- package/resources/conversations/response/index.d.ts +1 -1
- package/resources/conversations/response/index.d.ts.map +1 -1
- package/resources/conversations/response/index.js.map +1 -1
- package/resources/conversations/response/index.mjs.map +1 -1
- package/resources/conversations/response/response.d.mts +77 -19
- package/resources/conversations/response/response.d.mts.map +1 -1
- package/resources/conversations/response/response.d.ts +77 -19
- package/resources/conversations/response/response.d.ts.map +1 -1
- package/resources/conversations/response/response.js +7 -0
- package/resources/conversations/response/response.js.map +1 -1
- package/resources/conversations/response/response.mjs +7 -0
- package/resources/conversations/response/response.mjs.map +1 -1
- package/resources/datasets.d.mts +67 -0
- package/resources/datasets.d.mts.map +1 -0
- package/resources/datasets.d.ts +67 -0
- package/resources/datasets.d.ts.map +1 -0
- package/resources/datasets.js +30 -0
- package/resources/datasets.js.map +1 -0
- package/resources/datasets.mjs +26 -0
- package/resources/datasets.mjs.map +1 -0
- package/resources/index.d.mts +3 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/mcp-servers/index.d.mts +3 -0
- package/resources/mcp-servers/index.d.mts.map +1 -0
- package/resources/mcp-servers/index.d.ts +3 -0
- package/resources/mcp-servers/index.d.ts.map +1 -0
- package/resources/mcp-servers/index.js +9 -0
- package/resources/mcp-servers/index.js.map +1 -0
- package/resources/mcp-servers/index.mjs +4 -0
- package/resources/mcp-servers/index.mjs.map +1 -0
- package/resources/mcp-servers/mcp-servers.d.mts +10 -0
- package/resources/mcp-servers/mcp-servers.d.mts.map +1 -0
- package/resources/mcp-servers/mcp-servers.d.ts +10 -0
- package/resources/mcp-servers/mcp-servers.d.ts.map +1 -0
- package/resources/mcp-servers/mcp-servers.js +17 -0
- package/resources/mcp-servers/mcp-servers.js.map +1 -0
- package/resources/mcp-servers/mcp-servers.mjs +12 -0
- package/resources/mcp-servers/mcp-servers.mjs.map +1 -0
- package/resources/mcp-servers/tenants.d.mts +63 -0
- package/resources/mcp-servers/tenants.d.mts.map +1 -0
- package/resources/mcp-servers/tenants.d.ts +63 -0
- package/resources/mcp-servers/tenants.d.ts.map +1 -0
- package/resources/mcp-servers/tenants.js +47 -0
- package/resources/mcp-servers/tenants.js.map +1 -0
- package/resources/mcp-servers/tenants.mjs +43 -0
- package/resources/mcp-servers/tenants.mjs.map +1 -0
- package/resources/mcp-servers.d.mts +2 -0
- package/resources/mcp-servers.d.mts.map +1 -0
- package/resources/mcp-servers.d.ts +2 -0
- package/resources/mcp-servers.d.ts.map +1 -0
- package/resources/mcp-servers.js +6 -0
- package/resources/mcp-servers.js.map +1 -0
- package/resources/mcp-servers.mjs +3 -0
- package/resources/mcp-servers.mjs.map +1 -0
- package/src/client.ts +36 -3
- package/src/index.ts +1 -1
- package/src/internal/to-file.ts +1 -1
- package/src/internal/utils/values.ts +3 -3
- package/src/resources/agents/agents.ts +15 -0
- package/src/resources/agents/data-summary.ts +25 -0
- package/src/resources/agents/index.ts +4 -0
- package/src/resources/agents.ts +3 -0
- package/src/resources/conversations/conversations.ts +14 -1
- package/src/resources/conversations/index.ts +2 -0
- package/src/resources/conversations/response/index.ts +2 -0
- package/src/resources/conversations/response/response.ts +97 -26
- package/src/resources/datasets.ts +102 -0
- package/src/resources/index.ts +11 -0
- package/src/resources/mcp-servers/index.ts +9 -0
- package/src/resources/mcp-servers/mcp-servers.ts +20 -0
- package/src/resources/mcp-servers/tenants.ts +81 -0
- package/src/resources/mcp-servers.ts +3 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,275 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.0 (2026-01-13)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.0...v0.2.0](https://github.com/ten-dev/inconvo-node-sdk/compare/v0.1.0...v0.2.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** manual updates ([bc725de](https://github.com/ten-dev/inconvo-node-sdk/commit/bc725de46d8d3a341bcbdbeaf0b1a3a8114209a7))
|
|
10
|
+
* **api:** manual updates ([f46606b](https://github.com/ten-dev/inconvo-node-sdk/commit/f46606b06c29a9d211a60b79b42dd10aea3e8b6c))
|
|
11
|
+
* **api:** manual updates ([947a0b7](https://github.com/ten-dev/inconvo-node-sdk/commit/947a0b7d75eae3f724afe041351081c863121587))
|
|
12
|
+
* **api:** manual updates ([1ca0185](https://github.com/ten-dev/inconvo-node-sdk/commit/1ca018592efcdf8c8729b51ecd9e8b15d1e6b40b))
|
|
13
|
+
|
|
14
|
+
## 0.1.0 (2026-01-12)
|
|
15
|
+
|
|
16
|
+
Full Changelog: [v0.1.0-alpha.35...v0.1.0](https://github.com/ten-dev/inconvo-node-sdk/compare/v0.1.0-alpha.35...v0.1.0)
|
|
17
|
+
|
|
18
|
+
## 0.1.0-alpha.35 (2026-01-11)
|
|
19
|
+
|
|
20
|
+
Full Changelog: [v0.1.0-alpha.34...v0.1.0-alpha.35](https://github.com/ten-dev/inconvo-node-sdk/compare/v0.1.0-alpha.34...v0.1.0-alpha.35)
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* **api:** manual updates ([2686339](https://github.com/ten-dev/inconvo-node-sdk/commit/268633971c93ea12597165b399e9e6a2de758881))
|
|
25
|
+
|
|
26
|
+
## 0.1.0-alpha.34 (2026-01-10)
|
|
27
|
+
|
|
28
|
+
Full Changelog: [v0.1.0-alpha.33...v0.1.0-alpha.34](https://github.com/ten-dev/inconvo-node-sdk/compare/v0.1.0-alpha.33...v0.1.0-alpha.34)
|
|
29
|
+
|
|
30
|
+
### Features
|
|
31
|
+
|
|
32
|
+
* **api:** manual updates ([2ef1451](https://github.com/ten-dev/inconvo-node-sdk/commit/2ef1451e47c8c7fefdbd885ccfaf1859f3473b0a))
|
|
33
|
+
|
|
34
|
+
## 0.1.0-alpha.33 (2026-01-10)
|
|
35
|
+
|
|
36
|
+
Full Changelog: [v0.1.0-alpha.32...v0.1.0-alpha.33](https://github.com/ten-dev/inconvo-node-sdk/compare/v0.1.0-alpha.32...v0.1.0-alpha.33)
|
|
37
|
+
|
|
38
|
+
### Features
|
|
39
|
+
|
|
40
|
+
* **api:** manual updates ([e697525](https://github.com/ten-dev/inconvo-node-sdk/commit/e697525b05d38b15461b080d981d49bcb21561f2))
|
|
41
|
+
|
|
42
|
+
## 0.1.0-alpha.32 (2026-01-10)
|
|
43
|
+
|
|
44
|
+
Full Changelog: [v0.1.0-alpha.31...v0.1.0-alpha.32](https://github.com/ten-dev/inconvo-node-sdk/compare/v0.1.0-alpha.31...v0.1.0-alpha.32)
|
|
45
|
+
|
|
46
|
+
### Features
|
|
47
|
+
|
|
48
|
+
* **api:** manual updates ([a5fcbd2](https://github.com/ten-dev/inconvo-node-sdk/commit/a5fcbd23f6484277d6a8889b6b74d329ed2a3618))
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
### Chores
|
|
52
|
+
|
|
53
|
+
* break long lines in snippets into multiline ([a7b9277](https://github.com/ten-dev/inconvo-node-sdk/commit/a7b92770b293763a61de4899194775c370246e34))
|
|
54
|
+
|
|
55
|
+
## 0.1.0-alpha.31 (2026-01-05)
|
|
56
|
+
|
|
57
|
+
Full Changelog: [v0.1.0-alpha.30...v0.1.0-alpha.31](https://github.com/ten-dev/inconvo-node-sdk/compare/v0.1.0-alpha.30...v0.1.0-alpha.31)
|
|
58
|
+
|
|
59
|
+
### Features
|
|
60
|
+
|
|
61
|
+
* **api:** change chart type to object for vega charts ([ea19a45](https://github.com/ten-dev/inconvo-node-sdk/commit/ea19a4596d382fb0351ed65ae7695d2c3b71ea64))
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
### Chores
|
|
65
|
+
|
|
66
|
+
* **internal:** codegen related update ([1732a13](https://github.com/ten-dev/inconvo-node-sdk/commit/1732a13af49ee36eb2c5ce286d2d7de4979e24a3))
|
|
67
|
+
|
|
68
|
+
## 0.1.0-alpha.30 (2025-12-06)
|
|
69
|
+
|
|
70
|
+
Full Changelog: [v0.1.0-alpha.29...v0.1.0-alpha.30](https://github.com/ten-dev/inconvo-node-sdk/compare/v0.1.0-alpha.29...v0.1.0-alpha.30)
|
|
71
|
+
|
|
72
|
+
### Bug Fixes
|
|
73
|
+
|
|
74
|
+
* **mcp:** correct code tool API endpoint ([7993f50](https://github.com/ten-dev/inconvo-node-sdk/commit/7993f50c6c02b2dae901af495c104795a3da8df4))
|
|
75
|
+
* **mcp:** return correct lines on typescript errors ([7335ccc](https://github.com/ten-dev/inconvo-node-sdk/commit/7335cccb02f95de56677906d022920c8346b2271))
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
### Chores
|
|
79
|
+
|
|
80
|
+
* **client:** fix logger property type ([5e55a48](https://github.com/ten-dev/inconvo-node-sdk/commit/5e55a4836d08f86644cc85128d2c99ff65289897))
|
|
81
|
+
* **internal:** codegen related update ([be2360e](https://github.com/ten-dev/inconvo-node-sdk/commit/be2360e0a0f2bde991f52ee98f04f8a67b1a88ad))
|
|
82
|
+
* **internal:** upgrade eslint ([c141d58](https://github.com/ten-dev/inconvo-node-sdk/commit/c141d58bea22e40d42f3ababeb97e34d7d8034a6))
|
|
83
|
+
|
|
84
|
+
## 0.1.0-alpha.29 (2025-12-01)
|
|
85
|
+
|
|
86
|
+
Full Changelog: [v0.1.0-alpha.28...v0.1.0-alpha.29](https://github.com/ten-dev/inconvo-node-sdk/compare/v0.1.0-alpha.28...v0.1.0-alpha.29)
|
|
87
|
+
|
|
88
|
+
### Features
|
|
89
|
+
|
|
90
|
+
* **api:** manual updates ([b1dd986](https://github.com/ten-dev/inconvo-node-sdk/commit/b1dd986829afcc59d4dd718d733b847327e17b9b))
|
|
91
|
+
|
|
92
|
+
## 0.1.0-alpha.28 (2025-10-28)
|
|
93
|
+
|
|
94
|
+
Full Changelog: [v0.1.0-alpha.27...v0.1.0-alpha.28](https://github.com/ten-dev/inconvo-node-sdk/compare/v0.1.0-alpha.27...v0.1.0-alpha.28)
|
|
95
|
+
|
|
96
|
+
### Features
|
|
97
|
+
|
|
98
|
+
* **api:** manual updates ([06dae0a](https://github.com/ten-dev/inconvo-node-sdk/commit/06dae0a6345b1f631ed82884c23773d39ff7833e))
|
|
99
|
+
|
|
100
|
+
## 0.1.0-alpha.27 (2025-10-23)
|
|
101
|
+
|
|
102
|
+
Full Changelog: [v0.1.0-alpha.26...v0.1.0-alpha.27](https://github.com/ten-dev/inconvo-node-sdk/compare/v0.1.0-alpha.26...v0.1.0-alpha.27)
|
|
103
|
+
|
|
104
|
+
### Features
|
|
105
|
+
|
|
106
|
+
* **response:** update event types to replace ResponseAgentStepEvent with ResponseProgressEvent ([df71088](https://github.com/ten-dev/inconvo-node-sdk/commit/df7108878d825fc8b95df65713f831d82af28b3c))
|
|
107
|
+
|
|
108
|
+
## 0.1.0-alpha.26 (2025-10-23)
|
|
109
|
+
|
|
110
|
+
Full Changelog: [v0.1.0-alpha.25...v0.1.0-alpha.26](https://github.com/ten-dev/inconvo-node-sdk/compare/v0.1.0-alpha.25...v0.1.0-alpha.26)
|
|
111
|
+
|
|
112
|
+
### Features
|
|
113
|
+
|
|
114
|
+
* **api:** attempt new version ([4f4ae85](https://github.com/ten-dev/inconvo-node-sdk/commit/4f4ae859033ff552b6a853dd9f56bc99b12e8797))
|
|
115
|
+
|
|
116
|
+
## 0.1.0-alpha.25 (2025-10-22)
|
|
117
|
+
|
|
118
|
+
Full Changelog: [v0.1.0-alpha.24...v0.1.0-alpha.25](https://github.com/ten-dev/inconvo-node-sdk/compare/v0.1.0-alpha.24...v0.1.0-alpha.25)
|
|
119
|
+
|
|
120
|
+
### Features
|
|
121
|
+
|
|
122
|
+
* **api:** manual updates ([9a2172d](https://github.com/ten-dev/inconvo-node-sdk/commit/9a2172d46d520d05a4e9b9e8e5933e6c7ec5ac81))
|
|
123
|
+
|
|
124
|
+
## 0.1.0-alpha.24 (2025-10-22)
|
|
125
|
+
|
|
126
|
+
Full Changelog: [v0.1.0-alpha.23...v0.1.0-alpha.24](https://github.com/ten-dev/inconvo-node-sdk/compare/v0.1.0-alpha.23...v0.1.0-alpha.24)
|
|
127
|
+
|
|
128
|
+
### Features
|
|
129
|
+
|
|
130
|
+
* **api:** manual updates ([8bb8ee1](https://github.com/ten-dev/inconvo-node-sdk/commit/8bb8ee13347122eecfcb7578864bb494817a0f83))
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
### Chores
|
|
134
|
+
|
|
135
|
+
* **internal:** remove .eslintcache ([7d48bbb](https://github.com/ten-dev/inconvo-node-sdk/commit/7d48bbba362426ed32e152fafdeeef452c14a00c))
|
|
136
|
+
* **internal:** use npm pack for build uploads ([d8cfbb7](https://github.com/ten-dev/inconvo-node-sdk/commit/d8cfbb7c91171eaf0832a369ed9f9c27da8721c3))
|
|
137
|
+
* **jsdoc:** fix [@link](https://github.com/link) annotations to refer only to parts of the package‘s public interface ([f508f9f](https://github.com/ten-dev/inconvo-node-sdk/commit/f508f9fe77025d147f2f2d79038dd1406c4c4dd2))
|
|
138
|
+
|
|
139
|
+
## 0.1.0-alpha.23 (2025-09-29)
|
|
140
|
+
|
|
141
|
+
Full Changelog: [v0.1.0-alpha.22...v0.1.0-alpha.23](https://github.com/ten-dev/inconvo-node-sdk/compare/v0.1.0-alpha.22...v0.1.0-alpha.23)
|
|
142
|
+
|
|
143
|
+
### Bug Fixes
|
|
144
|
+
|
|
145
|
+
* **api:** delete mcp server tenant function signature ([b04ebe5](https://github.com/ten-dev/inconvo-node-sdk/commit/b04ebe5249d1b0684c3e3f74e0e2bbb47050f70f))
|
|
146
|
+
|
|
147
|
+
## 0.1.0-alpha.22 (2025-09-29)
|
|
148
|
+
|
|
149
|
+
Full Changelog: [v0.1.0-alpha.21...v0.1.0-alpha.22](https://github.com/ten-dev/inconvo-node-sdk/compare/v0.1.0-alpha.21...v0.1.0-alpha.22)
|
|
150
|
+
|
|
151
|
+
### Features
|
|
152
|
+
|
|
153
|
+
* **api:** mcp servers bodyparamname + param ordering ([f55d1cc](https://github.com/ten-dev/inconvo-node-sdk/commit/f55d1ccaa0bb2b6606f4254d5e9f6605f8e28741))
|
|
154
|
+
|
|
155
|
+
## 0.1.0-alpha.21 (2025-09-29)
|
|
156
|
+
|
|
157
|
+
Full Changelog: [v0.1.0-alpha.20...v0.1.0-alpha.21](https://github.com/ten-dev/inconvo-node-sdk/compare/v0.1.0-alpha.20...v0.1.0-alpha.21)
|
|
158
|
+
|
|
159
|
+
### Bug Fixes
|
|
160
|
+
|
|
161
|
+
* **api:** mcp_servers stainless config ([313797d](https://github.com/ten-dev/inconvo-node-sdk/commit/313797dd26e90839423532e87b347d31e438b206))
|
|
162
|
+
|
|
163
|
+
## 0.1.0-alpha.20 (2025-09-29)
|
|
164
|
+
|
|
165
|
+
Full Changelog: [v0.1.0-alpha.19...v0.1.0-alpha.20](https://github.com/ten-dev/inconvo-node-sdk/compare/v0.1.0-alpha.19...v0.1.0-alpha.20)
|
|
166
|
+
|
|
167
|
+
### Features
|
|
168
|
+
|
|
169
|
+
* **api:** mcpserver updates ([ca5ad96](https://github.com/ten-dev/inconvo-node-sdk/commit/ca5ad960125e00497322e0ce17c2e1752c5aa152))
|
|
170
|
+
|
|
171
|
+
## 0.1.0-alpha.19 (2025-09-29)
|
|
172
|
+
|
|
173
|
+
Full Changelog: [v0.1.0-alpha.18...v0.1.0-alpha.19](https://github.com/ten-dev/inconvo-node-sdk/compare/v0.1.0-alpha.18...v0.1.0-alpha.19)
|
|
174
|
+
|
|
175
|
+
## 0.1.0-alpha.18 (2025-09-29)
|
|
176
|
+
|
|
177
|
+
Full Changelog: [v0.1.0-alpha.17...v0.1.0-alpha.18](https://github.com/ten-dev/inconvo-node-sdk/compare/v0.1.0-alpha.17...v0.1.0-alpha.18)
|
|
178
|
+
|
|
179
|
+
### Features
|
|
180
|
+
|
|
181
|
+
* **api:** add mcpservers ([4471689](https://github.com/ten-dev/inconvo-node-sdk/commit/447168988004b119d02235176c9c5025ad9b6be4))
|
|
182
|
+
|
|
183
|
+
## 0.1.0-alpha.17 (2025-09-27)
|
|
184
|
+
|
|
185
|
+
Full Changelog: [v0.1.0-alpha.16...v0.1.0-alpha.17](https://github.com/ten-dev/inconvo-node-sdk/compare/v0.1.0-alpha.16...v0.1.0-alpha.17)
|
|
186
|
+
|
|
187
|
+
### Performance Improvements
|
|
188
|
+
|
|
189
|
+
* faster formatting ([0c7de56](https://github.com/ten-dev/inconvo-node-sdk/commit/0c7de5670eabfe0691fbadb498fafaecf066f884))
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
### Chores
|
|
193
|
+
|
|
194
|
+
* do not install brew dependencies in ./scripts/bootstrap by default ([0a20d69](https://github.com/ten-dev/inconvo-node-sdk/commit/0a20d69dc134a6f4cf3594d174f9e29b3a0b5b08))
|
|
195
|
+
* **internal:** codegen related update ([8fc7a08](https://github.com/ten-dev/inconvo-node-sdk/commit/8fc7a08ac2d9a6aee38c43741ea6eb42a5a6a9d7))
|
|
196
|
+
* **internal:** fix incremental formatting in some cases ([2cfa7e5](https://github.com/ten-dev/inconvo-node-sdk/commit/2cfa7e579a9e5afb645506f40432e70ebbf5cac8))
|
|
197
|
+
* **internal:** ignore .eslintcache ([bdf4548](https://github.com/ten-dev/inconvo-node-sdk/commit/bdf454820cbee180b1fca18aa43471adf594ffcf))
|
|
198
|
+
* **internal:** remove deprecated `compilerOptions.baseUrl` from tsconfig.json ([561ae80](https://github.com/ten-dev/inconvo-node-sdk/commit/561ae80e136c9b6723277238b1590c8f306f7e31))
|
|
199
|
+
|
|
200
|
+
## 0.1.0-alpha.16 (2025-09-09)
|
|
201
|
+
|
|
202
|
+
Full Changelog: [v0.1.0-alpha.15...v0.1.0-alpha.16](https://github.com/ten-dev/inconvo-node-sdk/compare/v0.1.0-alpha.15...v0.1.0-alpha.16)
|
|
203
|
+
|
|
204
|
+
### Bug Fixes
|
|
205
|
+
|
|
206
|
+
* coerce nullable values to undefined ([cb2672c](https://github.com/ten-dev/inconvo-node-sdk/commit/cb2672c72f6c92f5156a798479491c831ed220f8))
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
### Chores
|
|
210
|
+
|
|
211
|
+
* ci build action ([6e56077](https://github.com/ten-dev/inconvo-node-sdk/commit/6e56077257debf0bc390fb30d0108e6ae0d404c9))
|
|
212
|
+
|
|
213
|
+
## 0.1.0-alpha.15 (2025-08-29)
|
|
214
|
+
|
|
215
|
+
Full Changelog: [v0.1.0-alpha.14...v0.1.0-alpha.15](https://github.com/ten-dev/inconvo-node-sdk/compare/v0.1.0-alpha.14...v0.1.0-alpha.15)
|
|
216
|
+
|
|
217
|
+
### Features
|
|
218
|
+
|
|
219
|
+
* **mcp:** add code execution tool ([fef3698](https://github.com/ten-dev/inconvo-node-sdk/commit/fef3698e72ec48e00e472e02fd1c287918a82e3e))
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
### Chores
|
|
223
|
+
|
|
224
|
+
* add package to package.json ([31505f6](https://github.com/ten-dev/inconvo-node-sdk/commit/31505f6ef9bd2ae00f47d2417197f74f686c4248))
|
|
225
|
+
* **client:** qualify global Blob ([d41aabc](https://github.com/ten-dev/inconvo-node-sdk/commit/d41aabc091ead6c29b4e06e27eedf67761af2582))
|
|
226
|
+
* **deps:** update dependency @types/node to v20.17.58 ([74e64f6](https://github.com/ten-dev/inconvo-node-sdk/commit/74e64f6e9897852c6cbef5364855164d29013ca5))
|
|
227
|
+
* **internal:** codegen related update ([26e1d40](https://github.com/ten-dev/inconvo-node-sdk/commit/26e1d40c722621710fcbff572be0ec9e174a37ec))
|
|
228
|
+
* **internal:** formatting change ([5c5f31d](https://github.com/ten-dev/inconvo-node-sdk/commit/5c5f31d9aeb109da0f939874d35fb698bb2fc294))
|
|
229
|
+
* **internal:** update global Error reference ([864f44e](https://github.com/ten-dev/inconvo-node-sdk/commit/864f44e1a8a2cda801e230314e42d479acb6447b))
|
|
230
|
+
* update CI script ([2645da1](https://github.com/ten-dev/inconvo-node-sdk/commit/2645da1b81e33dba0fdfbc178314fa5a836ac0c5))
|
|
231
|
+
|
|
232
|
+
## 0.1.0-alpha.14 (2025-08-09)
|
|
233
|
+
|
|
234
|
+
Full Changelog: [v0.1.0-alpha.13...v0.1.0-alpha.14](https://github.com/ten-dev/inconvo-node-sdk/compare/v0.1.0-alpha.13...v0.1.0-alpha.14)
|
|
235
|
+
|
|
236
|
+
### Chores
|
|
237
|
+
|
|
238
|
+
* **internal:** update comment in script ([37d3fb5](https://github.com/ten-dev/inconvo-node-sdk/commit/37d3fb5f8d71a934aab6588195c042821d0e9965))
|
|
239
|
+
* update @stainless-api/prism-cli to v5.15.0 ([b52c0dc](https://github.com/ten-dev/inconvo-node-sdk/commit/b52c0dcfcfcf6cbb56dae5b8f1b73487f5fe311a))
|
|
240
|
+
|
|
241
|
+
## 0.1.0-alpha.13 (2025-08-07)
|
|
242
|
+
|
|
243
|
+
Full Changelog: [v0.1.0-alpha.12...v0.1.0-alpha.13](https://github.com/ten-dev/inconvo-node-sdk/compare/v0.1.0-alpha.12...v0.1.0-alpha.13)
|
|
244
|
+
|
|
245
|
+
### Features
|
|
246
|
+
|
|
247
|
+
* **api:** update via SDK Studio ([6feb2cf](https://github.com/ten-dev/inconvo-node-sdk/commit/6feb2cf8ad144a68bc9aa5652d4e36115a50c015))
|
|
248
|
+
* **api:** update via SDK Studio ([85bbe07](https://github.com/ten-dev/inconvo-node-sdk/commit/85bbe07f0063f0e646420a975c2444ac238d10e1))
|
|
249
|
+
|
|
250
|
+
## 0.1.0-alpha.12 (2025-08-07)
|
|
251
|
+
|
|
252
|
+
Full Changelog: [v0.1.0-alpha.11...v0.1.0-alpha.12](https://github.com/ten-dev/inconvo-node-sdk/compare/v0.1.0-alpha.11...v0.1.0-alpha.12)
|
|
253
|
+
|
|
254
|
+
### Features
|
|
255
|
+
|
|
256
|
+
* **api:** update via SDK Studio ([6956b68](https://github.com/ten-dev/inconvo-node-sdk/commit/6956b6867ee1c1d5c19ac834cd9e3f300e1c0cda))
|
|
257
|
+
* **api:** update via SDK Studio ([815ca5c](https://github.com/ten-dev/inconvo-node-sdk/commit/815ca5c0aee238e3fe4a4df24c108a63faa60686))
|
|
258
|
+
* **api:** update via SDK Studio ([0cc6021](https://github.com/ten-dev/inconvo-node-sdk/commit/0cc60210febf61925421f7694ecf1ed80c92804b))
|
|
259
|
+
* **api:** update via SDK Studio ([f57aa12](https://github.com/ten-dev/inconvo-node-sdk/commit/f57aa12fb1bbeed008e3e14a9de722e3fe2e49c0))
|
|
260
|
+
|
|
261
|
+
## 0.1.0-alpha.11 (2025-08-07)
|
|
262
|
+
|
|
263
|
+
Full Changelog: [v0.1.0-alpha.10...v0.1.0-alpha.11](https://github.com/ten-dev/inconvo-node-sdk/compare/v0.1.0-alpha.10...v0.1.0-alpha.11)
|
|
264
|
+
|
|
265
|
+
### Chores
|
|
266
|
+
|
|
267
|
+
* **internal:** move publish config ([81b3dc3](https://github.com/ten-dev/inconvo-node-sdk/commit/81b3dc3f9c552c94be0be2947030eda447a93a55))
|
|
268
|
+
|
|
269
|
+
## 0.1.0-alpha.10 (2025-08-03)
|
|
270
|
+
|
|
271
|
+
Full Changelog: [v0.1.0-alpha.9...v0.1.0-alpha.10](https://github.com/ten-dev/inconvo-node-sdk/compare/v0.1.0-alpha.9...v0.1.0-alpha.10)
|
|
272
|
+
|
|
3
273
|
## 0.1.0-alpha.9 (2025-08-03)
|
|
4
274
|
|
|
5
275
|
Full Changelog: [v0.1.0-alpha.8...v0.1.0-alpha.9](https://github.com/ten-dev/inconvo-node-sdk/compare/v0.1.0-alpha.8...v0.1.0-alpha.9)
|
package/LICENSE
CHANGED
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
same "printed page" as the copyright notice for easier
|
|
187
187
|
identification within third-party archives.
|
|
188
188
|
|
|
189
|
-
Copyright
|
|
189
|
+
Copyright 2026 Inconvo
|
|
190
190
|
|
|
191
191
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
192
|
you may not use this file except in compliance with the License.
|
package/README.md
CHANGED
|
@@ -43,12 +43,56 @@ const client = new Inconvo({
|
|
|
43
43
|
apiKey: process.env['INCONVO_API_KEY'], // This is the default and can be omitted
|
|
44
44
|
});
|
|
45
45
|
|
|
46
|
-
const params: Inconvo.ConversationCreateParams = { context: { replace: '
|
|
46
|
+
const params: Inconvo.ConversationCreateParams = { context: { replace: 'me_test' } };
|
|
47
47
|
const conversation: Inconvo.ConversationCreateResponse = await client.conversations.create(params);
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
Documentation for each method, request param, and response field are available in docstrings and will appear on hover in most modern editors.
|
|
51
51
|
|
|
52
|
+
## File uploads
|
|
53
|
+
|
|
54
|
+
Request parameters that correspond to file uploads can be passed in many different forms:
|
|
55
|
+
|
|
56
|
+
- `File` (or an object with the same structure)
|
|
57
|
+
- a `fetch` `Response` (or an object with the same structure)
|
|
58
|
+
- an `fs.ReadStream`
|
|
59
|
+
- the return value of our `toFile` helper
|
|
60
|
+
|
|
61
|
+
```ts
|
|
62
|
+
import fs from 'fs';
|
|
63
|
+
import Inconvo, { toFile } from '@inconvoai/node';
|
|
64
|
+
|
|
65
|
+
const client = new Inconvo();
|
|
66
|
+
|
|
67
|
+
// If you have access to Node `fs` we recommend using `fs.createReadStream()`:
|
|
68
|
+
await client.datasets.upload({
|
|
69
|
+
file: fs.createReadStream('/path/to/file'),
|
|
70
|
+
requestContext: 'requestContext',
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
// Or if you have the web `File` API you can pass a `File` instance:
|
|
74
|
+
await client.datasets.upload({
|
|
75
|
+
file: new File(['my bytes'], 'file'),
|
|
76
|
+
requestContext: 'requestContext',
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
// You can also pass a `fetch` `Response`:
|
|
80
|
+
await client.datasets.upload({
|
|
81
|
+
file: await fetch('https://somesite/file'),
|
|
82
|
+
requestContext: 'requestContext',
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
// Finally, if none of the above are convenient, you can use our `toFile` helper:
|
|
86
|
+
await client.datasets.upload({
|
|
87
|
+
file: await toFile(Buffer.from('my bytes'), 'file'),
|
|
88
|
+
requestContext: 'requestContext',
|
|
89
|
+
});
|
|
90
|
+
await client.datasets.upload({
|
|
91
|
+
file: await toFile(new Uint8Array([0, 1, 2]), 'file'),
|
|
92
|
+
requestContext: 'requestContext',
|
|
93
|
+
});
|
|
94
|
+
```
|
|
95
|
+
|
|
52
96
|
## Handling errors
|
|
53
97
|
|
|
54
98
|
When the library is unable to connect to the API,
|
|
@@ -57,15 +101,17 @@ a subclass of `APIError` will be thrown:
|
|
|
57
101
|
|
|
58
102
|
<!-- prettier-ignore -->
|
|
59
103
|
```ts
|
|
60
|
-
const conversation = await client.conversations
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
104
|
+
const conversation = await client.conversations
|
|
105
|
+
.create({ context: { replace: 'me_test' } })
|
|
106
|
+
.catch(async (err) => {
|
|
107
|
+
if (err instanceof Inconvo.APIError) {
|
|
108
|
+
console.log(err.status); // 400
|
|
109
|
+
console.log(err.name); // BadRequestError
|
|
110
|
+
console.log(err.headers); // {server: 'nginx', ...}
|
|
111
|
+
} else {
|
|
112
|
+
throw err;
|
|
113
|
+
}
|
|
114
|
+
});
|
|
69
115
|
```
|
|
70
116
|
|
|
71
117
|
Error codes are as follows:
|
|
@@ -97,7 +143,7 @@ const client = new Inconvo({
|
|
|
97
143
|
});
|
|
98
144
|
|
|
99
145
|
// Or, configure per-request:
|
|
100
|
-
await client.conversations.create({ context: { replace: '
|
|
146
|
+
await client.conversations.create({ context: { replace: 'me_test' } }, {
|
|
101
147
|
maxRetries: 5,
|
|
102
148
|
});
|
|
103
149
|
```
|
|
@@ -114,7 +160,7 @@ const client = new Inconvo({
|
|
|
114
160
|
});
|
|
115
161
|
|
|
116
162
|
// Override per-request:
|
|
117
|
-
await client.conversations.create({ context: { replace: '
|
|
163
|
+
await client.conversations.create({ context: { replace: 'me_test' } }, {
|
|
118
164
|
timeout: 5 * 1000,
|
|
119
165
|
});
|
|
120
166
|
```
|
|
@@ -168,12 +214,14 @@ Unlike `.asResponse()` this method consumes the body, returning once it is parse
|
|
|
168
214
|
```ts
|
|
169
215
|
const client = new Inconvo();
|
|
170
216
|
|
|
171
|
-
const response = await client.conversations
|
|
217
|
+
const response = await client.conversations
|
|
218
|
+
.create({ context: { replace: 'me_test' } })
|
|
219
|
+
.asResponse();
|
|
172
220
|
console.log(response.headers.get('X-My-Header'));
|
|
173
221
|
console.log(response.statusText); // access the underlying Response object
|
|
174
222
|
|
|
175
223
|
const { data: conversation, response: raw } = await client.conversations
|
|
176
|
-
.create({ context: { replace: '
|
|
224
|
+
.create({ context: { replace: 'me_test' } })
|
|
177
225
|
.withResponse();
|
|
178
226
|
console.log(raw.headers.get('X-My-Header'));
|
|
179
227
|
console.log(conversation.id);
|
package/client.d.mts
CHANGED
|
@@ -8,7 +8,10 @@ import { type ConversationsCursorParams, ConversationsCursorResponse } from "./c
|
|
|
8
8
|
import * as Uploads from "./core/uploads.mjs";
|
|
9
9
|
import * as API from "./resources/index.mjs";
|
|
10
10
|
import { APIPromise } from "./core/api-promise.mjs";
|
|
11
|
+
import { DatasetDeleteParams, DatasetDeleteResponse, DatasetListParams, DatasetListResponse, DatasetUploadParams, DatasetUploadResponse, Datasets } from "./resources/datasets.mjs";
|
|
12
|
+
import { Agents } from "./resources/agents/agents.mjs";
|
|
11
13
|
import { ConversationCreateParams, ConversationCreateResponse, ConversationListParams, ConversationListResponse, ConversationListResponsesConversationsCursor, Conversations, InconvoConversation } from "./resources/conversations/conversations.mjs";
|
|
14
|
+
import { McpServers } from "./resources/mcp-servers/mcp-servers.mjs";
|
|
12
15
|
import { type Fetch } from "./internal/builtin-types.mjs";
|
|
13
16
|
import { HeadersLike, NullableHeaders } from "./internal/headers.mjs";
|
|
14
17
|
import { FinalRequestOptions, RequestOptions } from "./internal/request-options.mjs";
|
|
@@ -88,7 +91,7 @@ export declare class Inconvo {
|
|
|
88
91
|
baseURL: string;
|
|
89
92
|
maxRetries: number;
|
|
90
93
|
timeout: number;
|
|
91
|
-
logger: Logger
|
|
94
|
+
logger: Logger;
|
|
92
95
|
logLevel: LogLevel | undefined;
|
|
93
96
|
fetchOptions: MergedRequestInit | undefined;
|
|
94
97
|
private fetch;
|
|
@@ -173,11 +176,17 @@ export declare class Inconvo {
|
|
|
173
176
|
static UnprocessableEntityError: typeof Errors.UnprocessableEntityError;
|
|
174
177
|
static toFile: typeof Uploads.toFile;
|
|
175
178
|
conversations: API.Conversations;
|
|
179
|
+
mcpServers: API.McpServers;
|
|
180
|
+
agents: API.Agents;
|
|
181
|
+
datasets: API.Datasets;
|
|
176
182
|
}
|
|
177
183
|
export declare namespace Inconvo {
|
|
178
184
|
export type RequestOptions = Opts.RequestOptions;
|
|
179
185
|
export import ConversationsCursor = Pagination.ConversationsCursor;
|
|
180
186
|
export { type ConversationsCursorParams as ConversationsCursorParams, type ConversationsCursorResponse as ConversationsCursorResponse, };
|
|
181
187
|
export { Conversations as Conversations, type InconvoConversation as InconvoConversation, type ConversationCreateResponse as ConversationCreateResponse, type ConversationListResponse as ConversationListResponse, type ConversationListResponsesConversationsCursor as ConversationListResponsesConversationsCursor, type ConversationCreateParams as ConversationCreateParams, type ConversationListParams as ConversationListParams, };
|
|
188
|
+
export { McpServers as McpServers };
|
|
189
|
+
export { Agents as Agents };
|
|
190
|
+
export { Datasets as Datasets, type DatasetListResponse as DatasetListResponse, type DatasetDeleteResponse as DatasetDeleteResponse, type DatasetUploadResponse as DatasetUploadResponse, type DatasetListParams as DatasetListParams, type DatasetDeleteParams as DatasetDeleteParams, type DatasetUploadParams as DatasetUploadParams, };
|
|
182
191
|
}
|
|
183
192
|
//# sourceMappingURL=client.d.mts.map
|
package/client.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.mts","sourceRoot":"","sources":["src/client.ts"],"names":[],"mappings":"OAEO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAY;OAC3C,KAAK,EAAc,cAAc,EAAE,iBAAiB,EAAE,oBAAoB,EAAE;YAIvE,EAAE,MAAM,EAAE,QAAQ,EAAE;OAKzB,KAAK,IAAI;OAGT,KAAK,MAAM;OACX,KAAK,UAAU;OACf,EAAgB,KAAK,yBAAyB,EAAE,2BAA2B,EAAE;OAC7E,KAAK,OAAO;OACZ,KAAK,GAAG;OACR,EAAE,UAAU,EAAE;OACd,EACL,wBAAwB,EACxB,0BAA0B,EAC1B,sBAAsB,EACtB,wBAAwB,EACxB,4CAA4C,EAC5C,aAAa,EACb,mBAAmB,EACpB;OACM,EA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AE,CAAC;IAE5B,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
package/client.d.ts
CHANGED
|
@@ -8,7 +8,10 @@ import { type ConversationsCursorParams, ConversationsCursorResponse } from "./c
|
|
|
8
8
|
import * as Uploads from "./core/uploads.js";
|
|
9
9
|
import * as API from "./resources/index.js";
|
|
10
10
|
import { APIPromise } from "./core/api-promise.js";
|
|
11
|
+
import { DatasetDeleteParams, DatasetDeleteResponse, DatasetListParams, DatasetListResponse, DatasetUploadParams, DatasetUploadResponse, Datasets } from "./resources/datasets.js";
|
|
12
|
+
import { Agents } from "./resources/agents/agents.js";
|
|
11
13
|
import { ConversationCreateParams, ConversationCreateResponse, ConversationListParams, ConversationListResponse, ConversationListResponsesConversationsCursor, Conversations, InconvoConversation } from "./resources/conversations/conversations.js";
|
|
14
|
+
import { McpServers } from "./resources/mcp-servers/mcp-servers.js";
|
|
12
15
|
import { type Fetch } from "./internal/builtin-types.js";
|
|
13
16
|
import { HeadersLike, NullableHeaders } from "./internal/headers.js";
|
|
14
17
|
import { FinalRequestOptions, RequestOptions } from "./internal/request-options.js";
|
|
@@ -88,7 +91,7 @@ export declare class Inconvo {
|
|
|
88
91
|
baseURL: string;
|
|
89
92
|
maxRetries: number;
|
|
90
93
|
timeout: number;
|
|
91
|
-
logger: Logger
|
|
94
|
+
logger: Logger;
|
|
92
95
|
logLevel: LogLevel | undefined;
|
|
93
96
|
fetchOptions: MergedRequestInit | undefined;
|
|
94
97
|
private fetch;
|
|
@@ -173,11 +176,17 @@ export declare class Inconvo {
|
|
|
173
176
|
static UnprocessableEntityError: typeof Errors.UnprocessableEntityError;
|
|
174
177
|
static toFile: typeof Uploads.toFile;
|
|
175
178
|
conversations: API.Conversations;
|
|
179
|
+
mcpServers: API.McpServers;
|
|
180
|
+
agents: API.Agents;
|
|
181
|
+
datasets: API.Datasets;
|
|
176
182
|
}
|
|
177
183
|
export declare namespace Inconvo {
|
|
178
184
|
export type RequestOptions = Opts.RequestOptions;
|
|
179
185
|
export import ConversationsCursor = Pagination.ConversationsCursor;
|
|
180
186
|
export { type ConversationsCursorParams as ConversationsCursorParams, type ConversationsCursorResponse as ConversationsCursorResponse, };
|
|
181
187
|
export { Conversations as Conversations, type InconvoConversation as InconvoConversation, type ConversationCreateResponse as ConversationCreateResponse, type ConversationListResponse as ConversationListResponse, type ConversationListResponsesConversationsCursor as ConversationListResponsesConversationsCursor, type ConversationCreateParams as ConversationCreateParams, type ConversationListParams as ConversationListParams, };
|
|
188
|
+
export { McpServers as McpServers };
|
|
189
|
+
export { Agents as Agents };
|
|
190
|
+
export { Datasets as Datasets, type DatasetListResponse as DatasetListResponse, type DatasetDeleteResponse as DatasetDeleteResponse, type DatasetUploadResponse as DatasetUploadResponse, type DatasetListParams as DatasetListParams, type DatasetDeleteParams as DatasetDeleteParams, type DatasetUploadParams as DatasetUploadParams, };
|
|
182
191
|
}
|
|
183
192
|
//# sourceMappingURL=client.d.ts.map
|
package/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["src/client.ts"],"names":[],"mappings":"OAEO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAY;OAC3C,KAAK,EAAc,cAAc,EAAE,iBAAiB,EAAE,oBAAoB,EAAE;YAIvE,EAAE,MAAM,EAAE,QAAQ,EAAE;OAKzB,KAAK,IAAI;OAGT,KAAK,MAAM;OACX,KAAK,UAAU;OACf,EAAgB,KAAK,yBAAyB,EAAE,2BAA2B,EAAE;OAC7E,KAAK,OAAO;OACZ,KAAK,GAAG;OACR,EAAE,UAAU,EAAE;O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,IAAI,sBAAsB,GACtD,CAAC;IAEF,OAAO,EAAE,UAAU,IAAI,UAAU,EAAE,CAAC;IAEpC,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,CAAC;IAE5B,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
package/client.js
CHANGED
|
@@ -18,7 +18,10 @@ const Pagination = tslib_1.__importStar(require("./core/pagination.js"));
|
|
|
18
18
|
const Uploads = tslib_1.__importStar(require("./core/uploads.js"));
|
|
19
19
|
const API = tslib_1.__importStar(require("./resources/index.js"));
|
|
20
20
|
const api_promise_1 = require("./core/api-promise.js");
|
|
21
|
+
const datasets_1 = require("./resources/datasets.js");
|
|
22
|
+
const agents_1 = require("./resources/agents/agents.js");
|
|
21
23
|
const conversations_1 = require("./resources/conversations/conversations.js");
|
|
24
|
+
const mcp_servers_1 = require("./resources/mcp-servers/mcp-servers.js");
|
|
22
25
|
const headers_1 = require("./internal/headers.js");
|
|
23
26
|
const env_1 = require("./internal/utils/env.js");
|
|
24
27
|
const log_1 = require("./internal/utils/log.js");
|
|
@@ -43,6 +46,9 @@ class Inconvo {
|
|
|
43
46
|
_Inconvo_instances.add(this);
|
|
44
47
|
_Inconvo_encoder.set(this, void 0);
|
|
45
48
|
this.conversations = new API.Conversations(this);
|
|
49
|
+
this.mcpServers = new API.McpServers(this);
|
|
50
|
+
this.agents = new API.Agents(this);
|
|
51
|
+
this.datasets = new API.Datasets(this);
|
|
46
52
|
if (apiKey === undefined) {
|
|
47
53
|
throw new Errors.InconvoError("The INCONVO_API_KEY environment variable is missing or empty; either provide it, or instantiate the Inconvo client with an apiKey option, like new Inconvo({ apiKey: 'My API Key' }).");
|
|
48
54
|
}
|
|
@@ -183,7 +189,7 @@ class Inconvo {
|
|
|
183
189
|
const controller = new AbortController();
|
|
184
190
|
const response = await this.fetchWithTimeout(url, req, timeout, controller).catch(errors_1.castToError);
|
|
185
191
|
const headersTime = Date.now();
|
|
186
|
-
if (response instanceof Error) {
|
|
192
|
+
if (response instanceof globalThis.Error) {
|
|
187
193
|
const retryMessage = `retrying, ${retriesRemaining} attempts remaining`;
|
|
188
194
|
if (options.signal?.aborted) {
|
|
189
195
|
throw new Errors.APIUserAbortError();
|
|
@@ -413,7 +419,7 @@ class Inconvo {
|
|
|
413
419
|
// Preserve legacy string encoding behavior for now
|
|
414
420
|
headers.values.has('content-type')) ||
|
|
415
421
|
// `Blob` is superset of `File`
|
|
416
|
-
body instanceof Blob ||
|
|
422
|
+
(globalThis.Blob && body instanceof globalThis.Blob) ||
|
|
417
423
|
// `FormData` -> `multipart/form-data`
|
|
418
424
|
body instanceof FormData ||
|
|
419
425
|
// `URLSearchParams` -> `application/x-www-form-urlencoded`
|
|
@@ -453,4 +459,7 @@ Inconvo.PermissionDeniedError = Errors.PermissionDeniedError;
|
|
|
453
459
|
Inconvo.UnprocessableEntityError = Errors.UnprocessableEntityError;
|
|
454
460
|
Inconvo.toFile = Uploads.toFile;
|
|
455
461
|
Inconvo.Conversations = conversations_1.Conversations;
|
|
462
|
+
Inconvo.McpServers = mcp_servers_1.McpServers;
|
|
463
|
+
Inconvo.Agents = agents_1.Agents;
|
|
464
|
+
Inconvo.Datasets = datasets_1.Datasets;
|
|
456
465
|
//# sourceMappingURL=client.js.map
|