Skip to content

Commit c08fe83

Browse files
committed
Update contexts.
1 parent 81de283 commit c08fe83

17 files changed

+94
-95
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
strategy:
2323
fail-fast: false
2424
matrix:
25-
ruby: ['3.0', 3.1, 3.2, 3.3, ruby-head, jruby]
25+
ruby: ['3.0', 3.1, 3.2, 3.3, 3.4, ruby-head, jruby]
2626
steps:
2727
- name: Clone repository
2828
uses: actions/checkout@v3

lib/json/ld/preloaded/aesKeyWrapping.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
class JSON::LD::Context
66
add_preloaded("https://w3id.org/security/suites/aes-2019/v1") do
77
new(processingMode: "json-ld-1.1", term_definitions: {
8-
"AesKeyWrappingKey2019" => TermDefinition.new("AesKeyWrappingKey2019", id: "https://w3id.org/security#AesKeyWrappingKey2019", context: {"@protected"=>true, "id"=>"@id", "type"=>"@type", "controller"=>{"@id"=>"https://w3id.org/security#controller", "@type"=>"@id"}, "revoked"=>{"@id"=>"https://w3id.org/security#revoked", "@type"=>"http://www.w3.org/2001/XMLSchema#dateTime"}}, protected: true),
8+
"AesKeyWrappingKey2019" => TermDefinition.new("AesKeyWrappingKey2019", id: "https://w3id.org/security#AesKeyWrappingKey2019", context: {"@protected" => true, "id" => "@id", "type" => "@type", "controller" => {"@id" => "https://w3id.org/security#controller", "@type" => "@id"}, "revoked" => {"@id" => "https://w3id.org/security#revoked", "@type" => "http://www.w3.org/2001/XMLSchema#dateTime"}}, protected: true),
99
"id" => TermDefinition.new("id", id: "@id", simple: true, protected: true),
1010
"type" => TermDefinition.new("type", id: "@type", simple: true, protected: true)
1111
})

lib/json/ld/preloaded/agever.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class JSON::LD::Context
99
"AgeVerificationCredential" => TermDefinition.new("AgeVerificationCredential", id: "https://w3id.org/age#AgeVerificationCredential", simple: true, protected: true),
1010
"OverAgeTokenCredential" => TermDefinition.new("OverAgeTokenCredential", id: "https://w3id.org/age#OverAgeTokenCredential", simple: true, protected: true),
1111
"PersonalPhotoCredential" => TermDefinition.new("PersonalPhotoCredential", id: "https://convenience.org/vocab#PersonalPhotoCredential", simple: true, protected: true),
12-
"VerifiableCredentialRefreshService2021" => TermDefinition.new("VerifiableCredentialRefreshService2021", id: "https://w3id.org/vc-refresh-service#VerifiableCredentialRefreshService2021", context: {"@protected"=>true, "url"=>{"@id"=>"https://schema.org/url", "@type"=>"@id"}, "refreshToken"=>{"@id"=>"https://w3id.org/vc-refresh-service#refreshToken", "@type"=>"https://w3id.org/security#multibase"}}, protected: true),
12+
"VerifiableCredentialRefreshService2021" => TermDefinition.new("VerifiableCredentialRefreshService2021", id: "https://w3id.org/vc-refresh-service#VerifiableCredentialRefreshService2021", context: {"@protected" => true, "url" => {"@id" => "https://schema.org/url", "@type" => "@id"}, "refreshToken" => {"@id" => "https://w3id.org/vc-refresh-service#refreshToken", "@type" => "https://w3id.org/security#multibase"}}, protected: true),
1313
"anchoredResource" => TermDefinition.new("anchoredResource", id: "https://w3id.org/security#anchoredResource", type_mapping: "@id", protected: true),
1414
"concealedIdToken" => TermDefinition.new("concealedIdToken", id: "https://w3id.org/cit#concealedIdToken", type_mapping: "https://w3id.org/security#multibase", protected: true),
1515
"description" => TermDefinition.new("description", id: "https://schema.org/description", simple: true, protected: true),

