@xmtp/node-bindings 0.0.18 → 0.0.19
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 +14 -10
- package/dist/index.js +2 -2
- package/package.json +4 -4
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/index.d.ts
CHANGED
|
@@ -12,6 +12,9 @@ export declare class Client {
|
|
|
12
12
|
sendConsentSyncRequest(): Promise<void>
|
|
13
13
|
findInboxIdByAddress(address: string): Promise<string | null>
|
|
14
14
|
addressesFromInboxId(refreshFromNetwork: boolean, inboxIds: Array<string>): Promise<Array<InboxState>>
|
|
15
|
+
signWithInstallationKey(text: string): Array<number>
|
|
16
|
+
verifySignedWithInstallationKey(signatureText: string, signatureBytes: Array<number>): void
|
|
17
|
+
verifySignedWithPublicKey(signatureText: string, signatureBytes: Array<number>, publicKey: Array<number>): void
|
|
15
18
|
setConsentStates(records: Array<Consent>): Promise<void>
|
|
16
19
|
getConsentState(entityType: ConsentEntityType, entity: string): Promise<ConsentState>
|
|
17
20
|
/**
|
|
@@ -79,6 +82,7 @@ export declare class Conversations {
|
|
|
79
82
|
findMessageById(messageId: string): Message
|
|
80
83
|
processStreamedWelcomeMessage(envelopeBytes: Uint8Array): Promise<Conversation>
|
|
81
84
|
sync(): Promise<void>
|
|
85
|
+
syncAllConversations(): Promise<bigint>
|
|
82
86
|
list(opts?: ListConversationsOptions | undefined | null): Promise<Array<Conversation>>
|
|
83
87
|
listGroups(opts?: ListConversationsOptions | undefined | null): Promise<Array<Conversation>>
|
|
84
88
|
listDms(opts?: ListConversationsOptions | undefined | null): Promise<Array<Conversation>>
|
|
@@ -219,15 +223,6 @@ export interface Installation {
|
|
|
219
223
|
clientTimestampNs?: bigint
|
|
220
224
|
}
|
|
221
225
|
|
|
222
|
-
export declare const enum Level {
|
|
223
|
-
off = 'off',
|
|
224
|
-
error = 'error',
|
|
225
|
-
warn = 'warn',
|
|
226
|
-
info = 'info',
|
|
227
|
-
debug = 'debug',
|
|
228
|
-
trace = 'trace'
|
|
229
|
-
}
|
|
230
|
-
|
|
231
226
|
export interface ListConversationsOptions {
|
|
232
227
|
allowedStates?: Array<GroupMembershipState>
|
|
233
228
|
createdAfterNs?: number
|
|
@@ -244,6 +239,15 @@ export interface ListMessagesOptions {
|
|
|
244
239
|
direction?: SortDirection
|
|
245
240
|
}
|
|
246
241
|
|
|
242
|
+
export declare const enum LogLevel {
|
|
243
|
+
off = 'off',
|
|
244
|
+
error = 'error',
|
|
245
|
+
warn = 'warn',
|
|
246
|
+
info = 'info',
|
|
247
|
+
debug = 'debug',
|
|
248
|
+
trace = 'trace'
|
|
249
|
+
}
|
|
250
|
+
|
|
247
251
|
/** Specify options for the logger */
|
|
248
252
|
export interface LogOptions {
|
|
249
253
|
/**
|
|
@@ -252,7 +256,7 @@ export interface LogOptions {
|
|
|
252
256
|
*/
|
|
253
257
|
structured?: boolean
|
|
254
258
|
/** Filter logs by level */
|
|
255
|
-
level?:
|
|
259
|
+
level?: LogLevel
|
|
256
260
|
}
|
|
257
261
|
|
|
258
262
|
export interface Message {
|
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,
|
|
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
|
|
369
369
|
export { Client }
|
|
370
370
|
export { Conversation }
|
|
371
371
|
export { Conversations }
|
|
@@ -383,7 +383,7 @@ export { getInboxIdForAddress }
|
|
|
383
383
|
export { GroupMembershipState }
|
|
384
384
|
export { GroupMessageKind }
|
|
385
385
|
export { GroupPermissionsOptions }
|
|
386
|
-
export {
|
|
386
|
+
export { LogLevel }
|
|
387
387
|
export { PermissionLevel }
|
|
388
388
|
export { PermissionPolicy }
|
|
389
389
|
export { PermissionUpdateType }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xmtp/node-bindings",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.19",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://git@github.com/xmtp/libxmtp.git",
|
|
@@ -38,16 +38,16 @@
|
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@ianvs/prettier-plugin-sort-imports": "^4.4.0",
|
|
40
40
|
"@napi-rs/cli": "^3.0.0-alpha.64",
|
|
41
|
-
"@types/node": "^
|
|
41
|
+
"@types/node": "^22.9.0",
|
|
42
42
|
"@types/uuid": "^10.0.0",
|
|
43
43
|
"prettier": "^3.3.3",
|
|
44
44
|
"prettier-plugin-packagejson": "^2.5.3",
|
|
45
45
|
"typescript": "^5.6.3",
|
|
46
46
|
"uuid": "^11.0.3",
|
|
47
|
-
"viem": "^2.21.
|
|
47
|
+
"viem": "^2.21.47",
|
|
48
48
|
"vite": "^5.4.11",
|
|
49
49
|
"vite-tsconfig-paths": "^5.1.2",
|
|
50
|
-
"vitest": "^2.1.
|
|
50
|
+
"vitest": "^2.1.5"
|
|
51
51
|
},
|
|
52
52
|
"packageManager": "yarn@4.5.1",
|
|
53
53
|
"engines": {
|