@nuancelabs/js-sdk 0.10.1 → 0.11.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.
Files changed (3) hide show
  1. package/index.d.ts +9 -0
  2. package/index.js +1 -1
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -499,6 +499,13 @@ export declare interface SessionPersonality {
499
499
  export declare interface SessionTokenRequest {
500
500
  /** Who the avatar is in the conversation. Leave it out for the default personality. */
501
501
  personality?: SessionPersonality;
502
+ /**
503
+ * Your own id for the person this conversation is for, such as a hash of
504
+ * your user id. After repeated policy violations, new conversations pause
505
+ * for this person only, not for your whole app. Letters, digits and
506
+ * `_ . : -`, up to 128 characters: never an email address or a name.
507
+ */
508
+ end_user_id?: string;
502
509
  }
503
510
 
504
511
  /** What `POST /session-tokens` returns. */
@@ -507,6 +514,8 @@ export declare interface SessionTokenResponse {
507
514
  token: string;
508
515
  /** When the token stops being able to start a conversation (UTC, ISO 8601). */
509
516
  expires_at: string;
517
+ /** What to change in how you mint tokens; empty when nothing. */
518
+ warnings?: string[];
510
519
  }
511
520
 
512
521
  /** When the avatar starts speaking: see {@link CreateNuanceConversationOptions.startOn}. */
package/index.js CHANGED
@@ -4,7 +4,7 @@ function isRecord(value) {
4
4
  }
5
5
 
6
6
  // src/core/sdk-version.ts
7
- var SDK_HEADER = `js/${"0.10.1"}`;
7
+ var SDK_HEADER = `js/${"0.11.0"}`;
8
8
 
9
9
  // src/utils.ts
10
10
  function normalizeHost(host) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuancelabs/js-sdk",
3
- "version": "0.10.1",
3
+ "version": "0.11.0",
4
4
  "description": "JavaScript SDK for Nuance Labs conversation video AI avatar",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {