@lorikeetai/node-sdk 2.1.0 → 2.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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.2.0 (2026-02-25)
4
+
5
+ Full Changelog: [v2.1.0...v2.2.0](https://github.com/optechai/node-sdk/compare/v2.1.0...v2.2.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** manual updates ([fb6f86a](https://github.com/optechai/node-sdk/commit/fb6f86aeaa9ef182297c3cff0180b50c6a3a8ce7))
10
+
3
11
  ## 2.1.0 (2026-02-25)
4
12
 
5
13
  Full Changelog: [v0.1.0...v2.1.0](https://github.com/optechai/node-sdk/compare/v0.1.0...v2.1.0)
package/README.md CHANGED
@@ -24,10 +24,11 @@ import Lorikeet from '@lorikeetai/node-sdk';
24
24
 
25
25
  const client = new Lorikeet({
26
26
  clientID: process.env['LORIKEET_CLIENT_ID'], // This is the default and can be omitted
27
+ clientSecret: process.env['LORIKEET_CLIENT_SECRET'], // This is the default and can be omitted
27
28
  });
28
29
 
29
30
  const response = await client.conversation.chat.start({
30
- customerId: 'blah',
31
+ customerId: 'customerId',
31
32
  publicKey: 'publicKey',
32
33
  });
33
34
 
@@ -44,10 +45,11 @@ import Lorikeet from '@lorikeetai/node-sdk';
44
45
 
45
46
  const client = new Lorikeet({
46
47
  clientID: process.env['LORIKEET_CLIENT_ID'], // This is the default and can be omitted
48
+ clientSecret: process.env['LORIKEET_CLIENT_SECRET'], // This is the default and can be omitted
47
49
  });
48
50
 
49
51
  const params: Lorikeet.Conversation.ChatStartParams = {
50
- customerId: 'blah',
52
+ customerId: 'customerId',
51
53
  publicKey: 'publicKey',
52
54
  };
53
55
  const response: Lorikeet.Conversation.ChatStartResponse = await client.conversation.chat.start(
@@ -66,7 +68,7 @@ a subclass of `APIError` will be thrown:
66
68
  <!-- prettier-ignore -->
67
69
  ```ts
68
70
  const response = await client.conversation.chat
69
- .start({ customerId: 'blah', publicKey: 'publicKey' })
71
+ .start({ customerId: 'customerId', publicKey: 'publicKey' })
70
72
  .catch(async (err) => {
71
73
  if (err instanceof Lorikeet.APIError) {
72
74
  console.log(err.status); // 400
@@ -107,7 +109,7 @@ const client = new Lorikeet({
107
109
  });
108
110
 
109
111
  // Or, configure per-request:
110
- await client.conversation.chat.start({ customerId: 'blah', publicKey: 'publicKey' }, {
112
+ await client.conversation.chat.start({ customerId: 'customerId', publicKey: 'publicKey' }, {
111
113
  maxRetries: 5,
112
114
  });
113
115
  ```
@@ -124,7 +126,7 @@ const client = new Lorikeet({
124
126
  });
125
127
 
126
128
  // Override per-request:
127
- await client.conversation.chat.start({ customerId: 'blah', publicKey: 'publicKey' }, {
129
+ await client.conversation.chat.start({ customerId: 'customerId', publicKey: 'publicKey' }, {
128
130
  timeout: 5 * 1000,
129
131
  });
130
132
  ```
@@ -148,13 +150,13 @@ Unlike `.asResponse()` this method consumes the body, returning once it is parse
148
150
  const client = new Lorikeet();
149
151
 
150
152
  const response = await client.conversation.chat
151
- .start({ customerId: 'blah', publicKey: 'publicKey' })
153
+ .start({ customerId: 'customerId', publicKey: 'publicKey' })
152
154
  .asResponse();
153
155
  console.log(response.headers.get('X-My-Header'));
154
156
  console.log(response.statusText); // access the underlying Response object
155
157
 
156
158
  const { data: response, response: raw } = await client.conversation.chat
157
- .start({ customerId: 'blah', publicKey: 'publicKey' })
159
+ .start({ customerId: 'customerId', publicKey: 'publicKey' })
158
160
  .withResponse();
159
161
  console.log(raw.headers.get('X-My-Header'));
160
162
  console.log(response.conversationId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lorikeetai/node-sdk",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "description": "The official TypeScript library for the Lorikeet API",
5
5
  "author": "Lorikeet <support@lorikeetcx.ai>",
6
6
  "types": "./index.d.ts",
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '2.1.0'; // x-release-please-version
1
+ export const VERSION = '2.2.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "2.1.0";
1
+ export declare const VERSION = "2.2.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "2.1.0";
1
+ export declare const VERSION = "2.2.0";
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 = '2.1.0'; // x-release-please-version
4
+ exports.VERSION = '2.2.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '2.1.0'; // x-release-please-version
1
+ export const VERSION = '2.2.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map