diff --git a/go.mod b/go.mod index 492aac927d..5ea040e971 100644 --- a/go.mod +++ b/go.mod @@ -38,7 +38,7 @@ require ( github.com/smartcontractkit/chain-selectors v1.0.62 github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.1 github.com/smartcontractkit/chainlink-protos/billing/go v0.0.0-20250722175102-6dcdf5122683 - github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20250819150450-95ef563f6e6d + github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20250829155125-f4655b0b4605 github.com/smartcontractkit/chainlink-protos/storage-service v0.3.0 github.com/smartcontractkit/freeport v0.1.1 github.com/smartcontractkit/grpc-proxy v0.0.0-20240830132753-a7e17fec5ab7 diff --git a/go.sum b/go.sum index eb6d94a016..14918302ac 100644 --- a/go.sum +++ b/go.sum @@ -325,8 +325,8 @@ github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.1 h1:ca2z5OXgn github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.1/go.mod h1:NZv/qKYGFRnkjOYBouajnDfFoZ+WDa6H2KNmSf1dnKc= github.com/smartcontractkit/chainlink-protos/billing/go v0.0.0-20250722175102-6dcdf5122683 h1:Qjiw8yaKi42jjknW1+ox6+QHc4aJVm0uhVoKTlmZryU= github.com/smartcontractkit/chainlink-protos/billing/go v0.0.0-20250722175102-6dcdf5122683/go.mod h1:HHGeDUpAsPa0pmOx7wrByCitjQ0mbUxf0R9v+g67uCA= -github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20250819150450-95ef563f6e6d h1:MJS8HTB1h3w7qV+70ueWnTQlMG8mxDUV/GdQH54Rg6g= -github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20250819150450-95ef563f6e6d/go.mod h1:jUC52kZzEnWF9tddHh85zolKybmLpbQ1oNA4FjOHt1Q= +github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20250829155125-f4655b0b4605 h1:yVH5tLDzW2ZBUpmkHF5nci1SRSXTcU3A1VZ8iS5qudA= +github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20250829155125-f4655b0b4605/go.mod h1:jUC52kZzEnWF9tddHh85zolKybmLpbQ1oNA4FjOHt1Q= github.com/smartcontractkit/chainlink-protos/storage-service v0.3.0 h1:B7itmjy+CMJ26elVw/cAJqqhBQ3Xa/mBYWK0/rQ5MuI= github.com/smartcontractkit/chainlink-protos/storage-service v0.3.0/go.mod h1:h6kqaGajbNRrezm56zhx03p0mVmmA2xxj7E/M4ytLUA= github.com/smartcontractkit/chainlink-protos/workflows/go v0.0.0-20250430163438-97d324ef9061 h1:5BKk6j2QWmb5TFoWYVLuL8U2XUIzTUUo5HBkCHTX2kM= diff --git a/pkg/capabilities/v2/triggers/http/trigger.pb.go b/pkg/capabilities/v2/triggers/http/trigger.pb.go index dbf63833dc..918240da67 100644 --- a/pkg/capabilities/v2/triggers/http/trigger.pb.go +++ b/pkg/capabilities/v2/triggers/http/trigger.pb.go @@ -10,7 +10,6 @@ import ( _ "github.com/smartcontractkit/chainlink-protos/cre/go/tools/generator" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - structpb "google.golang.org/protobuf/types/known/structpb" reflect "reflect" sync "sync" unsafe "unsafe" @@ -116,8 +115,8 @@ func (x *Config) GetAuthorizedKeys() []*AuthorizedKey { type Payload struct { state protoimpl.MessageState `protogen:"open.v1"` - // JSON input in the HTTP trigger request - Input *structpb.Struct `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"` + // JSON input in the HTTP trigger request (as bytes) + Input []byte `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"` // Key used to sign the HTTP trigger request Key *AuthorizedKey `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` unknownFields protoimpl.UnknownFields @@ -154,7 +153,7 @@ func (*Payload) Descriptor() ([]byte, []int) { return file_capabilities_networking_http_v1alpha_trigger_proto_rawDescGZIP(), []int{1} } -func (x *Payload) GetInput() *structpb.Struct { +func (x *Payload) GetInput() []byte { if x != nil { return x.Input } @@ -225,11 +224,11 @@ var File_capabilities_networking_http_v1alpha_trigger_proto protoreflect.FileDes const file_capabilities_networking_http_v1alpha_trigger_proto_rawDesc = "" + "\n" + - "2capabilities/networking/http/v1alpha/trigger.proto\x12$capabilities.networking.http.v1alpha\x1a\x1cgoogle/protobuf/struct.proto\x1a*tools/generator/v1alpha/cre_metadata.proto\"f\n" + + "2capabilities/networking/http/v1alpha/trigger.proto\x12$capabilities.networking.http.v1alpha\x1a*tools/generator/v1alpha/cre_metadata.proto\"f\n" + "\x06Config\x12\\\n" + - "\x0fauthorized_keys\x18\x01 \x03(\v23.capabilities.networking.http.v1alpha.AuthorizedKeyR\x0eauthorizedKeys\"\x7f\n" + - "\aPayload\x12-\n" + - "\x05input\x18\x01 \x01(\v2\x17.google.protobuf.StructR\x05input\x12E\n" + + "\x0fauthorized_keys\x18\x01 \x03(\v23.capabilities.networking.http.v1alpha.AuthorizedKeyR\x0eauthorizedKeys\"f\n" + + "\aPayload\x12\x14\n" + + "\x05input\x18\x01 \x01(\fR\x05input\x12E\n" + "\x03key\x18\x02 \x01(\v23.capabilities.networking.http.v1alpha.AuthorizedKeyR\x03key\"q\n" + "\rAuthorizedKey\x12A\n" + "\x04type\x18\x01 \x01(\x0e2-.capabilities.networking.http.v1alpha.KeyTypeR\x04type\x12\x1d\n" + @@ -256,24 +255,22 @@ func file_capabilities_networking_http_v1alpha_trigger_proto_rawDescGZIP() []byt var file_capabilities_networking_http_v1alpha_trigger_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_capabilities_networking_http_v1alpha_trigger_proto_msgTypes = make([]protoimpl.MessageInfo, 3) var file_capabilities_networking_http_v1alpha_trigger_proto_goTypes = []any{ - (KeyType)(0), // 0: capabilities.networking.http.v1alpha.KeyType - (*Config)(nil), // 1: capabilities.networking.http.v1alpha.Config - (*Payload)(nil), // 2: capabilities.networking.http.v1alpha.Payload - (*AuthorizedKey)(nil), // 3: capabilities.networking.http.v1alpha.AuthorizedKey - (*structpb.Struct)(nil), // 4: google.protobuf.Struct + (KeyType)(0), // 0: capabilities.networking.http.v1alpha.KeyType + (*Config)(nil), // 1: capabilities.networking.http.v1alpha.Config + (*Payload)(nil), // 2: capabilities.networking.http.v1alpha.Payload + (*AuthorizedKey)(nil), // 3: capabilities.networking.http.v1alpha.AuthorizedKey } var file_capabilities_networking_http_v1alpha_trigger_proto_depIdxs = []int32{ 3, // 0: capabilities.networking.http.v1alpha.Config.authorized_keys:type_name -> capabilities.networking.http.v1alpha.AuthorizedKey - 4, // 1: capabilities.networking.http.v1alpha.Payload.input:type_name -> google.protobuf.Struct - 3, // 2: capabilities.networking.http.v1alpha.Payload.key:type_name -> capabilities.networking.http.v1alpha.AuthorizedKey - 0, // 3: capabilities.networking.http.v1alpha.AuthorizedKey.type:type_name -> capabilities.networking.http.v1alpha.KeyType - 1, // 4: capabilities.networking.http.v1alpha.HTTP.Trigger:input_type -> capabilities.networking.http.v1alpha.Config - 2, // 5: capabilities.networking.http.v1alpha.HTTP.Trigger:output_type -> capabilities.networking.http.v1alpha.Payload - 5, // [5:6] is the sub-list for method output_type - 4, // [4:5] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name + 3, // 1: capabilities.networking.http.v1alpha.Payload.key:type_name -> capabilities.networking.http.v1alpha.AuthorizedKey + 0, // 2: capabilities.networking.http.v1alpha.AuthorizedKey.type:type_name -> capabilities.networking.http.v1alpha.KeyType + 1, // 3: capabilities.networking.http.v1alpha.HTTP.Trigger:input_type -> capabilities.networking.http.v1alpha.Config + 2, // 4: capabilities.networking.http.v1alpha.HTTP.Trigger:output_type -> capabilities.networking.http.v1alpha.Payload + 4, // [4:5] is the sub-list for method output_type + 3, // [3:4] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name } func init() { file_capabilities_networking_http_v1alpha_trigger_proto_init() }