Address

View as MarkdownOpen in Claude

An Address represents a single directory entry — a contact, room, or any other dialable endpoint exposed by the user’s fabric. Address instances are produced by the Directory returned from SignalWire.directory$; applications do not construct them directly.

Beyond identity metadata (display name, type, cover/preview URLs), Address exposes lazy observables for the entry’s interaction history (history$) and text messages (textMessages$). Subscribing to either kicks off the underlying REST fetch and pages additional results in on demand. Use textMessage to send a new message to the address.

The reactive accessors (displayName$, type$, locked$, etc.) emit when the server pushes an update for this address; their snapshot counterparts (displayName, type, locked) return the most recent cached value. The instance is destroyed when the parent directory page is released.

Extends

  • Destroyable

Constructors

Constructor

1new Address(addressId, conversationManager, addressProvider): Address

Parameters

addressId
stringRequired

Server-assigned ID of the address.

conversationManager
ConversationsProviderRequired

Provider used to load and manage conversations for this address.

addressProvider
AddressProvider<Address>Required

Provider used to load directory entries for this address.

Properties

history$
Observable<EntityCollectionTransformed<GetConversationMessageResponse, AddressHistory<Address>> | undefined>

Observable of call history for this address. Lazily loads conversation data. See AddressHistory.

textMessages$
Observable<EntityCollectionTransformed<GetConversationMessageResponse, TextMessage<Address>> | undefined>

Observable of text messages for this address. Lazily loads conversation data. See TextMessage.

Accessors

Methods