maleo-identity 0.0.85__py3-none-any.whl → 0.1.24__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.
Files changed (138) hide show
  1. maleo/identity/constants/api_key.py +13 -0
  2. maleo/identity/constants/organization.py +3 -10
  3. maleo/identity/constants/organization_registration_code.py +5 -17
  4. maleo/identity/constants/organization_relation.py +13 -0
  5. maleo/identity/constants/patient.py +7 -0
  6. maleo/identity/constants/user.py +3 -20
  7. maleo/identity/constants/user_medical_role.py +13 -0
  8. maleo/identity/constants/user_organization_role.py +5 -39
  9. maleo/identity/constants/user_profile.py +3 -21
  10. maleo/identity/constants/user_system_role.py +9 -8
  11. maleo/identity/enums/api_key.py +25 -0
  12. maleo/identity/enums/organization.py +16 -3
  13. maleo/identity/enums/organization_registration_code.py +9 -0
  14. maleo/identity/enums/organization_relation.py +22 -0
  15. maleo/identity/enums/patient.py +29 -0
  16. maleo/identity/enums/user.py +16 -7
  17. maleo/identity/enums/user_medical_role.py +22 -0
  18. maleo/identity/enums/user_organization_role.py +19 -12
  19. maleo/identity/enums/user_profile.py +7 -9
  20. maleo/identity/enums/user_system_role.py +30 -0
  21. maleo/identity/mixins/api_key.py +72 -0
  22. maleo/identity/mixins/common.py +29 -0
  23. maleo/identity/mixins/organization.py +68 -8
  24. maleo/identity/mixins/organization_registration_code.py +126 -9
  25. maleo/identity/mixins/organization_relation.py +80 -0
  26. maleo/identity/mixins/patient.py +65 -0
  27. maleo/identity/mixins/user.py +86 -24
  28. maleo/identity/mixins/user_medical_role.py +68 -0
  29. maleo/identity/mixins/user_organization_role.py +68 -4
  30. maleo/identity/mixins/user_profile.py +84 -53
  31. maleo/identity/mixins/user_system_role.py +72 -4
  32. maleo/identity/schemas/api_key.py +171 -0
  33. maleo/identity/schemas/common.py +335 -0
  34. maleo/identity/schemas/organization.py +311 -0
  35. maleo/identity/schemas/organization_registration_code.py +314 -0
  36. maleo/identity/schemas/organization_relation.py +315 -0
  37. maleo/identity/schemas/patient.py +349 -0
  38. maleo/identity/schemas/user.py +318 -0
  39. maleo/identity/schemas/user_medical_role.py +316 -0
  40. maleo/identity/schemas/user_organization_role.py +317 -0
  41. maleo/identity/schemas/user_profile.py +362 -0
  42. maleo/identity/schemas/user_system_role.py +339 -0
  43. maleo/identity/types/api_key.py +7 -0
  44. maleo/identity/types/organization.py +4 -0
  45. maleo/identity/types/organization_registration_code.py +4 -0
  46. maleo/identity/types/organization_relation.py +7 -0
  47. maleo/identity/types/patient.py +4 -0
  48. maleo/identity/types/user.py +4 -0
  49. maleo/identity/types/user_medical_role.py +7 -0
  50. maleo/identity/types/user_organization_role.py +7 -0
  51. maleo/identity/types/user_profile.py +4 -0
  52. maleo/identity/types/user_system_role.py +8 -0
  53. maleo/identity/utils/organization.py +32 -0
  54. maleo/identity/utils/user.py +32 -0
  55. maleo_identity-0.1.24.dist-info/METADATA +119 -0
  56. maleo_identity-0.1.24.dist-info/RECORD +66 -0
  57. maleo_identity-0.1.24.dist-info/licenses/LICENSE +57 -0
  58. maleo/identity/client/manager.py +0 -157
  59. maleo/identity/client/services/__init__.py +0 -0
  60. maleo/identity/client/services/organization.py +0 -1944
  61. maleo/identity/client/services/organization_registration_code.py +0 -470
  62. maleo/identity/client/services/organization_role.py +0 -276
  63. maleo/identity/client/services/user.py +0 -1559
  64. maleo/identity/client/services/user_organization.py +0 -276
  65. maleo/identity/client/services/user_organization_role.py +0 -278
  66. maleo/identity/client/services/user_profile.py +0 -276
  67. maleo/identity/client/services/user_system_role.py +0 -276
  68. maleo/identity/constants/organization_role.py +0 -35
  69. maleo/identity/constants/user_organization.py +0 -58
  70. maleo/identity/db.py +0 -4
  71. maleo/identity/dtos/__init__.py +0 -0
  72. maleo/identity/dtos/configuration.py +0 -15
  73. maleo/identity/dtos/data/__init__.py +0 -0
  74. maleo/identity/dtos/data/organization_registration_code.py +0 -15
  75. maleo/identity/dtos/data/user_profile.py +0 -29
  76. maleo/identity/dtos/settings.py +0 -17
  77. maleo/identity/enums/general.py +0 -5
  78. maleo/identity/enums/organization_role.py +0 -7
  79. maleo/identity/enums/user_organization.py +0 -14
  80. maleo/identity/mixins/organization_role.py +0 -15
  81. maleo/identity/mixins/user_organization.py +0 -6
  82. maleo/identity/models/__init__.py +0 -0
  83. maleo/identity/models/organization.py +0 -62
  84. maleo/identity/models/organization_registration_code.py +0 -33
  85. maleo/identity/models/organization_role.py +0 -37
  86. maleo/identity/models/user.py +0 -39
  87. maleo/identity/models/user_organization.py +0 -48
  88. maleo/identity/models/user_organization_role.py +0 -61
  89. maleo/identity/models/user_profile.py +0 -33
  90. maleo/identity/models/user_system_role.py +0 -26
  91. maleo/identity/schemas/data/__init__.py +0 -0
  92. maleo/identity/schemas/data/organization.py +0 -36
  93. maleo/identity/schemas/data/organization_registration_code.py +0 -27
  94. maleo/identity/schemas/data/organization_role.py +0 -32
  95. maleo/identity/schemas/data/user.py +0 -33
  96. maleo/identity/schemas/data/user_organization.py +0 -23
  97. maleo/identity/schemas/data/user_organization_role.py +0 -13
  98. maleo/identity/schemas/data/user_profile.py +0 -59
  99. maleo/identity/schemas/data/user_system_role.py +0 -25
  100. maleo/identity/schemas/metadata/__init__.py +0 -0
  101. maleo/identity/schemas/metadata/user.py +0 -6
  102. maleo/identity/schemas/parameter/__init__.py +0 -0
  103. maleo/identity/schemas/parameter/client/__init__.py +0 -0
  104. maleo/identity/schemas/parameter/client/organization.py +0 -74
  105. maleo/identity/schemas/parameter/client/organization_registration_code.py +0 -24
  106. maleo/identity/schemas/parameter/client/organization_role.py +0 -42
  107. maleo/identity/schemas/parameter/client/user.py +0 -44
  108. maleo/identity/schemas/parameter/client/user_organization.py +0 -62
  109. maleo/identity/schemas/parameter/client/user_organization_role.py +0 -49
  110. maleo/identity/schemas/parameter/client/user_profile.py +0 -28
  111. maleo/identity/schemas/parameter/client/user_system_role.py +0 -43
  112. maleo/identity/schemas/parameter/general/__init__.py +0 -0
  113. maleo/identity/schemas/parameter/general/organization.py +0 -43
  114. maleo/identity/schemas/parameter/general/organization_registration_code.py +0 -54
  115. maleo/identity/schemas/parameter/general/organization_role.py +0 -14
  116. maleo/identity/schemas/parameter/general/user.py +0 -101
  117. maleo/identity/schemas/parameter/general/user_organization.py +0 -18
  118. maleo/identity/schemas/parameter/general/user_organization_role.py +0 -15
  119. maleo/identity/schemas/parameter/general/user_profile.py +0 -70
  120. maleo/identity/schemas/parameter/general/user_system_role.py +0 -30
  121. maleo/identity/schemas/parameter/service/__init__.py +0 -0
  122. maleo/identity/schemas/parameter/service/organization.py +0 -60
  123. maleo/identity/schemas/parameter/service/organization_registration_code.py +0 -24
  124. maleo/identity/schemas/parameter/service/organization_role.py +0 -35
  125. maleo/identity/schemas/parameter/service/user.py +0 -47
  126. maleo/identity/schemas/parameter/service/user_organization_role.py +0 -36
  127. maleo/identity/schemas/parameter/service/user_profile.py +0 -28
  128. maleo/identity/schemas/parameter/service/user_system_role.py +0 -31
  129. maleo/identity/types/base/__init__.py +0 -0
  130. maleo/identity/types/base/organization.py +0 -5
  131. maleo/identity/types/base/organization_registration_code.py +0 -4
  132. maleo/identity/types/base/user.py +0 -5
  133. maleo/identity/types/base/user_profile.py +0 -5
  134. maleo_identity-0.0.85.dist-info/METADATA +0 -40
  135. maleo_identity-0.0.85.dist-info/RECORD +0 -105
  136. /maleo/identity/{client → utils}/__init__.py +0 -0
  137. {maleo_identity-0.0.85.dist-info → maleo_identity-0.1.24.dist-info}/WHEEL +0 -0
  138. {maleo_identity-0.0.85.dist-info → maleo_identity-0.1.24.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,7 @@
1
+ from typing import Tuple
2
+ from uuid import UUID
3
+ from maleo.enums.organization import OrganizationRelation
4
+
5
+
6
+ CompositeIdentifierType = Tuple[int, int, OrganizationRelation]
7
+ IdentifierValueType = int | UUID | CompositeIdentifierType
@@ -0,0 +1,4 @@
1
+ from uuid import UUID
2
+
3
+
4
+ IdentifierValueType = int | UUID
@@ -0,0 +1,4 @@
1
+ from uuid import UUID
2
+
3
+
4
+ IdentifierValueType = int | UUID | str
@@ -0,0 +1,7 @@
1
+ from typing import Tuple
2
+ from uuid import UUID
3
+ from maleo.enums.medical import MedicalRole
4
+
5
+
6
+ CompositeIdentifierType = Tuple[int, int, MedicalRole]
7
+ IdentifierValueType = int | UUID | CompositeIdentifierType
@@ -0,0 +1,7 @@
1
+ from typing import Tuple
2
+ from uuid import UUID
3
+ from maleo.enums.organization import OrganizationRole
4
+
5
+
6
+ CompositeIdentifierType = Tuple[int, int, OrganizationRole]
7
+ IdentifierValueType = int | UUID | CompositeIdentifierType
@@ -0,0 +1,4 @@
1
+ from uuid import UUID
2
+
3
+
4
+ IdentifierValueType = int | UUID | str
@@ -0,0 +1,8 @@
1
+ from typing import Tuple
2
+ from uuid import UUID
3
+ from maleo.enums.system import SystemRole
4
+
5
+
6
+ BasicIdentifierType = int | UUID
7
+ CompositeIdentifierType = Tuple[int, SystemRole]
8
+ IdentifierValueType = BasicIdentifierType | CompositeIdentifierType
@@ -0,0 +1,32 @@
1
+ from typing import Literal, Type, overload
2
+ from ..schemas.common import (
3
+ StandardOrganizationSchema,
4
+ FullOrganizationSchema,
5
+ AnyOrganizationSchemaType,
6
+ )
7
+ from ..enums.organization import Granularity
8
+
9
+
10
+ @overload
11
+ def get_schema_model(
12
+ granularity: Literal[Granularity.STANDARD],
13
+ /,
14
+ ) -> Type[StandardOrganizationSchema]: ...
15
+ @overload
16
+ def get_schema_model(
17
+ granularity: Literal[Granularity.FULL],
18
+ /,
19
+ ) -> Type[FullOrganizationSchema]: ...
20
+ @overload
21
+ def get_schema_model(
22
+ granularity: Granularity = Granularity.STANDARD,
23
+ /,
24
+ ) -> AnyOrganizationSchemaType: ...
25
+ def get_schema_model(
26
+ granularity: Granularity = Granularity.STANDARD,
27
+ /,
28
+ ) -> AnyOrganizationSchemaType:
29
+ if granularity is Granularity.STANDARD:
30
+ return StandardOrganizationSchema
31
+ elif granularity is Granularity.FULL:
32
+ return FullOrganizationSchema
@@ -0,0 +1,32 @@
1
+ from typing import Literal, Type, overload
2
+ from ..schemas.common import (
3
+ StandardUserSchema,
4
+ FullUserSchema,
5
+ AnyUserSchemaType,
6
+ )
7
+ from ..enums.user import Granularity
8
+
9
+
10
+ @overload
11
+ def get_schema_model(
12
+ granularity: Literal[Granularity.STANDARD],
13
+ /,
14
+ ) -> Type[StandardUserSchema]: ...
15
+ @overload
16
+ def get_schema_model(
17
+ granularity: Literal[Granularity.FULL],
18
+ /,
19
+ ) -> Type[FullUserSchema]: ...
20
+ @overload
21
+ def get_schema_model(
22
+ granularity: Granularity = Granularity.STANDARD,
23
+ /,
24
+ ) -> AnyUserSchemaType: ...
25
+ def get_schema_model(
26
+ granularity: Granularity = Granularity.STANDARD,
27
+ /,
28
+ ) -> AnyUserSchemaType:
29
+ if granularity is Granularity.STANDARD:
30
+ return StandardUserSchema
31
+ elif granularity is Granularity.FULL:
32
+ return FullUserSchema
@@ -0,0 +1,119 @@
1
+ Metadata-Version: 2.4
2
+ Name: maleo-identity
3
+ Version: 0.1.24
4
+ Summary: MaleoIdentity service package
5
+ Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
+ License: Proprietary
7
+ Requires-Python: >=3.12
8
+ Description-Content-Type: text/markdown
9
+ License-File: LICENSE
10
+ Requires-Dist: annotated-types>=0.7.0
11
+ Requires-Dist: anyio>=4.11.0
12
+ Requires-Dist: bcrypt>=5.0.0
13
+ Requires-Dist: black>=25.9.0
14
+ Requires-Dist: cachetools>=6.2.1
15
+ Requires-Dist: certifi>=2025.10.5
16
+ Requires-Dist: cffi>=2.0.0
17
+ Requires-Dist: cfgv>=3.4.0
18
+ Requires-Dist: charset-normalizer>=3.4.3
19
+ Requires-Dist: click>=8.3.0
20
+ Requires-Dist: colorama>=0.4.6
21
+ Requires-Dist: cryptography>=46.0.2
22
+ Requires-Dist: distlib>=0.4.0
23
+ Requires-Dist: fastapi>=0.119.0
24
+ Requires-Dist: filelock>=3.20.0
25
+ Requires-Dist: google-api-core>=2.26.0
26
+ Requires-Dist: google-auth>=2.41.1
27
+ Requires-Dist: google-cloud-appengine-logging>=1.6.2
28
+ Requires-Dist: google-cloud-audit-log>=0.3.3
29
+ Requires-Dist: google-cloud-core>=2.4.3
30
+ Requires-Dist: google-cloud-logging>=3.12.1
31
+ Requires-Dist: google-cloud-pubsub>=2.31.1
32
+ Requires-Dist: googleapis-common-protos>=1.70.0
33
+ Requires-Dist: greenlet>=3.2.4
34
+ Requires-Dist: grpc-google-iam-v1>=0.14.2
35
+ Requires-Dist: grpcio>=1.75.1
36
+ Requires-Dist: grpcio-status>=1.75.1
37
+ Requires-Dist: h11>=0.16.0
38
+ Requires-Dist: httpcore>=1.0.9
39
+ Requires-Dist: httpx>=0.28.1
40
+ Requires-Dist: identify>=2.6.15
41
+ Requires-Dist: idna>=3.11
42
+ Requires-Dist: importlib_metadata>=8.7.0
43
+ Requires-Dist: iniconfig>=2.1.0
44
+ Requires-Dist: maleo-crypto>=0.0.50
45
+ Requires-Dist: maleo-enums>=0.0.50
46
+ Requires-Dist: maleo-logging>=0.0.50
47
+ Requires-Dist: maleo-metadata>=0.7.50
48
+ Requires-Dist: maleo-schemas>=0.7.50
49
+ Requires-Dist: maleo-types>=0.0.50
50
+ Requires-Dist: maleo-utils>=0.0.50
51
+ Requires-Dist: mypy_extensions>=1.1.0
52
+ Requires-Dist: nodeenv>=1.9.1
53
+ Requires-Dist: opentelemetry-api>=1.37.0
54
+ Requires-Dist: opentelemetry-sdk>=1.37.0
55
+ Requires-Dist: opentelemetry-semantic-conventions>=0.58b0
56
+ Requires-Dist: packaging>=25.0
57
+ Requires-Dist: pathspec>=0.12.1
58
+ Requires-Dist: platformdirs>=4.5.0
59
+ Requires-Dist: pluggy>=1.6.0
60
+ Requires-Dist: pre_commit>=4.3.0
61
+ Requires-Dist: proto-plus>=1.26.1
62
+ Requires-Dist: protobuf>=6.32.1
63
+ Requires-Dist: pyasn1>=0.6.1
64
+ Requires-Dist: pyasn1_modules>=0.4.2
65
+ Requires-Dist: pycparser>=2.23
66
+ Requires-Dist: pycryptodome>=3.23.0
67
+ Requires-Dist: pydantic>=2.12.2
68
+ Requires-Dist: pydantic-settings>=2.11.0
69
+ Requires-Dist: pydantic_core>=2.41.4
70
+ Requires-Dist: Pygments>=2.19.2
71
+ Requires-Dist: PyJWT>=2.10.1
72
+ Requires-Dist: pytest>=8.4.2
73
+ Requires-Dist: python-dotenv>=1.1.1
74
+ Requires-Dist: pytokens>=0.1.10
75
+ Requires-Dist: PyYAML>=6.0.3
76
+ Requires-Dist: requests>=2.32.5
77
+ Requires-Dist: rsa>=4.9.1
78
+ Requires-Dist: sniffio>=1.3.1
79
+ Requires-Dist: SQLAlchemy>=2.0.44
80
+ Requires-Dist: starlette>=0.48.0
81
+ Requires-Dist: typing-inspection>=0.4.2
82
+ Requires-Dist: typing_extensions>=4.15.0
83
+ Requires-Dist: ua-parser>=1.0.1
84
+ Requires-Dist: ua-parser-builtins>=0.18.0.post1
85
+ Requires-Dist: urllib3>=2.5.0
86
+ Requires-Dist: user-agents>=2.2.0
87
+ Requires-Dist: virtualenv>=20.35.3
88
+ Requires-Dist: zipp>=3.23.0
89
+ Dynamic: license-file
90
+
91
+ # README #
92
+
93
+ This README would normally document whatever steps are necessary to get your application up and running.
94
+
95
+ ### What is this repository for? ###
96
+
97
+ * Quick summary
98
+ * Version
99
+ * [Learn Markdown](https://bitbucket.org/tutorials/markdowndemo)
100
+
101
+ ### How do I get set up? ###
102
+
103
+ * Summary of set up
104
+ * Configuration
105
+ * Dependencies
106
+ * Database configuration
107
+ * How to run tests
108
+ * Deployment instructions
109
+
110
+ ### Contribution guidelines ###
111
+
112
+ * Writing tests
113
+ * Code review
114
+ * Other guidelines
115
+
116
+ ### Who do I talk to? ###
117
+
118
+ * Repo owner or admin
119
+ * Other community or team contact
@@ -0,0 +1,66 @@
1
+ maleo/identity/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ maleo/identity/constants/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ maleo/identity/constants/api_key.py,sha256=pHkcAqOu6eQWtHAovHfoXDPS-Eg6JP9u4ryq-M-uZ88,262
4
+ maleo/identity/constants/organization.py,sha256=QblTibK3GDkSdoniAlg7HGBd3g5k36Ep7KbSE2QPA4U,257
5
+ maleo/identity/constants/organization_registration_code.py,sha256=yxiPciVb68BIgpYJyG7n4KAixFGtYDFky3Vf1ftr87E,354
6
+ maleo/identity/constants/organization_relation.py,sha256=qGlwLnzSQB3HFOvJ13HBLVcj9-TN1QAqr7LlQG0Sb48,318
7
+ maleo/identity/constants/patient.py,sha256=F_OP2yp67L34ygbvPV7GLhezWW7RV7KE7OZsOHwgx_U,201
8
+ maleo/identity/constants/user.py,sha256=lIwXkUzbE6WtHc8RdHSmVa4BAVlLHtdUj2-l0TVY7EY,189
9
+ maleo/identity/constants/user_medical_role.py,sha256=jxPDawhnauLBoWqJ1SW4p6nUkPASIJVYrHPcdTo_7qI,302
10
+ maleo/identity/constants/user_organization_role.py,sha256=g7JTYhv6jih0QoF4-HrQmNf4DS3dnIVONTcQZgOONjI,322
11
+ maleo/identity/constants/user_profile.py,sha256=qNox8XB8gQlVj2rnsTU8j59gLgLRINRQN0rcyVuEQAw,257
12
+ maleo/identity/constants/user_system_role.py,sha256=zc44fMwguNkErmHQ2P7I-L_KU__7PpX8ihdAyVKUx-Y,400
13
+ maleo/identity/enums/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
+ maleo/identity/enums/api_key.py,sha256=twpkiI21x52roagXHJjq4vhMLv9WPGhWFtPM55LSZ-w,721
15
+ maleo/identity/enums/organization.py,sha256=y9sLqKPx9iC2402MKY8GTZ0_WWNRJT5_rVQkG_CCgso,476
16
+ maleo/identity/enums/organization_registration_code.py,sha256=Cz7ZIo2a1lTXko9rJLQerNP90qMvrvV7gSAKkGup418,352
17
+ maleo/identity/enums/organization_relation.py,sha256=-GxBCzUi-PFrICnHqray2PtFZb6LoG7NluDmyjljOa8,628
18
+ maleo/identity/enums/patient.py,sha256=gonmheVM5S99Wtddha7uJI4FzVOl9V0l1-ov1a-Kcqc,623
19
+ maleo/identity/enums/user.py,sha256=Vv_5fHov_cPxKCcaxVeNNJgZL_wa2uewtr7w4smiVVU,506
20
+ maleo/identity/enums/user_medical_role.py,sha256=KvPDu66wIh_sqvx0dyW38aTlCt5e_kRDcJ05Rk0rOd4,636
21
+ maleo/identity/enums/user_organization_role.py,sha256=bV07sZYttbJPfefkp7u9Bkc4V1e3xsyhtErtpkXb-Xg,641
22
+ maleo/identity/enums/user_profile.py,sha256=xYf5FNso2vjORZDSgLqwT5kb3P_1GtMZsR3utoAEgT8,342
23
+ maleo/identity/enums/user_system_role.py,sha256=zINGAt5D1nZ95ddvLXrFZaO_2k15S5gc4S9jF8sZ72s,925
24
+ maleo/identity/mixins/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
+ maleo/identity/mixins/api_key.py,sha256=T5N-YKdDRrCQNaouZ3-FygzryzGmv9pDINq7sA60fys,2369
26
+ maleo/identity/mixins/common.py,sha256=diWtUiPMI_ypHtDrmI5y8IArxCdomo9Gt6X69iFhyuw,905
27
+ maleo/identity/mixins/organization.py,sha256=P_GW483KCK4_ds9Jm82RVXEszwGgSzq1PHQk0ykgghk,2556
28
+ maleo/identity/mixins/organization_registration_code.py,sha256=t_OHVoJobjYyfOVwAw_I3nebIFgG-AodApmIhDCVYmM,4693
29
+ maleo/identity/mixins/organization_relation.py,sha256=tkpJcQ5lhG5mwPa8ZJ9mYzYXaGKTFmVx34dsR7pG5PQ,2867
30
+ maleo/identity/mixins/patient.py,sha256=unDmyazC5tyIsoXtAjMyWjAOOoxgMXa2DYfg6vZbLGI,2193
31
+ maleo/identity/mixins/user.py,sha256=ShTtmt5mTSrJwbffnFePP7IXC08j2q1BKsAmV32YEiM,3537
32
+ maleo/identity/mixins/user_medical_role.py,sha256=hdvJtQA9A2xA6LlDhdHMECdETCPtG5gJvmVquzRcAm4,2407
33
+ maleo/identity/mixins/user_organization_role.py,sha256=3K7eZxRjEYhRTVvGGKYM8WQHpW0mFQO2x-_qqEDjrPc,2498
34
+ maleo/identity/mixins/user_profile.py,sha256=fxKCS5N7fGEgOLWPeNry25nKsXDUrI9TB2nNbWb6Iyw,3813
35
+ maleo/identity/mixins/user_system_role.py,sha256=Vi39Au-IT4y7tQ-dfsnv9FFTqhY2rCny91ohPai552Y,2571
36
+ maleo/identity/schemas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
37
+ maleo/identity/schemas/api_key.py,sha256=_JWrUwrRCqxTrcan-eKMegNVU1T46gERNcr8pNK_Y-U,5376
38
+ maleo/identity/schemas/common.py,sha256=ijaLA6LQU8q0uw5qve0ksvuZMV6MKGv_CxbmofBiCh0,9046
39
+ maleo/identity/schemas/organization.py,sha256=0oVnuvB-E55AZ2h-PFoprY9wyyKi-xPLErXJW6yrBn8,9302
40
+ maleo/identity/schemas/organization_registration_code.py,sha256=6LzKsIXt5DNQv1605dRsv2DmaonDLN36jgHyi9xxY-k,9192
41
+ maleo/identity/schemas/organization_relation.py,sha256=9HGZypuhpK9egCHVDS1nh_lm5D0osxYM_4KmEEV8sHI,9487
42
+ maleo/identity/schemas/patient.py,sha256=qhycLtZfEDL8FWdT5GSe63so_9fdRXW_vAPNU0-kNi8,10222
43
+ maleo/identity/schemas/user.py,sha256=y2X_2QckxrO2qWPYbn5RIMsK4MYgJU1V3huKTX3C7ds,9390
44
+ maleo/identity/schemas/user_medical_role.py,sha256=zZdsRmty2InIthAvEgrXDWu7uv7Ez5dQ0XX86-JSE4E,9303
45
+ maleo/identity/schemas/user_organization_role.py,sha256=r_9zEjL7tmDzSdsflf80qez2DgbGNEoueHCmM9wWOZo,9475
46
+ maleo/identity/schemas/user_profile.py,sha256=9EgQ7Gi1kFAvgUrCsJ3I4SzZTRNJCUrX1Hkyp1t6Bgo,10165
47
+ maleo/identity/schemas/user_system_role.py,sha256=89vucqAxQjjfe0CFd6Z76008de5JxnZb56Zi1GU-Y-A,10095
48
+ maleo/identity/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
49
+ maleo/identity/types/api_key.py,sha256=dJ4dnw9xYwedJVmSlQhGJrDFlY91T7-2EibP5FI_-rM,198
50
+ maleo/identity/types/organization.py,sha256=UqOBL4v138jumjQstCAZ-2ZV1Ax8-Cr4SvL36nx8brw,63
51
+ maleo/identity/types/organization_registration_code.py,sha256=UqOBL4v138jumjQstCAZ-2ZV1Ax8-Cr4SvL36nx8brw,63
52
+ maleo/identity/types/organization_relation.py,sha256=slyRLcaT1gatzXCufzawAspwM18KeuCBTND0c3tLzQc,230
53
+ maleo/identity/types/patient.py,sha256=DJ-l-Ft2atX2oMzExo381PTSgdpVCtqBVSxZlmF_pCA,57
54
+ maleo/identity/types/user.py,sha256=UqOBL4v138jumjQstCAZ-2ZV1Ax8-Cr4SvL36nx8brw,63
55
+ maleo/identity/types/user_medical_role.py,sha256=xQohfQyK1D6ngjUUiJYfA5pMJaFYi7_nNmeuNvgMlMg,207
56
+ maleo/identity/types/user_organization_role.py,sha256=YJxj1TUgsc4kNG4ejOJDxExHBjzXKHD0QlB6cEX0WcU,222
57
+ maleo/identity/types/user_profile.py,sha256=UqOBL4v138jumjQstCAZ-2ZV1Ax8-Cr4SvL36nx8brw,63
58
+ maleo/identity/types/user_system_role.py,sha256=9kNZ56HOMCdiT7fsT9uB2w0p8iQyfclYjAXo3kKUF_w,241
59
+ maleo/identity/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
60
+ maleo/identity/utils/organization.py,sha256=aEegzeoNLUptrScUB5kWrYlJj7dzTZeVXymltE5lWpE,874
61
+ maleo/identity/utils/user.py,sha256=1pyfmAbXkAEOo6WM2KRA_kRnFi0O_A2ZUEqv01wY-cU,794
62
+ maleo_identity-0.1.24.dist-info/licenses/LICENSE,sha256=aftGsecnk7TWVX-7KW94FqK4Syy6YSZ8PZEF7EcIp3M,2621
63
+ maleo_identity-0.1.24.dist-info/METADATA,sha256=gsxFKe8h5zSZQ5UiwzW1NQ0yzNOmTusluJkHnaR-p7E,3584
64
+ maleo_identity-0.1.24.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
65
+ maleo_identity-0.1.24.dist-info/top_level.txt,sha256=3Tpd1siVsfYoeI9FEOJNYnffx_shzZ3wsPpTvz5bljc,6
66
+ maleo_identity-0.1.24.dist-info/RECORD,,
@@ -0,0 +1,57 @@
1
+ # Proprietary Software License
2
+
3
+ **Copyright (c) 2025 Agra Bima Yuda / Nexmedis**
4
+
5
+ ## License Grant
6
+
7
+ This software and associated documentation files (the "Software") are proprietary and confidential to Agra Bima Yuda and/or Nexmedis ("Licensor"). All rights reserved.
8
+
9
+ ## Restrictions
10
+
11
+ **NO PERMISSION** is granted to any person to:
12
+
13
+ 1. **Use** the Software for any purpose without explicit written permission from the Licensor
14
+ 2. **Copy, modify, merge, publish, distribute, sublicense, or sell** copies of the Software
15
+ 3. **Reverse engineer, decompile, or disassemble** the Software
16
+ 4. **Create derivative works** based upon the Software
17
+ 5. **Remove or alter** any proprietary notices, labels, or marks on the Software
18
+
19
+ ## Permitted Use
20
+
21
+ Use of this Software is permitted only under the following conditions:
22
+
23
+ 1. **Authorized Users**: Only individuals or entities explicitly authorized by the Licensor in writing
24
+ 2. **Internal Use Only**: The Software may only be used for internal business purposes of the authorized entity
25
+ 3. **No Redistribution**: The Software may not be shared, distributed, or made available to any third party
26
+
27
+ ## Ownership
28
+
29
+ The Software is and remains the exclusive property of the Licensor. This license does not grant any ownership rights in the Software.
30
+
31
+ ## Confidentiality
32
+
33
+ The Software contains proprietary and confidential information. Recipients agree to:
34
+
35
+ 1. Maintain the confidentiality of the Software
36
+ 2. Use the same degree of care to protect the Software as they use for their own confidential information, but no less than reasonable care
37
+ 3. Not disclose the Software to any third party without prior written consent
38
+
39
+ ## Termination
40
+
41
+ This license is effective until terminated. The Licensor may terminate this license at any time without notice. Upon termination, all rights granted herein cease immediately, and the recipient must destroy all copies of the Software.
42
+
43
+ ## Disclaimer of Warranty
44
+
45
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
46
+
47
+ ## Limitation of Liability
48
+
49
+ IN NO EVENT SHALL THE LICENSOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
50
+
51
+ ## Governing Law
52
+
53
+ This license shall be governed by and construed in accordance with the laws of Indonesia, without regard to its conflict of law provisions.
54
+
55
+ ---
56
+
57
+ For licensing inquiries, contact: agra@nexmedis.com
@@ -1,157 +0,0 @@
1
- # from Crypto.PublicKey.RSA import RsaKey
2
- # from redis.asyncio.client import Redis
3
- # from typing import Optional
4
- # from maleo.soma.dtos.configurations.cache.redis import RedisCacheNamespaces
5
- # from maleo.soma.dtos.configurations.client.maleo import MaleoClientConfigurationDTO
6
- # from maleo.soma.managers.client.maleo import MaleoClientManager
7
- # from maleo.soma.managers.credential import CredentialManager
8
- # from maleo.soma.schemas.service import ServiceContext
9
- # from maleo.soma.utils.logging import SimpleConfig
10
- # from maleo.identity.client.services.organization_registration_code import (
11
- # OrganizationRegistrationCodeClientService,
12
- # )
13
- # from maleo.identity.client.services.organization_role import (
14
- # OrganizationRoleClientService,
15
- # )
16
- # from maleo.identity.client.services.organization import OrganizationClientService
17
- # from maleo.identity.client.services.user_organization_role import (
18
- # UserOrganizationRoleClientService,
19
- # )
20
- # from maleo.identity.client.services.user_organization import (
21
- # UserOrganizationClientService,
22
- # )
23
- # from maleo.identity.client.services.user_profile import UserProfileClientService
24
- # from maleo.identity.client.services.user_system_role import UserSystemRoleClientService
25
- # from maleo.identity.client.services.user import UserClientService
26
-
27
-
28
- # class ClientManager(MaleoClientManager):
29
- # def __init__(
30
- # self,
31
- # configurations: MaleoClientConfigurationDTO,
32
- # log_config: SimpleConfig,
33
- # credential_manager: CredentialManager,
34
- # private_key: RsaKey,
35
- # redis: Redis,
36
- # redis_namespaces: RedisCacheNamespaces,
37
- # service_context: Optional[ServiceContext] = None,
38
- # ):
39
- # assert configurations.key == "maleo-identity"
40
- # assert configurations.name == "MaleoIdentity"
41
- # super().__init__(
42
- # configurations,
43
- # log_config,
44
- # credential_manager,
45
- # private_key,
46
- # redis,
47
- # redis_namespaces,
48
- # service_context,
49
- # )
50
- # self._initialize_services()
51
- # self._logger.info("Client manager initialized successfully")
52
-
53
- # def _initialize_services(self):
54
- # self.organization_registration_code = OrganizationRegistrationCodeClientService(
55
- # environment=self._environment,
56
- # key=self._key,
57
- # url=self._url,
58
- # operation_origin=self._operation_origin,
59
- # logger=self._logger,
60
- # credential_manager=self._credential_manager,
61
- # http_client_manager=self._http_client_manager,
62
- # private_key=self._private_key,
63
- # redis=self._redis,
64
- # redis_namespaces=self._redis_namespaces,
65
- # service_context=self._service_context,
66
- # )
67
- # self.organization_role = OrganizationRoleClientService(
68
- # environment=self._environment,
69
- # key=self._key,
70
- # url=self._url,
71
- # operation_origin=self._operation_origin,
72
- # logger=self._logger,
73
- # credential_manager=self._credential_manager,
74
- # http_client_manager=self._http_client_manager,
75
- # private_key=self._private_key,
76
- # redis=self._redis,
77
- # redis_namespaces=self._redis_namespaces,
78
- # service_context=self._service_context,
79
- # )
80
- # self.organization = OrganizationClientService(
81
- # environment=self._environment,
82
- # key=self._key,
83
- # url=self._url,
84
- # operation_origin=self._operation_origin,
85
- # logger=self._logger,
86
- # credential_manager=self._credential_manager,
87
- # http_client_manager=self._http_client_manager,
88
- # private_key=self._private_key,
89
- # redis=self._redis,
90
- # redis_namespaces=self._redis_namespaces,
91
- # service_context=self._service_context,
92
- # )
93
- # self.user_organization_role = UserOrganizationRoleClientService(
94
- # environment=self._environment,
95
- # key=self._key,
96
- # url=self._url,
97
- # operation_origin=self._operation_origin,
98
- # logger=self._logger,
99
- # credential_manager=self._credential_manager,
100
- # http_client_manager=self._http_client_manager,
101
- # private_key=self._private_key,
102
- # redis=self._redis,
103
- # redis_namespaces=self._redis_namespaces,
104
- # service_context=self._service_context,
105
- # )
106
- # self.user_organization = UserOrganizationClientService(
107
- # environment=self._environment,
108
- # key=self._key,
109
- # url=self._url,
110
- # operation_origin=self._operation_origin,
111
- # logger=self._logger,
112
- # credential_manager=self._credential_manager,
113
- # http_client_manager=self._http_client_manager,
114
- # private_key=self._private_key,
115
- # redis=self._redis,
116
- # redis_namespaces=self._redis_namespaces,
117
- # service_context=self._service_context,
118
- # )
119
- # self.user_profile = UserProfileClientService(
120
- # environment=self._environment,
121
- # key=self._key,
122
- # url=self._url,
123
- # operation_origin=self._operation_origin,
124
- # logger=self._logger,
125
- # credential_manager=self._credential_manager,
126
- # http_client_manager=self._http_client_manager,
127
- # private_key=self._private_key,
128
- # redis=self._redis,
129
- # redis_namespaces=self._redis_namespaces,
130
- # service_context=self._service_context,
131
- # )
132
- # self.user_system_role = UserSystemRoleClientService(
133
- # environment=self._environment,
134
- # key=self._key,
135
- # url=self._url,
136
- # operation_origin=self._operation_origin,
137
- # logger=self._logger,
138
- # credential_manager=self._credential_manager,
139
- # http_client_manager=self._http_client_manager,
140
- # private_key=self._private_key,
141
- # redis=self._redis,
142
- # redis_namespaces=self._redis_namespaces,
143
- # service_context=self._service_context,
144
- # )
145
- # self.user = UserClientService(
146
- # environment=self._environment,
147
- # key=self._key,
148
- # url=self._url,
149
- # operation_origin=self._operation_origin,
150
- # logger=self._logger,
151
- # credential_manager=self._credential_manager,
152
- # http_client_manager=self._http_client_manager,
153
- # private_key=self._private_key,
154
- # redis=self._redis,
155
- # redis_namespaces=self._redis_namespaces,
156
- # service_context=self._service_context,
157
- # )
File without changes