Skip to content

Commit

Permalink
Merge pull request #1796 from spacemeshos/fix-nodeevent-err
Browse files Browse the repository at this point in the history
Do not throw error if NodeEvent does not have type or details
  • Loading branch information
brusherru authored Oct 25, 2024
2 parents 66ea128 + 61ecf6a commit 4345b0c
Show file tree
Hide file tree
Showing 67 changed files with 2,326 additions and 244 deletions.
11 changes: 11 additions & 0 deletions api/generated/google/api/Visibility.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Original file: vendor/proto/google/api/visibility.proto

import type { VisibilityRule as _google_api_VisibilityRule, VisibilityRule__Output as _google_api_VisibilityRule__Output } from '../../google/api/VisibilityRule';

export interface Visibility {
'rules'?: (_google_api_VisibilityRule)[];
}

export interface Visibility__Output {
'rules': (_google_api_VisibilityRule__Output)[];
}
12 changes: 12 additions & 0 deletions api/generated/google/api/VisibilityRule.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Original file: vendor/proto/google/api/visibility.proto


export interface VisibilityRule {
'selector'?: (string);
'restriction'?: (string);
}

export interface VisibilityRule__Output {
'selector': (string);
'restriction': (string);
}
3 changes: 3 additions & 0 deletions api/generated/google/protobuf/EnumOptions.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
// Original file: null

import type { UninterpretedOption as _google_protobuf_UninterpretedOption, UninterpretedOption__Output as _google_protobuf_UninterpretedOption__Output } from '../../google/protobuf/UninterpretedOption';
import type { VisibilityRule as _google_api_VisibilityRule, VisibilityRule__Output as _google_api_VisibilityRule__Output } from '../../google/api/VisibilityRule';

export interface EnumOptions {
'allowAlias'?: (boolean);
'deprecated'?: (boolean);
'uninterpretedOption'?: (_google_protobuf_UninterpretedOption)[];
'.google.api.enumVisibility'?: (_google_api_VisibilityRule | null);
}

export interface EnumOptions__Output {
'allowAlias': (boolean);
'deprecated': (boolean);
'uninterpretedOption': (_google_protobuf_UninterpretedOption__Output)[];
'.google.api.enumVisibility': (_google_api_VisibilityRule__Output | null);
}
3 changes: 3 additions & 0 deletions api/generated/google/protobuf/EnumValueOptions.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
// Original file: null

import type { UninterpretedOption as _google_protobuf_UninterpretedOption, UninterpretedOption__Output as _google_protobuf_UninterpretedOption__Output } from '../../google/protobuf/UninterpretedOption';
import type { VisibilityRule as _google_api_VisibilityRule, VisibilityRule__Output as _google_api_VisibilityRule__Output } from '../../google/api/VisibilityRule';

export interface EnumValueOptions {
'deprecated'?: (boolean);
'uninterpretedOption'?: (_google_protobuf_UninterpretedOption)[];
'.google.api.valueVisibility'?: (_google_api_VisibilityRule | null);
}

export interface EnumValueOptions__Output {
'deprecated': (boolean);
'uninterpretedOption': (_google_protobuf_UninterpretedOption__Output)[];
'.google.api.valueVisibility': (_google_api_VisibilityRule__Output | null);
}
6 changes: 6 additions & 0 deletions api/generated/google/protobuf/FieldOptions.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Original file: null

import type { UninterpretedOption as _google_protobuf_UninterpretedOption, UninterpretedOption__Output as _google_protobuf_UninterpretedOption__Output } from '../../google/protobuf/UninterpretedOption';
import type { JSONSchema as _grpc_gateway_protoc_gen_openapiv2_options_JSONSchema, JSONSchema__Output as _grpc_gateway_protoc_gen_openapiv2_options_JSONSchema__Output } from '../../grpc/gateway/protoc_gen_openapiv2/options/JSONSchema';
import type { VisibilityRule as _google_api_VisibilityRule, VisibilityRule__Output as _google_api_VisibilityRule__Output } from '../../google/api/VisibilityRule';

// Original file: null

Expand All @@ -26,6 +28,8 @@ export interface FieldOptions {
'jstype'?: (_google_protobuf_FieldOptions_JSType | keyof typeof _google_protobuf_FieldOptions_JSType);
'weak'?: (boolean);
'uninterpretedOption'?: (_google_protobuf_UninterpretedOption)[];
'.grpc.gateway.protoc_gen_openapiv2.options.openapiv2Field'?: (_grpc_gateway_protoc_gen_openapiv2_options_JSONSchema | null);
'.google.api.fieldVisibility'?: (_google_api_VisibilityRule | null);
}

