Other types and variables
Type Aliases
ClientOptions
ClientOptions: NetworkOptions
& KeyStoreOptions
& ContentOptions
& LegacyOptions
Aggregate type for client options. Optional properties are used when the default value is calculated on invocation, and are computed as needed by each function. All other defaults are specified in defaultOptions.
Defined in
Composite
Composite: { content
: any
; type
: ContentTypeId
} | { parts
: Composite
[] }
Defined in
Conversation
Conversation: ConversationV1
| ConversationV2
Defined in
conversations/Conversation.ts:352
ListMessagesOptions
ListMessagesOptions: Object
Type declaration
Name | Type |
---|---|
checkAddresses? | boolean |
direction? | messageApi.SortDirection |
endTime? | Date |
limit? | number |
startTime? | Date |
Defined in
Message
Message: MessageV1
| MessageV2
Defined in
PrivateKeyBundle
PrivateKeyBundle: PrivateKeyBundleV1
| PrivateKeyBundleV2
Defined in
crypto/PrivateKeyBundle.ts:232
SendOptions
SendOptions: Object
Type declaration
Name | Type |
---|---|
compression? | xmtpEnvelope.Compression |
contentFallback? | string |
contentType? | ContentTypeId |
timestamp? | Date |
Defined in
Variables
Compression
Compression: typeof Compression
Defined in
ContentTypeComposite
Const
ContentTypeComposite: ContentTypeId
Defined in
ContentTypeFallback
Const
ContentTypeFallback: ContentTypeId
Defined in
ContentTypeText
Const
ContentTypeText: ContentTypeId
Defined in
SortDirection
SortDirection: typeof SortDirection
Defined in
Functions
dateToNs
dateToNs(date
): Long
Parameters
Name | Type |
---|---|
date | Date |
Returns
Long
Defined in
fromNanoString
fromNanoString(s
): undefined
| Date
Parameters
Name | Type |
---|---|
s | undefined | string |
Returns
undefined
| Date
Defined in
nsToDate
nsToDate(ns
): Date
Parameters
Name | Type |
---|---|
ns | Long |
Returns
Date
Defined in
toNanoString
toNanoString(d
): undefined
| string
Parameters
Name | Type |
---|---|
d | undefined | Date |
Returns
undefined
| string