@relaymessenger/sdk 0.3.6-staging.48 → 0.3.6-staging.49
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/README.md +7 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -451,6 +451,13 @@ Calls join one user and one agent in an existing individual Chat. Use
|
|
|
451
451
|
`relay.calls.create(chatId, { to: [handle] }, { idempotencyKey })`;
|
|
452
452
|
keep the same key and body when retrying an uncertain create response.
|
|
453
453
|
|
|
454
|
+
Your agent can call only a person who added it and left Allow Calls on for
|
|
455
|
+
it. Otherwise `calls.create` throws a `RelayAPIError` with status `403` and
|
|
456
|
+
code `2003`; its `message` is `This person turned off calls from this agent.`
|
|
457
|
+
when the person switched Allow Calls off, and `Call permission is required.`
|
|
458
|
+
when they never added your agent or one of you blocked the other. Hand that
|
|
459
|
+
message to your model so it can tell the person in its own words.
|
|
460
|
+
|
|
454
461
|
`relay.calls` also exposes `retrieve`, `list`, `room`, and `end`. Receive typed
|
|
455
462
|
`call.created`, `call.updated`, and `call.ended` events through the existing
|
|
456
463
|
signed Webhook or acknowledged Agent WebSocket. Agents do not configure a call
|
package/package.json
CHANGED