@xmtp/node-bindings 0.0.20 → 0.0.22
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 +7 -5
- package/dist/index.js +2 -1
- 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
|
@@ -5,6 +5,7 @@ export declare class Client {
|
|
|
5
5
|
inboxId(): string
|
|
6
6
|
isRegistered(): boolean
|
|
7
7
|
installationId(): string
|
|
8
|
+
installationIdBytes(): Uint8Array
|
|
8
9
|
canMessage(accountAddresses: Array<string>): Promise<Record<string, boolean>>
|
|
9
10
|
registerIdentity(): Promise<void>
|
|
10
11
|
conversations(): Conversations
|
|
@@ -12,9 +13,6 @@ export declare class Client {
|
|
|
12
13
|
sendConsentSyncRequest(): Promise<void>
|
|
13
14
|
findInboxIdByAddress(address: string): Promise<string | null>
|
|
14
15
|
addressesFromInboxId(refreshFromNetwork: boolean, inboxIds: Array<string>): Promise<Array<InboxState>>
|
|
15
|
-
signWithInstallationKey(signatureText: string): Uint8Array
|
|
16
|
-
verifySignedWithInstallationKey(signatureText: string, signatureBytes: Uint8Array): void
|
|
17
|
-
verifySignedWithPublicKey(signatureText: string, signatureBytes: Uint8Array, publicKey: Uint8Array): void
|
|
18
16
|
setConsentStates(records: Array<Consent>): Promise<void>
|
|
19
17
|
getConsentState(entityType: ConsentEntityType, entity: string): Promise<ConsentState>
|
|
20
18
|
/**
|
|
@@ -26,12 +24,14 @@ export declare class Client {
|
|
|
26
24
|
inboxState(refreshFromNetwork: boolean): Promise<InboxState>
|
|
27
25
|
getLatestInboxState(inboxId: string): Promise<InboxState>
|
|
28
26
|
createInboxSignatureText(): Promise<string | null>
|
|
29
|
-
addWalletSignatureText(
|
|
27
|
+
addWalletSignatureText(newWalletAddress: string): Promise<string>
|
|
30
28
|
revokeWalletSignatureText(walletAddress: string): Promise<string>
|
|
31
29
|
revokeInstallationsSignatureText(): Promise<string>
|
|
32
30
|
addSignature(signatureType: SignatureRequestType, signatureBytes: Uint8Array): Promise<void>
|
|
33
31
|
addScwSignature(signatureType: SignatureRequestType, signatureBytes: Uint8Array, chainId: bigint, blockNumber?: bigint | undefined | null): Promise<void>
|
|
34
32
|
applySignatureRequests(): Promise<void>
|
|
33
|
+
signWithInstallationKey(signatureText: string): Uint8Array
|
|
34
|
+
verifySignedWithInstallationKey(signatureText: string, signatureBytes: Uint8Array): void
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
export declare class Conversation {
|
|
@@ -166,7 +166,7 @@ export declare const enum ConversationType {
|
|
|
166
166
|
* It can be one of: `debug`, `info`, `warn`, `error` or 'off'.
|
|
167
167
|
* By default, logging is disabled.
|
|
168
168
|
*/
|
|
169
|
-
export declare export declare function createClient(host: string, isSecure: boolean, dbPath: string, inboxId: string, accountAddress: string, encryptionKey?: Uint8Array | undefined | null, historySyncUrl?: string | undefined | null, logOptions?: LogOptions | undefined | null): Promise<Client>
|
|
169
|
+
export declare export declare function createClient(host: string, isSecure: boolean, dbPath: string | undefined | null, inboxId: string, accountAddress: string, encryptionKey?: Uint8Array | undefined | null, historySyncUrl?: string | undefined | null, logOptions?: LogOptions | undefined | null): Promise<Client>
|
|
170
170
|
|
|
171
171
|
export interface CreateGroupOptions {
|
|
172
172
|
permissions?: GroupPermissionsOptions
|
|
@@ -314,3 +314,5 @@ export declare const enum SortDirection {
|
|
|
314
314
|
Ascending = 0,
|
|
315
315
|
Descending = 1
|
|
316
316
|
}
|
|
317
|
+
|
|
318
|
+
export declare export declare function verifySignedWithPublicKey(signatureText: string, signatureBytes: Uint8Array, publicKey: Uint8Array): void
|
package/dist/index.js
CHANGED
|
@@ -365,7 +365,7 @@ if (!nativeBinding) {
|
|
|
365
365
|
throw new Error(`Failed to load native binding`)
|
|
366
366
|
}
|
|
367
367
|
|
|
368
|
-
const { Client, Conversation, Conversations, GroupMember, GroupMetadata, GroupPermissions, StreamCloser, ConsentEntityType, ConsentState, ConversationType, createClient, DeliveryStatus, generateInboxId, getInboxIdForAddress, GroupMembershipState, GroupMessageKind, GroupPermissionsOptions, LogLevel, PermissionLevel, PermissionPolicy, PermissionUpdateType, SignatureRequestType, SortDirection } = nativeBinding
|
|
368
|
+
const { Client, Conversation, Conversations, GroupMember, GroupMetadata, GroupPermissions, StreamCloser, ConsentEntityType, ConsentState, ConversationType, createClient, DeliveryStatus, generateInboxId, getInboxIdForAddress, GroupMembershipState, GroupMessageKind, GroupPermissionsOptions, LogLevel, PermissionLevel, PermissionPolicy, PermissionUpdateType, SignatureRequestType, SortDirection, verifySignedWithPublicKey } = nativeBinding
|
|
369
369
|
export { Client }
|
|
370
370
|
export { Conversation }
|
|
371
371
|
export { Conversations }
|
|
@@ -389,3 +389,4 @@ export { PermissionPolicy }
|
|
|
389
389
|
export { PermissionUpdateType }
|
|
390
390
|
export { SignatureRequestType }
|
|
391
391
|
export { SortDirection }
|
|
392
|
+
export { verifySignedWithPublicKey }
|