mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-04 02:11:40 +00:00
@@ -0,0 +1,56 @@
|
||||
module base.webapi.Manifest
|
||||
|
||||
name: String
|
||||
short_name: String
|
||||
description: String?
|
||||
display: ("fullscreen"|"standalone"|"minimal-ui"|"browser")?
|
||||
display_override: Listing<String>?
|
||||
theme_color: String?
|
||||
background_color: String?
|
||||
orientation: ("any"|"natural"|"landscape"|"portrait")?
|
||||
start_url: String
|
||||
scope: String?
|
||||
service_worker: ServiceWorker?
|
||||
icons: Listing<ShortcutIcon>?
|
||||
related_applications: Listing<RelatedApplication>?
|
||||
prefer_related_applications: Boolean?
|
||||
shortcuts: Listing<Shortcut>?
|
||||
file_handlers: Listing<FileHandler>?
|
||||
protocol_handlers: Listing<ProtocolHandler>?
|
||||
|
||||
class ServiceWorker {
|
||||
scope: String
|
||||
src: String
|
||||
use_cache: Boolean
|
||||
}
|
||||
|
||||
class ShortcutIcon {
|
||||
src: String
|
||||
sizes: String
|
||||
type: String?
|
||||
purpose: String?
|
||||
}
|
||||
|
||||
class RelatedApplication {
|
||||
platform: String
|
||||
url: String?
|
||||
id: String?
|
||||
}
|
||||
|
||||
class Shortcut {
|
||||
name: String
|
||||
short_name: String?
|
||||
description: String?
|
||||
url: String
|
||||
icons: Listing<ShortcutIcon>?
|
||||
}
|
||||
|
||||
class FileHandler {
|
||||
action: String
|
||||
accept: Mapping<String, Listing<String>>
|
||||
}
|
||||
|
||||
class ProtocolHandler {
|
||||
scheme: String
|
||||
url: String
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
module base.did.OpenIDPayload
|
||||
|
||||
verified_claims: VerifiedClaims
|
||||
|
||||
class VerifiedClaims {
|
||||
verification: Verification
|
||||
claims: Claims
|
||||
}
|
||||
|
||||
class Verification {
|
||||
trust_framework: String
|
||||
time: String
|
||||
verification_process: String
|
||||
evidence: Listing<Evidence>
|
||||
}
|
||||
|
||||
class Evidence {
|
||||
type: String
|
||||
check_details: Listing<CheckDetail>
|
||||
time: String
|
||||
document_details: DocumentDetails
|
||||
}
|
||||
|
||||
class CheckDetail {
|
||||
check_method: String
|
||||
}
|
||||
|
||||
class DocumentDetails {
|
||||
type: String
|
||||
issuer: Issuer
|
||||
document_number: String?
|
||||
date_of_issuance: String
|
||||
date_of_expiry: String?
|
||||
}
|
||||
|
||||
class Issuer {
|
||||
name: String
|
||||
country: String
|
||||
region: String?
|
||||
street_address: String?
|
||||
}
|
||||
|
||||
class Claims {
|
||||
given_name: String
|
||||
family_name: String
|
||||
birthdate: String
|
||||
place_of_birth: PlaceOfBirth
|
||||
nationalities: Listing<String>
|
||||
address: Address
|
||||
}
|
||||
|
||||
class PlaceOfBirth {
|
||||
country: String
|
||||
locality: String
|
||||
}
|
||||
|
||||
class Address {
|
||||
locality: String
|
||||
postal_code: String
|
||||
country: String
|
||||
street_address: String
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
amends "../basePklProject.pkl"
|
||||
|
||||
package {
|
||||
version = "0.0.1"
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"resolvedDependencies": {}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
module base.did.VerifiableCredential
|
||||
|
||||
`@context`: Listing<String>
|
||||
id: String
|
||||
type: Listing<String>
|
||||
issuer: String
|
||||
issuanceDate: String
|
||||
credentialSubject: CredentialSubject
|
||||
credentialSchema: CredentialSchema
|
||||
|
||||
class CredentialSubject {
|
||||
id: String
|
||||
emailAddress: String
|
||||
}
|
||||
|
||||
class CredentialSchema {
|
||||
id: String
|
||||
type: String
|
||||
}
|
||||
Reference in New Issue
Block a user