@d-id/client-sdk 1.0.18-beta.13 → 1.0.18-beta.14

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/dist/index.js CHANGED
@@ -362,6 +362,9 @@ async function createAgentManager(agentId, options) {
362
362
  }
363
363
  return ratingsAPI.create(payload);
364
364
  },
365
+ deleteRate(id) {
366
+ return ratingsAPI.delete(id);
367
+ },
365
368
  speak(payload) {
366
369
  let completePayload;
367
370
  if (payload.type === "text") {
@@ -366,6 +366,9 @@
366
366
  }
367
367
  return ratingsAPI.create(payload);
368
368
  },
369
+ deleteRate(id) {
370
+ return ratingsAPI.delete(id);
371
+ },
369
372
  speak(payload) {
370
373
  let completePayload;
371
374
  if (payload.type === "text") {
@@ -88,12 +88,16 @@ export interface AgentManager {
88
88
  */
89
89
  chat: (messages: Message[]) => Promise<ChatResponse>;
90
90
  /**
91
- * This method provides you the possibility to rate your chat experience
92
- * TODO asks Sagi how it's work
91
+ * Method to rate the answer in chat
93
92
  * @param payload
94
93
  * @param id - id of Rating entity. Leave it empty to create a new, one or pass it to work with the existing one
95
94
  */
96
95
  rate: (payload: RatingPayload, id?: string) => Promise<RatingEntity>;
96
+ /**
97
+ * Method to delete rating from answer in chat
98
+ * @param id - id of Rating entity.
99
+ */
100
+ deleteRate: (id: string) => Promise<RatingEntity>;
97
101
  /**
98
102
  * Method to make your agent read the text you provide or reproduce sound
99
103
  * @param payload
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@d-id/client-sdk",
3
3
  "private": false,
4
- "version": "1.0.18-beta.13",
4
+ "version": "1.0.18-beta.14",
5
5
  "type": "module",
6
6
  "description": "d-id client sdk",
7
7
  "repository": {