@xmtp/node-bindings 1.2.0-dev.bb383c1 → 1.2.0-dev.c24af30
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 +2 -8
- package/dist/index.js +1 -2
- package/dist/version.json +3 -3
- package/package.json +5 -5
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/index.d.ts
CHANGED
|
@@ -14,7 +14,6 @@ export declare class Client {
|
|
|
14
14
|
sendConsentSyncRequest(): Promise<void>
|
|
15
15
|
findInboxIdByIdentifier(identifier: Identifier): Promise<string | null>
|
|
16
16
|
addressesFromInboxId(refreshFromNetwork: boolean, inboxIds: Array<string>): Promise<Array<InboxState>>
|
|
17
|
-
syncPreferences(): Promise<number>
|
|
18
17
|
setConsentStates(records: Array<Consent>): Promise<void>
|
|
19
18
|
getConsentState(entityType: ConsentEntityType, entity: string): Promise<ConsentState>
|
|
20
19
|
/**
|
|
@@ -200,13 +199,13 @@ export declare const enum ConversationType {
|
|
|
200
199
|
}
|
|
201
200
|
|
|
202
201
|
/**
|
|
203
|
-
* Create a client
|
|
202
|
+
* Create a client
|
|
204
203
|
*
|
|
205
204
|
* Optionally specify a filter for the log level as a string.
|
|
206
205
|
* It can be one of: `debug`, `info`, `warn`, `error` or 'off'.
|
|
207
206
|
* By default, logging is disabled.
|
|
208
207
|
*/
|
|
209
|
-
export declare export declare function createClient(host: string, isSecure: boolean, dbPath: string | undefined | null, inboxId: string, accountIdentifier: Identifier, encryptionKey?: Uint8Array | undefined | null,
|
|
208
|
+
export declare export declare function createClient(host: string, isSecure: boolean, dbPath: string | undefined | null, inboxId: string, accountIdentifier: Identifier, encryptionKey?: Uint8Array | undefined | null, historySyncUrl?: string | undefined | null, logOptions?: LogOptions | undefined | null): Promise<Client>
|
|
210
209
|
|
|
211
210
|
export interface CreateDmOptions {
|
|
212
211
|
messageDisappearingSettings?: MessageDisappearingSettings
|
|
@@ -459,9 +458,4 @@ export declare const enum SortDirection {
|
|
|
459
458
|
Descending = 1
|
|
460
459
|
}
|
|
461
460
|
|
|
462
|
-
export declare const enum SyncWorkerMode {
|
|
463
|
-
enabled = 'enabled',
|
|
464
|
-
disabled = 'disabled'
|
|
465
|
-
}
|
|
466
|
-
|
|
467
461
|
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, ConversationListItem, Conversations, GroupMember, GroupMetadata, GroupPermissions, StreamCloser, ConsentEntityType, ConsentState, ContentType, ConversationType, createClient, decodeMultiRemoteAttachment, decodeReaction, DeliveryStatus, encodeMultiRemoteAttachment, encodeReaction, generateInboxId, getInboxIdForIdentifier, GroupMembershipState, GroupMessageKind, GroupPermissionsOptions, IdentifierKind, isAddressAuthorized, isInstallationAuthorized, LogLevel, MetadataField, PermissionLevel, PermissionPolicy, PermissionUpdateType, ReactionAction, ReactionSchema, SignatureRequestType, SortDirection,
|
|
368
|
+
const { Client, Conversation, ConversationListItem, Conversations, GroupMember, GroupMetadata, GroupPermissions, StreamCloser, ConsentEntityType, ConsentState, ContentType, ConversationType, createClient, decodeMultiRemoteAttachment, decodeReaction, DeliveryStatus, encodeMultiRemoteAttachment, encodeReaction, generateInboxId, getInboxIdForIdentifier, GroupMembershipState, GroupMessageKind, GroupPermissionsOptions, IdentifierKind, isAddressAuthorized, isInstallationAuthorized, LogLevel, MetadataField, PermissionLevel, PermissionPolicy, PermissionUpdateType, ReactionAction, ReactionSchema, SignatureRequestType, SortDirection, verifySignedWithPublicKey } = nativeBinding
|
|
369
369
|
export { Client }
|
|
370
370
|
export { Conversation }
|
|
371
371
|
export { ConversationListItem }
|
|
@@ -401,5 +401,4 @@ export { ReactionAction }
|
|
|
401
401
|
export { ReactionSchema }
|
|
402
402
|
export { SignatureRequestType }
|
|
403
403
|
export { SortDirection }
|
|
404
|
-
export { SyncWorkerMode }
|
|
405
404
|
export { verifySignedWithPublicKey }
|
package/dist/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xmtp/node-bindings",
|
|
3
|
-
"version": "1.2.0-dev.
|
|
3
|
+
"version": "1.2.0-dev.c24af30",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://git@github.com/xmtp/libxmtp.git",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@ianvs/prettier-plugin-sort-imports": "^4.4.1",
|
|
42
42
|
"@napi-rs/cli": "^3.0.0-alpha.64",
|
|
43
|
-
"@types/node": "^22.
|
|
43
|
+
"@types/node": "^22.13.0",
|
|
44
44
|
"@types/uuid": "^10.0.0",
|
|
45
45
|
"fast-glob": "^3.3.3",
|
|
46
46
|
"prettier": "^3.5.0",
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
"tsx": "^4.19.3",
|
|
49
49
|
"typescript": "^5.8.2",
|
|
50
50
|
"uuid": "^11.1.0",
|
|
51
|
-
"viem": "^2.
|
|
51
|
+
"viem": "^2.24.2",
|
|
52
52
|
"vite": "^6.2.0",
|
|
53
53
|
"vite-tsconfig-paths": "^5.1.4",
|
|
54
|
-
"vitest": "^3.
|
|
55
|
-
"zx": "^8.
|
|
54
|
+
"vitest": "^3.0.4",
|
|
55
|
+
"zx": "^8.4.0"
|
|
56
56
|
},
|
|
57
57
|
"packageManager": "yarn@4.6.0",
|
|
58
58
|
"engines": {
|