From 5303e4026de9cc8442d1c191f80ce705c0db334f Mon Sep 17 00:00:00 2001 From: Indent Bot Date: Mon, 21 Aug 2023 11:49:13 -0400 Subject: [PATCH] sync(api): pull from indent core GitOrigin-RevId: 263cd7b1eecabcec3297df756ed4299029b65e21 --- api/indent/v1/install_api.pb.go | 523 ++++++++++++++++++++++++++----- api/indent/v1/install_api.zap.go | 51 +++ api/indent/v1/petition_api.pb.go | 168 +++++----- pkg/common/petition.go | 21 ++ pkg/oauthutil/login.go | 4 + 5 files changed, 617 insertions(+), 150 deletions(-) diff --git a/api/indent/v1/install_api.pb.go b/api/indent/v1/install_api.pb.go index 682b7b9..e5da357 100644 --- a/api/indent/v1/install_api.pb.go +++ b/api/indent/v1/install_api.pb.go @@ -16,6 +16,7 @@ import ( codes "google.golang.org/grpc/codes" status1 "google.golang.org/grpc/status" emptypb "google.golang.org/protobuf/types/known/emptypb" + _ "google.golang.org/protobuf/types/known/structpb" timestamppb "google.golang.org/protobuf/types/known/timestamppb" math "math" ) @@ -330,6 +331,8 @@ type Install struct { Capabilities *Capabilities `protobuf:"bytes,7,opt,name=capabilities,proto3" json:"capabilities,omitempty"` // Disabled specifies when the Install shouldn't be used. Disabled bool `protobuf:"varint,9,opt,name=disabled,proto3" json:"disabled,omitempty"` + // // User-facing string explaining status (ex: status.Failed: `couldn't read credentials`) + // google.rpc.Status status_explanation = 13; // Status of the install and its current place in the lifecycle: Created, SetupFailed, Active, Disabled, ActionRequired, Failed, Generated Status string `protobuf:"bytes,15,opt,name=status,proto3" json:"status,omitempty"` // LastSuccess stores the last time the Install successfully did a read/write action @@ -666,6 +669,65 @@ func (m *CreateInstallRequest) GetInstall() *Install { return nil } +// Defines an Install to be updated. +type UpdateInstallRequest struct { + // Name of space containing Install. + SpaceName string `protobuf:"bytes,1,opt,name=space_name,json=spaceName,proto3" json:"space_name,omitempty"` + // Name of the Install. + InstallName string `protobuf:"bytes,2,opt,name=install_name,json=installName,proto3" json:"install_name,omitempty"` + // Install with changes to be implemented. + Install *Install `protobuf:"bytes,3,opt,name=install,proto3" json:"install,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateInstallRequest) Reset() { *m = UpdateInstallRequest{} } +func (m *UpdateInstallRequest) String() string { return proto.CompactTextString(m) } +func (*UpdateInstallRequest) ProtoMessage() {} +func (*UpdateInstallRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_71c7e44ca1d1b2a1, []int{10} +} + +func (m *UpdateInstallRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateInstallRequest.Unmarshal(m, b) +} +func (m *UpdateInstallRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateInstallRequest.Marshal(b, m, deterministic) +} +func (m *UpdateInstallRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateInstallRequest.Merge(m, src) +} +func (m *UpdateInstallRequest) XXX_Size() int { + return xxx_messageInfo_UpdateInstallRequest.Size(m) +} +func (m *UpdateInstallRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateInstallRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateInstallRequest proto.InternalMessageInfo + +func (m *UpdateInstallRequest) GetSpaceName() string { + if m != nil { + return m.SpaceName + } + return "" +} + +func (m *UpdateInstallRequest) GetInstallName() string { + if m != nil { + return m.InstallName + } + return "" +} + +func (m *UpdateInstallRequest) GetInstall() *Install { + if m != nil { + return m.Install + } + return nil +} + // Defines an Install to be toggled. type ToggleInstallRequest struct { // Name of space containing Install. @@ -681,7 +743,7 @@ func (m *ToggleInstallRequest) Reset() { *m = ToggleInstallRequest{} } func (m *ToggleInstallRequest) String() string { return proto.CompactTextString(m) } func (*ToggleInstallRequest) ProtoMessage() {} func (*ToggleInstallRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_71c7e44ca1d1b2a1, []int{10} + return fileDescriptor_71c7e44ca1d1b2a1, []int{11} } func (m *ToggleInstallRequest) XXX_Unmarshal(b []byte) error { @@ -731,7 +793,7 @@ func (m *DeleteInstallRequest) Reset() { *m = DeleteInstallRequest{} } func (m *DeleteInstallRequest) String() string { return proto.CompactTextString(m) } func (*DeleteInstallRequest) ProtoMessage() {} func (*DeleteInstallRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_71c7e44ca1d1b2a1, []int{11} + return fileDescriptor_71c7e44ca1d1b2a1, []int{12} } func (m *DeleteInstallRequest) XXX_Unmarshal(b []byte) error { @@ -766,6 +828,184 @@ func (m *DeleteInstallRequest) GetInstallName() string { return "" } +type GetInstallSetupRequest struct { + // Name of space for install. + SpaceName string `protobuf:"bytes,1,opt,name=space_name,json=spaceName,proto3" json:"space_name,omitempty"` + // Name of install + InstallName string `protobuf:"bytes,3,opt,name=install_name,json=installName,proto3" json:"install_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetInstallSetupRequest) Reset() { *m = GetInstallSetupRequest{} } +func (m *GetInstallSetupRequest) String() string { return proto.CompactTextString(m) } +func (*GetInstallSetupRequest) ProtoMessage() {} +func (*GetInstallSetupRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_71c7e44ca1d1b2a1, []int{13} +} + +func (m *GetInstallSetupRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetInstallSetupRequest.Unmarshal(m, b) +} +func (m *GetInstallSetupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetInstallSetupRequest.Marshal(b, m, deterministic) +} +func (m *GetInstallSetupRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetInstallSetupRequest.Merge(m, src) +} +func (m *GetInstallSetupRequest) XXX_Size() int { + return xxx_messageInfo_GetInstallSetupRequest.Size(m) +} +func (m *GetInstallSetupRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetInstallSetupRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetInstallSetupRequest proto.InternalMessageInfo + +func (m *GetInstallSetupRequest) GetSpaceName() string { + if m != nil { + return m.SpaceName + } + return "" +} + +func (m *GetInstallSetupRequest) GetInstallName() string { + if m != nil { + return m.InstallName + } + return "" +} + +type UpdateInstallSetupRequest struct { + // Name of space for install. + SpaceName string `protobuf:"bytes,1,opt,name=space_name,json=spaceName,proto3" json:"space_name,omitempty"` + // Name of install + InstallName string `protobuf:"bytes,3,opt,name=install_name,json=installName,proto3" json:"install_name,omitempty"` + // Form containing setup information for the setup of an integration + Form *Form `protobuf:"bytes,5,opt,name=form,proto3" json:"form,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateInstallSetupRequest) Reset() { *m = UpdateInstallSetupRequest{} } +func (m *UpdateInstallSetupRequest) String() string { return proto.CompactTextString(m) } +func (*UpdateInstallSetupRequest) ProtoMessage() {} +func (*UpdateInstallSetupRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_71c7e44ca1d1b2a1, []int{14} +} + +func (m *UpdateInstallSetupRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateInstallSetupRequest.Unmarshal(m, b) +} +func (m *UpdateInstallSetupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateInstallSetupRequest.Marshal(b, m, deterministic) +} +func (m *UpdateInstallSetupRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateInstallSetupRequest.Merge(m, src) +} +func (m *UpdateInstallSetupRequest) XXX_Size() int { + return xxx_messageInfo_UpdateInstallSetupRequest.Size(m) +} +func (m *UpdateInstallSetupRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateInstallSetupRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateInstallSetupRequest proto.InternalMessageInfo + +func (m *UpdateInstallSetupRequest) GetSpaceName() string { + if m != nil { + return m.SpaceName + } + return "" +} + +func (m *UpdateInstallSetupRequest) GetInstallName() string { + if m != nil { + return m.InstallName + } + return "" +} + +func (m *UpdateInstallSetupRequest) GetForm() *Form { + if m != nil { + return m.Form + } + return nil +} + +type GetInstallSetupResponse struct { + // Form containing setup information for the setup of an integration + Form *Form `protobuf:"bytes,1,opt,name=form,proto3" json:"form,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetInstallSetupResponse) Reset() { *m = GetInstallSetupResponse{} } +func (m *GetInstallSetupResponse) String() string { return proto.CompactTextString(m) } +func (*GetInstallSetupResponse) ProtoMessage() {} +func (*GetInstallSetupResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_71c7e44ca1d1b2a1, []int{15} +} + +func (m *GetInstallSetupResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetInstallSetupResponse.Unmarshal(m, b) +} +func (m *GetInstallSetupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetInstallSetupResponse.Marshal(b, m, deterministic) +} +func (m *GetInstallSetupResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetInstallSetupResponse.Merge(m, src) +} +func (m *GetInstallSetupResponse) XXX_Size() int { + return xxx_messageInfo_GetInstallSetupResponse.Size(m) +} +func (m *GetInstallSetupResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetInstallSetupResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetInstallSetupResponse proto.InternalMessageInfo + +func (m *GetInstallSetupResponse) GetForm() *Form { + if m != nil { + return m.Form + } + return nil +} + +type UpdateInstallSetupResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateInstallSetupResponse) Reset() { *m = UpdateInstallSetupResponse{} } +func (m *UpdateInstallSetupResponse) String() string { return proto.CompactTextString(m) } +func (*UpdateInstallSetupResponse) ProtoMessage() {} +func (*UpdateInstallSetupResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_71c7e44ca1d1b2a1, []int{16} +} + +func (m *UpdateInstallSetupResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateInstallSetupResponse.Unmarshal(m, b) +} +func (m *UpdateInstallSetupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateInstallSetupResponse.Marshal(b, m, deterministic) +} +func (m *UpdateInstallSetupResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateInstallSetupResponse.Merge(m, src) +} +func (m *UpdateInstallSetupResponse) XXX_Size() int { + return xxx_messageInfo_UpdateInstallSetupResponse.Size(m) +} +func (m *UpdateInstallSetupResponse) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateInstallSetupResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateInstallSetupResponse proto.InternalMessageInfo + func init() { proto.RegisterType((*Failure)(nil), "indent.v1.Failure") proto.RegisterType((*CreateFailureRequest)(nil), "indent.v1.CreateFailureRequest") @@ -777,8 +1017,13 @@ func init() { proto.RegisterType((*ListInstallsResponse)(nil), "indent.v1.ListInstallsResponse") proto.RegisterType((*GetInstallRequest)(nil), "indent.v1.GetInstallRequest") proto.RegisterType((*CreateInstallRequest)(nil), "indent.v1.CreateInstallRequest") + proto.RegisterType((*UpdateInstallRequest)(nil), "indent.v1.UpdateInstallRequest") proto.RegisterType((*ToggleInstallRequest)(nil), "indent.v1.ToggleInstallRequest") proto.RegisterType((*DeleteInstallRequest)(nil), "indent.v1.DeleteInstallRequest") + proto.RegisterType((*GetInstallSetupRequest)(nil), "indent.v1.GetInstallSetupRequest") + proto.RegisterType((*UpdateInstallSetupRequest)(nil), "indent.v1.UpdateInstallSetupRequest") + proto.RegisterType((*GetInstallSetupResponse)(nil), "indent.v1.GetInstallSetupResponse") + proto.RegisterType((*UpdateInstallSetupResponse)(nil), "indent.v1.UpdateInstallSetupResponse") } func init() { @@ -786,80 +1031,92 @@ func init() { } var fileDescriptor_71c7e44ca1d1b2a1 = []byte{ - // 1168 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0xcf, 0x6f, 0x1b, 0xc5, - 0x17, 0xd7, 0xda, 0x71, 0x63, 0x8f, 0xe3, 0xe4, 0xdb, 0x69, 0x9a, 0xae, 0x9c, 0x7c, 0xb1, 0xbb, - 0x48, 0xe0, 0xd2, 0xb2, 0x5b, 0x07, 0x89, 0x96, 0x54, 0x14, 0x91, 0x34, 0xa0, 0x54, 0x50, 0x22, - 0x27, 0x54, 0x15, 0x42, 0x5a, 0x4d, 0xd6, 0xaf, 0xd6, 0xaa, 0xeb, 0xdd, 0xed, 0xce, 0x38, 0xa5, - 0x8d, 0x7a, 0x00, 0x21, 0x2e, 0x1c, 0xb9, 0x71, 0xe4, 0xc8, 0x7f, 0x11, 0xc4, 0x89, 0x2b, 0x17, - 0xb8, 0x73, 0x81, 0x3f, 0x21, 0x27, 0xb4, 0xf3, 0x63, 0x3d, 0xf6, 0x6e, 0xea, 0x46, 0x15, 0x91, - 0x2c, 0xd9, 0xef, 0x7d, 0x66, 0x3e, 0xef, 0xbd, 0xfd, 0x7c, 0x66, 0x27, 0x68, 0xd5, 0x0f, 0xfb, - 0x10, 0x32, 0xe7, 0xb0, 0xeb, 0xf8, 0x21, 0x65, 0x24, 0x08, 0x5c, 0x12, 0xfb, 0x76, 0x9c, 0x44, - 0x2c, 0xc2, 0x35, 0x91, 0xb4, 0x0f, 0xbb, 0xcd, 0xb5, 0x41, 0x14, 0x0d, 0x02, 0x70, 0x48, 0xec, - 0x3b, 0x24, 0x0c, 0x23, 0x46, 0x98, 0x1f, 0x85, 0x54, 0x00, 0x9b, 0xab, 0x32, 0xcb, 0x7f, 0x1d, - 0x8c, 0x1e, 0x3a, 0x30, 0x8c, 0xd9, 0x53, 0x99, 0x6c, 0x4d, 0x27, 0x99, 0x3f, 0x04, 0xca, 0xc8, - 0x30, 0x96, 0x80, 0x4b, 0x12, 0x90, 0xc4, 0x9e, 0x43, 0x19, 0x61, 0x23, 0xb5, 0x6d, 0x4b, 0x16, - 0x47, 0x46, 0x7d, 0x9f, 0x97, 0x98, 0x00, 0x8d, 0x46, 0x89, 0x07, 0xd3, 0x00, 0x5e, 0x3d, 0x83, - 0x41, 0xc2, 0xab, 0x1a, 0x77, 0xd0, 0x5c, 0x96, 0x80, 0x20, 0x1a, 0xa4, 0x9f, 0xa9, 0x28, 0x7d, - 0x1c, 0xa4, 0x1f, 0x11, 0xb5, 0xfe, 0x34, 0xd0, 0xfc, 0x47, 0xc4, 0x0f, 0x46, 0x09, 0xe0, 0x2b, - 0x68, 0x6e, 0x08, 0x8c, 0x98, 0x46, 0xdb, 0xe8, 0xd4, 0xd7, 0x2f, 0xda, 0x72, 0x10, 0xbc, 0x10, - 0xfb, 0xb0, 0x6b, 0x7f, 0x0a, 0x8c, 0xf4, 0x38, 0x04, 0x5f, 0x47, 0xe7, 0x44, 0xd1, 0x66, 0x99, - 0x83, 0xb1, 0x2d, 0xda, 0xb1, 0x93, 0xd8, 0xb3, 0xf7, 0x78, 0x66, 0x73, 0xee, 0x8f, 0x5f, 0x5a, - 0x46, 0x4f, 0xe2, 0xf0, 0xfb, 0x68, 0x31, 0x81, 0x80, 0x30, 0xe8, 0xbb, 0x70, 0x08, 0x21, 0xa3, - 0x66, 0xa5, 0x5d, 0xee, 0xd4, 0xd7, 0x57, 0x72, 0x34, 0xdb, 0x69, 0xba, 0xd7, 0x90, 0x68, 0xfe, - 0x8b, 0xe2, 0x75, 0x34, 0x2f, 0x1f, 0x95, 0x39, 0x2f, 0x19, 0xb3, 0xe7, 0x64, 0xef, 0x88, 0x8c, - 0x64, 0x54, 0x40, 0xcb, 0x43, 0xcb, 0x5b, 0x09, 0x10, 0x06, 0xb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xb8, 0x00, 0xcd, 0x36, 0x80, 0x62, 0x72, 0x8e, 0xf4, 0x0b, 0xa5, 0x66, 0x00, 0xc5, 0x9d, - 0x37, 0xc0, 0x4b, 0xd0, 0xcf, 0x34, 0x80, 0xa2, 0xdf, 0x50, 0xd7, 0xe1, 0xcd, 0x7d, 0xd4, 0xf0, - 0xa2, 0xe1, 0x78, 0xaf, 0xcd, 0x25, 0x75, 0x14, 0xc5, 0xfe, 0x6e, 0xfa, 0x40, 0x77, 0x8d, 0x2f, - 0x70, 0xf6, 0x0f, 0xcc, 0x2d, 0xf1, 0xed, 0xb0, 0xfb, 0x53, 0xa9, 0xbc, 0xf3, 0xe0, 0xc1, 0xcf, - 0xa5, 0xda, 0x8e, 0x58, 0x78, 0xbf, 0xfb, 0x9b, 0xfa, 0xfe, 0xe5, 0xfd, 0xee, 0xc1, 0x39, 0xae, - 0x85, 0x77, 0xfe, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x8d, 0x02, 0x6a, 0xbc, 0xb9, 0x0d, 0x00, 0x00, + // 1348 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0xcf, 0x6f, 0x1b, 0xc5, + 0x17, 0xd7, 0xc6, 0x71, 0x13, 0xbf, 0xc4, 0xf1, 0xb7, 0xd3, 0x34, 0xdd, 0xba, 0xf9, 0x62, 0x77, + 0xcb, 0x8f, 0x94, 0x16, 0x6f, 0x1d, 0x04, 0x2d, 0xa9, 0x5a, 0x20, 0x69, 0x41, 0xa9, 0xa0, 0x44, + 0x4e, 0x5a, 0x55, 0x08, 0x69, 0x35, 0x59, 0x4f, 0xac, 0x55, 0xd7, 0xbb, 0xdb, 0x9d, 0x71, 0x4a, + 0x5b, 0xf5, 0x00, 0x42, 0x5c, 0x90, 0x38, 0xc0, 0x01, 0x89, 0x23, 0x07, 0x0e, 0xfc, 0x17, 0x41, + 0x88, 0x03, 0x57, 0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 0xe2, 0xf0, 0xae, 0x1c, 0x2b, 0x51, + 0xbe, 0xd4, 0x65, 0x94, 0x98, 0x7e, 0x51, 0xa9, 0x17, 0xdc, 0xba, 0xc7, 0x2b, 0x51, 0x22, 0x99, + 0x8f, 0xd4, 0xb7, 0x18, 0x45, 0x89, 0x12, 0x3b, 0xaf, 0xc4, 0x67, 0x80, 0x1f, 0xab, 0x44, 0x09, + 0xbf, 0x26, 0xdf, 0xc1, 0xd0, 0x77, 0x1a, 0xd4, 0x32, 0x43, 0x16, 0x9d, 0x2e, 0x9c, 0x40, 0xea, + 0x69, 0x50, 0x37, 0x9e, 0x16, 0x22, 0xca, 0x7e, 0x85, 0xb3, 0xb9, 0x88, 0xde, 0x98, 0xb0, 0x01, + 0x4c, 0xca, 0x59, 0xfc, 0xa8, 0x01, 0xca, 0x8f, 0x6f, 0xf4, 0xe2, 0xa8, 0x41, 0x91, 0xe2, 0xf7, + 0xd2, 0x98, 0x28, 0x41, 0x71, 0x83, 0x53, 0xbc, 0x62, 0xfc, 0x37, 0x8a, 0x6b, 0xfc, 0x98, 0x59, + 0xdf, 0x81, 0xaa, 0xed, 0xf7, 0x13, 0xc0, 0xf5, 0x9a, 0x3c, 0x56, 0x02, 0x67, 0x2b, 0xd2, 0xc4, + 0x96, 0xf6, 0x31, 0x1a, 0xfe, 0x1b, 0xe1, 0x72, 0xfc, 0x6d, 0xbf, 0xfd, 0xc3, 0x54, 0x69, 0xf3, + 0xce, 0x9d, 0x9f, 0xa6, 0x2a, 0x9b, 0xf1, 0xc2, 0xdb, 0xed, 0xdf, 0xe4, 0xf7, 0x4f, 0x6e, 0xb7, + 0x77, 0x8f, 0x70, 0x39, 0xbd, 0xfe, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x7c, 0xff, 0x14, 0xd9, + 0xaa, 0x11, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -880,6 +1137,8 @@ type InstallAPIClient interface { GetInstall(ctx context.Context, in *GetInstallRequest, opts ...grpc.CallOption) (*Install, error) // Create a new Install in given Space. CreateInstall(ctx context.Context, in *CreateInstallRequest, opts ...grpc.CallOption) (*Install, error) + // Update an Install in given Space. + UpdateInstall(ctx context.Context, in *UpdateInstallRequest, opts ...grpc.CallOption) (*Install, error) // Enable an Install. EnableInstall(ctx context.Context, in *ToggleInstallRequest, opts ...grpc.CallOption) (*Install, error) // Disable an Install. @@ -892,6 +1151,10 @@ type InstallAPIClient interface { GetFailure(ctx context.Context, in *GetFailureRequest, opts ...grpc.CallOption) (*Failure, error) // Create Failure. CreateFailure(ctx context.Context, in *CreateFailureRequest, opts ...grpc.CallOption) (*Failure, error) + // Retrieve an install's integration's Setup form. + GetInstallSetup(ctx context.Context, in *GetInstallSetupRequest, opts ...grpc.CallOption) (*GetInstallSetupResponse, error) + // Post an install's Setup form. + UpdateInstallSetup(ctx context.Context, in *UpdateInstallSetupRequest, opts ...grpc.CallOption) (*UpdateInstallSetupResponse, error) } type installAPIClient struct { @@ -929,6 +1192,15 @@ func (c *installAPIClient) CreateInstall(ctx context.Context, in *CreateInstallR return out, nil } +func (c *installAPIClient) UpdateInstall(ctx context.Context, in *UpdateInstallRequest, opts ...grpc.CallOption) (*Install, error) { + out := new(Install) + err := c.cc.Invoke(ctx, "/indent.v1.InstallAPI/UpdateInstall", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *installAPIClient) EnableInstall(ctx context.Context, in *ToggleInstallRequest, opts ...grpc.CallOption) (*Install, error) { out := new(Install) err := c.cc.Invoke(ctx, "/indent.v1.InstallAPI/EnableInstall", in, out, opts...) @@ -983,6 +1255,24 @@ func (c *installAPIClient) CreateFailure(ctx context.Context, in *CreateFailureR return out, nil } +func (c *installAPIClient) GetInstallSetup(ctx context.Context, in *GetInstallSetupRequest, opts ...grpc.CallOption) (*GetInstallSetupResponse, error) { + out := new(GetInstallSetupResponse) + err := c.cc.Invoke(ctx, "/indent.v1.InstallAPI/GetInstallSetup", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *installAPIClient) UpdateInstallSetup(ctx context.Context, in *UpdateInstallSetupRequest, opts ...grpc.CallOption) (*UpdateInstallSetupResponse, error) { + out := new(UpdateInstallSetupResponse) + err := c.cc.Invoke(ctx, "/indent.v1.InstallAPI/UpdateInstallSetup", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // InstallAPIServer is the server API for InstallAPI service. type InstallAPIServer interface { // List Installs that have been added to the space. @@ -991,6 +1281,8 @@ type InstallAPIServer interface { GetInstall(context.Context, *GetInstallRequest) (*Install, error) // Create a new Install in given Space. CreateInstall(context.Context, *CreateInstallRequest) (*Install, error) + // Update an Install in given Space. + UpdateInstall(context.Context, *UpdateInstallRequest) (*Install, error) // Enable an Install. EnableInstall(context.Context, *ToggleInstallRequest) (*Install, error) // Disable an Install. @@ -1003,6 +1295,10 @@ type InstallAPIServer interface { GetFailure(context.Context, *GetFailureRequest) (*Failure, error) // Create Failure. CreateFailure(context.Context, *CreateFailureRequest) (*Failure, error) + // Retrieve an install's integration's Setup form. + GetInstallSetup(context.Context, *GetInstallSetupRequest) (*GetInstallSetupResponse, error) + // Post an install's Setup form. + UpdateInstallSetup(context.Context, *UpdateInstallSetupRequest) (*UpdateInstallSetupResponse, error) } // UnimplementedInstallAPIServer can be embedded to have forward compatible implementations. @@ -1018,6 +1314,9 @@ func (*UnimplementedInstallAPIServer) GetInstall(ctx context.Context, req *GetIn func (*UnimplementedInstallAPIServer) CreateInstall(ctx context.Context, req *CreateInstallRequest) (*Install, error) { return nil, status1.Errorf(codes.Unimplemented, "method CreateInstall not implemented") } +func (*UnimplementedInstallAPIServer) UpdateInstall(ctx context.Context, req *UpdateInstallRequest) (*Install, error) { + return nil, status1.Errorf(codes.Unimplemented, "method UpdateInstall not implemented") +} func (*UnimplementedInstallAPIServer) EnableInstall(ctx context.Context, req *ToggleInstallRequest) (*Install, error) { return nil, status1.Errorf(codes.Unimplemented, "method EnableInstall not implemented") } @@ -1036,6 +1335,12 @@ func (*UnimplementedInstallAPIServer) GetFailure(ctx context.Context, req *GetFa func (*UnimplementedInstallAPIServer) CreateFailure(ctx context.Context, req *CreateFailureRequest) (*Failure, error) { return nil, status1.Errorf(codes.Unimplemented, "method CreateFailure not implemented") } +func (*UnimplementedInstallAPIServer) GetInstallSetup(ctx context.Context, req *GetInstallSetupRequest) (*GetInstallSetupResponse, error) { + return nil, status1.Errorf(codes.Unimplemented, "method GetInstallSetup not implemented") +} +func (*UnimplementedInstallAPIServer) UpdateInstallSetup(ctx context.Context, req *UpdateInstallSetupRequest) (*UpdateInstallSetupResponse, error) { + return nil, status1.Errorf(codes.Unimplemented, "method UpdateInstallSetup not implemented") +} func RegisterInstallAPIServer(s *grpc.Server, srv InstallAPIServer) { s.RegisterService(&_InstallAPI_serviceDesc, srv) @@ -1095,6 +1400,24 @@ func _InstallAPI_CreateInstall_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } +func _InstallAPI_UpdateInstall_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateInstallRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InstallAPIServer).UpdateInstall(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/indent.v1.InstallAPI/UpdateInstall", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InstallAPIServer).UpdateInstall(ctx, req.(*UpdateInstallRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _InstallAPI_EnableInstall_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ToggleInstallRequest) if err := dec(in); err != nil { @@ -1203,6 +1526,42 @@ func _InstallAPI_CreateFailure_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } +func _InstallAPI_GetInstallSetup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetInstallSetupRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InstallAPIServer).GetInstallSetup(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/indent.v1.InstallAPI/GetInstallSetup", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InstallAPIServer).GetInstallSetup(ctx, req.(*GetInstallSetupRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _InstallAPI_UpdateInstallSetup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateInstallSetupRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InstallAPIServer).UpdateInstallSetup(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/indent.v1.InstallAPI/UpdateInstallSetup", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InstallAPIServer).UpdateInstallSetup(ctx, req.(*UpdateInstallSetupRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _InstallAPI_serviceDesc = grpc.ServiceDesc{ ServiceName: "indent.v1.InstallAPI", HandlerType: (*InstallAPIServer)(nil), @@ -1219,6 +1578,10 @@ var _InstallAPI_serviceDesc = grpc.ServiceDesc{ MethodName: "CreateInstall", Handler: _InstallAPI_CreateInstall_Handler, }, + { + MethodName: "UpdateInstall", + Handler: _InstallAPI_UpdateInstall_Handler, + }, { MethodName: "EnableInstall", Handler: _InstallAPI_EnableInstall_Handler, @@ -1243,6 +1606,14 @@ var _InstallAPI_serviceDesc = grpc.ServiceDesc{ MethodName: "CreateFailure", Handler: _InstallAPI_CreateFailure_Handler, }, + { + MethodName: "GetInstallSetup", + Handler: _InstallAPI_GetInstallSetup_Handler, + }, + { + MethodName: "UpdateInstallSetup", + Handler: _InstallAPI_UpdateInstallSetup_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "indent/v1/install_api.proto", diff --git a/api/indent/v1/install_api.zap.go b/api/indent/v1/install_api.zap.go index c615b49..9ff5f3b 100644 --- a/api/indent/v1/install_api.zap.go +++ b/api/indent/v1/install_api.zap.go @@ -167,6 +167,23 @@ func (m *GetInstallRequest) MarshalLogObject(oe zapcore.ObjectEncoder) error { return nil } +func (m *UpdateInstallRequest) MarshalLogObject(oe zapcore.ObjectEncoder) error { + var keyName string + _ = keyName + + if m == nil { + return nil + } + + keyName = "SpaceName" // field spaceName = 1 + oe.AddString(keyName, m.SpaceName) + + keyName = "InstallName" // field installName = 2 + oe.AddString(keyName, m.InstallName) + + return nil +} + func (m *ToggleInstallRequest) MarshalLogObject(oe zapcore.ObjectEncoder) error { var keyName string _ = keyName @@ -200,3 +217,37 @@ func (m *DeleteInstallRequest) MarshalLogObject(oe zapcore.ObjectEncoder) error return nil } + +func (m *GetInstallSetupRequest) MarshalLogObject(oe zapcore.ObjectEncoder) error { + var keyName string + _ = keyName + + if m == nil { + return nil + } + + keyName = "SpaceName" // field spaceName = 1 + oe.AddString(keyName, m.SpaceName) + + keyName = "InstallName" // field installName = 3 + oe.AddString(keyName, m.InstallName) + + return nil +} + +func (m *UpdateInstallSetupRequest) MarshalLogObject(oe zapcore.ObjectEncoder) error { + var keyName string + _ = keyName + + if m == nil { + return nil + } + + keyName = "SpaceName" // field spaceName = 1 + oe.AddString(keyName, m.SpaceName) + + keyName = "InstallName" // field installName = 3 + oe.AddString(keyName, m.InstallName) + + return nil +} diff --git a/api/indent/v1/petition_api.pb.go b/api/indent/v1/petition_api.pb.go index 3c3fb2f..0805285 100644 --- a/api/indent/v1/petition_api.pb.go +++ b/api/indent/v1/petition_api.pb.go @@ -34,12 +34,16 @@ type ListPetitionsRequest struct { SpaceName string `protobuf:"bytes,1,opt,name=space_name,json=spaceName,proto3" json:"space_name,omitempty"` // Among constrains listed petitions by name. Among []string `protobuf:"bytes,4,rep,name=among,proto3" json:"among,omitempty"` - // LabelSelector specifies whcih petitions should be returned. + // Full returns Petitions with all fields populated. + Full bool `protobuf:"varint,7,opt,name=full,proto3" json:"full,omitempty"` + // LabelSelector specifies which petitions should be returned. LabelSelector string `protobuf:"bytes,10,opt,name=label_selector,json=labelSelector,proto3" json:"label_selector,omitempty"` // Max number of Petitions to be returned. PageSize int32 `protobuf:"varint,50,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // Token for current page position for this list of Petitions. - PageToken string `protobuf:"bytes,55,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + PageToken string `protobuf:"bytes,55,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // Ascending sorts petitions by timestamp + Ascending bool `protobuf:"varint,60,opt,name=ascending,proto3" json:"ascending,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -84,6 +88,13 @@ func (m *ListPetitionsRequest) GetAmong() []string { return nil } +func (m *ListPetitionsRequest) GetFull() bool { + if m != nil { + return m.Full + } + return false +} + func (m *ListPetitionsRequest) GetLabelSelector() string { if m != nil { return m.LabelSelector @@ -105,6 +116,13 @@ func (m *ListPetitionsRequest) GetPageToken() string { return "" } +func (m *ListPetitionsRequest) GetAscending() bool { + if m != nil { + return m.Ascending + } + return false +} + type ListPetitionsResponse struct { // Paginated list of Petitions in a space. Petitions []*Petition `protobuf:"bytes,1,rep,name=petitions,proto3" json:"petitions,omitempty"` @@ -931,79 +949,81 @@ func init() { } var fileDescriptor_64a7ea54a08f9769 = []byte{ - // 1150 bytes of a gzipped FileDescriptorProto + // 1178 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0xcf, 0x6f, 0x1b, 0x45, - 0x14, 0xd6, 0x24, 0x71, 0xea, 0x7d, 0xae, 0x93, 0x74, 0xe2, 0x94, 0xb5, 0xc9, 0x0f, 0x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0x13, 0x90, 0xf1, 0x12, 0x41, 0x39, 0xd9, 0x8c, 0x37, 0x1c, 0x62, - 0x77, 0x87, 0x4c, 0x90, 0xe2, 0x99, 0x37, 0xf3, 0x5a, 0x46, 0x9f, 0x18, 0x1c, 0x28, 0xe5, 0x37, - 0x3d, 0x50, 0x38, 0x54, 0xb2, 0x62, 0x50, 0x53, 0xa5, 0x0e, 0xe3, 0x2d, 0x81, 0xa8, 0x91, 0x32, - 0xac, 0x8a, 0x8a, 0x75, 0xee, 0x91, 0xf2, 0x1c, 0xde, 0x4a, 0x8c, 0x14, 0xe1, 0xf4, 0xb2, 0x1d, - 0x2d, 0x97, 0x91, 0xb7, 0x39, 0x00, 0x21, 0x48, 0x32, 0x4a, 0xd2, 0x86, 0x40, 0x44, 0xc3, 0xfb, - 0x01, 0x41, 0x25, 0x3d, 0x76, 0xde, 0xb8, 0x82, 0x15, 0xc8, 0x09, 0x7f, 0xaa, 0xbd, 0x0f, 0xcb, - 0x9b, 0x24, 0xad, 0xbe, 0xca, 0x43, 0x21, 0x92, 0x72, 0x6f, 0x77, 0x1b, 0x9f, 0x40, 0x31, 0x35, - 0xe5, 0xf1, 0x42, 0xe2, 0x16, 0x64, 0xbd, 0x57, 0x2a, 0xd5, 0xe1, 0x04, 0x59, 0x4a, 0xe3, 0xe6, - 0x8b, 0x7f, 0xfe, 0xfd, 0x69, 0x64, 0x11, 0xbf, 0x13, 0xbe, 0x8e, 0x44, 0x34, 0xcc, 0x3c, 0xee, - 0xc7, 0x79, 0x62, 0xf6, 0x1f, 0x06, 0xcf, 0xa1, 0x90, 0xa8, 0x0e, 0x9e, 0x4b, 0xd8, 0x1e, 0x7c, - 0x08, 0x54, 0xb2, 0x86, 0x82, 0xf1, 0x81, 0xf0, 0x76, 0x0b, 0x37, 0xce, 0xf4, 0x66, 0x1e, 0xa7, - 0xb2, 0x79, 0x82, 0x7b, 0x30, 0x91, 0x2e, 0x0e, 0x4e, 0x06, 0x97, 0xf9, 0x5c, 0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x19, 0xa3, + 0x6d, 0x64, 0xfa, 0xbc, 0xd8, 0x17, 0x8f, 0x76, 0x83, 0xba, 0x2e, 0xb6, 0x76, 0x24, 0xc1, 0xea, + 0x31, 0x8d, 0x2d, 0x28, 0x24, 0x96, 0x88, 0x0e, 0x57, 0x9a, 0x8f, 0x43, 0xc4, 0x51, 0xfd, 0x39, + 0x7a, 0x0d, 0xbb, 0x2b, 0xb7, 0x3b, 0xc8, 0x38, 0xed, 0xf8, 0xe2, 0x50, 0xe7, 0xac, 0x3e, 0x60, + 0xac, 0xc0, 0x44, 0x32, 0x34, 0x52, 0x86, 0x8c, 0xff, 0x98, 0x32, 0x94, 0x76, 0xa2, 0x9c, 0x09, + 0xc8, 0x78, 0xa5, 0x41, 0x29, 0xde, 0x8c, 0x37, 0x1c, 0x6a, 0x77, 0x86, 0xcc, 0x9c, 0xc2, 0x99, + 0x5f, 0xe6, 0xb5, 0x94, 0x3e, 0x31, 0x38, 0x6e, 0x4a, 0x6f, 0x78, 0xdc, 0x18, 0x1c, 0xca, 0x69, + 0x31, 0xa8, 0xa9, 0x52, 0x83, 0xf1, 0xa6, 0x40, 0xd4, 0x48, 0x19, 0x56, 0x45, 0xc5, 0x3a, 0xf7, + 0x48, 0x79, 0x01, 0x6f, 0xc5, 0x46, 0x8a, 0x70, 0x7a, 0xd9, 0x8e, 0x96, 0x49, 0xc9, 0xdb, 0x1c, + 0x80, 0x10, 0x24, 0x19, 0x45, 0x69, 0x43, 0x20, 0xa2, 0xe1, 0x7d, 0xaf, 0x41, 0x39, 0x39, 0x76, + 0xde, 0xb8, 0x82, 0x15, 0xc8, 0x08, 0x7f, 0xaa, 0xbd, 0x0f, 0xcb, 0x9b, 0x24, 0xad, 0xbe, 0xce, + 0x42, 0x3e, 0x92, 0x72, 0x7f, 0x77, 0x9b, 0x9c, 0x40, 0x21, 0x31, 0xe5, 0xc9, 0x42, 0xec, 0x2b, + 0x48, 0xbb, 0xe1, 0x94, 0x2b, 0xc3, 0x09,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 0x3f, 0x68, 0x90, + 0x97, 0xe7, 0x53, 0x4a, 0x5b, 0x1a, 0x7a, 0x6e, 0xcf, 0xa5, 0x6e, 0x43, 0xa8, 0xbb, 0x67, 0x5c, + 0x3a, 0x51, 0x6b, 0xda, 0xf2, 0xfa, 0x43, 0x28, 0x34, 0xbd, 0x4e, 0x5f, 0xc8, 0xfa, 0x54, 0xaf, + 0xd1, 0xf8, 0xf6, 0x6e, 0x78, 0x29, 0xd9, 0xd5, 0xbe, 0x20, 0xbd, 0x7f, 0x5a, 0x1f, 0xca, 0xa7, + 0xa3, 0xfa, 0xaf, 0x23, 0xa3, 0xdb, 0xfb, 0xfb, 0xbf, 0x8d, 0xe4, 0xb6, 0xe5, 0xce, 0x47, 0xf5, + 0x3f, 0xa3, 0xe7, 0xaf, 0x1e, 0xd5, 0x0f, 0xc6, 0xc5, 0x7d, 0xe6, 0xd6, 0xbf, 0x01, 0x00, 0x00, + 0xff, 0xff, 0x34, 0x23, 0x56, 0x95, 0x42, 0x0e, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/pkg/common/petition.go b/pkg/common/petition.go index abd4731..4134f2c 100644 --- a/pkg/common/petition.go +++ b/pkg/common/petition.go @@ -1,10 +1,24 @@ package common +import ( + "time" +) + const ( // MinLenReason is the shortest length accepted for a reason MinLenReason = 5 ) +const ( + // KindPetition is the kind representing a Petition. + KindPetition = "indent.v1.Petition" +) + +const ( + // TimeoutPetitionList is the maximum time to wait for listing petitions. + TimeoutPetitionList = 9 * time.Second +) + const ( // PetitionStateOpen denotes the "open" petition state. See [docs](https://indent.dev/docs/petitions#petition-phases). PetitionStateOpen = "open" @@ -15,3 +29,10 @@ const ( // PetitionStateClosed denotes the "closed" petition state. See [docs](https://indent.dev/docs/petitions#petition-phases). PetitionStateClosed = "closed" ) + +const ( + // LabelPetitionReplacesID is the label containing the petition that a given petition replaces + LabelPetitionReplacesID = "PetitionReplaces" + // LabelPetitionReplacedByID is the label containing the petition that a given petition was replaced by + LabelPetitionReplacedByID = "PetitionReplacedBy" +) diff --git a/pkg/oauthutil/login.go b/pkg/oauthutil/login.go index 0105765..84bd91e 100644 --- a/pkg/oauthutil/login.go +++ b/pkg/oauthutil/login.go @@ -26,6 +26,7 @@ type LoginOptions struct { OAuth *oauth2.Config NoPKCE bool NoRefreshToken bool + NoState bool } // NewLoginOptions returns LoginOptions with defaults set. @@ -47,6 +48,9 @@ func Login(opts *LoginOptions) (code string, verifier *PKCEVerifier, err error) // setup handler for specified state state := rand.Hex(common.StateLen) + if opts.NoState { + state = "" + } handler, codeChan := newLoginHandler(state) // start server