Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tsca certification #926

Merged
merged 8 commits into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 27 additions & 27 deletions docs/credentials-with-issuer-dependent-terms.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
"type": "ThingCredential",
"count": 0
},
{
"type": "TSCACertificationCredential",
"count": 0
},
{
"type": "SoftwareBillofMaterialsCredential",
"count": 200
Expand All @@ -27,10 +31,6 @@
"type": "ShippingInstructionsCredential",
"count": 0
},
{
"type": "SellerRegistrationCredential",
"count": 10
},
{
"type": "SeaCargoManifestCredential",
"count": 0
Expand All @@ -51,6 +51,10 @@
"type": "ProductRegistrationCredential",
"count": 0
},
{
"type": "PowerOfAttorneyCredential",
"count": 0
},
{
"type": "PlantSystemsInspectionCredential",
"count": 0
Expand Down Expand Up @@ -85,7 +89,7 @@
},
{
"type": "MonthlyAdvanceManifestCredential",
"count": 14
"count": 26
},
{
"type": "MillTestReportCredential",
Expand All @@ -107,6 +111,10 @@
"type": "IntentToImportCredential",
"count": 2
},
{
"type": "IntellectualPropertyRightsLicenseCredential",
"count": 8
},
{
"type": "IntellectualPropertyRightsCredential",
"count": 8
Expand Down Expand Up @@ -155,10 +163,6 @@
"type": "GAPInspectionCredential",
"count": 0
},
{
"type": "FulfillmentRegistrationCredential",
"count": 0
},
{
"type": "FreightManifestCredential",
"count": 0
Expand Down Expand Up @@ -207,21 +211,33 @@
"type": "EntryNumberCredential",
"count": 0
},
{
"type": "EPA35401PesticidesPart3Credential",
"count": 6
},
{
"type": "EPA35401PesticidesPart2Credential",
"count": 6
},
{
"type": "EPA35401PesticidesCredential",
"count": 42
},
{
"type": "DigitalProductPassportDataCarrierCredential",
"count": 6
},
{
"type": "DigitalProductPassportCredential",
"count": 5
"count": 7
},
{
"type": "DeliveryStatementCredential",
"count": 0
},
{
"type": "DeliveryScheduleCredential",
"count": 8
"count": 12
},
{
"type": "DCSATransportDocumentCredential",
Expand All @@ -239,22 +255,6 @@
"type": "CertificationOfOrigin",
"count": 0
},
{
"type": "CTPATEIPSellerCredential",
"count": 0
},
{
"type": "CTPATEIPMarketplaceCredential",
"count": 0
},
{
"type": "CTPATEIPFulfillmentCredential",
"count": 0
},
{
"type": "CTPATEIPApplicationCredential",
"count": 0
},
{
"type": "CTPATCertificate",
"count": 17
Expand Down
69 changes: 69 additions & 0 deletions docs/openapi/components/schemas/common/TSCACertification.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
$linkedData:
term: TSCACertification
'@id': https://w3id.org/traceability/TSCACertification
title: TSCA Certification
description: TSCA Import Certification Statement
type: object
properties:
type:
type: array
readOnly: true
const:
- TSCACertification
default:
- TSCACertification
items:
type: string
enum:
- TSCACertification
certificationType:
title: Certification Type
description: >-
The type of TSCA certification. This can be either 'Positive' to certify
compliance with all applicable TSCA rules and orders, or 'Negative' to
certify that the chemical shipment is not subject to TSCA.
type: string
enum:
- Positive
- Negative
$linkedData:
term: certificationType
'@id': https://schema.org/DefinedTerm
certifierDetails:
title: Certifier's Details
description: >-
Provide the certifier’s name, title, address (including country), telephone
number and email address.
$ref: ./Organization.yml
$linkedData:
term: certifierDetails
'@id': https://w3id.org/traceability#certifierDetails
additionalProperties: true
required:
- type
- certificationType
- certifierDetails
example: |-
{
"type": ["TSCACertification"],
"certificationType": "Positive",
"certifierDetails": {
"type": ["Organization"],
"id": "did:key:z6MkjR12D3456sn2yBAyqj5gqckDjvyAbNSusehsxtkvknfa",
"name": "Chemical Import Co",
"description": "Specialist in importing and distributing chemical products",
"location": {
"type": ["Place"],
"address": {
"type": ["PostalAddress"],
"streetAddress": "123 Industry Blvd",
"addressLocality": "Chemtown",
"addressRegion": "CA",
"postalCode": "90001",
"addressCountry": "USA"
}
},
"email": "[email protected]",
"phoneNumber": "+1-555-123-4567"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -103,21 +103,25 @@ example: |-
"scheduledDeliveries": [
{
"portCode": "3901",
"portOfArrival":
{
"type": ["Place"],
"portOfArrival": {
"type": [
"Place"
],
"locationName": "Morgan",
"usPortCode": "3319"
},
"portOfDestination":
{
"type": ["Place"],
"portOfDestination": {
"type": [
"Place"
],
"locationName": "Pembina ND",
"usPortCode": "3401"
},
"transporter": {
"type": ["Organization"],
"name": "Gas Transmission Northwest (GTN)"
"type": [
"Organization"
],
"name": "Gas Transmission Northwest (GTN)"
},
"deliveryLocation": "Chicago",
"sumOfScheduledDeliveries": [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
$linkedData:
term: TSCACertificationCredential
'@id': https://w3id.org/traceability#TSCACertificationCredential
title: TSCA Certification Credential
tags:
- Environmental Compliance
description: A credential for compliance with the Toxic Substances Control Act (TSCA) regulations
type: object
properties:
'@context':
type: array
readOnly: true
const:
- https://www.w3.org/2018/credentials/v1
- https://w3id.org/traceability/v1
default:
- https://www.w3.org/2018/credentials/v1
- https://w3id.org/traceability/v1
items:
type: string
enum:
- https://www.w3.org/2018/credentials/v1
- https://w3id.org/traceability/v1
type:
type: array
readOnly: true
const:
- VerifiableCredential
- TSCACertificationCredential
default:
- VerifiableCredential
- TSCACertificationCredential
items:
type: string
enum:
- VerifiableCredential
- TSCACertificationCredential
id:
type: string
name:
type: string
description:
type: string
issuanceDate:
type: string
expirationDate:
type: string
issuer:
type: string
credentialSchema:
type: object
properties:
id:
title: Id
description: The URL of the schema file to validate the shape of the JSON object
type: string
format: uri
example: https://w3id.org/traceability/openapi/components/schemas/credentials/TSCACertificationCredential.yml
default: https://w3id.org/traceability/openapi/components/schemas/credentials/TSCACertificationCredential.yml
readOnly: true
type:
title: Type
description: The type of validation to be run against the defined schema
const: OpenApiSpecificationValidator2022
credentialSubject:
$ref: ../common/TSCACertification.yml
proof:
$ref: ../snippets/proof.yml
relatedLink:
title: Related Link
description: Links related to this verifiable credential
type: array
items:
$ref: ../common/LinkRole.yml
additionalProperties: false
required:
- '@context'
- type
- issuanceDate
- issuer
- credentialSubject
example: |-
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://w3id.org/traceability/v1"
],
"id": "http://example.org/credentials/",
"type": [
"VerifiableCredential",
"TSCACertificationCredential"
],
"issuanceDate": "2024-01-04T20:29:37+00:00",
"issuer": "did:key:z6MktHQo3fRRohk44dsbE76CuiTpBmyMWq2VVjvV6aBSeE3U",
"credentialSubject": {
"type": [
"TSCACertification"
],
"certificationType": "Positive",
"certifierDetails": {
"type": [
"Organization"
],
"id": "did:key:z6MkjR12D3456sn2yBAyqj5gqckDjvyAbNSusehsxtkvknfa",
"name": "Chemical Import Co",
"description": "Specialist in importing and distributing chemical products",
"location": {
"type": [
"Place"
],
"address": {
"type": [
"PostalAddress"
],
"streetAddress": "123 Industry Blvd",
"addressLocality": "Chemtown",
"addressRegion": "CA",
"postalCode": "90001",
"addressCountry": "USA"
}
},
"email": "[email protected]",
"phoneNumber": "+1-555-123-4567"
}
}
}
Loading