@xmtp/node-bindings 0.0.34 → 0.0.37

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
@@ -63,8 +63,6 @@ export declare class Conversation {
63
63
  groupImageUrlSquare(): string
64
64
  updateGroupDescription(groupDescription: string): Promise<void>
65
65
  groupDescription(): string
66
- updateGroupPinnedFrameUrl(pinnedFrameUrl: string): Promise<void>
67
- groupPinnedFrameUrl(): string
68
66
  stream(callback: (err: null | Error, result: Message | undefined) => void): StreamCloser
69
67
  createdAtNs(): number
70
68
  isActive(): boolean
@@ -177,10 +175,8 @@ export interface CreateGroupOptions {
177
175
  groupName?: string
178
176
  groupImageUrlSquare?: string
179
177
  groupDescription?: string
180
- groupPinnedFrameUrl?: string
181
178
  customPermissionPolicySet?: PermissionPolicySet
182
- messageExpirationFromMs?: number
183
- messageExpirationMs?: number
179
+ messageDisappearingSettings?: MessageDisappearingSettings
184
180
  }
185
181
 
186
182
  export declare const enum DeliveryStatus {
@@ -286,11 +282,23 @@ export interface Message {
286
282
  deliveryStatus: DeliveryStatus
287
283
  }
288
284
 
285
+ /**
286
+ * Settings for disappearing messages in a conversation.
287
+ *
288
+ * # Fields
289
+ *
290
+ * * `from_ns` - The timestamp (in nanoseconds) from when messages should be tracked for deletion.
291
+ * * `in_ns` - The duration (in nanoseconds) after which tracked messages will be deleted.
292
+ */
293
+ export interface MessageDisappearingSettings {
294
+ fromNs: number
295
+ inNs: number
296
+ }
297
+
289
298
  export declare const enum MetadataField {
290
299
  GroupName = 0,
291
300
  Description = 1,
292
- ImageUrlSquare = 2,
293
- PinnedFrameUrl = 3
301
+ ImageUrlSquare = 2
294
302
  }
295
303
 
296
304
  export declare const enum PermissionLevel {
@@ -316,8 +324,7 @@ export interface PermissionPolicySet {
316
324
  updateGroupNamePolicy: PermissionPolicy
317
325
  updateGroupDescriptionPolicy: PermissionPolicy
318
326
  updateGroupImageUrlSquarePolicy: PermissionPolicy
319
- updateGroupPinnedFrameUrlPolicy: PermissionPolicy
320
- updateMessageExpirationMsPolicy: PermissionPolicy
327
+ updateMessageDisappearingPolicy: PermissionPolicy
321
328
  }
322
329
 
323
330
  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.34",
3
+ "version": "0.0.37",
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.13.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": "^3.0.2"
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
  },