export interface FieldOptions__Output {
Expand All @@ -36,4 +40,6 @@ export interface FieldOptions__Output {
'jstype': (_google_protobuf_FieldOptions_JSType);
'weak': (boolean);
'uninterpretedOption': (_google_protobuf_UninterpretedOption__Output)[];
'.grpc.gateway.protoc_gen_openapiv2.options.openapiv2Field': (_grpc_gateway_protoc_gen_openapiv2_options_JSONSchema__Output | null);
'.google.api.fieldVisibility': (_google_api_VisibilityRule__Output | null);
}
3 changes: 3 additions & 0 deletions api/generated/google/protobuf/FileOptions.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Original file: null

import type { UninterpretedOption as _google_protobuf_UninterpretedOption, UninterpretedOption__Output as _google_protobuf_UninterpretedOption__Output } from '../../google/protobuf/UninterpretedOption';
import type { Swagger as _grpc_gateway_protoc_gen_openapiv2_options_Swagger, Swagger__Output as _grpc_gateway_protoc_gen_openapiv2_options_Swagger__Output } from '../../grpc/gateway/protoc_gen_openapiv2/options/Swagger';

// Original file: null

Expand All @@ -26,6 +27,7 @@ export interface FileOptions {
'objcClassPrefix'?: (string);
'csharpNamespace'?: (string);
'uninterpretedOption'?: (_google_protobuf_UninterpretedOption)[];
'.grpc.gateway.protoc_gen_openapiv2.options.openapiv2Swagger'?: (_grpc_gateway_protoc_gen_openapiv2_options_Swagger | null);
}

export interface FileOptions__Output {
Expand All @@ -44,4 +46,5 @@ export interface FileOptions__Output {
'objcClassPrefix': (string);
'csharpNamespace': (string);
'uninterpretedOption': (_google_protobuf_UninterpretedOption__Output)[];
'.grpc.gateway.protoc_gen_openapiv2.options.openapiv2Swagger': (_grpc_gateway_protoc_gen_openapiv2_options_Swagger__Output | null);
}
11 changes: 11 additions & 0 deletions api/generated/google/protobuf/ListValue.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Original file: null

import type { Value as _google_protobuf_Value, Value__Output as _google_protobuf_Value__Output } from '../../google/protobuf/Value';

export interface ListValue {
'values'?: (_google_protobuf_Value)[];
}

export interface ListValue__Output {
'values': (_google_protobuf_Value__Output)[];
}
6 changes: 6 additions & 0 deletions api/generated/google/protobuf/MessageOptions.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
// Original file: null

import type { UninterpretedOption as _google_protobuf_UninterpretedOption, UninterpretedOption__Output as _google_protobuf_UninterpretedOption__Output } from '../../google/protobuf/UninterpretedOption';
import type { Schema as _grpc_gateway_protoc_gen_openapiv2_options_Schema, Schema__Output as _grpc_gateway_protoc_gen_openapiv2_options_Schema__Output } from '../../grpc/gateway/protoc_gen_openapiv2/options/Schema';
import type { VisibilityRule as _google_api_VisibilityRule, VisibilityRule__Output as _google_api_VisibilityRule__Output } from '../../google/api/VisibilityRule';

export interface MessageOptions {
'messageSetWireFormat'?: (boolean);
'noStandardDescriptorAccessor'?: (boolean);
'deprecated'?: (boolean);
'mapEntry'?: (boolean);
'uninterpretedOption'?: (_google_protobuf_UninterpretedOption)[];
'.grpc.gateway.protoc_gen_openapiv2.options.openapiv2Schema'?: (_grpc_gateway_protoc_gen_openapiv2_options_Schema | null);
'.google.api.messageVisibility'?: (_google_api_VisibilityRule | null);
}

export interface MessageOptions__Output {
Expand All @@ -16,4 +20,6 @@ export interface MessageOptions__Output {
'deprecated': (boolean);
'mapEntry': (boolean);
'uninterpretedOption': (_google_protobuf_UninterpretedOption__Output)[];
'.grpc.gateway.protoc_gen_openapiv2.options.openapiv2Schema': (_grpc_gateway_protoc_gen_openapiv2_options_Schema__Output | null);
'.google.api.messageVisibility': (_google_api_VisibilityRule__Output | null);
}
6 changes: 6 additions & 0 deletions api/generated/google/protobuf/MethodOptions.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
// Original file: null

import type { UninterpretedOption as _google_protobuf_UninterpretedOption, UninterpretedOption__Output as _google_protobuf_UninterpretedOption__Output } from '../../google/protobuf/UninterpretedOption';
import type { Operation as _grpc_gateway_protoc_gen_openapiv2_options_Operation, Operation__Output as _grpc_gateway_protoc_gen_openapiv2_options_Operation__Output } from '../../grpc/gateway/protoc_gen_openapiv2/options/Operation';
import type { VisibilityRule as _google_api_VisibilityRule, VisibilityRule__Output as _google_api_VisibilityRule__Output } from '../../google/api/VisibilityRule';
import type { HttpRule as _google_api_HttpRule, HttpRule__Output as _google_api_HttpRule__Output } from '../../google/api/HttpRule';

export interface MethodOptions {
'deprecated'?: (boolean);
'uninterpretedOption'?: (_google_protobuf_UninterpretedOption)[];
'.grpc.gateway.protoc_gen_openapiv2.options.openapiv2Operation'?: (_grpc_gateway_protoc_gen_openapiv2_options_Operation | null);
'.google.api.methodVisibility'?: (_google_api_VisibilityRule | null);
'.google.api.http'?: (_google_api_HttpRule | null);
}

export interface MethodOptions__Output {
'deprecated': (boolean);
'uninterpretedOption': (_google_protobuf_UninterpretedOption__Output)[];
'.grpc.gateway.protoc_gen_openapiv2.options.openapiv2Operation': (_grpc_gateway_protoc_gen_openapiv2_options_Operation__Output | null);
'.google.api.methodVisibility': (_google_api_VisibilityRule__Output | null);
'.google.api.http': (_google_api_HttpRule__Output | null);
}
5 changes: 5 additions & 0 deletions api/generated/google/protobuf/NullValue.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Original file: null

export enum NullValue {
NULL_VALUE = 0,
}
6 changes: 6 additions & 0 deletions api/generated/google/protobuf/ServiceOptions.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
// Original file: null

import type { UninterpretedOption as _google_protobuf_UninterpretedOption, UninterpretedOption__Output as _google_protobuf_UninterpretedOption__Output } from '../../google/protobuf/UninterpretedOption';
import type { Tag as _grpc_gateway_protoc_gen_openapiv2_options_Tag, Tag__Output as _grpc_gateway_protoc_gen_openapiv2_options_Tag__Output } from '../../grpc/gateway/protoc_gen_openapiv2/options/Tag';
import type { VisibilityRule as _google_api_VisibilityRule, VisibilityRule__Output as _google_api_VisibilityRule__Output } from '../../google/api/VisibilityRule';

export interface ServiceOptions {
'deprecated'?: (boolean);
'uninterpretedOption'?: (_google_protobuf_UninterpretedOption)[];
'.grpc.gateway.protoc_gen_openapiv2.options.openapiv2Tag'?: (_grpc_gateway_protoc_gen_openapiv2_options_Tag | null);
'.google.api.apiVisibility'?: (_google_api_VisibilityRule | null);
}

export interface ServiceOptions__Output {
'deprecated': (boolean);
'uninterpretedOption': (_google_protobuf_UninterpretedOption__Output)[];
'.grpc.gateway.protoc_gen_openapiv2.options.openapiv2Tag': (_grpc_gateway_protoc_gen_openapiv2_options_Tag__Output | null);
'.google.api.apiVisibility': (_google_api_VisibilityRule__Output | null);
}
11 changes: 11 additions & 0 deletions api/generated/google/protobuf/Struct.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Original file: null

import type { Value as _google_protobuf_Value, Value__Output as _google_protobuf_Value__Output } from '../../google/protobuf/Value';

export interface Struct {
'fields'?: ({[key: string]: _google_protobuf_Value});
}

export interface Struct__Output {
'fields': ({[key: string]: _google_protobuf_Value__Output});
}
25 changes: 25 additions & 0 deletions api/generated/google/protobuf/Value.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// Original file: null

import type { NullValue as _google_protobuf_NullValue } from '../../google/protobuf/NullValue';
import type { Struct as _google_protobuf_Struct, Struct__Output as _google_protobuf_Struct__Output } from '../../google/protobuf/Struct';
import type { ListValue as _google_protobuf_ListValue, ListValue__Output as _google_protobuf_ListValue__Output } from '../../google/protobuf/ListValue';

export interface Value {
'nullValue'?: (_google_protobuf_NullValue | keyof typeof _google_protobuf_NullValue);
'numberValue'?: (number | string);
'stringValue'?: (string);
'boolValue'?: (boolean);
'structValue'?: (_google_protobuf_Struct | null);
'listValue'?: (_google_protobuf_ListValue | null);
'kind'?: "nullValue"|"numberValue"|"stringValue"|"boolValue"|"structValue"|"listValue";
}

export interface Value__Output {
'nullValue'?: (_google_protobuf_NullValue);
'numberValue'?: (number);
'stringValue'?: (string);
'boolValue'?: (boolean);
'structValue'?: (_google_protobuf_Struct__Output | null);
'listValue'?: (_google_protobuf_ListValue__Output | null);
'kind': "nullValue"|"numberValue"|"stringValue"|"boolValue"|"structValue"|"listValue";
}
14 changes: 14 additions & 0 deletions api/generated/grpc/gateway/protoc_gen_openapiv2/options/Contact.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Original file: vendor/proto/protoc-gen-openapiv2/options/openapiv2.proto


export interface Contact {
'name'?: (string);
'url'?: (string);
'email'?: (string);
}

export interface Contact__Output {
'name': (string);
'url': (string);
'email': (string);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Original file: vendor/proto/protoc-gen-openapiv2/options/openapiv2.proto


export interface ExternalDocumentation {
'description'?: (string);
'url'?: (string);
}

export interface ExternalDocumentation__Output {
'description': (string);
'url': (string);
}
18 changes: 18 additions & 0 deletions api/generated/grpc/gateway/protoc_gen_openapiv2/options/Header.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Original file: vendor/proto/protoc-gen-openapiv2/options/openapiv2.proto


export interface Header {
'description'?: (string);
'type'?: (string);
'format'?: (string);
'default'?: (string);
'pattern'?: (string);
}

export interface Header__Output {
'description': (string);
'type': (string);
'format': (string);
'default': (string);
'pattern': (string);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// Original file: vendor/proto/protoc-gen-openapiv2/options/openapiv2.proto


// Original file: vendor/proto/protoc-gen-openapiv2/options/openapiv2.proto

export enum _grpc_gateway_protoc_gen_openapiv2_options_HeaderParameter_Type {
UNKNOWN = 0,
STRING = 1,
NUMBER = 2,
INTEGER = 3,
BOOLEAN = 4,
}

export interface HeaderParameter {
'name'?: (string);
'description'?: (string);
'type'?: (_grpc_gateway_protoc_gen_openapiv2_options_HeaderParameter_Type | keyof typeof _grpc_gateway_protoc_gen_openapiv2_options_HeaderParameter_Type);
'format'?: (string);
'required'?: (boolean);
}

export interface HeaderParameter__Output {
'name': (string);
'description': (string);
'type': (_grpc_gateway_protoc_gen_openapiv2_options_HeaderParameter_Type);
'format': (string);
'required': (boolean);
}
25 changes: 25 additions & 0 deletions api/generated/grpc/gateway/protoc_gen_openapiv2/options/Info.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// Original file: vendor/proto/protoc-gen-openapiv2/options/openapiv2.proto

import type { Contact as _grpc_gateway_protoc_gen_openapiv2_options_Contact, Contact__Output as _grpc_gateway_protoc_gen_openapiv2_options_Contact__Output } from '../../../../grpc/gateway/protoc_gen_openapiv2/options/Contact';
import type { License as _grpc_gateway_protoc_gen_openapiv2_options_License, License__Output as _grpc_gateway_protoc_gen_openapiv2_options_License__Output } from '../../../../grpc/gateway/protoc_gen_openapiv2/options/License';
import type { Value as _google_protobuf_Value, Value__Output as _google_protobuf_Value__Output } from '../../../../google/protobuf/Value';

export interface Info {
'title'?: (string);
'description'?: (string);
'termsOfService'?: (string);
'contact'?: (_grpc_gateway_protoc_gen_openapiv2_options_Contact | null);
'license'?: (_grpc_gateway_protoc_gen_openapiv2_options_License | null);
'version'?: (string);
'extensions'?: ({[key: string]: _google_protobuf_Value});
}

export interface Info__Output {
'title': (string);
'description': (string);
'termsOfService': (string);
'contact': (_grpc_gateway_protoc_gen_openapiv2_options_Contact__Output | null);
'license': (_grpc_gateway_protoc_gen_openapiv2_options_License__Output | null);
'version': (string);
'extensions': ({[key: string]: _google_protobuf_Value__Output});
}
Loading

0 comments on commit 4345b0c

Please sign in to comment.