{
    "$id": "EDthuv3Zf67Y_Ly_wpVm8TUKaoVKxXUKCyAI9VeofR7X",
    "$schema": "http://json-schema.org/draft-07/schema#",
    "title": "Designated Aliases Private Attestation",
    "description": "A private attestation listing the designated aliases of an AID controller.",
    "type": "object",
    "credentialType": "DesignatedAliasesPrivateAttestation",
    "version": "1.0.0",
    "properties": {
        "v": {
            "description": "Version",
            "type": "string"
        },
        "d": {
            "description": "Attestation SAID",
            "type": "string"
        },
        "i": {
            "description": "Controller AID",
            "type": "string"
        },
        "ri": {
            "description": "Attestation status registry",
            "type": "string"
        },
        "u": {
            "description": "One time use nonce",
            "type": "string"
        },
        "s": {
            "description": "schema section",
            "oneOf": [
                {
                    "description": "schema section SAID",
                    "type": "string"
                },
                {
                    "description": "schema detail",
                    "type": "object"
                }
            ]
        },
        "a": {
            "oneOf": [
                {
                    "description": "Attributes block SAID",
                    "type": "string"
                },
                {
                    "$id": "EMGRIPzrjqRrF9T_ka0mxs7JDpOpGDZwqb3sje4Nd6Mc",
                    "description": "Attributes block",
                    "type": "object",
                    "properties": {
                        "d": {
                            "description": "Attributes block SAID",
                            "type": "string"
                        },
                        "dt": {
                            "description": "Designation date time",
                            "type": "string",
                            "format": "date-time"
                        },
                        "u": {
                            "description": "One time use nonce",
                            "type": "string"
                        },
                        "ids": {
                            "description": "List of namespaced/controlled AID aliases designated by the AID controller",
                            "type": "array",
                            "items": {
                                "type": "string"
                            }
                        }
                    },
                    "additionalProperties": false,
                    "required": [
                        "d",
                        "dt",
                        "ids"
                    ]
                }
            ]
        },
        "r": {
            "oneOf": [
                {
                    "description": "Rules block SAID",
                    "type": "string"
                },
                {
                    "$id": "EB5g3cx-Hr3kAtxWI_lM0hLX8CgKg4T_83Q19KPBRx8H",
                    "description": "Rules block",
                    "type": "object",
                    "properties": {
                        "d": {
                            "description": "Rules block SAID",
                            "type": "string"
                        },
                        "aliasDesignation": {
                            "description": "Alias designation",
                            "type": "object",
                            "properties": {
                                "l": {
                                    "type": "string",
                                    "const": "The issuer of this ACDC designates the identifiers in the ids field as the only allowed namespaced aliases of the issuer's AID."
                                }
                            }
                        },
                        "usageDisclaimer": {
                            "description": "Usage Disclaimer",
                            "type": "object",
                            "properties": {
                                "l": {
                                    "description": "Limitation of designation scope",
                                    "type": "string",
                                    "const": "This attestation only asserts designated aliases of the controller of the AID, that the AID controlled namespaced alias has been designated by the controller. It does not assert that the controller of this AID has control over the infrastructure or anything else related to the namespace other than the included AID."
                                }
                            }
                        },
                        "issuanceDisclaimer": {
                            "description": "Issuance Disclaimer",
                            "type": "object",
                            "properties": {
                                "l": {
                                    "description": "Accuracy of information",
                                    "type": "string",
                                    "const": "All information in a valid and non-revoked alias designation assertion is accurate as of the date specified."
                                }
                            }
                        },
                        "privacyDisclaimer": {
                            "description": "Privacy Disclaimer",
                            "type": "object",
                            "properties": {
                                "l": {
                                    "description": "Privacy-preservation expectations",
                                    "type": "string",
                                    "const": "This assertioin has been blinded with the UUID field, making this exchange of designated aliases private. Therefore, the assertion should be used in a privacy-preserving manner and the information should not be shared with any other party."
                                }
                            }
                        },
                        "termsOfUse": {
                            "description": "Terms of use",
                            "type": "object",
                            "properties": {
                                "l": {
                                    "type": "string",
                                    "const": "Designated aliases of the AID must only be used in a manner consistent with the expressed intent of the AID controller."
                                }
                            }
                        }
                    },
                    "additionalProperties": false,
                    "required": [
                        "d",
                        "aliasDesignation",
                        "usageDisclaimer",
                        "issuanceDisclaimer",
                        "privacyDisclaimer",
                        "termsOfUse"
                    ]
                }
            ]
        }
    },
    "additionalProperties": false,
    "required": [
        "v",
        "d",
        "i",
        "ri",
        "s",
        "a",
        "r"
    ]
}