From cbe4478675fdc9d9be92d2f5b567fbc61da5b9f8 Mon Sep 17 00:00:00 2001 From: flemming-it Date: Thu, 9 Jul 2026 17:01:48 +0200 Subject: [PATCH 1/3] chore(proto): regenerate stubs for StoreEntry.canonical_category Pin to platform hub.proto field 23/24 (canonical_category + label). Signed-off-by: flemming-it --- lib/src/generated/chain/v1/hub.pb.dart | 33 ++++++++++++++++++++++ lib/src/generated/chain/v1/hub.pbjson.dart | 18 +++++++++++- 2 files changed, 50 insertions(+), 1 deletion(-) diff --git a/lib/src/generated/chain/v1/hub.pb.dart b/lib/src/generated/chain/v1/hub.pb.dart index a5767df..6c94d89 100644 --- a/lib/src/generated/chain/v1/hub.pb.dart +++ b/lib/src/generated/chain/v1/hub.pb.dart @@ -4608,6 +4608,8 @@ class StoreEntry extends $pb.GeneratedMessage { $core.String? provider, $core.String? sourceKind, $core.String? source, + $core.String? canonicalCategory, + $core.String? canonicalCategoryLabel, }) { final result = create(); if (name != null) result.name = name; @@ -4634,6 +4636,9 @@ class StoreEntry extends $pb.GeneratedMessage { if (provider != null) result.provider = provider; if (sourceKind != null) result.sourceKind = sourceKind; if (source != null) result.source = source; + if (canonicalCategory != null) result.canonicalCategory = canonicalCategory; + if (canonicalCategoryLabel != null) + result.canonicalCategoryLabel = canonicalCategoryLabel; return result; } @@ -4672,6 +4677,8 @@ class StoreEntry extends $pb.GeneratedMessage { ..aOS(20, _omitFieldNames ? '' : 'provider') ..aOS(21, _omitFieldNames ? '' : 'sourceKind') ..aOS(22, _omitFieldNames ? '' : 'source') + ..aOS(23, _omitFieldNames ? '' : 'canonicalCategory') + ..aOS(24, _omitFieldNames ? '' : 'canonicalCategoryLabel') ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') @@ -4906,6 +4913,32 @@ class StoreEntry extends $pb.GeneratedMessage { $core.bool hasSource() => $_has(21); @$pb.TagNumber(22) void clearSource() => $_clearField(22); + + /// Canonical, normalized category slug (e.g. "data", "text-language", + /// "studio-themes"). The hub maps the free-form `category` onto a + /// fixed taxonomy by capability namespace, so different stores using + /// different labels ("data" vs "data-processing") land in ONE bucket. + /// Studio groups + filters by this, not the raw `category`. Empty + /// from pre-0.21 hubs → Studio falls back to `category`. + @$pb.TagNumber(23) + $core.String get canonicalCategory => $_getSZ(22); + @$pb.TagNumber(23) + set canonicalCategory($core.String value) => $_setString(22, value); + @$pb.TagNumber(23) + $core.bool hasCanonicalCategory() => $_has(22); + @$pb.TagNumber(23) + void clearCanonicalCategory() => $_clearField(23); + + /// Human-readable label for `canonical_category` (e.g. "Data & + /// Formats"). English; Studio may localize via the slug. + @$pb.TagNumber(24) + $core.String get canonicalCategoryLabel => $_getSZ(23); + @$pb.TagNumber(24) + set canonicalCategoryLabel($core.String value) => $_setString(23, value); + @$pb.TagNumber(24) + $core.bool hasCanonicalCategoryLabel() => $_has(23); + @$pb.TagNumber(24) + void clearCanonicalCategoryLabel() => $_clearField(24); } class ChannelStatusResponse extends $pb.GeneratedMessage { diff --git a/lib/src/generated/chain/v1/hub.pbjson.dart b/lib/src/generated/chain/v1/hub.pbjson.dart index f786685..bec39a5 100644 --- a/lib/src/generated/chain/v1/hub.pbjson.dart +++ b/lib/src/generated/chain/v1/hub.pbjson.dart @@ -1262,6 +1262,20 @@ const StoreEntry$json = { {'1': 'provider', '3': 20, '4': 1, '5': 9, '10': 'provider'}, {'1': 'source_kind', '3': 21, '4': 1, '5': 9, '10': 'sourceKind'}, {'1': 'source', '3': 22, '4': 1, '5': 9, '10': 'source'}, + { + '1': 'canonical_category', + '3': 23, + '4': 1, + '5': 9, + '10': 'canonicalCategory' + }, + { + '1': 'canonical_category_label', + '3': 24, + '4': 1, + '5': 9, + '10': 'canonicalCategoryLabel' + }, ], }; @@ -1279,7 +1293,9 @@ final $typed_data.Uint8List storeEntryDescriptor = $convert.base64Decode( '9uX3VybBgQIAEoCVIHaWNvblVybBInCg9zY3JlZW5zaG90X3VybHMYESADKAlSDnNjcmVlbnNo' 'b3RVcmxzEhkKCGRvY3NfdXJsGBIgASgJUgdkb2NzVXJsEhIKBGtpbmQYEyABKAlSBGtpbmQSGg' 'oIcHJvdmlkZXIYFCABKAlSCHByb3ZpZGVyEh8KC3NvdXJjZV9raW5kGBUgASgJUgpzb3VyY2VL' - 'aW5kEhYKBnNvdXJjZRgWIAEoCVIGc291cmNl'); + 'aW5kEhYKBnNvdXJjZRgWIAEoCVIGc291cmNlEi0KEmNhbm9uaWNhbF9jYXRlZ29yeRgXIAEoCV' + 'IRY2Fub25pY2FsQ2F0ZWdvcnkSOAoYY2Fub25pY2FsX2NhdGVnb3J5X2xhYmVsGBggASgJUhZj' + 'YW5vbmljYWxDYXRlZ29yeUxhYmVs'); @$core.Deprecated('Use channelStatusResponseDescriptor instead') const ChannelStatusResponse$json = { From 58ff6b23769bc1a59af94ce1c50cf27c78341cac Mon Sep 17 00:00:00 2001 From: flemming-it Date: Thu, 9 Jul 2026 19:28:45 +0200 Subject: [PATCH 2/3] chore(proto): regenerate stubs for Submit/RunSavedFlow project field Signed-off-by: flemming-it --- lib/src/generated/chain/v1/hub.pb.dart | 31 ++++++++++++++++++++++ lib/src/generated/chain/v1/hub.pbjson.dart | 13 +++++---- 2 files changed, 39 insertions(+), 5 deletions(-) diff --git a/lib/src/generated/chain/v1/hub.pb.dart b/lib/src/generated/chain/v1/hub.pb.dart index 6c94d89..08d8d83 100644 --- a/lib/src/generated/chain/v1/hub.pb.dart +++ b/lib/src/generated/chain/v1/hub.pb.dart @@ -83,11 +83,13 @@ class SubmitRequest extends $pb.GeneratedMessage { $core.List<$core.int>? flowYaml, $core.Iterable<$core.MapEntry<$core.String, $2.Payload>>? inputs, $core.bool? detach, + $core.String? project, }) { final result = create(); if (flowYaml != null) result.flowYaml = flowYaml; if (inputs != null) result.inputs.addEntries(inputs); if (detach != null) result.detach = detach; + if (project != null) result.project = project; return result; } @@ -114,6 +116,7 @@ class SubmitRequest extends $pb.GeneratedMessage { valueDefaultOrMaker: $2.Payload.getDefault, packageName: const $pb.PackageName('chain.v1')) ..aOB(3, _omitFieldNames ? '' : 'detach') + ..aOS(4, _omitFieldNames ? '' : 'project') ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') @@ -162,6 +165,20 @@ class SubmitRequest extends $pb.GeneratedMessage { $core.bool hasDetach() => $_has(2); @$pb.TagNumber(3) void clearDetach() => $_clearField(3); + + /// Project slug this run belongs to (added phase 2). Overrides the + /// flow YAML's `project:`; empty → the flow's project, then + /// `general`. Every audit event, approval and detached row from this + /// run is stamped (and hashed) with it. Grouping/filtering only — + /// not tenancy. + @$pb.TagNumber(4) + $core.String get project => $_getSZ(3); + @$pb.TagNumber(4) + set project($core.String value) => $_setString(3, value); + @$pb.TagNumber(4) + $core.bool hasProject() => $_has(3); + @$pb.TagNumber(4) + void clearProject() => $_clearField(4); } class SubmitResponse extends $pb.GeneratedMessage { @@ -2525,10 +2542,12 @@ class RunSavedFlowRequest extends $pb.GeneratedMessage { factory RunSavedFlowRequest({ $core.String? name, $core.Iterable<$core.MapEntry<$core.String, $2.Payload>>? inputs, + $core.String? project, }) { final result = create(); if (name != null) result.name = name; if (inputs != null) result.inputs.addEntries(inputs); + if (project != null) result.project = project; return result; } @@ -2553,6 +2572,7 @@ class RunSavedFlowRequest extends $pb.GeneratedMessage { valueCreator: $2.Payload.create, valueDefaultOrMaker: $2.Payload.getDefault, packageName: const $pb.PackageName('chain.v1')) + ..aOS(3, _omitFieldNames ? '' : 'project') ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') @@ -2585,6 +2605,17 @@ class RunSavedFlowRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) $pb.PbMap<$core.String, $2.Payload> get inputs => $_getMap(1); + + /// Project slug override (added phase 2); empty → the saved flow's + /// own `project:`, then `general`. + @$pb.TagNumber(3) + $core.String get project => $_getSZ(2); + @$pb.TagNumber(3) + set project($core.String value) => $_setString(2, value); + @$pb.TagNumber(3) + $core.bool hasProject() => $_has(2); + @$pb.TagNumber(3) + void clearProject() => $_clearField(3); } class GetFlowDefinitionRequest extends $pb.GeneratedMessage { diff --git a/lib/src/generated/chain/v1/hub.pbjson.dart b/lib/src/generated/chain/v1/hub.pbjson.dart index bec39a5..ae21b9c 100644 --- a/lib/src/generated/chain/v1/hub.pbjson.dart +++ b/lib/src/generated/chain/v1/hub.pbjson.dart @@ -42,6 +42,7 @@ const SubmitRequest$json = { '10': 'inputs' }, {'1': 'detach', '3': 3, '4': 1, '5': 8, '10': 'detach'}, + {'1': 'project', '3': 4, '4': 1, '5': 9, '10': 'project'}, ], '3': [SubmitRequest_InputsEntry$json], }; @@ -67,8 +68,9 @@ const SubmitRequest_InputsEntry$json = { final $typed_data.Uint8List submitRequestDescriptor = $convert.base64Decode( 'Cg1TdWJtaXRSZXF1ZXN0EhsKCWZsb3dfeWFtbBgBIAEoDFIIZmxvd1lhbWwSOwoGaW5wdXRzGA' 'IgAygLMiMuY2hhaW4udjEuU3VibWl0UmVxdWVzdC5JbnB1dHNFbnRyeVIGaW5wdXRzEhYKBmRl' - 'dGFjaBgDIAEoCFIGZGV0YWNoGkwKC0lucHV0c0VudHJ5EhAKA2tleRgBIAEoCVIDa2V5EicKBX' - 'ZhbHVlGAIgASgLMhEuY2hhaW4udjEuUGF5bG9hZFIFdmFsdWU6AjgB'); + 'dGFjaBgDIAEoCFIGZGV0YWNoEhgKB3Byb2plY3QYBCABKAlSB3Byb2plY3QaTAoLSW5wdXRzRW' + '50cnkSEAoDa2V5GAEgASgJUgNrZXkSJwoFdmFsdWUYAiABKAsyES5jaGFpbi52MS5QYXlsb2Fk' + 'UgV2YWx1ZToCOAE='); @$core.Deprecated('Use submitResponseDescriptor instead') const SubmitResponse$json = { @@ -754,6 +756,7 @@ const RunSavedFlowRequest$json = { '6': '.chain.v1.RunSavedFlowRequest.InputsEntry', '10': 'inputs' }, + {'1': 'project', '3': 3, '4': 1, '5': 9, '10': 'project'}, ], '3': [RunSavedFlowRequest_InputsEntry$json], }; @@ -778,9 +781,9 @@ const RunSavedFlowRequest_InputsEntry$json = { /// Descriptor for `RunSavedFlowRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List runSavedFlowRequestDescriptor = $convert.base64Decode( 'ChNSdW5TYXZlZEZsb3dSZXF1ZXN0EhIKBG5hbWUYASABKAlSBG5hbWUSQQoGaW5wdXRzGAIgAy' - 'gLMikuY2hhaW4udjEuUnVuU2F2ZWRGbG93UmVxdWVzdC5JbnB1dHNFbnRyeVIGaW5wdXRzGkwK' - 'C0lucHV0c0VudHJ5EhAKA2tleRgBIAEoCVIDa2V5EicKBXZhbHVlGAIgASgLMhEuY2hhaW4udj' - 'EuUGF5bG9hZFIFdmFsdWU6AjgB'); + 'gLMikuY2hhaW4udjEuUnVuU2F2ZWRGbG93UmVxdWVzdC5JbnB1dHNFbnRyeVIGaW5wdXRzEhgK' + 'B3Byb2plY3QYAyABKAlSB3Byb2plY3QaTAoLSW5wdXRzRW50cnkSEAoDa2V5GAEgASgJUgNrZX' + 'kSJwoFdmFsdWUYAiABKAsyES5jaGFpbi52MS5QYXlsb2FkUgV2YWx1ZToCOAE='); @$core.Deprecated('Use getFlowDefinitionRequestDescriptor instead') const GetFlowDefinitionRequest$json = { From 408f0eb850027782e410d0bad015ec71d5ca6f83 Mon Sep 17 00:00:00 2001 From: flemming-it Date: Sat, 11 Jul 2026 23:14:21 +0200 Subject: [PATCH 3/3] =?UTF-8?q?refactor!:=20regenerate=20stubs=20=E2=80=94?= =?UTF-8?q?=20wire=20message=20FaiError=20is=20now=20ChainError?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Lockstep with the platform's proto rename (binary wire-compatible; protobuf field numbers unchanged). Signed-off-by: flemming-it --- lib/src/generated/chain/v1/common.pb.dart | 38 +++++++++---------- lib/src/generated/chain/v1/common.pbenum.dart | 38 +++++++++---------- lib/src/generated/chain/v1/common.pbjson.dart | 28 +++++++------- lib/src/generated/chain/v1/federation.pb.dart | 16 ++++---- .../generated/chain/v1/federation.pbjson.dart | 12 +++--- lib/src/generated/chain/v1/module.pb.dart | 12 +++--- lib/src/generated/chain/v1/module.pbjson.dart | 6 +-- 7 files changed, 75 insertions(+), 75 deletions(-) diff --git a/lib/src/generated/chain/v1/common.pb.dart b/lib/src/generated/chain/v1/common.pb.dart index 16691d8..1490fce 100644 --- a/lib/src/generated/chain/v1/common.pb.dart +++ b/lib/src/generated/chain/v1/common.pb.dart @@ -434,9 +434,9 @@ class FileRef extends $pb.GeneratedMessage { } /// Standard error shape for hub and module responses. -class FaiError extends $pb.GeneratedMessage { - factory FaiError({ - FaiError_Code? code, +class ChainError extends $pb.GeneratedMessage { + factory ChainError({ + ChainError_Code? code, $core.String? message, $core.String? details, }) { @@ -447,47 +447,47 @@ class FaiError extends $pb.GeneratedMessage { return result; } - FaiError._(); + ChainError._(); - factory FaiError.fromBuffer($core.List<$core.int> data, + factory ChainError.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory FaiError.fromJson($core.String json, + factory ChainError.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'FaiError', + _omitMessageNames ? '' : 'ChainError', package: const $pb.PackageName(_omitMessageNames ? '' : 'chain.v1'), createEmptyInstance: create) - ..aE(1, _omitFieldNames ? '' : 'code', - enumValues: FaiError_Code.values) + ..aE(1, _omitFieldNames ? '' : 'code', + enumValues: ChainError_Code.values) ..aOS(2, _omitFieldNames ? '' : 'message') ..aOS(3, _omitFieldNames ? '' : 'details') ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - FaiError clone() => deepCopy(); + ChainError clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - FaiError copyWith(void Function(FaiError) updates) => - super.copyWith((message) => updates(message as FaiError)) as FaiError; + ChainError copyWith(void Function(ChainError) updates) => + super.copyWith((message) => updates(message as ChainError)) as ChainError; @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static FaiError create() => FaiError._(); + static ChainError create() => ChainError._(); @$core.override - FaiError createEmptyInstance() => create(); + ChainError createEmptyInstance() => create(); @$core.pragma('dart2js:noInline') - static FaiError getDefault() => - _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static FaiError? _defaultInstance; + static ChainError getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static ChainError? _defaultInstance; @$pb.TagNumber(1) - FaiError_Code get code => $_getN(0); + ChainError_Code get code => $_getN(0); @$pb.TagNumber(1) - set code(FaiError_Code value) => $_setField(1, value); + set code(ChainError_Code value) => $_setField(1, value); @$pb.TagNumber(1) $core.bool hasCode() => $_has(0); @$pb.TagNumber(1) diff --git a/lib/src/generated/chain/v1/common.pbenum.dart b/lib/src/generated/chain/v1/common.pbenum.dart index 6f52e9a..1cd451c 100644 --- a/lib/src/generated/chain/v1/common.pbenum.dart +++ b/lib/src/generated/chain/v1/common.pbenum.dart @@ -14,23 +14,23 @@ import 'dart:core' as $core; import 'package:protobuf/protobuf.dart' as $pb; -class FaiError_Code extends $pb.ProtobufEnum { - static const FaiError_Code UNKNOWN = - FaiError_Code._(0, _omitEnumNames ? '' : 'UNKNOWN'); - static const FaiError_Code INVALID_INPUT = - FaiError_Code._(1, _omitEnumNames ? '' : 'INVALID_INPUT'); - static const FaiError_Code CAPABILITY_NOT_SUPPORTED = - FaiError_Code._(2, _omitEnumNames ? '' : 'CAPABILITY_NOT_SUPPORTED'); - static const FaiError_Code PERMISSION_DENIED = - FaiError_Code._(3, _omitEnumNames ? '' : 'PERMISSION_DENIED'); - static const FaiError_Code RESOURCE_EXHAUSTED = - FaiError_Code._(4, _omitEnumNames ? '' : 'RESOURCE_EXHAUSTED'); - static const FaiError_Code DEADLINE_EXCEEDED = - FaiError_Code._(5, _omitEnumNames ? '' : 'DEADLINE_EXCEEDED'); - static const FaiError_Code INTERNAL = - FaiError_Code._(6, _omitEnumNames ? '' : 'INTERNAL'); +class ChainError_Code extends $pb.ProtobufEnum { + static const ChainError_Code UNKNOWN = + ChainError_Code._(0, _omitEnumNames ? '' : 'UNKNOWN'); + static const ChainError_Code INVALID_INPUT = + ChainError_Code._(1, _omitEnumNames ? '' : 'INVALID_INPUT'); + static const ChainError_Code CAPABILITY_NOT_SUPPORTED = + ChainError_Code._(2, _omitEnumNames ? '' : 'CAPABILITY_NOT_SUPPORTED'); + static const ChainError_Code PERMISSION_DENIED = + ChainError_Code._(3, _omitEnumNames ? '' : 'PERMISSION_DENIED'); + static const ChainError_Code RESOURCE_EXHAUSTED = + ChainError_Code._(4, _omitEnumNames ? '' : 'RESOURCE_EXHAUSTED'); + static const ChainError_Code DEADLINE_EXCEEDED = + ChainError_Code._(5, _omitEnumNames ? '' : 'DEADLINE_EXCEEDED'); + static const ChainError_Code INTERNAL = + ChainError_Code._(6, _omitEnumNames ? '' : 'INTERNAL'); - static const $core.List values = [ + static const $core.List values = [ UNKNOWN, INVALID_INPUT, CAPABILITY_NOT_SUPPORTED, @@ -40,12 +40,12 @@ class FaiError_Code extends $pb.ProtobufEnum { INTERNAL, ]; - static final $core.List _byValue = + static final $core.List _byValue = $pb.ProtobufEnum.$_initByValueList(values, 6); - static FaiError_Code? valueOf($core.int value) => + static ChainError_Code? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value]; - const FaiError_Code._(super.value, super.name); + const ChainError_Code._(super.value, super.name); } const $core.bool _omitEnumNames = diff --git a/lib/src/generated/chain/v1/common.pbjson.dart b/lib/src/generated/chain/v1/common.pbjson.dart index 98d7839..3f4d860 100644 --- a/lib/src/generated/chain/v1/common.pbjson.dart +++ b/lib/src/generated/chain/v1/common.pbjson.dart @@ -117,26 +117,26 @@ final $typed_data.Uint8List fileRefDescriptor = $convert.base64Decode( 'CgdGaWxlUmVmEhAKA3VyaRgBIAEoCVIDdXJpEhsKCW1pbWVfdHlwZRgCIAEoCVIIbWltZVR5cG' 'USHQoKc2l6ZV9ieXRlcxgDIAEoBFIJc2l6ZUJ5dGVzEhYKBnNoYTI1NhgEIAEoCVIGc2hhMjU2'); -@$core.Deprecated('Use faiErrorDescriptor instead') -const FaiError$json = { - '1': 'FaiError', +@$core.Deprecated('Use chainErrorDescriptor instead') +const ChainError$json = { + '1': 'ChainError', '2': [ { '1': 'code', '3': 1, '4': 1, '5': 14, - '6': '.chain.v1.FaiError.Code', + '6': '.chain.v1.ChainError.Code', '10': 'code' }, {'1': 'message', '3': 2, '4': 1, '5': 9, '10': 'message'}, {'1': 'details', '3': 3, '4': 1, '5': 9, '10': 'details'}, ], - '4': [FaiError_Code$json], + '4': [ChainError_Code$json], }; -@$core.Deprecated('Use faiErrorDescriptor instead') -const FaiError_Code$json = { +@$core.Deprecated('Use chainErrorDescriptor instead') +const ChainError_Code$json = { '1': 'Code', '2': [ {'1': 'UNKNOWN', '2': 0}, @@ -149,10 +149,10 @@ const FaiError_Code$json = { ], }; -/// Descriptor for `FaiError`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List faiErrorDescriptor = $convert.base64Decode( - 'CghGYWlFcnJvchIrCgRjb2RlGAEgASgOMhcuY2hhaW4udjEuRmFpRXJyb3IuQ29kZVIEY29kZR' - 'IYCgdtZXNzYWdlGAIgASgJUgdtZXNzYWdlEhgKB2RldGFpbHMYAyABKAlSB2RldGFpbHMimAEK' - 'BENvZGUSCwoHVU5LTk9XThAAEhEKDUlOVkFMSURfSU5QVVQQARIcChhDQVBBQklMSVRZX05PVF' - '9TVVBQT1JURUQQAhIVChFQRVJNSVNTSU9OX0RFTklFRBADEhYKElJFU09VUkNFX0VYSEFVU1RF' - 'RBAEEhUKEURFQURMSU5FX0VYQ0VFREVEEAUSDAoISU5URVJOQUwQBg=='); +/// Descriptor for `ChainError`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List chainErrorDescriptor = $convert.base64Decode( + 'CgpDaGFpbkVycm9yEi0KBGNvZGUYASABKA4yGS5jaGFpbi52MS5DaGFpbkVycm9yLkNvZGVSBG' + 'NvZGUSGAoHbWVzc2FnZRgCIAEoCVIHbWVzc2FnZRIYCgdkZXRhaWxzGAMgASgJUgdkZXRhaWxz' + 'IpgBCgRDb2RlEgsKB1VOS05PV04QABIRCg1JTlZBTElEX0lOUFVUEAESHAoYQ0FQQUJJTElUWV' + '9OT1RfU1VQUE9SVEVEEAISFQoRUEVSTUlTU0lPTl9ERU5JRUQQAxIWChJSRVNPVVJDRV9FWEhB' + 'VVNURUQQBBIVChFERUFETElORV9FWENFRURFRBAFEgwKCElOVEVSTkFMEAY='); diff --git a/lib/src/generated/chain/v1/federation.pb.dart b/lib/src/generated/chain/v1/federation.pb.dart index f59ca63..3128a0d 100644 --- a/lib/src/generated/chain/v1/federation.pb.dart +++ b/lib/src/generated/chain/v1/federation.pb.dart @@ -1640,7 +1640,7 @@ class DispatchRequest extends $pb.GeneratedMessage { class DispatchResponse extends $pb.GeneratedMessage { factory DispatchResponse({ $core.Iterable<$core.MapEntry<$core.String, $1.Payload>>? outputs, - $1.FaiError? error, + $1.ChainError? error, $core.int? durationMs, $core.String? executedAtHubId, }) { @@ -1672,8 +1672,8 @@ class DispatchResponse extends $pb.GeneratedMessage { valueCreator: $1.Payload.create, valueDefaultOrMaker: $1.Payload.getDefault, packageName: const $pb.PackageName('chain.v1')) - ..aOM<$1.FaiError>(2, _omitFieldNames ? '' : 'error', - subBuilder: $1.FaiError.create) + ..aOM<$1.ChainError>(2, _omitFieldNames ? '' : 'error', + subBuilder: $1.ChainError.create) ..aI(3, _omitFieldNames ? '' : 'durationMs', fieldType: $pb.PbFieldType.OU3) ..aOS(4, _omitFieldNames ? '' : 'executedAtHubId') ..hasRequiredFields = false; @@ -1701,18 +1701,18 @@ class DispatchResponse extends $pb.GeneratedMessage { @$pb.TagNumber(1) $pb.PbMap<$core.String, $1.Payload> get outputs => $_getMap(0); - /// Error shape on failure. The `code` mirrors common.FaiError - /// codes; the satellite maps its local FaiError to this wire. + /// Error shape on failure. The `code` mirrors common.ChainError + /// codes; the satellite maps its local ChainError to this wire. @$pb.TagNumber(2) - $1.FaiError get error => $_getN(1); + $1.ChainError get error => $_getN(1); @$pb.TagNumber(2) - set error($1.FaiError value) => $_setField(2, value); + set error($1.ChainError value) => $_setField(2, value); @$pb.TagNumber(2) $core.bool hasError() => $_has(1); @$pb.TagNumber(2) void clearError() => $_clearField(2); @$pb.TagNumber(2) - $1.FaiError ensureError() => $_ensure(1); + $1.ChainError ensureError() => $_ensure(1); /// Wall-clock duration of the actual module invocation at the /// satellite, in milliseconds. Excludes federation transport. diff --git a/lib/src/generated/chain/v1/federation.pbjson.dart b/lib/src/generated/chain/v1/federation.pbjson.dart index 12185eb..c11e5f8 100644 --- a/lib/src/generated/chain/v1/federation.pbjson.dart +++ b/lib/src/generated/chain/v1/federation.pbjson.dart @@ -485,7 +485,7 @@ const DispatchResponse$json = { '3': 2, '4': 1, '5': 11, - '6': '.chain.v1.FaiError', + '6': '.chain.v1.ChainError', '10': 'error' }, {'1': 'duration_ms', '3': 3, '4': 1, '5': 13, '10': 'durationMs'}, @@ -520,11 +520,11 @@ const DispatchResponse_OutputsEntry$json = { /// Descriptor for `DispatchResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List dispatchResponseDescriptor = $convert.base64Decode( 'ChBEaXNwYXRjaFJlc3BvbnNlEkEKB291dHB1dHMYASADKAsyJy5jaGFpbi52MS5EaXNwYXRjaF' - 'Jlc3BvbnNlLk91dHB1dHNFbnRyeVIHb3V0cHV0cxIoCgVlcnJvchgCIAEoCzISLmNoYWluLnYx' - 'LkZhaUVycm9yUgVlcnJvchIfCgtkdXJhdGlvbl9tcxgDIAEoDVIKZHVyYXRpb25NcxIrChJleG' - 'VjdXRlZF9hdF9odWJfaWQYBCABKAlSD2V4ZWN1dGVkQXRIdWJJZBpNCgxPdXRwdXRzRW50cnkS' - 'EAoDa2V5GAEgASgJUgNrZXkSJwoFdmFsdWUYAiABKAsyES5jaGFpbi52MS5QYXlsb2FkUgV2YW' - 'x1ZToCOAE='); + 'Jlc3BvbnNlLk91dHB1dHNFbnRyeVIHb3V0cHV0cxIqCgVlcnJvchgCIAEoCzIULmNoYWluLnYx' + 'LkNoYWluRXJyb3JSBWVycm9yEh8KC2R1cmF0aW9uX21zGAMgASgNUgpkdXJhdGlvbk1zEisKEm' + 'V4ZWN1dGVkX2F0X2h1Yl9pZBgEIAEoCVIPZXhlY3V0ZWRBdEh1YklkGk0KDE91dHB1dHNFbnRy' + 'eRIQCgNrZXkYASABKAlSA2tleRInCgV2YWx1ZRgCIAEoCzIRLmNoYWluLnYxLlBheWxvYWRSBX' + 'ZhbHVlOgI4AQ=='); @$core.Deprecated('Use blobChunkDescriptor instead') const BlobChunk$json = { diff --git a/lib/src/generated/chain/v1/module.pb.dart b/lib/src/generated/chain/v1/module.pb.dart index 654be26..b1e0f2b 100644 --- a/lib/src/generated/chain/v1/module.pb.dart +++ b/lib/src/generated/chain/v1/module.pb.dart @@ -122,7 +122,7 @@ enum InvokeResponse_Result { success, error, notSet } class InvokeResponse extends $pb.GeneratedMessage { factory InvokeResponse({ Success? success, - $2.FaiError? error, + $2.ChainError? error, }) { final result = create(); if (success != null) result.success = success; @@ -152,8 +152,8 @@ class InvokeResponse extends $pb.GeneratedMessage { ..oo(0, [1, 2]) ..aOM(1, _omitFieldNames ? '' : 'success', subBuilder: Success.create) - ..aOM<$2.FaiError>(2, _omitFieldNames ? '' : 'error', - subBuilder: $2.FaiError.create) + ..aOM<$2.ChainError>(2, _omitFieldNames ? '' : 'error', + subBuilder: $2.ChainError.create) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') @@ -195,15 +195,15 @@ class InvokeResponse extends $pb.GeneratedMessage { Success ensureSuccess() => $_ensure(0); @$pb.TagNumber(2) - $2.FaiError get error => $_getN(1); + $2.ChainError get error => $_getN(1); @$pb.TagNumber(2) - set error($2.FaiError value) => $_setField(2, value); + set error($2.ChainError value) => $_setField(2, value); @$pb.TagNumber(2) $core.bool hasError() => $_has(1); @$pb.TagNumber(2) void clearError() => $_clearField(2); @$pb.TagNumber(2) - $2.FaiError ensureError() => $_ensure(1); + $2.ChainError ensureError() => $_ensure(1); } class Success extends $pb.GeneratedMessage { diff --git a/lib/src/generated/chain/v1/module.pbjson.dart b/lib/src/generated/chain/v1/module.pbjson.dart index bb1ab65..ca1e20f 100644 --- a/lib/src/generated/chain/v1/module.pbjson.dart +++ b/lib/src/generated/chain/v1/module.pbjson.dart @@ -92,7 +92,7 @@ const InvokeResponse$json = { '3': 2, '4': 1, '5': 11, - '6': '.chain.v1.FaiError', + '6': '.chain.v1.ChainError', '9': 0, '10': 'error' }, @@ -105,8 +105,8 @@ const InvokeResponse$json = { /// Descriptor for `InvokeResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List invokeResponseDescriptor = $convert.base64Decode( 'Cg5JbnZva2VSZXNwb25zZRItCgdzdWNjZXNzGAEgASgLMhEuY2hhaW4udjEuU3VjY2Vzc0gAUg' - 'dzdWNjZXNzEioKBWVycm9yGAIgASgLMhIuY2hhaW4udjEuRmFpRXJyb3JIAFIFZXJyb3JCCAoG' - 'cmVzdWx0'); + 'dzdWNjZXNzEiwKBWVycm9yGAIgASgLMhQuY2hhaW4udjEuQ2hhaW5FcnJvckgAUgVlcnJvckII' + 'CgZyZXN1bHQ='); @$core.Deprecated('Use successDescriptor instead') const Success$json = {