meshtrade 1.0.1__py3-none-any.whl → 1.1.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.

Files changed (36) hide show
  1. meshtrade/common/__init__.py +2 -4
  2. meshtrade/common/config.py +3 -4
  3. meshtrade/iam/api_user/v1/service_pb2_grpc.py +0 -53
  4. meshtrade/iam/role/v1/role_pb2.py +2 -2
  5. meshtrade/iam/role/v1/role_pb2.pyi +4 -4
  6. meshtrade/reporting/{income_report → account_report}/v1/__init__.py +20 -16
  7. meshtrade/reporting/account_report/v1/account_report_pb2.py +46 -0
  8. meshtrade/reporting/account_report/v1/account_report_pb2.pyi +48 -0
  9. meshtrade/reporting/{income_report → account_report}/v1/disclaimer_pb2.py +7 -7
  10. meshtrade/reporting/account_report/v1/fee_entry_pb2.py +39 -0
  11. meshtrade/reporting/account_report/v1/fee_entry_pb2.pyi +26 -0
  12. meshtrade/reporting/account_report/v1/income_entry_pb2.py +42 -0
  13. meshtrade/reporting/{income_report/v1/entry_pb2.pyi → account_report/v1/income_entry_pb2.pyi} +10 -10
  14. meshtrade/reporting/account_report/v1/income_entry_pb2_grpc.py +4 -0
  15. meshtrade/reporting/{income_report → account_report}/v1/service_meshpy.py +35 -35
  16. meshtrade/reporting/{income_report → account_report}/v1/service_options_meshpy.py +3 -3
  17. meshtrade/reporting/account_report/v1/service_pb2.py +59 -0
  18. meshtrade/reporting/account_report/v1/service_pb2.pyi +42 -0
  19. meshtrade/reporting/account_report/v1/service_pb2_grpc.py +157 -0
  20. meshtrade/reporting/account_report/v1/trading_statement_entry_pb2.py +39 -0
  21. meshtrade/reporting/account_report/v1/trading_statement_entry_pb2.pyi +30 -0
  22. meshtrade/reporting/account_report/v1/trading_statement_entry_pb2_grpc.py +4 -0
  23. {meshtrade-1.0.1.dist-info → meshtrade-1.1.0.dist-info}/METADATA +1 -1
  24. {meshtrade-1.0.1.dist-info → meshtrade-1.1.0.dist-info}/RECORD +30 -24
  25. meshtrade/reporting/income_report/v1/entry_pb2.py +0 -42
  26. meshtrade/reporting/income_report/v1/income_report_pb2.py +0 -44
  27. meshtrade/reporting/income_report/v1/income_report_pb2.pyi +0 -42
  28. meshtrade/reporting/income_report/v1/service_pb2.py +0 -58
  29. meshtrade/reporting/income_report/v1/service_pb2.pyi +0 -37
  30. meshtrade/reporting/income_report/v1/service_pb2_grpc.py +0 -170
  31. /meshtrade/reporting/{income_report/v1/disclaimer_pb2_grpc.py → account_report/v1/account_report_pb2_grpc.py} +0 -0
  32. /meshtrade/reporting/{income_report → account_report}/v1/disclaimer_pb2.pyi +0 -0
  33. /meshtrade/reporting/{income_report/v1/entry_pb2_grpc.py → account_report/v1/disclaimer_pb2_grpc.py} +0 -0
  34. /meshtrade/reporting/{income_report/v1/income_report_pb2_grpc.py → account_report/v1/fee_entry_pb2_grpc.py} +0 -0
  35. {meshtrade-1.0.1.dist-info → meshtrade-1.1.0.dist-info}/WHEEL +0 -0
  36. {meshtrade-1.0.1.dist-info → meshtrade-1.1.0.dist-info}/top_level.txt +0 -0
@@ -2,8 +2,7 @@
2
2
 
