@inconvoai/node 0.1.0-alpha.25 → 0.1.0-alpha.26

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.26 (2025-10-23)
4
+
5
+ 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)
6
+
7
+ ### Features
8
+
9
+ * **api:** attempt new version ([4f4ae85](https://github.com/ten-dev/inconvo-node-sdk/commit/4f4ae859033ff552b6a853dd9f56bc99b12e8797))
10
+
3
11
  ## 0.1.0-alpha.25 (2025-10-22)
4
12
 
5
13
  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)
package/README.md CHANGED
@@ -43,7 +43,7 @@ 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: 'me' } };
46
+ const params: Inconvo.ConversationCreateParams = { context: { replace: 'me_test' } };
47
47
  const conversation: Inconvo.ConversationCreateResponse = await client.conversations.create(params);
48
48
  ```
49
49
 
@@ -57,15 +57,17 @@ a subclass of `APIError` will be thrown:
57
57
 
58
58
  <!-- prettier-ignore -->
59
59
  ```ts
60
- const conversation = await client.conversations.create({ context: { replace: 'me' } }).catch(async (err) => {
61
- if (err instanceof Inconvo.APIError) {
62
- console.log(err.status); // 400
63
- console.log(err.name); // BadRequestError
64
- console.log(err.headers); // {server: 'nginx', ...}
65
- } else {
66
- throw err;
67
- }
68
- });
60
+ const conversation = await client.conversations
61
+ .create({ context: { replace: 'me_test' } })
62
+ .catch(async (err) => {
63
+ if (err instanceof Inconvo.APIError) {
64
+ console.log(err.status); // 400
65
+ console.log(err.name); // BadRequestError
66
+ console.log(err.headers); // {server: 'nginx', ...}
67
+ } else {
68
+ throw err;
69
+ }
70
+ });
69
71
  ```
70
72
 
71
73
  Error codes are as follows:
@@ -97,7 +99,7 @@ const client = new Inconvo({
97
99
  });
98
100
 
99
101
  // Or, configure per-request:
100
- await client.conversations.create({ context: { replace: 'me' } }, {
102
+ await client.conversations.create({ context: { replace: 'me_test' } }, {
101
103
  maxRetries: 5,
102
104
  });
103
105
  ```
@@ -114,7 +116,7 @@ const client = new Inconvo({
114
116
  });
115
117
 
116
118
  // Override per-request:
117
- await client.conversations.create({ context: { replace: 'me' } }, {
119
+ await client.conversations.create({ context: { replace: 'me_test' } }, {
118
120
  timeout: 5 * 1000,
119
121
  });
120
122
  ```
@@ -168,12 +170,12 @@ Unlike `.asResponse()` this method consumes the body, returning once it is parse
168
170
  ```ts
169
171
  const client = new Inconvo();
170
172
 
171
- const response = await client.conversations.create({ context: { replace: 'me' } }).asResponse();
173
+ const response = await client.conversations.create({ context: { replace: 'me_test' } }).asResponse();
172
174
  console.log(response.headers.get('X-My-Header'));
173
175
  console.log(response.statusText); // access the underlying Response object
174
176
 
175
177
  const { data: conversation, response: raw } = await client.conversations
176
- .create({ context: { replace: 'me' } })
178
+ .create({ context: { replace: 'me_test' } })
177
179
  .withResponse();
178
180
  console.log(raw.headers.get('X-My-Header'));
179
181
  console.log(conversation.id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inconvoai/node",
3
- "version": "0.1.0-alpha.25",
3
+ "version": "0.1.0-alpha.26",
4
4
  "description": "The official TypeScript library for the Inconvo API",
5
5
  "author": "Inconvo <support@inconvo.ai>",
6
6
  "types": "./index.d.ts",
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.1.0-alpha.25'; // x-release-please-version
1
+ export const VERSION = '0.1.0-alpha.26'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.1.0-alpha.25";
1
+ export declare const VERSION = "0.1.0-alpha.26";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.1.0-alpha.25";
1
+ export declare const VERSION = "0.1.0-alpha.26";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.1.0-alpha.25'; // x-release-please-version
4
+ exports.VERSION = '0.1.0-alpha.26'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.1.0-alpha.25'; // x-release-please-version
1
+ export const VERSION = '0.1.0-alpha.26'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map