@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,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "BUSINESS CONTEXT: Schema for organization restructuring. Allows updating the tree structure (children), positionLevels, and metadata. Used in 'restructure' transition. All fields optional for partial updates.",
|
|
3
|
+
"key": "organization-update",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"domain": "morph-idm",
|
|
6
|
+
"flow": "sys-schemas",
|
|
7
|
+
"flowVersion": "1.0.0",
|
|
8
|
+
"tags": [
|
|
9
|
+
"organization",
|
|
10
|
+
"schema",
|
|
11
|
+
"update"
|
|
12
|
+
],
|
|
13
|
+
"attributes": {
|
|
14
|
+
"type": "workflow",
|
|
15
|
+
"schema": {
|
|
16
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
17
|
+
"$id": "https://vnext.io/schemas/organization/organization-update.json",
|
|
18
|
+
"title": "Organization Structure Update",
|
|
19
|
+
"description": "Partial update schema for organization restructuring. All fields are optional.",
|
|
20
|
+
"type": "object",
|
|
21
|
+
"properties": {
|
|
22
|
+
"positionLevels": {
|
|
23
|
+
"type": "array",
|
|
24
|
+
"items": {
|
|
25
|
+
"type": "string"
|
|
26
|
+
},
|
|
27
|
+
"description": "Updated list of available position levels. If provided, replaces existing list."
|
|
28
|
+
},
|
|
29
|
+
"children": {
|
|
30
|
+
"type": "array",
|
|
31
|
+
"description": "Updated root nodes of the organization tree. If provided, replaces existing children.",
|
|
32
|
+
"items": {
|
|
33
|
+
"$ref": "../organization/organization-master-1.0.0.json#/$defs/OrganizationNode"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"metadata": {
|
|
37
|
+
"type": "object",
|
|
38
|
+
"description": "Updated metadata. Fields are merged with existing metadata.",
|
|
39
|
+
"properties": {
|
|
40
|
+
"lastRestructured": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"format": "date-time",
|
|
43
|
+
"description": "When this restructure was performed."
|
|
44
|
+
},
|
|
45
|
+
"version": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"description": "Version of the organization structure after restructure."
|
|
48
|
+
},
|
|
49
|
+
"restructureReason": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"description": "Reason for restructuring (e.g., 'Merger with IT and Operations', 'Cost reduction')."
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"additionalProperties": true
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"additionalProperties": false
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
{
|
|
2
|
+
"key": "privilege-master",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"domain": "morph-idm",
|
|
5
|
+
"flow": "sys-schemas",
|
|
6
|
+
"flowVersion": "1.0.0",
|
|
7
|
+
"tags": [
|
|
8
|
+
"privilege",
|
|
9
|
+
"schema"
|
|
10
|
+
],
|
|
11
|
+
"attributes": {
|
|
12
|
+
"type": "workflow",
|
|
13
|
+
"schema": {
|
|
14
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
15
|
+
"$id": "https://vnext.io/schemas/privilege/privilege-master.json",
|
|
16
|
+
"title": "Privilege Definition",
|
|
17
|
+
"description": "Fine-grained resource filtering and feature flags with optional dynamic code.",
|
|
18
|
+
"type": "object",
|
|
19
|
+
"properties": {
|
|
20
|
+
"name": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "Privilege name (e.g., 'Portfolio Manager Restrictions', 'Branch Access Control')."
|
|
23
|
+
},
|
|
24
|
+
"description": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"description": "Description of what this privilege controls."
|
|
27
|
+
},
|
|
28
|
+
"items": {
|
|
29
|
+
"type": "array",
|
|
30
|
+
"description": "Array of key-value pairs. Each key represents a resource type or feature flag.",
|
|
31
|
+
"items": {
|
|
32
|
+
"type": "object",
|
|
33
|
+
"properties": {
|
|
34
|
+
"key": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"description": "Key identifying the resource type or feature (e.g., 'allowedAccounts', 'allowedLocations', 'canAccessInternational')."
|
|
37
|
+
},
|
|
38
|
+
"values": {
|
|
39
|
+
"type": "array",
|
|
40
|
+
"items": {
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
"description": "Array of allowed values. For resources: IDs/keys. For feature flags: ['true'/'false']."
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"required": [
|
|
47
|
+
"key",
|
|
48
|
+
"values"
|
|
49
|
+
],
|
|
50
|
+
"additionalProperties": false
|
|
51
|
+
},
|
|
52
|
+
"minItems": 1
|
|
53
|
+
},
|
|
54
|
+
"code": {
|
|
55
|
+
"type": "array",
|
|
56
|
+
"description": "Optional JavaScript/TypeScript code snippets for dynamic privilege evaluation. Each code item can serve different purposes (e.g., location-filter, time-based-filter, custom-logic).",
|
|
57
|
+
"items": {
|
|
58
|
+
"type": "object",
|
|
59
|
+
"properties": {
|
|
60
|
+
"key": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"description": "Identifier for this code snippet (e.g., 'location-filter', 'time-based-check', 'account-calculator')."
|
|
63
|
+
},
|
|
64
|
+
"code": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"description": "JavaScript/TypeScript function code. Should export a function: evaluate(context) => Array<{key: string, values: string[]}>"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"required": [
|
|
70
|
+
"key",
|
|
71
|
+
"code"
|
|
72
|
+
],
|
|
73
|
+
"additionalProperties": false
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"required": [
|
|
78
|
+
"name",
|
|
79
|
+
"items"
|
|
80
|
+
],
|
|
81
|
+
"additionalProperties": false
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"key": "privilege-update",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"domain": "morph-idm",
|
|
5
|
+
"flow": "sys-schemas",
|
|
6
|
+
"flowVersion": "1.0.0",
|
|
7
|
+
"tags": [
|
|
8
|
+
"privilege",
|
|
9
|
+
"schema",
|
|
10
|
+
"update"
|
|
11
|
+
],
|
|
12
|
+
"attributes": {
|
|
13
|
+
"type": "workflow",
|
|
14
|
+
"schema": {
|
|
15
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
16
|
+
"$id": "https://vnext.io/schemas/privilege/privilege-update.json",
|
|
17
|
+
"title": "Privilege Update",
|
|
18
|
+
"description": "Partial update schema for privilege instances. All fields are optional.",
|
|
19
|
+
"type": "object",
|
|
20
|
+
"properties": {
|
|
21
|
+
"name": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"description": "Updated privilege name."
|
|
24
|
+
},
|
|
25
|
+
"description": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "Updated description."
|
|
28
|
+
},
|
|
29
|
+
"items": {
|
|
30
|
+
"type": "array",
|
|
31
|
+
"description": "Updated items. If provided, replaces existing items.",
|
|
32
|
+
"items": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"properties": {
|
|
35
|
+
"key": {
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
"values": {
|
|
39
|
+
"type": "array",
|
|
40
|
+
"items": {
|
|
41
|
+
"type": "string"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"required": [
|
|
46
|
+
"key",
|
|
47
|
+
"values"
|
|
48
|
+
],
|
|
49
|
+
"additionalProperties": false
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"code": {
|
|
53
|
+
"type": "array",
|
|
54
|
+
"description": "Updated code snippets. If provided, replaces existing code array.",
|
|
55
|
+
"items": {
|
|
56
|
+
"type": "object",
|
|
57
|
+
"properties": {
|
|
58
|
+
"key": {
|
|
59
|
+
"type": "string"
|
|
60
|
+
},
|
|
61
|
+
"code": {
|
|
62
|
+
"type": "string"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"required": [
|
|
66
|
+
"key",
|
|
67
|
+
"code"
|
|
68
|
+
],
|
|
69
|
+
"additionalProperties": false
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"additionalProperties": false
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "BUSINESS CONTEXT: Scope groups organize related scopes (customers) and define shared security policies, available roles, and authorization rules. Example: 'Individual Customers' group vs 'Corporate Customers' group.",
|
|
3
|
+
"key": "scope-group-master",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"domain": "morph-idm",
|
|
6
|
+
"flow": "sys-schemas",
|
|
7
|
+
"flowVersion": "1.0.0",
|
|
8
|
+
"tags": [
|
|
9
|
+
"morph-idm",
|
|
10
|
+
"schema"
|
|
11
|
+
],
|
|
12
|
+
"attributes": {
|
|
13
|
+
"type": "workflow",
|
|
14
|
+
"schema": {
|
|
15
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
16
|
+
"$id": "https://vnext.io/schemas/core/scope-group-master.json",
|
|
17
|
+
"title": "Scope Group",
|
|
18
|
+
"description": "Scope group definition. Contains roles, authorization rules, and association logic for a group of scopes.",
|
|
19
|
+
"type": "object",
|
|
20
|
+
"properties": {
|
|
21
|
+
"organization": {
|
|
22
|
+
"$ref": "../common/reference.json",
|
|
23
|
+
"description": "Reference to the organization template for this scope group. All scopes in this group inherit this organization structure. Roles and privileges are defined within the organization tree nodes (location, division, position). Example: { domain: 'idm', workflow: 'organization', key: 'corporate-banking-template' }"
|
|
24
|
+
},
|
|
25
|
+
"inviterRoles": {
|
|
26
|
+
"type": "array",
|
|
27
|
+
"description": "Roles that are authorized to create consents (invite users) for scopes in this group. Domain-qualified role names. Inherited by each scope instance unless overridden.",
|
|
28
|
+
"items": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"pattern": "^[a-z0-9-]+\\.[a-z0-9-]+$"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"allowKeyCompareAutoConsent": {
|
|
34
|
+
"type": "boolean",
|
|
35
|
+
"default": false,
|
|
36
|
+
"description": "If true, automatic consent creation is allowed when scope.key matches user.key. Commonly used for individual user scopes where users have automatic access to their own scope."
|
|
37
|
+
},
|
|
38
|
+
"consentLifetime": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"description": "Default lifetime for consents created within this scope group, in ISO-8601 duration format (e.g., P30D for 30 days). If not specified, consents may not expire."
|
|
41
|
+
},
|
|
42
|
+
"maxMembersPerScope": {
|
|
43
|
+
"type": "integer",
|
|
44
|
+
"minimum": 1,
|
|
45
|
+
"description": "Maximum number of members (consents) allowed per scope in this group. Used to limit scope size and control access. For example, limit customer access to maximum 50 employees."
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"required": [],
|
|
49
|
+
"additionalProperties": false
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "BUSINESS CONTEXT: In OAuth2, 'scope' represents resources. In our banking adaptation, scopes represent CUSTOMERS (both individual and corporate). Each customer (individual or corporate) is a scope record. Users are authorized to these customer scopes via consents. Example: A bank employee (user) gains access to customer accounts (scope) through consent grants.",
|
|
3
|
+
"key": "scope-master",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"domain": "morph-idm",
|
|
6
|
+
"flow": "sys-schemas",
|
|
7
|
+
"flowVersion": "1.0.0",
|
|
8
|
+
"tags": [
|
|
9
|
+
"morph-idm",
|
|
10
|
+
"schema"
|
|
11
|
+
],
|
|
12
|
+
"attributes": {
|
|
13
|
+
"type": "workflow",
|
|
14
|
+
"schema": {
|
|
15
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
16
|
+
"$id": "https://vnext.io/schemas/core/scope-master.json",
|
|
17
|
+
"title": "Scope",
|
|
18
|
+
"description": "OAuth2 scope representing a customer (individual or corporate). Contains scope definition, group membership, and scope-specific configurations.",
|
|
19
|
+
"type": "object",
|
|
20
|
+
"properties": {
|
|
21
|
+
"group": {
|
|
22
|
+
"$ref": "../common/reference.json",
|
|
23
|
+
"description": "Reference to the scope group this scope belongs to. Inherits security policies and available roles from the group."
|
|
24
|
+
},
|
|
25
|
+
"inviterRoles": {
|
|
26
|
+
"type": "array",
|
|
27
|
+
"description": "Roles that are authorized to create consents (invite users) for this scope. Only users with these roles can grant access to other users. Used in invitation-based consent flow (corporate scenario). If empty, no invitations allowed (auto-consent only). Example: ['idm.admin', 'idm.user-manager']",
|
|
28
|
+
"items": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"pattern": "^[a-z0-9-]+\\.[a-z0-9-]+$"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"organization": {
|
|
34
|
+
"$ref": "../common/reference.json",
|
|
35
|
+
"description": "Reference to this scope's organization instance. Defines the organizational structure (locations, divisions, positions) for this customer. Consent positions resolve to nodes in this organization tree. Roles and privileges are defined within the organization tree nodes. Example: { domain: 'idm', workflow: 'organization', key: 'burganbank-org' }"
|
|
36
|
+
},
|
|
37
|
+
"externalSystems": {
|
|
38
|
+
"type": "array",
|
|
39
|
+
"description": "Integration data with external systems. Each item represents an external system integration. Example: CIF (Customer Information File) integration in banking, ERP system references, legacy system IDs, etc.",
|
|
40
|
+
"items": {
|
|
41
|
+
"type": "object",
|
|
42
|
+
"properties": {
|
|
43
|
+
"systemId": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"description": "External system identifier (e.g., 'CIF', 'SAP', 'CoreBanking', 'CRM')."
|
|
46
|
+
},
|
|
47
|
+
"externalId": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"description": "Unique identifier in the external system (e.g., CIF number, customer ID, account number)."
|
|
50
|
+
},
|
|
51
|
+
"lastSyncAt": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"format": "date-time",
|
|
54
|
+
"description": "Timestamp of last synchronization. If null, never synced."
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"timeRestrictions": {
|
|
60
|
+
"type": "object",
|
|
61
|
+
"description": "Time-based access restrictions for this scope. Define allowed access hours per day. Format: 'HH:mm-HH:mm' (24h) or 'closed'. If not defined, no time restrictions apply. Timezone aware. Example: Restrict customer access to business hours only.",
|
|
62
|
+
"properties": {
|
|
63
|
+
"monday": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"description": "e.g., '09:00-17:00' or 'closed'"
|
|
66
|
+
},
|
|
67
|
+
"tuesday": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"description": "e.g., '09:00-17:00' or 'closed'"
|
|
70
|
+
},
|
|
71
|
+
"wednesday": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"description": "e.g., '09:00-17:00' or 'closed'"
|
|
74
|
+
},
|
|
75
|
+
"thursday": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"description": "e.g., '09:00-17:00' or 'closed'"
|
|
78
|
+
},
|
|
79
|
+
"friday": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"description": "e.g., '09:00-17:00' or 'closed'"
|
|
82
|
+
},
|
|
83
|
+
"saturday": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"description": "e.g., '09:00-17:00' or 'closed'"
|
|
86
|
+
},
|
|
87
|
+
"sunday": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"description": "e.g., '09:00-17:00' or 'closed'"
|
|
90
|
+
},
|
|
91
|
+
"timezone": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"default": "UTC",
|
|
94
|
+
"description": "IANA timezone identifier (e.g., 'Europe/Istanbul', 'America/New_York'). All time restrictions are evaluated in this timezone."
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"additionalProperties": false
|
|
98
|
+
},
|
|
99
|
+
"ipRestrictions": {
|
|
100
|
+
"type": "array",
|
|
101
|
+
"description": "IP-based access restrictions for this scope. Only requests from these IPs/CIDR blocks can access this customer's data. If empty or not defined, no IP restrictions apply. Example: Restrict customer access to branch office IPs only.",
|
|
102
|
+
"items": {
|
|
103
|
+
"type": "string"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"searchKey": {
|
|
107
|
+
"type": [
|
|
108
|
+
"string",
|
|
109
|
+
"null"
|
|
110
|
+
],
|
|
111
|
+
"description": "Optional search key for querying and filtering scopes."
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"required": [
|
|
115
|
+
"group"
|
|
116
|
+
],
|
|
117
|
+
"additionalProperties": false
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|