@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.
- package/index.d.ts +9 -0
- package/index.js +1 -1
- 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