@xmtp/node-bindings 0.0.21 → 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 +6 -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
|
@@ -13,9 +13,6 @@ export declare class Client {
|
|
|
13
13
|
sendConsentSyncRequest(): Promise<void>
|
|
14
14
|
findInboxIdByAddress(address: string): Promise<string | null>
|
|
15
15
|
addressesFromInboxId(refreshFromNetwork: boolean, inboxIds: Array<string>): Promise<Array<InboxState>>
|
|
16
|
-
signWithInstallationKey(signatureText: string): Uint8Array
|
|
17
|
-
verifySignedWithInstallationKey(signatureText: string, signatureBytes: Uint8Array): void
|
|
18
|
-
verifySignedWithPublicKey(signatureText: string, signatureBytes: Uint8Array, publicKey: Uint8Array): void
|
|
19
16
|
setConsentStates(records: Array<Consent>): Promise<void>
|
|
20
17
|
getConsentState(entityType: ConsentEntityType, entity: string): Promise<ConsentState>
|
|
21
18
|
/**
|
|
@@ -27,12 +24,14 @@ export declare class Client {
|
|
|
27
24
|
inboxState(refreshFromNetwork: boolean): Promise<InboxState>
|
|
28
25
|
getLatestInboxState(inboxId: string): Promise<InboxState>
|
|
29
26
|
createInboxSignatureText(): Promise<string | null>
|
|
30
|
-
addWalletSignatureText(
|
|
27
|
+
addWalletSignatureText(newWalletAddress: string): Promise<string>
|
|
31
28
|
revokeWalletSignatureText(walletAddress: string): Promise<string>
|
|
32
29
|
revokeInstallationsSignatureText(): Promise<string>
|
|
33
30
|
addSignature(signatureType: SignatureRequestType, signatureBytes: Uint8Array): Promise<void>
|
|
34
31
|
addScwSignature(signatureType: SignatureRequestType, signatureBytes: Uint8Array, chainId: bigint, blockNumber?: bigint | undefined | null): Promise<void>
|
|
35
32
|
applySignatureRequests(): Promise<void>
|
|
33
|
+
signWithInstallationKey(signatureText: string): Uint8Array
|
|
34
|
+
verifySignedWithInstallationKey(signatureText: string, signatureBytes: Uint8Array): void
|
|
36
35
|
}
|
|
37
36
|
|
|
38
37
|
export declare class Conversation {
|
|
@@ -167,7 +166,7 @@ export declare const enum ConversationType {
|
|
|
167
166
|
* It can be one of: `debug`, `info`, `warn`, `error` or 'off'.
|
|
168
167
|
* By default, logging is disabled.
|
|
169
168
|
*/
|
|
170
|
-
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>
|
|
171
170
|
|
|
172
171
|
export interface CreateGroupOptions {
|
|
173
172
|
permissions?: GroupPermissionsOptions
|
|
@@ -315,3 +314,5 @@ export declare const enum SortDirection {
|
|
|
315
314
|
Ascending = 0,
|
|
316
315
|
Descending = 1
|
|
317
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 }
|