diff --git a/lib/src/gen/app/v1/app.pb.dart b/lib/src/gen/app/v1/app.pb.dart index 15baf620e9..b00b7d27a5 100644 --- a/lib/src/gen/app/v1/app.pb.dart +++ b/lib/src/gen/app/v1/app.pb.dart @@ -6447,10 +6447,10 @@ class FragmentError extends $pb.GeneratedMessage { class FragmentUsage extends $pb.GeneratedMessage { factory FragmentUsage({ - $core.int? fragmentId, - $fixnum.Int64? organizations, - $fixnum.Int64? machines, - $fixnum.Int64? machinesInCurrentOrg, + $core.String? fragmentId, + $core.int? organizations, + $core.int? machines, + $core.int? machinesInCurrentOrg, }) { final $result = create(); if (fragmentId != null) { @@ -6472,10 +6472,10 @@ class FragmentUsage extends $pb.GeneratedMessage { factory FragmentUsage.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'FragmentUsage', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'fragmentId', $pb.PbFieldType.O3) - ..aInt64(2, _omitFieldNames ? '' : 'organizations') - ..aInt64(3, _omitFieldNames ? '' : 'machines') - ..aInt64(4, _omitFieldNames ? '' : 'machinesInCurrentOrg') + ..aOS(1, _omitFieldNames ? '' : 'fragmentId') + ..a<$core.int>(2, _omitFieldNames ? '' : 'organizations', $pb.PbFieldType.O3) + ..a<$core.int>(3, _omitFieldNames ? '' : 'machines', $pb.PbFieldType.O3) + ..a<$core.int>(4, _omitFieldNames ? '' : 'machinesInCurrentOrg', $pb.PbFieldType.O3) ..hasRequiredFields = false ; @@ -6501,36 +6501,36 @@ class FragmentUsage extends $pb.GeneratedMessage { static FragmentUsage? _defaultInstance; @$pb.TagNumber(1) - $core.int get fragmentId => $_getIZ(0); + $core.String get fragmentId => $_getSZ(0); @$pb.TagNumber(1) - set fragmentId($core.int v) { $_setSignedInt32(0, v); } + set fragmentId($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasFragmentId() => $_has(0); @$pb.TagNumber(1) void clearFragmentId() => clearField(1); @$pb.TagNumber(2) - $fixnum.Int64 get organizations => $_getI64(1); + $core.int get organizations => $_getIZ(1); @$pb.TagNumber(2) - set organizations($fixnum.Int64 v) { $_setInt64(1, v); } + set organizations($core.int v) { $_setSignedInt32(1, v); } @$pb.TagNumber(2) $core.bool hasOrganizations() => $_has(1); @$pb.TagNumber(2) void clearOrganizations() => clearField(2); @$pb.TagNumber(3) - $fixnum.Int64 get machines => $_getI64(2); + $core.int get machines => $_getIZ(2); @$pb.TagNumber(3) - set machines($fixnum.Int64 v) { $_setInt64(2, v); } + set machines($core.int v) { $_setSignedInt32(2, v); } @$pb.TagNumber(3) $core.bool hasMachines() => $_has(2); @$pb.TagNumber(3) void clearMachines() => clearField(3); @$pb.TagNumber(4) - $fixnum.Int64 get machinesInCurrentOrg => $_getI64(3); + $core.int get machinesInCurrentOrg => $_getIZ(3); @$pb.TagNumber(4) - set machinesInCurrentOrg($fixnum.Int64 v) { $_setInt64(3, v); } + set machinesInCurrentOrg($core.int v) { $_setSignedInt32(3, v); } @$pb.TagNumber(4) $core.bool hasMachinesInCurrentOrg() => $_has(3); @$pb.TagNumber(4) @@ -9692,11 +9692,15 @@ class RegistryItem extends $pb.GeneratedMessage { class GetRegistryItemRequest extends $pb.GeneratedMessage { factory GetRegistryItemRequest({ $core.String? itemId, + $core.bool? includeMarkdownDocumentation, }) { final $result = create(); if (itemId != null) { $result.itemId = itemId; } + if (includeMarkdownDocumentation != null) { + $result.includeMarkdownDocumentation = includeMarkdownDocumentation; + } return $result; } GetRegistryItemRequest._() : super(); @@ -9705,6 +9709,7 @@ class GetRegistryItemRequest extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetRegistryItemRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'itemId') + ..aOB(2, _omitFieldNames ? '' : 'includeMarkdownDocumentation') ..hasRequiredFields = false ; @@ -9737,6 +9742,15 @@ class GetRegistryItemRequest extends $pb.GeneratedMessage { $core.bool hasItemId() => $_has(0); @$pb.TagNumber(1) void clearItemId() => clearField(1); + + @$pb.TagNumber(2) + $core.bool get includeMarkdownDocumentation => $_getBF(1); + @$pb.TagNumber(2) + set includeMarkdownDocumentation($core.bool v) { $_setBool(1, v); } + @$pb.TagNumber(2) + $core.bool hasIncludeMarkdownDocumentation() => $_has(1); + @$pb.TagNumber(2) + void clearIncludeMarkdownDocumentation() => clearField(2); } class GetRegistryItemResponse extends $pb.GeneratedMessage { @@ -9904,6 +9918,13 @@ class CreateRegistryItemResponse extends $pb.GeneratedMessage { static CreateRegistryItemResponse? _defaultInstance; } +enum UpdateRegistryItemRequest_Metadata { + moduleUpdateMetadata, + mlModelUpdateMetadata, + mlTrainingUpdateMetadata, + notSet +} + class UpdateRegistryItemRequest extends $pb.GeneratedMessage { factory UpdateRegistryItemRequest({ $core.String? itemId, @@ -9911,6 +9932,9 @@ class UpdateRegistryItemRequest extends $pb.GeneratedMessage { $core.String? description, Visibility? visibility, $core.String? url, + UpdateModuleMetadata? moduleUpdateMetadata, + UpdateMLModelMetadata? mlModelUpdateMetadata, + UpdateMLTrainingMetadata? mlTrainingUpdateMetadata, }) { final $result = create(); if (itemId != null) { @@ -9928,18 +9952,37 @@ class UpdateRegistryItemRequest extends $pb.GeneratedMessage { if (url != null) { $result.url = url; } + if (moduleUpdateMetadata != null) { + $result.moduleUpdateMetadata = moduleUpdateMetadata; + } + if (mlModelUpdateMetadata != null) { + $result.mlModelUpdateMetadata = mlModelUpdateMetadata; + } + if (mlTrainingUpdateMetadata != null) { + $result.mlTrainingUpdateMetadata = mlTrainingUpdateMetadata; + } return $result; } UpdateRegistryItemRequest._() : super(); factory UpdateRegistryItemRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory UpdateRegistryItemRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + static const $core.Map<$core.int, UpdateRegistryItemRequest_Metadata> _UpdateRegistryItemRequest_MetadataByTag = { + 6 : UpdateRegistryItemRequest_Metadata.moduleUpdateMetadata, + 7 : UpdateRegistryItemRequest_Metadata.mlModelUpdateMetadata, + 8 : UpdateRegistryItemRequest_Metadata.mlTrainingUpdateMetadata, + 0 : UpdateRegistryItemRequest_Metadata.notSet + }; static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UpdateRegistryItemRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create) + ..oo(0, [6, 7, 8]) ..aOS(1, _omitFieldNames ? '' : 'itemId') ..e<$8.PackageType>(2, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, defaultOrMaker: $8.PackageType.PACKAGE_TYPE_UNSPECIFIED, valueOf: $8.PackageType.valueOf, enumValues: $8.PackageType.values) ..aOS(3, _omitFieldNames ? '' : 'description') ..e(4, _omitFieldNames ? '' : 'visibility', $pb.PbFieldType.OE, defaultOrMaker: Visibility.VISIBILITY_UNSPECIFIED, valueOf: Visibility.valueOf, enumValues: Visibility.values) ..aOS(5, _omitFieldNames ? '' : 'url') + ..aOM(6, _omitFieldNames ? '' : 'moduleUpdateMetadata', subBuilder: UpdateModuleMetadata.create) + ..aOM(7, _omitFieldNames ? '' : 'mlModelUpdateMetadata', subBuilder: UpdateMLModelMetadata.create) + ..aOM(8, _omitFieldNames ? '' : 'mlTrainingUpdateMetadata', subBuilder: UpdateMLTrainingMetadata.create) ..hasRequiredFields = false ; @@ -9964,6 +10007,9 @@ class UpdateRegistryItemRequest extends $pb.GeneratedMessage { static UpdateRegistryItemRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static UpdateRegistryItemRequest? _defaultInstance; + UpdateRegistryItemRequest_Metadata whichMetadata() => _UpdateRegistryItemRequest_MetadataByTag[$_whichOneof(0)]!; + void clearMetadata() => clearField($_whichOneof(0)); + @$pb.TagNumber(1) $core.String get itemId => $_getSZ(0); @$pb.TagNumber(1) @@ -10008,6 +10054,39 @@ class UpdateRegistryItemRequest extends $pb.GeneratedMessage { $core.bool hasUrl() => $_has(4); @$pb.TagNumber(5) void clearUrl() => clearField(5); + + @$pb.TagNumber(6) + UpdateModuleMetadata get moduleUpdateMetadata => $_getN(5); + @$pb.TagNumber(6) + set moduleUpdateMetadata(UpdateModuleMetadata v) { setField(6, v); } + @$pb.TagNumber(6) + $core.bool hasModuleUpdateMetadata() => $_has(5); + @$pb.TagNumber(6) + void clearModuleUpdateMetadata() => clearField(6); + @$pb.TagNumber(6) + UpdateModuleMetadata ensureModuleUpdateMetadata() => $_ensure(5); + + @$pb.TagNumber(7) + UpdateMLModelMetadata get mlModelUpdateMetadata => $_getN(6); + @$pb.TagNumber(7) + set mlModelUpdateMetadata(UpdateMLModelMetadata v) { setField(7, v); } + @$pb.TagNumber(7) + $core.bool hasMlModelUpdateMetadata() => $_has(6); + @$pb.TagNumber(7) + void clearMlModelUpdateMetadata() => clearField(7); + @$pb.TagNumber(7) + UpdateMLModelMetadata ensureMlModelUpdateMetadata() => $_ensure(6); + + @$pb.TagNumber(8) + UpdateMLTrainingMetadata get mlTrainingUpdateMetadata => $_getN(7); + @$pb.TagNumber(8) + set mlTrainingUpdateMetadata(UpdateMLTrainingMetadata v) { setField(8, v); } + @$pb.TagNumber(8) + $core.bool hasMlTrainingUpdateMetadata() => $_has(7); + @$pb.TagNumber(8) + void clearMlTrainingUpdateMetadata() => clearField(8); + @$pb.TagNumber(8) + UpdateMLTrainingMetadata ensureMlTrainingUpdateMetadata() => $_ensure(7); } class UpdateRegistryItemResponse extends $pb.GeneratedMessage { @@ -10052,6 +10131,7 @@ class ListRegistryItemsRequest extends $pb.GeneratedMessage { $core.String? searchTerm, $core.String? pageToken, $core.Iterable<$core.String>? publicNamespaces, + $core.bool? includeMarkdownDocumentation, }) { final $result = create(); if (organizationId != null) { @@ -10078,6 +10158,9 @@ class ListRegistryItemsRequest extends $pb.GeneratedMessage { if (publicNamespaces != null) { $result.publicNamespaces.addAll(publicNamespaces); } + if (includeMarkdownDocumentation != null) { + $result.includeMarkdownDocumentation = includeMarkdownDocumentation; + } return $result; } ListRegistryItemsRequest._() : super(); @@ -10093,6 +10176,7 @@ class ListRegistryItemsRequest extends $pb.GeneratedMessage { ..aOS(6, _omitFieldNames ? '' : 'searchTerm') ..aOS(7, _omitFieldNames ? '' : 'pageToken') ..pPS(8, _omitFieldNames ? '' : 'publicNamespaces') + ..aOB(9, _omitFieldNames ? '' : 'includeMarkdownDocumentation') ..hasRequiredFields = false ; @@ -10160,6 +10244,15 @@ class ListRegistryItemsRequest extends $pb.GeneratedMessage { /// One or more public namespaces to return results for. @$pb.TagNumber(8) $core.List<$core.String> get publicNamespaces => $_getList(7); + + @$pb.TagNumber(9) + $core.bool get includeMarkdownDocumentation => $_getBF(8); + @$pb.TagNumber(9) + set includeMarkdownDocumentation($core.bool v) { $_setBool(8, v); } + @$pb.TagNumber(9) + $core.bool hasIncludeMarkdownDocumentation() => $_has(8); + @$pb.TagNumber(9) + void clearIncludeMarkdownDocumentation() => clearField(9); } class ListRegistryItemsResponse extends $pb.GeneratedMessage { @@ -10704,10 +10797,213 @@ class UpdateModuleResponse extends $pb.GeneratedMessage { void clearUrl() => clearField(1); } +class UpdateModuleMetadata extends $pb.GeneratedMessage { + factory UpdateModuleMetadata({ + $core.Iterable? models, + $core.String? entrypoint, + }) { + final $result = create(); + if (models != null) { + $result.models.addAll(models); + } + if (entrypoint != null) { + $result.entrypoint = entrypoint; + } + return $result; + } + UpdateModuleMetadata._() : super(); + factory UpdateModuleMetadata.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory UpdateModuleMetadata.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UpdateModuleMetadata', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'models', $pb.PbFieldType.PM, subBuilder: Model.create) + ..aOS(2, _omitFieldNames ? '' : 'entrypoint') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + UpdateModuleMetadata clone() => UpdateModuleMetadata()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + UpdateModuleMetadata copyWith(void Function(UpdateModuleMetadata) updates) => super.copyWith((message) => updates(message as UpdateModuleMetadata)) as UpdateModuleMetadata; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static UpdateModuleMetadata create() => UpdateModuleMetadata._(); + UpdateModuleMetadata createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static UpdateModuleMetadata getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static UpdateModuleMetadata? _defaultInstance; + + /// A list of models that are available in the module + @$pb.TagNumber(1) + $core.List get models => $_getList(0); + + /// The executable to run to start the module program + @$pb.TagNumber(2) + $core.String get entrypoint => $_getSZ(1); + @$pb.TagNumber(2) + set entrypoint($core.String v) { $_setString(1, v); } + @$pb.TagNumber(2) + $core.bool hasEntrypoint() => $_has(1); + @$pb.TagNumber(2) + void clearEntrypoint() => clearField(2); +} + +class UpdateMLModelMetadata extends $pb.GeneratedMessage { + factory UpdateMLModelMetadata({ + $7.ModelType? modelType, + $7.ModelFramework? modelFramework, + }) { + final $result = create(); + if (modelType != null) { + $result.modelType = modelType; + } + if (modelFramework != null) { + $result.modelFramework = modelFramework; + } + return $result; + } + UpdateMLModelMetadata._() : super(); + factory UpdateMLModelMetadata.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory UpdateMLModelMetadata.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UpdateMLModelMetadata', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create) + ..e<$7.ModelType>(1, _omitFieldNames ? '' : 'modelType', $pb.PbFieldType.OE, defaultOrMaker: $7.ModelType.MODEL_TYPE_UNSPECIFIED, valueOf: $7.ModelType.valueOf, enumValues: $7.ModelType.values) + ..e<$7.ModelFramework>(2, _omitFieldNames ? '' : 'modelFramework', $pb.PbFieldType.OE, defaultOrMaker: $7.ModelFramework.MODEL_FRAMEWORK_UNSPECIFIED, valueOf: $7.ModelFramework.valueOf, enumValues: $7.ModelFramework.values) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + UpdateMLModelMetadata clone() => UpdateMLModelMetadata()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + UpdateMLModelMetadata copyWith(void Function(UpdateMLModelMetadata) updates) => super.copyWith((message) => updates(message as UpdateMLModelMetadata)) as UpdateMLModelMetadata; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static UpdateMLModelMetadata create() => UpdateMLModelMetadata._(); + UpdateMLModelMetadata createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static UpdateMLModelMetadata getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static UpdateMLModelMetadata? _defaultInstance; + + @$pb.TagNumber(1) + $7.ModelType get modelType => $_getN(0); + @$pb.TagNumber(1) + set modelType($7.ModelType v) { setField(1, v); } + @$pb.TagNumber(1) + $core.bool hasModelType() => $_has(0); + @$pb.TagNumber(1) + void clearModelType() => clearField(1); + + @$pb.TagNumber(2) + $7.ModelFramework get modelFramework => $_getN(1); + @$pb.TagNumber(2) + set modelFramework($7.ModelFramework v) { setField(2, v); } + @$pb.TagNumber(2) + $core.bool hasModelFramework() => $_has(1); + @$pb.TagNumber(2) + void clearModelFramework() => clearField(2); +} + +class UpdateMLTrainingMetadata extends $pb.GeneratedMessage { + factory UpdateMLTrainingMetadata({ + $7.ModelType? modelType, + $7.ModelFramework? modelFramework, + $core.bool? draft, + }) { + final $result = create(); + if (modelType != null) { + $result.modelType = modelType; + } + if (modelFramework != null) { + $result.modelFramework = modelFramework; + } + if (draft != null) { + $result.draft = draft; + } + return $result; + } + UpdateMLTrainingMetadata._() : super(); + factory UpdateMLTrainingMetadata.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory UpdateMLTrainingMetadata.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UpdateMLTrainingMetadata', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create) + ..e<$7.ModelType>(1, _omitFieldNames ? '' : 'modelType', $pb.PbFieldType.OE, defaultOrMaker: $7.ModelType.MODEL_TYPE_UNSPECIFIED, valueOf: $7.ModelType.valueOf, enumValues: $7.ModelType.values) + ..e<$7.ModelFramework>(2, _omitFieldNames ? '' : 'modelFramework', $pb.PbFieldType.OE, defaultOrMaker: $7.ModelFramework.MODEL_FRAMEWORK_UNSPECIFIED, valueOf: $7.ModelFramework.valueOf, enumValues: $7.ModelFramework.values) + ..aOB(3, _omitFieldNames ? '' : 'draft') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + UpdateMLTrainingMetadata clone() => UpdateMLTrainingMetadata()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + UpdateMLTrainingMetadata copyWith(void Function(UpdateMLTrainingMetadata) updates) => super.copyWith((message) => updates(message as UpdateMLTrainingMetadata)) as UpdateMLTrainingMetadata; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static UpdateMLTrainingMetadata create() => UpdateMLTrainingMetadata._(); + UpdateMLTrainingMetadata createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static UpdateMLTrainingMetadata getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static UpdateMLTrainingMetadata? _defaultInstance; + + @$pb.TagNumber(1) + $7.ModelType get modelType => $_getN(0); + @$pb.TagNumber(1) + set modelType($7.ModelType v) { setField(1, v); } + @$pb.TagNumber(1) + $core.bool hasModelType() => $_has(0); + @$pb.TagNumber(1) + void clearModelType() => clearField(1); + + @$pb.TagNumber(2) + $7.ModelFramework get modelFramework => $_getN(1); + @$pb.TagNumber(2) + set modelFramework($7.ModelFramework v) { setField(2, v); } + @$pb.TagNumber(2) + $core.bool hasModelFramework() => $_has(1); + @$pb.TagNumber(2) + void clearModelFramework() => clearField(2); + + @$pb.TagNumber(3) + $core.bool get draft => $_getBF(2); + @$pb.TagNumber(3) + set draft($core.bool v) { $_setBool(2, v); } + @$pb.TagNumber(3) + $core.bool hasDraft() => $_has(2); + @$pb.TagNumber(3) + void clearDraft() => clearField(3); +} + class Model extends $pb.GeneratedMessage { factory Model({ $core.String? api, $core.String? model, + $core.String? markdownDocumentation, }) { final $result = create(); if (api != null) { @@ -10716,6 +11012,9 @@ class Model extends $pb.GeneratedMessage { if (model != null) { $result.model = model; } + if (markdownDocumentation != null) { + $result.markdownDocumentation = markdownDocumentation; + } return $result; } Model._() : super(); @@ -10725,6 +11024,7 @@ class Model extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Model', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'api') ..aOS(2, _omitFieldNames ? '' : 'model') + ..aOS(3, _omitFieldNames ? '' : 'markdownDocumentation') ..hasRequiredFields = false ; @@ -10768,6 +11068,16 @@ class Model extends $pb.GeneratedMessage { $core.bool hasModel() => $_has(1); @$pb.TagNumber(2) void clearModel() => clearField(2); + + /// The markdown content describing the usage of the model + @$pb.TagNumber(3) + $core.String get markdownDocumentation => $_getSZ(2); + @$pb.TagNumber(3) + set markdownDocumentation($core.String v) { $_setString(2, v); } + @$pb.TagNumber(3) + $core.bool hasMarkdownDocumentation() => $_has(2); + @$pb.TagNumber(3) + void clearMarkdownDocumentation() => clearField(3); } class ModuleFileInfo extends $pb.GeneratedMessage { @@ -10999,11 +11309,15 @@ class UploadModuleFileResponse extends $pb.GeneratedMessage { class GetModuleRequest extends $pb.GeneratedMessage { factory GetModuleRequest({ $core.String? moduleId, + $core.bool? includeMarkdownDocumentation, }) { final $result = create(); if (moduleId != null) { $result.moduleId = moduleId; } + if (includeMarkdownDocumentation != null) { + $result.includeMarkdownDocumentation = includeMarkdownDocumentation; + } return $result; } GetModuleRequest._() : super(); @@ -11012,6 +11326,7 @@ class GetModuleRequest extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetModuleRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'moduleId') + ..aOB(2, _omitFieldNames ? '' : 'includeMarkdownDocumentation') ..hasRequiredFields = false ; @@ -11045,6 +11360,15 @@ class GetModuleRequest extends $pb.GeneratedMessage { $core.bool hasModuleId() => $_has(0); @$pb.TagNumber(1) void clearModuleId() => clearField(1); + + @$pb.TagNumber(2) + $core.bool get includeMarkdownDocumentation => $_getBF(1); + @$pb.TagNumber(2) + set includeMarkdownDocumentation($core.bool v) { $_setBool(1, v); } + @$pb.TagNumber(2) + $core.bool hasIncludeMarkdownDocumentation() => $_has(1); + @$pb.TagNumber(2) + void clearIncludeMarkdownDocumentation() => clearField(2); } class GetModuleResponse extends $pb.GeneratedMessage { @@ -11491,11 +11815,15 @@ class Uploads extends $pb.GeneratedMessage { class ListModulesRequest extends $pb.GeneratedMessage { factory ListModulesRequest({ $core.String? organizationId, + $core.bool? includeMarkdownDocumentation, }) { final $result = create(); if (organizationId != null) { $result.organizationId = organizationId; } + if (includeMarkdownDocumentation != null) { + $result.includeMarkdownDocumentation = includeMarkdownDocumentation; + } return $result; } ListModulesRequest._() : super(); @@ -11504,6 +11832,7 @@ class ListModulesRequest extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ListModulesRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'organizationId') + ..aOB(2, _omitFieldNames ? '' : 'includeMarkdownDocumentation') ..hasRequiredFields = false ; @@ -11537,6 +11866,15 @@ class ListModulesRequest extends $pb.GeneratedMessage { $core.bool hasOrganizationId() => $_has(0); @$pb.TagNumber(1) void clearOrganizationId() => clearField(1); + + @$pb.TagNumber(2) + $core.bool get includeMarkdownDocumentation => $_getBF(1); + @$pb.TagNumber(2) + set includeMarkdownDocumentation($core.bool v) { $_setBool(1, v); } + @$pb.TagNumber(2) + $core.bool hasIncludeMarkdownDocumentation() => $_has(1); + @$pb.TagNumber(2) + void clearIncludeMarkdownDocumentation() => clearField(2); } class ListModulesResponse extends $pb.GeneratedMessage { @@ -11738,6 +12076,8 @@ class OrgDetails extends $pb.GeneratedMessage { factory OrgDetails({ $core.String? orgId, $core.String? orgName, + $core.String? orgCid, + $core.String? publicNamespace, }) { final $result = create(); if (orgId != null) { @@ -11746,6 +12086,12 @@ class OrgDetails extends $pb.GeneratedMessage { if (orgName != null) { $result.orgName = orgName; } + if (orgCid != null) { + $result.orgCid = orgCid; + } + if (publicNamespace != null) { + $result.publicNamespace = publicNamespace; + } return $result; } OrgDetails._() : super(); @@ -11755,6 +12101,8 @@ class OrgDetails extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'OrgDetails', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'orgId') ..aOS(2, _omitFieldNames ? '' : 'orgName') + ..aOS(3, _omitFieldNames ? '' : 'orgCid') + ..aOS(4, _omitFieldNames ? '' : 'publicNamespace') ..hasRequiredFields = false ; @@ -11796,6 +12144,24 @@ class OrgDetails extends $pb.GeneratedMessage { $core.bool hasOrgName() => $_has(1); @$pb.TagNumber(2) void clearOrgName() => clearField(2); + + @$pb.TagNumber(3) + $core.String get orgCid => $_getSZ(2); + @$pb.TagNumber(3) + set orgCid($core.String v) { $_setString(2, v); } + @$pb.TagNumber(3) + $core.bool hasOrgCid() => $_has(2); + @$pb.TagNumber(3) + void clearOrgCid() => clearField(3); + + @$pb.TagNumber(4) + $core.String get publicNamespace => $_getSZ(3); + @$pb.TagNumber(4) + set publicNamespace($core.String v) { $_setString(3, v); } + @$pb.TagNumber(4) + $core.bool hasPublicNamespace() => $_has(3); + @$pb.TagNumber(4) + void clearPublicNamespace() => clearField(4); } class ListOrganizationsByUserResponse extends $pb.GeneratedMessage { @@ -11842,6 +12208,142 @@ class ListOrganizationsByUserResponse extends $pb.GeneratedMessage { $core.List get orgs => $_getList(0); } +class SearchOrganizationsRequest extends $pb.GeneratedMessage { + factory SearchOrganizationsRequest({ + $core.String? orgId, + $core.String? orgName, + $core.String? cid, + $core.String? publicNamespace, + }) { + final $result = create(); + if (orgId != null) { + $result.orgId = orgId; + } + if (orgName != null) { + $result.orgName = orgName; + } + if (cid != null) { + $result.cid = cid; + } + if (publicNamespace != null) { + $result.publicNamespace = publicNamespace; + } + return $result; + } + SearchOrganizationsRequest._() : super(); + factory SearchOrganizationsRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory SearchOrganizationsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SearchOrganizationsRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'orgId') + ..aOS(2, _omitFieldNames ? '' : 'orgName') + ..aOS(3, _omitFieldNames ? '' : 'cid') + ..aOS(4, _omitFieldNames ? '' : 'publicNamespace') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + SearchOrganizationsRequest clone() => SearchOrganizationsRequest()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SearchOrganizationsRequest copyWith(void Function(SearchOrganizationsRequest) updates) => super.copyWith((message) => updates(message as SearchOrganizationsRequest)) as SearchOrganizationsRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static SearchOrganizationsRequest create() => SearchOrganizationsRequest._(); + SearchOrganizationsRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static SearchOrganizationsRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static SearchOrganizationsRequest? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get orgId => $_getSZ(0); + @$pb.TagNumber(1) + set orgId($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasOrgId() => $_has(0); + @$pb.TagNumber(1) + void clearOrgId() => clearField(1); + + @$pb.TagNumber(2) + $core.String get orgName => $_getSZ(1); + @$pb.TagNumber(2) + set orgName($core.String v) { $_setString(1, v); } + @$pb.TagNumber(2) + $core.bool hasOrgName() => $_has(1); + @$pb.TagNumber(2) + void clearOrgName() => clearField(2); + + @$pb.TagNumber(3) + $core.String get cid => $_getSZ(2); + @$pb.TagNumber(3) + set cid($core.String v) { $_setString(2, v); } + @$pb.TagNumber(3) + $core.bool hasCid() => $_has(2); + @$pb.TagNumber(3) + void clearCid() => clearField(3); + + @$pb.TagNumber(4) + $core.String get publicNamespace => $_getSZ(3); + @$pb.TagNumber(4) + set publicNamespace($core.String v) { $_setString(3, v); } + @$pb.TagNumber(4) + $core.bool hasPublicNamespace() => $_has(3); + @$pb.TagNumber(4) + void clearPublicNamespace() => clearField(4); +} + +class SearchOrganizationsResponse extends $pb.GeneratedMessage { + factory SearchOrganizationsResponse({ + $core.Iterable? organizations, + }) { + final $result = create(); + if (organizations != null) { + $result.organizations.addAll(organizations); + } + return $result; + } + SearchOrganizationsResponse._() : super(); + factory SearchOrganizationsResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory SearchOrganizationsResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SearchOrganizationsResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'organizations', $pb.PbFieldType.PM, subBuilder: OrgDetails.create) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + SearchOrganizationsResponse clone() => SearchOrganizationsResponse()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SearchOrganizationsResponse copyWith(void Function(SearchOrganizationsResponse) updates) => super.copyWith((message) => updates(message as SearchOrganizationsResponse)) as SearchOrganizationsResponse; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static SearchOrganizationsResponse create() => SearchOrganizationsResponse._(); + SearchOrganizationsResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static SearchOrganizationsResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static SearchOrganizationsResponse? _defaultInstance; + + @$pb.TagNumber(1) + $core.List get organizations => $_getList(0); +} + class CreateKeyRequest extends $pb.GeneratedMessage { factory CreateKeyRequest({ $core.Iterable? authorizations, diff --git a/lib/src/gen/app/v1/app.pbgrpc.dart b/lib/src/gen/app/v1/app.pbgrpc.dart index dc54ba6572..9d384475e5 100644 --- a/lib/src/gen/app/v1/app.pbgrpc.dart +++ b/lib/src/gen/app/v1/app.pbgrpc.dart @@ -41,6 +41,10 @@ class AppServiceClient extends $grpc.Client { '/viam.app.v1.AppService/ListOrganizationsByUser', ($9.ListOrganizationsByUserRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $9.ListOrganizationsByUserResponse.fromBuffer(value)); + static final _$searchOrganizations = $grpc.ClientMethod<$9.SearchOrganizationsRequest, $9.SearchOrganizationsResponse>( + '/viam.app.v1.AppService/SearchOrganizations', + ($9.SearchOrganizationsRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $9.SearchOrganizationsResponse.fromBuffer(value)); static final _$getOrganization = $grpc.ClientMethod<$9.GetOrganizationRequest, $9.GetOrganizationResponse>( '/viam.app.v1.AppService/GetOrganization', ($9.GetOrganizationRequest value) => value.writeToBuffer(), @@ -400,6 +404,10 @@ class AppServiceClient extends $grpc.Client { return $createUnaryCall(_$listOrganizationsByUser, request, options: options); } + $grpc.ResponseFuture<$9.SearchOrganizationsResponse> searchOrganizations($9.SearchOrganizationsRequest request, {$grpc.CallOptions? options}) { + return $createUnaryCall(_$searchOrganizations, request, options: options); + } + $grpc.ResponseFuture<$9.GetOrganizationResponse> getOrganization($9.GetOrganizationRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getOrganization, request, options: options); } @@ -773,6 +781,13 @@ abstract class AppServiceBase extends $grpc.Service { false, ($core.List<$core.int> value) => $9.ListOrganizationsByUserRequest.fromBuffer(value), ($9.ListOrganizationsByUserResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$9.SearchOrganizationsRequest, $9.SearchOrganizationsResponse>( + 'SearchOrganizations', + searchOrganizations_Pre, + false, + false, + ($core.List<$core.int> value) => $9.SearchOrganizationsRequest.fromBuffer(value), + ($9.SearchOrganizationsResponse value) => value.writeToBuffer())); $addMethod($grpc.ServiceMethod<$9.GetOrganizationRequest, $9.GetOrganizationResponse>( 'GetOrganization', getOrganization_Pre, @@ -1376,6 +1391,10 @@ abstract class AppServiceBase extends $grpc.Service { return listOrganizationsByUser(call, await request); } + $async.Future<$9.SearchOrganizationsResponse> searchOrganizations_Pre($grpc.ServiceCall call, $async.Future<$9.SearchOrganizationsRequest> request) async { + return searchOrganizations(call, await request); + } + $async.Future<$9.GetOrganizationResponse> getOrganization_Pre($grpc.ServiceCall call, $async.Future<$9.GetOrganizationRequest> request) async { return getOrganization(call, await request); } @@ -1709,6 +1728,7 @@ abstract class AppServiceBase extends $grpc.Service { $async.Future<$9.ListOrganizationsResponse> listOrganizations($grpc.ServiceCall call, $9.ListOrganizationsRequest request); $async.Future<$9.GetOrganizationsWithAccessToLocationResponse> getOrganizationsWithAccessToLocation($grpc.ServiceCall call, $9.GetOrganizationsWithAccessToLocationRequest request); $async.Future<$9.ListOrganizationsByUserResponse> listOrganizationsByUser($grpc.ServiceCall call, $9.ListOrganizationsByUserRequest request); + $async.Future<$9.SearchOrganizationsResponse> searchOrganizations($grpc.ServiceCall call, $9.SearchOrganizationsRequest request); $async.Future<$9.GetOrganizationResponse> getOrganization($grpc.ServiceCall call, $9.GetOrganizationRequest request); $async.Future<$9.GetOrganizationNamespaceAvailabilityResponse> getOrganizationNamespaceAvailability($grpc.ServiceCall call, $9.GetOrganizationNamespaceAvailabilityRequest request); $async.Future<$9.UpdateOrganizationResponse> updateOrganization($grpc.ServiceCall call, $9.UpdateOrganizationRequest request); diff --git a/lib/src/gen/app/v1/app.pbjson.dart b/lib/src/gen/app/v1/app.pbjson.dart index a1da1468c2..7afea306df 100644 --- a/lib/src/gen/app/v1/app.pbjson.dart +++ b/lib/src/gen/app/v1/app.pbjson.dart @@ -1675,18 +1675,18 @@ final $typed_data.Uint8List fragmentErrorDescriptor = $convert.base64Decode( const FragmentUsage$json = { '1': 'FragmentUsage', '2': [ - {'1': 'fragment_id', '3': 1, '4': 1, '5': 5, '10': 'fragmentId'}, - {'1': 'organizations', '3': 2, '4': 1, '5': 3, '10': 'organizations'}, - {'1': 'machines', '3': 3, '4': 1, '5': 3, '10': 'machines'}, - {'1': 'machines_in_current_org', '3': 4, '4': 1, '5': 3, '10': 'machinesInCurrentOrg'}, + {'1': 'fragment_id', '3': 1, '4': 1, '5': 9, '10': 'fragmentId'}, + {'1': 'organizations', '3': 2, '4': 1, '5': 5, '10': 'organizations'}, + {'1': 'machines', '3': 3, '4': 1, '5': 5, '10': 'machines'}, + {'1': 'machines_in_current_org', '3': 4, '4': 1, '5': 5, '10': 'machinesInCurrentOrg'}, ], }; /// Descriptor for `FragmentUsage`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List fragmentUsageDescriptor = $convert.base64Decode( - 'Cg1GcmFnbWVudFVzYWdlEh8KC2ZyYWdtZW50X2lkGAEgASgFUgpmcmFnbWVudElkEiQKDW9yZ2' - 'FuaXphdGlvbnMYAiABKANSDW9yZ2FuaXphdGlvbnMSGgoIbWFjaGluZXMYAyABKANSCG1hY2hp' - 'bmVzEjUKF21hY2hpbmVzX2luX2N1cnJlbnRfb3JnGAQgASgDUhRtYWNoaW5lc0luQ3VycmVudE' + 'Cg1GcmFnbWVudFVzYWdlEh8KC2ZyYWdtZW50X2lkGAEgASgJUgpmcmFnbWVudElkEiQKDW9yZ2' + 'FuaXphdGlvbnMYAiABKAVSDW9yZ2FuaXphdGlvbnMSGgoIbWFjaGluZXMYAyABKAVSCG1hY2hp' + 'bmVzEjUKF21hY2hpbmVzX2luX2N1cnJlbnRfb3JnGAQgASgFUhRtYWNoaW5lc0luQ3VycmVudE' '9yZw=='); @$core.Deprecated('Use resolvedFragmentDescriptor instead') @@ -2424,12 +2424,18 @@ const GetRegistryItemRequest$json = { '1': 'GetRegistryItemRequest', '2': [ {'1': 'item_id', '3': 1, '4': 1, '5': 9, '10': 'itemId'}, + {'1': 'include_markdown_documentation', '3': 2, '4': 1, '5': 8, '9': 0, '10': 'includeMarkdownDocumentation', '17': true}, + ], + '8': [ + {'1': '_include_markdown_documentation'}, ], }; /// Descriptor for `GetRegistryItemRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getRegistryItemRequestDescriptor = $convert.base64Decode( - 'ChZHZXRSZWdpc3RyeUl0ZW1SZXF1ZXN0EhcKB2l0ZW1faWQYASABKAlSBml0ZW1JZA=='); + 'ChZHZXRSZWdpc3RyeUl0ZW1SZXF1ZXN0EhcKB2l0ZW1faWQYASABKAlSBml0ZW1JZBJJCh5pbm' + 'NsdWRlX21hcmtkb3duX2RvY3VtZW50YXRpb24YAiABKAhIAFIcaW5jbHVkZU1hcmtkb3duRG9j' + 'dW1lbnRhdGlvbogBAUIhCh9faW5jbHVkZV9tYXJrZG93bl9kb2N1bWVudGF0aW9u'); @$core.Deprecated('Use getRegistryItemResponseDescriptor instead') const GetRegistryItemResponse$json = { @@ -2477,9 +2483,13 @@ const UpdateRegistryItemRequest$json = { {'1': 'type', '3': 2, '4': 1, '5': 14, '6': '.viam.app.packages.v1.PackageType', '10': 'type'}, {'1': 'description', '3': 3, '4': 1, '5': 9, '10': 'description'}, {'1': 'visibility', '3': 4, '4': 1, '5': 14, '6': '.viam.app.v1.Visibility', '10': 'visibility'}, - {'1': 'url', '3': 5, '4': 1, '5': 9, '9': 0, '10': 'url', '17': true}, + {'1': 'url', '3': 5, '4': 1, '5': 9, '9': 1, '10': 'url', '17': true}, + {'1': 'module_update_metadata', '3': 6, '4': 1, '5': 11, '6': '.viam.app.v1.UpdateModuleMetadata', '9': 0, '10': 'moduleUpdateMetadata'}, + {'1': 'ml_model_update_metadata', '3': 7, '4': 1, '5': 11, '6': '.viam.app.v1.UpdateMLModelMetadata', '9': 0, '10': 'mlModelUpdateMetadata'}, + {'1': 'ml_training_update_metadata', '3': 8, '4': 1, '5': 11, '6': '.viam.app.v1.UpdateMLTrainingMetadata', '9': 0, '10': 'mlTrainingUpdateMetadata'}, ], '8': [ + {'1': 'metadata'}, {'1': '_url'}, ], }; @@ -2489,8 +2499,13 @@ final $typed_data.Uint8List updateRegistryItemRequestDescriptor = $convert.base6 'ChlVcGRhdGVSZWdpc3RyeUl0ZW1SZXF1ZXN0EhcKB2l0ZW1faWQYASABKAlSBml0ZW1JZBI1Cg' 'R0eXBlGAIgASgOMiEudmlhbS5hcHAucGFja2FnZXMudjEuUGFja2FnZVR5cGVSBHR5cGUSIAoL' 'ZGVzY3JpcHRpb24YAyABKAlSC2Rlc2NyaXB0aW9uEjcKCnZpc2liaWxpdHkYBCABKA4yFy52aW' - 'FtLmFwcC52MS5WaXNpYmlsaXR5Ugp2aXNpYmlsaXR5EhUKA3VybBgFIAEoCUgAUgN1cmyIAQFC' - 'BgoEX3VybA=='); + 'FtLmFwcC52MS5WaXNpYmlsaXR5Ugp2aXNpYmlsaXR5EhUKA3VybBgFIAEoCUgBUgN1cmyIAQES' + 'WQoWbW9kdWxlX3VwZGF0ZV9tZXRhZGF0YRgGIAEoCzIhLnZpYW0uYXBwLnYxLlVwZGF0ZU1vZH' + 'VsZU1ldGFkYXRhSABSFG1vZHVsZVVwZGF0ZU1ldGFkYXRhEl0KGG1sX21vZGVsX3VwZGF0ZV9t' + 'ZXRhZGF0YRgHIAEoCzIiLnZpYW0uYXBwLnYxLlVwZGF0ZU1MTW9kZWxNZXRhZGF0YUgAUhVtbE' + '1vZGVsVXBkYXRlTWV0YWRhdGESZgobbWxfdHJhaW5pbmdfdXBkYXRlX21ldGFkYXRhGAggASgL' + 'MiUudmlhbS5hcHAudjEuVXBkYXRlTUxUcmFpbmluZ01ldGFkYXRhSABSGG1sVHJhaW5pbmdVcG' + 'RhdGVNZXRhZGF0YUIKCghtZXRhZGF0YUIGCgRfdXJs'); @$core.Deprecated('Use updateRegistryItemResponseDescriptor instead') const UpdateRegistryItemResponse$json = { @@ -2513,11 +2528,13 @@ const ListRegistryItemsRequest$json = { {'1': 'search_term', '3': 6, '4': 1, '5': 9, '9': 1, '10': 'searchTerm', '17': true}, {'1': 'page_token', '3': 7, '4': 1, '5': 9, '9': 2, '10': 'pageToken', '17': true}, {'1': 'public_namespaces', '3': 8, '4': 3, '5': 9, '10': 'publicNamespaces'}, + {'1': 'include_markdown_documentation', '3': 9, '4': 1, '5': 8, '9': 3, '10': 'includeMarkdownDocumentation', '17': true}, ], '8': [ {'1': '_organization_id'}, {'1': '_search_term'}, {'1': '_page_token'}, + {'1': '_include_markdown_documentation'}, ], }; @@ -2530,8 +2547,10 @@ final $typed_data.Uint8List listRegistryItemsRequestDescriptor = $convert.base64 'CghzdGF0dXNlcxgFIAMoDjIfLnZpYW0uYXBwLnYxLlJlZ2lzdHJ5SXRlbVN0YXR1c1IIc3RhdH' 'VzZXMSJAoLc2VhcmNoX3Rlcm0YBiABKAlIAVIKc2VhcmNoVGVybYgBARIiCgpwYWdlX3Rva2Vu' 'GAcgASgJSAJSCXBhZ2VUb2tlbogBARIrChFwdWJsaWNfbmFtZXNwYWNlcxgIIAMoCVIQcHVibG' - 'ljTmFtZXNwYWNlc0ISChBfb3JnYW5pemF0aW9uX2lkQg4KDF9zZWFyY2hfdGVybUINCgtfcGFn' - 'ZV90b2tlbg=='); + 'ljTmFtZXNwYWNlcxJJCh5pbmNsdWRlX21hcmtkb3duX2RvY3VtZW50YXRpb24YCSABKAhIA1Ic' + 'aW5jbHVkZU1hcmtkb3duRG9jdW1lbnRhdGlvbogBAUISChBfb3JnYW5pemF0aW9uX2lkQg4KDF' + '9zZWFyY2hfdGVybUINCgtfcGFnZV90b2tlbkIhCh9faW5jbHVkZV9tYXJrZG93bl9kb2N1bWVu' + 'dGF0aW9u'); @$core.Deprecated('Use listRegistryItemsResponseDescriptor instead') const ListRegistryItemsResponse$json = { @@ -2656,18 +2675,71 @@ const UpdateModuleResponse$json = { final $typed_data.Uint8List updateModuleResponseDescriptor = $convert.base64Decode( 'ChRVcGRhdGVNb2R1bGVSZXNwb25zZRIQCgN1cmwYASABKAlSA3VybA=='); +@$core.Deprecated('Use updateModuleMetadataDescriptor instead') +const UpdateModuleMetadata$json = { + '1': 'UpdateModuleMetadata', + '2': [ + {'1': 'models', '3': 1, '4': 3, '5': 11, '6': '.viam.app.v1.Model', '10': 'models'}, + {'1': 'entrypoint', '3': 2, '4': 1, '5': 9, '10': 'entrypoint'}, + ], +}; + +/// Descriptor for `UpdateModuleMetadata`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List updateModuleMetadataDescriptor = $convert.base64Decode( + 'ChRVcGRhdGVNb2R1bGVNZXRhZGF0YRIqCgZtb2RlbHMYASADKAsyEi52aWFtLmFwcC52MS5Nb2' + 'RlbFIGbW9kZWxzEh4KCmVudHJ5cG9pbnQYAiABKAlSCmVudHJ5cG9pbnQ='); + +@$core.Deprecated('Use updateMLModelMetadataDescriptor instead') +const UpdateMLModelMetadata$json = { + '1': 'UpdateMLModelMetadata', + '2': [ + {'1': 'model_type', '3': 1, '4': 1, '5': 14, '6': '.viam.app.mltraining.v1.ModelType', '10': 'modelType'}, + {'1': 'model_framework', '3': 2, '4': 1, '5': 14, '6': '.viam.app.mltraining.v1.ModelFramework', '10': 'modelFramework'}, + ], +}; + +/// Descriptor for `UpdateMLModelMetadata`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List updateMLModelMetadataDescriptor = $convert.base64Decode( + 'ChVVcGRhdGVNTE1vZGVsTWV0YWRhdGESQAoKbW9kZWxfdHlwZRgBIAEoDjIhLnZpYW0uYXBwLm' + '1sdHJhaW5pbmcudjEuTW9kZWxUeXBlUgltb2RlbFR5cGUSTwoPbW9kZWxfZnJhbWV3b3JrGAIg' + 'ASgOMiYudmlhbS5hcHAubWx0cmFpbmluZy52MS5Nb2RlbEZyYW1ld29ya1IObW9kZWxGcmFtZX' + 'dvcms='); + +@$core.Deprecated('Use updateMLTrainingMetadataDescriptor instead') +const UpdateMLTrainingMetadata$json = { + '1': 'UpdateMLTrainingMetadata', + '2': [ + {'1': 'model_type', '3': 1, '4': 1, '5': 14, '6': '.viam.app.mltraining.v1.ModelType', '10': 'modelType'}, + {'1': 'model_framework', '3': 2, '4': 1, '5': 14, '6': '.viam.app.mltraining.v1.ModelFramework', '10': 'modelFramework'}, + {'1': 'draft', '3': 3, '4': 1, '5': 8, '10': 'draft'}, + ], +}; + +/// Descriptor for `UpdateMLTrainingMetadata`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List updateMLTrainingMetadataDescriptor = $convert.base64Decode( + 'ChhVcGRhdGVNTFRyYWluaW5nTWV0YWRhdGESQAoKbW9kZWxfdHlwZRgBIAEoDjIhLnZpYW0uYX' + 'BwLm1sdHJhaW5pbmcudjEuTW9kZWxUeXBlUgltb2RlbFR5cGUSTwoPbW9kZWxfZnJhbWV3b3Jr' + 'GAIgASgOMiYudmlhbS5hcHAubWx0cmFpbmluZy52MS5Nb2RlbEZyYW1ld29ya1IObW9kZWxGcm' + 'FtZXdvcmsSFAoFZHJhZnQYAyABKAhSBWRyYWZ0'); + @$core.Deprecated('Use modelDescriptor instead') const Model$json = { '1': 'Model', '2': [ {'1': 'api', '3': 1, '4': 1, '5': 9, '10': 'api'}, {'1': 'model', '3': 2, '4': 1, '5': 9, '10': 'model'}, + {'1': 'markdown_documentation', '3': 3, '4': 1, '5': 9, '9': 0, '10': 'markdownDocumentation', '17': true}, + ], + '8': [ + {'1': '_markdown_documentation'}, ], }; /// Descriptor for `Model`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List modelDescriptor = $convert.base64Decode( - 'CgVNb2RlbBIQCgNhcGkYASABKAlSA2FwaRIUCgVtb2RlbBgCIAEoCVIFbW9kZWw='); + 'CgVNb2RlbBIQCgNhcGkYASABKAlSA2FwaRIUCgVtb2RlbBgCIAEoCVIFbW9kZWwSOgoWbWFya2' + 'Rvd25fZG9jdW1lbnRhdGlvbhgDIAEoCUgAUhVtYXJrZG93bkRvY3VtZW50YXRpb26IAQFCGQoX' + 'X21hcmtkb3duX2RvY3VtZW50YXRpb24='); @$core.Deprecated('Use moduleFileInfoDescriptor instead') const ModuleFileInfo$json = { @@ -2721,12 +2793,18 @@ const GetModuleRequest$json = { '1': 'GetModuleRequest', '2': [ {'1': 'module_id', '3': 1, '4': 1, '5': 9, '10': 'moduleId'}, + {'1': 'include_markdown_documentation', '3': 2, '4': 1, '5': 8, '9': 0, '10': 'includeMarkdownDocumentation', '17': true}, + ], + '8': [ + {'1': '_include_markdown_documentation'}, ], }; /// Descriptor for `GetModuleRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getModuleRequestDescriptor = $convert.base64Decode( - 'ChBHZXRNb2R1bGVSZXF1ZXN0EhsKCW1vZHVsZV9pZBgBIAEoCVIIbW9kdWxlSWQ='); + 'ChBHZXRNb2R1bGVSZXF1ZXN0EhsKCW1vZHVsZV9pZBgBIAEoCVIIbW9kdWxlSWQSSQoeaW5jbH' + 'VkZV9tYXJrZG93bl9kb2N1bWVudGF0aW9uGAIgASgISABSHGluY2x1ZGVNYXJrZG93bkRvY3Vt' + 'ZW50YXRpb26IAQFCIQofX2luY2x1ZGVfbWFya2Rvd25fZG9jdW1lbnRhdGlvbg=='); @$core.Deprecated('Use getModuleResponseDescriptor instead') const GetModuleResponse$json = { @@ -2818,16 +2896,20 @@ const ListModulesRequest$json = { '1': 'ListModulesRequest', '2': [ {'1': 'organization_id', '3': 1, '4': 1, '5': 9, '9': 0, '10': 'organizationId', '17': true}, + {'1': 'include_markdown_documentation', '3': 2, '4': 1, '5': 8, '9': 1, '10': 'includeMarkdownDocumentation', '17': true}, ], '8': [ {'1': '_organization_id'}, + {'1': '_include_markdown_documentation'}, ], }; /// Descriptor for `ListModulesRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listModulesRequestDescriptor = $convert.base64Decode( 'ChJMaXN0TW9kdWxlc1JlcXVlc3QSLAoPb3JnYW5pemF0aW9uX2lkGAEgASgJSABSDm9yZ2FuaX' - 'phdGlvbklkiAEBQhIKEF9vcmdhbml6YXRpb25faWQ='); + 'phdGlvbklkiAEBEkkKHmluY2x1ZGVfbWFya2Rvd25fZG9jdW1lbnRhdGlvbhgCIAEoCEgBUhxp' + 'bmNsdWRlTWFya2Rvd25Eb2N1bWVudGF0aW9uiAEBQhIKEF9vcmdhbml6YXRpb25faWRCIQofX2' + 'luY2x1ZGVfbWFya2Rvd25fZG9jdW1lbnRhdGlvbg=='); @$core.Deprecated('Use listModulesResponseDescriptor instead') const ListModulesResponse$json = { @@ -2885,13 +2967,21 @@ const OrgDetails$json = { '2': [ {'1': 'org_id', '3': 1, '4': 1, '5': 9, '10': 'orgId'}, {'1': 'org_name', '3': 2, '4': 1, '5': 9, '10': 'orgName'}, + {'1': 'org_cid', '3': 3, '4': 1, '5': 9, '9': 0, '10': 'orgCid', '17': true}, + {'1': 'public_namespace', '3': 4, '4': 1, '5': 9, '9': 1, '10': 'publicNamespace', '17': true}, + ], + '8': [ + {'1': '_org_cid'}, + {'1': '_public_namespace'}, ], }; /// Descriptor for `OrgDetails`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List orgDetailsDescriptor = $convert.base64Decode( 'CgpPcmdEZXRhaWxzEhUKBm9yZ19pZBgBIAEoCVIFb3JnSWQSGQoIb3JnX25hbWUYAiABKAlSB2' - '9yZ05hbWU='); + '9yZ05hbWUSHAoHb3JnX2NpZBgDIAEoCUgAUgZvcmdDaWSIAQESLgoQcHVibGljX25hbWVzcGFj' + 'ZRgEIAEoCUgBUg9wdWJsaWNOYW1lc3BhY2WIAQFCCgoIX29yZ19jaWRCEwoRX3B1YmxpY19uYW' + '1lc3BhY2U='); @$core.Deprecated('Use listOrganizationsByUserResponseDescriptor instead') const ListOrganizationsByUserResponse$json = { @@ -2906,6 +2996,43 @@ final $typed_data.Uint8List listOrganizationsByUserResponseDescriptor = $convert 'Ch9MaXN0T3JnYW5pemF0aW9uc0J5VXNlclJlc3BvbnNlEisKBG9yZ3MYASADKAsyFy52aWFtLm' 'FwcC52MS5PcmdEZXRhaWxzUgRvcmdz'); +@$core.Deprecated('Use searchOrganizationsRequestDescriptor instead') +const SearchOrganizationsRequest$json = { + '1': 'SearchOrganizationsRequest', + '2': [ + {'1': 'org_id', '3': 1, '4': 1, '5': 9, '9': 0, '10': 'orgId', '17': true}, + {'1': 'org_name', '3': 2, '4': 1, '5': 9, '9': 1, '10': 'orgName', '17': true}, + {'1': 'cid', '3': 3, '4': 1, '5': 9, '9': 2, '10': 'cid', '17': true}, + {'1': 'public_namespace', '3': 4, '4': 1, '5': 9, '9': 3, '10': 'publicNamespace', '17': true}, + ], + '8': [ + {'1': '_org_id'}, + {'1': '_org_name'}, + {'1': '_cid'}, + {'1': '_public_namespace'}, + ], +}; + +/// Descriptor for `SearchOrganizationsRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List searchOrganizationsRequestDescriptor = $convert.base64Decode( + 'ChpTZWFyY2hPcmdhbml6YXRpb25zUmVxdWVzdBIaCgZvcmdfaWQYASABKAlIAFIFb3JnSWSIAQ' + 'ESHgoIb3JnX25hbWUYAiABKAlIAVIHb3JnTmFtZYgBARIVCgNjaWQYAyABKAlIAlIDY2lkiAEB' + 'Ei4KEHB1YmxpY19uYW1lc3BhY2UYBCABKAlIA1IPcHVibGljTmFtZXNwYWNliAEBQgkKB19vcm' + 'dfaWRCCwoJX29yZ19uYW1lQgYKBF9jaWRCEwoRX3B1YmxpY19uYW1lc3BhY2U='); + +@$core.Deprecated('Use searchOrganizationsResponseDescriptor instead') +const SearchOrganizationsResponse$json = { + '1': 'SearchOrganizationsResponse', + '2': [ + {'1': 'organizations', '3': 1, '4': 3, '5': 11, '6': '.viam.app.v1.OrgDetails', '10': 'organizations'}, + ], +}; + +/// Descriptor for `SearchOrganizationsResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List searchOrganizationsResponseDescriptor = $convert.base64Decode( + 'ChtTZWFyY2hPcmdhbml6YXRpb25zUmVzcG9uc2USPQoNb3JnYW5pemF0aW9ucxgBIAMoCzIXLn' + 'ZpYW0uYXBwLnYxLk9yZ0RldGFpbHNSDW9yZ2FuaXphdGlvbnM='); + @$core.Deprecated('Use createKeyRequestDescriptor instead') const CreateKeyRequest$json = { '1': 'CreateKeyRequest', diff --git a/lib/src/utils.dart b/lib/src/utils.dart index 984ced226f..a22601c14b 100644 --- a/lib/src/utils.dart +++ b/lib/src/utils.dart @@ -117,7 +117,7 @@ extension GetReadingsResponseUtils on GetReadingsResponse { String getVersionMetadata() { const String sdkVersion = 'v0.0.31'; - const String apiTag = 'v0.1.373'; + const String apiTag = 'v0.1.376'; return 'flutter;$sdkVersion;$apiTag'; }