@bsv/dpp-profiles 0.3.0-beta.1

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.
Files changed (96) hide show
  1. package/LICENSE +58 -0
  2. package/README.md +64 -0
  3. package/dist/applicability.d.ts +96 -0
  4. package/dist/applicability.d.ts.map +1 -0
  5. package/dist/applicability.js +181 -0
  6. package/dist/applicability.js.map +1 -0
  7. package/dist/combinations.d.ts +30 -0
  8. package/dist/combinations.d.ts.map +1 -0
  9. package/dist/combinations.js +103 -0
  10. package/dist/combinations.js.map +1 -0
  11. package/dist/evidence-shapes.d.ts +198 -0
  12. package/dist/evidence-shapes.d.ts.map +1 -0
  13. package/dist/evidence-shapes.js +123 -0
  14. package/dist/evidence-shapes.js.map +1 -0
  15. package/dist/gs1-epc-binary.d.ts +81 -0
  16. package/dist/gs1-epc-binary.d.ts.map +1 -0
  17. package/dist/gs1-epc-binary.js +252 -0
  18. package/dist/gs1-epc-binary.js.map +1 -0
  19. package/dist/gs1-resolution.d.ts +392 -0
  20. package/dist/gs1-resolution.d.ts.map +1 -0
  21. package/dist/gs1-resolution.js +696 -0
  22. package/dist/gs1-resolution.js.map +1 -0
  23. package/dist/identifiers.d.ts +57 -0
  24. package/dist/identifiers.d.ts.map +1 -0
  25. package/dist/identifiers.js +117 -0
  26. package/dist/identifiers.js.map +1 -0
  27. package/dist/index.d.ts +235 -0
  28. package/dist/index.d.ts.map +1 -0
  29. package/dist/index.js +124 -0
  30. package/dist/index.js.map +1 -0
  31. package/dist/manifest-v2.d.ts +87 -0
  32. package/dist/manifest-v2.d.ts.map +1 -0
  33. package/dist/manifest-v2.js +31 -0
  34. package/dist/manifest-v2.js.map +1 -0
  35. package/dist/mapping.d.ts +84 -0
  36. package/dist/mapping.d.ts.map +1 -0
  37. package/dist/mapping.js +88 -0
  38. package/dist/mapping.js.map +1 -0
  39. package/dist/projections.d.ts +233 -0
  40. package/dist/projections.d.ts.map +1 -0
  41. package/dist/projections.js +466 -0
  42. package/dist/projections.js.map +1 -0
  43. package/frozen.json +42 -0
  44. package/generated/consumer/battery-v2.json +2248 -0
  45. package/generated/consumer/battery-v3.json +4354 -0
  46. package/generated/consumer/general-v1.json +9 -0
  47. package/generated/consumer/general-v2.json +714 -0
  48. package/generated/consumer/textile-v1.json +101 -0
  49. package/generated/consumer/textile-v2.json +1033 -0
  50. package/generated/consumer/textile-v3.json +2011 -0
  51. package/generated/index.json +86 -0
  52. package/generated/mapping/battery@2.md +116 -0
  53. package/generated/mapping/battery@3.md +130 -0
  54. package/generated/mapping/general@2.md +50 -0
  55. package/generated/mapping/textile@2.md +61 -0
  56. package/generated/mapping/textile@3.md +73 -0
  57. package/generated/payload-schema/battery@2.public.schema.json +609 -0
  58. package/generated/payload-schema/battery@2.restricted.schema.json +377 -0
  59. package/generated/payload-schema/battery@3.public.schema.json +1364 -0
  60. package/generated/payload-schema/battery@3.restricted.schema.json +1097 -0
  61. package/generated/payload-schema/general@1.public.schema.json +37 -0
  62. package/generated/payload-schema/general@1.restricted.schema.json +9 -0
  63. package/generated/payload-schema/general@2.public.schema.json +352 -0
  64. package/generated/payload-schema/general@2.restricted.schema.json +52 -0
  65. package/generated/payload-schema/textile@1.public.schema.json +82 -0
  66. package/generated/payload-schema/textile@1.restricted.schema.json +22 -0
  67. package/generated/payload-schema/textile@2.public.schema.json +464 -0
  68. package/generated/payload-schema/textile@2.restricted.schema.json +78 -0
  69. package/generated/payload-schema/textile@3.public.schema.json +1299 -0
  70. package/generated/payload-schema/textile@3.restricted.schema.json +78 -0
  71. package/manifests/battery@2.json +4047 -0
  72. package/manifests/battery@3.json +6164 -0
  73. package/manifests/exchange/untp-0.7.0-jose@1.json +191 -0
  74. package/manifests/exchange/vc-di-ecdsa-rdfc-2019@1.json +74 -0
  75. package/manifests/exchange/vsc-draft-compat@0.1.0.json +64 -0
  76. package/manifests/general@1.json +148 -0
  77. package/manifests/general@2.json +1266 -0
  78. package/manifests/interoperability/epcis-json@1.json +69 -0
  79. package/manifests/interoperability/epcis-vsc@1.json +64 -0
  80. package/manifests/interoperability/gs1-digital-link@1.json +71 -0
  81. package/manifests/operator/federated-operators@1.json +54 -0
  82. package/manifests/operator/single-operator@1.json +52 -0
  83. package/manifests/textile@1.json +383 -0
  84. package/manifests/textile@2.json +1682 -0
  85. package/manifests/textile@3.json +2763 -0
  86. package/package.json +59 -0
  87. package/schemas/exchange-profile.schema.json +134 -0
  88. package/schemas/gs1/NOTICE.md +11 -0
  89. package/schemas/gs1/resolver-description-file-schema-1.2.0.json +124 -0
  90. package/schemas/gs1/resolver-linkset-context-1.2.1.jsonld +39 -0
  91. package/schemas/gs1/resolver-linkset-schema-1.2.1.json +96 -0
  92. package/schemas/interoperability-profile.schema.json +347 -0
  93. package/schemas/operator-profile.schema.json +108 -0
  94. package/schemas/product-identity.schema.json +45 -0
  95. package/schemas/profile-manifest-v2.schema.json +1087 -0
  96. package/schemas/profile-manifest.schema.json +291 -0
