@sphereon/ssi-sdk.sd-jwt 0.32.1-next.54 → 0.33.1-feature.jose.vcdm.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +595 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +334 -0
- package/dist/index.d.ts +334 -4
- package/dist/index.js +562 -20
- package/dist/index.js.map +1 -1
- package/package.json +40 -29
- package/src/__tests__/resources/BoardingPassCredential-vct.json +196 -0
- package/src/__tests__/resources/LoyaltyProgram Account VC Schema V0.1 sd-jwt-schema.json +97 -0
- package/src/__tests__/resources/LoyaltyProgramAccountCredential-vct.json +126 -0
- package/src/__tests__/resources/boarding Pass VC Schema V1.0 sd-jwt.json +156 -0
- package/src/__tests__/resources/boardingpass-logo.png +0 -0
- package/src/__tests__/resources/boardingpass.svg +1 -0
- package/src/__tests__/resources/e-passport.svg +1 -0
- package/src/__tests__/resources/ePassport VC Schema V1.0.sd-jwt.json +226 -0
- package/src/__tests__/resources/ePassportCredential-vct.json +226 -0
- package/src/__tests__/resources/epassport-logo.png +0 -0
- package/src/__tests__/resources/loyaltyprogramaccount-icon.png +0 -0
- package/src/__tests__/resources/loyaltyprogramaccount.png +0 -0
- package/src/__tests__/resources/loyaltyprogramaccount.svg +1 -0
- package/src/__tests__/resources/travel-agency VC Employee v0.1 sd-jwt-schema.json +115 -0
- package/src/__tests__/resources/travel-agency-EmployeeAgencyCredential-vct.json +146 -0
- package/src/__tests__/resources/travel-agency-vc-employee-logo.png +0 -0
- package/src/__tests__/resources/travel-agency-vc-employee.svg +1 -0
- package/src/__tests__/sd-jwt-integrity.test.ts +100 -0
- package/src/__tests__/sd-jwt.test.ts +5 -4
- package/src/action-handler.ts +52 -19
- package/src/defaultCallbacks.ts +7 -5
- package/src/types.ts +4 -4
- package/src/utils.ts +49 -5
- package/dist/action-handler.d.ts +0 -89
- package/dist/action-handler.d.ts.map +0 -1
- package/dist/action-handler.js +0 -366
- package/dist/action-handler.js.map +0 -1
- package/dist/defaultCallbacks.d.ts +0 -6
- package/dist/defaultCallbacks.d.ts.map +0 -1
- package/dist/defaultCallbacks.js +0 -55
- package/dist/defaultCallbacks.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/trustAnchors.d.ts +0 -3
- package/dist/trustAnchors.d.ts.map +0 -1
- package/dist/trustAnchors.js +0 -20
- package/dist/trustAnchors.js.map +0 -1
- package/dist/types.d.ts +0 -234
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -10
- package/dist/types.js.map +0 -1
- package/dist/utils.d.ts +0 -5
- package/dist/utils.d.ts.map +0 -1
- package/dist/utils.js +0 -60
- package/dist/utils.js.map +0 -1
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.prod.contactlesstravel.iata.org/BoardingPassVC.json",
|
|
4
|
+
"title": "Boarding Pass",
|
|
5
|
+
"description": "Verifiable Credential for a boarding pass.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["boardingPass", "iss", "iat", "vct", "cnf"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"boardingPass": {
|
|
10
|
+
"title": "Boarding Pass",
|
|
11
|
+
"description": "A type of accountable document, given to a passenger during check-in, that gives the passenger authorization to board aircraft for a specific set of flights.",
|
|
12
|
+
"type": "object",
|
|
13
|
+
"required": ["barcodeString", "paxName", "paxSegments", "segmentCount", "ticketLessOrElectronicTicketInd"],
|
|
14
|
+
"properties": {
|
|
15
|
+
"barcodeString": {
|
|
16
|
+
"title": "Barcode String",
|
|
17
|
+
"description": "Encoded string containing the entire barcode of the boarding pass. Format as ASCII hexadecimal.",
|
|
18
|
+
"type": "string"
|
|
19
|
+
},
|
|
20
|
+
"paxName": {
|
|
21
|
+
"title": "Passenger Name",
|
|
22
|
+
"description": "Full name of the passenger. Surname of passenger followed by an oblique and the given name, when available.",
|
|
23
|
+
"type": "string",
|
|
24
|
+
"minLength": 1,
|
|
25
|
+
"maxLength": 20
|
|
26
|
+
},
|
|
27
|
+
"segmentCount": {
|
|
28
|
+
"title": "Segment Count",
|
|
29
|
+
"description": "Number of segments on the boarding pass.",
|
|
30
|
+
"type": "integer",
|
|
31
|
+
"minimum": 1,
|
|
32
|
+
"maximum": 4
|
|
33
|
+
},
|
|
34
|
+
"ticketLessOrElectronicTicketInd": {
|
|
35
|
+
"title": "Ticketless or Electronic Ticket Indicator",
|
|
36
|
+
"description": "Indicates if the boarding pass is issued against an electronic ticket or is ticketless. 'E' indicates electronic ticket, and 'L' indicates ticketless.",
|
|
37
|
+
"type": "string",
|
|
38
|
+
"maxLength": 1,
|
|
39
|
+
"enum": ["E", "L"]
|
|
40
|
+
},
|
|
41
|
+
"paxSegments": {
|
|
42
|
+
"title": "Passenger Segments",
|
|
43
|
+
"description": "Transportation of a passenger on a Dated Operating Segment.",
|
|
44
|
+
"type": "array",
|
|
45
|
+
"minItems": 1,
|
|
46
|
+
"maxItems": 4,
|
|
47
|
+
"items": {
|
|
48
|
+
"type": "object",
|
|
49
|
+
"required": [
|
|
50
|
+
"bookingRefID",
|
|
51
|
+
"checkInOrdinal",
|
|
52
|
+
"compartmentTypeCode",
|
|
53
|
+
"destStationIATALocationCode",
|
|
54
|
+
"flightIdentifierDate",
|
|
55
|
+
"operatingCarrierAirlineDesigCode",
|
|
56
|
+
"operatingCarrierFlightNumber",
|
|
57
|
+
"originStationIATALocationCode",
|
|
58
|
+
"paxRelatedStatusCode",
|
|
59
|
+
"seatAssignmentStatusOrSeatNumberCode"
|
|
60
|
+
],
|
|
61
|
+
"properties": {
|
|
62
|
+
"bookingRefID": {
|
|
63
|
+
"title": "Booking Reference Identifier",
|
|
64
|
+
"description": "Booking reference, also called Record Locator or PNR Code, of the operating carrier.",
|
|
65
|
+
"type": "string",
|
|
66
|
+
"maxLength": 7
|
|
67
|
+
},
|
|
68
|
+
"checkInOrdinal": {
|
|
69
|
+
"title": "Check-In Sequence Number",
|
|
70
|
+
"description": "The ordinal in which the passenger checked in for the flight. Usually appears as 4 numerics and an optional alpha or a blank.",
|
|
71
|
+
"type": "string",
|
|
72
|
+
"maxLength": 5
|
|
73
|
+
},
|
|
74
|
+
"compartmentTypeCode": {
|
|
75
|
+
"title": "Compartment Type Code",
|
|
76
|
+
"description": "Code of the class of compartment in an operational context, not the booking fare class.",
|
|
77
|
+
"type": "string",
|
|
78
|
+
"maxLength": 1
|
|
79
|
+
},
|
|
80
|
+
"destStationIATALocationCode": {
|
|
81
|
+
"title": "Destination Station IATA Location Code",
|
|
82
|
+
"description": "IATA location code for the arrival station.",
|
|
83
|
+
"type": "string",
|
|
84
|
+
"minLength": 3,
|
|
85
|
+
"maxLength": 3
|
|
86
|
+
},
|
|
87
|
+
"flightIdentifierDate": {
|
|
88
|
+
"title": "Flight Identifier Date",
|
|
89
|
+
"description": "Day in the year of the scheduled aircraft departure from the station of origin; expressed as Julian Date.",
|
|
90
|
+
"type": "string",
|
|
91
|
+
"pattern": "^[0-9]{3}$"
|
|
92
|
+
},
|
|
93
|
+
"operatingCarrierAirlineDesigCode": {
|
|
94
|
+
"title": "Operating Carrier Airline Designator Code",
|
|
95
|
+
"description": "The IATA Airline code or ICAO Airline code of the operating airline.",
|
|
96
|
+
"type": "string",
|
|
97
|
+
"pattern": "^([A-Z]{3}|[A-Z]{2})|([0-9][A-Z])|([A-Z][0-9])$"
|
|
98
|
+
},
|
|
99
|
+
"operatingCarrierFlightNumber": {
|
|
100
|
+
"title": "Operating Carrier Flight Number",
|
|
101
|
+
"description": "The numerical designation of a flight as assigned by the operating carrier.",
|
|
102
|
+
"type": "string",
|
|
103
|
+
"pattern": "^[0-9]{1,4}$"
|
|
104
|
+
},
|
|
105
|
+
"originStationIATALocationCode": {
|
|
106
|
+
"title": "Origin Station IATA Location Code",
|
|
107
|
+
"description": "IATA location code for the departure station.",
|
|
108
|
+
"type": "string",
|
|
109
|
+
"minLength": 3,
|
|
110
|
+
"maxLength": 3
|
|
111
|
+
},
|
|
112
|
+
"paxRelatedStatusCode": {
|
|
113
|
+
"title": "Passenger Related Status Code",
|
|
114
|
+
"description": "Combination of passenger, baggage item(s), ticket and other statuses and process directives.",
|
|
115
|
+
"type": "string",
|
|
116
|
+
"pattern": "^[0-9A-Z]$"
|
|
117
|
+
},
|
|
118
|
+
"seatAssignmentStatusOrSeatNumberCode": {
|
|
119
|
+
"title": "Seat Assignment Status or Seat Number Code",
|
|
120
|
+
"description": "Seat Number assigned to the passenger or the word GATE if the seat has not been allocated.",
|
|
121
|
+
"type": "string",
|
|
122
|
+
"maxLength": 4
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"iss": {
|
|
130
|
+
"title": "Issuer",
|
|
131
|
+
"description": "URI identifying the issuer of the credential.",
|
|
132
|
+
"type": "string",
|
|
133
|
+
"format": "uri"
|
|
134
|
+
},
|
|
135
|
+
"iat": {
|
|
136
|
+
"title": "Issued At",
|
|
137
|
+
"description": "The time at which the credential was issued (Unix timestamp).",
|
|
138
|
+
"type": "integer"
|
|
139
|
+
},
|
|
140
|
+
"exp": {
|
|
141
|
+
"title": "Expiration",
|
|
142
|
+
"description": "The time at which the credential expires (Unix timestamp).",
|
|
143
|
+
"type": "integer"
|
|
144
|
+
},
|
|
145
|
+
"vct": {
|
|
146
|
+
"title": "Verifiable Credential Type",
|
|
147
|
+
"description": "A URI or string identifying the type or context of this credential.",
|
|
148
|
+
"type": "string"
|
|
149
|
+
},
|
|
150
|
+
"cnf": {
|
|
151
|
+
"title": "Confirmation",
|
|
152
|
+
"description": "Proof-of-possession key information used to bind the credential to a specific holder.",
|
|
153
|
+
"type": "object"
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
Binary file
|