@xmtp/node-bindings 0.0.27 → 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 -2
- 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
|
@@ -13,8 +13,6 @@ export declare class Client {
|
|
|
13
13
|
sendConsentSyncRequest(): Promise<void>
|
|
14
14
|
findInboxIdByAddress(address: string): Promise<string | null>
|
|
15
15
|
addressesFromInboxId(refreshFromNetwork: boolean, inboxIds: Array<string>): Promise<Array<InboxState>>
|
|
16
|
-
isAddressAuthorized(inboxId: string, address: string): Promise<boolean>
|
|
17
|
-
isInstallationAuthorized(inboxId: string, installationId: Uint8Array): Promise<boolean>
|
|
18
16
|
setConsentStates(records: Array<Consent>): Promise<void>
|
|
19
17
|
getConsentState(entityType: ConsentEntityType, entity: string): Promise<ConsentState>
|
|
20
18
|
/**
|
|
@@ -74,6 +72,7 @@ export declare class Conversation {
|
|
|
74
72
|
consentState(): ConsentState
|
|
75
73
|
updateConsentState(state: ConsentState): void
|
|
76
74
|
dmPeerInboxId(): string
|
|
75
|
+
updatePermissionPolicy(permissionUpdateType: PermissionUpdateType, permissionPolicyOption: PermissionPolicy, metadataField?: MetadataField | undefined | null): Promise<void>
|
|
77
76
|
}
|
|
78
77
|
|
|
79
78
|
export declare class Conversations {
|
|
@@ -177,6 +176,7 @@ export interface CreateGroupOptions {
|
|
|
177
176
|
groupImageUrlSquare?: string
|
|
178
177
|
groupDescription?: string
|
|
179
178
|
groupPinnedFrameUrl?: string
|
|
179
|
+
customPermissionPolicySet?: PermissionPolicySet
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
export declare const enum DeliveryStatus {
|
|
@@ -276,6 +276,13 @@ export interface Message {
|
|
|
276
276
|
deliveryStatus: DeliveryStatus
|
|
277
277
|
}
|
|
278
278
|
|
|
279
|
+
export declare const enum MetadataField {
|
|
280
|
+
GroupName = 0,
|
|
281
|
+
Description = 1,
|
|
282
|
+
ImageUrlSquare = 2,
|
|
283
|
+
PinnedFrameUrl = 3
|
|
284
|
+
}
|
|
285
|
+
|
|
279
286
|
export declare const enum PermissionLevel {
|
|
280
287
|
Member = 0,
|
|
281
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 }
|