@xmtp/node-bindings 1.6.0-dev.3656d63 → 1.6.0-dev.419b6dc
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/dist/bindings_node.darwin-arm64.node +0 -0
- package/dist/bindings_node.darwin-x64.node +0 -0
- package/dist/bindings_node.linux-arm64-gnu.node +0 -0
- package/dist/bindings_node.linux-arm64-musl.node +0 -0
- package/dist/bindings_node.linux-x64-gnu.node +0 -0
- package/dist/bindings_node.linux-x64-musl.node +0 -0
- package/dist/bindings_node.win32-x64-msvc.node +0 -0
- package/dist/index.d.ts +24 -17
- package/dist/version.json +3 -3
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/index.d.ts
CHANGED
|
@@ -211,7 +211,7 @@ export interface ApiStats {
|
|
|
211
211
|
subscribeWelcomes: bigint
|
|
212
212
|
}
|
|
213
213
|
|
|
214
|
-
export declare export declare function applySignatureRequest(
|
|
214
|
+
export declare export declare function applySignatureRequest(v3Host: string, gatewayHost: string | undefined | null, signatureRequest: SignatureRequestHandle): Promise<void>
|
|
215
215
|
|
|
216
216
|
export interface Attachment {
|
|
217
217
|
filename?: string
|
|
@@ -239,14 +239,15 @@ export declare const enum ConsentState {
|
|
|
239
239
|
export declare const enum ContentType {
|
|
240
240
|
Unknown = 0,
|
|
241
241
|
Text = 1,
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
242
|
+
LeaveRequest = 2,
|
|
243
|
+
GroupMembershipChange = 3,
|
|
244
|
+
GroupUpdated = 4,
|
|
245
|
+
Reaction = 5,
|
|
246
|
+
ReadReceipt = 6,
|
|
247
|
+
Reply = 7,
|
|
248
|
+
Attachment = 8,
|
|
249
|
+
RemoteAttachment = 9,
|
|
250
|
+
TransactionReference = 10
|
|
250
251
|
}
|
|
251
252
|
|
|
252
253
|
export interface ContentTypeId {
|
|
@@ -263,7 +264,7 @@ export interface ConversationDebugInfo {
|
|
|
263
264
|
isCommitLogForked?: boolean
|
|
264
265
|
localCommitLog: string
|
|
265
266
|
remoteCommitLog: string
|
|
266
|
-
cursor:
|
|
267
|
+
cursor: Array<XmtpCursor>
|
|
267
268
|
}
|
|
268
269
|
|
|
269
270
|
export declare const enum ConversationType {
|
|
@@ -280,7 +281,7 @@ export declare const enum ConversationType {
|
|
|
280
281
|
* It can be one of: `debug`, `info`, `warn`, `error` or 'off'.
|
|
281
282
|
* By default, logging is disabled.
|
|
282
283
|
*/
|
|
283
|
-
export declare export declare function createClient(
|
|
284
|
+
export declare export declare function createClient(v3Host: string, gatewayHost: string | undefined | null, isSecure: boolean, dbPath: string | undefined | null, inboxId: string, accountIdentifier: Identifier, encryptionKey?: Uint8Array | undefined | null, deviceSyncServerUrl?: string | undefined | null, deviceSyncWorkerMode?: SyncWorkerMode | undefined | null, logOptions?: LogOptions | undefined | null, allowOffline?: boolean | undefined | null, disableEvents?: boolean | undefined | null, appVersion?: string | undefined | null): Promise<Client>
|
|
284
285
|
|
|
285
286
|
export interface CreateDmOptions {
|
|
286
287
|
messageDisappearingSettings?: MessageDisappearingSettings
|
|
@@ -334,13 +335,14 @@ export declare export declare function encodeReaction(reaction: Reaction): Uint8
|
|
|
334
335
|
|
|
335
336
|
export declare export declare function generateInboxId(accountIdent: Identifier): string
|
|
336
337
|
|
|
337
|
-
export declare export declare function getInboxIdForIdentifier(
|
|
338
|
+
export declare export declare function getInboxIdForIdentifier(v3Host: string, gatewayHost: string | undefined | null, isSecure: boolean, identifier: Identifier): Promise<string | null>
|
|
338
339
|
|
|
339
340
|
export declare const enum GroupMembershipState {
|
|
340
341
|
Allowed = 0,
|
|
341
342
|
Rejected = 1,
|
|
342
343
|
Pending = 2,
|
|
343
|
-
Restored = 3
|
|
344
|
+
Restored = 3,
|
|
345
|
+
PendingRemove = 4
|
|
344
346
|
}
|
|
345
347
|
|
|
346
348
|
export declare const enum GroupMessageKind {
|
|
@@ -394,7 +396,7 @@ export interface InboxState {
|
|
|
394
396
|
identifiers: Array<Identifier>
|
|
395
397
|
}
|
|
396
398
|
|
|
397
|
-
export declare export declare function inboxStateFromInboxIds(
|
|
399
|
+
export declare export declare function inboxStateFromInboxIds(v3Host: string, gatewayHost: string | undefined | null, inboxIds: Array<string>): Promise<Array<InboxState>>
|
|
398
400
|
|
|
399
401
|
export interface Installation {
|
|
400
402
|
bytes: Uint8Array
|
|
@@ -402,9 +404,9 @@ export interface Installation {
|
|
|
402
404
|
id: string
|
|
403
405
|
}
|
|
404
406
|
|
|
405
|
-
export declare export declare function isAddressAuthorized(host: string, inboxId: string, address: string): Promise<boolean>
|
|
407
|
+
export declare export declare function isAddressAuthorized(host: string, gatewayHost: string | undefined | null, inboxId: string, address: string): Promise<boolean>
|
|
406
408
|
|
|
407
|
-
export declare export declare function isInstallationAuthorized(host: string, inboxId: string, installationId: Uint8Array): Promise<boolean>
|
|
409
|
+
export declare export declare function isInstallationAuthorized(host: string, gatewayHost: string | undefined | null, inboxId: string, installationId: Uint8Array): Promise<boolean>
|
|
408
410
|
|
|
409
411
|
export interface KeyPackageStatus {
|
|
410
412
|
lifetime?: Lifetime
|
|
@@ -604,7 +606,7 @@ export interface RemoteAttachmentInfoPayload {
|
|
|
604
606
|
filename?: string
|
|
605
607
|
}
|
|
606
608
|
|
|
607
|
-
export declare export declare function revokeInstallationsSignatureRequest(
|
|
609
|
+
export declare export declare function revokeInstallationsSignatureRequest(v3Host: string, gatewayHost: string | undefined | null, recoveryIdentifier: Identifier, inboxId: string, installationIds: Array<Uint8Array>): SignatureRequestHandle
|
|
608
610
|
|
|
609
611
|
export interface SendMessageOpts {
|
|
610
612
|
shouldPush: boolean
|
|
@@ -665,3 +667,8 @@ export interface WalletSendCalls {
|
|
|
665
667
|
calls: Array<WalletCall>
|
|
666
668
|
capabilities?: Record<string, string>
|
|
667
669
|
}
|
|
670
|
+
|
|
671
|
+
export interface XmtpCursor {
|
|
672
|
+
originatorId: number
|
|
673
|
+
sequenceId: number
|
|
674
|
+
}
|
package/dist/version.json
CHANGED