@xmtp/node-bindings 0.0.28 → 0.0.29
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 +9 -0
- package/dist/index.js +2 -1
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/index.d.ts
CHANGED
|
@@ -72,6 +72,7 @@ export declare class Conversation {
|
|
|
72
72
|
consentState(): ConsentState
|
|
73
73
|
updateConsentState(state: ConsentState): void
|
|
74
74
|
dmPeerInboxId(): string
|
|
75
|
+
updatePermissionPolicy(permissionUpdateType: PermissionUpdateType, permissionPolicyOption: PermissionPolicy, metadataField?: MetadataField | undefined | null): Promise<void>
|
|
75
76
|
}
|
|
76
77
|
|
|
77
78
|
export declare class Conversations {
|
|
@@ -175,6 +176,7 @@ export interface CreateGroupOptions {
|
|
|
175
176
|
groupImageUrlSquare?: string
|
|
176
177
|
groupDescription?: string
|
|
177
178
|
groupPinnedFrameUrl?: string
|
|
179
|
+
customPermissionPolicySet?: PermissionPolicySet
|
|
178
180
|
}
|
|
179
181
|
|
|
180
182
|
export declare const enum DeliveryStatus {
|
|
@@ -274,6 +276,13 @@ export interface Message {
|
|
|
274
276
|
deliveryStatus: DeliveryStatus
|
|
275
277
|
}
|
|
276
278
|
|
|
279
|
+
export declare const enum MetadataField {
|
|
280
|
+
GroupName = 0,
|
|
281
|
+
Description = 1,
|
|
282
|
+
ImageUrlSquare = 2,
|
|
283
|
+
PinnedFrameUrl = 3
|
|
284
|
+
}
|
|
285
|
+
|
|
277
286
|
export declare const enum PermissionLevel {
|
|
278
287
|
Member = 0,
|
|
279
288
|
Admin = 1,
|
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, Conversations, GroupMember, GroupMetadata, GroupPermissions, StreamCloser, ConsentEntityType, ConsentState, ConversationType, createClient, DeliveryStatus, generateInboxId, getInboxIdForAddress, GroupMembershipState, GroupMessageKind, GroupPermissionsOptions, isAddressAuthorized, isInstallationAuthorized, LogLevel, PermissionLevel, PermissionPolicy, PermissionUpdateType, SignatureRequestType, SortDirection, verifySignedWithPublicKey } = nativeBinding
|
|
368
|
+
const { Client, Conversation, Conversations, GroupMember, GroupMetadata, GroupPermissions, StreamCloser, ConsentEntityType, ConsentState, ConversationType, createClient, DeliveryStatus, generateInboxId, getInboxIdForAddress, GroupMembershipState, GroupMessageKind, GroupPermissionsOptions, isAddressAuthorized, isInstallationAuthorized, LogLevel, MetadataField, PermissionLevel, PermissionPolicy, PermissionUpdateType, SignatureRequestType, SortDirection, verifySignedWithPublicKey } = nativeBinding
|
|
369
369
|
export { Client }
|
|
370
370
|
export { Conversation }
|
|
371
371
|
export { Conversations }
|
|
@@ -386,6 +386,7 @@ export { GroupPermissionsOptions }
|
|
|
386
386
|
export { isAddressAuthorized }
|
|
387
387
|
export { isInstallationAuthorized }
|
|
388
388
|
export { LogLevel }
|
|
389
|
+
export { MetadataField }
|
|
389
390
|
export { PermissionLevel }
|
|
390
391
|
export { PermissionPolicy }
|
|
391
392
|
export { PermissionUpdateType }
|