Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
Signed-off-by: Darrell O'Donnell <darrell.odonnell@continuumloop.com>
  • Loading branch information
darrellodonnell committed Mar 20, 2024
1 parent 3e8a3c6 commit 2e6fd1f
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 8 deletions.
2 changes: 1 addition & 1 deletion api/toip-tswg-trustregistryprotocol-v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ components:
description: The Validity dates related to this particular authorization.
allOf:
- $ref: '#/components/schemas/ValidityDatesType'

status:
type: string
enum:
Expand Down
47 changes: 40 additions & 7 deletions diagrams/highlevel.plantuml
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,33 @@ TrustRegistry <|-- Lookup

package QueryDataObjects {


class RegistryList
class ResourceList
class EntityList

class Entity {
identifier: VID
didmethod: DIDMethod
Authorizations[]
Authorizations[]: EntityAuthorizationList
registryListings[]
Namespaces[]
HasAuthorization(Authorization)
}

class EntityAuthorization {
entityID: VID
authorizationID: VID
simplename: string
description: string
assuranceLevel: string
status: AuthorizationStatus
' ValidityDatesType (TODO: remove type?)
validFromDT: datetime
validToDT: datetime

}

object Registry {
identifier: VID
name: string
Expand All @@ -93,9 +107,17 @@ package QueryDataObjects {
payloadURI: string
integrity: Integrity
}

object Integrity

enum AuthorizationStatus {
current, expired, terminated, revoked
}
}

object Integrity




package Lookups {
package LookupLists {
Expand All @@ -111,18 +133,22 @@ package Lookups {
}

object Authorization {
authorizationIdentifier: VID
authorization: string
description: string
}


object Namespace
object Namespace {
namespaceName: string
namespaceID: VID
description: string
reference: URI
}
object AssuranceLevel {
identifier: string
name: string
'TODO multilingual
}


}


Expand All @@ -149,13 +175,20 @@ EntityList o-- "0..n" Entity
RegistryList o-- "0..n" Registry
ResourceList o-- "0..n" Resource

Resource::integrity --> Integrity
Resource::integrity o-- "0..1" Integrity

Lookup::VIDTypes --> VIDTypeList
Lookup::Authorizations --> AuthorizationList
Lookup::AssuranceLevels --> AssuranceLevelList
Lookup::Namespaces --> NamespaceList

' Entity-related objects
Entity::Authorizations o-- "0...n" EntityAuthorization
EntityAuthorization::status --> AuthorizationStatus
EntityAuthorization::authorizationID --> Authorization
EntityAuthorization::assuranceLevel --> AssuranceLevel


' METADATA related objects
TrustRegistry --> Metadata
TrustRegistry::Entity --> Entity
Expand Down
Binary file modified spec/images/puml/highlevel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2e6fd1f

Please sign in to comment.