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