From 8de3dc332d73bcc15ba8727baf03806bf720f832 Mon Sep 17 00:00:00 2001 From: Abdulbois Date: Wed, 20 Mar 2024 16:04:26 +0500 Subject: [PATCH] #538 Add a new CommissionerRemoteUiFlowUrl filed into Model schema Signed-off-by: Abdulbois Signed-off-by: Abdulbois --- docs/static/openapi.yml | 211 +++++++++++++ docs/transactions.md | 2 + proto/model/model.proto | 1 + proto/model/tx.proto | 2 + .../module/rest.ts | 1 + .../module/types/model/model.ts | 21 +- .../module/types/model/tx.ts | 42 ++- x/model/client/cli/flags.go | 1 + x/model/client/cli/tx_model.go | 8 + x/model/keeper/msg_server_model.go | 15 +- x/model/types/messages_model.go | 26 +- x/model/types/model.pb.go | 124 +++++--- x/model/types/tx.pb.go | 278 ++++++++++++------ 13 files changed, 593 insertions(+), 139 deletions(-) diff --git a/docs/static/openapi.yml b/docs/static/openapi.yml index 1653e8baa..97a67e1e4 100644 --- a/docs/static/openapi.yml +++ b/docs/static/openapi.yml @@ -297,6 +297,9 @@ paths: type: string certificationIdOfSoftwareComponent: type: string + schemaVersion: + type: integer + format: int64 pagination: type: object properties: @@ -482,6 +485,9 @@ paths: type: string certificationIdOfSoftwareComponent: type: string + schemaVersion: + type: integer + format: int64 default: description: An unexpected error response. schema: @@ -612,6 +618,9 @@ paths: type: string certificationIdOfSoftwareComponent: type: string + schemaVersion: + type: integer + format: int64 pagination: type: object properties: @@ -804,6 +813,9 @@ paths: type: string certificationIdOfSoftwareComponent: type: string + schemaVersion: + type: integer + format: int64 default: description: An unexpected error response. schema: @@ -8453,6 +8465,11 @@ paths: format: int32 creator: type: string + schemaVersion: + type: integer + format: int64 + commissionerRemoteUiFlowUrl: + type: string pagination: type: object properties: @@ -8675,6 +8692,11 @@ paths: format: int32 creator: type: string + schemaVersion: + type: integer + format: int64 + commissionerRemoteUiFlowUrl: + type: string default: description: An unexpected error response. schema: @@ -8820,6 +8842,9 @@ paths: type: string creator: type: string + schemaVersion: + type: integer + format: int64 default: description: An unexpected error response. schema: @@ -8935,6 +8960,9 @@ paths: format: int32 isNoc: type: boolean + schemaVersion: + type: integer + format: int64 pagination: type: object properties: @@ -9168,6 +9196,9 @@ paths: format: int32 isNoc: type: boolean + schemaVersion: + type: integer + format: int64 default: description: An unexpected error response. schema: @@ -9334,6 +9365,9 @@ paths: format: int32 isNoc: type: boolean + schemaVersion: + type: integer + format: int64 pagination: type: object properties: @@ -9514,6 +9548,9 @@ paths: format: int32 isNoc: type: boolean + schemaVersion: + type: integer + format: int64 default: description: An unexpected error response. schema: @@ -9618,6 +9655,9 @@ paths: format: int32 isNoc: type: boolean + schemaVersion: + type: integer + format: int64 pagination: type: object properties: @@ -9798,6 +9838,9 @@ paths: format: int32 isNoc: type: boolean + schemaVersion: + type: integer + format: int64 default: description: An unexpected error response. schema: @@ -9882,6 +9925,9 @@ paths: vid: type: integer format: int32 + schemaVersion: + type: integer + format: int64 pagination: type: object properties: @@ -10042,6 +10088,9 @@ paths: vid: type: integer format: int32 + schemaVersion: + type: integer + format: int64 default: description: An unexpected error response. schema: @@ -10367,6 +10416,9 @@ paths: format: int32 isNoc: type: boolean + schemaVersion: + type: integer + format: int64 pagination: type: object properties: @@ -10548,6 +10600,9 @@ paths: format: int32 isNoc: type: boolean + schemaVersion: + type: integer + format: int64 default: description: An unexpected error response. schema: @@ -10623,6 +10678,9 @@ paths: revocationType: type: integer format: int64 + schemaVersion: + type: integer + format: int64 pagination: type: object properties: @@ -10778,6 +10836,9 @@ paths: revocationType: type: integer format: int64 + schemaVersion: + type: integer + format: int64 default: description: An unexpected error response. schema: @@ -10847,6 +10908,9 @@ paths: revocationType: type: integer format: int64 + schemaVersion: + type: integer + format: int64 default: description: An unexpected error response. schema: @@ -10960,6 +11024,9 @@ paths: format: int32 isNoc: type: boolean + schemaVersion: + type: integer + format: int64 pagination: type: object properties: @@ -11141,6 +11208,9 @@ paths: format: int32 isNoc: type: boolean + schemaVersion: + type: integer + format: int64 default: description: An unexpected error response. schema: @@ -11249,6 +11319,9 @@ paths: format: int32 isNoc: type: boolean + schemaVersion: + type: integer + format: int64 pagination: type: object properties: @@ -11430,6 +11503,9 @@ paths: format: int32 isNoc: type: boolean + schemaVersion: + type: integer + format: int64 default: description: An unexpected error response. schema: @@ -14672,6 +14748,9 @@ paths: type: string creator: type: string + schemaVersion: + type: integer + format: int64 pagination: type: object properties: @@ -14806,6 +14885,9 @@ paths: type: string creator: type: string + schemaVersion: + type: integer + format: int64 default: description: An unexpected error response. schema: @@ -15338,6 +15420,9 @@ definitions: type: string certificationIdOfSoftwareComponent: type: string + schemaVersion: + type: integer + format: int64 zigbeealliance.distributedcomplianceledger.compliance.DeviceSoftwareCompliance: type: object properties: @@ -15412,6 +15497,9 @@ definitions: type: string certificationIdOfSoftwareComponent: type: string + schemaVersion: + type: integer + format: int64 zigbeealliance.distributedcomplianceledger.compliance.ProvisionalModel: type: object properties: @@ -15546,6 +15634,9 @@ definitions: type: string certificationIdOfSoftwareComponent: type: string + schemaVersion: + type: integer + format: int64 pagination: type: object properties: @@ -15650,6 +15741,9 @@ definitions: type: string certificationIdOfSoftwareComponent: type: string + schemaVersion: + type: integer + format: int64 pagination: type: object properties: @@ -15856,6 +15950,9 @@ definitions: type: string certificationIdOfSoftwareComponent: type: string + schemaVersion: + type: integer + format: int64 zigbeealliance.distributedcomplianceledger.compliance.QueryGetDeviceSoftwareComplianceResponse: type: object properties: @@ -15933,6 +16030,9 @@ definitions: type: string certificationIdOfSoftwareComponent: type: string + schemaVersion: + type: integer + format: int64 zigbeealliance.distributedcomplianceledger.compliance.QueryGetProvisionalModelResponse: type: object properties: @@ -21057,6 +21157,11 @@ definitions: format: int32 creator: type: string + schemaVersion: + type: integer + format: int64 + commissionerRemoteUiFlowUrl: + type: string zigbeealliance.distributedcomplianceledger.model.ModelVersion: type: object properties: @@ -21098,6 +21203,9 @@ definitions: type: string creator: type: string + schemaVersion: + type: integer + format: int64 zigbeealliance.distributedcomplianceledger.model.ModelVersions: type: object properties: @@ -21173,6 +21281,11 @@ definitions: format: int32 creator: type: string + schemaVersion: + type: integer + format: int64 + commissionerRemoteUiFlowUrl: + type: string pagination: type: object properties: @@ -21247,6 +21360,11 @@ definitions: format: int32 creator: type: string + schemaVersion: + type: integer + format: int64 + commissionerRemoteUiFlowUrl: + type: string zigbeealliance.distributedcomplianceledger.model.QueryGetModelVersionResponse: type: object properties: @@ -21291,6 +21409,9 @@ definitions: type: string creator: type: string + schemaVersion: + type: integer + format: int64 zigbeealliance.distributedcomplianceledger.model.QueryGetModelVersionsResponse: type: object properties: @@ -21410,6 +21531,9 @@ definitions: format: int32 isNoc: type: boolean + schemaVersion: + type: integer + format: int64 zigbeealliance.distributedcomplianceledger.pki.ApprovedCertificatesBySubject: type: object properties: @@ -21485,6 +21609,9 @@ definitions: format: int32 isNoc: type: boolean + schemaVersion: + type: integer + format: int64 zigbeealliance.distributedcomplianceledger.pki.CertificateIdentifier: type: object properties: @@ -21580,6 +21707,9 @@ definitions: format: int32 isNoc: type: boolean + schemaVersion: + type: integer + format: int64 zigbeealliance.distributedcomplianceledger.pki.NocRootCertificates: type: object properties: @@ -21642,6 +21772,9 @@ definitions: format: int32 isNoc: type: boolean + schemaVersion: + type: integer + format: int64 zigbeealliance.distributedcomplianceledger.pki.PkiRevocationDistributionPoint: type: object properties: @@ -21672,6 +21805,9 @@ definitions: revocationType: type: integer format: int64 + schemaVersion: + type: integer + format: int64 zigbeealliance.distributedcomplianceledger.pki.PkiRevocationDistributionPointsByIssuerSubjectKeyID: type: object properties: @@ -21709,6 +21845,9 @@ definitions: revocationType: type: integer format: int64 + schemaVersion: + type: integer + format: int64 zigbeealliance.distributedcomplianceledger.pki.ProposedCertificate: type: object properties: @@ -21751,6 +21890,9 @@ definitions: vid: type: integer format: int32 + schemaVersion: + type: integer + format: int64 zigbeealliance.distributedcomplianceledger.pki.ProposedCertificateRevocation: type: object properties: @@ -21844,6 +21986,9 @@ definitions: format: int32 isNoc: type: boolean + schemaVersion: + type: integer + format: int64 pagination: type: object properties: @@ -21936,6 +22081,9 @@ definitions: format: int32 isNoc: type: boolean + schemaVersion: + type: integer + format: int64 pagination: type: object properties: @@ -22028,6 +22176,9 @@ definitions: format: int32 isNoc: type: boolean + schemaVersion: + type: integer + format: int64 pagination: type: object properties: @@ -22088,6 +22239,9 @@ definitions: revocationType: type: integer format: int64 + schemaVersion: + type: integer + format: int64 pagination: type: object properties: @@ -22160,6 +22314,9 @@ definitions: vid: type: integer format: int32 + schemaVersion: + type: integer + format: int64 pagination: type: object properties: @@ -22308,6 +22465,9 @@ definitions: format: int32 isNoc: type: boolean + schemaVersion: + type: integer + format: int64 pagination: type: object properties: @@ -22401,6 +22561,9 @@ definitions: format: int32 isNoc: type: boolean + schemaVersion: + type: integer + format: int64 pagination: type: object properties: @@ -22494,6 +22657,9 @@ definitions: format: int32 isNoc: type: boolean + schemaVersion: + type: integer + format: int64 pagination: type: object properties: @@ -22597,6 +22763,9 @@ definitions: format: int32 isNoc: type: boolean + schemaVersion: + type: integer + format: int64 zigbeealliance.distributedcomplianceledger.pki.QueryGetApprovedRootCertificatesResponse: type: object properties: @@ -22696,6 +22865,9 @@ definitions: format: int32 isNoc: type: boolean + schemaVersion: + type: integer + format: int64 zigbeealliance.distributedcomplianceledger.pki.QueryGetNocRootCertificatesResponse: type: object properties: @@ -22761,6 +22933,9 @@ definitions: format: int32 isNoc: type: boolean + schemaVersion: + type: integer + format: int64 zigbeealliance.distributedcomplianceledger.pki.QueryGetPkiRevocationDistributionPointResponse: type: object properties: @@ -22794,6 +22969,9 @@ definitions: revocationType: type: integer format: int64 + schemaVersion: + type: integer + format: int64 zigbeealliance.distributedcomplianceledger.pki.QueryGetPkiRevocationDistributionPointsByIssuerSubjectKeyIDResponse: type: object properties: @@ -22834,6 +23012,9 @@ definitions: revocationType: type: integer format: int64 + schemaVersion: + type: integer + format: int64 zigbeealliance.distributedcomplianceledger.pki.QueryGetProposedCertificateResponse: type: object properties: @@ -22879,6 +23060,9 @@ definitions: vid: type: integer format: int32 + schemaVersion: + type: integer + format: int64 zigbeealliance.distributedcomplianceledger.pki.QueryGetProposedCertificateRevocationResponse: type: object properties: @@ -22973,6 +23157,9 @@ definitions: format: int32 isNoc: type: boolean + schemaVersion: + type: integer + format: int64 zigbeealliance.distributedcomplianceledger.pki.QueryGetRevokedCertificatesResponse: type: object properties: @@ -23039,6 +23226,9 @@ definitions: format: int32 isNoc: type: boolean + schemaVersion: + type: integer + format: int64 zigbeealliance.distributedcomplianceledger.pki.QueryGetRevokedNocRootCertificatesResponse: type: object properties: @@ -23105,6 +23295,9 @@ definitions: format: int32 isNoc: type: boolean + schemaVersion: + type: integer + format: int64 zigbeealliance.distributedcomplianceledger.pki.QueryGetRevokedRootCertificatesResponse: type: object properties: @@ -23183,6 +23376,9 @@ definitions: format: int32 isNoc: type: boolean + schemaVersion: + type: integer + format: int64 zigbeealliance.distributedcomplianceledger.pki.RevokedCertificates: type: object properties: @@ -23246,6 +23442,9 @@ definitions: format: int32 isNoc: type: boolean + schemaVersion: + type: integer + format: int64 zigbeealliance.distributedcomplianceledger.pki.RevokedNocRootCertificates: type: object properties: @@ -23309,6 +23508,9 @@ definitions: format: int32 isNoc: type: boolean + schemaVersion: + type: integer + format: int64 zigbeealliance.distributedcomplianceledger.pki.RevokedRootCertificates: type: object properties: @@ -24433,6 +24635,9 @@ definitions: type: string creator: type: string + schemaVersion: + type: integer + format: int64 pagination: type: object properties: @@ -24477,6 +24682,9 @@ definitions: type: string creator: type: string + schemaVersion: + type: integer + format: int64 zigbeealliance.distributedcomplianceledger.vendorinfo.VendorInfo: type: object properties: @@ -24493,3 +24701,6 @@ definitions: type: string creator: type: string + schemaVersion: + type: integer + format: int64 diff --git a/docs/transactions.md b/docs/transactions.md index 189243758..1039b6e55 100644 --- a/docs/transactions.md +++ b/docs/transactions.md @@ -207,6 +207,7 @@ Not all fields can be edited (see `EDIT_MODEL`). - commissioningModeInitialStepsInstruction: `optional(string)` - commissioningModeInitialStepsInstruction SHALL contain text which relates to specific values of CommissioningModeInitialStepsHint. Certain values of CommissioningModeInitialStepsHint, as defined in the Pairing Hint Table, indicate a Pairing Instruction (PI) dependency, and for these values the commissioningModeInitialStepsInstruction SHALL be set - commissioningModeSecondaryStepsHint: `optional(uint32)` - commissioningModeSecondaryStepsHint SHALL identify a hint for steps that can be used to put into commissioning mode a device that has already been commissioned. This field is a bitmap with values defined in the Pairing Hint Table. For example, a value of 4 (bit 2 is set) indicates that a device that has already been commissioned will require the user to visit a current CHIP Administrator to put the device into commissioning mode. - commissioningModeSecondaryStepInstruction: `optional(string)` - commissioningModeSecondaryStepInstruction SHALL contain text which relates to specific values of commissioningModeSecondaryStepsHint. Certain values of commissioningModeSecondaryStepsHint, as defined in the Pairing Hint Table, indicate a Pairing Instruction (PI) dependency, and for these values the commissioningModeSecondaryStepInstruction SHALL be set + - commissionerRemoteUiFlowURL `optional(string)` - commissionerRemoteUiFlowURL SHALL identify URL to show a custom flow UI for the commissioner - userManualURL: `optional(string)` - URL that contains product specific web page that contains user manual for the device model. - supportURL: `optional(string)` - URL that contains product specific web page that contains support details for the device model. - productURL: `optional(string)` - URL that contains product specific web page that contains details for the device model. @@ -253,6 +254,7 @@ All non-edited fields remain the same. - commissioningCustomFlowURL: `optional(string)` - commissioningCustomFlowURL SHALL identify a vendor specific commissioning URL for the device model when the commissioningCustomFlow field is set to '2' - commissioningModeInitialStepsInstruction: `optional(string)` - commissioningModeInitialStepsInstruction SHALL contain text which relates to specific values of CommissioningModeInitialStepsHint. Certain values of CommissioningModeInitialStepsHint, as defined in the Pairing Hint Table, indicate a Pairing Instruction (PI) dependency, and for these values the commissioningModeInitialStepsInstruction SHALL be set - commissioningModeSecondaryStepInstruction: `optional(string)` - commissioningModeSecondaryStepInstruction SHALL contain text which relates to specific values of commissioningModeSecondaryStepsHint. Certain values of commissioningModeSecondaryStepsHint, as defined in the Pairing Hint Table, indicate a Pairing Instruction (PI) dependency, and for these values the commissioningModeSecondaryStepInstruction SHALL be set + - commissionerRemoteUiFlowURL `optional(string)` - commissionerRemoteUiFlowURL SHALL identify URL to show a custom flow UI for the commissioner - userManualURL: `optional(string)` - URL that contains product specific web page that contains user manual for the device model. - supportURL: `optional(string)` - URL that contains product specific web page that contains support details for the device model. - productURL: `optional(string)` - URL that contains product specific web page that contains details for the device model. diff --git a/proto/model/model.proto b/proto/model/model.proto index 75bcb7547..ffa606579 100644 --- a/proto/model/model.proto +++ b/proto/model/model.proto @@ -25,5 +25,6 @@ message Model { int32 lsfRevision = 17; string creator = 18 [(cosmos_proto.scalar) = "cosmos.AddressString"]; uint32 schemaVersion = 19; + string commissionerRemoteUiFlowUrl = 20; } diff --git a/proto/model/tx.proto b/proto/model/tx.proto index 559bb5895..61e316308 100644 --- a/proto/model/tx.proto +++ b/proto/model/tx.proto @@ -41,6 +41,7 @@ message MsgCreateModel { string productUrl = 16 [(gogoproto.moretags) = "validate:\"omitempty,url,startsnotwith=http:,max=256\""]; string lsfUrl = 17 [(gogoproto.moretags) = "validate:\"omitempty,url,startsnotwith=http:,max=256\""]; uint32 schemaVersion = 18; + string commissionerRemoteUiFlowUrl = 19 [(gogoproto.moretags) = "validate:\"omitempty,url,startsnotwith=http:,max=256\""]; } message MsgCreateModelResponse {} @@ -61,6 +62,7 @@ message MsgUpdateModel { string lsfUrl = 13 [(gogoproto.moretags) = "validate:\"omitempty,url,startsnotwith=http:,max=256\""]; int32 lsfRevision = 14 [(gogoproto.moretags) = "validate:\"gte=0,lte=65535\""]; uint32 schemaVersion = 15; + string commissionerRemoteUiFlowUrl = 16 [(gogoproto.moretags) = "validate:\"omitempty,url,startsnotwith=http:,max=256\""]; } message MsgUpdateModelResponse {} diff --git a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/module/rest.ts b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/module/rest.ts index db925231b..f7391dc4e 100644 --- a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/module/rest.ts +++ b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/module/rest.ts @@ -44,6 +44,7 @@ export interface ModelModel { /** @format int64 */ schemaVersion?: number; + commissionerRemoteUiFlowUrl?: string; } export interface ModelModelVersion { diff --git a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/module/types/model/model.ts b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/module/types/model/model.ts index cbf673d3e..2fd01e09e 100644 --- a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/module/types/model/model.ts +++ b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/module/types/model/model.ts @@ -23,6 +23,7 @@ export interface Model { lsfRevision: number creator: string schemaVersion: number + commissionerRemoteUiFlowUrl: string } const baseModel: object = { @@ -44,7 +45,8 @@ const baseModel: object = { lsfUrl: '', lsfRevision: 0, creator: '', - schemaVersion: 0 + schemaVersion: 0, + commissionerRemoteUiFlowUrl: '' } export const Model = { @@ -106,6 +108,9 @@ export const Model = { if (message.schemaVersion !== 0) { writer.uint32(152).uint32(message.schemaVersion) } + if (message.commissionerRemoteUiFlowUrl !== '') { + writer.uint32(162).string(message.commissionerRemoteUiFlowUrl) + } return writer }, @@ -173,6 +178,9 @@ export const Model = { case 19: message.schemaVersion = reader.uint32() break + case 20: + message.commissionerRemoteUiFlowUrl = reader.string() + break default: reader.skipType(tag & 7) break @@ -278,6 +286,11 @@ export const Model = { } else { message.schemaVersion = 0 } + if (object.commissionerRemoteUiFlowUrl !== undefined && object.commissionerRemoteUiFlowUrl !== null) { + message.commissionerRemoteUiFlowUrl = String(object.commissionerRemoteUiFlowUrl) + } else { + message.commissionerRemoteUiFlowUrl = '' + } return message }, @@ -304,6 +317,7 @@ export const Model = { message.lsfRevision !== undefined && (obj.lsfRevision = message.lsfRevision) message.creator !== undefined && (obj.creator = message.creator) message.schemaVersion !== undefined && (obj.schemaVersion = message.schemaVersion) + message.commissionerRemoteUiFlowUrl !== undefined && (obj.commissionerRemoteUiFlowUrl = message.commissionerRemoteUiFlowUrl) return obj }, @@ -404,6 +418,11 @@ export const Model = { } else { message.schemaVersion = 0 } + if (object.commissionerRemoteUiFlowUrl !== undefined && object.commissionerRemoteUiFlowUrl !== null) { + message.commissionerRemoteUiFlowUrl = object.commissionerRemoteUiFlowUrl + } else { + message.commissionerRemoteUiFlowUrl = '' + } return message } } diff --git a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/module/types/model/tx.ts b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/module/types/model/tx.ts index 6aa6ee6ca..884bea9d7 100644 --- a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/module/types/model/tx.ts +++ b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/module/types/model/tx.ts @@ -23,6 +23,7 @@ export interface MsgCreateModel { productUrl: string lsfUrl: string schemaVersion: number + commissionerRemoteUiFlowUrl: string } export interface MsgCreateModelResponse {} @@ -43,6 +44,7 @@ export interface MsgUpdateModel { lsfUrl: string lsfRevision: number schemaVersion: number + commissionerRemoteUiFlowUrl: string } export interface MsgUpdateModelResponse {} @@ -120,7 +122,8 @@ const baseMsgCreateModel: object = { supportUrl: '', productUrl: '', lsfUrl: '', - schemaVersion: 0 + schemaVersion: 0, + commissionerRemoteUiFlowUrl: '' } export const MsgCreateModel = { @@ -179,6 +182,9 @@ export const MsgCreateModel = { if (message.schemaVersion !== 0) { writer.uint32(144).uint32(message.schemaVersion) } + if (message.commissionerRemoteUiFlowUrl !== '') { + writer.uint32(154).string(message.commissionerRemoteUiFlowUrl) + } return writer }, @@ -243,6 +249,9 @@ export const MsgCreateModel = { case 18: message.schemaVersion = reader.uint32() break + case 19: + message.commissionerRemoteUiFlowUrl = reader.string() + break default: reader.skipType(tag & 7) break @@ -343,6 +352,11 @@ export const MsgCreateModel = { } else { message.schemaVersion = 0 } + if (object.commissionerRemoteUiFlowUrl !== undefined && object.commissionerRemoteUiFlowUrl !== null) { + message.commissionerRemoteUiFlowUrl = String(object.commissionerRemoteUiFlowUrl) + } else { + message.commissionerRemoteUiFlowUrl = '' + } return message }, @@ -368,6 +382,7 @@ export const MsgCreateModel = { message.productUrl !== undefined && (obj.productUrl = message.productUrl) message.lsfUrl !== undefined && (obj.lsfUrl = message.lsfUrl) message.schemaVersion !== undefined && (obj.schemaVersion = message.schemaVersion) + message.commissionerRemoteUiFlowUrl !== undefined && (obj.commissionerRemoteUiFlowUrl = message.commissionerRemoteUiFlowUrl) return obj }, @@ -463,6 +478,11 @@ export const MsgCreateModel = { } else { message.schemaVersion = 0 } + if (object.commissionerRemoteUiFlowUrl !== undefined && object.commissionerRemoteUiFlowUrl !== null) { + message.commissionerRemoteUiFlowUrl = object.commissionerRemoteUiFlowUrl + } else { + message.commissionerRemoteUiFlowUrl = '' + } return message } } @@ -520,7 +540,8 @@ const baseMsgUpdateModel: object = { productUrl: '', lsfUrl: '', lsfRevision: 0, - schemaVersion: 0 + schemaVersion: 0, + commissionerRemoteUiFlowUrl: '' } export const MsgUpdateModel = { @@ -570,6 +591,9 @@ export const MsgUpdateModel = { if (message.schemaVersion !== 0) { writer.uint32(120).uint32(message.schemaVersion) } + if (message.commissionerRemoteUiFlowUrl !== '') { + writer.uint32(130).string(message.commissionerRemoteUiFlowUrl) + } return writer }, @@ -625,6 +649,9 @@ export const MsgUpdateModel = { case 15: message.schemaVersion = reader.uint32() break + case 16: + message.commissionerRemoteUiFlowUrl = reader.string() + break default: reader.skipType(tag & 7) break @@ -710,6 +737,11 @@ export const MsgUpdateModel = { } else { message.schemaVersion = 0 } + if (object.commissionerRemoteUiFlowUrl !== undefined && object.commissionerRemoteUiFlowUrl !== null) { + message.commissionerRemoteUiFlowUrl = String(object.commissionerRemoteUiFlowUrl) + } else { + message.commissionerRemoteUiFlowUrl = '' + } return message }, @@ -732,6 +764,7 @@ export const MsgUpdateModel = { message.lsfUrl !== undefined && (obj.lsfUrl = message.lsfUrl) message.lsfRevision !== undefined && (obj.lsfRevision = message.lsfRevision) message.schemaVersion !== undefined && (obj.schemaVersion = message.schemaVersion) + message.commissionerRemoteUiFlowUrl !== undefined && (obj.commissionerRemoteUiFlowUrl = message.commissionerRemoteUiFlowUrl) return obj }, @@ -812,6 +845,11 @@ export const MsgUpdateModel = { } else { message.schemaVersion = 0 } + if (object.commissionerRemoteUiFlowUrl !== undefined && object.commissionerRemoteUiFlowUrl !== null) { + message.commissionerRemoteUiFlowUrl = object.commissionerRemoteUiFlowUrl + } else { + message.commissionerRemoteUiFlowUrl = '' + } return message } } diff --git a/x/model/client/cli/flags.go b/x/model/client/cli/flags.go index 348672fb6..b5da555f3 100644 --- a/x/model/client/cli/flags.go +++ b/x/model/client/cli/flags.go @@ -16,6 +16,7 @@ const ( FlagCommissioningModeInitialStepsInstruction = "commissioningModeInitialStepsInstruction" FlagCommissioningModeSecondaryStepsHint = "commissioningModeSecondaryStepsHint" FlagCommissioningModeSecondaryStepsInstruction = "commissioningModeSecondaryStepsInstruction" + FlagCommissionerRemoteUiFlowURL = "commissionerRemoteUiFlowURL" FlagUserManualURL = "userManualURL" FlagSupportURL = "supportURL" FlagProductURL = "productURL" diff --git a/x/model/client/cli/tx_model.go b/x/model/client/cli/tx_model.go index 8b2a2f395..e235ff9db 100644 --- a/x/model/client/cli/tx_model.go +++ b/x/model/client/cli/tx_model.go @@ -25,6 +25,7 @@ func CmdCreateModel() *cobra.Command { commissioningModeInitialStepsInstruction string commissioningModeSecondaryStepsHint uint32 commissioningModeSecondaryStepsInstruction string + commissionerRemoteUiFlowURL string userManualURL string supportURL string productURL string @@ -61,6 +62,7 @@ func CmdCreateModel() *cobra.Command { commissioningModeInitialStepsInstruction, commissioningModeSecondaryStepsHint, commissioningModeSecondaryStepsInstruction, + commissionerRemoteUiFlowURL, userManualURL, supportURL, productURL, @@ -120,6 +122,8 @@ current CHIP Administrator to put the device into commissioning mode.`) of commissioningModeSecondaryStepsHint. Certain values of commissioningModeSecondaryStepsHint, as defined in the Pairing Hint Table, indicate a Pairing Instruction (PI) dependency, and for these values the commissioningModeSecondaryStepInstruction SHALL be set`) + cmd.Flags().StringVar(&commissionerRemoteUiFlowURL, FlagCommissionerRemoteUiFlowURL, "", + `commissionerRemoteUiFlowURL SHALL identify URL to show a custom flow UI for the commissioner`) cmd.Flags().StringVar(&userManualURL, FlagUserManualURL, "", "URL that contains product specific web page that contains user manual for the device model.") cmd.Flags().StringVar(&supportURL, FlagSupportURL, "", @@ -149,6 +153,7 @@ func CmdUpdateModel() *cobra.Command { commissioningCustomFlowURL string commissioningModeInitialStepsInstruction string commissioningModeSecondaryStepsInstruction string + commissionerRemoteUiFlowURL string userManualURL string supportURL string productURL string @@ -182,6 +187,7 @@ func CmdUpdateModel() *cobra.Command { commissioningCustomFlowURL, commissioningModeInitialStepsInstruction, commissioningModeSecondaryStepsInstruction, + commissionerRemoteUiFlowURL, userManualURL, supportURL, productURL, @@ -223,6 +229,8 @@ values the commissioningModeInitialStepsInstruction SHALL be set`) of commissioningModeSecondaryStepsHint. Certain values of commissioningModeSecondaryStepsHint, as defined in the Pairing Hint Table, indicate a Pairing Instruction (PI) dependency, and for these values the commissioningModeSecondaryStepInstruction SHALL be set`) + cmd.Flags().StringVar(&commissionerRemoteUiFlowURL, FlagCommissionerRemoteUiFlowURL, "", + `commissionerRemoteUiFlowURL SHALL identify URL to show a custom flow UI for the commissioner`) cmd.Flags().StringVar(&userManualURL, FlagUserManualURL, "", "URL that contains product specific web page that contains user manual for the device model.") cmd.Flags().StringVar(&supportURL, FlagSupportURL, "", diff --git a/x/model/keeper/msg_server_model.go b/x/model/keeper/msg_server_model.go index f58c3fe87..4ef385d29 100644 --- a/x/model/keeper/msg_server_model.go +++ b/x/model/keeper/msg_server_model.go @@ -44,11 +44,12 @@ func (k msgServer) CreateModel(goCtx context.Context, msg *types.MsgCreateModel) CommissioningModeInitialStepsInstruction: msg.CommissioningModeInitialStepsInstruction, CommissioningModeSecondaryStepsHint: msg.CommissioningModeSecondaryStepsHint, CommissioningModeSecondaryStepsInstruction: msg.CommissioningModeSecondaryStepsInstruction, - UserManualUrl: msg.UserManualUrl, - SupportUrl: msg.SupportUrl, - ProductUrl: msg.ProductUrl, - LsfUrl: msg.LsfUrl, - SchemaVersion: msg.SchemaVersion, + CommissionerRemoteUiFlowUrl: msg.CommissionerRemoteUiFlowUrl, + UserManualUrl: msg.UserManualUrl, + SupportUrl: msg.SupportUrl, + ProductUrl: msg.ProductUrl, + LsfUrl: msg.LsfUrl, + SchemaVersion: msg.SchemaVersion, } // if LsfUrl is not empty, we set lsfRevision to default value of 1 @@ -120,6 +121,10 @@ func (k msgServer) UpdateModel(goCtx context.Context, msg *types.MsgUpdateModel) model.CommissioningModeSecondaryStepsInstruction = msg.CommissioningModeSecondaryStepsInstruction } + if msg.CommissionerRemoteUiFlowUrl != "" { + model.CommissionerRemoteUiFlowUrl = msg.CommissionerRemoteUiFlowUrl + } + if msg.UserManualUrl != "" { model.UserManualUrl = msg.UserManualUrl } diff --git a/x/model/types/messages_model.go b/x/model/types/messages_model.go index 5be279c51..4bc65bf33 100644 --- a/x/model/types/messages_model.go +++ b/x/model/types/messages_model.go @@ -28,6 +28,7 @@ func NewMsgCreateModel( commissioningModeInitialStepsInstruction string, commissioningModeSecondaryStepsHint uint32, commissioningModeSecondaryStepsInstruction string, + commissionerRemoteUiFlowURL string, userManualURL string, supportURL string, productURL string, @@ -48,11 +49,12 @@ func NewMsgCreateModel( CommissioningModeInitialStepsInstruction: commissioningModeInitialStepsInstruction, CommissioningModeSecondaryStepsHint: commissioningModeSecondaryStepsHint, CommissioningModeSecondaryStepsInstruction: commissioningModeSecondaryStepsInstruction, - UserManualUrl: userManualURL, - SupportUrl: supportURL, - ProductUrl: productURL, - LsfUrl: lsfURL, - SchemaVersion: schemaVersion, + CommissionerRemoteUiFlowUrl: commissionerRemoteUiFlowURL, + UserManualUrl: userManualURL, + SupportUrl: supportURL, + ProductUrl: productURL, + LsfUrl: lsfURL, + SchemaVersion: schemaVersion, } } @@ -105,6 +107,7 @@ func NewMsgUpdateModel( commissioningCustomFlowURL string, commissioningModeInitialStepsInstruction string, commissioningModeSecondaryStepsInstruction string, + commissionerRemoteUiFlowURL string, userManualURL string, supportURL string, productURL string, @@ -122,12 +125,13 @@ func NewMsgUpdateModel( CommissioningCustomFlowUrl: commissioningCustomFlowURL, CommissioningModeInitialStepsInstruction: commissioningModeInitialStepsInstruction, CommissioningModeSecondaryStepsInstruction: commissioningModeSecondaryStepsInstruction, - UserManualUrl: userManualURL, - SupportUrl: supportURL, - ProductUrl: productURL, - LsfUrl: lsfURL, - LsfRevision: lsfRevision, - SchemaVersion: schemaVersion, + CommissionerRemoteUiFlowUrl: commissionerRemoteUiFlowURL, + UserManualUrl: userManualURL, + SupportUrl: supportURL, + ProductUrl: productURL, + LsfUrl: lsfURL, + LsfRevision: lsfRevision, + SchemaVersion: schemaVersion, } } diff --git a/x/model/types/model.pb.go b/x/model/types/model.pb.go index de6c989b6..dd1007059 100644 --- a/x/model/types/model.pb.go +++ b/x/model/types/model.pb.go @@ -43,6 +43,7 @@ type Model struct { LsfRevision int32 `protobuf:"varint,17,opt,name=lsfRevision,proto3" json:"lsfRevision,omitempty"` Creator string `protobuf:"bytes,18,opt,name=creator,proto3" json:"creator,omitempty"` SchemaVersion uint32 `protobuf:"varint,19,opt,name=schemaVersion,proto3" json:"schemaVersion,omitempty"` + CommissionerRemoteUiFlowUrl string `protobuf:"bytes,20,opt,name=commissionerRemoteUiFlowUrl,proto3" json:"commissionerRemoteUiFlowUrl,omitempty"` } func (m *Model) Reset() { *m = Model{} } @@ -211,6 +212,13 @@ func (m *Model) GetSchemaVersion() uint32 { return 0 } +func (m *Model) GetCommissionerRemoteUiFlowUrl() string { + if m != nil { + return m.CommissionerRemoteUiFlowUrl + } + return "" +} + func init() { proto.RegisterType((*Model)(nil), "zigbeealliance.distributedcomplianceledger.model.Model") } @@ -218,41 +226,42 @@ func init() { func init() { proto.RegisterFile("model/model.proto", fileDescriptor_312ac5bcab6cbb43) } var fileDescriptor_312ac5bcab6cbb43 = []byte{ - // 530 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xcd, 0x6e, 0x13, 0x31, - 0x18, 0xcc, 0x52, 0x92, 0x50, 0xb7, 0x81, 0xd6, 0x20, 0x30, 0x3d, 0xac, 0x42, 0xe1, 0x10, 0x21, - 0x25, 0x8b, 0xe0, 0xc2, 0x09, 0x89, 0x22, 0x55, 0x44, 0x6a, 0x2b, 0x94, 0x00, 0x87, 0x1e, 0x00, - 0xaf, 0xfd, 0x35, 0xb5, 0xe4, 0x5d, 0x5b, 0xb6, 0x37, 0x10, 0xee, 0xdc, 0x79, 0x18, 0x1e, 0x82, - 0x63, 0xc5, 0x89, 0x23, 0x4a, 0x5e, 0x04, 0xd9, 0x9b, 0x92, 0xac, 0x50, 0xff, 0x2e, 0x51, 0x3c, - 0x33, 0xdf, 0x97, 0x89, 0x77, 0x66, 0xd1, 0x66, 0xa6, 0x38, 0xc8, 0x24, 0x7c, 0xf6, 0xb4, 0x51, - 0x4e, 0xe1, 0x27, 0x5f, 0xc5, 0x28, 0x05, 0xa0, 0x52, 0x0a, 0x9a, 0x33, 0xe8, 0x71, 0x61, 0x9d, - 0x11, 0x69, 0xe1, 0x80, 0x33, 0x95, 0xe9, 0x12, 0x95, 0xc0, 0x47, 0x60, 0x7a, 0x61, 0x6e, 0xeb, - 0x3e, 0x53, 0x36, 0x53, 0xf6, 0x63, 0x98, 0x4f, 0xca, 0x43, 0xb9, 0x6c, 0xf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0x36, 0x12, 0x37, 0xd1, 0x60, 0xd3, - 0x46, 0x28, 0xfc, 0xb3, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x85, 0x84, 0x11, 0xc4, 0x52, 0x04, - 0x00, 0x00, + // 551 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xc1, 0x6e, 0x13, 0x31, + 0x14, 0xcc, 0x52, 0x92, 0x50, 0xb7, 0x81, 0xd6, 0x54, 0x60, 0x8a, 0xb4, 0x0a, 0x85, 0x43, 0x84, + 0x94, 0x2c, 0x82, 0x0b, 0x27, 0x04, 0x45, 0xaa, 0x88, 0xd4, 0x56, 0x68, 0x43, 0x39, 0xf4, 0x00, + 0xec, 0xae, 0x5f, 0x53, 0x4b, 0xf6, 0xda, 0xb2, 0xbd, 0x81, 0xf0, 0x15, 0x7c, 0x0c, 0xff, 0x00, + 0xc7, 0x8a, 0x13, 0x47, 0x94, 0xfc, 0x08, 0xb2, 0x37, 0x21, 0x89, 0x50, 0xd3, 0xf6, 0x12, 0xc5, + 0x33, 0xf3, 0x5e, 0x26, 0xde, 0xd9, 0x41, 0x9b, 0x42, 0x52, 0xe0, 0x91, 0xff, 0xec, 0x28, 0x2d, + 0xad, 0xc4, 0x4f, 0xbe, 0xb2, 0x7e, 0x0a, 0x90, 0x70, 0xce, 0x92, 0x3c, 0x83, 0x0e, 0x65, 0xc6, + 0x6a, 0x96, 0x16, 0x16, 0x68, 0x26, 0x85, 0x2a, 0x51, 0x0e, 0xb4, 0x0f, 0xba, 0xe3, 0xe7, 0xb6, + 0xef, 0x65, 0xd2, 0x08, 0x69, 0x3e, 0xfa, 0xf9, 0xa8, 0x3c, 0x94, 0xcb, 0x76, 0x7e, 0xd4, 0x51, + 0xf5, 0xc0, 0x89, 0xf0, 0x06, 0x5a, 0x19, 0x30, 0x4a, 0x82, 0x66, 0xd0, 0xaa, 0xc6, 0xee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x8f, 0xe8, 0x4b, 0x59, 0x3c, + 0x91, 0x1d, 0x2a, 0x30, 0x69, 0xcd, 0x57, 0xc6, 0xb3, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x87, + 0xf2, 0xba, 0x9d, 0x94, 0x04, 0x00, 0x00, } func (m *Model) Marshal() (dAtA []byte, err error) { @@ -275,6 +284,15 @@ func (m *Model) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.CommissionerRemoteUiFlowUrl) > 0 { + i -= len(m.CommissionerRemoteUiFlowUrl) + copy(dAtA[i:], m.CommissionerRemoteUiFlowUrl) + i = encodeVarintModel(dAtA, i, uint64(len(m.CommissionerRemoteUiFlowUrl))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa2 + } if m.SchemaVersion != 0 { i = encodeVarintModel(dAtA, i, uint64(m.SchemaVersion)) i-- @@ -488,6 +506,10 @@ func (m *Model) Size() (n int) { if m.SchemaVersion != 0 { n += 2 + sovModel(uint64(m.SchemaVersion)) } + l = len(m.CommissionerRemoteUiFlowUrl) + if l > 0 { + n += 2 + l + sovModel(uint64(l)) + } return n } @@ -1030,6 +1052,38 @@ func (m *Model) Unmarshal(dAtA []byte) error { break } } + case 20: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommissionerRemoteUiFlowUrl", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthModel + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthModel + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CommissionerRemoteUiFlowUrl = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipModel(dAtA[iNdEx:]) diff --git a/x/model/types/tx.pb.go b/x/model/types/tx.pb.go index 370c98f0b..50feb93b8 100644 --- a/x/model/types/tx.pb.go +++ b/x/model/types/tx.pb.go @@ -48,6 +48,7 @@ type MsgCreateModel struct { ProductUrl string `protobuf:"bytes,16,opt,name=productUrl,proto3" json:"productUrl,omitempty" validate:"omitempty,url,startsnotwith=http:,max=256"` LsfUrl string `protobuf:"bytes,17,opt,name=lsfUrl,proto3" json:"lsfUrl,omitempty" validate:"omitempty,url,startsnotwith=http:,max=256"` SchemaVersion uint32 `protobuf:"varint,18,opt,name=schemaVersion,proto3" json:"schemaVersion,omitempty"` + CommissionerRemoteUiFlowUrl string `protobuf:"bytes,19,opt,name=commissionerRemoteUiFlowUrl,proto3" json:"commissionerRemoteUiFlowUrl,omitempty" validate:"omitempty,url,startsnotwith=http:,max=256"` } func (m *MsgCreateModel) Reset() { *m = MsgCreateModel{} } @@ -209,6 +210,13 @@ func (m *MsgCreateModel) GetSchemaVersion() uint32 { return 0 } +func (m *MsgCreateModel) GetCommissionerRemoteUiFlowUrl() string { + if m != nil { + return m.CommissionerRemoteUiFlowUrl + } + return "" +} + type MsgCreateModelResponse struct { } @@ -261,6 +269,7 @@ type MsgUpdateModel struct { LsfUrl string `protobuf:"bytes,13,opt,name=lsfUrl,proto3" json:"lsfUrl,omitempty" validate:"omitempty,url,startsnotwith=http:,max=256"` LsfRevision int32 `protobuf:"varint,14,opt,name=lsfRevision,proto3" json:"lsfRevision,omitempty" validate:"gte=0,lte=65535"` SchemaVersion uint32 `protobuf:"varint,15,opt,name=schemaVersion,proto3" json:"schemaVersion,omitempty"` + CommissionerRemoteUiFlowUrl string `protobuf:"bytes,16,opt,name=commissionerRemoteUiFlowUrl,proto3" json:"commissionerRemoteUiFlowUrl,omitempty" validate:"omitempty,url,startsnotwith=http:,max=256"` } func (m *MsgUpdateModel) Reset() { *m = MsgUpdateModel{} } @@ -401,6 +410,13 @@ func (m *MsgUpdateModel) GetSchemaVersion() uint32 { return 0 } +func (m *MsgUpdateModel) GetCommissionerRemoteUiFlowUrl() string { + if m != nil { + return m.CommissionerRemoteUiFlowUrl + } + return "" +} + type MsgUpdateModelResponse struct { } @@ -1023,91 +1039,93 @@ func init() { func init() { proto.RegisterFile("model/tx.proto", fileDescriptor_8898c625fa4755dc) } var fileDescriptor_8898c625fa4755dc = []byte{ - // 1339 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x99, 0x4d, 0x6f, 0xdb, 0x36, - 0x18, 0xc7, 0xab, 0x35, 0xaf, 0x74, 0x9c, 0xb4, 0xec, 0x9b, 0xe6, 0x75, 0x56, 0xa6, 0x0e, 0x43, - 0x50, 0x24, 0x71, 0xea, 0x34, 0x59, 0x51, 0xcc, 0x40, 0xeb, 0x6c, 0x6d, 0x02, 0x34, 0x6d, 0xa1, - 0xb4, 0xc5, 0x50, 0x60, 0xed, 0x64, 0x89, 0x76, 0x88, 0x49, 0xa2, 0x46, 0x52, 0x79, 0xe9, 0x79, - 0x1f, 0x60, 0xd7, 0x5d, 0x7a, 0xd8, 0x61, 0xc7, 0x9d, 0x76, 0xdf, 0x75, 0xd8, 0xa9, 0xd8, 0x69, - 0x27, 0x61, 0x68, 0xaf, 0x3b, 0x0c, 0xfa, 0x04, 0x83, 0x68, 0xd9, 0x96, 0x6c, 0xf9, 0x25, 0xb1, - 0x73, 0x48, 0x2f, 0x86, 0x45, 0xf2, 0xff, 0xe7, 0x43, 0xf2, 0x79, 0x7e, 0xa6, 0x6d, 0x30, 0x6b, - 0x13, 0x13, 0x59, 0x05, 0x7e, 0xb0, 0xec, 0x52, 0xc2, 0x09, 0x5c, 0x79, 0x85, 0x6b, 0x15, 0x84, - 0x74, 0xcb, 0xc2, 0xba, 0x63, 0xa0, 0x65, 0x13, 0x33, 0x4e, 0x71, 0xc5, 0xe3, 0xc8, 0x34, 0x88, - 0xed, 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0xee, 0xfe, 0xb0, 0xa7, 0x35, 0x5c, 0xc0, 0xdd, 0x89, 0x22, 0x02, 0x4e, 0xc1, - 0xc9, 0xfd, 0x61, 0x8f, 0x70, 0xb8, 0x80, 0xbb, 0x97, 0x7b, 0xf9, 0xdb, 0x3f, 0xde, 0xe6, 0xa5, - 0x37, 0x6f, 0xf3, 0xd2, 0x3f, 0x6f, 0xf3, 0xd2, 0x8f, 0xef, 0xf2, 0x67, 0xde, 0xbc, 0xcb, 0x9f, - 0xf9, 0xfb, 0x5d, 0xfe, 0xcc, 0xf3, 0x7b, 0x35, 0xcc, 0x77, 0xbd, 0xca, 0xb2, 0x41, 0xec, 0x42, - 0x7d, 0xd2, 0xa5, 0xc6, 0xac, 0x85, 0xd8, 0xac, 0x4b, 0xad, 0x69, 0x97, 0xea, 0xf3, 0x16, 0x0e, - 0x0a, 0xd1, 0xdf, 0x30, 0x87, 0x2e, 0x62, 0x95, 0x09, 0xf1, 0xcf, 0xc7, 0xea, 0xff, 0x01, 0x00, - 0x00, 0xff, 0xff, 0xdd, 0x6a, 0xcd, 0x41, 0x9c, 0x19, 0x00, 0x00, + // 1366 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x59, 0xbb, 0x6f, 0xdb, 0x46, + 0x18, 0x0f, 0x1b, 0x3f, 0xcf, 0x96, 0x9d, 0x5c, 0x5e, 0xac, 0x92, 0x8a, 0x2e, 0x53, 0x14, 0x46, + 0x60, 0x5b, 0x8e, 0x1c, 0xbb, 0x41, 0x50, 0x03, 0x89, 0xdc, 0x26, 0x36, 0x10, 0x27, 0x01, 0x9d, + 0x04, 0x45, 0x80, 0x26, 0xa5, 0xc8, 0x93, 0x7c, 0x28, 0xc9, 0x63, 0xef, 0x8e, 0x7e, 0xcd, 0xfd, + 0x03, 0xba, 0x76, 0xc9, 0xd8, 0xb1, 0x53, 0xf7, 0x6e, 0x45, 0xc7,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, 0x7c, 0x56, 0xfe, 0x0f, 0x00, 0x00, 0xff, 0xff, 0xd9, 0xee, + 0x5d, 0x30, 0x94, 0x1a, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1390,6 +1408,15 @@ func (m *MsgCreateModel) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.CommissionerRemoteUiFlowUrl) > 0 { + i -= len(m.CommissionerRemoteUiFlowUrl) + copy(dAtA[i:], m.CommissionerRemoteUiFlowUrl) + i = encodeVarintTx(dAtA, i, uint64(len(m.CommissionerRemoteUiFlowUrl))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x9a + } if m.SchemaVersion != 0 { i = encodeVarintTx(dAtA, i, uint64(m.SchemaVersion)) i-- @@ -1554,6 +1581,15 @@ func (m *MsgUpdateModel) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.CommissionerRemoteUiFlowUrl) > 0 { + i -= len(m.CommissionerRemoteUiFlowUrl) + copy(dAtA[i:], m.CommissionerRemoteUiFlowUrl) + i = encodeVarintTx(dAtA, i, uint64(len(m.CommissionerRemoteUiFlowUrl))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 + } if m.SchemaVersion != 0 { i = encodeVarintTx(dAtA, i, uint64(m.SchemaVersion)) i-- @@ -2154,6 +2190,10 @@ func (m *MsgCreateModel) Size() (n int) { if m.SchemaVersion != 0 { n += 2 + sovTx(uint64(m.SchemaVersion)) } + l = len(m.CommissionerRemoteUiFlowUrl) + if l > 0 { + n += 2 + l + sovTx(uint64(l)) + } return n } @@ -2228,6 +2268,10 @@ func (m *MsgUpdateModel) Size() (n int) { if m.SchemaVersion != 0 { n += 1 + sovTx(uint64(m.SchemaVersion)) } + l = len(m.CommissionerRemoteUiFlowUrl) + if l > 0 { + n += 2 + l + sovTx(uint64(l)) + } return n } @@ -2949,6 +2993,38 @@ func (m *MsgCreateModel) Unmarshal(dAtA []byte) error { break } } + case 19: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommissionerRemoteUiFlowUrl", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CommissionerRemoteUiFlowUrl = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -3477,6 +3553,38 @@ func (m *MsgUpdateModel) Unmarshal(dAtA []byte) error { break } } + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommissionerRemoteUiFlowUrl", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CommissionerRemoteUiFlowUrl = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:])