Skip to content

Commit

Permalink
Merge pull request #28 from GincoInc/update-protobuf
Browse files Browse the repository at this point in the history
👍 Update: Protobuf v1.108.4
  • Loading branch information
R-Yoshi0701 authored Jun 19, 2024
2 parents 359bf25 + 9838230 commit 6248f14
Show file tree
Hide file tree
Showing 23 changed files with 1,764 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,14 @@ export class AuditLog extends jspb.Message {
clearCreateTime(): void;
getCreateTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
setCreateTime(value?: google_protobuf_timestamp_pb.Timestamp): AuditLog;
clearEnabledMailsList(): void;
getEnabledMailsList(): Array<gincoinc_adamant_global_v1_adamantglobalv1_enum_pb.MailType>;
setEnabledMailsList(value: Array<gincoinc_adamant_global_v1_adamantglobalv1_enum_pb.MailType>): AuditLog;
addEnabledMails(value: gincoinc_adamant_global_v1_adamantglobalv1_enum_pb.MailType, index?: number): gincoinc_adamant_global_v1_adamantglobalv1_enum_pb.MailType;
clearDisabledMailsList(): void;
getDisabledMailsList(): Array<gincoinc_adamant_global_v1_adamantglobalv1_enum_pb.MailType>;
setDisabledMailsList(value: Array<gincoinc_adamant_global_v1_adamantglobalv1_enum_pb.MailType>): AuditLog;
addDisabledMails(value: gincoinc_adamant_global_v1_adamantglobalv1_enum_pb.MailType, index?: number): gincoinc_adamant_global_v1_adamantglobalv1_enum_pb.MailType;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): AuditLog.AsObject;
Expand Down Expand Up @@ -157,5 +165,7 @@ export namespace AuditLog {
whitelistAddressesList: Array<string>,
eventTime?: google_protobuf_timestamp_pb.Timestamp.AsObject,
createTime?: google_protobuf_timestamp_pb.Timestamp.AsObject,
enabledMailsList: Array<gincoinc_adamant_global_v1_adamantglobalv1_enum_pb.MailType>,
disabledMailsList: Array<gincoinc_adamant_global_v1_adamantglobalv1_enum_pb.MailType>,
}
}
106 changes: 104 additions & 2 deletions gen/gincoinc/adamant/global/v1/adamantglobalv1/audit_logger_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ if (goog.DEBUG && !COMPILED) {
* @private {!Array<number>}
* @const
*/
proto.adamant.global.v1.AuditLog.repeatedFields_ = [36,37,38,31];
proto.adamant.global.v1.AuditLog.repeatedFields_ = [36,37,38,31,41,42];



Expand Down Expand Up @@ -121,7 +121,9 @@ proto.adamant.global.v1.AuditLog.toObject = function(includeInstance, msg) {
newValidatorsList: (f = jspb.Message.getRepeatedField(msg, 38)) == null ? undefined : f,
whitelistAddressesList: (f = jspb.Message.getRepeatedField(msg, 31)) == null ? undefined : f,
eventTime: (f = msg.getEventTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
createTime: (f = msg.getCreateTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
createTime: (f = msg.getCreateTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
enabledMailsList: (f = jspb.Message.getRepeatedField(msg, 41)) == null ? undefined : f,
disabledMailsList: (f = jspb.Message.getRepeatedField(msg, 42)) == null ? undefined : f
};

if (includeInstance) {
Expand Down Expand Up @@ -320,6 +322,18 @@ proto.adamant.global.v1.AuditLog.deserializeBinaryFromReader = function(msg, rea
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
msg.setCreateTime(value);
break;
case 41:
var values = /** @type {!Array<!proto.adamant.global.v1.MailType>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
for (var i = 0; i < values.length; i++) {
msg.addEnabledMails(values[i]);
}
break;
case 42:
var values = /** @type {!Array<!proto.adamant.global.v1.MailType>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
for (var i = 0; i < values.length; i++) {
msg.addDisabledMails(values[i]);
}
break;
default:
reader.skipField();
break;
Expand Down Expand Up @@ -631,6 +645,20 @@ proto.adamant.global.v1.AuditLog.serializeBinaryToWriter = function(message, wri
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
);
}
f = message.getEnabledMailsList();
if (f.length > 0) {
writer.writePackedEnum(
41,
f
);
}
f = message.getDisabledMailsList();
if (f.length > 0) {
writer.writePackedEnum(
42,
f
);
}
};


Expand Down Expand Up @@ -1468,4 +1496,78 @@ proto.adamant.global.v1.AuditLog.prototype.hasCreateTime = function() {
};


/**
* repeated MailType enabled_mails = 41;
* @return {!Array<!proto.adamant.global.v1.MailType>}
*/
proto.adamant.global.v1.AuditLog.prototype.getEnabledMailsList = function() {
return /** @type {!Array<!proto.adamant.global.v1.MailType>} */ (jspb.Message.getRepeatedField(this, 41));
};


/**
* @param {!Array<!proto.adamant.global.v1.MailType>} value
* @return {!proto.adamant.global.v1.AuditLog} returns this
*/
proto.adamant.global.v1.AuditLog.prototype.setEnabledMailsList = function(value) {
return jspb.Message.setField(this, 41, value || []);
};


/**
* @param {!proto.adamant.global.v1.MailType} value
* @param {number=} opt_index
* @return {!proto.adamant.global.v1.AuditLog} returns this
*/
proto.adamant.global.v1.AuditLog.prototype.addEnabledMails = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 41, value, opt_index);
};


/**
* Clears the list making it empty but non-null.
* @return {!proto.adamant.global.v1.AuditLog} returns this
*/
proto.adamant.global.v1.AuditLog.prototype.clearEnabledMailsList = function() {
return this.setEnabledMailsList([]);
};


/**
* repeated MailType disabled_mails = 42;
* @return {!Array<!proto.adamant.global.v1.MailType>}
*/
proto.adamant.global.v1.AuditLog.prototype.getDisabledMailsList = function() {
return /** @type {!Array<!proto.adamant.global.v1.MailType>} */ (jspb.Message.getRepeatedField(this, 42));
};


/**
* @param {!Array<!proto.adamant.global.v1.MailType>} value
* @return {!proto.adamant.global.v1.AuditLog} returns this
*/
proto.adamant.global.v1.AuditLog.prototype.setDisabledMailsList = function(value) {
return jspb.Message.setField(this, 42, value || []);
};


/**
* @param {!proto.adamant.global.v1.MailType} value
* @param {number=} opt_index
* @return {!proto.adamant.global.v1.AuditLog} returns this
*/
proto.adamant.global.v1.AuditLog.prototype.addDisabledMails = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 42, value, opt_index);
};


/**
* Clears the list making it empty but non-null.
* @return {!proto.adamant.global.v1.AuditLog} returns this
*/
proto.adamant.global.v1.AuditLog.prototype.clearDisabledMailsList = function() {
return this.setDisabledMailsList([]);
};


goog.object.extend(exports, proto.adamant.global.v1);
5 changes: 5 additions & 0 deletions gen/gincoinc/adamant/global/v1/adamantglobalv1/enum_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ export enum AuditLogGroup {
AUDIT_LOG_GROUP_TRANSACTION = 5,
AUDIT_LOG_GROUP_POLICY = 6,
AUDIT_LOG_GROUP_WALLET_GROUP = 7,
AUDIT_LOG_GROUP_MAIL = 8,
}

export enum AuditLogType {
Expand All @@ -177,6 +178,7 @@ export enum AuditLogType {
AUDIT_LOG_TYPE_LOGIN_FAIL = 2,
AUDIT_LOG_TYPE_2FA_FAIL = 50,
AUDIT_LOG_TYPE_LOGOUT = 3,
AUDIT_LOG_TYPE_MAIL_SETTINGS_CHANGE = 80,
AUDIT_LOG_TYPE_WALLET_CREATE = 4,
AUDIT_LOG_TYPE_WALLET_APPROVE = 5,
AUDIT_LOG_TYPE_WALLET_CANCEL = 6,
Expand Down Expand Up @@ -281,6 +283,7 @@ export enum PreconditionFailureType {
PRECONDITION_FAILURE_TYPE_TRANSACTION_ALREADY_SUBMITTED = 25,
PRECONDITION_FAILURE_TYPE_CANNOT_OPERATE_TRANSACTION_DUE_TO_WALLET_STATE_IS_CREATING = 26,
PRECONDITION_FAILURE_TYPE_TRANSACTION_INCLUDE_SELF_ADDRESS = 29,
PRECONDITION_FAILURE_TYPE_WALLET_FLUSH_SETTING_DESTINATION_WALLET_ID_DOES_NOT_EXIST = 30,
PRECONDITION_FAILURE_TYPE_PROHIBITED_BY_SUBSCRIPTION = 19,
}

Expand Down Expand Up @@ -331,6 +334,7 @@ export enum MailType {
MAIL_TYPE_WALLET_NO_WHITELIST_REQUESTED = 17,
MAIL_TYPE_WALLET_NO_WHITELIST_APPROVED = 18,
MAIL_TYPE_WALLET_NO_WHITELIST_CANCELED = 19,
MAIL_TYPE_MAIL_SETTINGS_UPDATED = 21,
}

export enum WatchOnlyAddressState {
Expand Down Expand Up @@ -370,6 +374,7 @@ export enum DownloadResourceType {
DOWNLOAD_RESOURCE_TYPE_ALL_WALLET_GROUP_BALANCE_SNAPSHOT_ON_DEMAND = 4,
DOWNLOAD_RESOURCE_TYPE_WALLET_TRANSFER = 5,
DOWNLOAD_RESOURCE_TYPE_WALLET_ADDRESS = 6,
DOWNLOAD_RESOURCE_TYPE_WALLET_ADDRESS_WITH_BALANCE = 7,
}

export enum EventTriggeredMessageType {
Expand Down
11 changes: 8 additions & 3 deletions gen/gincoinc/adamant/global/v1/adamantglobalv1/enum_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,8 @@ proto.adamant.global.v1.AuditLogGroup = {
AUDIT_LOG_GROUP_WALLET: 4,
AUDIT_LOG_GROUP_TRANSACTION: 5,
AUDIT_LOG_GROUP_POLICY: 6,
AUDIT_LOG_GROUP_WALLET_GROUP: 7
AUDIT_LOG_GROUP_WALLET_GROUP: 7,
AUDIT_LOG_GROUP_MAIL: 8
};

/**
Expand All @@ -260,6 +261,7 @@ proto.adamant.global.v1.AuditLogType = {
AUDIT_LOG_TYPE_LOGIN_FAIL: 2,
AUDIT_LOG_TYPE_2FA_FAIL: 50,
AUDIT_LOG_TYPE_LOGOUT: 3,
AUDIT_LOG_TYPE_MAIL_SETTINGS_CHANGE: 80,
AUDIT_LOG_TYPE_WALLET_CREATE: 4,
AUDIT_LOG_TYPE_WALLET_APPROVE: 5,
AUDIT_LOG_TYPE_WALLET_CANCEL: 6,
Expand Down Expand Up @@ -367,6 +369,7 @@ proto.adamant.global.v1.PreconditionFailureType = {
PRECONDITION_FAILURE_TYPE_TRANSACTION_ALREADY_SUBMITTED: 25,
PRECONDITION_FAILURE_TYPE_CANNOT_OPERATE_TRANSACTION_DUE_TO_WALLET_STATE_IS_CREATING: 26,
PRECONDITION_FAILURE_TYPE_TRANSACTION_INCLUDE_SELF_ADDRESS: 29,
PRECONDITION_FAILURE_TYPE_WALLET_FLUSH_SETTING_DESTINATION_WALLET_ID_DOES_NOT_EXIST: 30,
PRECONDITION_FAILURE_TYPE_PROHIBITED_BY_SUBSCRIPTION: 19
};

Expand Down Expand Up @@ -422,7 +425,8 @@ proto.adamant.global.v1.MailType = {
MAIL_TYPE_WALLET_POLICY_CHANGED: 16,
MAIL_TYPE_WALLET_NO_WHITELIST_REQUESTED: 17,
MAIL_TYPE_WALLET_NO_WHITELIST_APPROVED: 18,
MAIL_TYPE_WALLET_NO_WHITELIST_CANCELED: 19
MAIL_TYPE_WALLET_NO_WHITELIST_CANCELED: 19,
MAIL_TYPE_MAIL_SETTINGS_UPDATED: 21
};

/**
Expand Down Expand Up @@ -470,7 +474,8 @@ proto.adamant.global.v1.DownloadResourceType = {
DOWNLOAD_RESOURCE_TYPE_ALL_WALLET_BALANCE_SNAPSHOT_ON_DEMAND: 3,
DOWNLOAD_RESOURCE_TYPE_ALL_WALLET_GROUP_BALANCE_SNAPSHOT_ON_DEMAND: 4,
DOWNLOAD_RESOURCE_TYPE_WALLET_TRANSFER: 5,
DOWNLOAD_RESOURCE_TYPE_WALLET_ADDRESS: 6
DOWNLOAD_RESOURCE_TYPE_WALLET_ADDRESS: 6,
DOWNLOAD_RESOURCE_TYPE_WALLET_ADDRESS_WITH_BALANCE: 7
};

/**
Expand Down
47 changes: 47 additions & 0 deletions gen/gincoinc/adamant/global/v1/adamantglobalv1/global_api_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,8 @@ export class UpdateWalletFlushSettingRequest extends jspb.Message {
setNetwork(value: gincoinc_global_v1_gincoincglobalv1_enum_pb.Network): UpdateWalletFlushSettingRequest;
getDestinationWalletId(): string;
setDestinationWalletId(value: string): UpdateWalletFlushSettingRequest;
getFlushThreshold(): number;
setFlushThreshold(value: number): UpdateWalletFlushSettingRequest;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): UpdateWalletFlushSettingRequest.AsObject;
Expand All @@ -791,6 +793,7 @@ export namespace UpdateWalletFlushSettingRequest {
coin: gincoinc_global_v1_gincoincglobalv1_enum_pb.Coin,
network?: gincoinc_global_v1_gincoincglobalv1_enum_pb.Network,
destinationWalletId: string,
flushThreshold: number,
}
}

Expand Down Expand Up @@ -5845,3 +5848,47 @@ export namespace ListStakingValidatorsResponse {
nextPageToken: string,
}
}

export class UpdateMailSettingsRequest extends jspb.Message {
clearEnableMailTypesList(): void;
getEnableMailTypesList(): Array<gincoinc_adamant_global_v1_adamantglobalv1_enum_pb.MailType>;
setEnableMailTypesList(value: Array<gincoinc_adamant_global_v1_adamantglobalv1_enum_pb.MailType>): UpdateMailSettingsRequest;
addEnableMailTypes(value: gincoinc_adamant_global_v1_adamantglobalv1_enum_pb.MailType, index?: number): gincoinc_adamant_global_v1_adamantglobalv1_enum_pb.MailType;
clearDisableMailTypesList(): void;
getDisableMailTypesList(): Array<gincoinc_adamant_global_v1_adamantglobalv1_enum_pb.MailType>;
setDisableMailTypesList(value: Array<gincoinc_adamant_global_v1_adamantglobalv1_enum_pb.MailType>): UpdateMailSettingsRequest;
addDisableMailTypes(value: gincoinc_adamant_global_v1_adamantglobalv1_enum_pb.MailType, index?: number): gincoinc_adamant_global_v1_adamantglobalv1_enum_pb.MailType;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): UpdateMailSettingsRequest.AsObject;
static toObject(includeInstance: boolean, msg: UpdateMailSettingsRequest): UpdateMailSettingsRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: UpdateMailSettingsRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): UpdateMailSettingsRequest;
static deserializeBinaryFromReader(message: UpdateMailSettingsRequest, reader: jspb.BinaryReader): UpdateMailSettingsRequest;
}

export namespace UpdateMailSettingsRequest {
export type AsObject = {
enableMailTypesList: Array<gincoinc_adamant_global_v1_adamantglobalv1_enum_pb.MailType>,
disableMailTypesList: Array<gincoinc_adamant_global_v1_adamantglobalv1_enum_pb.MailType>,
}
}

export class GetMailSettingsRequest extends jspb.Message {

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetMailSettingsRequest.AsObject;
static toObject(includeInstance: boolean, msg: GetMailSettingsRequest): GetMailSettingsRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: GetMailSettingsRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GetMailSettingsRequest;
static deserializeBinaryFromReader(message: GetMailSettingsRequest, reader: jspb.BinaryReader): GetMailSettingsRequest;
}

export namespace GetMailSettingsRequest {
export type AsObject = {
}
}
Loading

0 comments on commit 6248f14

Please sign in to comment.