For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Log inSign up
Support
GuidesReferenceClick-to-Call
GuidesReferenceClick-to-Call
  • Core
    • Overview
  • Entities
    • SignalWire
    • Address
    • Participant
    • ClientPreferences
    • SelfCapabilities
    • SelfParticipant
    • User
    • WebRTCCall
      • AddressHistory<TAddress>
      • AudioConstraintsEvent
      • AuthenticateContext
      • Call
      • CallAddress
      • CallCapabilitiesState
      • CallDiagnosticSummary
      • CallError
      • CallNetworkIssue
      • CallNetworkMetrics
      • CallOptions
      • CallParticipant
      • CallSelfParticipant
      • CallState
      • ConstraintFallbackEvent
      • CredentialNoRefreshHandlerWarning
      • CredentialProvider
      • CredentialRefreshFallbackWarning
      • DebugOptions
      • DeviceController
      • DeviceRecoveryEvent
      • DiagnosticEvent
      • DialOptions
      • Directory
      • JSONRPCErrorResponse
      • JSONRPCRequest<TParams>
      • JSONRPCSuccessResponse<TResult>
      • LayoutLayer
      • MediaDirections
      • MediaOptions
      • MediaParamsEvent
      • MemberCapabilities
      • NodeSocketAdapter
      • OnOffCapability
      • PendingRPCOptions
      • PermissionResult
      • PlatformCapabilities
      • PreflightOptions
      • PreflightResult
      • RecoveryEvent
      • SATClaims
      • SDKCredential
      • SDKLogger
      • SelectDeviceOptions
      • SessionDiagnostics
      • SessionState
      • SignalWireOptions
      • Storage
      • StoredDevicePreference
      • TextMessage<TAddress>
      • TransferOptions
      • WebRTCApiProvider
      • WebRTCMediaDevices
  • Web Components
    • Overview
    • sw-audio-level
    • sw-call-controls
    • sw-call-dialpad
    • sw-call-media
    • sw-call-provider
    • sw-call-status
    • sw-call-widget
    • sw-click-to-call
    • sw-device-selector
    • sw-directory
    • sw-local-camera
    • sw-participant-controls
    • sw-participants
    • sw-self-media
    • sw-ui-alert
    • sw-ui-background
    • sw-ui-call-layout
    • sw-ui-content-drawer
    • sw-ui-control-bar
    • sw-ui-dialpad
    • sw-ui-dropup
    • sw-ui-icon
    • sw-ui-modal
    • sw-ui-responsive-container
    • sw-ui-split-button
    • sw-ui-transcript-view
LogoLogoSignalWire Docs
Log inSign up
Support
On this page
  • Extends
  • Properties
  • Methods
  • findAddressIdByURI()
  • get()
  • get$()
  • loadMore()
EntitiesInterfaces

Directory

|View as Markdown|Open in Claude|
Was this page helpful?
Edit this page
Previous

JSONRPCErrorResponse

Next
Built with

Directory interface for managing addresses

This is the public API contract for address directory functionality. It provides access to addresses, loading capabilities, and search functionality.

Extends

  • AddressProvider<Address> (see Address)

Properties

addresses
Address[]

Current snapshot of all addresses in the directory

addresses$
Observable<Address[]>

Observable stream of all addresses in the directory Emits a new array whenever addresses are added, removed, or updated

hasMore$
Observable<boolean>

Observable indicating whether more addresses can be loaded from the server

loading
boolean

Whether the directory is currently loading.

loading$
Observable<boolean>

Observable indicating the current loading state Emits true when loading, false when idle

Methods

findAddressIdByURI()

1findAddressIdByURI(uri): Promise<string | undefined>

Find an address ID by searching for a name

Parameters

uri
stringRequired

The address name to search for

Returns

Promise<string | undefined>

Promise resolving to the address ID, or undefined if not found


get()

1get(addressId): Address | undefined

Get a specific address by ID

Parameters

addressId
stringRequired

The address ID to retrieve

Returns

Address | undefined

The address instance, or undefined if not found


get$()

1get$(id): Observable<Address> | undefined

Get an observable stream for a specific address by ID

Parameters

id
stringRequired

The address ID to retrieve

Returns

Observable<Address> | undefined

Observable of the address, or undefined if not found

Inherited from

AddressProvider.get$


loadMore()

1loadMore(): void

Load more addresses from the server Only loads if hasMore is true

Returns

void