@burgan-tech/morph-idm-runtime 0.0.0

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 (206) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +245 -0
  3. package/burgan-tech-morph-idm-runtime-0.0.0.tgz +0 -0
  4. package/morph-idm/Extensions/.gitkeep +0 -0
  5. package/morph-idm/Functions/.gitkeep +0 -0
  6. package/morph-idm/Functions/user/function-validate-user.json +31 -0
  7. package/morph-idm/Functions/user/src/ValidateUser.csx +39 -0
  8. package/morph-idm/Mappings/device-register-evaluate-get-device-request.mapper.json +319 -0
  9. package/morph-idm/Mappings/device-register-evaluate-get-device-response.mapper.json +761 -0
  10. package/morph-idm/Mappings/device-register-new-device-call-device-start-request.mapper.json +762 -0
  11. package/morph-idm/Mappings/device-register-start.mapper.json +971 -0
  12. package/morph-idm/Mappings/device-start-request.mapper.json +20 -0
  13. package/morph-idm/Mappings/device-start.mapper.json +896 -0
  14. package/morph-idm/Mappings/device-update-request.mapper.json +883 -0
  15. package/morph-idm/Mappings/token-start-request.mapper.json +436 -0
  16. package/morph-idm/Schemas/approval-matrix/approval-matrix-master-1.0.0.json +98 -0
  17. package/morph-idm/Schemas/approval-matrix/approval-matrix-update-1.0.0.json +85 -0
  18. package/morph-idm/Schemas/client/client-master-1.0.0.json +293 -0
  19. package/morph-idm/Schemas/client/client-update-master-1.0.0.json +201 -0
  20. package/morph-idm/Schemas/consent/consent-master-1.0.0.json +151 -0
  21. package/morph-idm/Schemas/device/device-master-1.0.0.json +433 -0
  22. package/morph-idm/Schemas/device/device-register-master-1.0.0.json +300 -0
  23. package/morph-idm/Schemas/device/device-register-start-1.0.0.json +270 -0
  24. package/morph-idm/Schemas/device/device-start-1.0.0.json +281 -0
  25. package/morph-idm/Schemas/device/device-update-1.0.0.json +275 -0
  26. package/morph-idm/Schemas/headers-1.0.0.json +245 -0
  27. package/morph-idm/Schemas/organization/organization-master-1.0.0.json +386 -0
  28. package/morph-idm/Schemas/organization/organization-update-1.0.0.json +60 -0
  29. package/morph-idm/Schemas/privilege/privilege-master-1.0.0.json +84 -0
  30. package/morph-idm/Schemas/privilege/privilege-update-1.0.0.json +76 -0
  31. package/morph-idm/Schemas/scope/scope-group-master-1.0.0.json +52 -0
  32. package/morph-idm/Schemas/scope/scope-master-1.0.0.json +120 -0
  33. package/morph-idm/Schemas/token/token-master-1.0.0.json +346 -0
  34. package/morph-idm/Schemas/token/token-start-1.0.0.json +50 -0
  35. package/morph-idm/Schemas/transaction-limit/transaction-limit-master-1.0.0.json +175 -0
  36. package/morph-idm/Schemas/transaction-limit/transaction-limit-update-1.0.0.json +90 -0
  37. package/morph-idm/Schemas/user/person-master-1.0.0.json +211 -0
  38. package/morph-idm/Schemas/user/user-master-1.0.0.json +121 -0
  39. package/morph-idm/Tasks/.gitkeep +0 -0
  40. package/morph-idm/Tasks/call-device-start-1.0.0.json +21 -0
  41. package/morph-idm/Tasks/call-device-update-1.0.0.json +21 -0
  42. package/morph-idm/Tasks/client/client-create-rsa.json +26 -0
  43. package/morph-idm/Tasks/client/client-password-generator.json +14 -0
  44. package/morph-idm/Tasks/client/get-client-by-task.json +18 -0
  45. package/morph-idm/Tasks/consent/get-consent-by-task.json +18 -0
  46. package/morph-idm/Tasks/consent/get-multi-consents-by-task.json +25 -0
  47. package/morph-idm/Tasks/device/get-device-by-task.json +18 -0
  48. package/morph-idm/Tasks/get-device-1.0.0.json +20 -0
  49. package/morph-idm/Tasks/scope/get-scope-by-task.json +17 -0
  50. package/morph-idm/Tasks/scope/scope-by-user-task.json +25 -0
  51. package/morph-idm/Tasks/scope/scope-details-task.json +25 -0
  52. package/morph-idm/Tasks/token/send-token-to-main.json +20 -0
  53. package/morph-idm/Tasks/token/token-create-jwt.json +27 -0
  54. package/morph-idm/Tasks/user/get-user-by-task.json +18 -0
  55. package/morph-idm/Tasks/user/send-otp-task.json +25 -0
  56. package/morph-idm/Tasks/user/send-push-task.json +22 -0
  57. package/morph-idm/Tasks/user/user-password-generator.json +26 -0
  58. package/morph-idm/Tasks/user/verify-otp-task.json +22 -0
  59. package/morph-idm/Tasks/user/verify-push-task.json +22 -0
  60. package/morph-idm/Views/.gitkeep +0 -0
  61. package/morph-idm/Workflows/.gitkeep +0 -0
  62. package/morph-idm/Workflows/approval-matrix/approval-1.0.0.json +452 -0
  63. package/morph-idm/Workflows/approval-matrix/approval-matrix-1.0.0.json +184 -0
  64. package/morph-idm/Workflows/client/client-1.0.0.json +257 -0
  65. package/morph-idm/Workflows/client/client-update-1.0.0.json +202 -0
  66. package/morph-idm/Workflows/client/execute/client.http +377 -0
  67. package/morph-idm/Workflows/client/src/ClientCreateRsa.csx +198 -0
  68. package/morph-idm/Workflows/client/src/ClientCreateRsaByScript.csx +118 -0
  69. package/morph-idm/Workflows/client/src/CreateRsaByHttpCallMapping.csx +223 -0
  70. package/morph-idm/Workflows/client/src/PasswordGeneratorMapping.csx +26 -0
  71. package/morph-idm/Workflows/client/src/RsaExistsRule.csx +44 -0
  72. package/morph-idm/Workflows/client-manager/client-manager-1.0.0.json +217 -0
  73. package/morph-idm/Workflows/client-manager/execute/client-manager.http +214 -0
  74. package/morph-idm/Workflows/client-manager/src/ClientCreatedRule.csx +28 -0
  75. package/morph-idm/Workflows/client-manager/src/ClientExistsRule.csx +25 -0
  76. package/morph-idm/Workflows/client-manager/src/CreateClientSubFlowMapping.csx +63 -0
  77. package/morph-idm/Workflows/client-manager/src/GetClientForManagerMapping.csx +59 -0
  78. package/morph-idm/Workflows/consent/consent-1.0.0.json +424 -0
  79. package/morph-idm/Workflows/consent/execute/README.md +167 -0
  80. package/morph-idm/Workflows/consent/execute/consent-invitation-flow.http +283 -0
  81. package/morph-idm/Workflows/consent/execute/create-consent.http +780 -0
  82. package/morph-idm/Workflows/consent/src/AutoConsentRule.csx +29 -0
  83. package/morph-idm/Workflows/consent/src/ConsentTimeoutTimer.csx +14 -0
  84. package/morph-idm/Workflows/consent-selection/consent-selection-1.0.0.json +331 -0
  85. package/morph-idm/Workflows/consent-selection/src/AutoConsentCreatedRule.csx +28 -0
  86. package/morph-idm/Workflows/consent-selection/src/ConsentFetchMapping.csx +82 -0
  87. package/morph-idm/Workflows/consent-selection/src/ConsentSelectedMapping.csx +70 -0
  88. package/morph-idm/Workflows/consent-selection/src/CreateAutoConsentMapping.csx +150 -0
  89. package/morph-idm/Workflows/consent-selection/src/MultipleConsentsRule.csx +31 -0
  90. package/morph-idm/Workflows/consent-selection/src/NoConsentEligibleRule.csx +44 -0
  91. package/morph-idm/Workflows/consent-selection/src/SingleConsentRule.csx +45 -0
  92. package/morph-idm/Workflows/device/device-1.0.0.json +261 -0
  93. package/morph-idm/Workflows/device/device-migration-1.0.0.json +213 -0
  94. package/morph-idm/Workflows/device/device-register-1.0.0-documentation.md +646 -0
  95. package/morph-idm/Workflows/device/device-register-1.0.0-documentation.svg +36 -0
  96. package/morph-idm/Workflows/device/device-register-1.0.0.json +185 -0
  97. package/morph-idm/Workflows/device/execute/device-android.http +260 -0
  98. package/morph-idm/Workflows/device/execute/device-huawei.http +219 -0
  99. package/morph-idm/Workflows/device/execute/device-ios.http +325 -0
  100. package/morph-idm/Workflows/device/execute/device-web.http +284 -0
  101. package/morph-idm/Workflows/device/src/DeviceCreatedRule.csx +32 -0
  102. package/morph-idm/Workflows/device/src/DeviceFoundRule.csx +32 -0
  103. package/morph-idm/Workflows/device/src/DeviceNotFoundRule.csx +28 -0
  104. package/morph-idm/Workflows/device/src/DeviceUpdatedRule.csx +26 -0
  105. package/morph-idm/Workflows/device/src/NoUpdateRule.csx +19 -0
  106. package/morph-idm/Workflows/device/src/ReInstallRule.csx +19 -0
  107. package/morph-idm/Workflows/document-validation/_FF_document-validation.json +423 -0
  108. package/morph-idm/Workflows/document-validation/src/ApproveRule.csx +16 -0
  109. package/morph-idm/Workflows/document-validation/src/ClassifyRule.csx +16 -0
  110. package/morph-idm/Workflows/document-validation/src/ExtractRule.csx +16 -0
  111. package/morph-idm/Workflows/document-validation/src/HitlRule.csx +16 -0
  112. package/morph-idm/Workflows/document-validation/src/RejectRule.csx +16 -0
  113. package/morph-idm/Workflows/document-validation/src/RunOcrRule.csx +16 -0
  114. package/morph-idm/Workflows/document-validation/src/StartRule.csx +16 -0
  115. package/morph-idm/Workflows/document-validation/src/ToAggregateRule.csx +16 -0
  116. package/morph-idm/Workflows/document-validation/src/ToFraudRule.csx +16 -0
  117. package/morph-idm/Workflows/document-validation/src/ToReferentialRule.csx +16 -0
  118. package/morph-idm/Workflows/document-validation/src/ToSemanticRule.csx +16 -0
  119. package/morph-idm/Workflows/document-validation/src/ToStructuralRule.csx +16 -0
  120. package/morph-idm/Workflows/organization/execute/create-organization.http +280 -0
  121. package/morph-idm/Workflows/organization/organization-1.0.0-documentation.md +616 -0
  122. package/morph-idm/Workflows/organization/organization-1.0.0.json +181 -0
  123. package/morph-idm/Workflows/privilege/privilege-1.0.0.json +185 -0
  124. package/morph-idm/Workflows/scope/execute/scope-24-7-access.http +131 -0
  125. package/morph-idm/Workflows/scope/execute/scope-business-hours.http +138 -0
  126. package/morph-idm/Workflows/scope/execute/scope-corporate.http +165 -0
  127. package/morph-idm/Workflows/scope/execute/scope-individual.http +133 -0
  128. package/morph-idm/Workflows/scope/execute/scope-lifecycle-test.http +133 -0
  129. package/morph-idm/Workflows/scope/execute/scope-multi-systems.http +159 -0
  130. package/morph-idm/Workflows/scope/execute/scope-restricted.http +143 -0
  131. package/morph-idm/Workflows/scope/scope-1.0.0.json +142 -0
  132. package/morph-idm/Workflows/scope/scope-group-1.0.0.json +144 -0
  133. package/morph-idm/Workflows/scope-group/execute/create-scope-group.http +222 -0
  134. package/morph-idm/Workflows/token/execute/README.md +450 -0
  135. package/morph-idm/Workflows/token/execute/token.http +236 -0
  136. package/morph-idm/Workflows/token/oauth-authentication-workflow.json +406 -0
  137. package/morph-idm/Workflows/token/password-subflow.json +173 -0
  138. package/morph-idm/Workflows/token/scope-cdc-worker.1.0.0.json +46 -0
  139. package/morph-idm/Workflows/token/src/CreateRsaJwtMapping.csx +208 -0
  140. package/morph-idm/Workflows/token/src/ExpireTokenTimer.csx +14 -0
  141. package/morph-idm/Workflows/token/src/PrepareAuthorizationCodeRule.csx +16 -0
  142. package/morph-idm/Workflows/token/src/RequestInappropriateRule.csx +16 -0
  143. package/morph-idm/Workflows/token/src/SendJwtToMainMapping.csx +167 -0
  144. package/morph-idm/Workflows/token/token-1.0.0.json +356 -0
  145. package/morph-idm/Workflows/token/token-1.0.0.openapi.json.md +707 -0
  146. package/morph-idm/Workflows/token/token-exchange.1.0.0.json +45 -0
  147. package/morph-idm/Workflows/transaction-limit/transaction-limit-1.0.0.json +244 -0
  148. package/morph-idm/Workflows/transaction-limit/transaction-limit-authorization.json +502 -0
  149. package/morph-idm/Workflows/transaction-limit/transaction-limit-capture.json +142 -0
  150. package/morph-idm/Workflows/user/execute/README-LOGIN.md +535 -0
  151. package/morph-idm/Workflows/user/execute/create-user-1234567890.http +116 -0
  152. package/morph-idm/Workflows/user/execute/create-user-minimal.http +22 -0
  153. package/morph-idm/Workflows/user/execute/create-user-person-password.http +130 -0
  154. package/morph-idm/Workflows/user/execute/create-user-person.http +249 -0
  155. package/morph-idm/Workflows/user/execute/create-user-system.http +16 -0
  156. package/morph-idm/Workflows/user/execute/user-login.http +583 -0
  157. package/morph-idm/Workflows/user/execute/user-requests.http +51 -0
  158. package/morph-idm/Workflows/user/person-1.0.0.json +140 -0
  159. package/morph-idm/Workflows/user/person-cdc-worker.1.0.0.json +46 -0
  160. package/morph-idm/Workflows/user/person-upsert-1.0.0.json +129 -0
  161. package/morph-idm/Workflows/user/src/ApproveRule.csx +16 -0
  162. package/morph-idm/Workflows/user/src/AutoConsentCreatedRule.csx +20 -0
  163. package/morph-idm/Workflows/user/src/AutoConsentRequiredRule.csx +77 -0
  164. package/morph-idm/Workflows/user/src/CheckDeviceByUserReferenceMapping.csx +66 -0
  165. package/morph-idm/Workflows/user/src/ClientValidationFailRule.csx +28 -0
  166. package/morph-idm/Workflows/user/src/ClientValidationRule.csx +25 -0
  167. package/morph-idm/Workflows/user/src/ConsentSelectedRule.csx +24 -0
  168. package/morph-idm/Workflows/user/src/ConsentValidationRule.csx +36 -0
  169. package/morph-idm/Workflows/user/src/CreateAutoConsentMapping.csx +171 -0
  170. package/morph-idm/Workflows/user/src/DeviceFoundForLoginRule.csx +32 -0
  171. package/morph-idm/Workflows/user/src/DeviceNotFoundForLoginRule.csx +31 -0
  172. package/morph-idm/Workflows/user/src/GetClientMapping.csx +45 -0
  173. package/morph-idm/Workflows/user/src/GetConsentMapping.csx +27 -0
  174. package/morph-idm/Workflows/user/src/GetDeviceMapping.csx +52 -0
  175. package/morph-idm/Workflows/user/src/GetScopeMapping.csx +139 -0
  176. package/morph-idm/Workflows/user/src/GetScopesByUserMapping.csx +137 -0
  177. package/morph-idm/Workflows/user/src/GetUserMapping.csx +39 -0
  178. package/morph-idm/Workflows/user/src/GrantValidationFailRule.csx +48 -0
  179. package/morph-idm/Workflows/user/src/GrantValidationRule.csx +45 -0
  180. package/morph-idm/Workflows/user/src/IsIbWebClientWithDeviceRule.csx +42 -0
  181. package/morph-idm/Workflows/user/src/NonIbWebClientWithDeviceRule.csx +42 -0
  182. package/morph-idm/Workflows/user/src/OtpSentRule.csx +31 -0
  183. package/morph-idm/Workflows/user/src/OtpVerifiedRule.csx +31 -0
  184. package/morph-idm/Workflows/user/src/PushSentRule.csx +31 -0
  185. package/morph-idm/Workflows/user/src/PushVerifiedRule.csx +31 -0
  186. package/morph-idm/Workflows/user/src/RejectRule.csx +16 -0
  187. package/morph-idm/Workflows/user/src/ScopeFetchedRule.csx +35 -0
  188. package/morph-idm/Workflows/user/src/ScopeValidationFailRule.csx +67 -0
  189. package/morph-idm/Workflows/user/src/ScopeValidationRule.csx +67 -0
  190. package/morph-idm/Workflows/user/src/SendOtpMapping.csx +94 -0
  191. package/morph-idm/Workflows/user/src/SendPushMapping.csx +90 -0
  192. package/morph-idm/Workflows/user/src/TokenGenerationSuccessRule.csx +28 -0
  193. package/morph-idm/Workflows/user/src/TriggerConsentSelectionAsSubFlowMapping.csx +63 -0
  194. package/morph-idm/Workflows/user/src/TriggerTokenWorkflowAsSubFlowMapping.csx +42 -0
  195. package/morph-idm/Workflows/user/src/UserPasswordGeneratorMapping.csx +190 -0
  196. package/morph-idm/Workflows/user/src/UserValidationFailRule.csx +36 -0
  197. package/morph-idm/Workflows/user/src/UserValidationRule.csx +38 -0
  198. package/morph-idm/Workflows/user/src/VerifyOtpMapping.csx +65 -0
  199. package/morph-idm/Workflows/user/src/VerifyPushMapping.csx +65 -0
  200. package/morph-idm/Workflows/user/user-1.0.0.json +400 -0
  201. package/morph-idm/Workflows/user/user-force-update.1.0.0.json +46 -0
  202. package/morph-idm/Workflows/user/user-login-certificate.1.0.0.json +46 -0
  203. package/morph-idm/Workflows/user/user-login.1.0.0.json +1144 -0
  204. package/morph-idm/Workflows/user/user-password-reset.1.0.0.json +45 -0
  205. package/package.json +21 -0
  206. package/vnext.config.json +58 -0