lib/json/ld/preloaded/btStatus.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@ class JSON::LD::Context
66
add_preloaded("https://www.w3.org/ns/credentials/v2") do
77
new(processingMode: "json-ld-1.1", term_definitions: {
88
"..." => TermDefinition.new("...", id: "https://www.iana.org/assignments/jwt#...", protected: true),
9-
"BitstringStatusList" => TermDefinition.new("BitstringStatusList", id: "https://www.w3.org/ns/credentials/status#BitstringStatusList", context: {"@protected"=>true, "id"=>"@id", "type"=>"@type", "encodedList"=>{"@id"=>"https://www.w3.org/ns/credentials/status#encodedList", "@type"=>"https://w3id.org/security#multibase"}, "statusMessage"=>{"@id"=>"https://www.w3.org/ns/credentials/status#statusMessage", "@context"=>{"@protected"=>true, "id"=>"@id", "type"=>"@type", "message"=>"https://www.w3.org/ns/credentials/status#message", "status"=>"https://www.w3.org/ns/credentials/status#status"}}, "statusPurpose"=>"https://www.w3.org/ns/credentials/status#statusPurpose", "statusReference"=>{"@id"=>"https://www.w3.org/ns/credentials/status#statusReference", "@type"=>"@id"}, "statusSize"=>{"@id"=>"https://www.w3.org/ns/credentials/status#statusSize", "@type"=>"https://www.w3.org/2001/XMLSchema#positiveInteger"}, "ttl"=>"https://www.w3.org/ns/credentials/status#ttl"}, protected: true),
9+
"BitstringStatusList" => TermDefinition.new("BitstringStatusList", id: "https://www.w3.org/ns/credentials/status#BitstringStatusList", context: {"@protected" => true, "id" => "@id", "type" => "@type", "encodedList" => {"@id" => "https://www.w3.org/ns/credentials/status#encodedList", "@type" => "https://w3id.org/security#multibase"}, "statusPurpose" => "https://www.w3.org/ns/credentials/status#statusPurpose", "ttl" => "https://www.w3.org/ns/credentials/status#ttl"}, protected: true),
1010
"BitstringStatusListCredential" => TermDefinition.new("BitstringStatusListCredential", id: "https://www.w3.org/ns/credentials/status#BitstringStatusListCredential", simple: true, protected: true),
11-
"BitstringStatusListEntry" => TermDefinition.new("BitstringStatusListEntry", id: "https://www.w3.org/ns/credentials/status#BitstringStatusListEntry", context: {"@protected"=>true, "id"=>"@id", "type"=>"@type", "statusListCredential"=>{"@id"=>"https://www.w3.org/ns/credentials/status#statusListCredential", "@type"=>"@id"}, "statusListIndex"=>"https://www.w3.org/ns/credentials/status#statusListIndex", "statusPurpose"=>"https://www.w3.org/ns/credentials/status#statusPurpose"}, protected: true),
12-
"DataIntegrityProof" => TermDefinition.new("DataIntegrityProof", id: "https://w3id.org/security#DataIntegrityProof", context: {"@protected"=>true, "id"=>"@id", "type"=>"@type", "challenge"=>"https://w3id.org/security#challenge", "created"=>{"@id"=>"http://purl.org/dc/terms/created", "@type"=>"http://www.w3.org/2001/XMLSchema#dateTime"}, "cryptosuite"=>{"@id"=>"https://w3id.org/security#cryptosuite", "@type"=>"https://w3id.org/security#cryptosuiteString"}, "domain"=>"https://w3id.org/security#domain", "expires"=>{"@id"=>"https://w3id.org/security#expiration", "@type"=>"http://www.w3.org/2001/XMLSchema#dateTime"}, "nonce"=>"https://w3id.org/security#nonce", "previousProof"=>{"@id"=>"https://w3id.org/security#previousProof", "@type"=>"@id"}, "proofPurpose"=>{"@id"=>"https://w3id.org/security#proofPurpose", "@type"=>"@vocab", "@context"=>{"@protected"=>true, "id"=>"@id", "type"=>"@type", "assertionMethod"=>{"@id"=>"https://w3id.org/security#assertionMethod", "@type"=>"@id", "@container"=>"@set"}, "authentication"=>{"@id"=>"https://w3id.org/security#authenticationMethod", "@type"=>"@id", "@container"=>"@set"}, "capabilityDelegation"=>{"@id"=>"https://w3id.org/security#capabilityDelegationMethod", "@type"=>"@id", "@container"=>"@set"}, "capabilityInvocation"=>{"@id"=>"https://w3id.org/security#capabilityInvocationMethod", "@type"=>"@id", "@container"=>"@set"}, "keyAgreement"=>{"@id"=>"https://w3id.org/security#keyAgreementMethod", "@type"=>"@id", "@container"=>"@set"}}}, "proofValue"=>{"@id"=>"https://w3id.org/security#proofValue", "@type"=>"https://w3id.org/security#multibase"}, "verificationMethod"=>{"@id"=>"https://w3id.org/security#verificationMethod", "@type"=>"@id"}}, protected: true),
11+
"BitstringStatusListEntry" => TermDefinition.new("BitstringStatusListEntry", id: "https://www.w3.org/ns/credentials/status#BitstringStatusListEntry", context: {"@protected" => true, "id" => "@id", "type" => "@type", "statusListCredential" => {"@id" => "https://www.w3.org/ns/credentials/status#statusListCredential", "@type" => "@id"}, "statusListIndex" => "https://www.w3.org/ns/credentials/status#statusListIndex", "statusPurpose" => "https://www.w3.org/ns/credentials/status#statusPurpose", "statusMessage" => {"@id" => "https://www.w3.org/ns/credentials/status#statusMessage", "@context" => {"@protected" => true, "id" => "@id", "type" => "@type", "message" => "https://www.w3.org/ns/credentials/status#message", "status" => "https://www.w3.org/ns/credentials/status#status"}}, "statusReference" => {"@id" => "https://www.w3.org/ns/credentials/status#statusReference", "@type" => "@id"}, "statusSize" => {"@id" => "https://www.w3.org/ns/credentials/status#statusSize", "@type" => "https://www.w3.org/2001/XMLSchema#integer"}}, protected: true),
12+
"DataIntegrityProof" => TermDefinition.new("DataIntegrityProof", id: "https://w3id.org/security#DataIntegrityProof", context: {"@protected" => true, "id" => "@id", "type" => "@type", "challenge" => "https://w3id.org/security#challenge", "created" => {"@id" => "http://purl.org/dc/terms/created", "@type" => "http://www.w3.org/2001/XMLSchema#dateTime"}, "cryptosuite" => {"@id" => "https://w3id.org/security#cryptosuite", "@type" => "https://w3id.org/security#cryptosuiteString"}, "domain" => "https://w3id.org/security#domain", "expires" => {"@id" => "https://w3id.org/security#expiration", "@type" => "http://www.w3.org/2001/XMLSchema#dateTime"}, "nonce" => "https://w3id.org/security#nonce", "previousProof" => {"@id" => "https://w3id.org/security#previousProof", "@type" => "@id"}, "proofPurpose" => {"@id" => "https://w3id.org/security#proofPurpose", "@type" => "@vocab", "@context" => {"@protected" => true, "id" => "@id", "type" => "@type", "assertionMethod" => {"@id" => "https://w3id.org/security#assertionMethod", "@type" => "@id", "@container" => "@set"}, "authentication" => {"@id" => "https://w3id.org/security#authenticationMethod", "@type" => "@id", "@container" => "@set"}, "capabilityDelegation" => {"@id" => "https://w3id.org/security#capabilityDelegationMethod", "@type" => "@id", "@container" => "@set"}, "capabilityInvocation" => {"@id" => "https://w3id.org/security#capabilityInvocationMethod", "@type" => "@id", "@container" => "@set"}, "keyAgreement" => {"@id" => "https://w3id.org/security#keyAgreementMethod", "@type" => "@id", "@container" => "@set"}}}, "proofValue" => {"@id" => "https://w3id.org/security#proofValue", "@type" => "https://w3id.org/security#multibase"}, "verificationMethod" => {"@id" => "https://w3id.org/security#verificationMethod", "@type" => "@id"}}, protected: true),
1313
"EnvelopedVerifiableCredential" => TermDefinition.new("EnvelopedVerifiableCredential", id: "https://www.w3.org/2018/credentials#EnvelopedVerifiableCredential", simple: true, protected: true),
1414
"EnvelopedVerifiablePresentation" => TermDefinition.new("EnvelopedVerifiablePresentation", id: "https://www.w3.org/2018/credentials#EnvelopedVerifiablePresentation", simple: true, protected: true),
15-
"JsonSchema" => TermDefinition.new("JsonSchema", id: "https://www.w3.org/2018/credentials#JsonSchema", context: {"@protected"=>true, "id"=>"@id", "type"=>"@type", "jsonSchema"=>{"@id"=>"https://www.w3.org/2018/credentials#jsonSchema", "@type"=>"@json"}}, protected: true),
15+
"JsonSchema" => TermDefinition.new("JsonSchema", id: "https://www.w3.org/2018/credentials#JsonSchema", context: {"@protected" => true, "id" => "@id", "type" => "@type", "jsonSchema" => {"@id" => "https://www.w3.org/2018/credentials#jsonSchema", "@type" => "@json"}}, protected: true),
1616
"JsonSchemaCredential" => TermDefinition.new("JsonSchemaCredential", id: "https://www.w3.org/2018/credentials#JsonSchemaCredential", simple: true, protected: true),
17-
"VerifiableCredential" => TermDefinition.new("VerifiableCredential", id: "https://www.w3.org/2018/credentials#VerifiableCredential", context: {"@protected"=>true, "id"=>"@id", "type"=>"@type", "confidenceMethod"=>{"@id"=>"https://www.w3.org/2018/credentials#confidenceMethod", "@type"=>"@id"}, "credentialSchema"=>{"@id"=>"https://www.w3.org/2018/credentials#credentialSchema", "@type"=>"@id"}, "credentialStatus"=>{"@id"=>"https://www.w3.org/2018/credentials#credentialStatus", "@type"=>"@id"}, "credentialSubject"=>{"@id"=>"https://www.w3.org/2018/credentials#credentialSubject", "@type"=>"@id"}, "description"=>"https://schema.org/description", "evidence"=>{"@id"=>"https://www.w3.org/2018/credentials#evidence", "@type"=>"@id"}, "issuer"=>{"@id"=>"https://www.w3.org/2018/credentials#issuer", "@type"=>"@id"}, "name"=>"https://schema.org/name", "proof"=>{"@id"=>"https://w3id.org/security#proof", "@type"=>"@id", "@container"=>"@graph"}, "refreshService"=>{"@id"=>"https://www.w3.org/2018/credentials#refreshService", "@type"=>"@id"}, "relatedResource"=>{"@id"=>"https://www.w3.org/2018/credentials#relatedResource", "@type"=>"@id"}, "renderMethod"=>{"@id"=>"https://www.w3.org/2018/credentials#renderMethod", "@type"=>"@id"}, "termsOfUse"=>{"@id"=>"https://www.w3.org/2018/credentials#termsOfUse", "@type"=>"@id"}, "validFrom"=>{"@id"=>"https://www.w3.org/2018/credentials#validFrom", "@type"=>"http://www.w3.org/2001/XMLSchema#dateTime"}, "validUntil"=>{"@id"=>"https://www.w3.org/2018/credentials#validUntil", "@type"=>"http://www.w3.org/2001/XMLSchema#dateTime"}}, protected: true),
18-
"VerifiablePresentation" => TermDefinition.new("VerifiablePresentation", id: "https://www.w3.org/2018/credentials#VerifiablePresentation", context: {"@protected"=>true, "id"=>"@id", "type"=>"@type", "holder"=>{"@id"=>"https://www.w3.org/2018/credentials#holder", "@type"=>"@id"}, "proof"=>{"@id"=>"https://w3id.org/security#proof", "@type"=>"@id", "@container"=>"@graph"}, "termsOfUse"=>{"@id"=>"https://www.w3.org/2018/credentials#termsOfUse", "@type"=>"@id"}, "verifiableCredential"=>{"@id"=>"https://www.w3.org/2018/credentials#verifiableCredential", "@type"=>"@id", "@container"=>"@graph", "@context"=>nil}}, protected: true),
17+
"VerifiableCredential" => TermDefinition.new("VerifiableCredential", id: "https://www.w3.org/2018/credentials#VerifiableCredential", context: {"@protected" => true, "id" => "@id", "type" => "@type", "confidenceMethod" => {"@id" => "https://www.w3.org/2018/credentials#confidenceMethod", "@type" => "@id"}, "credentialSchema" => {"@id" => "https://www.w3.org/2018/credentials#credentialSchema", "@type" => "@id"}, "credentialStatus" => {"@id" => "https://www.w3.org/2018/credentials#credentialStatus", "@type" => "@id"}, "credentialSubject" => {"@id" => "https://www.w3.org/2018/credentials#credentialSubject", "@type" => "@id"}, "description" => "https://schema.org/description", "evidence" => {"@id" => "https://www.w3.org/2018/credentials#evidence", "@type" => "@id"}, "issuer" => {"@id" => "https://www.w3.org/2018/credentials#issuer", "@type" => "@id"}, "name" => "https://schema.org/name", "proof" => {"@id" => "https://w3id.org/security#proof", "@type" => "@id", "@container" => "@graph"}, "refreshService" => {"@id" => "https://www.w3.org/2018/credentials#refreshService", "@type" => "@id"}, "relatedResource" => {"@id" => "https://www.w3.org/2018/credentials#relatedResource", "@type" => "@id"}, "renderMethod" => {"@id" => "https://www.w3.org/2018/credentials#renderMethod", "@type" => "@id"}, "termsOfUse" => {"@id" => "https://www.w3.org/2018/credentials#termsOfUse", "@type" => "@id"}, "validFrom" => {"@id" => "https://www.w3.org/2018/credentials#validFrom", "@type" => "http://www.w3.org/2001/XMLSchema#dateTime"}, "validUntil" => {"@id" => "https://www.w3.org/2018/credentials#validUntil", "@type" => "http://www.w3.org/2001/XMLSchema#dateTime"}}, protected: true),
18+
"VerifiablePresentation" => TermDefinition.new("VerifiablePresentation", id: "https://www.w3.org/2018/credentials#VerifiablePresentation", context: {"@protected" => true, "id" => "@id", "type" => "@type", "holder" => {"@id" => "https://www.w3.org/2018/credentials#holder", "@type" => "@id"}, "proof" => {"@id" => "https://w3id.org/security#proof", "@type" => "@id", "@container" => "@graph"}, "termsOfUse" => {"@id" => "https://www.w3.org/2018/credentials#termsOfUse", "@type" => "@id"}, "verifiableCredential" => {"@id" => "https://www.w3.org/2018/credentials#verifiableCredential", "@type" => "@id", "@container" => "@graph", "@context" => nil}}, protected: true),
1919
"_sd" => TermDefinition.new("_sd", id: "https://www.iana.org/assignments/jwt#_sd", type_mapping: "@json", protected: true),
2020
"_sd_alg" => TermDefinition.new("_sd_alg", id: "https://www.iana.org/assignments/jwt#_sd_alg", protected: true),
2121
"aud" => TermDefinition.new("aud", id: "https://www.iana.org/assignments/jwt#aud", type_mapping: "@id", protected: true),
22-
"cnf" => TermDefinition.new("cnf", id: "https://www.iana.org/assignments/jwt#cnf", context: {"@protected"=>true, "kid"=>{"@id"=>"https://www.iana.org/assignments/jwt#kid", "@type"=>"@id"}, "jwk"=>{"@id"=>"https://www.iana.org/assignments/jwt#jwk", "@type"=>"@json"}}, protected: true),
22+
"cnf" => TermDefinition.new("cnf", id: "https://www.iana.org/assignments/jwt#cnf", context: {"@protected" => true, "kid" => {"@id" => "https://www.iana.org/assignments/jwt#kid", "@type" => "@id"}, "jwk" => {"@id" => "https://www.iana.org/assignments/jwt#jwk", "@type" => "@json"}}, protected: true),
2323
"description" => TermDefinition.new("description", id: "https://schema.org/description", simple: true, protected: true),
2424
"digestMultibase" => TermDefinition.new("digestMultibase", id: "https://w3id.org/security#digestMultibase", type_mapping: "https://w3id.org/security#multibase", protected: true),
2525
"digestSRI" => TermDefinition.new("digestSRI", id: "https://www.w3.org/2018/credentials#digestSRI", type_mapping: "https://www.w3.org/2018/credentials#sriString", protected: true),

lib/json/ld/preloaded/concealedId.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
class JSON::LD::Context
66
add_preloaded("https://w3id.org/cit/v1") do
77
new(processingMode: "json-ld-1.1", term_definitions: {
8-
"ConcealedIdToken" => TermDefinition.new("ConcealedIdToken", id: "https://w3id.org/cit#ConcealedIdToken", context: {"@protected"=>true, "meta"=>{"@id"=>"https://w3id.org/cit#meta", "@type"=>"https://w3id.org/security#multibase"}, "payload"=>{"@id"=>"https://w3id.org/cit#payload", "@type"=>"https://w3id.org/security#multibase"}}, protected: true),
8+
"ConcealedIdToken" => TermDefinition.new("ConcealedIdToken", id: "https://w3id.org/cit#ConcealedIdToken", context: {"@protected" => true, "meta" => {"@id" => "https://w3id.org/cit#meta", "@type" => "https://w3id.org/security#multibase"}, "payload" => {"@id" => "https://w3id.org/cit#payload", "@type" => "https://w3id.org/security#multibase"}}, protected: true),
99
"ConcealedIdTokenCredential" => TermDefinition.new("ConcealedIdTokenCredential", id: "https://w3id.org/cit#ConcealedIdTokenCredential", simple: true, protected: true),
1010
"concealedIdToken" => TermDefinition.new("concealedIdToken", id: "https://w3id.org/cit#concealedIdToken", type_mapping: "https://w3id.org/security#multibase", protected: true),
1111
"type" => TermDefinition.new("type", id: "@type", simple: true, protected: true)

0 commit comments

Comments
 (0)