@xmtp/node-bindings 0.0.33 → 0.0.35

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.
Binary file
package/dist/index.d.ts CHANGED
@@ -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 asyncronously wait for it to shutdown
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,7 @@ export interface CreateGroupOptions {
179
179
  groupDescription?: string
180
180
  groupPinnedFrameUrl?: string
181
181
  customPermissionPolicySet?: PermissionPolicySet
182
+ messageDisappearingSettings?: MessageDisappearingSettings
182
183
  }
183
184
 
184
185
  export declare const enum DeliveryStatus {
@@ -211,7 +212,7 @@ export declare const enum GroupMessageKind {
211
212
  }
212
213
 
213
214
  export declare const enum GroupPermissionsOptions {
214
- AllMembers = 0,
215
+ Default = 0,
215
216
  AdminOnly = 1,
216
217
  CustomPolicy = 2
217
218
  }
@@ -284,6 +285,19 @@ export interface Message {
284
285
  deliveryStatus: DeliveryStatus
285
286
  }
286
287
 
288
+ /**
289
+ * Settings for disappearing messages in a conversation.
290
+ *
291
+ * # Fields
292
+ *
293
+ * * `from_ns` - The timestamp (in nanoseconds) from when messages should be tracked for deletion.
294
+ * * `in_ns` - The duration (in nanoseconds) after which tracked messages will be deleted.
295
+ */
296
+ export interface MessageDisappearingSettings {
297
+ fromNs: number
298
+ inNs: number
299
+ }
300
+
287
301
  export declare const enum MetadataField {
288
302
  GroupName = 0,
289
303
  Description = 1,
@@ -315,6 +329,7 @@ export interface PermissionPolicySet {
315
329
  updateGroupDescriptionPolicy: PermissionPolicy
316
330
  updateGroupImageUrlSquarePolicy: PermissionPolicy
317
331
  updateGroupPinnedFrameUrlPolicy: PermissionPolicy
332
+ updateMessageDisappearingPolicy: PermissionPolicy
318
333
  }
319
334
 
320
335
  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.33",
3
+ "version": "0.0.35",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://git@github.com/xmtp/libxmtp.git",
@@ -36,20 +36,21 @@
36
36
  "test:clean": "rm -rf test/*.db3*"
37
37
  },
38
38
  "devDependencies": {
39
- "@ianvs/prettier-plugin-sort-imports": "^4.4.0",
39
+ "@ianvs/prettier-plugin-sort-imports": "^4.4.1",
40
40
  "@napi-rs/cli": "^3.0.0-alpha.64",
41
- "@types/node": "^22.10.1",
41
+ "@types/node": "^22.12.0",
42
42
  "@types/uuid": "^10.0.0",
43
- "prettier": "^3.4.1",
44
- "prettier-plugin-packagejson": "^2.5.3",
45
- "typescript": "^5.7.2",
46
- "uuid": "^11.0.3",
47
- "viem": "^2.22.2",
48
- "vite": "^6.0.1",
49
- "vite-tsconfig-paths": "^5.1.2",
50
- "vitest": "^2.1.5"
43
+ "fast-glob": "^3.3.3",
44
+ "prettier": "^3.4.2",
45
+ "prettier-plugin-packagejson": "^2.5.8",
46
+ "typescript": "^5.7.3",
47
+ "uuid": "^11.0.5",
48
+ "viem": "^2.22.17",
49
+ "vite": "^6.0.11",
50
+ "vite-tsconfig-paths": "^5.1.4",
51
+ "vitest": "^3.0.4"
51
52
  },
52
- "packageManager": "yarn@4.5.1",
53
+ "packageManager": "yarn@4.6.0",
53
54
  "engines": {
54
55
  "node": ">=18"
55
56
  },