3
3
  from .config import (
4
4
  ACCESS_TOKEN_PREFIX,
5
- AUTHORIZATION_HEADER_KEY,
6
- BEARER_PREFIX,
5
+ API_KEY_HEADER,
7
6
  COOKIE_HEADER_KEY,
8
7
  DEFAULT_GRPC_PORT,
9
8
  DEFAULT_GRPC_URL,
@@ -17,10 +16,9 @@ __all__ = [
17
16
  "DEFAULT_GRPC_URL",
18
17
  "DEFAULT_GRPC_PORT",
19
18
  "DEFAULT_TLS",
20
- "AUTHORIZATION_HEADER_KEY",
19
+ "API_KEY_HEADER",
21
20
  "COOKIE_HEADER_KEY",
22
21
  "GROUP_HEADER_KEY",
23
- "BEARER_PREFIX",
24
22
  "ACCESS_TOKEN_PREFIX",
25
23
  "create_auth_metadata",
26
24
  "GRPCClient",
@@ -7,10 +7,9 @@ DEFAULT_GRPC_PORT = 443
7
7
  DEFAULT_TLS = True
8
8
 
9
9
  # gRPC metadata constants
10
- AUTHORIZATION_HEADER_KEY = "authorization"
10
+ API_KEY_HEADER = "x-api-key"
11
11
  COOKIE_HEADER_KEY = "cookie"
12
12
  GROUP_HEADER_KEY = "x-group"
13
- BEARER_PREFIX = "Bearer "
14
13
  ACCESS_TOKEN_PREFIX = "AccessToken="
15
14
 
16
15
 
@@ -18,13 +17,13 @@ def create_auth_metadata(api_key: str, group: str) -> list[tuple[str, str]]:
18
17
  """Create authentication metadata for gRPC requests.
19
18
 
20
19
  Args:
21
- api_key: The API key (without Bearer prefix)
20
+ api_key: The API key
22
21
  group: The group resource name in format groups/{group_id}
23
22
 
24
23
  Returns:
25
24
  List of metadata header tuples for authentication
26
25
  """
27
26
  return [
28
- (AUTHORIZATION_HEADER_KEY, f"{BEARER_PREFIX}{api_key}"),
27
+ (API_KEY_HEADER, api_key),
29
28
  (GROUP_HEADER_KEY, group), # Send full groups/uuid format in header
30
29
  ]
@@ -82,14 +82,6 @@ class ApiUserServiceServicer(object):
82
82
  def GetApiUser(self, request, context):
83
83
  """
84
84
  Retrieves a single API user by its unique identifier.
85
-
86
- Parameters:
87
- - name: The resource name in format api_users/{api_user_id}
88
-
89
- Returns:
90
- - APIUser: Complete API user resource including metadata and roles
91
-
92
- Authorization: Requires ROLE_IAM_ADMIN or ROLE_IAM_VIEWER
93
85
  """
94
86
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
95
87
  context.set_details('Method not implemented!')
@@ -102,14 +94,6 @@ class ApiUserServiceServicer(object):
102
94
  The API user will be created in the authenticated group context
103
95
  and assigned the provided roles. The system generates a unique
104
96
  identifier and API key for authentication.
105
-
106
- Parameters:
107
- - api_user: APIUser configuration (name field ignored, assigned by system)
108
-
109
- Returns:
110
- - APIUser: Newly created API user with generated name and API key
111
-
112
- Authorization: Requires ROLE_IAM_ADMIN
113
97
  """
114
98
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
115
99
  context.set_details('Method not implemented!')
@@ -121,11 +105,6 @@ class ApiUserServiceServicer(object):
121
105
 
122
106
  Returns all API users that belong to the current group,
123
107
  regardless of their active/inactive state.
124
-
125
- Returns:
126
- - ListApiUsersResponse: Collection of API users in the group
127
-
128
- Authorization: Requires ROLE_IAM_ADMIN or ROLE_IAM_VIEWER
129
108
  """
130
109
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
131
110
  context.set_details('Method not implemented!')
@@ -137,14 +116,6 @@ class ApiUserServiceServicer(object):
137
116
 
138
117
  Performs substring matching on API user display names
139
118
  within the authenticated group context.
140
-
141
- Parameters:
142
- - display_name: Substring to search for in display names
143
-
144
- Returns:
145
- - SearchApiUsersResponse: Collection of matching API users
146
-
147
- Authorization: Requires ROLE_IAM_ADMIN or ROLE_IAM_VIEWER
148
119
  """
149
120
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
150
121
  context.set_details('Method not implemented!')
@@ -156,14 +127,6 @@ class ApiUserServiceServicer(object):
156
127
 
157
128
  Changes the API user state to active, allowing the associated
158
129
  API key to be used for authentication and authorization.
159
-
160
- Parameters:
161
- - name: The resource name in format api_users/{api_user_id}
162
-
163
- Returns:
164
- - APIUser: Updated API user with active state
165
-
166
- Authorization: Requires ROLE_IAM_ADMIN
167
130
  """
168
131
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
169
132
  context.set_details('Method not implemented!')
@@ -175,14 +138,6 @@ class ApiUserServiceServicer(object):
175
138
 
176
139
  Changes the API user state to inactive, preventing the associated
177
140
  API key from being used for authentication.
178
-
179
- Parameters:
180
- - name: The resource name in format api_users/{api_user_id}
181
-
182
- Returns:
183
- - APIUser: Updated API user with inactive state
184
-
185
- Authorization: Requires ROLE_IAM_ADMIN
186
141
  """
187
142
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
188
143
  context.set_details('Method not implemented!')
@@ -194,14 +149,6 @@ class ApiUserServiceServicer(object):
194
149
 
195
150
  This method is used for authentication flows to lookup
196
151
  an API user based on the hash of their API key.
197
-
198
- Parameters:
199
- - key_hash: Hash of the API key to lookup
200
-
201
- Returns:
202
- - APIUser: Complete API user resource associated with the key
203
-
204
- Authorization: Requires ROLE_IAM_ADMIN or ROLE_IAM_VIEWER
205
152
  """
206
153
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
207
154
  context.set_details('Method not implemented!')
@@ -25,7 +25,7 @@ _sym_db = _symbol_database.Default()
25
25
  from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2
26
26
 
27
27
 
28
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n meshtrade/iam/role/v1/role.proto\x12\x15meshtrade.iam.role.v1\x1a google/protobuf/descriptor.proto\"=\n\x08RoleList\x12\x31\n\x05roles\x18\x01 \x03(\x0e\x32\x1b.meshtrade.iam.role.v1.RoleR\x05roles*\xe6\x02\n\x04Role\x12\x14\n\x10ROLE_UNSPECIFIED\x10\x00\x12\x17\n\x11ROLE_WALLET_ADMIN\x10\xc0\x84=\x12\x18\n\x12ROLE_WALLET_VIEWER\x10\xc1\x84=\x12\x1b\n\x15ROLE_COMPLIANCE_ADMIN\x10\x80\x89z\x12\x1c\n\x16ROLE_COMPLIANCE_VIEWER\x10\x81\x89z\x12\x15\n\x0eROLE_IAM_ADMIN\x10\xc0\x8d\xb7\x01\x12\x16\n\x0fROLE_IAM_VIEWER\x10\xc1\x8d\xb7\x01\x12\x1e\n\x17ROLE_ISSUANCE_HUB_ADMIN\x10\x80\x92\xf4\x01\x12\x1f\n\x18ROLE_ISSUANCE_HUB_VIEWER\x10\x81\x92\xf4\x01\x12\x19\n\x12ROLE_TRADING_ADMIN\x10\xc0\x96\xb1\x02\x12\x1a\n\x13ROLE_TRADING_VIEWER\x10\xc1\x96\xb1\x02\x12\x18\n\x11ROLE_REPORT_ADMIN\x10\x80\x9b\xee\x02\x12\x19\n\x12ROLE_REPORT_VIEWER\x10\x81\x9b\xee\x02:f\n\x0estandard_roles\x12\x1c.google.protobuf.FileOptions\x18\xd3\x86\x03 \x01(\x0b\x32\x1f.meshtrade.iam.role.v1.RoleListR\rstandardRoles:W\n\x05roles\x12\x1e.google.protobuf.MethodOptions\x18\xd5\x86\x03 \x01(\x0b\x32\x1f.meshtrade.iam.role.v1.RoleListR\x05rolesBN\n\x1c\x63o.meshtrade.api.iam.role.v1Z.github.com/meshtrade/api/go/iam/role/v1;rolev1b\x06proto3')
28
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n meshtrade/iam/role/v1/role.proto\x12\x15meshtrade.iam.role.v1\x1a google/protobuf/descriptor.proto\"=\n\x08RoleList\x12\x31\n\x05roles\x18\x01 \x03(\x0e\x32\x1b.meshtrade.iam.role.v1.RoleR\x05roles*\xec\x02\n\x04Role\x12\x14\n\x10ROLE_UNSPECIFIED\x10\x00\x12\x17\n\x11ROLE_WALLET_ADMIN\x10\xc0\x84=\x12\x18\n\x12ROLE_WALLET_VIEWER\x10\xc1\x84=\x12\x1b\n\x15ROLE_COMPLIANCE_ADMIN\x10\x80\x89z\x12\x1c\n\x16ROLE_COMPLIANCE_VIEWER\x10\x81\x89z\x12\x15\n\x0eROLE_IAM_ADMIN\x10\xc0\x8d\xb7\x01\x12\x16\n\x0fROLE_IAM_VIEWER\x10\xc1\x8d\xb7\x01\x12\x1e\n\x17ROLE_ISSUANCE_HUB_ADMIN\x10\x80\x92\xf4\x01\x12\x1f\n\x18ROLE_ISSUANCE_HUB_VIEWER\x10\x81\x92\xf4\x01\x12\x19\n\x12ROLE_TRADING_ADMIN\x10\xc0\x96\xb1\x02\x12\x1a\n\x13ROLE_TRADING_VIEWER\x10\xc1\x96\xb1\x02\x12\x1b\n\x14ROLE_REPORTING_ADMIN\x10\x80\x9b\xee\x02\x12\x1c\n\x15ROLE_REPORTING_VIEWER\x10\x81\x9b\xee\x02:f\n\x0estandard_roles\x12\x1c.google.protobuf.FileOptions\x18\xd3\x86\x03 \x01(\x0b\x32\x1f.meshtrade.iam.role.v1.RoleListR\rstandardRoles:W\n\x05roles\x12\x1e.google.protobuf.MethodOptions\x18\xd5\x86\x03 \x01(\x0b\x32\x1f.meshtrade.iam.role.v1.RoleListR\x05rolesBN\n\x1c\x63o.meshtrade.api.iam.role.v1Z.github.com/meshtrade/api/go/iam/role/v1;rolev1b\x06proto3')
29
29
 
30
30
  _globals = globals()
31
31
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -34,7 +34,7 @@ if not _descriptor._USE_C_DESCRIPTORS:
34
34
  _globals['DESCRIPTOR']._loaded_options = None
35
35
  _globals['DESCRIPTOR']._serialized_options = b'\n\034co.meshtrade.api.iam.role.v1Z.github.com/meshtrade/api/go/iam/role/v1;rolev1'
36
36
  _globals['_ROLE']._serialized_start=157
37
- _globals['_ROLE']._serialized_end=515
37
+ _globals['_ROLE']._serialized_end=521
38
38
  _globals['_ROLELIST']._serialized_start=93
39
39
  _globals['_ROLELIST']._serialized_end=154
40
40
  # @@protoc_insertion_point(module_scope)
@@ -21,8 +21,8 @@ class Role(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
21
21
  ROLE_ISSUANCE_HUB_VIEWER: _ClassVar[Role]
22
22
  ROLE_TRADING_ADMIN: _ClassVar[Role]
23
23
  ROLE_TRADING_VIEWER: _ClassVar[Role]
24
- ROLE_REPORT_ADMIN: _ClassVar[Role]
25
- ROLE_REPORT_VIEWER: _ClassVar[Role]
24
+ ROLE_REPORTING_ADMIN: _ClassVar[Role]
25
+ ROLE_REPORTING_VIEWER: _ClassVar[Role]
26
26
  ROLE_UNSPECIFIED: Role
27
27
  ROLE_WALLET_ADMIN: Role
28
28
  ROLE_WALLET_VIEWER: Role
@@ -34,8 +34,8 @@ ROLE_ISSUANCE_HUB_ADMIN: Role
34
34
  ROLE_ISSUANCE_HUB_VIEWER: Role
35
35
  ROLE_TRADING_ADMIN: Role
36
36
  ROLE_TRADING_VIEWER: Role
37
- ROLE_REPORT_ADMIN: Role
38
- ROLE_REPORT_VIEWER: Role
37
+ ROLE_REPORTING_ADMIN: Role
38
+ ROLE_REPORTING_VIEWER: Role
39
39
  STANDARD_ROLES_FIELD_NUMBER: _ClassVar[int]
40
40
  standard_roles: _descriptor.FieldDescriptor
41
41
  ROLES_FIELD_NUMBER: _ClassVar[int]
@@ -1,4 +1,4 @@
1
- """Income Report v1 package."""
1
+ """Account Report v1 package."""
2
2
 
3
3
  # ===================================================================
4
4
  # AUTO-GENERATED SECTION - ONLY EDIT BELOW THE CLOSING COMMENT BLOCK
@@ -13,16 +13,18 @@
13
13
  # ===================================================================
14
14
 
15
15
  # Generated protobuf imports
16
+ from .fee_entry_pb2 import FeeEntry
17
+ from .income_entry_pb2 import IncomeEntry, IncomeNarrative
18
+ from .trading_statement_entry_pb2 import TradingStatementEntry
16
19
  from .disclaimer_pb2 import Disclaimer
17
- from .entry_pb2 import Entry, Narrative
18
- from .income_report_pb2 import IncomeReport
19
- from .service_pb2 import GetExcelIncomeReportRequest, GetExcelIncomeReportResponse, GetIncomeReportRequest
20
+ from .account_report_pb2 import AccountReport
21
+ from .service_pb2 import GetAccountReportRequest, GetExcelAccountReportRequest, GetExcelAccountReportResponse
20
22
 
21
23
  # Generated service imports
22
24
  from .service_meshpy import (
23
- IncomeReportService,
24
- IncomeReportServiceGRPCClient,
25
- IncomeReportServiceGRPCClientInterface,
25
+ AccountReportService,
26
+ AccountReportServiceGRPCClient,
27
+ AccountReportServiceGRPCClientInterface,
26
28
  )
27
29
  from .service_options_meshpy import ClientOptions
28
30
 
@@ -46,15 +48,17 @@ from .service_options_meshpy import ClientOptions
46
48
  # Combined auto-generated and manual exports
47
49
  __all__ = [
48
50
  # Generated exports
51
+ "AccountReport",
52
+ "AccountReportService",
53
+ "AccountReportServiceGRPCClient",
54
+ "AccountReportServiceGRPCClientInterface",
49
55
  "ClientOptions",
50
56
  "Disclaimer",
51
- "Entry",
52
- "GetExcelIncomeReportRequest",
53
- "GetExcelIncomeReportResponse",
54
- "GetIncomeReportRequest",
55
- "IncomeReport",
56
- "IncomeReportService",
57
- "IncomeReportServiceGRPCClient",
58
- "IncomeReportServiceGRPCClientInterface",
59
- "Narrative",
57
+ "FeeEntry",
58
+ "GetAccountReportRequest",
59
+ "GetExcelAccountReportRequest",
60
+ "GetExcelAccountReportResponse",
61
+ "IncomeEntry",
62
+ "IncomeNarrative",
63
+ "TradingStatementEntry",
60
64
  ]
@@ -0,0 +1,46 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: meshtrade/reporting/account_report/v1/account_report.proto
5
+ # Protobuf Python Version: 6.31.1
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 6,
15
+ 31,
16
+ 1,
17
+ '',
18
+ 'meshtrade/reporting/account_report/v1/account_report.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
26
+ from meshtrade.type.v1 import token_pb2 as meshtrade_dot_type_dot_v1_dot_token__pb2
27
+ from meshtrade.type.v1 import address_pb2 as meshtrade_dot_type_dot_v1_dot_address__pb2
28
+ from meshtrade.reporting.account_report.v1 import fee_entry_pb2 as meshtrade_dot_reporting_dot_account__report_dot_v1_dot_fee__entry__pb2
29
+ from meshtrade.reporting.account_report.v1 import income_entry_pb2 as meshtrade_dot_reporting_dot_account__report_dot_v1_dot_income__entry__pb2
30
+ from meshtrade.reporting.account_report.v1 import trading_statement_entry_pb2 as meshtrade_dot_reporting_dot_account__report_dot_v1_dot_trading__statement__entry__pb2
31
+ from meshtrade.reporting.account_report.v1 import disclaimer_pb2 as meshtrade_dot_reporting_dot_account__report_dot_v1_dot_disclaimer__pb2
32
+
33
+
34
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n:meshtrade/reporting/account_report/v1/account_report.proto\x12%meshtrade.reporting.account_report.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1dmeshtrade/type/v1/token.proto\x1a\x1fmeshtrade/type/v1/address.proto\x1a\x35meshtrade/reporting/account_report/v1/fee_entry.proto\x1a\x38meshtrade/reporting/account_report/v1/income_entry.proto\x1a\x43meshtrade/reporting/account_report/v1/trading_statement_entry.proto\x1a\x36meshtrade/reporting/account_report/v1/disclaimer.proto\"\xfd\x06\n\rAccountReport\x12Y\n\x0eincome_entries\x18\x01 \x03(\x0b\x32\x32.meshtrade.reporting.account_report.v1.IncomeEntryR\rincomeEntries\x12P\n\x0b\x66\x65\x65_entries\x18\x02 \x03(\x0b\x32/.meshtrade.reporting.account_report.v1.FeeEntryR\nfeeEntries\x12x\n\x19trading_statement_entries\x18\x03 \x03(\x0b\x32<.meshtrade.reporting.account_report.v1.TradingStatementEntryR\x17tradingStatementEntries\x12G\n\x12reporting_currency\x18\x04 \x01(\x0b\x32\x18.meshtrade.type.v1.TokenR\x11reportingCurrency\x12S\n\x06period\x18\x05 \x01(\x0b\x32;.meshtrade.reporting.account_report.v1.AccountReport.PeriodR\x06period\x12\x43\n\x0fgeneration_date\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0egenerationDate\x12%\n\x0e\x61\x63\x63ount_number\x18\x07 \x01(\tR\raccountNumber\x12S\n\x0b\x64isclaimers\x18\x08 \x03(\x0b\x32\x31.meshtrade.reporting.account_report.v1.DisclaimerR\x0b\x64isclaimers\x12\x41\n\x0e\x63lient_address\x18\t \x01(\x0b\x32\x1a.meshtrade.type.v1.AddressR\rclientAddress\x12\x1f\n\x0b\x63lient_name\x18\n \x01(\tR\nclientName\x12\x1c\n\tcopyright\x18\x0b \x01(\tR\tcopyright\x1a\x64\n\x06Period\x12.\n\x04\x66rom\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x04\x66rom\x12*\n\x02to\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x02toBx\n,co.meshtrade.api.reporting.account_report.v1ZHgithub.com/meshtrade/api/go/reporting/account_report/v1;account_reportv1b\x06proto3')
35
+
36
+ _globals = globals()
37
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
38
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.reporting.account_report.v1.account_report_pb2', _globals)
39
+ if not _descriptor._USE_C_DESCRIPTORS:
40
+ _globals['DESCRIPTOR']._loaded_options = None
41
+ _globals['DESCRIPTOR']._serialized_options = b'\n,co.meshtrade.api.reporting.account_report.v1ZHgithub.com/meshtrade/api/go/reporting/account_report/v1;account_reportv1'
42
+ _globals['_ACCOUNTREPORT']._serialized_start=437
43
+ _globals['_ACCOUNTREPORT']._serialized_end=1330
44
+ _globals['_ACCOUNTREPORT_PERIOD']._serialized_start=1230
45
+ _globals['_ACCOUNTREPORT_PERIOD']._serialized_end=1330
46
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,48 @@
1
+ import datetime
2
+
3
+ from google.protobuf import timestamp_pb2 as _timestamp_pb2
4
+ from meshtrade.type.v1 import token_pb2 as _token_pb2
5
+ from meshtrade.type.v1 import address_pb2 as _address_pb2
6
+ from meshtrade.reporting.account_report.v1 import fee_entry_pb2 as _fee_entry_pb2
7
+ from meshtrade.reporting.account_report.v1 import income_entry_pb2 as _income_entry_pb2
8
+ from meshtrade.reporting.account_report.v1 import trading_statement_entry_pb2 as _trading_statement_entry_pb2
9
+ from meshtrade.reporting.account_report.v1 import disclaimer_pb2 as _disclaimer_pb2
10
+ from google.protobuf.internal import containers as _containers
11
+ from google.protobuf import descriptor as _descriptor
12
+ from google.protobuf import message as _message
13
+ from collections.abc import Iterable as _Iterable, Mapping as _Mapping
14
+ from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
15
+
16
+ DESCRIPTOR: _descriptor.FileDescriptor
17
+
18
+ class AccountReport(_message.Message):
19
+ __slots__ = ("income_entries", "fee_entries", "trading_statement_entries", "reporting_currency", "period", "generation_date", "account_number", "disclaimers", "client_address", "client_name", "copyright")
20
+ class Period(_message.Message):
21
+ __slots__ = ("to",)
22
+ FROM_FIELD_NUMBER: _ClassVar[int]
23
+ TO_FIELD_NUMBER: _ClassVar[int]
24
+ to: _timestamp_pb2.Timestamp
25
+ def __init__(self, to: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., **kwargs) -> None: ...
26
+ INCOME_ENTRIES_FIELD_NUMBER: _ClassVar[int]
27
+ FEE_ENTRIES_FIELD_NUMBER: _ClassVar[int]
28
+ TRADING_STATEMENT_ENTRIES_FIELD_NUMBER: _ClassVar[int]
29
+ REPORTING_CURRENCY_FIELD_NUMBER: _ClassVar[int]
30
+ PERIOD_FIELD_NUMBER: _ClassVar[int]
31
+ GENERATION_DATE_FIELD_NUMBER: _ClassVar[int]
32
+ ACCOUNT_NUMBER_FIELD_NUMBER: _ClassVar[int]
33
+ DISCLAIMERS_FIELD_NUMBER: _ClassVar[int]
34
+ CLIENT_ADDRESS_FIELD_NUMBER: _ClassVar[int]
35
+ CLIENT_NAME_FIELD_NUMBER: _ClassVar[int]
36
+ COPYRIGHT_FIELD_NUMBER: _ClassVar[int]
37
+ income_entries: _containers.RepeatedCompositeFieldContainer[_income_entry_pb2.IncomeEntry]
38
+ fee_entries: _containers.RepeatedCompositeFieldContainer[_fee_entry_pb2.FeeEntry]
39
+ trading_statement_entries: _containers.RepeatedCompositeFieldContainer[_trading_statement_entry_pb2.TradingStatementEntry]
40
+ reporting_currency: _token_pb2.Token
41
+ period: AccountReport.Period
42
+ generation_date: _timestamp_pb2.Timestamp
43
+ account_number: str
44
+ disclaimers: _containers.RepeatedCompositeFieldContainer[_disclaimer_pb2.Disclaimer]
45
+ client_address: _address_pb2.Address
46
+ client_name: str
47
+ copyright: str
48
+ def __init__(self, income_entries: _Optional[_Iterable[_Union[_income_entry_pb2.IncomeEntry, _Mapping]]] = ..., fee_entries: _Optional[_Iterable[_Union[_fee_entry_pb2.FeeEntry, _Mapping]]] = ..., trading_statement_entries: _Optional[_Iterable[_Union[_trading_statement_entry_pb2.TradingStatementEntry, _Mapping]]] = ..., reporting_currency: _Optional[_Union[_token_pb2.Token, _Mapping]] = ..., period: _Optional[_Union[AccountReport.Period, _Mapping]] = ..., generation_date: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., account_number: _Optional[str] = ..., disclaimers: _Optional[_Iterable[_Union[_disclaimer_pb2.Disclaimer, _Mapping]]] = ..., client_address: _Optional[_Union[_address_pb2.Address, _Mapping]] = ..., client_name: _Optional[str] = ..., copyright: _Optional[str] = ...) -> None: ...
@@ -1,7 +1,7 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
- # source: meshtrade/reporting/income_report/v1/disclaimer.proto
4
+ # source: meshtrade/reporting/account_report/v1/disclaimer.proto
5
5
  # Protobuf Python Version: 6.31.1
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
@@ -15,7 +15,7 @@ _runtime_version.ValidateProtobufRuntimeVersion(
15
15
  31,
16
16
  1,
17
17
  '',
18
- 'meshtrade/reporting/income_report/v1/disclaimer.proto'
18
+ 'meshtrade/reporting/account_report/v1/disclaimer.proto'
19
19
  )
20
20
  # @@protoc_insertion_point(imports)
21
21
 
@@ -24,14 +24,14 @@ _sym_db = _symbol_database.Default()
24
24
 
25
25
 
26
26
 
27
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n5meshtrade/reporting/income_report/v1/disclaimer.proto\x12$meshtrade.reporting.income_report.v1\"D\n\nDisclaimer\x12\x14\n\x05title\x18\x01 \x01(\tR\x05title\x12 \n\x0b\x64\x65scription\x18\x02 \x01(\tR\x0b\x64\x65scriptionBu\n+co.meshtrade.api.reporting.income_report.v1ZFgithub.com/meshtrade/api/go/reporting/income_report/v1;income_reportv1b\x06proto3')
27
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n6meshtrade/reporting/account_report/v1/disclaimer.proto\x12%meshtrade.reporting.account_report.v1\"D\n\nDisclaimer\x12\x14\n\x05title\x18\x01 \x01(\tR\x05title\x12 \n\x0b\x64\x65scription\x18\x02 \x01(\tR\x0b\x64\x65scriptionBx\n,co.meshtrade.api.reporting.account_report.v1ZHgithub.com/meshtrade/api/go/reporting/account_report/v1;account_reportv1b\x06proto3')
28
28
 
29
29
  _globals = globals()
30
30
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
31
- _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.reporting.income_report.v1.disclaimer_pb2', _globals)
31
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.reporting.account_report.v1.disclaimer_pb2', _globals)
32
32
  if not _descriptor._USE_C_DESCRIPTORS:
33
33
  _globals['DESCRIPTOR']._loaded_options = None
34
- _globals['DESCRIPTOR']._serialized_options = b'\n+co.meshtrade.api.reporting.income_report.v1ZFgithub.com/meshtrade/api/go/reporting/income_report/v1;income_reportv1'
35
- _globals['_DISCLAIMER']._serialized_start=95
36
- _globals['_DISCLAIMER']._serialized_end=163
34
+ _globals['DESCRIPTOR']._serialized_options = b'\n,co.meshtrade.api.reporting.account_report.v1ZHgithub.com/meshtrade/api/go/reporting/account_report/v1;account_reportv1'
35
+ _globals['_DISCLAIMER']._serialized_start=97
36
+ _globals['_DISCLAIMER']._serialized_end=165
37
37
  # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,39 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: meshtrade/reporting/account_report/v1/fee_entry.proto
5
+ # Protobuf Python Version: 6.31.1
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 6,
15
+ 31,
16
+ 1,
17
+ '',
18
+ 'meshtrade/reporting/account_report/v1/fee_entry.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
26
+ from meshtrade.type.v1 import amount_pb2 as meshtrade_dot_type_dot_v1_dot_amount__pb2
27
+
28
+
29
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n5meshtrade/reporting/account_report/v1/fee_entry.proto\x12%meshtrade.reporting.account_report.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1emeshtrade/type/v1/amount.proto\"\xc7\x02\n\x08\x46\x65\x65\x45ntry\x12\x45\n\x10transaction_date\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0ftransactionDate\x12%\n\x0etransaction_id\x18\x02 \x01(\tR\rtransactionId\x12 \n\x0b\x64\x65scription\x18\x03 \x01(\tR\x0b\x64\x65scription\x12\x31\n\x06\x61mount\x18\x04 \x01(\x0b\x32\x19.meshtrade.type.v1.AmountR\x06\x61mount\x12Q\n\x17reported_currency_value\x18\x05 \x01(\x0b\x32\x19.meshtrade.type.v1.AmountR\x15reportedCurrencyValue\x12%\n\x0etoken_currency\x18\x06 \x01(\tR\rtokenCurrencyBx\n,co.meshtrade.api.reporting.account_report.v1ZHgithub.com/meshtrade/api/go/reporting/account_report/v1;account_reportv1b\x06proto3')
30
+
31
+ _globals = globals()
32
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
33
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.reporting.account_report.v1.fee_entry_pb2', _globals)
34
+ if not _descriptor._USE_C_DESCRIPTORS:
35
+ _globals['DESCRIPTOR']._loaded_options = None
36
+ _globals['DESCRIPTOR']._serialized_options = b'\n,co.meshtrade.api.reporting.account_report.v1ZHgithub.com/meshtrade/api/go/reporting/account_report/v1;account_reportv1'
37
+ _globals['_FEEENTRY']._serialized_start=162
38
+ _globals['_FEEENTRY']._serialized_end=489
39
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,26 @@
1
+ import datetime
2
+
3
+ from google.protobuf import timestamp_pb2 as _timestamp_pb2
4
+ from meshtrade.type.v1 import amount_pb2 as _amount_pb2
5
+ from google.protobuf import descriptor as _descriptor
6
+ from google.protobuf import message as _message
7
+ from collections.abc import Mapping as _Mapping
8
+ from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
9
+
10
+ DESCRIPTOR: _descriptor.FileDescriptor
11
+
12
+ class FeeEntry(_message.Message):
13
+ __slots__ = ("transaction_date", "transaction_id", "description", "amount", "reported_currency_value", "token_currency")
14
+ TRANSACTION_DATE_FIELD_NUMBER: _ClassVar[int]
15
+ TRANSACTION_ID_FIELD_NUMBER: _ClassVar[int]
16
+ DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
17
+ AMOUNT_FIELD_NUMBER: _ClassVar[int]
18
+ REPORTED_CURRENCY_VALUE_FIELD_NUMBER: _ClassVar[int]
19
+ TOKEN_CURRENCY_FIELD_NUMBER: _ClassVar[int]
20
+ transaction_date: _timestamp_pb2.Timestamp
21
+ transaction_id: str
22
+ description: str
23
+ amount: _amount_pb2.Amount
24
+ reported_currency_value: _amount_pb2.Amount
25
+ token_currency: str
26
+ def __init__(self, transaction_date: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., transaction_id: _Optional[str] = ..., description: _Optional[str] = ..., amount: _Optional[_Union[_amount_pb2.Amount, _Mapping]] = ..., reported_currency_value: _Optional[_Union[_amount_pb2.Amount, _Mapping]] = ..., token_currency: _Optional[str] = ...) -> None: ...
@@ -0,0 +1,42 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: meshtrade/reporting/account_report/v1/income_entry.proto
5
+ # Protobuf Python Version: 6.31.1
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 6,
15
+ 31,
16
+ 1,
17
+ '',
18
+ 'meshtrade/reporting/account_report/v1/income_entry.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from meshtrade.type.v1 import token_pb2 as meshtrade_dot_type_dot_v1_dot_token__pb2
26
+ from meshtrade.type.v1 import amount_pb2 as meshtrade_dot_type_dot_v1_dot_amount__pb2
27
+ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
28
+
29
+
30
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n8meshtrade/reporting/account_report/v1/income_entry.proto\x12%meshtrade.reporting.account_report.v1\x1a\x1dmeshtrade/type/v1/token.proto\x1a\x1emeshtrade/type/v1/amount.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x8a\x03\n\x0bIncomeEntry\x12\x1d\n\nasset_name\x18\x01 \x01(\tR\tassetName\x12.\n\x05token\x18\x02 \x01(\x0b\x32\x18.meshtrade.type.v1.TokenR\x05token\x12.\n\x04\x64\x61te\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x04\x64\x61te\x12 \n\x0b\x64\x65scription\x18\x04 \x01(\tR\x0b\x64\x65scription\x12T\n\tnarrative\x18\x05 \x01(\x0e\x32\x36.meshtrade.reporting.account_report.v1.IncomeNarrativeR\tnarrative\x12\x31\n\x06\x61mount\x18\x06 \x01(\x0b\x32\x19.meshtrade.type.v1.AmountR\x06\x61mount\x12Q\n\x17reported_currency_value\x18\x07 \x01(\x0b\x32\x19.meshtrade.type.v1.AmountR\x15reportedCurrencyValue*l\n\x0fIncomeNarrative\x12 \n\x1cINCOME_NARRATIVE_UNSPECIFIED\x10\x00\x12\x1a\n\x16INCOME_NARRATIVE_YIELD\x10\x01\x12\x1b\n\x17INCOME_NARRATIVE_COUPON\x10\x02\x42x\n,co.meshtrade.api.reporting.account_report.v1ZHgithub.com/meshtrade/api/go/reporting/account_report/v1;account_reportv1b\x06proto3')
31
+
32
+ _globals = globals()
33
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
34
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.reporting.account_report.v1.income_entry_pb2', _globals)
35
+ if not _descriptor._USE_C_DESCRIPTORS:
36
+ _globals['DESCRIPTOR']._loaded_options = None
37
+ _globals['DESCRIPTOR']._serialized_options = b'\n,co.meshtrade.api.reporting.account_report.v1ZHgithub.com/meshtrade/api/go/reporting/account_report/v1;account_reportv1'
38
+ _globals['_INCOMENARRATIVE']._serialized_start=592
39
+ _globals['_INCOMENARRATIVE']._serialized_end=700
40
+ _globals['_INCOMEENTRY']._serialized_start=196
41
+ _globals['_INCOMEENTRY']._serialized_end=590
42
+ # @@protoc_insertion_point(module_scope)
@@ -11,16 +11,16 @@ from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
11
11
 
12
12
  DESCRIPTOR: _descriptor.FileDescriptor
13
13
 
14
- class Narrative(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
14
+ class IncomeNarrative(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
15
15
  __slots__ = ()
16
- NARRATIVE_UNSPECIFIED: _ClassVar[Narrative]
17
- NARRATIVE_YIELD: _ClassVar[Narrative]
18
- NARRATIVE_COUPON: _ClassVar[Narrative]
19
- NARRATIVE_UNSPECIFIED: Narrative
20
- NARRATIVE_YIELD: Narrative
21
- NARRATIVE_COUPON: Narrative
16
+ INCOME_NARRATIVE_UNSPECIFIED: _ClassVar[IncomeNarrative]
17
+ INCOME_NARRATIVE_YIELD: _ClassVar[IncomeNarrative]
18
+ INCOME_NARRATIVE_COUPON: _ClassVar[IncomeNarrative]
19
+ INCOME_NARRATIVE_UNSPECIFIED: IncomeNarrative
20
+ INCOME_NARRATIVE_YIELD: IncomeNarrative
21
+ INCOME_NARRATIVE_COUPON: IncomeNarrative
22
22
 
23
- class Entry(_message.Message):
23
+ class IncomeEntry(_message.Message):
24
24
  __slots__ = ("asset_name", "token", "date", "description", "narrative", "amount", "reported_currency_value")
25
25
  ASSET_NAME_FIELD_NUMBER: _ClassVar[int]
26
26
  TOKEN_FIELD_NUMBER: _ClassVar[int]
@@ -33,7 +33,7 @@ class Entry(_message.Message):
33
33
  token: _token_pb2.Token
34
34
  date: _timestamp_pb2.Timestamp
35
35
  description: str
36
- narrative: Narrative
36
+ narrative: IncomeNarrative
37
37
  amount: _amount_pb2.Amount
38
38
  reported_currency_value: _amount_pb2.Amount
39
- def __init__(self, asset_name: _Optional[str] = ..., token: _Optional[_Union[_token_pb2.Token, _Mapping]] = ..., date: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., description: _Optional[str] = ..., narrative: _Optional[_Union[Narrative, str]] = ..., amount: _Optional[_Union[_amount_pb2.Amount, _Mapping]] = ..., reported_currency_value: _Optional[_Union[_amount_pb2.Amount, _Mapping]] = ...) -> None: ...
39
+ def __init__(self, asset_name: _Optional[str] = ..., token: _Optional[_Union[_token_pb2.Token, _Mapping]] = ..., date: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., description: _Optional[str] = ..., narrative: _Optional[_Union[IncomeNarrative, str]] = ..., amount: _Optional[_Union[_amount_pb2.Amount, _Mapping]] = ..., reported_currency_value: _Optional[_Union[_amount_pb2.Amount, _Mapping]] = ...) -> None: ...
@@ -0,0 +1,4 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+