diff --git a/docs/composedb/examples/verifiable-credentials.mdx b/docs/composedb/examples/verifiable-credentials.mdx index 20b374c5..068e60ca 100644 --- a/docs/composedb/examples/verifiable-credentials.mdx +++ b/docs/composedb/examples/verifiable-credentials.mdx @@ -327,7 +327,9 @@ interface VerifiableCredential context: [String!]! @string(maxLength: 1000) @list(maxLength: 100) type: [String!]! @string(maxLength: 1000) @list(maxLength: 100) credentialSchema: CredentialSchema! + credentialStatus: CredentialStatus issuanceDate: DateTime! + expirationDate: DateTime } type Issuer { @@ -335,6 +337,11 @@ type Issuer { name: String @string(maxLength: 1000) } +type CredentialStatus { + id: String! @string(maxLength: 1000) + type: String! @string(maxLength: 1000) +} + type CredentialSchema { id: String! @string(maxLength: 1000) type: String! @string(maxLength: 1000) @@ -349,11 +356,13 @@ interface VCEIP712Proof implements VerifiableCredential context: [String!]! @string(maxLength: 1000) @list(maxLength: 100) type: [String!]! @string(maxLength: 1000) @list(maxLength: 100) credentialSchema: CredentialSchema! + credentialStatus: CredentialStatus issuanceDate: DateTime! + expirationDate: DateTime proof: ProofEIP712! } -## generalized JWT proof type +## generalized JWT proof interface interface VCJWTProof implements VerifiableCredential @createModel(description: "A verifiable credential interface of type JWT") { @@ -362,7 +371,9 @@ interface VCJWTProof implements VerifiableCredential context: [String!]! @string(maxLength: 1000) @list(maxLength: 100) type: [String!]! @string(maxLength: 1000) @list(maxLength: 100) credentialSchema: CredentialSchema! + credentialStatus: CredentialStatus issuanceDate: DateTime! + expirationDate: DateTime proof: ProofJWT! } @@ -421,7 +432,9 @@ type VerifiableCredentialEIP712 implements VerifiableCredential & VCEIP712Proof context: [String!]! @string(maxLength: 1000) @list(maxLength: 100) type: [String!]! @string(maxLength: 1000) @list(maxLength: 100) credentialSchema: CredentialSchema! + credentialStatus: CredentialStatus issuanceDate: DateTime! + expirationDate: DateTime proof: ProofEIP712! credentialSubject: CredentialSubject! } @@ -436,7 +449,9 @@ type VerifiableCredentialJWT implements VerifiableCredential & VCJWTProof context: [String!]! @string(maxLength: 1000) @list(maxLength: 100) type: [String!]! @string(maxLength: 1000) @list(maxLength: 100) credentialSchema: CredentialSchema! + credentialStatus: CredentialStatus issuanceDate: DateTime! + expirationDate: DateTime proof: ProofJWT! credentialSubject: CredentialSubject! }