From 86202fc8fa6674b0837867e5417ee69b0b18e68d Mon Sep 17 00:00:00 2001 From: Indent Bot Date: Mon, 22 Jan 2024 08:32:02 -0500 Subject: [PATCH] sync(api): pull from indent core GitOrigin-RevId: 5deedf31517f8e4698718bdfe545dcc785dc3c1c --- api/indent/v1/account_api.pb.go | 337 ++++++++++++++++++++++---------- pkg/common/slack.go | 5 + 2 files changed, 244 insertions(+), 98 deletions(-) diff --git a/api/indent/v1/account_api.pb.go b/api/indent/v1/account_api.pb.go index 2572b63..47a8b01 100644 --- a/api/indent/v1/account_api.pb.go +++ b/api/indent/v1/account_api.pb.go @@ -623,6 +623,64 @@ func (m *Policy) GetBindings() []*Binding { return nil } +type ChangeRoleRequest struct { + // Resource whose Policy is being changed. + Resource string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` + // Role to be added or removed. + Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"` + // User added or removed from role. + User *v1.Resource `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ChangeRoleRequest) Reset() { *m = ChangeRoleRequest{} } +func (m *ChangeRoleRequest) String() string { return proto.CompactTextString(m) } +func (*ChangeRoleRequest) ProtoMessage() {} +func (*ChangeRoleRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_88e2c317f0525db1, []int{13} +} + +func (m *ChangeRoleRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ChangeRoleRequest.Unmarshal(m, b) +} +func (m *ChangeRoleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ChangeRoleRequest.Marshal(b, m, deterministic) +} +func (m *ChangeRoleRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChangeRoleRequest.Merge(m, src) +} +func (m *ChangeRoleRequest) XXX_Size() int { + return xxx_messageInfo_ChangeRoleRequest.Size(m) +} +func (m *ChangeRoleRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ChangeRoleRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ChangeRoleRequest proto.InternalMessageInfo + +func (m *ChangeRoleRequest) GetResource() string { + if m != nil { + return m.Resource + } + return "" +} + +func (m *ChangeRoleRequest) GetRole() string { + if m != nil { + return m.Role + } + return "" +} + +func (m *ChangeRoleRequest) GetUser() *v1.Resource { + if m != nil { + return m.User + } + return nil +} + type ListServiceAccountsRequest struct { SpaceName string `protobuf:"bytes,1,opt,name=space_name,json=spaceName,proto3" json:"space_name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -634,7 +692,7 @@ func (m *ListServiceAccountsRequest) Reset() { *m = ListServiceAccountsR func (m *ListServiceAccountsRequest) String() string { return proto.CompactTextString(m) } func (*ListServiceAccountsRequest) ProtoMessage() {} func (*ListServiceAccountsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_88e2c317f0525db1, []int{13} + return fileDescriptor_88e2c317f0525db1, []int{14} } func (m *ListServiceAccountsRequest) XXX_Unmarshal(b []byte) error { @@ -673,7 +731,7 @@ func (m *ListServiceAccountsResponse) Reset() { *m = ListServiceAccounts func (m *ListServiceAccountsResponse) String() string { return proto.CompactTextString(m) } func (*ListServiceAccountsResponse) ProtoMessage() {} func (*ListServiceAccountsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_88e2c317f0525db1, []int{14} + return fileDescriptor_88e2c317f0525db1, []int{15} } func (m *ListServiceAccountsResponse) XXX_Unmarshal(b []byte) error { @@ -713,7 +771,7 @@ func (m *GetServiceAccountRequest) Reset() { *m = GetServiceAccountReque func (m *GetServiceAccountRequest) String() string { return proto.CompactTextString(m) } func (*GetServiceAccountRequest) ProtoMessage() {} func (*GetServiceAccountRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_88e2c317f0525db1, []int{15} + return fileDescriptor_88e2c317f0525db1, []int{16} } func (m *GetServiceAccountRequest) XXX_Unmarshal(b []byte) error { @@ -761,7 +819,7 @@ func (m *CreateServiceAccountRequest) Reset() { *m = CreateServiceAccoun func (m *CreateServiceAccountRequest) String() string { return proto.CompactTextString(m) } func (*CreateServiceAccountRequest) ProtoMessage() {} func (*CreateServiceAccountRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_88e2c317f0525db1, []int{16} + return fileDescriptor_88e2c317f0525db1, []int{17} } func (m *CreateServiceAccountRequest) XXX_Unmarshal(b []byte) error { @@ -816,7 +874,7 @@ func (m *UpdateServiceAccountRequest) Reset() { *m = UpdateServiceAccoun func (m *UpdateServiceAccountRequest) String() string { return proto.CompactTextString(m) } func (*UpdateServiceAccountRequest) ProtoMessage() {} func (*UpdateServiceAccountRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_88e2c317f0525db1, []int{17} + return fileDescriptor_88e2c317f0525db1, []int{18} } func (m *UpdateServiceAccountRequest) XXX_Unmarshal(b []byte) error { @@ -870,7 +928,7 @@ func (m *DeleteServiceAccountRequest) Reset() { *m = DeleteServiceAccoun func (m *DeleteServiceAccountRequest) String() string { return proto.CompactTextString(m) } func (*DeleteServiceAccountRequest) ProtoMessage() {} func (*DeleteServiceAccountRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_88e2c317f0525db1, []int{18} + return fileDescriptor_88e2c317f0525db1, []int{19} } func (m *DeleteServiceAccountRequest) XXX_Unmarshal(b []byte) error { @@ -921,7 +979,7 @@ func (m *ServiceAccount) Reset() { *m = ServiceAccount{} } func (m *ServiceAccount) String() string { return proto.CompactTextString(m) } func (*ServiceAccount) ProtoMessage() {} func (*ServiceAccount) Descriptor() ([]byte, []int) { - return fileDescriptor_88e2c317f0525db1, []int{19} + return fileDescriptor_88e2c317f0525db1, []int{20} } func (m *ServiceAccount) XXX_Unmarshal(b []byte) error { @@ -976,7 +1034,7 @@ func (m *ListTokensRequest) Reset() { *m = ListTokensRequest{} } func (m *ListTokensRequest) String() string { return proto.CompactTextString(m) } func (*ListTokensRequest) ProtoMessage() {} func (*ListTokensRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_88e2c317f0525db1, []int{20} + return fileDescriptor_88e2c317f0525db1, []int{21} } func (m *ListTokensRequest) XXX_Unmarshal(b []byte) error { @@ -1029,7 +1087,7 @@ func (m *ListTokensResponse) Reset() { *m = ListTokensResponse{} } func (m *ListTokensResponse) String() string { return proto.CompactTextString(m) } func (*ListTokensResponse) ProtoMessage() {} func (*ListTokensResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_88e2c317f0525db1, []int{21} + return fileDescriptor_88e2c317f0525db1, []int{22} } func (m *ListTokensResponse) XXX_Unmarshal(b []byte) error { @@ -1072,7 +1130,7 @@ func (m *CreateTokenRequest) Reset() { *m = CreateTokenRequest{} } func (m *CreateTokenRequest) String() string { return proto.CompactTextString(m) } func (*CreateTokenRequest) ProtoMessage() {} func (*CreateTokenRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_88e2c317f0525db1, []int{22} + return fileDescriptor_88e2c317f0525db1, []int{23} } func (m *CreateTokenRequest) XXX_Unmarshal(b []byte) error { @@ -1141,7 +1199,7 @@ func (m *RevokeTokenRequest) Reset() { *m = RevokeTokenRequest{} } func (m *RevokeTokenRequest) String() string { return proto.CompactTextString(m) } func (*RevokeTokenRequest) ProtoMessage() {} func (*RevokeTokenRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_88e2c317f0525db1, []int{23} + return fileDescriptor_88e2c317f0525db1, []int{24} } func (m *RevokeTokenRequest) XXX_Unmarshal(b []byte) error { @@ -1197,6 +1255,7 @@ func init() { proto.RegisterType((*SetPolicyRequest)(nil), "indent.v1.SetPolicyRequest") proto.RegisterType((*GetPolicyRequest)(nil), "indent.v1.GetPolicyRequest") proto.RegisterType((*Policy)(nil), "indent.v1.Policy") + proto.RegisterType((*ChangeRoleRequest)(nil), "indent.v1.ChangeRoleRequest") proto.RegisterType((*ListServiceAccountsRequest)(nil), "indent.v1.ListServiceAccountsRequest") proto.RegisterType((*ListServiceAccountsResponse)(nil), "indent.v1.ListServiceAccountsResponse") proto.RegisterType((*GetServiceAccountRequest)(nil), "indent.v1.GetServiceAccountRequest") @@ -1215,93 +1274,99 @@ func init() { } var fileDescriptor_88e2c317f0525db1 = []byte{ - // 1373 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0x4f, 0x6f, 0x1b, 0x45, - 0x14, 0xd7, 0x3a, 0x76, 0x6a, 0x3f, 0xb7, 0x24, 0x1d, 0xb9, 0xed, 0x66, 0x9d, 0xd6, 0xee, 0x04, - 0x82, 0x1b, 0x55, 0x76, 0xe3, 0xaa, 0x02, 0xda, 0xaa, 0x52, 0x4d, 0x91, 0x09, 0x82, 0x36, 0x6c, - 0xda, 0xaa, 0xe5, 0x8f, 0xac, 0xb5, 0x3d, 0x98, 0xa5, 0xf6, 0xee, 0xc6, 0xb3, 0x76, 0x71, 0xa3, - 0x5c, 0xc2, 0x11, 0x71, 0x2a, 0x42, 0x02, 0x21, 0x55, 0xea, 0x91, 0x6f, 0xc0, 0x31, 0x39, 0x72, - 0xe5, 0xc2, 0x07, 0xe0, 0xc4, 0x47, 0xe0, 0x84, 0x76, 0x66, 0xd6, 0x9e, 0xf5, 0xae, 0x1d, 0x87, - 0x28, 0x95, 0xac, 0xee, 0xcc, 0xbc, 0x3f, 0xbf, 0x79, 0xef, 0xcd, 0xbc, 0xdf, 0x04, 0xb2, 0xa6, - 0xd5, 0x24, 0x96, 0x5b, 0xea, 0xaf, 0x97, 0x8c, 0x46, 0xc3, 0xee, 0x59, 0x6e, 0xcd, 0x70, 0xcc, - 0xa2, 0xd3, 0xb5, 0x5d, 0x1b, 0xa5, 0xf8, 0x62, 0xb1, 0xbf, 0xae, 0x2d, 0xb7, 0x6c, 0xbb, 0xd5, - 0x26, 0x25, 0xc3, 0x31, 0x4b, 0x86, 0x65, 0xd9, 0xae, 0xe1, 0x9a, 0xb6, 0x45, 0xb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xd2, 0x24, 0x40, 0xbc, 0xeb, 0x23, 0xd3, 0xbf, 0xf7, 0x99, - 0x7e, 0xc4, 0xbd, 0x2f, 0x77, 0x54, 0x2d, 0xc4, 0x1e, 0xf0, 0x15, 0xe6, 0x67, 0x05, 0x1f, 0xe2, - 0xc7, 0x0b, 0xbe, 0x0b, 0x69, 0xa9, 0x49, 0x07, 0x5c, 0x85, 0x9b, 0xf7, 0xc4, 0x48, 0x8b, 0xcb, - 0x65, 0x6d, 0x75, 0xba, 0xc3, 0xd2, 0x0e, 0xfb, 0x7f, 0xb7, 0xf2, 0x10, 0xce, 0x34, 0xec, 0xce, - 0xc8, 0x57, 0x65, 0xc1, 0xef, 0xd7, 0x8e, 0xb9, 0xe9, 0x99, 0xde, 0x54, 0x3e, 0x43, 0xc3, 0xbf, - 0xad, 0xdc, 0xe2, 0x5f, 0xfd, 0xf5, 0xd7, 0xb1, 0xb9, 0x8d, 0x27, 0x4f, 0x7e, 0x8b, 0xa5, 0x36, - 0xb8, 0xe2, 0xe3, 0xf5, 0x3f, 0xfc, 0xef, 0x2f, 0x1e, 0xaf, 0xd7, 0xe7, 0x19, 0xaa, 0xeb, 0xff, - 0x05, 0x00, 0x00, 0xff, 0xff, 0x59, 0xbe, 0x02, 0x4b, 0x46, 0x12, 0x00, 0x00, + // 1457 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0x4f, 0x6f, 0x13, 0x47, + 0x14, 0xd7, 0x3a, 0x76, 0xb0, 0x9f, 0x81, 0x24, 0x23, 0x03, 0xce, 0x3a, 0xe0, 0x30, 0xa1, 0x69, + 0x88, 0xa8, 0x4d, 0x8c, 0x50, 0x5b, 0x40, 0x48, 0x31, 0xb4, 0x69, 0xaa, 0x16, 0xd2, 0x4d, 0x40, + 0xd0, 0x3f, 0xb2, 0x36, 0xde, 0xa9, 0xd9, 0x62, 0xef, 0x2e, 0x3b, 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, 0x4c, 0x4e, 0x57, 0xd0, 0x43, 0x48, 0x07, 0x74, 0x05, + 0xa9, 0x92, 0xfa, 0x00, 0x87, 0x51, 0x23, 0x14, 0x01, 0x17, 0x99, 0xb5, 0x79, 0x74, 0xa6, 0x6f, + 0xad, 0xfc, 0xbc, 0x1f, 0x9c, 0x3d, 0x74, 0x0f, 0xb2, 0x12, 0xaf, 0x41, 0xb2, 0x73, 0x51, 0xbe, + 0x13, 0x03, 0x70, 0x8a, 0x01, 0xcc, 0x60, 0xc9, 0xdd, 0x6b, 0xca, 0x2a, 0xda, 0x85, 0xac, 0x44, + 0x78, 0x42, 0x66, 0xa3, 0x44, 0x28, 0xc6, 0x2c, 0x66, 0x66, 0x17, 0x2a, 0xc3, 0xfc, 0xf6, 0x31, + 0x6a, 0x90, 0x95, 0x78, 0x4f, 0x08, 0x23, 0xca, 0x87, 0x86, 0xc7, 0x66, 0x75, 0x68, 0x6c, 0x1a, + 0x90, 0xe9, 0xb1, 0x15, 0x54, 0x08, 0xb5, 0xe4, 0x30, 0xd1, 0x50, 0xa3, 0xbc, 0x04, 0xaf, 0x32, + 0xeb, 0x17, 0x70, 0x51, 0xb6, 0x1e, 0x50, 0x82, 0xbd, 0x6b, 0x34, 0x30, 0xe1, 0xef, 0xa4, 0x01, + 0x99, 0x8d, 0x58, 0xa0, 0x8d, 0xc3, 0x03, 0x35, 0x64, 0xa0, 0x16, 0x64, 0xd6, 0x0d, 0x63, 0xc7, + 0xf6, 0x99, 0x4b, 0x28, 0x4d, 0x23, 0x84, 0x46, 0x3d, 0x5d, 0xe2, 0xcf, 0xaa, 0x52, 0xf0, 0xac, + 0x2a, 0xbd, 0xe7, 0x3f, 0xab, 0xc6, 0xc1, 0xe9, 0x81, 0x79, 0x1f, 0xee, 0x29, 0x9c, 0xd4, 0x48, + 0xcb, 0xee, 0x90, 0xf7, 0x5d, 0xbb, 0x75, 0x08, 0xcc, 0x32, 0xc3, 0xbc, 0x88, 0x2f, 0xc4, 0x63, + 0xba, 0x21, 0x0c, 0x1f, 0xf8, 0x3b, 0x05, 0x66, 0x07, 0x5f, 0x47, 0x08, 0x47, 0x72, 0x3b, 0xf2, + 0x56, 0x53, 0x97, 0x46, 0xca, 0x88, 0x12, 0x2d, 0x31, 0x77, 0x56, 0xf0, 0xd2, 0x90, 0xc4, 0x29, + 0xf7, 0x9f, 0x69, 0xac, 0x18, 0x7e, 0x54, 0x20, 0x27, 0x11, 0x30, 0x1a, 0x30, 0x30, 0xf4, 0xc6, + 0x60, 0x2b, 0x88, 0xa5, 0x77, 0xea, 0xf2, 0x38, 0x31, 0xe1, 0x97, 0x08, 0x13, 0x7a, 0x73, 0x98, + 0x5f, 0xe1, 0x36, 0x46, 0xd1, 0x4f, 0x0a, 0xcc, 0x45, 0x38, 0x1c, 0x5a, 0x1a, 0xe8, 0x30, 0x71, + 0xf4, 0x42, 0x1d, 0xce, 0x50, 0xf0, 0x6d, 0xe6, 0xc6, 0x4d, 0x74, 0x63, 0x42, 0x37, 0xca, 0xcf, + 0xa3, 0x8d, 0x77, 0x0f, 0x7d, 0xaf, 0x40, 0x2e, 0x8e, 0xf6, 0xa1, 0xe5, 0x68, 0x8b, 0x3a, 0xa8, + 0x87, 0x15, 0xe6, 0xe1, 0x25, 0x3c, 0x69, 0xa0, 0xfc, 0x43, 0x7c, 0xa5, 0x40, 0x2e, 0x8e, 0x10, + 0x86, 0xfc, 0x19, 0xc1, 0x18, 0x47, 0xf9, 0xb3, 0xc1, 0xfc, 0x59, 0xaf, 0x1c, 0x2a, 0x62, 0xbe, + 0x93, 0xbf, 0x28, 0x90, 0x8b, 0x23, 0x85, 0x21, 0x27, 0x47, 0xb0, 0xc6, 0xa1, 0x15, 0x28, 0xce, + 0x74, 0xf5, 0x70, 0x67, 0xfa, 0x84, 0x5f, 0x93, 0x9c, 0xaa, 0x44, 0xae, 0xc9, 0x10, 0x8d, 0x8a, + 0x5c, 0x93, 0x61, 0x7e, 0x83, 0x97, 0x99, 0x43, 0x8b, 0xe8, 0xdc, 0x30, 0x87, 0x38, 0xbb, 0x41, + 0x66, 0x70, 0xbf, 0x31, 0xfd, 0x98, 0xfb, 0x4d, 0x66, 0x0e, 0x6a, 0x84, 0x25, 0xe1, 0x8b, 0x0c, + 0x67, 0x09, 0x8f, 0xc1, 0xf1, 0x83, 0xef, 0x41, 0x56, 0x22, 0x23, 0x21, 0xa8, 0x28, 0x49, 0x19, + 0x1a, 0x69, 0xd1, 0x5c, 0x56, 0x97, 0x47, 0x03, 0x96, 0x9f, 0xb3, 0xff, 0xf7, 0xaa, 0x3b, 0x70, + 0xa2, 0x6e, 0xb7, 0xfa, 0x58, 0xd5, 0x99, 0x80, 0x97, 0x38, 0xe6, 0x96, 0x6f, 0x7a, 0x4b, 0xf9, + 0x14, 0xf5, 0xfe, 0x6e, 0x75, 0x9d, 0x7f, 0x75, 0xd6, 0x5e, 0x25, 0xa6, 0x36, 0x1f, 0x3c, 0xf8, + 0x2d, 0x91, 0xd9, 0xe4, 0x8a, 0xf7, 0xd7, 0xfe, 0x08, 0xbe, 0x3f, 0xbf, 0xbf, 0xb6, 0x3b, 0xcd, + 0xbc, 0xba, 0xf2, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe1, 0xf4, 0x0b, 0x51, 0xa2, 0x13, 0x00, + 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1330,6 +1395,10 @@ type AccountAPIClient interface { SetPolicy(ctx context.Context, in *SetPolicyRequest, opts ...grpc.CallOption) (*Policy, error) // GetPolicy for permissions in a Space. GetPolicy(ctx context.Context, in *GetPolicyRequest, opts ...grpc.CallOption) (*Policy, error) + // AddToRole adds a user to the provided role in a Space. + AddToRole(ctx context.Context, in *ChangeRoleRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + // RemoveFromRole removes a user from the provided role in a Space. + RemoveFromRole(ctx context.Context, in *ChangeRoleRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // CreateOnboarding notifies a user to initiate their onboarding to a Space. CreateOnboarding(ctx context.Context, in *CreateOnboardingRequest, opts ...grpc.CallOption) (*CreateOnboardingResponse, error) // ListServicesAccounts returns every ServiceAccount in a space. @@ -1421,6 +1490,24 @@ func (c *accountAPIClient) GetPolicy(ctx context.Context, in *GetPolicyRequest, return out, nil } +func (c *accountAPIClient) AddToRole(ctx context.Context, in *ChangeRoleRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, "/indent.v1.AccountAPI/AddToRole", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *accountAPIClient) RemoveFromRole(ctx context.Context, in *ChangeRoleRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, "/indent.v1.AccountAPI/RemoveFromRole", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *accountAPIClient) CreateOnboarding(ctx context.Context, in *CreateOnboardingRequest, opts ...grpc.CallOption) (*CreateOnboardingResponse, error) { out := new(CreateOnboardingResponse) err := c.cc.Invoke(ctx, "/indent.v1.AccountAPI/CreateOnboarding", in, out, opts...) @@ -1518,6 +1605,10 @@ type AccountAPIServer interface { SetPolicy(context.Context, *SetPolicyRequest) (*Policy, error) // GetPolicy for permissions in a Space. GetPolicy(context.Context, *GetPolicyRequest) (*Policy, error) + // AddToRole adds a user to the provided role in a Space. + AddToRole(context.Context, *ChangeRoleRequest) (*emptypb.Empty, error) + // RemoveFromRole removes a user from the provided role in a Space. + RemoveFromRole(context.Context, *ChangeRoleRequest) (*emptypb.Empty, error) // CreateOnboarding notifies a user to initiate their onboarding to a Space. CreateOnboarding(context.Context, *CreateOnboardingRequest) (*CreateOnboardingResponse, error) // ListServicesAccounts returns every ServiceAccount in a space. @@ -1563,6 +1654,12 @@ func (*UnimplementedAccountAPIServer) SetPolicy(ctx context.Context, req *SetPol func (*UnimplementedAccountAPIServer) GetPolicy(ctx context.Context, req *GetPolicyRequest) (*Policy, error) { return nil, status.Errorf(codes.Unimplemented, "method GetPolicy not implemented") } +func (*UnimplementedAccountAPIServer) AddToRole(ctx context.Context, req *ChangeRoleRequest) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddToRole not implemented") +} +func (*UnimplementedAccountAPIServer) RemoveFromRole(ctx context.Context, req *ChangeRoleRequest) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveFromRole not implemented") +} func (*UnimplementedAccountAPIServer) CreateOnboarding(ctx context.Context, req *CreateOnboardingRequest) (*CreateOnboardingResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateOnboarding not implemented") } @@ -1721,6 +1818,42 @@ func _AccountAPI_GetPolicy_Handler(srv interface{}, ctx context.Context, dec fun return interceptor(ctx, in, info, handler) } +func _AccountAPI_AddToRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ChangeRoleRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AccountAPIServer).AddToRole(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/indent.v1.AccountAPI/AddToRole", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AccountAPIServer).AddToRole(ctx, req.(*ChangeRoleRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AccountAPI_RemoveFromRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ChangeRoleRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AccountAPIServer).RemoveFromRole(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/indent.v1.AccountAPI/RemoveFromRole", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AccountAPIServer).RemoveFromRole(ctx, req.(*ChangeRoleRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _AccountAPI_CreateOnboarding_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CreateOnboardingRequest) if err := dec(in); err != nil { @@ -1915,6 +2048,14 @@ var _AccountAPI_serviceDesc = grpc.ServiceDesc{ MethodName: "GetPolicy", Handler: _AccountAPI_GetPolicy_Handler, }, + { + MethodName: "AddToRole", + Handler: _AccountAPI_AddToRole_Handler, + }, + { + MethodName: "RemoveFromRole", + Handler: _AccountAPI_RemoveFromRole_Handler, + }, { MethodName: "CreateOnboarding", Handler: _AccountAPI_CreateOnboarding_Handler, diff --git a/pkg/common/slack.go b/pkg/common/slack.go index 3147e53..2f8cb3d 100644 --- a/pkg/common/slack.go +++ b/pkg/common/slack.go @@ -53,3 +53,8 @@ const ( // SourceSlack is the Source when a Petition is received by Slack. SourceSlack = "Slack" ) + +const ( + // ResourceIDSlackBot is the ID of the Slack bot. + ResourceIDSlackBot = "USLACKBOT" +)