@@ -0,0 +1,377 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "urn:bsv:dpp:profile:battery@2:payload-restricted",
4
+ "title": "Battery passport (battery@2), restricted payload",
5
+ "description": "battery@2: the restricted tiers held off chain, encrypted, and committed by field 11. JSON Schema validity is one check; obligation under a condition (needs-review), units, provenance and legal applicability are separate checks.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "properties": {
9
+ "serviceDate": {
10
+ "type": "string",
11
+ "format": "date",
12
+ "title": "Put into service",
13
+ "description": "required; Annex XIII (4); applicability category-in"
14
+ },
15
+ "status": {
16
+ "enum": [
17
+ "Original",
18
+ "Reused",
19
+ "Repurposed",
20
+ "Remanufactured",
21
+ "Waste"
22
+ ],
23
+ "title": "Status",
24
+ "description": "required; Annex XIII 4(c); Art. 77(7)"
25
+ },
26
+ "testReports": {
27
+ "oneOf": [
28
+ {
29
+ "type": "string",
30
+ "format": "uri"
31
+ },
32
+ {
33
+ "type": "object"
34
+ }
35
+ ],
36
+ "title": "Test reports",
37
+ "description": "required; Annex XIII (3)"
38
+ },
39
+ "electrodeMaterials": {
40
+ "type": "array",
41
+ "items": {
42
+ "type": "object",
43
+ "additionalProperties": false,
44
+ "properties": {
45
+ "component": {
46
+ "enum": [
47
+ "cathode",
48
+ "anode",
49
+ "electrolyte",
50
+ "separator",
51
+ "casing"
52
+ ]
53
+ },
54
+ "material": {
55
+ "type": "string",
56
+ "minLength": 1
57
+ },
58
+ "share": {
59
+ "type": "number",
60
+ "minimum": 0,
61
+ "maximum": 100
62
+ }
63
+ },
64
+ "required": [
65
+ "component",
66
+ "material"
67
+ ]
68
+ },
69
+ "title": "Cathode, anode and electrolyte materials",
70
+ "description": "required; Annex XIII (2a)"
71
+ },
72
+ "dismantlingManual": {
73
+ "oneOf": [
74
+ {
75
+ "type": "string",
76
+ "format": "uri"
77
+ },
78
+ {
79
+ "type": "object"
80
+ }
81
+ ],
82
+ "title": "Dismantling manual",
83
+ "description": "required; Annex XIII (2c)"
84
+ },
85
+ "partNumbersUrl": {
86
+ "type": "string",
87
+ "format": "uri",
88
+ "title": "Part numbers",
89
+ "description": "required; Annex XIII (2b)"
90
+ },
91
+ "sparePartsAddress": {
92
+ "type": "object",
93
+ "additionalProperties": false,
94
+ "properties": {
95
+ "street": {
96
+ "type": "string",
97
+ "minLength": 1
98
+ },
99
+ "locality": {
100
+ "type": "string",
101
+ "minLength": 1
102
+ },
103
+ "postcode": {
104
+ "type": "string",
105
+ "minLength": 1
106
+ },
107
+ "region": {
108
+ "type": "string",
109
+ "minLength": 1
110
+ },
111
+ "country": {
112
+ "type": "string",
113
+ "pattern": "^[A-Z]{2}$"
114
+ }
115
+ },
116
+ "required": [
117
+ "street",
118
+ "locality",
119
+ "country"
120
+ ],
121
+ "title": "Spare parts: postal address",
122
+ "description": "required; Annex XIII (2b)"
123
+ },
124
+ "sparePartsEmail": {
125
+ "type": "string",
126
+ "minLength": 1,
127
+ "maxLength": 254,
128
+ "pattern": "^[^@\\s]+@[^@\\s.]+(\\.[^@\\s.]+)+$",
129
+ "title": "Spare parts: e-mail",
130
+ "description": "required; Annex XIII (2b)"
131
+ },
132
+ "sparePartsUrl": {
133
+ "type": "string",
134
+ "format": "uri",
135
+ "title": "Spare parts: web address",
136
+ "description": "required; Annex XIII (2b)"
137
+ },
138
+ "safetyMeasures": {
139
+ "oneOf": [
140
+ {
141
+ "type": "string",
142
+ "format": "uri"
143
+ },
144
+ {
145
+ "type": "object"
146
+ }
147
+ ],
148
+ "title": "Safety measures",
149
+ "description": "required; Annex XIII (2d)"
150
+ },
151
+ "remainingCapacityAh": {
152
+ "type": "number",
153
+ "minimum": 0,
154
+ "title": "Remaining capacity",
155
+ "description": "required; Annex VII Part A(1); applicability category-in"
156
+ },
157
+ "capacityFade": {
158
+ "type": "number",
159
+ "minimum": 0,
160
+ "maximum": 100,
161
+ "title": "Capacity fade",
162
+ "description": "required; Annex IV Part A(1)"
163
+ },
164
+ "certifiedEnergyKwh": {
165
+ "type": "number",
166
+ "minimum": 0,
167
+ "title": "Usable energy",
168
+ "description": "recommended; added by the consortium, based on UN GTR No 22; applicability category-in"
169
+ },
170
+ "remainingEnergyKwh": {
171
+ "type": "number",
172
+ "minimum": 0,
173
+ "title": "Remaining usable energy",
174
+ "description": "recommended; added by the consortium, based on UN GTR No 22; applicability category-in"
175
+ },
176
+ "soce": {
177
+ "type": "number",
178
+ "minimum": 0,
179
+ "maximum": 100,
180
+ "title": "State of certified energy",
181
+ "description": "required; UN GTR No 22; applicability category-in"
182
+ },
183
+ "stateOfCharge": {
184
+ "type": "number",
185
+ "minimum": 0,
186
+ "maximum": 100,
187
+ "title": "State of charge",
188
+ "description": "required; Annex XIII 4(d)"
189
+ },
190
+ "powerRemaining": {
191
+ "type": "integer",
192
+ "minimum": 0,
193
+ "title": "Remaining power",
194
+ "description": "required; Annex VII Part A(2); Annex IV; applicability category-in"
195
+ },
196
+ "powerFade": {
197
+ "type": "number",
198
+ "minimum": 0,
199
+ "maximum": 100,
200
+ "title": "Power fade",
201
+ "description": "required; Annex IV Part A(2)"
202
+ },
203
+ "powerToEnergy": {
204
+ "type": "number",
205
+ "minimum": 0,
206
+ "title": "Power to energy ratio",
207
+ "description": "recommended; Annex IV Part B(2)"
208
+ },
209
+ "roundTripRemaining": {
210
+ "type": "number",
211
+ "minimum": 0,
212
+ "maximum": 100,
213
+ "title": "Round trip efficiency, remaining",
214
+ "description": "required; Annex VII Part A(3); applicability category-in"
215
+ },
216
+ "roundTripFade": {
217
+ "type": "number",
218
+ "minimum": 0,
219
+ "maximum": 100,
220
+ "title": "Round trip efficiency fade",
221
+ "description": "required; Annex IV Part A(4)"
222
+ },
223
+ "selfDischargeInitial": {
224
+ "type": "number",
225
+ "minimum": 0,
226
+ "title": "Self-discharge, initial",
227
+ "description": "recommended; Annex VII Part A(4); applicability category-in"
228
+ },
229
+ "selfDischargeCurrent": {
230
+ "type": "number",
231
+ "minimum": 0,
232
+ "title": "Self-discharge, current",
233
+ "description": "recommended; Annex VII Part A(4); applicability category-in"
234
+ },
235
+ "selfDischargeEvolution": {
236
+ "type": "number",
237
+ "minimum": 0,
238
+ "maximum": 100,
239
+ "title": "Self-discharge over time",
240
+ "description": "required; Annex VII Part A(4); applicability category-in"
241
+ },
242
+ "resistanceIncreasePack": {
243
+ "type": "number",
244
+ "minimum": 0,
245
+ "maximum": 100,
246
+ "title": "Resistance increase, pack",
247
+ "description": "required; Annex IV Part A(3)"
248
+ },
249
+ "resistanceIncreaseCell": {
250
+ "type": "number",
251
+ "minimum": 0,
252
+ "maximum": 100,
253
+ "title": "Resistance increase, cell",
254
+ "description": "recommended; Annex IV Part A(3)"
255
+ },
256
+ "resistanceIncreaseModule": {
257
+ "type": "number",
258
+ "minimum": 0,
259
+ "maximum": 100,
260
+ "title": "Resistance increase, module",
261
+ "description": "recommended; Annex IV Part A(3)"
262
+ },
263
+ "expectedYears": {
264
+ "type": "number",
265
+ "minimum": 0,
266
+ "title": "Expected life in years",
267
+ "description": "required; Annex IV Part A(5)"
268
+ },
269
+ "cyclesUsed": {
270
+ "type": "integer",
271
+ "minimum": 0,
272
+ "title": "Cycles so far",
273
+ "description": "required; Annex XIII (4d)"
274
+ },
275
+ "energyThroughput": {
276
+ "type": "number",
277
+ "minimum": 0,
278
+ "title": "Energy through the battery",
279
+ "description": "required; Annex VII Part B(2); applicability category-in"
280
+ },
281
+ "capacityThroughput": {
282
+ "type": "number",
283
+ "minimum": 0,
284
+ "title": "Capacity through the battery",
285
+ "description": "required; Annex VII Part B(3); applicability category-in"
286
+ },
287
+ "temperatureRecord": {
288
+ "type": "number",
289
+ "minimum": -60,
290
+ "maximum": 150,
291
+ "title": "Temperature record",
292
+ "description": "required; Annex XIII (4d)"
293
+ },
294
+ "timeAboveRange": {
295
+ "type": "number",
296
+ "minimum": 0,
297
+ "title": "Time above range",
298
+ "description": "required; Annex VII Part B(4); applicability category-in"
299
+ },
300
+ "timeBelowRange": {
301
+ "type": "number",
302
+ "minimum": 0,
303
+ "title": "Time below range",
304
+ "description": "required; Annex VII Part B(4); applicability category-in"
305
+ },
306
+ "chargingAboveRange": {
307
+ "type": "number",
308
+ "minimum": 0,
309
+ "title": "Charging above range",
310
+ "description": "required; Annex VII Part B(4); applicability category-in"
311
+ },
312
+ "chargingBelowRange": {
313
+ "type": "number",
314
+ "minimum": 0,
315
+ "title": "Charging below range",
316
+ "description": "required; Annex VII Part B(4); applicability category-in"
317
+ },
318
+ "deepDischargeEvents": {
319
+ "type": "integer",
320
+ "minimum": 0,
321
+ "title": "Deep discharges",
322
+ "description": "required; Annex VII; applicability category-in"
323
+ },
324
+ "overchargeEvents": {
325
+ "type": "integer",
326
+ "minimum": 0,
327
+ "title": "Overcharges",
328
+ "description": "recommended; added by the consortium"
329
+ },
330
+ "accidents": {
331
+ "oneOf": [
332
+ {
333
+ "type": "string",
334
+ "format": "uri"
335
+ },
336
+ {
337
+ "type": "object"
338
+ }
339
+ ],
340
+ "title": "Accidents",
341
+ "description": "required; Annex XIII (4d)"
342
+ },
343
+ "stateOfHealth": {
344
+ "type": "number",
345
+ "minimum": 0,
346
+ "maximum": 100,
347
+ "title": "State of health",
348
+ "description": "recommended; app addition; the spec decomposes SoH into Annex VII Part A parameters"
349
+ },
350
+ "measured": {
351
+ "enum": [
352
+ "manufacturer",
353
+ "authorised-service",
354
+ "independent-lab",
355
+ "operator",
356
+ "repurposer",
357
+ "recycler"
358
+ ],
359
+ "title": "Measured by",
360
+ "description": "recommended; app addition"
361
+ }
362
+ },
363
+ "required": [
364
+ "capacityFade",
365
+ "dismantlingManual",
366
+ "electrodeMaterials",
367
+ "expectedYears",
368
+ "partNumbersUrl",
369
+ "powerFade",
370
+ "resistanceIncreasePack",
371
+ "roundTripFade",
372
+ "safetyMeasures",
373
+ "sparePartsAddress",
374
+ "sparePartsEmail",
375
+ "sparePartsUrl"
376
+ ]
377
+ }