@xmtp/node-bindings 0.0.32 → 0.0.34
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 +10 -6
- package/package.json +3 -3
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/index.d.ts
CHANGED
|
@@ -85,9 +85,9 @@ export declare class Conversations {
|
|
|
85
85
|
processStreamedWelcomeMessage(envelopeBytes: Uint8Array): Promise<Conversation>
|
|
86
86
|
sync(): Promise<void>
|
|
87
87
|
syncAllConversations(): Promise<bigint>
|
|
88
|
-
list(opts?: ListConversationsOptions | undefined | null):
|
|
89
|
-
listGroups(opts?: ListConversationsOptions | undefined | null):
|
|
90
|
-
listDms(opts?: ListConversationsOptions | undefined | null):
|
|
88
|
+
list(opts?: ListConversationsOptions | undefined | null): Array<Conversation>
|
|
89
|
+
listGroups(opts?: ListConversationsOptions | undefined | null): Array<Conversation>
|
|
90
|
+
listDms(opts?: ListConversationsOptions | undefined | null): Array<Conversation>
|
|
91
91
|
getHmacKeys(): Record<string, Array<HmacKey>>
|
|
92
92
|
stream(callback: (err: null | Error, result: Conversation | undefined) => void): StreamCloser
|
|
93
93
|
streamGroups(callback: (err: null | Error, result: Conversation | undefined) => void): StreamCloser
|
|
@@ -124,7 +124,7 @@ export declare class StreamCloser {
|
|
|
124
124
|
/**
|
|
125
125
|
* End the stream and `await` for it to shutdown
|
|
126
126
|
* Returns the `Result` of the task.
|
|
127
|
-
* End the stream and
|
|
127
|
+
* End the stream and asynchronously wait for it to shutdown
|
|
128
128
|
*/
|
|
129
129
|
endAndWait(): Promise<void>
|
|
130
130
|
waitForReady(): Promise<void>
|
|
@@ -179,6 +179,8 @@ export interface CreateGroupOptions {
|
|
|
179
179
|
groupDescription?: string
|
|
180
180
|
groupPinnedFrameUrl?: string
|
|
181
181
|
customPermissionPolicySet?: PermissionPolicySet
|
|
182
|
+
messageExpirationFromMs?: number
|
|
183
|
+
messageExpirationMs?: number
|
|
182
184
|
}
|
|
183
185
|
|
|
184
186
|
export declare const enum DeliveryStatus {
|
|
@@ -211,7 +213,7 @@ export declare const enum GroupMessageKind {
|
|
|
211
213
|
}
|
|
212
214
|
|
|
213
215
|
export declare const enum GroupPermissionsOptions {
|
|
214
|
-
|
|
216
|
+
Default = 0,
|
|
215
217
|
AdminOnly = 1,
|
|
216
218
|
CustomPolicy = 2
|
|
217
219
|
}
|
|
@@ -229,8 +231,9 @@ export interface InboxState {
|
|
|
229
231
|
}
|
|
230
232
|
|
|
231
233
|
export interface Installation {
|
|
232
|
-
|
|
234
|
+
bytes: Uint8Array
|
|
233
235
|
clientTimestampNs?: bigint
|
|
236
|
+
id: string
|
|
234
237
|
}
|
|
235
238
|
|
|
236
239
|
export declare export declare function isAddressAuthorized(host: string, inboxId: string, address: string): Promise<boolean>
|
|
@@ -314,6 +317,7 @@ export interface PermissionPolicySet {
|
|
|
314
317
|
updateGroupDescriptionPolicy: PermissionPolicy
|
|
315
318
|
updateGroupImageUrlSquarePolicy: PermissionPolicy
|
|
316
319
|
updateGroupPinnedFrameUrlPolicy: PermissionPolicy
|
|
320
|
+
updateMessageExpirationMsPolicy: PermissionPolicy
|
|
317
321
|
}
|
|
318
322
|
|
|
319
323
|
export declare const enum 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.34",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://git@github.com/xmtp/libxmtp.git",
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
"prettier-plugin-packagejson": "^2.5.3",
|
|
45
45
|
"typescript": "^5.7.2",
|
|
46
46
|
"uuid": "^11.0.3",
|
|
47
|
-
"viem": "^2.
|
|
47
|
+
"viem": "^2.22.2",
|
|
48
48
|
"vite": "^6.0.1",
|
|
49
49
|
"vite-tsconfig-paths": "^5.1.2",
|
|
50
|
-
"vitest": "^
|
|
50
|
+
"vitest": "^3.0.2"
|
|
51
51
|
},
|
|
52
52
|
"packageManager": "yarn@4.5.1",
|
|
53
53
|
"engines": {
|