@@ -0,0 +1,762 @@
1
+ {
2
+ "version": "1.0",
3
+ "metadata": {
4
+ "name": "device-register-new-device-call-device-start-request",
5
+ "description": "device-register-new-device-call-device-start-request mapper",
6
+ "version": "1.0.0",
7
+ "source": "none",
8
+ "target": "none",
9
+ "createdAt": "2025-11-08T07:18:52.173Z",
10
+ "tags": [
11
+ "new"
12
+ ]
13
+ },
14
+ "schemas": {
15
+ "source": "none",
16
+ "target": "none"
17
+ },
18
+ "nodes": [],
19
+ "edges": [
20
+ {
21
+ "id": "automap_1762586444204_0",
22
+ "source": "source-schema",
23
+ "sourceHandle": "$.instance.appVersion",
24
+ "target": "target-schema",
25
+ "targetHandle": "$.transition.appVersion"
26
+ },
27
+ {
28
+ "id": "automap_1762586444204_1",
29
+ "source": "source-schema",
30
+ "sourceHandle": "$.instance.attribution.attributionProvider",
31
+ "target": "target-schema",
32
+ "targetHandle": "$.transition.attribution.attributionProvider"
33
+ },
34
+ {
35
+ "id": "automap_1762586444204_2",
36
+ "source": "source-schema",
37
+ "sourceHandle": "$.instance.attribution.campaign",
38
+ "target": "target-schema",
39
+ "targetHandle": "$.transition.attribution.campaign"
40
+ },
41
+ {
42
+ "id": "automap_1762586444204_3",
43
+ "source": "source-schema",
44
+ "sourceHandle": "$.instance.attribution.clickId",
45
+ "target": "target-schema",
46
+ "targetHandle": "$.transition.attribution.clickId"
47
+ },
48
+ {
49
+ "id": "automap_1762586444204_4",
50
+ "source": "source-schema",
51
+ "sourceHandle": "$.instance.attribution.installReferrer",
52
+ "target": "target-schema",
53
+ "targetHandle": "$.transition.attribution.installReferrer"
54
+ },
55
+ {
56
+ "id": "automap_1762586444204_5",
57
+ "source": "source-schema",
58
+ "sourceHandle": "$.instance.attribution.medium",
59
+ "target": "target-schema",
60
+ "targetHandle": "$.transition.attribution.medium"
61
+ },
62
+ {
63
+ "id": "automap_1762586444204_6",
64
+ "source": "source-schema",
65
+ "sourceHandle": "$.instance.attribution.referrerCode",
66
+ "target": "target-schema",
67
+ "targetHandle": "$.transition.attribution.referrerCode"
68
+ },
69
+ {
70
+ "id": "automap_1762586444204_7",
71
+ "source": "source-schema",
72
+ "sourceHandle": "$.instance.attribution.source",
73
+ "target": "target-schema",
74
+ "targetHandle": "$.transition.attribution.source"
75
+ },
76
+ {
77
+ "id": "automap_1762586444204_8",
78
+ "source": "source-schema",
79
+ "sourceHandle": "$.instance.attribution.utmParameters.utm_campaign",
80
+ "target": "target-schema",
81
+ "targetHandle": "$.transition.attribution.utmParameters.utm_campaign"
82
+ },
83
+ {
84
+ "id": "automap_1762586444204_9",
85
+ "source": "source-schema",
86
+ "sourceHandle": "$.instance.attribution.utmParameters.utm_content",
87
+ "target": "target-schema",
88
+ "targetHandle": "$.transition.attribution.utmParameters.utm_content"
89
+ },
90
+ {
91
+ "id": "automap_1762586444204_10",
92
+ "source": "source-schema",
93
+ "sourceHandle": "$.instance.attribution.utmParameters.utm_medium",
94
+ "target": "target-schema",
95
+ "targetHandle": "$.transition.attribution.utmParameters.utm_medium"
96
+ },
97
+ {
98
+ "id": "automap_1762586444204_11",
99
+ "source": "source-schema",
100
+ "sourceHandle": "$.instance.attribution.utmParameters.utm_source",
101
+ "target": "target-schema",
102
+ "targetHandle": "$.transition.attribution.utmParameters.utm_source"
103
+ },
104
+ {
105
+ "id": "automap_1762586444204_12",
106
+ "source": "source-schema",
107
+ "sourceHandle": "$.instance.attribution.utmParameters.utm_term",
108
+ "target": "target-schema",
109
+ "targetHandle": "$.transition.attribution.utmParameters.utm_term"
110
+ },
111
+ {
112
+ "id": "automap_1762586444204_13",
113
+ "source": "source-schema",
114
+ "sourceHandle": "$.instance.deviceCertificatePublicKey",
115
+ "target": "target-schema",
116
+ "targetHandle": "$.transition.deviceCertificatePublicKey"
117
+ },
118
+ {
119
+ "id": "automap_1762586444204_14",
120
+ "source": "source-schema",
121
+ "sourceHandle": "$.instance.deviceId",
122
+ "target": "target-schema",
123
+ "targetHandle": "$.transition.deviceId"
124
+ },
125
+ {
126
+ "id": "automap_1762586444204_15",
127
+ "source": "source-schema",
128
+ "sourceHandle": "$.instance.deviceInfo.deviceModel",
129
+ "target": "target-schema",
130
+ "targetHandle": "$.transition.deviceInfo.deviceModel"
131
+ },
132
+ {
133
+ "id": "automap_1762586444204_16",
134
+ "source": "source-schema",
135
+ "sourceHandle": "$.instance.deviceInfo.language",
136
+ "target": "target-schema",
137
+ "targetHandle": "$.transition.deviceInfo.language"
138
+ },
139
+ {
140
+ "id": "automap_1762586444204_17",
141
+ "source": "source-schema",
142
+ "sourceHandle": "$.instance.deviceInfo.manufacturer",
143
+ "target": "target-schema",
144
+ "targetHandle": "$.transition.deviceInfo.manufacturer"
145
+ },
146
+ {
147
+ "id": "automap_1762586444204_18",
148
+ "source": "source-schema",
149
+ "sourceHandle": "$.instance.deviceInfo.osName",
150
+ "target": "target-schema",
151
+ "targetHandle": "$.transition.deviceInfo.osName"
152
+ },
153
+ {
154
+ "id": "automap_1762586444204_19",
155
+ "source": "source-schema",
156
+ "sourceHandle": "$.instance.deviceInfo.osVersion",
157
+ "target": "target-schema",
158
+ "targetHandle": "$.transition.deviceInfo.osVersion"
159
+ },
160
+ {
161
+ "id": "automap_1762586444204_20",
162
+ "source": "source-schema",
163
+ "sourceHandle": "$.instance.deviceInfo.screenResolution",
164
+ "target": "target-schema",
165
+ "targetHandle": "$.transition.deviceInfo.screenResolution"
166
+ },
167
+ {
168
+ "id": "automap_1762586444204_21",
169
+ "source": "source-schema",
170
+ "sourceHandle": "$.instance.deviceInfo.timezone",
171
+ "target": "target-schema",
172
+ "targetHandle": "$.transition.deviceInfo.timezone"
173
+ },
174
+ {
175
+ "id": "automap_1762586444204_22",
176
+ "source": "source-schema",
177
+ "sourceHandle": "$.instance.installationId",
178
+ "target": "target-schema",
179
+ "targetHandle": "$.transition.installationId"
180
+ },
181
+ {
182
+ "id": "automap_1762586444204_23",
183
+ "source": "source-schema",
184
+ "sourceHandle": "$.instance.pushToken",
185
+ "target": "target-schema",
186
+ "targetHandle": "$.transition.pushToken"
187
+ }
188
+ ],
189
+ "schemaParts": {
190
+ "source": {
191
+ "instance": {
192
+ "schemaRef": "custom",
193
+ "schema": {
194
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
195
+ "$id": "https://example.com/schemas/device-register-master.schema.json",
196
+ "title": "Device Register",
197
+ "description": "Device registration operational flow data. Stores device information during registration process before transferring to device fact.",
198
+ "type": "object",
199
+ "properties": {
200
+ "deviceId": {
201
+ "type": "string",
202
+ "description": "Hardware or system-level unique identifier of the device (e.g., UUID, Vendor ID, IMEI)."
203
+ },
204
+ "installationId": {
205
+ "type": "string",
206
+ "format": "uuid",
207
+ "description": "Unique identifier generated for each installation of the application on the device. Distinguishes different installations on the same device."
208
+ },
209
+ "deviceInfo": {
210
+ "type": "object",
211
+ "description": "Detailed information about the device and operating system.",
212
+ "properties": {
213
+ "osName": {
214
+ "type": "string",
215
+ "description": "Operating system name (e.g., iOS, Android, HarmonyOS, Windows, macOS)."
216
+ },
217
+ "osVersion": {
218
+ "type": "string",
219
+ "description": "Operating system version (e.g., 17.2.1, API 33, Windows 11)."
220
+ },
221
+ "deviceModel": {
222
+ "type": "string",
223
+ "description": "Device model (e.g., iPhone 14 Pro, Pixel 7, Galaxy S22, MacBook Pro)."
224
+ },
225
+ "manufacturer": {
226
+ "type": "string",
227
+ "description": "Device manufacturer (e.g., Apple, Samsung, Xiaomi, Huawei, Google)."
228
+ },
229
+ "userAgent": {
230
+ "type": "string",
231
+ "description": "User-Agent string from browser or application."
232
+ },
233
+ "screenResolution": {
234
+ "type": "string",
235
+ "description": "Device screen resolution (e.g., 1920x1080, 2532x1170)."
236
+ },
237
+ "language": {
238
+ "type": "string",
239
+ "description": "Device language setting (e.g., en-US, tr-TR)."
240
+ },
241
+ "timezone": {
242
+ "type": "string",
243
+ "description": "Device timezone (e.g., Europe/Istanbul, America/New_York)."
244
+ }
245
+ },
246
+ "required": [
247
+ "osName",
248
+ "osVersion",
249
+ "deviceModel",
250
+ "manufacturer"
251
+ ]
252
+ },
253
+ "deviceCertificatePublicKey": {
254
+ "type": "string",
255
+ "description": "Device-specific base public key. Used during initial device registration for device attestation. This is the root device identity, independent of user/consent."
256
+ },
257
+ "pushToken": {
258
+ "description": "Platform-specific push notification token. Device can have only ONE active push token based on its platform. Use 'platform' field to determine which push service to use.",
259
+ "oneOf": [
260
+ {
261
+ "type": "object",
262
+ "description": "Apple Push Notification Service (APNS) for iOS/iPadOS/macOS devices.",
263
+ "required": [
264
+ "platform",
265
+ "token"
266
+ ],
267
+ "properties": {
268
+ "platform": {
269
+ "type": "string",
270
+ "const": "apns",
271
+ "description": "Platform identifier (discriminator field)."
272
+ },
273
+ "token": {
274
+ "type": "string",
275
+ "description": "APNS device token (hex string, 64 characters)."
276
+ },
277
+ "environment": {
278
+ "type": "string",
279
+ "enum": [
280
+ "production",
281
+ "sandbox"
282
+ ],
283
+ "description": "APNS environment. production (App Store), sandbox (Development/TestFlight)."
284
+ },
285
+ "bundleId": {
286
+ "type": "string",
287
+ "description": "iOS app bundle identifier (e.g., 'com.burgan.mobilebanking')."
288
+ }
289
+ }
290
+ },
291
+ {
292
+ "type": "object",
293
+ "description": "Firebase Cloud Messaging (FCM) for Android devices with Google Play Services.",
294
+ "required": [
295
+ "platform",
296
+ "token"
297
+ ],
298
+ "properties": {
299
+ "platform": {
300
+ "type": "string",
301
+ "const": "fcm",
302
+ "description": "Platform identifier (discriminator field)."
303
+ },
304
+ "token": {
305
+ "type": "string",
306
+ "description": "FCM registration token."
307
+ },
308
+ "projectId": {
309
+ "type": "string",
310
+ "description": "Firebase project ID."
311
+ },
312
+ "packageName": {
313
+ "type": "string",
314
+ "description": "Android app package name."
315
+ }
316
+ }
317
+ },
318
+ {
319
+ "type": "object",
320
+ "description": "Huawei Mobile Services (HMS) Push for Huawei devices without Google Play Services.",
321
+ "required": [
322
+ "platform",
323
+ "token"
324
+ ],
325
+ "properties": {
326
+ "platform": {
327
+ "type": "string",
328
+ "const": "hms",
329
+ "description": "Platform identifier (discriminator field)."
330
+ },
331
+ "token": {
332
+ "type": "string",
333
+ "description": "HMS Push token."
334
+ },
335
+ "appId": {
336
+ "type": "string",
337
+ "description": "Huawei AppGallery app ID."
338
+ },
339
+ "packageName": {
340
+ "type": "string",
341
+ "description": "Android app package name."
342
+ }
343
+ }
344
+ },
345
+ {
346
+ "type": "object",
347
+ "description": "Web Push API for Progressive Web Apps and browsers.",
348
+ "required": [
349
+ "platform",
350
+ "endpoint"
351
+ ],
352
+ "properties": {
353
+ "platform": {
354
+ "type": "string",
355
+ "const": "webpush",
356
+ "description": "Platform identifier (discriminator field)."
357
+ },
358
+ "endpoint": {
359
+ "type": "string",
360
+ "description": "Push service endpoint URL."
361
+ },
362
+ "keys": {
363
+ "type": "object",
364
+ "properties": {
365
+ "p256dh": {
366
+ "type": "string",
367
+ "description": "Client public key for encryption (base64)."
368
+ },
369
+ "auth": {
370
+ "type": "string",
371
+ "description": "Authentication secret (base64)."
372
+ }
373
+ }
374
+ },
375
+ "browser": {
376
+ "type": "string",
377
+ "description": "Browser name/version (e.g., 'Chrome 120')."
378
+ }
379
+ }
380
+ }
381
+ ]
382
+ },
383
+ "appVersion": {
384
+ "type": "string",
385
+ "description": "Version of the application installed on this device (e.g., 2.5.1, 3.0.0-beta)."
386
+ },
387
+ "attribution": {
388
+ "type": "object",
389
+ "description": "App installation attribution and referral tracking data. Captured during first app install from app stores or marketing campaigns. Only sent on FIRST launch, null on subsequent launches.",
390
+ "properties": {
391
+ "referrerCode": {
392
+ "type": "string",
393
+ "description": "Referral code used during app installation. Could be from friend invite, affiliate program, or promotion code."
394
+ },
395
+ "source": {
396
+ "type": "string",
397
+ "description": "Installation source (e.g., 'organic', 'google_ads', 'facebook_ads', 'app_store', 'play_store', 'sms_campaign', 'email_campaign', 'qr_code')."
398
+ },
399
+ "campaign": {
400
+ "type": "string",
401
+ "description": "Marketing campaign identifier that led to this installation (e.g., 'summer_2024', 'new_year_promo', 'branch_opening')."
402
+ },
403
+ "medium": {
404
+ "type": "string",
405
+ "description": "Marketing medium (e.g., 'cpc', 'social', 'email', 'sms', 'banner', 'outdoor')."
406
+ },
407
+ "utmParameters": {
408
+ "type": "object",
409
+ "description": "UTM parameters from marketing URLs. Standard tracking parameters for digital campaigns.",
410
+ "properties": {
411
+ "utm_source": {
412
+ "type": "string",
413
+ "description": "Traffic source (e.g., 'google', 'facebook', 'newsletter')."
414
+ },
415
+ "utm_medium": {
416
+ "type": "string",
417
+ "description": "Marketing medium (e.g., 'cpc', 'banner', 'email')."
418
+ },
419
+ "utm_campaign": {
420
+ "type": "string",
421
+ "description": "Campaign name (e.g., 'spring_sale', 'app_launch')."
422
+ },
423
+ "utm_term": {
424
+ "type": "string",
425
+ "description": "Paid search keywords."
426
+ },
427
+ "utm_content": {
428
+ "type": "string",
429
+ "description": "Ad variation identifier (A/B testing)."
430
+ }
431
+ }
432
+ },
433
+ "clickId": {
434
+ "type": "string",
435
+ "description": "Ad click identifier from ad networks (e.g., Google Click ID 'gclid', Facebook Click ID 'fbclid')."
436
+ },
437
+ "installReferrer": {
438
+ "type": "string",
439
+ "description": "Google Play Install Referrer or App Store attribution data. Raw referrer string from app store."
440
+ },
441
+ "attributionProvider": {
442
+ "type": "string",
443
+ "description": "Attribution SDK/service used (e.g., 'AppsFlyer', 'Adjust', 'Branch', 'Firebase', 'native')."
444
+ },
445
+ "attributionData": {
446
+ "type": "object",
447
+ "description": "Raw attribution data from third-party attribution provider. Provider-specific tracking data.",
448
+ "additionalProperties": true
449
+ }
450
+ }
451
+ },
452
+ "registeredDevice": {
453
+ "type": "object",
454
+ "description": "Existing registered device information from device fact. Populated by get-device task in evaluate state. Used for comparison to determine registration flow path (no-device, reinstall, no-update). Null if device is not registered yet.",
455
+ "properties": {
456
+ "deviceId": {
457
+ "type": "string",
458
+ "description": "Device ID from existing device fact record. Used to compare with current deviceId from headers."
459
+ },
460
+ "installationId": {
461
+ "type": "string",
462
+ "format": "uuid",
463
+ "description": "Installation ID from existing device fact record. Used to detect reinstallation scenarios."
464
+ }
465
+ }
466
+ }
467
+ },
468
+ "required": [
469
+ "deviceId",
470
+ "installationId",
471
+ "deviceInfo",
472
+ "deviceCertificatePublicKey",
473
+ "appVersion"
474
+ ],
475
+ "additionalProperties": false
476
+ },
477
+ "schemaSourcePath": "morph-idm/morph-idm/Schemas/device-register-master-1.0.0.json",
478
+ "schemaHash": "a5fe10fd30779ee25e07d157e61f9c39ce4db00c15507431e5b666382ee4f365",
479
+ "label": "instance"
480
+ }
481
+ },
482
+ "target": {
483
+ "transition": {
484
+ "schemaRef": "custom",
485
+ "schema": {
486
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
487
+ "$id": "https://example.com/schemas/device-start.schema.json",
488
+ "title": "Device Start",
489
+ "description": "Device creation input. Contains all necessary information to create a new device fact. Called from device-register operational flow when a new device is detected.",
490
+ "type": "object",
491
+ "properties": {
492
+ "deviceId": {
493
+ "type": "string",
494
+ "description": "Hardware or system-level unique identifier of the device (e.g., UUID, Vendor ID, IMEI)."
495
+ },
496
+ "installationId": {
497
+ "type": "string",
498
+ "format": "uuid",
499
+ "description": "Unique identifier generated for each installation of the application on the device. Distinguishes different installations on the same device."
500
+ },
501
+ "deviceInfo": {
502
+ "type": "object",
503
+ "description": "Detailed information about the device and operating system.",
504
+ "properties": {
505
+ "osName": {
506
+ "type": "string",
507
+ "description": "Operating system name (e.g., iOS, Android, HarmonyOS, Windows, macOS)."
508
+ },
509
+ "osVersion": {
510
+ "type": "string",
511
+ "description": "Operating system version (e.g., 17.2.1, API 33, Windows 11)."
512
+ },
513
+ "deviceModel": {
514
+ "type": "string",
515
+ "description": "Device model (e.g., iPhone 14 Pro, Pixel 7, Galaxy S22, MacBook Pro)."
516
+ },
517
+ "manufacturer": {
518
+ "type": "string",
519
+ "description": "Device manufacturer (e.g., Apple, Samsung, Xiaomi, Huawei, Google)."
520
+ },
521
+ "screenResolution": {
522
+ "type": "string",
523
+ "description": "Device screen resolution (e.g., 1920x1080, 2532x1170)."
524
+ },
525
+ "language": {
526
+ "type": "string",
527
+ "description": "Device language setting (e.g., en-US, tr-TR)."
528
+ },
529
+ "timezone": {
530
+ "type": "string",
531
+ "description": "Device timezone (e.g., Europe/Istanbul, America/New_York)."
532
+ }
533
+ },
534
+ "required": [
535
+ "osName",
536
+ "osVersion",
537
+ "deviceModel",
538
+ "manufacturer"
539
+ ]
540
+ },
541
+ "deviceCertificatePublicKey": {
542
+ "type": "string",
543
+ "description": "Device-specific base public key. Used during initial device registration for device attestation. This is the root device identity, independent of user/consent."
544
+ },
545
+ "pushToken": {
546
+ "description": "Platform-specific push notification token. Device can have only ONE active push token based on its platform. Use 'platform' field to determine which push service to use.",
547
+ "oneOf": [
548
+ {
549
+ "type": "object",
550
+ "description": "Apple Push Notification Service (APNS) for iOS/iPadOS/macOS devices.",
551
+ "required": [
552
+ "platform",
553
+ "token"
554
+ ],
555
+ "properties": {
556
+ "platform": {
557
+ "type": "string",
558
+ "const": "apns",
559
+ "description": "Platform identifier (discriminator field)."
560
+ },
561
+ "token": {
562
+ "type": "string",
563
+ "description": "APNS device token (hex string, 64 characters)."
564
+ },
565
+ "environment": {
566
+ "type": "string",
567
+ "enum": [
568
+ "production",
569
+ "sandbox"
570
+ ],
571
+ "description": "APNS environment. production (App Store), sandbox (Development/TestFlight)."
572
+ },
573
+ "bundleId": {
574
+ "type": "string",
575
+ "description": "iOS app bundle identifier (e.g., 'com.burgan.mobilebanking')."
576
+ }
577
+ }
578
+ },
579
+ {
580
+ "type": "object",
581
+ "description": "Firebase Cloud Messaging (FCM) for Android devices with Google Play Services.",
582
+ "required": [
583
+ "platform",
584
+ "token"
585
+ ],
586
+ "properties": {
587
+ "platform": {
588
+ "type": "string",
589
+ "const": "fcm",
590
+ "description": "Platform identifier (discriminator field)."
591
+ },
592
+ "token": {
593
+ "type": "string",
594
+ "description": "FCM registration token."
595
+ },
596
+ "projectId": {
597
+ "type": "string",
598
+ "description": "Firebase project ID."
599
+ },
600
+ "packageName": {
601
+ "type": "string",
602
+ "description": "Android app package name."
603
+ }
604
+ }
605
+ },
606
+ {
607
+ "type": "object",
608
+ "description": "Huawei Mobile Services (HMS) Push for Huawei devices without Google Play Services.",
609
+ "required": [
610
+ "platform",
611
+ "token"
612
+ ],
613
+ "properties": {
614
+ "platform": {
615
+ "type": "string",
616
+ "const": "hms",
617
+ "description": "Platform identifier (discriminator field)."
618
+ },
619
+ "token": {
620
+ "type": "string",
621
+ "description": "HMS Push token."
622
+ },
623
+ "appId": {
624
+ "type": "string",
625
+ "description": "Huawei AppGallery app ID."
626
+ },
627
+ "packageName": {
628
+ "type": "string",
629
+ "description": "Android app package name."
630
+ }
631
+ }
632
+ },
633
+ {
634
+ "type": "object",
635
+ "description": "Web Push API for Progressive Web Apps and browsers.",
636
+ "required": [
637
+ "platform",
638
+ "endpoint"
639
+ ],
640
+ "properties": {
641
+ "platform": {
642
+ "type": "string",
643
+ "const": "webpush",
644
+ "description": "Platform identifier (discriminator field)."
645
+ },
646
+ "endpoint": {
647
+ "type": "string",
648
+ "description": "Push service endpoint URL."
649
+ },
650
+ "keys": {
651
+ "type": "object",
652
+ "properties": {
653
+ "p256dh": {
654
+ "type": "string",
655
+ "description": "Client public key for encryption (base64)."
656
+ },
657
+ "auth": {
658
+ "type": "string",
659
+ "description": "Authentication secret (base64)."
660
+ }
661
+ }
662
+ },
663
+ "browser": {
664
+ "type": "string",
665
+ "description": "Browser name/version (e.g., 'Chrome 120')."
666
+ }
667
+ }
668
+ }
669
+ ]
670
+ },
671
+ "appVersion": {
672
+ "type": "string",
673
+ "description": "Version of the application installed on this device (e.g., 2.5.1, 3.0.0-beta)."
674
+ },
675
+ "attribution": {
676
+ "type": "object",
677
+ "description": "App installation attribution and referral tracking data. Captured during first app install from app stores or marketing campaigns. Only sent on FIRST launch, null on subsequent launches.",
678
+ "properties": {
679
+ "referrerCode": {
680
+ "type": "string",
681
+ "description": "Referral code used during app installation. Could be from friend invite, affiliate program, or promotion code."
682
+ },
683
+ "source": {
684
+ "type": "string",
685
+ "description": "Installation source (e.g., 'organic', 'google_ads', 'facebook_ads', 'app_store', 'play_store', 'sms_campaign', 'email_campaign', 'qr_code')."
686
+ },
687
+ "campaign": {
688
+ "type": "string",
689
+ "description": "Marketing campaign identifier that led to this installation (e.g., 'summer_2024', 'new_year_promo', 'branch_opening')."
690
+ },
691
+ "medium": {
692
+ "type": "string",
693
+ "description": "Marketing medium (e.g., 'cpc', 'social', 'email', 'sms', 'banner', 'outdoor')."
694
+ },
695
+ "utmParameters": {
696
+ "type": "object",
697
+ "description": "UTM parameters from marketing URLs. Standard tracking parameters for digital campaigns.",
698
+ "properties": {
699
+ "utm_source": {
700
+ "type": "string",
701
+ "description": "Traffic source (e.g., 'google', 'facebook', 'newsletter')."
702
+ },
703
+ "utm_medium": {
704
+ "type": "string",
705
+ "description": "Marketing medium (e.g., 'cpc', 'banner', 'email')."
706
+ },
707
+ "utm_campaign": {
708
+ "type": "string",
709
+ "description": "Campaign name (e.g., 'spring_sale', 'app_launch')."
710
+ },
711
+ "utm_term": {
712
+ "type": "string",
713
+ "description": "Paid search keywords."
714
+ },
715
+ "utm_content": {
716
+ "type": "string",
717
+ "description": "Ad variation identifier (A/B testing)."
718
+ }
719
+ }
720
+ },
721
+ "clickId": {
722
+ "type": "string",
723
+ "description": "Ad click identifier from ad networks (e.g., Google Click ID 'gclid', Facebook Click ID 'fbclid')."
724
+ },
725
+ "installReferrer": {
726
+ "type": "string",
727
+ "description": "Google Play Install Referrer or App Store attribution data. Raw referrer string from app store."
728
+ },
729
+ "attributionProvider": {
730
+ "type": "string",
731
+ "description": "Attribution SDK/service used (e.g., 'AppsFlyer', 'Adjust', 'Branch', 'Firebase', 'native')."
732
+ },
733
+ "attributionData": {
734
+ "type": "object",
735
+ "description": "Raw attribution data from third-party attribution provider. Provider-specific tracking data.",
736
+ "additionalProperties": true
737
+ }
738
+ }
739
+ }
740
+ },
741
+ "required": [
742
+ "deviceId",
743
+ "installationId",
744
+ "deviceInfo",
745
+ "deviceCertificatePublicKey",
746
+ "appVersion"
747
+ ],
748
+ "additionalProperties": false
749
+ },
750
+ "schemaSourcePath": "morph-idm/morph-idm/Schemas/device-start-1.0.0.json",
751
+ "schemaHash": "d0514327a95c8b1cf8321cd15951b681c2ea70ce35172c5161212f2f5cc16307",
752
+ "label": "transition"
753
+ }
754
+ },
755
+ "sourceOrder": [
756
+ "instance"
757
+ ],
758
+ "targetOrder": [
759
+ "transition"
760
+ ]
761
+ }
762
+ }