diff --git a/lib/src/generated/fai/v1/hub.pb.dart b/lib/src/generated/fai/v1/hub.pb.dart index e097b68..26cc7e5 100644 --- a/lib/src/generated/fai/v1/hub.pb.dart +++ b/lib/src/generated/fai/v1/hub.pb.dart @@ -1774,6 +1774,7 @@ class InstallModuleRequest extends $pb.GeneratedMessage { factory InstallModuleRequest({ $core.String? source, $core.String? expectedSha256, + $core.String? version, }) { final $result = create(); if (source != null) { @@ -1782,6 +1783,9 @@ class InstallModuleRequest extends $pb.GeneratedMessage { if (expectedSha256 != null) { $result.expectedSha256 = expectedSha256; } + if (version != null) { + $result.version = version; + } return $result; } InstallModuleRequest._() : super(); @@ -1791,6 +1795,7 @@ class InstallModuleRequest extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'InstallModuleRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'fai.v1'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'source') ..aOS(2, _omitFieldNames ? '' : 'expectedSha256') + ..aOS(3, _omitFieldNames ? '' : 'version') ..hasRequiredFields = false ; @@ -1809,7 +1814,9 @@ class InstallModuleRequest extends $pb.GeneratedMessage { static InstallModuleRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static InstallModuleRequest? _defaultInstance; - /// Local path or http(s) URL of the .fai bundle. + /// Local path or http(s) URL of the .fai bundle, OR a + /// capability name (e.g. "text.extract") resolved via the + /// store index. @$pb.TagNumber(1) $core.String get source => $_getSZ(0); @$pb.TagNumber(1) @@ -1828,6 +1835,19 @@ class InstallModuleRequest extends $pb.GeneratedMessage { $core.bool hasExpectedSha256() => $_has(1); @$pb.TagNumber(2) void clearExpectedSha256() => $_clearField(2); + + /// Optional explicit version when `source` is a capability + /// name. Ignored for URL / local-path sources (the bundle's + /// own manifest dictates the version). Empty string falls + /// back to "highest-priority version from the store index". + @$pb.TagNumber(3) + $core.String get version => $_getSZ(2); + @$pb.TagNumber(3) + set version($core.String v) { $_setString(2, v); } + @$pb.TagNumber(3) + $core.bool hasVersion() => $_has(2); + @$pb.TagNumber(3) + void clearVersion() => $_clearField(3); } class InstallModuleResponse extends $pb.GeneratedMessage { diff --git a/lib/src/generated/fai/v1/hub.pbjson.dart b/lib/src/generated/fai/v1/hub.pbjson.dart index 731d119..3209660 100644 --- a/lib/src/generated/fai/v1/hub.pbjson.dart +++ b/lib/src/generated/fai/v1/hub.pbjson.dart @@ -460,13 +460,15 @@ const InstallModuleRequest$json = { '2': [ {'1': 'source', '3': 1, '4': 1, '5': 9, '10': 'source'}, {'1': 'expected_sha256', '3': 2, '4': 1, '5': 9, '10': 'expectedSha256'}, + {'1': 'version', '3': 3, '4': 1, '5': 9, '10': 'version'}, ], }; /// Descriptor for `InstallModuleRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List installModuleRequestDescriptor = $convert.base64Decode( 'ChRJbnN0YWxsTW9kdWxlUmVxdWVzdBIWCgZzb3VyY2UYASABKAlSBnNvdXJjZRInCg9leHBlY3' - 'RlZF9zaGEyNTYYAiABKAlSDmV4cGVjdGVkU2hhMjU2'); + 'RlZF9zaGEyNTYYAiABKAlSDmV4cGVjdGVkU2hhMjU2EhgKB3ZlcnNpb24YAyABKAlSB3ZlcnNp' + 'b24='); @$core.Deprecated('Use installModuleResponseDescriptor instead') const InstallModuleResponse$json = {