@xmtp/node-bindings 1.1.3 → 1.2.0-dev.bed98df
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 +19 -1
- package/dist/version.json +3 -3
- 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
|
@@ -24,11 +24,18 @@ export declare class Client {
|
|
|
24
24
|
*/
|
|
25
25
|
inboxState(refreshFromNetwork: boolean): Promise<InboxState>
|
|
26
26
|
getLatestInboxState(inboxId: string): Promise<InboxState>
|
|
27
|
+
/**
|
|
28
|
+
* Get key package statuses for a list of installation IDs.
|
|
29
|
+
*
|
|
30
|
+
* Returns a JavaScript Object mapping installation ID strings to KeyPackageStatus objects.
|
|
31
|
+
*/
|
|
32
|
+
getKeyPackageStatusesForInstallationIds(installationIds: Array<string>): Promise<Record<string, KeyPackageStatus>>
|
|
27
33
|
createInboxSignatureText(): Promise<string | null>
|
|
28
34
|
addIdentifierSignatureText(newIdentifier: Identifier): Promise<string>
|
|
29
35
|
revokeIdentifierSignatureText(identifier: Identifier): Promise<string>
|
|
30
36
|
revokeAllOtherInstallationsSignatureText(): Promise<string>
|
|
31
37
|
revokeInstallationsSignatureText(installationIds: Array<Uint8Array>): Promise<string>
|
|
38
|
+
changeRecoveryIdentifierSignatureText(newRecoveryIdentifier: Identifier): Promise<string>
|
|
32
39
|
addEcdsaSignature(signatureType: SignatureRequestType, signatureBytes: Uint8Array): Promise<void>
|
|
33
40
|
addPasskeySignature(signatureType: SignatureRequestType, signature: PasskeySignature): Promise<void>
|
|
34
41
|
addScwSignature(signatureType: SignatureRequestType, signatureBytes: Uint8Array, chainId: bigint, blockNumber?: bigint | undefined | null): Promise<void>
|
|
@@ -288,6 +295,16 @@ export declare export declare function isAddressAuthorized(host: string, inboxId
|
|
|
288
295
|
|
|
289
296
|
export declare export declare function isInstallationAuthorized(host: string, inboxId: string, installationId: Uint8Array): Promise<boolean>
|
|
290
297
|
|
|
298
|
+
export interface KeyPackageStatus {
|
|
299
|
+
lifetime?: Lifetime
|
|
300
|
+
validationError?: string
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
export interface Lifetime {
|
|
304
|
+
notBefore: bigint
|
|
305
|
+
notAfter: bigint
|
|
306
|
+
}
|
|
307
|
+
|
|
291
308
|
export interface ListConversationsOptions {
|
|
292
309
|
consentStates?: Array<ConsentState>
|
|
293
310
|
createdAfterNs?: number
|
|
@@ -432,7 +449,8 @@ export declare const enum SignatureRequestType {
|
|
|
432
449
|
AddWallet = 0,
|
|
433
450
|
CreateInbox = 1,
|
|
434
451
|
RevokeWallet = 2,
|
|
435
|
-
RevokeInstallations = 3
|
|
452
|
+
RevokeInstallations = 3,
|
|
453
|
+
ChangeRecoveryIdentifier = 4
|
|
436
454
|
}
|
|
437
455
|
|
|
438
456
|
export declare const enum SortDirection {
|
package/dist/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xmtp/node-bindings",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0-dev.bed98df",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://git@github.com/xmtp/libxmtp.git",
|
|
@@ -48,7 +48,7 @@
|
|
|
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
54
|
"vitest": "^3.0.4",
|