New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@xmtp/proto

Package Overview
Dependencies
Maintainers
6
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xmtp/proto - npm Package Compare versions

Comparing version 3.42.0 to 3.43.0

2

package.json
{
"name": "@xmtp/proto",
"version": "3.42.0",
"version": "3.43.0",
"description": "Protobuf client and generated classes for GRPC API",

@@ -5,0 +5,0 @@ "main": "./ts/dist/cjs/node.js",

@@ -1,2 +0,2 @@

This is the authoritative source of information about the XTMP protocol itself. It contains
This is the authoritative source of information about the XMTP protocol itself. It contains

@@ -3,0 +3,0 @@ * an overview of the protocol [PROTOCOL.md](https://github.com/xmtp/proto/blob/main/PROTOCOL.md)

@@ -6,3 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.PrivatePreferencesPayload = exports.PrivatePreferencesAction_Block = exports.PrivatePreferencesAction_Allow = exports.PrivatePreferencesAction = exports.protobufPackage = void 0;
exports.PrivatePreferencesPayload = exports.PrivatePreferencesAction_DenyGroup = exports.PrivatePreferencesAction_AllowGroup = exports.PrivatePreferencesAction_DenyDM = exports.PrivatePreferencesAction_AllowDM = exports.PrivatePreferencesAction = exports.protobufPackage = void 0;
/* eslint-disable */

@@ -14,12 +14,23 @@ const long_1 = __importDefault(require("long"));

function createBasePrivatePreferencesAction() {
return { allow: undefined, block: undefined };
return {
allowDm: undefined,
denyDm: undefined,
allowGroup: undefined,
denyGroup: undefined,
};
}
exports.PrivatePreferencesAction = {
encode(message, writer = minimal_1.default.Writer.create()) {
if (message.allow !== undefined) {
exports.PrivatePreferencesAction_Allow.encode(message.allow, writer.uint32(10).fork()).ldelim();
if (message.allowDm !== undefined) {
exports.PrivatePreferencesAction_AllowDM.encode(message.allowDm, writer.uint32(10).fork()).ldelim();
}
if (message.block !== undefined) {
exports.PrivatePreferencesAction_Block.encode(message.block, writer.uint32(18).fork()).ldelim();
if (message.denyDm !== undefined) {
exports.PrivatePreferencesAction_DenyDM.encode(message.denyDm, writer.uint32(18).fork()).ldelim();
}
if (message.allowGroup !== undefined) {
exports.PrivatePreferencesAction_AllowGroup.encode(message.allowGroup, writer.uint32(26).fork()).ldelim();
}
if (message.denyGroup !== undefined) {
exports.PrivatePreferencesAction_DenyGroup.encode(message.denyGroup, writer.uint32(34).fork()).ldelim();
}
return writer;

@@ -35,7 +46,13 @@ },

case 1:
message.allow = exports.PrivatePreferencesAction_Allow.decode(reader, reader.uint32());
message.allowDm = exports.PrivatePreferencesAction_AllowDM.decode(reader, reader.uint32());
break;
case 2:
message.block = exports.PrivatePreferencesAction_Block.decode(reader, reader.uint32());
message.denyDm = exports.PrivatePreferencesAction_DenyDM.decode(reader, reader.uint32());
break;
case 3:
message.allowGroup = exports.PrivatePreferencesAction_AllowGroup.decode(reader, reader.uint32());
break;
case 4:
message.denyGroup = exports.PrivatePreferencesAction_DenyGroup.decode(reader, reader.uint32());
break;
default:

@@ -50,8 +67,14 @@ reader.skipType(tag & 7);

return {
allow: isSet(object.allow)
? exports.PrivatePreferencesAction_Allow.fromJSON(object.allow)
allowDm: isSet(object.allowDm)
? exports.PrivatePreferencesAction_AllowDM.fromJSON(object.allowDm)
: undefined,
block: isSet(object.block)
? exports.PrivatePreferencesAction_Block.fromJSON(object.block)
denyDm: isSet(object.denyDm)
? exports.PrivatePreferencesAction_DenyDM.fromJSON(object.denyDm)
: undefined,
allowGroup: isSet(object.allowGroup)
? exports.PrivatePreferencesAction_AllowGroup.fromJSON(object.allowGroup)
: undefined,
denyGroup: isSet(object.denyGroup)
? exports.PrivatePreferencesAction_DenyGroup.fromJSON(object.denyGroup)
: undefined,
};

@@ -61,10 +84,18 @@ },

const obj = {};
message.allow !== undefined &&
(obj.allow = message.allow
? exports.PrivatePreferencesAction_Allow.toJSON(message.allow)
message.allowDm !== undefined &&
(obj.allowDm = message.allowDm
? exports.PrivatePreferencesAction_AllowDM.toJSON(message.allowDm)
: undefined);
message.block !== undefined &&
(obj.block = message.block
? exports.PrivatePreferencesAction_Block.toJSON(message.block)
message.denyDm !== undefined &&
(obj.denyDm = message.denyDm
? exports.PrivatePreferencesAction_DenyDM.toJSON(message.denyDm)
: undefined);
message.allowGroup !== undefined &&
(obj.allowGroup = message.allowGroup
? exports.PrivatePreferencesAction_AllowGroup.toJSON(message.allowGroup)
: undefined);
message.denyGroup !== undefined &&
(obj.denyGroup = message.denyGroup
? exports.PrivatePreferencesAction_DenyGroup.toJSON(message.denyGroup)
: undefined);
return obj;

@@ -74,17 +105,25 @@ },

const message = createBasePrivatePreferencesAction();
message.allow =
object.allow !== undefined && object.allow !== null
? exports.PrivatePreferencesAction_Allow.fromPartial(object.allow)
message.allowDm =
object.allowDm !== undefined && object.allowDm !== null
? exports.PrivatePreferencesAction_AllowDM.fromPartial(object.allowDm)
: undefined;
message.block =
object.block !== undefined && object.block !== null
? exports.PrivatePreferencesAction_Block.fromPartial(object.block)
message.denyDm =
object.denyDm !== undefined && object.denyDm !== null
? exports.PrivatePreferencesAction_DenyDM.fromPartial(object.denyDm)
: undefined;
message.allowGroup =
object.allowGroup !== undefined && object.allowGroup !== null
? exports.PrivatePreferencesAction_AllowGroup.fromPartial(object.allowGroup)
: undefined;
message.denyGroup =
object.denyGroup !== undefined && object.denyGroup !== null
? exports.PrivatePreferencesAction_DenyGroup.fromPartial(object.denyGroup)
: undefined;
return message;
},
};
function createBasePrivatePreferencesAction_Allow() {
function createBasePrivatePreferencesAction_AllowDM() {
return { walletAddresses: [] };
}
exports.PrivatePreferencesAction_Allow = {
exports.PrivatePreferencesAction_AllowDM = {
encode(message, writer = minimal_1.default.Writer.create()) {

@@ -99,3 +138,3 @@ for (const v of message.walletAddresses) {

let end = length === undefined ? reader.len : reader.pos + length;
const message = createBasePrivatePreferencesAction_Allow();
const message = createBasePrivatePreferencesAction_AllowDM();
while (reader.pos < end) {

@@ -133,3 +172,3 @@ const tag = reader.uint32();

var _a;
const message = createBasePrivatePreferencesAction_Allow();
const message = createBasePrivatePreferencesAction_AllowDM();
message.walletAddresses = ((_a = object.walletAddresses) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];

@@ -139,6 +178,6 @@ return message;

};
function createBasePrivatePreferencesAction_Block() {
function createBasePrivatePreferencesAction_DenyDM() {
return { walletAddresses: [] };
}
exports.PrivatePreferencesAction_Block = {
exports.PrivatePreferencesAction_DenyDM = {
encode(message, writer = minimal_1.default.Writer.create()) {

@@ -153,3 +192,3 @@ for (const v of message.walletAddresses) {

let end = length === undefined ? reader.len : reader.pos + length;
const message = createBasePrivatePreferencesAction_Block();
const message = createBasePrivatePreferencesAction_DenyDM();
while (reader.pos < end) {

@@ -187,3 +226,3 @@ const tag = reader.uint32();

var _a;
const message = createBasePrivatePreferencesAction_Block();
const message = createBasePrivatePreferencesAction_DenyDM();
message.walletAddresses = ((_a = object.walletAddresses) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];

@@ -193,2 +232,104 @@ return message;

};
function createBasePrivatePreferencesAction_AllowGroup() {
return { groupIds: [] };
}
exports.PrivatePreferencesAction_AllowGroup = {
encode(message, writer = minimal_1.default.Writer.create()) {
for (const v of message.groupIds) {
writer.uint32(10).bytes(v);
}
return writer;
},
decode(input, length) {
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
let end = length === undefined ? reader.len : reader.pos + length;
const message = createBasePrivatePreferencesAction_AllowGroup();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
message.groupIds.push(reader.bytes());
break;
default:
reader.skipType(tag & 7);
break;
}
}
return message;
},
fromJSON(object) {
return {
groupIds: Array.isArray(object === null || object === void 0 ? void 0 : object.groupIds)
? object.groupIds.map((e) => bytesFromBase64(e))
: [],
};
},
toJSON(message) {
const obj = {};
if (message.groupIds) {
obj.groupIds = message.groupIds.map((e) => base64FromBytes(e !== undefined ? e : new Uint8Array()));
}
else {
obj.groupIds = [];
}
return obj;
},
fromPartial(object) {
var _a;
const message = createBasePrivatePreferencesAction_AllowGroup();
message.groupIds = ((_a = object.groupIds) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
return message;
},
};
function createBasePrivatePreferencesAction_DenyGroup() {
return { groupIds: [] };
}
exports.PrivatePreferencesAction_DenyGroup = {
encode(message, writer = minimal_1.default.Writer.create()) {
for (const v of message.groupIds) {
writer.uint32(10).bytes(v);
}
return writer;
},
decode(input, length) {
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
let end = length === undefined ? reader.len : reader.pos + length;
const message = createBasePrivatePreferencesAction_DenyGroup();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
message.groupIds.push(reader.bytes());
break;
default:
reader.skipType(tag & 7);
break;
}
}
return message;
},
fromJSON(object) {
return {
groupIds: Array.isArray(object === null || object === void 0 ? void 0 : object.groupIds)
? object.groupIds.map((e) => bytesFromBase64(e))
: [],
};
},
toJSON(message) {
const obj = {};
if (message.groupIds) {
obj.groupIds = message.groupIds.map((e) => base64FromBytes(e !== undefined ? e : new Uint8Array()));
}
else {
obj.groupIds = [];
}
return obj;
},
fromPartial(object) {
var _a;
const message = createBasePrivatePreferencesAction_DenyGroup();
message.groupIds = ((_a = object.groupIds) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
return message;
},
};
function createBasePrivatePreferencesPayload() {

@@ -241,2 +382,38 @@ return { v1: undefined };

};
var globalThis = (() => {
if (typeof globalThis !== "undefined")
return globalThis;
if (typeof self !== "undefined")
return self;
if (typeof window !== "undefined")
return window;
if (typeof global !== "undefined")
return global;
throw "Unable to locate global object";
})();
function bytesFromBase64(b64) {
if (globalThis.Buffer) {
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
}
else {
const bin = globalThis.atob(b64);
const arr = new Uint8Array(bin.length);
for (let i = 0; i < bin.length; ++i) {
arr[i] = bin.charCodeAt(i);
}
return arr;
}
}
function base64FromBytes(arr) {
if (globalThis.Buffer) {
return globalThis.Buffer.from(arr).toString("base64");
}
else {
const bin = [];
arr.forEach((byte) => {
bin.push(String.fromCharCode(byte));
});
return globalThis.btoa(bin.join(""));
}
}
if (minimal_1.default.util.Long !== long_1.default) {

@@ -243,0 +420,0 @@ minimal_1.default.util.Long = long_1.default;

@@ -7,12 +7,23 @@ /* eslint-disable */

function createBasePrivatePreferencesAction() {
return { allow: undefined, block: undefined };
return {
allowDm: undefined,
denyDm: undefined,
allowGroup: undefined,
denyGroup: undefined,
};
}
export const PrivatePreferencesAction = {
encode(message, writer = _m0.Writer.create()) {
if (message.allow !== undefined) {
PrivatePreferencesAction_Allow.encode(message.allow, writer.uint32(10).fork()).ldelim();
if (message.allowDm !== undefined) {
PrivatePreferencesAction_AllowDM.encode(message.allowDm, writer.uint32(10).fork()).ldelim();
}
if (message.block !== undefined) {
PrivatePreferencesAction_Block.encode(message.block, writer.uint32(18).fork()).ldelim();
if (message.denyDm !== undefined) {
PrivatePreferencesAction_DenyDM.encode(message.denyDm, writer.uint32(18).fork()).ldelim();
}
if (message.allowGroup !== undefined) {
PrivatePreferencesAction_AllowGroup.encode(message.allowGroup, writer.uint32(26).fork()).ldelim();
}
if (message.denyGroup !== undefined) {
PrivatePreferencesAction_DenyGroup.encode(message.denyGroup, writer.uint32(34).fork()).ldelim();
}
return writer;

@@ -28,7 +39,13 @@ },

case 1:
message.allow = PrivatePreferencesAction_Allow.decode(reader, reader.uint32());
message.allowDm = PrivatePreferencesAction_AllowDM.decode(reader, reader.uint32());
break;
case 2:
message.block = PrivatePreferencesAction_Block.decode(reader, reader.uint32());
message.denyDm = PrivatePreferencesAction_DenyDM.decode(reader, reader.uint32());
break;
case 3:
message.allowGroup = PrivatePreferencesAction_AllowGroup.decode(reader, reader.uint32());
break;
case 4:
message.denyGroup = PrivatePreferencesAction_DenyGroup.decode(reader, reader.uint32());
break;
default:

@@ -43,8 +60,14 @@ reader.skipType(tag & 7);

return {
allow: isSet(object.allow)
? PrivatePreferencesAction_Allow.fromJSON(object.allow)
allowDm: isSet(object.allowDm)
? PrivatePreferencesAction_AllowDM.fromJSON(object.allowDm)
: undefined,
block: isSet(object.block)
? PrivatePreferencesAction_Block.fromJSON(object.block)
denyDm: isSet(object.denyDm)
? PrivatePreferencesAction_DenyDM.fromJSON(object.denyDm)
: undefined,
allowGroup: isSet(object.allowGroup)
? PrivatePreferencesAction_AllowGroup.fromJSON(object.allowGroup)
: undefined,
denyGroup: isSet(object.denyGroup)
? PrivatePreferencesAction_DenyGroup.fromJSON(object.denyGroup)
: undefined,
};

@@ -54,10 +77,18 @@ },

const obj = {};
message.allow !== undefined &&
(obj.allow = message.allow
? PrivatePreferencesAction_Allow.toJSON(message.allow)
message.allowDm !== undefined &&
(obj.allowDm = message.allowDm
? PrivatePreferencesAction_AllowDM.toJSON(message.allowDm)
: undefined);
message.block !== undefined &&
(obj.block = message.block
? PrivatePreferencesAction_Block.toJSON(message.block)
message.denyDm !== undefined &&
(obj.denyDm = message.denyDm
? PrivatePreferencesAction_DenyDM.toJSON(message.denyDm)
: undefined);
message.allowGroup !== undefined &&
(obj.allowGroup = message.allowGroup
? PrivatePreferencesAction_AllowGroup.toJSON(message.allowGroup)
: undefined);
message.denyGroup !== undefined &&
(obj.denyGroup = message.denyGroup
? PrivatePreferencesAction_DenyGroup.toJSON(message.denyGroup)
: undefined);
return obj;

@@ -67,17 +98,25 @@ },

const message = createBasePrivatePreferencesAction();
message.allow =
object.allow !== undefined && object.allow !== null
? PrivatePreferencesAction_Allow.fromPartial(object.allow)
message.allowDm =
object.allowDm !== undefined && object.allowDm !== null
? PrivatePreferencesAction_AllowDM.fromPartial(object.allowDm)
: undefined;
message.block =
object.block !== undefined && object.block !== null
? PrivatePreferencesAction_Block.fromPartial(object.block)
message.denyDm =
object.denyDm !== undefined && object.denyDm !== null
? PrivatePreferencesAction_DenyDM.fromPartial(object.denyDm)
: undefined;
message.allowGroup =
object.allowGroup !== undefined && object.allowGroup !== null
? PrivatePreferencesAction_AllowGroup.fromPartial(object.allowGroup)
: undefined;
message.denyGroup =
object.denyGroup !== undefined && object.denyGroup !== null
? PrivatePreferencesAction_DenyGroup.fromPartial(object.denyGroup)
: undefined;
return message;
},
};
function createBasePrivatePreferencesAction_Allow() {
function createBasePrivatePreferencesAction_AllowDM() {
return { walletAddresses: [] };
}
export const PrivatePreferencesAction_Allow = {
export const PrivatePreferencesAction_AllowDM = {
encode(message, writer = _m0.Writer.create()) {

@@ -92,3 +131,3 @@ for (const v of message.walletAddresses) {

let end = length === undefined ? reader.len : reader.pos + length;
const message = createBasePrivatePreferencesAction_Allow();
const message = createBasePrivatePreferencesAction_AllowDM();
while (reader.pos < end) {

@@ -126,3 +165,3 @@ const tag = reader.uint32();

var _a;
const message = createBasePrivatePreferencesAction_Allow();
const message = createBasePrivatePreferencesAction_AllowDM();
message.walletAddresses = ((_a = object.walletAddresses) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];

@@ -132,6 +171,6 @@ return message;

};
function createBasePrivatePreferencesAction_Block() {
function createBasePrivatePreferencesAction_DenyDM() {
return { walletAddresses: [] };
}
export const PrivatePreferencesAction_Block = {
export const PrivatePreferencesAction_DenyDM = {
encode(message, writer = _m0.Writer.create()) {

@@ -146,3 +185,3 @@ for (const v of message.walletAddresses) {

let end = length === undefined ? reader.len : reader.pos + length;
const message = createBasePrivatePreferencesAction_Block();
const message = createBasePrivatePreferencesAction_DenyDM();
while (reader.pos < end) {

@@ -180,3 +219,3 @@ const tag = reader.uint32();

var _a;
const message = createBasePrivatePreferencesAction_Block();
const message = createBasePrivatePreferencesAction_DenyDM();
message.walletAddresses = ((_a = object.walletAddresses) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];

@@ -186,2 +225,104 @@ return message;

};
function createBasePrivatePreferencesAction_AllowGroup() {
return { groupIds: [] };
}
export const PrivatePreferencesAction_AllowGroup = {
encode(message, writer = _m0.Writer.create()) {
for (const v of message.groupIds) {
writer.uint32(10).bytes(v);
}
return writer;
},
decode(input, length) {
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
let end = length === undefined ? reader.len : reader.pos + length;
const message = createBasePrivatePreferencesAction_AllowGroup();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
message.groupIds.push(reader.bytes());
break;
default:
reader.skipType(tag & 7);
break;
}
}
return message;
},
fromJSON(object) {
return {
groupIds: Array.isArray(object === null || object === void 0 ? void 0 : object.groupIds)
? object.groupIds.map((e) => bytesFromBase64(e))
: [],
};
},
toJSON(message) {
const obj = {};
if (message.groupIds) {
obj.groupIds = message.groupIds.map((e) => base64FromBytes(e !== undefined ? e : new Uint8Array()));
}
else {
obj.groupIds = [];
}
return obj;
},
fromPartial(object) {
var _a;
const message = createBasePrivatePreferencesAction_AllowGroup();
message.groupIds = ((_a = object.groupIds) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
return message;
},
};
function createBasePrivatePreferencesAction_DenyGroup() {
return { groupIds: [] };
}
export const PrivatePreferencesAction_DenyGroup = {
encode(message, writer = _m0.Writer.create()) {
for (const v of message.groupIds) {
writer.uint32(10).bytes(v);
}
return writer;
},
decode(input, length) {
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
let end = length === undefined ? reader.len : reader.pos + length;
const message = createBasePrivatePreferencesAction_DenyGroup();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
message.groupIds.push(reader.bytes());
break;
default:
reader.skipType(tag & 7);
break;
}
}
return message;
},
fromJSON(object) {
return {
groupIds: Array.isArray(object === null || object === void 0 ? void 0 : object.groupIds)
? object.groupIds.map((e) => bytesFromBase64(e))
: [],
};
},
toJSON(message) {
const obj = {};
if (message.groupIds) {
obj.groupIds = message.groupIds.map((e) => base64FromBytes(e !== undefined ? e : new Uint8Array()));
}
else {
obj.groupIds = [];
}
return obj;
},
fromPartial(object) {
var _a;
const message = createBasePrivatePreferencesAction_DenyGroup();
message.groupIds = ((_a = object.groupIds) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
return message;
},
};
function createBasePrivatePreferencesPayload() {

@@ -234,2 +375,38 @@ return { v1: undefined };

};
var globalThis = (() => {
if (typeof globalThis !== "undefined")
return globalThis;
if (typeof self !== "undefined")
return self;
if (typeof window !== "undefined")
return window;
if (typeof global !== "undefined")
return global;
throw "Unable to locate global object";
})();
function bytesFromBase64(b64) {
if (globalThis.Buffer) {
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
}
else {
const bin = globalThis.atob(b64);
const arr = new Uint8Array(bin.length);
for (let i = 0; i < bin.length; ++i) {
arr[i] = bin.charCodeAt(i);
}
return arr;
}
}
function base64FromBytes(arr) {
if (globalThis.Buffer) {
return globalThis.Buffer.from(arr).toString("base64");
}
else {
const bin = [];
arr.forEach((byte) => {
bin.push(String.fromCharCode(byte));
});
return globalThis.btoa(bin.join(""));
}
}
if (_m0.util.Long !== Long) {

@@ -236,0 +413,0 @@ _m0.util.Long = Long;

@@ -8,22 +8,35 @@ import Long from "long";

*
* Following definitions are not used in the protocol, instead
* they provide a way for encoding private keys for storage.
* Following definitions are not used in the protocol, instead they provide a
* way for encoding private keys for storage.
*/
/**
* PrivatePreferencesAction is a message used to update the client's
* preference store. The only current actions are allow and block.
* Other actions may be added later
* PrivatePreferencesAction is a message used to update the client's preference
* store.
*/
export interface PrivatePreferencesAction {
allow: PrivatePreferencesAction_Allow | undefined;
block: PrivatePreferencesAction_Block | undefined;
allowDm: PrivatePreferencesAction_AllowDM | undefined;
denyDm: PrivatePreferencesAction_DenyDM | undefined;
allowGroup: PrivatePreferencesAction_AllowGroup | undefined;
denyGroup: PrivatePreferencesAction_DenyGroup | undefined;
}
/** Add the given wallet addresses to the allow list */
export interface PrivatePreferencesAction_Allow {
/** Allow 1:1 direct message (DM) access */
export interface PrivatePreferencesAction_AllowDM {
/** Add the given wallet addresses to the allow list */
walletAddresses: string[];
}
/** Add the given wallet addresses to the block list */
export interface PrivatePreferencesAction_Block {
/** Deny (block) 1:1 direct message (DM) access */
export interface PrivatePreferencesAction_DenyDM {
/** Add the given wallet addresses to the deny list */
walletAddresses: string[];
}
/** Allow Group access */
export interface PrivatePreferencesAction_AllowGroup {
/** Add the given group_ids to the allow list */
groupIds: Uint8Array[];
}
/** Deny (deny) Group access */
export interface PrivatePreferencesAction_DenyGroup {
/** Add the given group_ids to the deny list */
groupIds: Uint8Array[];
}
/** The payload that goes over the wire */

@@ -39,26 +52,42 @@ export interface PrivatePreferencesPayload {

fromPartial<I extends {
allow?: {
allowDm?: {
walletAddresses?: string[] | undefined;
} | undefined;
block?: {
denyDm?: {
walletAddresses?: string[] | undefined;
} | undefined;
allowGroup?: {
groupIds?: Uint8Array[] | undefined;
} | undefined;
denyGroup?: {
groupIds?: Uint8Array[] | undefined;
} | undefined;
} & {
allow?: ({
allowDm?: ({
walletAddresses?: string[] | undefined;
} & {
walletAddresses?: (string[] & string[] & { [K in Exclude<keyof I["allow"]["walletAddresses"], keyof string[]>]: never; }) | undefined;
} & { [K_1 in Exclude<keyof I["allow"], "walletAddresses">]: never; }) | undefined;
block?: ({
walletAddresses?: (string[] & string[] & { [K in Exclude<keyof I["allowDm"]["walletAddresses"], keyof string[]>]: never; }) | undefined;
} & { [K_1 in Exclude<keyof I["allowDm"], "walletAddresses">]: never; }) | undefined;
denyDm?: ({
walletAddresses?: string[] | undefined;
} & {
walletAddresses?: (string[] & string[] & { [K_2 in Exclude<keyof I["block"]["walletAddresses"], keyof string[]>]: never; }) | undefined;
} & { [K_3 in Exclude<keyof I["block"], "walletAddresses">]: never; }) | undefined;
} & { [K_4 in Exclude<keyof I, keyof PrivatePreferencesAction>]: never; }>(object: I): PrivatePreferencesAction;
walletAddresses?: (string[] & string[] & { [K_2 in Exclude<keyof I["denyDm"]["walletAddresses"], keyof string[]>]: never; }) | undefined;
} & { [K_3 in Exclude<keyof I["denyDm"], "walletAddresses">]: never; }) | undefined;
allowGroup?: ({
groupIds?: Uint8Array[] | undefined;
} & {
groupIds?: (Uint8Array[] & Uint8Array[] & { [K_4 in Exclude<keyof I["allowGroup"]["groupIds"], keyof Uint8Array[]>]: never; }) | undefined;
} & { [K_5 in Exclude<keyof I["allowGroup"], "groupIds">]: never; }) | undefined;
denyGroup?: ({
groupIds?: Uint8Array[] | undefined;
} & {
groupIds?: (Uint8Array[] & Uint8Array[] & { [K_6 in Exclude<keyof I["denyGroup"]["groupIds"], keyof Uint8Array[]>]: never; }) | undefined;
} & { [K_7 in Exclude<keyof I["denyGroup"], "groupIds">]: never; }) | undefined;
} & { [K_8 in Exclude<keyof I, keyof PrivatePreferencesAction>]: never; }>(object: I): PrivatePreferencesAction;
};
export declare const PrivatePreferencesAction_Allow: {
encode(message: PrivatePreferencesAction_Allow, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): PrivatePreferencesAction_Allow;
fromJSON(object: any): PrivatePreferencesAction_Allow;
toJSON(message: PrivatePreferencesAction_Allow): unknown;
export declare const PrivatePreferencesAction_AllowDM: {
encode(message: PrivatePreferencesAction_AllowDM, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): PrivatePreferencesAction_AllowDM;
fromJSON(object: any): PrivatePreferencesAction_AllowDM;
toJSON(message: PrivatePreferencesAction_AllowDM): unknown;
fromPartial<I extends {

@@ -68,9 +97,9 @@ walletAddresses?: string[] | undefined;

walletAddresses?: (string[] & string[] & { [K in Exclude<keyof I["walletAddresses"], keyof string[]>]: never; }) | undefined;
} & { [K_1 in Exclude<keyof I, "walletAddresses">]: never; }>(object: I): PrivatePreferencesAction_Allow;
} & { [K_1 in Exclude<keyof I, "walletAddresses">]: never; }>(object: I): PrivatePreferencesAction_AllowDM;
};
export declare const PrivatePreferencesAction_Block: {
encode(message: PrivatePreferencesAction_Block, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): PrivatePreferencesAction_Block;
fromJSON(object: any): PrivatePreferencesAction_Block;
toJSON(message: PrivatePreferencesAction_Block): unknown;
export declare const PrivatePreferencesAction_DenyDM: {
encode(message: PrivatePreferencesAction_DenyDM, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): PrivatePreferencesAction_DenyDM;
fromJSON(object: any): PrivatePreferencesAction_DenyDM;
toJSON(message: PrivatePreferencesAction_DenyDM): unknown;
fromPartial<I extends {

@@ -80,4 +109,26 @@ walletAddresses?: string[] | undefined;

walletAddresses?: (string[] & string[] & { [K in Exclude<keyof I["walletAddresses"], keyof string[]>]: never; }) | undefined;
} & { [K_1 in Exclude<keyof I, "walletAddresses">]: never; }>(object: I): PrivatePreferencesAction_Block;
} & { [K_1 in Exclude<keyof I, "walletAddresses">]: never; }>(object: I): PrivatePreferencesAction_DenyDM;
};
export declare const PrivatePreferencesAction_AllowGroup: {
encode(message: PrivatePreferencesAction_AllowGroup, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): PrivatePreferencesAction_AllowGroup;
fromJSON(object: any): PrivatePreferencesAction_AllowGroup;
toJSON(message: PrivatePreferencesAction_AllowGroup): unknown;
fromPartial<I extends {
groupIds?: Uint8Array[] | undefined;
} & {
groupIds?: (Uint8Array[] & Uint8Array[] & { [K in Exclude<keyof I["groupIds"], keyof Uint8Array[]>]: never; }) | undefined;
} & { [K_1 in Exclude<keyof I, "groupIds">]: never; }>(object: I): PrivatePreferencesAction_AllowGroup;
};
export declare const PrivatePreferencesAction_DenyGroup: {
encode(message: PrivatePreferencesAction_DenyGroup, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): PrivatePreferencesAction_DenyGroup;
fromJSON(object: any): PrivatePreferencesAction_DenyGroup;
toJSON(message: PrivatePreferencesAction_DenyGroup): unknown;
fromPartial<I extends {
groupIds?: Uint8Array[] | undefined;
} & {
groupIds?: (Uint8Array[] & Uint8Array[] & { [K in Exclude<keyof I["groupIds"], keyof Uint8Array[]>]: never; }) | undefined;
} & { [K_1 in Exclude<keyof I, "groupIds">]: never; }>(object: I): PrivatePreferencesAction_DenyGroup;
};
export declare const PrivatePreferencesPayload: {

@@ -84,0 +135,0 @@ encode(message: PrivatePreferencesPayload, writer?: _m0.Writer): _m0.Writer;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc