meshtrade 1.5.0__py3-none-any.whl → 1.9.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of meshtrade might be problematic. Click here for more details.
- meshtrade/compliance/client/v1/client_pb2.py +18 -4
- meshtrade/compliance/client/v1/client_pb2.pyi +8 -3
- meshtrade/compliance/client/v1/company_pb2.py +25 -8
- meshtrade/compliance/client/v1/company_pb2.pyi +1 -0
- meshtrade/compliance/client/v1/company_representative_pb2.py +9 -4
- meshtrade/compliance/client/v1/company_representative_pb2.pyi +1 -0
- meshtrade/compliance/client/v1/company_representative_role_pb2.py +2 -2
- meshtrade/compliance/client/v1/fund_pb2.py +13 -4
- meshtrade/compliance/client/v1/fund_pb2.pyi +1 -0
- meshtrade/compliance/client/v1/identification_document_type_pb2.py +2 -2
- meshtrade/compliance/client/v1/industry_classification_pb2.py +2 -2
- meshtrade/compliance/client/v1/natural_person_connection_type_pb2.py +2 -2
- meshtrade/compliance/client/v1/natural_person_pb2.py +19 -4
- meshtrade/compliance/client/v1/natural_person_pb2.pyi +1 -0
- meshtrade/compliance/client/v1/pep_status_pb2.py +2 -2
- meshtrade/compliance/client/v1/service_pb2.py +20 -15
- meshtrade/compliance/client/v1/service_pb2.pyi +1 -0
- meshtrade/compliance/client/v1/source_of_income_and_wealth_pb2.py +2 -2
- meshtrade/compliance/client/v1/tax_residency_pb2.py +9 -4
- meshtrade/compliance/client/v1/tax_residency_pb2.pyi +1 -0
- meshtrade/compliance/client/v1/trust_pb2.py +13 -4
- meshtrade/compliance/client/v1/trust_pb2.pyi +1 -0
- meshtrade/compliance/client/v1/verification_status_pb2.py +2 -2
- meshtrade/iam/api_user/v1/__init__.py +2 -0
- meshtrade/iam/api_user/v1/api_credentials_pb2.py +4 -4
- meshtrade/iam/api_user/v1/api_user_pb2.py +14 -10
- meshtrade/iam/api_user/v1/api_user_pb2.pyi +2 -4
- meshtrade/iam/api_user/v1/service_meshpy.py +17 -0
- meshtrade/iam/api_user/v1/service_pb2.py +44 -30
- meshtrade/iam/api_user/v1/service_pb2.pyi +8 -0
- meshtrade/iam/api_user/v1/service_pb2_grpc.py +48 -0
- meshtrade/iam/group/v1/group_pb2.py +8 -8
- meshtrade/iam/group/v1/group_pb2.pyi +2 -6
- meshtrade/iam/group/v1/service_pb2.py +11 -11
- meshtrade/iam/role/v1/role_pb2.py +3 -3
- meshtrade/iam/role/v1/role_pb2.pyi +24 -4
- meshtrade/iam/user/v1/__init__.py +17 -1
- meshtrade/iam/user/v1/service_meshpy.py +87 -0
- meshtrade/iam/user/v1/service_pb2.py +49 -12
- meshtrade/iam/user/v1/service_pb2.pyi +65 -6
- meshtrade/iam/user/v1/service_pb2_grpc.py +278 -4
- meshtrade/iam/user/v1/user_pb2.py +13 -4
- meshtrade/iam/user/v1/user_pb2.pyi +7 -2
- meshtrade/ledger/transaction/v1/transaction_action_pb2.py +2 -2
- meshtrade/ledger/transaction/v1/transaction_state_pb2.py +2 -2
- meshtrade/option/v1/method_type_pb2.py +2 -2
- meshtrade/reporting/account_report/v1/account_report_pb2.py +2 -2
- meshtrade/reporting/account_report/v1/disclaimer_pb2.py +2 -2
- meshtrade/reporting/account_report/v1/fee_entry_pb2.py +2 -2
- meshtrade/reporting/account_report/v1/income_entry_pb2.py +2 -2
- meshtrade/reporting/account_report/v1/service_pb2.py +26 -12
- meshtrade/reporting/account_report/v1/service_pb2_grpc.py +29 -25
- meshtrade/reporting/account_report/v1/trading_statement_entry_pb2.py +2 -2
- meshtrade/studio/instrument/v1/__init__.py +43 -0
- meshtrade/studio/instrument/v1/instrument_pb2.py +45 -0
- meshtrade/studio/instrument/v1/instrument_pb2.pyi +20 -0
- meshtrade/studio/instrument/v1/instrument_pb2_grpc.py +4 -0
- meshtrade/studio/instrument/v1/type_pb2.py +37 -0
- meshtrade/studio/instrument/v1/type_pb2.pyi +58 -0
- meshtrade/studio/instrument/v1/type_pb2_grpc.py +4 -0
- meshtrade/studio/instrument/v1/unit_pb2.py +37 -0
- meshtrade/studio/instrument/v1/unit_pb2.pyi +46 -0
- meshtrade/studio/instrument/v1/unit_pb2_grpc.py +4 -0
- meshtrade/trading/limit_order/v1/limit_order_pb2.py +2 -2
- meshtrade/trading/limit_order/v1/service_pb2.py +2 -2
- meshtrade/trading/market_order/v1/market_order_pb2.py +2 -2
- meshtrade/trading/market_order/v1/service_pb2.py +2 -2
- meshtrade/type/v1/address_pb2.py +2 -2
- meshtrade/type/v1/amount_pb2.py +2 -2
- meshtrade/type/v1/contact_details_pb2.py +2 -2
- meshtrade/type/v1/date_pb2.py +2 -2
- meshtrade/type/v1/decimal_pb2.py +2 -2
- meshtrade/type/v1/ledger_pb2.py +2 -2
- meshtrade/type/v1/sorting_pb2.py +2 -2
- meshtrade/type/v1/time_of_day_pb2.py +2 -2
- meshtrade/type/v1/token_pb2.py +2 -2
- meshtrade/wallet/account/v1/__init__.py +21 -1
- meshtrade/wallet/account/v1/account_pb2.py +28 -4
- meshtrade/wallet/account/v1/account_pb2.pyi +57 -3
- meshtrade/wallet/account/v1/service_meshpy.py +70 -0
- meshtrade/wallet/account/v1/service_pb2.py +64 -21
- meshtrade/wallet/account/v1/service_pb2.pyi +82 -19
- meshtrade/wallet/account/v1/service_pb2_grpc.py +244 -8
- {meshtrade-1.5.0.dist-info → meshtrade-1.9.0.dist-info}/METADATA +1 -1
- {meshtrade-1.5.0.dist-info → meshtrade-1.9.0.dist-info}/RECORD +87 -77
- {meshtrade-1.5.0.dist-info → meshtrade-1.9.0.dist-info}/WHEEL +0 -0
- {meshtrade-1.5.0.dist-info → meshtrade-1.9.0.dist-info}/top_level.txt +0 -0
|
@@ -13,14 +13,24 @@ class Role(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
|
13
13
|
ROLE_UNSPECIFIED: _ClassVar[Role]
|
|
14
14
|
ROLE_WALLET_ADMIN: _ClassVar[Role]
|
|
15
15
|
ROLE_WALLET_VIEWER: _ClassVar[Role]
|
|
16
|
+
ROLE_WALLET_ACCOUNT_ADMIN: _ClassVar[Role]
|
|
17
|
+
ROLE_WALLET_ACCOUNT_VIEWER: _ClassVar[Role]
|
|
16
18
|
ROLE_COMPLIANCE_ADMIN: _ClassVar[Role]
|
|
17
19
|
ROLE_COMPLIANCE_VIEWER: _ClassVar[Role]
|
|
20
|
+
ROLE_COMPLIANCE_CLIENT_ADMIN: _ClassVar[Role]
|
|
21
|
+
ROLE_COMPLIANCE_CLIENT_VIEWER: _ClassVar[Role]
|
|
18
22
|
ROLE_IAM_ADMIN: _ClassVar[Role]
|
|
19
23
|
ROLE_IAM_VIEWER: _ClassVar[Role]
|
|
24
|
+
ROLE_IAM_API_USER_ADMIN: _ClassVar[Role]
|
|
25
|
+
ROLE_IAM_API_USER_VIEWER: _ClassVar[Role]
|
|
20
26
|
ROLE_IAM_GROUP_ADMIN: _ClassVar[Role]
|
|
21
27
|
ROLE_IAM_GROUP_VIEWER: _ClassVar[Role]
|
|
22
|
-
|
|
23
|
-
|
|
28
|
+
ROLE_IAM_USER_ADMIN: _ClassVar[Role]
|
|
29
|
+
ROLE_IAM_USER_VIEWER: _ClassVar[Role]
|
|
30
|
+
ROLE_STUDIO_ADMIN: _ClassVar[Role]
|
|
31
|
+
ROLE_STUDIO_VIEWER: _ClassVar[Role]
|
|
32
|
+
ROLE_STUDIO_INSTRUMENT_ADMIN: _ClassVar[Role]
|
|
33
|
+
ROLE_STUDIO_INSTRUMENT_VIEWER: _ClassVar[Role]
|
|
24
34
|
ROLE_TRADING_ADMIN: _ClassVar[Role]
|
|
25
35
|
ROLE_TRADING_VIEWER: _ClassVar[Role]
|
|
26
36
|
ROLE_REPORTING_ADMIN: _ClassVar[Role]
|
|
@@ -28,14 +38,24 @@ class Role(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
|
28
38
|
ROLE_UNSPECIFIED: Role
|
|
29
39
|
ROLE_WALLET_ADMIN: Role
|
|
30
40
|
ROLE_WALLET_VIEWER: Role
|
|
41
|
+
ROLE_WALLET_ACCOUNT_ADMIN: Role
|
|
42
|
+
ROLE_WALLET_ACCOUNT_VIEWER: Role
|
|
31
43
|
ROLE_COMPLIANCE_ADMIN: Role
|
|
32
44
|
ROLE_COMPLIANCE_VIEWER: Role
|
|
45
|
+
ROLE_COMPLIANCE_CLIENT_ADMIN: Role
|
|
46
|
+
ROLE_COMPLIANCE_CLIENT_VIEWER: Role
|
|
33
47
|
ROLE_IAM_ADMIN: Role
|
|
34
48
|
ROLE_IAM_VIEWER: Role
|
|
49
|
+
ROLE_IAM_API_USER_ADMIN: Role
|
|
50
|
+
ROLE_IAM_API_USER_VIEWER: Role
|
|
35
51
|
ROLE_IAM_GROUP_ADMIN: Role
|
|
36
52
|
ROLE_IAM_GROUP_VIEWER: Role
|
|
37
|
-
|
|
38
|
-
|
|
53
|
+
ROLE_IAM_USER_ADMIN: Role
|
|
54
|
+
ROLE_IAM_USER_VIEWER: Role
|
|
55
|
+
ROLE_STUDIO_ADMIN: Role
|
|
56
|
+
ROLE_STUDIO_VIEWER: Role
|
|
57
|
+
ROLE_STUDIO_INSTRUMENT_ADMIN: Role
|
|
58
|
+
ROLE_STUDIO_INSTRUMENT_VIEWER: Role
|
|
39
59
|
ROLE_TRADING_ADMIN: Role
|
|
40
60
|
ROLE_TRADING_VIEWER: Role
|
|
41
61
|
ROLE_REPORTING_ADMIN: Role
|
|
@@ -14,7 +14,16 @@
|
|
|
14
14
|
|
|
15
15
|
# Generated protobuf imports
|
|
16
16
|
from .user_pb2 import User
|
|
17
|
-
from .service_pb2 import
|
|
17
|
+
from .service_pb2 import (
|
|
18
|
+
AssignRoleToUserRequest,
|
|
19
|
+
CreateUserRequest,
|
|
20
|
+
GetUserRequest,
|
|
21
|
+
ListUsersRequest,
|
|
22
|
+
ListUsersResponse,
|
|
23
|
+
SearchUsersRequest,
|
|
24
|
+
SearchUsersResponse,
|
|
25
|
+
UpdateUserRequest,
|
|
26
|
+
)
|
|
18
27
|
|
|
19
28
|
# Generated service imports
|
|
20
29
|
from .service_meshpy import (
|
|
@@ -46,6 +55,13 @@ __all__ = [
|
|
|
46
55
|
# Generated exports
|
|
47
56
|
"AssignRoleToUserRequest",
|
|
48
57
|
"ClientOptions",
|
|
58
|
+
"CreateUserRequest",
|
|
59
|
+
"GetUserRequest",
|
|
60
|
+
"ListUsersRequest",
|
|
61
|
+
"ListUsersResponse",
|
|
62
|
+
"SearchUsersRequest",
|
|
63
|
+
"SearchUsersResponse",
|
|
64
|
+
"UpdateUserRequest",
|
|
49
65
|
"User",
|
|
50
66
|
"UserService",
|
|
51
67
|
"UserServiceGRPCClient",
|
|
@@ -19,6 +19,13 @@ from .user_pb2 import User
|
|
|
19
19
|
from .service_options_meshpy import ServiceOptions
|
|
20
20
|
from .service_pb2 import (
|
|
21
21
|
AssignRoleToUserRequest,
|
|
22
|
+
CreateUserRequest,
|
|
23
|
+
GetUserRequest,
|
|
24
|
+
ListUsersRequest,
|
|
25
|
+
ListUsersResponse,
|
|
26
|
+
SearchUsersRequest,
|
|
27
|
+
SearchUsersResponse,
|
|
28
|
+
UpdateUserRequest,
|
|
22
29
|
)
|
|
23
30
|
from .service_pb2_grpc import UserServiceStub
|
|
24
31
|
|
|
@@ -145,6 +152,86 @@ class UserService(BaseGRPCClient):
|
|
|
145
152
|
"""
|
|
146
153
|
return self._execute_method("AssignRoleToUser", request, timeout)
|
|
147
154
|
|
|
155
|
+
def get_user(self, request: GetUserRequest, timeout: Optional[timedelta] = None) -> User:
|
|
156
|
+
"""GetUser method.
|
|
157
|
+
|
|
158
|
+
Args:
|
|
159
|
+
request: The GetUser request message
|
|
160
|
+
timeout: Optional timeout override for this call
|
|
161
|
+
|
|
162
|
+
Returns:
|
|
163
|
+
The GetUser response message
|
|
164
|
+
|
|
165
|
+
Raises:
|
|
166
|
+
grpc.RpcError: If the gRPC call fails
|
|
167
|
+
ValueError: If authentication credentials are missing
|
|
168
|
+
"""
|
|
169
|
+
return self._execute_method("GetUser", request, timeout)
|
|
170
|
+
|
|
171
|
+
def list_users(self, request: ListUsersRequest, timeout: Optional[timedelta] = None) -> ListUsersResponse:
|
|
172
|
+
"""ListUsers method.
|
|
173
|
+
|
|
174
|
+
Args:
|
|
175
|
+
request: The ListUsers request message
|
|
176
|
+
timeout: Optional timeout override for this call
|
|
177
|
+
|
|
178
|
+
Returns:
|
|
179
|
+
The ListUsers response message
|
|
180
|
+
|
|
181
|
+
Raises:
|
|
182
|
+
grpc.RpcError: If the gRPC call fails
|
|
183
|
+
ValueError: If authentication credentials are missing
|
|
184
|
+
"""
|
|
185
|
+
return self._execute_method("ListUsers", request, timeout)
|
|
186
|
+
|
|
187
|
+
def search_users(self, request: SearchUsersRequest, timeout: Optional[timedelta] = None) -> SearchUsersResponse:
|
|
188
|
+
"""SearchUsers method.
|
|
189
|
+
|
|
190
|
+
Args:
|
|
191
|
+
request: The SearchUsers request message
|
|
192
|
+
timeout: Optional timeout override for this call
|
|
193
|
+
|
|
194
|
+
Returns:
|
|
195
|
+
The SearchUsers response message
|
|
196
|
+
|
|
197
|
+
Raises:
|
|
198
|
+
grpc.RpcError: If the gRPC call fails
|
|
199
|
+
ValueError: If authentication credentials are missing
|
|
200
|
+
"""
|
|
201
|
+
return self._execute_method("SearchUsers", request, timeout)
|
|
202
|
+
|
|
203
|
+
def create_user(self, request: CreateUserRequest, timeout: Optional[timedelta] = None) -> User:
|
|
204
|
+
"""CreateUser method.
|
|
205
|
+
|
|
206
|
+
Args:
|
|
207
|
+
request: The CreateUser request message
|
|
208
|
+
timeout: Optional timeout override for this call
|
|
209
|
+
|
|
210
|
+
Returns:
|
|
211
|
+
The CreateUser response message
|
|
212
|
+
|
|
213
|
+
Raises:
|
|
214
|
+
grpc.RpcError: If the gRPC call fails
|
|
215
|
+
ValueError: If authentication credentials are missing
|
|
216
|
+
"""
|
|
217
|
+
return self._execute_method("CreateUser", request, timeout)
|
|
218
|
+
|
|
219
|
+
def update_user(self, request: UpdateUserRequest, timeout: Optional[timedelta] = None) -> User:
|
|
220
|
+
"""UpdateUser method.
|
|
221
|
+
|
|
222
|
+
Args:
|
|
223
|
+
request: The UpdateUser request message
|
|
224
|
+
timeout: Optional timeout override for this call
|
|
225
|
+
|
|
226
|
+
Returns:
|
|
227
|
+
The UpdateUser response message
|
|
228
|
+
|
|
229
|
+
Raises:
|
|
230
|
+
grpc.RpcError: If the gRPC call fails
|
|
231
|
+
ValueError: If authentication credentials are missing
|
|
232
|
+
"""
|
|
233
|
+
return self._execute_method("UpdateUser", request, timeout)
|
|
234
|
+
|
|
148
235
|
|
|
149
236
|
# Create aliases to match expected exports
|
|
150
237
|
UserServiceGRPCClient = UserService
|
|
@@ -26,26 +26,63 @@ from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
|
|
|
26
26
|
from meshtrade.iam.role.v1 import role_pb2 as meshtrade_dot_iam_dot_role_dot_v1_dot_role__pb2
|
|
27
27
|
from meshtrade.iam.user.v1 import user_pb2 as meshtrade_dot_iam_dot_user_dot_v1_dot_user__pb2
|
|
28
28
|
from meshtrade.option.v1 import method_type_pb2 as meshtrade_dot_option_dot_v1_dot_method__type__pb2
|
|
29
|
+
from meshtrade.type.v1 import sorting_pb2 as meshtrade_dot_type_dot_v1_dot_sorting__pb2
|
|
29
30
|
|
|
30
31
|
|
|
31
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#meshtrade/iam/user/v1/service.proto\x12\x15meshtrade.iam.user.v1\x1a\x1b\x62uf/validate/validate.proto\x1a meshtrade/iam/role/v1/role.proto\x1a meshtrade/iam/user/v1/user.proto\x1a%meshtrade/option/v1/method_type.proto\"\
|
|
32
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#meshtrade/iam/user/v1/service.proto\x12\x15meshtrade.iam.user.v1\x1a\x1b\x62uf/validate/validate.proto\x1a meshtrade/iam/role/v1/role.proto\x1a meshtrade/iam/user/v1/user.proto\x1a%meshtrade/option/v1/method_type.proto\x1a\x1fmeshtrade/type/v1/sorting.proto\"\xc3\x01\n\x17\x41ssignRoleToUserRequest\x12L\n\x04name\x18\x01 \x01(\tB8\xbaH5r32.^users/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\x98\x01 R\x04name\x12Z\n\x04role\x18\x04 \x01(\tBF\xbaHCr>29^groups/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}/1[0-9]{6}$\x98\x01)\xc8\x01\x01R\x04role\"a\n\x0eGetUserRequest\x12O\n\x04name\x18\x01 \x01(\tB;\xbaH8r32.^users/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\x98\x01 \xc8\x01\x01R\x04name\"\x94\x02\n\x10ListUsersRequest\x12I\n\x07sorting\x18\x01 \x01(\x0b\x32/.meshtrade.iam.user.v1.ListUsersRequest.SortingR\x07sorting\x1a\xb4\x01\n\x07Sorting\x12r\n\x05\x66ield\x18\x01 \x01(\tB\\\xbaHYr\tR\x00R\x05\x65mail\xba\x01K\n\x0b\x66ield.valid\x12%field must be one of: email, or empty\x1a\x15this in [\'\', \'email\']R\x05\x66ield\x12\x35\n\x05order\x18\x02 \x01(\x0e\x32\x1f.meshtrade.type.v1.SortingOrderR\x05order\"F\n\x11ListUsersResponse\x12\x31\n\x05users\x18\x01 \x03(\x0b\x32\x1b.meshtrade.iam.user.v1.UserR\x05users\"\xae\x02\n\x12SearchUsersRequest\x12\x14\n\x05\x65mail\x18\x01 \x01(\tR\x05\x65mail\x12K\n\x07sorting\x18\x02 \x01(\x0b\x32\x31.meshtrade.iam.user.v1.SearchUsersRequest.SortingR\x07sorting\x1a\xb4\x01\n\x07Sorting\x12r\n\x05\x66ield\x18\x01 \x01(\tB\\\xbaHYr\tR\x00R\x05\x65mail\xba\x01K\n\x0b\x66ield.valid\x12%field must be one of: email, or empty\x1a\x15this in [\'\', \'email\']R\x05\x66ield\x12\x35\n\x05order\x18\x02 \x01(\x0e\x32\x1f.meshtrade.type.v1.SortingOrderR\x05order\"H\n\x13SearchUsersResponse\x12\x31\n\x05users\x18\x01 \x03(\x0b\x32\x1b.meshtrade.iam.user.v1.UserR\x05users\"L\n\x11\x43reateUserRequest\x12\x37\n\x04user\x18\x01 \x01(\x0b\x32\x1b.meshtrade.iam.user.v1.UserB\x06\xbaH\x03\xc8\x01\x01R\x04user\"L\n\x11UpdateUserRequest\x12\x37\n\x04user\x18\x01 \x01(\x0b\x32\x1b.meshtrade.iam.user.v1.UserB\x06\xbaH\x03\xc8\x01\x01R\x04user2\xbe\x05\n\x0bUserService\x12s\n\x10\x41ssignRoleToUser\x12..meshtrade.iam.user.v1.AssignRoleToUserRequest\x1a\x1b.meshtrade.iam.user.v1.User\"\x12\xa0\xb5\x18\x02\xaa\xb5\x18\n\n\x08\xc0\x8d\xb7\x01\xc6\x8d\xb7\x01\x12i\n\x07GetUser\x12%.meshtrade.iam.user.v1.GetUserRequest\x1a\x1b.meshtrade.iam.user.v1.User\"\x1a\xa0\xb5\x18\x01\xaa\xb5\x18\x12\n\x10\xc0\x8d\xb7\x01\xc1\x8d\xb7\x01\xc6\x8d\xb7\x01\xc7\x8d\xb7\x01\x12z\n\tListUsers\x12\'.meshtrade.iam.user.v1.ListUsersRequest\x1a(.meshtrade.iam.user.v1.ListUsersResponse\"\x1a\xa0\xb5\x18\x01\xaa\xb5\x18\x12\n\x10\xc0\x8d\xb7\x01\xc1\x8d\xb7\x01\xc6\x8d\xb7\x01\xc7\x8d\xb7\x01\x12\x80\x01\n\x0bSearchUsers\x12).meshtrade.iam.user.v1.SearchUsersRequest\x1a*.meshtrade.iam.user.v1.SearchUsersResponse\"\x1a\xa0\xb5\x18\x01\xaa\xb5\x18\x12\n\x10\xc0\x8d\xb7\x01\xc1\x8d\xb7\x01\xc6\x8d\xb7\x01\xc7\x8d\xb7\x01\x12g\n\nCreateUser\x12(.meshtrade.iam.user.v1.CreateUserRequest\x1a\x1b.meshtrade.iam.user.v1.User\"\x12\xa0\xb5\x18\x02\xaa\xb5\x18\n\n\x08\xc0\x8d\xb7\x01\xc6\x8d\xb7\x01\x12g\n\nUpdateUser\x12(.meshtrade.iam.user.v1.UpdateUserRequest\x1a\x1b.meshtrade.iam.user.v1.User\"\x12\xa0\xb5\x18\x02\xaa\xb5\x18\n\n\x08\xc0\x8d\xb7\x01\xc6\x8d\xb7\x01\x42O\n\x1c\x63o.meshtrade.api.iam.user.v1Z/github.com/meshtrade/api/go/iam/user/v1;user_v1b\x06proto3')
|
|
32
33
|
|
|
33
34
|
_globals = globals()
|
|
34
35
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
35
36
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.iam.user.v1.service_pb2', _globals)
|
|
36
37
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
37
38
|
_globals['DESCRIPTOR']._loaded_options = None
|
|
38
|
-
_globals['DESCRIPTOR']._serialized_options = b'\n\034co.meshtrade.api.iam.user.v1Z
|
|
39
|
-
_globals['_ASSIGNROLETOUSERREQUEST'].fields_by_name['
|
|
40
|
-
_globals['_ASSIGNROLETOUSERREQUEST'].fields_by_name['
|
|
41
|
-
_globals['_ASSIGNROLETOUSERREQUEST'].fields_by_name['group']._loaded_options = None
|
|
42
|
-
_globals['_ASSIGNROLETOUSERREQUEST'].fields_by_name['group']._serialized_options = b'\272H\200\001r\005\020\001\030\377\001\272\001v\n\016group.required\022?group name is required and must be between 1 and 255 characters\032#size(this) > 0 && size(this) <= 255'
|
|
39
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\034co.meshtrade.api.iam.user.v1Z/github.com/meshtrade/api/go/iam/user/v1;user_v1'
|
|
40
|
+
_globals['_ASSIGNROLETOUSERREQUEST'].fields_by_name['name']._loaded_options = None
|
|
41
|
+
_globals['_ASSIGNROLETOUSERREQUEST'].fields_by_name['name']._serialized_options = b'\272H5r32.^users/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\230\001 '
|
|
43
42
|
_globals['_ASSIGNROLETOUSERREQUEST'].fields_by_name['role']._loaded_options = None
|
|
44
|
-
_globals['_ASSIGNROLETOUSERREQUEST'].fields_by_name['role']._serialized_options = b'\
|
|
43
|
+
_globals['_ASSIGNROLETOUSERREQUEST'].fields_by_name['role']._serialized_options = b'\272HCr>29^groups/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}/1[0-9]{6}$\230\001)\310\001\001'
|
|
44
|
+
_globals['_GETUSERREQUEST'].fields_by_name['name']._loaded_options = None
|
|
45
|
+
_globals['_GETUSERREQUEST'].fields_by_name['name']._serialized_options = b'\272H8r32.^users/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\230\001 \310\001\001'
|
|
46
|
+
_globals['_LISTUSERSREQUEST_SORTING'].fields_by_name['field']._loaded_options = None
|
|
47
|
+
_globals['_LISTUSERSREQUEST_SORTING'].fields_by_name['field']._serialized_options = b'\272HYr\tR\000R\005email\272\001K\n\013field.valid\022%field must be one of: email, or empty\032\025this in [\'\', \'email\']'
|
|
48
|
+
_globals['_SEARCHUSERSREQUEST_SORTING'].fields_by_name['field']._loaded_options = None
|
|
49
|
+
_globals['_SEARCHUSERSREQUEST_SORTING'].fields_by_name['field']._serialized_options = b'\272HYr\tR\000R\005email\272\001K\n\013field.valid\022%field must be one of: email, or empty\032\025this in [\'\', \'email\']'
|
|
50
|
+
_globals['_CREATEUSERREQUEST'].fields_by_name['user']._loaded_options = None
|
|
51
|
+
_globals['_CREATEUSERREQUEST'].fields_by_name['user']._serialized_options = b'\272H\003\310\001\001'
|
|
52
|
+
_globals['_UPDATEUSERREQUEST'].fields_by_name['user']._loaded_options = None
|
|
53
|
+
_globals['_UPDATEUSERREQUEST'].fields_by_name['user']._serialized_options = b'\272H\003\310\001\001'
|
|
45
54
|
_globals['_USERSERVICE'].methods_by_name['AssignRoleToUser']._loaded_options = None
|
|
46
|
-
_globals['_USERSERVICE'].methods_by_name['AssignRoleToUser']._serialized_options = b'\240\265\030\002\252\265\030\
|
|
47
|
-
_globals['
|
|
48
|
-
_globals['
|
|
49
|
-
_globals['_USERSERVICE'].
|
|
50
|
-
_globals['_USERSERVICE'].
|
|
55
|
+
_globals['_USERSERVICE'].methods_by_name['AssignRoleToUser']._serialized_options = b'\240\265\030\002\252\265\030\n\n\010\300\215\267\001\306\215\267\001'
|
|
56
|
+
_globals['_USERSERVICE'].methods_by_name['GetUser']._loaded_options = None
|
|
57
|
+
_globals['_USERSERVICE'].methods_by_name['GetUser']._serialized_options = b'\240\265\030\001\252\265\030\022\n\020\300\215\267\001\301\215\267\001\306\215\267\001\307\215\267\001'
|
|
58
|
+
_globals['_USERSERVICE'].methods_by_name['ListUsers']._loaded_options = None
|
|
59
|
+
_globals['_USERSERVICE'].methods_by_name['ListUsers']._serialized_options = b'\240\265\030\001\252\265\030\022\n\020\300\215\267\001\301\215\267\001\306\215\267\001\307\215\267\001'
|
|
60
|
+
_globals['_USERSERVICE'].methods_by_name['SearchUsers']._loaded_options = None
|
|
61
|
+
_globals['_USERSERVICE'].methods_by_name['SearchUsers']._serialized_options = b'\240\265\030\001\252\265\030\022\n\020\300\215\267\001\301\215\267\001\306\215\267\001\307\215\267\001'
|
|
62
|
+
_globals['_USERSERVICE'].methods_by_name['CreateUser']._loaded_options = None
|
|
63
|
+
_globals['_USERSERVICE'].methods_by_name['CreateUser']._serialized_options = b'\240\265\030\002\252\265\030\n\n\010\300\215\267\001\306\215\267\001'
|
|
64
|
+
_globals['_USERSERVICE'].methods_by_name['UpdateUser']._loaded_options = None
|
|
65
|
+
_globals['_USERSERVICE'].methods_by_name['UpdateUser']._serialized_options = b'\240\265\030\002\252\265\030\n\n\010\300\215\267\001\306\215\267\001'
|
|
66
|
+
_globals['_ASSIGNROLETOUSERREQUEST']._serialized_start=232
|
|
67
|
+
_globals['_ASSIGNROLETOUSERREQUEST']._serialized_end=427
|
|
68
|
+
_globals['_GETUSERREQUEST']._serialized_start=429
|
|
69
|
+
_globals['_GETUSERREQUEST']._serialized_end=526
|
|
70
|
+
_globals['_LISTUSERSREQUEST']._serialized_start=529
|
|
71
|
+
_globals['_LISTUSERSREQUEST']._serialized_end=805
|
|
72
|
+
_globals['_LISTUSERSREQUEST_SORTING']._serialized_start=625
|
|
73
|
+
_globals['_LISTUSERSREQUEST_SORTING']._serialized_end=805
|
|
74
|
+
_globals['_LISTUSERSRESPONSE']._serialized_start=807
|
|
75
|
+
_globals['_LISTUSERSRESPONSE']._serialized_end=877
|
|
76
|
+
_globals['_SEARCHUSERSREQUEST']._serialized_start=880
|
|
77
|
+
_globals['_SEARCHUSERSREQUEST']._serialized_end=1182
|
|
78
|
+
_globals['_SEARCHUSERSREQUEST_SORTING']._serialized_start=625
|
|
79
|
+
_globals['_SEARCHUSERSREQUEST_SORTING']._serialized_end=805
|
|
80
|
+
_globals['_SEARCHUSERSRESPONSE']._serialized_start=1184
|
|
81
|
+
_globals['_SEARCHUSERSRESPONSE']._serialized_end=1256
|
|
82
|
+
_globals['_CREATEUSERREQUEST']._serialized_start=1258
|
|
83
|
+
_globals['_CREATEUSERREQUEST']._serialized_end=1334
|
|
84
|
+
_globals['_UPDATEUSERREQUEST']._serialized_start=1336
|
|
85
|
+
_globals['_UPDATEUSERREQUEST']._serialized_end=1412
|
|
86
|
+
_globals['_USERSERVICE']._serialized_start=1415
|
|
87
|
+
_globals['_USERSERVICE']._serialized_end=2117
|
|
51
88
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -2,18 +2,77 @@ from buf.validate import validate_pb2 as _validate_pb2
|
|
|
2
2
|
from meshtrade.iam.role.v1 import role_pb2 as _role_pb2
|
|
3
3
|
from meshtrade.iam.user.v1 import user_pb2 as _user_pb2
|
|
4
4
|
from meshtrade.option.v1 import method_type_pb2 as _method_type_pb2
|
|
5
|
+
from meshtrade.type.v1 import sorting_pb2 as _sorting_pb2
|
|
6
|
+
from google.protobuf.internal import containers as _containers
|
|
5
7
|
from google.protobuf import descriptor as _descriptor
|
|
6
8
|
from google.protobuf import message as _message
|
|
9
|
+
from collections.abc import Iterable as _Iterable, Mapping as _Mapping
|
|
7
10
|
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
8
11
|
|
|
9
12
|
DESCRIPTOR: _descriptor.FileDescriptor
|
|
10
13
|
|
|
11
14
|
class AssignRoleToUserRequest(_message.Message):
|
|
12
|
-
__slots__ = ("
|
|
13
|
-
|
|
14
|
-
GROUP_FIELD_NUMBER: _ClassVar[int]
|
|
15
|
+
__slots__ = ("name", "role")
|
|
16
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
15
17
|
ROLE_FIELD_NUMBER: _ClassVar[int]
|
|
18
|
+
name: str
|
|
19
|
+
role: str
|
|
20
|
+
def __init__(self, name: _Optional[str] = ..., role: _Optional[str] = ...) -> None: ...
|
|
21
|
+
|
|
22
|
+
class GetUserRequest(_message.Message):
|
|
23
|
+
__slots__ = ("name",)
|
|
24
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
25
|
+
name: str
|
|
26
|
+
def __init__(self, name: _Optional[str] = ...) -> None: ...
|
|
27
|
+
|
|
28
|
+
class ListUsersRequest(_message.Message):
|
|
29
|
+
__slots__ = ("sorting",)
|
|
30
|
+
class Sorting(_message.Message):
|
|
31
|
+
__slots__ = ("field", "order")
|
|
32
|
+
FIELD_FIELD_NUMBER: _ClassVar[int]
|
|
33
|
+
ORDER_FIELD_NUMBER: _ClassVar[int]
|
|
34
|
+
field: str
|
|
35
|
+
order: _sorting_pb2.SortingOrder
|
|
36
|
+
def __init__(self, field: _Optional[str] = ..., order: _Optional[_Union[_sorting_pb2.SortingOrder, str]] = ...) -> None: ...
|
|
37
|
+
SORTING_FIELD_NUMBER: _ClassVar[int]
|
|
38
|
+
sorting: ListUsersRequest.Sorting
|
|
39
|
+
def __init__(self, sorting: _Optional[_Union[ListUsersRequest.Sorting, _Mapping]] = ...) -> None: ...
|
|
40
|
+
|
|
41
|
+
class ListUsersResponse(_message.Message):
|
|
42
|
+
__slots__ = ("users",)
|
|
43
|
+
USERS_FIELD_NUMBER: _ClassVar[int]
|
|
44
|
+
users: _containers.RepeatedCompositeFieldContainer[_user_pb2.User]
|
|
45
|
+
def __init__(self, users: _Optional[_Iterable[_Union[_user_pb2.User, _Mapping]]] = ...) -> None: ...
|
|
46
|
+
|
|
47
|
+
class SearchUsersRequest(_message.Message):
|
|
48
|
+
__slots__ = ("email", "sorting")
|
|
49
|
+
class Sorting(_message.Message):
|
|
50
|
+
__slots__ = ("field", "order")
|
|
51
|
+
FIELD_FIELD_NUMBER: _ClassVar[int]
|
|
52
|
+
ORDER_FIELD_NUMBER: _ClassVar[int]
|
|
53
|
+
field: str
|
|
54
|
+
order: _sorting_pb2.SortingOrder
|
|
55
|
+
def __init__(self, field: _Optional[str] = ..., order: _Optional[_Union[_sorting_pb2.SortingOrder, str]] = ...) -> None: ...
|
|
56
|
+
EMAIL_FIELD_NUMBER: _ClassVar[int]
|
|
57
|
+
SORTING_FIELD_NUMBER: _ClassVar[int]
|
|
16
58
|
email: str
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
59
|
+
sorting: SearchUsersRequest.Sorting
|
|
60
|
+
def __init__(self, email: _Optional[str] = ..., sorting: _Optional[_Union[SearchUsersRequest.Sorting, _Mapping]] = ...) -> None: ...
|
|
61
|
+
|
|
62
|
+
class SearchUsersResponse(_message.Message):
|
|
63
|
+
__slots__ = ("users",)
|
|
64
|
+
USERS_FIELD_NUMBER: _ClassVar[int]
|
|
65
|
+
users: _containers.RepeatedCompositeFieldContainer[_user_pb2.User]
|
|
66
|
+
def __init__(self, users: _Optional[_Iterable[_Union[_user_pb2.User, _Mapping]]] = ...) -> None: ...
|
|
67
|
+
|
|
68
|
+
class CreateUserRequest(_message.Message):
|
|
69
|
+
__slots__ = ("user",)
|
|
70
|
+
USER_FIELD_NUMBER: _ClassVar[int]
|
|
71
|
+
user: _user_pb2.User
|
|
72
|
+
def __init__(self, user: _Optional[_Union[_user_pb2.User, _Mapping]] = ...) -> None: ...
|
|
73
|
+
|
|
74
|
+
class UpdateUserRequest(_message.Message):
|
|
75
|
+
__slots__ = ("user",)
|
|
76
|
+
USER_FIELD_NUMBER: _ClassVar[int]
|
|
77
|
+
user: _user_pb2.User
|
|
78
|
+
def __init__(self, user: _Optional[_Union[_user_pb2.User, _Mapping]] = ...) -> None: ...
|