@lorikeetai/node-sdk 0.6.0 → 0.6.2
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 +21 -0
- package/index.d.mts +2 -2
- package/index.d.ts +2 -2
- package/index.d.ts.map +1 -1
- package/index.js.map +1 -1
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/conversation/chat.d.ts +5 -0
- package/resources/conversation/chat.d.ts.map +1 -1
- package/resources/conversation/chat.js +1 -1
- package/resources/conversation/chat.js.map +1 -1
- package/resources/conversation/chat.mjs +1 -1
- package/resources/conversation/chat.mjs.map +1 -1
- package/resources/conversation/email.d.ts +5 -0
- package/resources/conversation/email.d.ts.map +1 -1
- package/resources/customer.d.ts +91 -26
- package/resources/customer.d.ts.map +1 -1
- package/resources/customer.js +3 -0
- package/resources/customer.js.map +1 -1
- package/resources/customer.mjs +3 -0
- package/resources/customer.mjs.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/src/index.ts +4 -0
- package/src/resources/conversation/chat.ts +7 -1
- package/src/resources/conversation/email.ts +6 -0
- package/src/resources/customer.ts +114 -26
- package/src/resources/index.ts +2 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.6.2 (2024-12-09)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.6.1...v0.6.2](https://github.com/optechai/node-sdk/compare/v0.6.1...v0.6.2)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([#109](https://github.com/optechai/node-sdk/issues/109)) ([5f2835c](https://github.com/optechai/node-sdk/commit/5f2835c1fc9583190e913b7d9e91685d059e406b))
|
|
10
|
+
|
|
11
|
+
## 0.6.1 (2024-12-08)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v0.6.0...v0.6.1](https://github.com/optechai/node-sdk/compare/v0.6.0...v0.6.1)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** add customer update endpoint ([#107](https://github.com/optechai/node-sdk/issues/107)) ([e7d6625](https://github.com/optechai/node-sdk/commit/e7d66251001a5dd4e175b9b08bf62ecd0b6bdd8d))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* pass through timeout options on requests ([329f35a](https://github.com/optechai/node-sdk/commit/329f35a5a0dbcefdbf9a23e5343fa9685fb49d8a))
|
|
23
|
+
|
|
3
24
|
## 0.6.0 (2024-12-03)
|
|
4
25
|
|
|
5
26
|
Full Changelog: [v0.5.0...v0.6.0](https://github.com/optechai/node-sdk/compare/v0.5.0...v0.6.0)
|
package/index.d.mts
CHANGED
|
@@ -3,7 +3,7 @@ import * as Core from "./core.js";
|
|
|
3
3
|
import * as Errors from "./error.js";
|
|
4
4
|
import * as Uploads from "./uploads.js";
|
|
5
5
|
import * as API from "./resources/index.js";
|
|
6
|
-
import { Customer, CustomerCreateParams, CustomerCreateResponse, CustomerGetResponse, CustomerTokenParams, CustomerTokenResponse } from "./resources/customer.js";
|
|
6
|
+
import { Customer, CustomerCreateParams, CustomerCreateResponse, CustomerGetResponse, CustomerTokenParams, CustomerTokenResponse, CustomerUpdateParams, CustomerUpdateResponse } from "./resources/customer.js";
|
|
7
7
|
import { Ingest, IngestTestParams } from "./resources/ingest.js";
|
|
8
8
|
import { Workflow } from "./resources/workflow.js";
|
|
9
9
|
import { Conversation } from "./resources/conversation/conversation.js";
|
|
@@ -115,7 +115,7 @@ export declare class Lorikeet extends Core.APIClient {
|
|
|
115
115
|
export declare namespace Lorikeet {
|
|
116
116
|
export type RequestOptions = Core.RequestOptions;
|
|
117
117
|
export { Conversation as Conversation };
|
|
118
|
-
export { Customer as Customer, type CustomerCreateResponse as CustomerCreateResponse, type CustomerGetResponse as CustomerGetResponse, type CustomerTokenResponse as CustomerTokenResponse, type CustomerCreateParams as CustomerCreateParams, type CustomerTokenParams as CustomerTokenParams, };
|
|
118
|
+
export { Customer as Customer, type CustomerCreateResponse as CustomerCreateResponse, type CustomerUpdateResponse as CustomerUpdateResponse, type CustomerGetResponse as CustomerGetResponse, type CustomerTokenResponse as CustomerTokenResponse, type CustomerCreateParams as CustomerCreateParams, type CustomerUpdateParams as CustomerUpdateParams, type CustomerTokenParams as CustomerTokenParams, };
|
|
119
119
|
export { Workflow as Workflow };
|
|
120
120
|
export { Ingest as Ingest, type IngestTestParams as IngestTestParams };
|
|
121
121
|
}
|
package/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as Core from "./core.js";
|
|
|
3
3
|
import * as Errors from "./error.js";
|
|
4
4
|
import * as Uploads from "./uploads.js";
|
|
5
5
|
import * as API from "./resources/index.js";
|
|
6
|
-
import { Customer, CustomerCreateParams, CustomerCreateResponse, CustomerGetResponse, CustomerTokenParams, CustomerTokenResponse } from "./resources/customer.js";
|
|
6
|
+
import { Customer, CustomerCreateParams, CustomerCreateResponse, CustomerGetResponse, CustomerTokenParams, CustomerTokenResponse, CustomerUpdateParams, CustomerUpdateResponse } from "./resources/customer.js";
|
|
7
7
|
import { Ingest, IngestTestParams } from "./resources/ingest.js";
|
|
8
8
|
import { Workflow } from "./resources/workflow.js";
|
|
9
9
|
import { Conversation } from "./resources/conversation/conversation.js";
|
|
@@ -115,7 +115,7 @@ export declare class Lorikeet extends Core.APIClient {
|
|
|
115
115
|
export declare namespace Lorikeet {
|
|
116
116
|
export type RequestOptions = Core.RequestOptions;
|
|
117
117
|
export { Conversation as Conversation };
|
|
118
|
-
export { Customer as Customer, type CustomerCreateResponse as CustomerCreateResponse, type CustomerGetResponse as CustomerGetResponse, type CustomerTokenResponse as CustomerTokenResponse, type CustomerCreateParams as CustomerCreateParams, type CustomerTokenParams as CustomerTokenParams, };
|
|
118
|
+
export { Customer as Customer, type CustomerCreateResponse as CustomerCreateResponse, type CustomerUpdateResponse as CustomerUpdateResponse, type CustomerGetResponse as CustomerGetResponse, type CustomerTokenResponse as CustomerTokenResponse, type CustomerCreateParams as CustomerCreateParams, type CustomerUpdateParams as CustomerUpdateParams, type CustomerTokenParams as CustomerTokenParams, };
|
|
119
119
|
export { Workflow as Workflow };
|
|
120
120
|
export { Ingest as Ingest, type IngestTestParams as IngestTestParams };
|
|
121
121
|
}
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,SAAS,CAAC;AAClC,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,GAAG,MAAM,mBAAmB,CAAC;AACzC,OAAO,EACL,QAAQ,EACR,oBAAoB,EACpB,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,SAAS,CAAC;AAClC,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,GAAG,MAAM,mBAAmB,CAAC;AACzC,OAAO,EACL,QAAQ,EACR,oBAAoB,EACpB,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACvB,MAAM,sBAAsB,CAAC;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AI,QAAQ,EAAE,CAAC;IAEhC,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;CACxE;AAED,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,EACL,aAAa,EACb,QAAQ,EACR,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,GACzB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAC;AAEhF,eAAe,QAAQ,CAAC"}
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGtF,gDAA+B;AAC/B,mDAAkC;AAClC,sDAAqC;AACrC,0DAAyC;AACzC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGtF,gDAA+B;AAC/B,mDAAkC;AAClC,sDAAqC;AACrC,0DAAyC;AACzC,sDAS8B;AAC9B,kDAA8D;AAC9D,sDAAgD;AAChD,2EAAqE;AACrE,oEAA6D;AAsE7D;;GAEG;AACH,MAAa,QAAS,SAAQ,IAAI,CAAC,SAAS;IAM1C;;;;;;;;;;;;OAYG;IACH,YAAY,EACV,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,mBAAmB,CAAC,EAC3C,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,EAC7C,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,wBAAwB,CAAC,EACrD,GAAG,IAAI,KACU,EAAE;QACnB,IAAI,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M,CAAC,qBAAqB,AAA/B,CAAgC;AACrD,iCAAwB,GAAG,MAAM,CAAC,wBAAwB,AAAlC,CAAmC;AAE3D,eAAM,GAAG,OAAO,CAAC,MAAM,AAAjB,CAAkB;AACxB,qBAAY,GAAG,OAAO,CAAC,YAAY,AAAvB,CAAwB;AAG7C,QAAQ,CAAC,YAAY,GAAG,2BAAY,CAAC;AACrC,QAAQ,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AAC7B,QAAQ,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AAC7B,QAAQ,CAAC,MAAM,GAAG,eAAM,CAAC;AAsBzB,wCAAiD;AAAxC,iGAAA,MAAM,OAAA;AAAE,uGAAA,YAAY,OAAA;AAC7B,oCAciB;AAbf,sGAAA,aAAa,OAAA;AACb,iGAAA,QAAQ,OAAA;AACR,2GAAA,kBAAkB,OAAA;AAClB,kHAAA,yBAAyB,OAAA;AACzB,0GAAA,iBAAiB,OAAA;AACjB,sGAAA,aAAa,OAAA;AACb,sGAAA,aAAa,OAAA;AACb,uGAAA,cAAc,OAAA;AACd,wGAAA,eAAe,OAAA;AACf,4GAAA,mBAAmB,OAAA;AACnB,4GAAA,mBAAmB,OAAA;AACnB,8GAAA,qBAAqB,OAAA;AACrB,iHAAA,wBAAwB,OAAA;AAG1B,kFAAgF;AAAvE,uHAAA,iBAAiB,OAAA;AAE1B,kBAAe,QAAQ,CAAC"}
|
package/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,KAAK,IAAI;OACT,KAAK,MAAM;OACX,KAAK,OAAO;OACZ,KAAK,GAAG;OACR,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,KAAK,IAAI;OACT,KAAK,MAAM;OACX,KAAK,OAAO;OACZ,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AC,yBAAyB,AAAnC,CAAoC;AAC7D,0BAAiB,GAAG,MAAM,CAAC,iBAAiB,AAA3B,CAA4B;AAC7C,sBAAa,GAAG,MAAM,CAAC,aAAa,AAAvB,CAAwB;AACrC,sBAAa,GAAG,MAAM,CAAC,aAAa,AAAvB,CAAwB;AACrC,uBAAc,GAAG,MAAM,CAAC,cAAc,AAAxB,CAAyB;AACvC,wBAAe,GAAG,MAAM,CAAC,eAAe,AAAzB,CAA0B;AACzC,4BAAmB,GAAG,MAAM,CAAC,mBAAmB,AAA7B,CAA8B;AACjD,4BAAmB,GAAG,MAAM,CAAC,mBAAmB,AAA7B,CAA8B;AACjD,8BAAqB,GAAG,MAAM,CAAC,qBAAqB,AAA/B,CAAgC;AACrD,iCAAwB,GAAG,MAAM,CAAC,wBAAwB,AAAlC,CAAmC;AAE3D,eAAM,GAAG,OAAO,CAAC,MAAM,AAAjB,CAAkB;AACxB,qBAAY,GAAG,OAAO,CAAC,YAAY,AAAvB,CAAwB;AAG7C,QAAQ,CAAC,YAAY,GAAG,YAAY,CAAC;AACrC,QAAQ,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC7B,QAAQ,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC7B,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC;OAsBlB,EAAE,MAAM,EAAE,YAAY,EAAE;OACxB,EACL,aAAa,EACb,QAAQ,EACR,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,GACzB;OAEM,EAAE,iBAAiB,EAAE,MAAM,6CAA6C;AAE/E,eAAe,QAAQ,CAAC"}
|
package/package.json
CHANGED
|
@@ -158,6 +158,11 @@ export interface ChatGenerateParams {
|
|
|
158
158
|
* The message to be sent to the user. This endpoint supports markdown.
|
|
159
159
|
*/
|
|
160
160
|
message: string;
|
|
161
|
+
/**
|
|
162
|
+
* Any additional customer information, that has changed in the course of the
|
|
163
|
+
* conversation.
|
|
164
|
+
*/
|
|
165
|
+
customer?: unknown;
|
|
161
166
|
}
|
|
162
167
|
export interface ChatGetParams {
|
|
163
168
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../src/resources/conversation/chat.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAGnC,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC;IAIxG;;;;OAIG;IACH,GAAG,CAAC,KAAK,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC;IAI1F;;;;;;;;OAQG;IACH,KAAK,CAAC,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC;IAI/F;;;;;;OAMG;IACH,OAAO,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC;IAMlG;;;;OAIG;IACH,IAAI,CAAC,KAAK,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC;CAU5F;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,iBAAiB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C;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
|
@@ -59,7 +59,7 @@ class Chat extends resource_1.APIResource {
|
|
|
59
59
|
*/
|
|
60
60
|
poll(query, options) {
|
|
61
61
|
return (0, poll_until_1.pollUntil)(() => this._client.get('/v1/conversation/chat/message', { query, ...options }), {
|
|
62
|
-
timeout: 180000,
|
|
62
|
+
timeout: options?.timeout || 180000,
|
|
63
63
|
interval: 5000,
|
|
64
64
|
condition: (conversation) => conversation.latestMessageType === 'BOT_RESPONSE',
|
|
65
65
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.js","sourceRoot":"","sources":["../../src/resources/conversation/chat.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAE7C,oEAAgE;AAEhE,MAAa,IAAK,SAAQ,sBAAW;IACnC;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,IAAwB,EAAE,OAA6B;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,I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AAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;IAED;;;;OAIG;IACH,GAAG,CAAC,KAAoB,EAAE,OAA6B;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,+BAA+B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,IAAqB,EAAE,OAA6B;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;IAED;;;;;;OAMG;IACH,OAAO,CAAC,IAAwB,EAAE,OAA6B;QAC7D,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CACpD,IAAI,CAAC,IAAI,CAAC,EAAE,cAAc,EAAE,QAAQ,CAAC,cAAc,EAAE,EAAE,OAAO,CAAC,CAC5B,CAAC;IACxC,CAAC;IAED;;;;OAIG;IACH,IAAI,CAAC,KAAoB,EAAE,OAA6B;QACtD,OAAO,IAAA,sBAAS,EACd,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,+BAA+B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,EAC9E;YACE,OAAO,EAAE,OAAO,EAAE,OAAO,IAAI,MAAO;YACpC,QAAQ,EAAE,IAAK;YACf,SAAS,EAAE,CAAC,YAAY,EAAE,EAAE,CAAC,YAAY,CAAC,iBAAiB,KAAK,cAAc;SAC/E,CACkC,CAAC;IACxC,CAAC;CACF;AArED,oBAqEC"}
|
|
@@ -56,7 +56,7 @@ export class Chat extends APIResource {
|
|
|
56
56
|
*/
|
|
57
57
|
poll(query, options) {
|
|
58
58
|
return pollUntil(() => this._client.get('/v1/conversation/chat/message', { query, ...options }), {
|
|
59
|
-
timeout: 180000,
|
|
59
|
+
timeout: options?.timeout || 180000,
|
|
60
60
|
interval: 5000,
|
|
61
61
|
condition: (conversation) => conversation.latestMessageType === 'BOT_RESPONSE',
|
|
62
62
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.mjs","sourceRoot":"","sources":["../../src/resources/conversation/chat.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,SAAS,EAAE,MAAM,qCAAqC;AAE/D,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,IAAwB,EAAE,OAA6B;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,+BAA+B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;IAED;;;;OAIG;IACH,GAAG,CAAC,KAAoB,EAAE,OAA6B;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,+BAA+B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,IAAqB,EAAE,OAA6B;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;IAED;;;;;;OAMG;IACH,OAAO,CAAC,IAAwB,EAAE,OAA6B;QAC7D,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CACpD,IAAI,CAAC,IAAI,CAAC,EAAE,cAAc,EAAE,QAAQ,CAAC,cAAc,EAAE,EAAE,OAAO,CAAC,CAC5B,CAAC;IACxC,CAAC;IAED;;;;OAIG;IACH,IAAI,CAAC,KAAoB,EAAE,OAA6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AA6B;QACtD,OAAO,SAAS,CACd,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,+BAA+B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,EAC9E;YACE,OAAO,EAAE,OAAO,EAAE,OAAO,IAAI,MAAO;YACpC,QAAQ,EAAE,IAAK;YACf,SAAS,EAAE,CAAC,YAAY,EAAE,EAAE,CAAC,YAAY,CAAC,iBAAiB,KAAK,cAAc;SAC/E,CACkC,CAAC;IACxC,CAAC;CACF"}
|
|
@@ -116,6 +116,11 @@ export interface EmailGenerateParams {
|
|
|
116
116
|
* The message to be sent to the user. This endpoint supports markdown.
|
|
117
117
|
*/
|
|
118
118
|
message: string;
|
|
119
|
+
/**
|
|
120
|
+
* Any additional customer information, that has changed in the course of the
|
|
121
|
+
* conversation.
|
|
122
|
+
*/
|
|
123
|
+
customer?: unknown;
|
|
119
124
|
}
|
|
120
125
|
export interface EmailGetParams {
|
|
121
126
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email.d.ts","sourceRoot":"","sources":["../../src/resources/conversation/email.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,KAAM,SAAQ,WAAW;IACpC,QAAQ,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,qBAAqB,CAAC;IAI1G,GAAG,CAAC,KAAK,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,gBAAgB,CAAC;IAI5F,KAAK,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,kBAAkB,CAAC;CAGlG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Ac,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
package/resources/customer.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { APIResource } from "../resource.js";
|
|
|
2
2
|
import * as Core from "../core.js";
|
|
3
3
|
export declare class Customer extends APIResource {
|
|
4
4
|
create(body: CustomerCreateParams, options?: Core.RequestOptions): Core.APIPromise<CustomerCreateResponse>;
|
|
5
|
+
update(id: string, body: CustomerUpdateParams, options?: Core.RequestOptions): Core.APIPromise<CustomerUpdateResponse>;
|
|
5
6
|
get(id: string, options?: Core.RequestOptions): Core.APIPromise<CustomerGetResponse>;
|
|
6
7
|
token(body: CustomerTokenParams, options?: Core.RequestOptions): Core.APIPromise<string>;
|
|
7
8
|
}
|
|
@@ -14,32 +15,68 @@ export interface CustomerCreateResponse {
|
|
|
14
15
|
* The timestamp of the when the customer was created in our system
|
|
15
16
|
*/
|
|
16
17
|
createdAt: string;
|
|
18
|
+
/**
|
|
19
|
+
* The display name of the customer
|
|
20
|
+
*/
|
|
21
|
+
displayName?: string;
|
|
17
22
|
/**
|
|
18
23
|
* The email of the customer
|
|
19
24
|
*/
|
|
20
|
-
email
|
|
25
|
+
email?: string;
|
|
21
26
|
/**
|
|
22
27
|
* The first name of the customer
|
|
23
28
|
*/
|
|
24
|
-
firstName
|
|
29
|
+
firstName?: string;
|
|
25
30
|
/**
|
|
26
31
|
* The last name of the customer
|
|
27
32
|
*/
|
|
28
|
-
lastName
|
|
33
|
+
lastName?: string;
|
|
29
34
|
/**
|
|
30
35
|
* The id of the customer in the ticketing system. For the SDK this needs to be
|
|
31
36
|
* stable and unique
|
|
32
37
|
*/
|
|
33
|
-
remoteId
|
|
38
|
+
remoteId?: string;
|
|
34
39
|
/**
|
|
35
40
|
* The id of the customer in your own primary database or a unique identifier, for
|
|
36
41
|
* example a cookie
|
|
37
42
|
*/
|
|
38
|
-
subscriberCustomerId
|
|
43
|
+
subscriberCustomerId?: string;
|
|
44
|
+
}
|
|
45
|
+
export interface CustomerUpdateResponse {
|
|
46
|
+
/**
|
|
47
|
+
* The id of the customer in the subscriber system
|
|
48
|
+
*/
|
|
49
|
+
id: string;
|
|
50
|
+
/**
|
|
51
|
+
* The timestamp of the when the customer was created in our system
|
|
52
|
+
*/
|
|
53
|
+
createdAt: string;
|
|
39
54
|
/**
|
|
40
55
|
* The display name of the customer
|
|
41
56
|
*/
|
|
42
57
|
displayName?: string;
|
|
58
|
+
/**
|
|
59
|
+
* The email of the customer
|
|
60
|
+
*/
|
|
61
|
+
email?: string;
|
|
62
|
+
/**
|
|
63
|
+
* The first name of the customer
|
|
64
|
+
*/
|
|
65
|
+
firstName?: string;
|
|
66
|
+
/**
|
|
67
|
+
* The last name of the customer
|
|
68
|
+
*/
|
|
69
|
+
lastName?: string;
|
|
70
|
+
/**
|
|
71
|
+
* The id of the customer in the ticketing system. For the SDK this needs to be
|
|
72
|
+
* stable and unique
|
|
73
|
+
*/
|
|
74
|
+
remoteId?: string;
|
|
75
|
+
/**
|
|
76
|
+
* The id of the customer in your own primary database or a unique identifier, for
|
|
77
|
+
* example a cookie
|
|
78
|
+
*/
|
|
79
|
+
subscriberCustomerId?: string;
|
|
43
80
|
}
|
|
44
81
|
export interface CustomerGetResponse {
|
|
45
82
|
/**
|
|
@@ -50,91 +87,119 @@ export interface CustomerGetResponse {
|
|
|
50
87
|
* The timestamp of the when the customer was created in our system
|
|
51
88
|
*/
|
|
52
89
|
createdAt: string;
|
|
90
|
+
/**
|
|
91
|
+
* The display name of the customer
|
|
92
|
+
*/
|
|
93
|
+
displayName?: string;
|
|
53
94
|
/**
|
|
54
95
|
* The email of the customer
|
|
55
96
|
*/
|
|
56
|
-
email
|
|
97
|
+
email?: string;
|
|
57
98
|
/**
|
|
58
99
|
* The first name of the customer
|
|
59
100
|
*/
|
|
60
|
-
firstName
|
|
101
|
+
firstName?: string;
|
|
61
102
|
/**
|
|
62
103
|
* The last name of the customer
|
|
63
104
|
*/
|
|
64
|
-
lastName
|
|
105
|
+
lastName?: string;
|
|
65
106
|
/**
|
|
66
107
|
* The id of the customer in the ticketing system. For the SDK this needs to be
|
|
67
108
|
* stable and unique
|
|
68
109
|
*/
|
|
69
|
-
remoteId
|
|
110
|
+
remoteId?: string;
|
|
70
111
|
/**
|
|
71
112
|
* The id of the customer in your own primary database or a unique identifier, for
|
|
72
113
|
* example a cookie
|
|
73
114
|
*/
|
|
74
|
-
subscriberCustomerId
|
|
115
|
+
subscriberCustomerId?: string;
|
|
116
|
+
}
|
|
117
|
+
export type CustomerTokenResponse = string;
|
|
118
|
+
export interface CustomerCreateParams {
|
|
75
119
|
/**
|
|
76
120
|
* The display name of the customer
|
|
77
121
|
*/
|
|
78
122
|
displayName?: string;
|
|
79
|
-
}
|
|
80
|
-
export type CustomerTokenResponse = string;
|
|
81
|
-
export interface CustomerCreateParams {
|
|
82
123
|
/**
|
|
83
124
|
* The email of the customer
|
|
84
125
|
*/
|
|
85
|
-
email
|
|
126
|
+
email?: string;
|
|
86
127
|
/**
|
|
87
128
|
* The first name of the customer
|
|
88
129
|
*/
|
|
89
|
-
firstName
|
|
130
|
+
firstName?: string;
|
|
90
131
|
/**
|
|
91
132
|
* The last name of the customer
|
|
92
133
|
*/
|
|
93
|
-
lastName
|
|
134
|
+
lastName?: string;
|
|
94
135
|
/**
|
|
95
136
|
* The id of the customer in the ticketing system. For the SDK this needs to be
|
|
96
137
|
* stable and unique
|
|
97
138
|
*/
|
|
98
|
-
remoteId
|
|
139
|
+
remoteId?: string;
|
|
99
140
|
/**
|
|
100
141
|
* The id of the customer in your own primary database or a unique identifier, for
|
|
101
142
|
* example a cookie
|
|
102
143
|
*/
|
|
103
|
-
subscriberCustomerId
|
|
144
|
+
subscriberCustomerId?: string;
|
|
145
|
+
}
|
|
146
|
+
export interface CustomerUpdateParams {
|
|
104
147
|
/**
|
|
105
148
|
* The display name of the customer
|
|
106
149
|
*/
|
|
107
150
|
displayName?: string;
|
|
108
|
-
}
|
|
109
|
-
export interface CustomerTokenParams {
|
|
110
151
|
/**
|
|
111
152
|
* The email of the customer
|
|
112
153
|
*/
|
|
113
|
-
email
|
|
154
|
+
email?: string;
|
|
114
155
|
/**
|
|
115
156
|
* The first name of the customer
|
|
116
157
|
*/
|
|
117
|
-
firstName
|
|
158
|
+
firstName?: string;
|
|
118
159
|
/**
|
|
119
160
|
* The last name of the customer
|
|
120
161
|
*/
|
|
121
|
-
lastName
|
|
162
|
+
lastName?: string;
|
|
122
163
|
/**
|
|
123
164
|
* The id of the customer in the ticketing system. For the SDK this needs to be
|
|
124
165
|
* stable and unique
|
|
125
166
|
*/
|
|
126
|
-
remoteId
|
|
167
|
+
remoteId?: string;
|
|
127
168
|
/**
|
|
128
169
|
* The id of the customer in your own primary database or a unique identifier, for
|
|
129
170
|
* example a cookie
|
|
130
171
|
*/
|
|
131
|
-
subscriberCustomerId
|
|
172
|
+
subscriberCustomerId?: string;
|
|
173
|
+
}
|
|
174
|
+
export interface CustomerTokenParams {
|
|
132
175
|
/**
|
|
133
176
|
* The display name of the customer
|
|
134
177
|
*/
|
|
135
178
|
displayName?: string;
|
|
179
|
+
/**
|
|
180
|
+
* The email of the customer
|
|
181
|
+
*/
|
|
182
|
+
email?: string;
|
|
183
|
+
/**
|
|
184
|
+
* The first name of the customer
|
|
185
|
+
*/
|
|
186
|
+
firstName?: string;
|
|
187
|
+
/**
|
|
188
|
+
* The last name of the customer
|
|
189
|
+
*/
|
|
190
|
+
lastName?: string;
|
|
191
|
+
/**
|
|
192
|
+
* The id of the customer in the ticketing system. For the SDK this needs to be
|
|
193
|
+
* stable and unique
|
|
194
|
+
*/
|
|
195
|
+
remoteId?: string;
|
|
196
|
+
/**
|
|
197
|
+
* The id of the customer in your own primary database or a unique identifier, for
|
|
198
|
+
* example a cookie
|
|
199
|
+
*/
|
|
200
|
+
subscriberCustomerId?: string;
|
|
136
201
|
}
|
|
137
202
|
export declare namespace Customer {
|
|
138
|
-
export { type CustomerCreateResponse as CustomerCreateResponse, type CustomerGetResponse as CustomerGetResponse, type CustomerTokenResponse as CustomerTokenResponse, type CustomerCreateParams as CustomerCreateParams, type CustomerTokenParams as CustomerTokenParams, };
|
|
203
|
+
export { type CustomerCreateResponse as CustomerCreateResponse, type CustomerUpdateResponse as CustomerUpdateResponse, type CustomerGetResponse as CustomerGetResponse, type CustomerTokenResponse as CustomerTokenResponse, type CustomerCreateParams as CustomerCreateParams, type CustomerUpdateParams as CustomerUpdateParams, type CustomerTokenParams as CustomerTokenParams, };
|
|
139
204
|
}
|
|
140
205
|
//# sourceMappingURL=customer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer.d.ts","sourceRoot":"","sources":["../src/resources/customer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,QAAS,SAAQ,WAAW;IACvC,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,sBAAsB,CAAC;IAI1G,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,mB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7
7
|
create(body, options) {
|
|
8
8
|
return this._client.post('/v1/customer', { body, ...options });
|
|
9
9
|
}
|
|
10
|
+
update(id, body, options) {
|
|
11
|
+
return this._client.put(`/v1/customer/${id}`, { body, ...options });
|
|
12
|
+
}
|
|
10
13
|
get(id, options) {
|
|
11
14
|
return this._client.get(`/v1/customer/${id}`, options);
|
|
12
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer.js","sourceRoot":"","sources":["../src/resources/customer.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAG1C,MAAa,QAAS,SAAQ,sBAAW;IACvC,MAAM,CAAC,IAA0B,EAAE,OAA6B;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED,GAAG,CAAC,EAAU,EAAE,OAA6B;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED,KAAK,CAAC,IAAyB,EAAE,OAA6B;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE;YAC7C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,kBAAkB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"customer.js","sourceRoot":"","sources":["../src/resources/customer.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAG1C,MAAa,QAAS,SAAQ,sBAAW;IACvC,MAAM,CAAC,IAA0B,EAAE,OAA6B;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED,MAAM,CACJ,EAAU,EACV,IAA0B,EAC1B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED,GAAG,CAAC,EAAU,EAAE,OAA6B;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED,KAAK,CAAC,IAAyB,EAAE,OAA6B;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE;YAC7C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,kBAAkB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAxBD,4BAwBC"}
|
package/resources/customer.mjs
CHANGED
|
@@ -4,6 +4,9 @@ export class Customer extends APIResource {
|
|
|
4
4
|
create(body, options) {
|
|
5
5
|
return this._client.post('/v1/customer', { body, ...options });
|
|
6
6
|
}
|
|
7
|
+
update(id, body, options) {
|
|
8
|
+
return this._client.put(`/v1/customer/${id}`, { body, ...options });
|
|
9
|
+
}
|
|
7
10
|
get(id, options) {
|
|
8
11
|
return this._client.get(`/v1/customer/${id}`, options);
|
|
9
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer.mjs","sourceRoot":"","sources":["../src/resources/customer.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC,MAAM,CAAC,IAA0B,EAAE,OAA6B;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,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,EAAE,OAAO,EAAE;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/resources/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { Conversation } from "./conversation/conversation.js";
|
|
2
|
-
export { Customer, type CustomerCreateResponse, type CustomerGetResponse, type CustomerTokenResponse, type CustomerCreateParams, type CustomerTokenParams, } from "./customer.js";
|
|
2
|
+
export { Customer, type CustomerCreateResponse, type CustomerUpdateResponse, type CustomerGetResponse, type CustomerTokenResponse, type CustomerCreateParams, type CustomerUpdateParams, type CustomerTokenParams, } from "./customer.js";
|
|
3
3
|
export { Ingest, type IngestTestParams } from "./ingest.js";
|
|
4
4
|
export { Workflow } from "./workflow.js";
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EACL,QAAQ,EACR,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,GACzB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,MAAM,EAAE,KAAK,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EACL,QAAQ,EACR,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,GACzB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,MAAM,EAAE,KAAK,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,+DAA2D;AAAlD,4GAAA,YAAY,OAAA;AACrB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,+DAA2D;AAAlD,4GAAA,YAAY,OAAA;AACrB,0CASoB;AARlB,oGAAA,QAAQ,OAAA;AASV,sCAAyD;AAAhD,gGAAA,MAAM,OAAA;AACf,0CAAsC;AAA7B,oGAAA,QAAQ,OAAA"}
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,YAAY,EAAE;OAChB,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,YAAY,EAAE;OAChB,EACL,QAAQ,GAQT;OACM,EAAE,MAAM,EAAyB;OACjC,EAAE,QAAQ,EAAE"}
|
package/src/index.ts
CHANGED
|
@@ -12,6 +12,8 @@ import {
|
|
|
12
12
|
CustomerGetResponse,
|
|
13
13
|
CustomerTokenParams,
|
|
14
14
|
CustomerTokenResponse,
|
|
15
|
+
CustomerUpdateParams,
|
|
16
|
+
CustomerUpdateResponse,
|
|
15
17
|
} from './resources/customer';
|
|
16
18
|
import { Ingest, IngestTestParams } from './resources/ingest';
|
|
17
19
|
import { Workflow } from './resources/workflow';
|
|
@@ -213,9 +215,11 @@ export declare namespace Lorikeet {
|
|
|
213
215
|
export {
|
|
214
216
|
Customer as Customer,
|
|
215
217
|
type CustomerCreateResponse as CustomerCreateResponse,
|
|
218
|
+
type CustomerUpdateResponse as CustomerUpdateResponse,
|
|
216
219
|
type CustomerGetResponse as CustomerGetResponse,
|
|
217
220
|
type CustomerTokenResponse as CustomerTokenResponse,
|
|
218
221
|
type CustomerCreateParams as CustomerCreateParams,
|
|
222
|
+
type CustomerUpdateParams as CustomerUpdateParams,
|
|
219
223
|
type CustomerTokenParams as CustomerTokenParams,
|
|
220
224
|
};
|
|
221
225
|
|
|
@@ -67,7 +67,7 @@ export class Chat extends APIResource {
|
|
|
67
67
|
return pollUntil<ChatGetResponse>(
|
|
68
68
|
() => this._client.get('/v1/conversation/chat/message', { query, ...options }),
|
|
69
69
|
{
|
|
70
|
-
timeout: 180_000,
|
|
70
|
+
timeout: options?.timeout || 180_000,
|
|
71
71
|
interval: 5_000,
|
|
72
72
|
condition: (conversation) => conversation.latestMessageType === 'BOT_RESPONSE',
|
|
73
73
|
},
|
|
@@ -209,6 +209,12 @@ export interface ChatGenerateParams {
|
|
|
209
209
|
* The message to be sent to the user. This endpoint supports markdown.
|
|
210
210
|
*/
|
|
211
211
|
message: string;
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Any additional customer information, that has changed in the course of the
|
|
215
|
+
* conversation.
|
|
216
|
+
*/
|
|
217
|
+
customer?: unknown;
|
|
212
218
|
}
|
|
213
219
|
|
|
214
220
|
export interface ChatGetParams {
|
|
@@ -151,6 +151,12 @@ export interface EmailGenerateParams {
|
|
|
151
151
|
* The message to be sent to the user. This endpoint supports markdown.
|
|
152
152
|
*/
|
|
153
153
|
message: string;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Any additional customer information, that has changed in the course of the
|
|
157
|
+
* conversation.
|
|
158
|
+
*/
|
|
159
|
+
customer?: unknown;
|
|
154
160
|
}
|
|
155
161
|
|
|
156
162
|
export interface EmailGetParams {
|
|
@@ -8,6 +8,14 @@ export class Customer extends APIResource {
|
|
|
8
8
|
return this._client.post('/v1/customer', { body, ...options });
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
update(
|
|
12
|
+
id: string,
|
|
13
|
+
body: CustomerUpdateParams,
|
|
14
|
+
options?: Core.RequestOptions,
|
|
15
|
+
): Core.APIPromise<CustomerUpdateResponse> {
|
|
16
|
+
return this._client.put(`/v1/customer/${id}`, { body, ...options });
|
|
17
|
+
}
|
|
18
|
+
|
|
11
19
|
get(id: string, options?: Core.RequestOptions): Core.APIPromise<CustomerGetResponse> {
|
|
12
20
|
return this._client.get(`/v1/customer/${id}`, options);
|
|
13
21
|
}
|
|
@@ -32,37 +40,81 @@ export interface CustomerCreateResponse {
|
|
|
32
40
|
*/
|
|
33
41
|
createdAt: string;
|
|
34
42
|
|
|
43
|
+
/**
|
|
44
|
+
* The display name of the customer
|
|
45
|
+
*/
|
|
46
|
+
displayName?: string;
|
|
47
|
+
|
|
35
48
|
/**
|
|
36
49
|
* The email of the customer
|
|
37
50
|
*/
|
|
38
|
-
email
|
|
51
|
+
email?: string;
|
|
39
52
|
|
|
40
53
|
/**
|
|
41
54
|
* The first name of the customer
|
|
42
55
|
*/
|
|
43
|
-
firstName
|
|
56
|
+
firstName?: string;
|
|
44
57
|
|
|
45
58
|
/**
|
|
46
59
|
* The last name of the customer
|
|
47
60
|
*/
|
|
48
|
-
lastName
|
|
61
|
+
lastName?: string;
|
|
49
62
|
|
|
50
63
|
/**
|
|
51
64
|
* The id of the customer in the ticketing system. For the SDK this needs to be
|
|
52
65
|
* stable and unique
|
|
53
66
|
*/
|
|
54
|
-
remoteId
|
|
67
|
+
remoteId?: string;
|
|
55
68
|
|
|
56
69
|
/**
|
|
57
70
|
* The id of the customer in your own primary database or a unique identifier, for
|
|
58
71
|
* example a cookie
|
|
59
72
|
*/
|
|
60
|
-
subscriberCustomerId
|
|
73
|
+
subscriberCustomerId?: string;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export interface CustomerUpdateResponse {
|
|
77
|
+
/**
|
|
78
|
+
* The id of the customer in the subscriber system
|
|
79
|
+
*/
|
|
80
|
+
id: string;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* The timestamp of the when the customer was created in our system
|
|
84
|
+
*/
|
|
85
|
+
createdAt: string;
|
|
61
86
|
|
|
62
87
|
/**
|
|
63
88
|
* The display name of the customer
|
|
64
89
|
*/
|
|
65
90
|
displayName?: string;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* The email of the customer
|
|
94
|
+
*/
|
|
95
|
+
email?: string;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* The first name of the customer
|
|
99
|
+
*/
|
|
100
|
+
firstName?: string;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* The last name of the customer
|
|
104
|
+
*/
|
|
105
|
+
lastName?: string;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* The id of the customer in the ticketing system. For the SDK this needs to be
|
|
109
|
+
* stable and unique
|
|
110
|
+
*/
|
|
111
|
+
remoteId?: string;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* The id of the customer in your own primary database or a unique identifier, for
|
|
115
|
+
* example a cookie
|
|
116
|
+
*/
|
|
117
|
+
subscriberCustomerId?: string;
|
|
66
118
|
}
|
|
67
119
|
|
|
68
120
|
export interface CustomerGetResponse {
|
|
@@ -76,115 +128,151 @@ export interface CustomerGetResponse {
|
|
|
76
128
|
*/
|
|
77
129
|
createdAt: string;
|
|
78
130
|
|
|
131
|
+
/**
|
|
132
|
+
* The display name of the customer
|
|
133
|
+
*/
|
|
134
|
+
displayName?: string;
|
|
135
|
+
|
|
79
136
|
/**
|
|
80
137
|
* The email of the customer
|
|
81
138
|
*/
|
|
82
|
-
email
|
|
139
|
+
email?: string;
|
|
83
140
|
|
|
84
141
|
/**
|
|
85
142
|
* The first name of the customer
|
|
86
143
|
*/
|
|
87
|
-
firstName
|
|
144
|
+
firstName?: string;
|
|
88
145
|
|
|
89
146
|
/**
|
|
90
147
|
* The last name of the customer
|
|
91
148
|
*/
|
|
92
|
-
lastName
|
|
149
|
+
lastName?: string;
|
|
93
150
|
|
|
94
151
|
/**
|
|
95
152
|
* The id of the customer in the ticketing system. For the SDK this needs to be
|
|
96
153
|
* stable and unique
|
|
97
154
|
*/
|
|
98
|
-
remoteId
|
|
155
|
+
remoteId?: string;
|
|
99
156
|
|
|
100
157
|
/**
|
|
101
158
|
* The id of the customer in your own primary database or a unique identifier, for
|
|
102
159
|
* example a cookie
|
|
103
160
|
*/
|
|
104
|
-
subscriberCustomerId
|
|
161
|
+
subscriberCustomerId?: string;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export type CustomerTokenResponse = string;
|
|
105
165
|
|
|
166
|
+
export interface CustomerCreateParams {
|
|
106
167
|
/**
|
|
107
168
|
* The display name of the customer
|
|
108
169
|
*/
|
|
109
170
|
displayName?: string;
|
|
110
|
-
}
|
|
111
171
|
|
|
112
|
-
export type CustomerTokenResponse = string;
|
|
113
|
-
|
|
114
|
-
export interface CustomerCreateParams {
|
|
115
172
|
/**
|
|
116
173
|
* The email of the customer
|
|
117
174
|
*/
|
|
118
|
-
email
|
|
175
|
+
email?: string;
|
|
119
176
|
|
|
120
177
|
/**
|
|
121
178
|
* The first name of the customer
|
|
122
179
|
*/
|
|
123
|
-
firstName
|
|
180
|
+
firstName?: string;
|
|
124
181
|
|
|
125
182
|
/**
|
|
126
183
|
* The last name of the customer
|
|
127
184
|
*/
|
|
128
|
-
lastName
|
|
185
|
+
lastName?: string;
|
|
129
186
|
|
|
130
187
|
/**
|
|
131
188
|
* The id of the customer in the ticketing system. For the SDK this needs to be
|
|
132
189
|
* stable and unique
|
|
133
190
|
*/
|
|
134
|
-
remoteId
|
|
191
|
+
remoteId?: string;
|
|
135
192
|
|
|
136
193
|
/**
|
|
137
194
|
* The id of the customer in your own primary database or a unique identifier, for
|
|
138
195
|
* example a cookie
|
|
139
196
|
*/
|
|
140
|
-
subscriberCustomerId
|
|
197
|
+
subscriberCustomerId?: string;
|
|
198
|
+
}
|
|
141
199
|
|
|
200
|
+
export interface CustomerUpdateParams {
|
|
142
201
|
/**
|
|
143
202
|
* The display name of the customer
|
|
144
203
|
*/
|
|
145
204
|
displayName?: string;
|
|
146
|
-
}
|
|
147
205
|
|
|
148
|
-
export interface CustomerTokenParams {
|
|
149
206
|
/**
|
|
150
207
|
* The email of the customer
|
|
151
208
|
*/
|
|
152
|
-
email
|
|
209
|
+
email?: string;
|
|
153
210
|
|
|
154
211
|
/**
|
|
155
212
|
* The first name of the customer
|
|
156
213
|
*/
|
|
157
|
-
firstName
|
|
214
|
+
firstName?: string;
|
|
158
215
|
|
|
159
216
|
/**
|
|
160
217
|
* The last name of the customer
|
|
161
218
|
*/
|
|
162
|
-
lastName
|
|
219
|
+
lastName?: string;
|
|
163
220
|
|
|
164
221
|
/**
|
|
165
222
|
* The id of the customer in the ticketing system. For the SDK this needs to be
|
|
166
223
|
* stable and unique
|
|
167
224
|
*/
|
|
168
|
-
remoteId
|
|
225
|
+
remoteId?: string;
|
|
169
226
|
|
|
170
227
|
/**
|
|
171
228
|
* The id of the customer in your own primary database or a unique identifier, for
|
|
172
229
|
* example a cookie
|
|
173
230
|
*/
|
|
174
|
-
subscriberCustomerId
|
|
231
|
+
subscriberCustomerId?: string;
|
|
232
|
+
}
|
|
175
233
|
|
|
234
|
+
export interface CustomerTokenParams {
|
|
176
235
|
/**
|
|
177
236
|
* The display name of the customer
|
|
178
237
|
*/
|
|
179
238
|
displayName?: string;
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* The email of the customer
|
|
242
|
+
*/
|
|
243
|
+
email?: string;
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* The first name of the customer
|
|
247
|
+
*/
|
|
248
|
+
firstName?: string;
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* The last name of the customer
|
|
252
|
+
*/
|
|
253
|
+
lastName?: string;
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* The id of the customer in the ticketing system. For the SDK this needs to be
|
|
257
|
+
* stable and unique
|
|
258
|
+
*/
|
|
259
|
+
remoteId?: string;
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* The id of the customer in your own primary database or a unique identifier, for
|
|
263
|
+
* example a cookie
|
|
264
|
+
*/
|
|
265
|
+
subscriberCustomerId?: string;
|
|
180
266
|
}
|
|
181
267
|
|
|
182
268
|
export declare namespace Customer {
|
|
183
269
|
export {
|
|
184
270
|
type CustomerCreateResponse as CustomerCreateResponse,
|
|
271
|
+
type CustomerUpdateResponse as CustomerUpdateResponse,
|
|
185
272
|
type CustomerGetResponse as CustomerGetResponse,
|
|
186
273
|
type CustomerTokenResponse as CustomerTokenResponse,
|
|
187
274
|
type CustomerCreateParams as CustomerCreateParams,
|
|
275
|
+
type CustomerUpdateParams as CustomerUpdateParams,
|
|
188
276
|
type CustomerTokenParams as CustomerTokenParams,
|
|
189
277
|
};
|
|
190
278
|
}
|
package/src/resources/index.ts
CHANGED
|
@@ -4,9 +4,11 @@ export { Conversation } from './conversation/conversation';
|
|
|
4
4
|
export {
|
|
5
5
|
Customer,
|
|
6
6
|
type CustomerCreateResponse,
|
|
7
|
+
type CustomerUpdateResponse,
|
|
7
8
|
type CustomerGetResponse,
|
|
8
9
|
type CustomerTokenResponse,
|
|
9
10
|
type CustomerCreateParams,
|
|
11
|
+
type CustomerUpdateParams,
|
|
10
12
|
type CustomerTokenParams,
|
|
11
13
|
} from './customer';
|
|
12
14
|
export { Ingest, type IngestTestParams } from './ingest';
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.6.
|
|
1
|
+
export const VERSION = '0.6.2'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.6.
|
|
1
|
+
export declare const VERSION = "0.6.2";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.6.
|
|
1
|
+
export const VERSION = '0.6.2'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|