@xmtp/node-bindings 0.0.21 → 0.0.23
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 +8 -5
- package/dist/index.js +2 -1
- package/package.json +2 -2
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/index.d.ts
CHANGED
|
@@ -13,9 +13,8 @@ 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
|
-
|
|
17
|
-
|
|
18
|
-
verifySignedWithPublicKey(signatureText: string, signatureBytes: Uint8Array, publicKey: Uint8Array): void
|
|
16
|
+
isAddressAuthorized(inboxId: string, address: string): Promise<boolean>
|
|
17
|
+
isInstallationAuthorized(inboxId: string, installation: Array<number>): Promise<boolean>
|
|
19
18
|
setConsentStates(records: Array<Consent>): Promise<void>
|
|
20
19
|
getConsentState(entityType: ConsentEntityType, entity: string): Promise<ConsentState>
|
|
21
20
|
/**
|
|
@@ -27,12 +26,14 @@ export declare class Client {
|
|
|
27
26
|
inboxState(refreshFromNetwork: boolean): Promise<InboxState>
|
|
28
27
|
getLatestInboxState(inboxId: string): Promise<InboxState>
|
|
29
28
|
createInboxSignatureText(): Promise<string | null>
|
|
30
|
-
addWalletSignatureText(
|
|
29
|
+
addWalletSignatureText(newWalletAddress: string): Promise<string>
|
|
31
30
|
revokeWalletSignatureText(walletAddress: string): Promise<string>
|
|
32
31
|
revokeInstallationsSignatureText(): Promise<string>
|
|
33
32
|
addSignature(signatureType: SignatureRequestType, signatureBytes: Uint8Array): Promise<void>
|
|
34
33
|
addScwSignature(signatureType: SignatureRequestType, signatureBytes: Uint8Array, chainId: bigint, blockNumber?: bigint | undefined | null): Promise<void>
|
|
35
34
|
applySignatureRequests(): Promise<void>
|
|
35
|
+
signWithInstallationKey(signatureText: string): Uint8Array
|
|
36
|
+
verifySignedWithInstallationKey(signatureText: string, signatureBytes: Uint8Array): void
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
export declare class Conversation {
|
|
@@ -167,7 +168,7 @@ export declare const enum ConversationType {
|
|
|
167
168
|
* It can be one of: `debug`, `info`, `warn`, `error` or 'off'.
|
|
168
169
|
* By default, logging is disabled.
|
|
169
170
|
*/
|
|
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>
|
|
171
|
+
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
172
|
|
|
172
173
|
export interface CreateGroupOptions {
|
|
173
174
|
permissions?: GroupPermissionsOptions
|
|
@@ -315,3 +316,5 @@ export declare const enum SortDirection {
|
|
|
315
316
|
Ascending = 0,
|
|
316
317
|
Descending = 1
|
|
317
318
|
}
|
|
319
|
+
|
|
320
|
+
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 }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xmtp/node-bindings",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.23",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://git@github.com/xmtp/libxmtp.git",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@types/uuid": "^10.0.0",
|
|
43
43
|
"prettier": "^3.3.3",
|
|
44
44
|
"prettier-plugin-packagejson": "^2.5.3",
|
|
45
|
-
"typescript": "^5.
|
|
45
|
+
"typescript": "^5.7.2",
|
|
46
46
|
"uuid": "^11.0.3",
|
|
47
47
|
"viem": "^2.21.47",
|
|
48
48
|
"vite": "^5.4.11",
|