ocpp-ws-io 1.0.0-alpha

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.

Potentially problematic release.


This version of ocpp-ws-io might be problematic. Click here for more details.

Files changed (45) hide show
  1. package/.github/workflows/publish.yml +52 -0
  2. package/LICENSE +21 -0
  3. package/README.md +773 -0
  4. package/dist/adapters/redis.d.mts +73 -0
  5. package/dist/adapters/redis.d.ts +73 -0
  6. package/dist/adapters/redis.js +96 -0
  7. package/dist/adapters/redis.js.map +1 -0
  8. package/dist/adapters/redis.mjs +71 -0
  9. package/dist/adapters/redis.mjs.map +1 -0
  10. package/dist/index.d.mts +268 -0
  11. package/dist/index.d.ts +268 -0
  12. package/dist/index.js +38919 -0
  13. package/dist/index.js.map +1 -0
  14. package/dist/index.mjs +38855 -0
  15. package/dist/index.mjs.map +1 -0
  16. package/dist/types-6LVUoXof.d.mts +284 -0
  17. package/dist/types-6LVUoXof.d.ts +284 -0
  18. package/package.json +59 -0
  19. package/src/adapters/adapter.ts +40 -0
  20. package/src/adapters/redis.ts +144 -0
  21. package/src/client.ts +882 -0
  22. package/src/errors.ts +183 -0
  23. package/src/event-buffer.ts +73 -0
  24. package/src/index.ts +68 -0
  25. package/src/queue.ts +65 -0
  26. package/src/schemas/ocpp1_6.json +2376 -0
  27. package/src/schemas/ocpp2_0_1.json +11878 -0
  28. package/src/schemas/ocpp2_1.json +23176 -0
  29. package/src/server-client.ts +65 -0
  30. package/src/server.ts +374 -0
  31. package/src/standard-validators.ts +18 -0
  32. package/src/types.ts +316 -0
  33. package/src/util.ts +119 -0
  34. package/src/validator.ts +148 -0
  35. package/src/ws-util.ts +186 -0
  36. package/test/adapter.test.ts +88 -0
  37. package/test/client.test.ts +297 -0
  38. package/test/errors.test.ts +132 -0
  39. package/test/queue.test.ts +133 -0
  40. package/test/server.test.ts +274 -0
  41. package/test/util.test.ts +103 -0
  42. package/test/ws-util.test.ts +93 -0
  43. package/tsconfig.json +25 -0
  44. package/tsup.config.ts +16 -0
  45. package/vitest.config.ts +10 -0
@@ -0,0 +1,2376 @@
1
+ [
2
+ {
3
+ "$id": "urn:Authorize.req",
4
+ "$schema": "http://json-schema.org/draft-07/schema",
5
+ "additionalProperties": false,
6
+ "properties": {
7
+ "idTag": {
8
+ "type": "string",
9
+ "maxLength": 20
10
+ }
11
+ },
12
+ "required": [
13
+ "idTag"
14
+ ],
15
+ "type": "object"
16
+ },
17
+ {
18
+ "$id": "urn:Authorize.conf",
19
+ "$schema": "http://json-schema.org/draft-07/schema",
20
+ "additionalProperties": false,
21
+ "properties": {
22
+ "idTagInfo": {
23
+ "type": "object",
24
+ "properties": {
25
+ "expiryDate": {
26
+ "type": "string",
27
+ "format": "date-time"
28
+ },
29
+ "parentIdTag": {
30
+ "type": "string",
31
+ "maxLength": 20
32
+ },
33
+ "status": {
34
+ "type": "string",
35
+ "enum": [
36
+ "Accepted",
37
+ "Blocked",
38
+ "Expired",
39
+ "Invalid",
40
+ "ConcurrentTx"
41
+ ]
42
+ }
43
+ },
44
+ "additionalProperties": false,
45
+ "required": [
46
+ "status"
47
+ ]
48
+ }
49
+ },
50
+ "required": [
51
+ "idTagInfo"
52
+ ],
53
+ "type": "object"
54
+ },
55
+ {
56
+ "$id": "urn:BootNotification.req",
57
+ "$schema": "http://json-schema.org/draft-07/schema",
58
+ "additionalProperties": false,
59
+ "properties": {
60
+ "chargePointVendor": {
61
+ "type": "string",
62
+ "maxLength": 20
63
+ },
64
+ "chargePointModel": {
65
+ "type": "string",
66
+ "maxLength": 20
67
+ },
68
+ "chargePointSerialNumber": {
69
+ "type": "string",
70
+ "maxLength": 25
71
+ },
72
+ "chargeBoxSerialNumber": {
73
+ "type": "string",
74
+ "maxLength": 25
75
+ },
76
+ "firmwareVersion": {
77
+ "type": "string",
78
+ "maxLength": 50
79
+ },
80
+ "iccid": {
81
+ "type": "string",
82
+ "maxLength": 20
83
+ },
84
+ "imsi": {
85
+ "type": "string",
86
+ "maxLength": 20
87
+ },
88
+ "meterType": {
89
+ "type": "string",
90
+ "maxLength": 25
91
+ },
92
+ "meterSerialNumber": {
93
+ "type": "string",
94
+ "maxLength": 25
95
+ }
96
+ },
97
+ "required": [
98
+ "chargePointVendor",
99
+ "chargePointModel"
100
+ ],
101
+ "type": "object"
102
+ },
103
+ {
104
+ "$id": "urn:BootNotification.conf",
105
+ "$schema": "http://json-schema.org/draft-07/schema",
106
+ "additionalProperties": false,
107
+ "properties": {
108
+ "status": {
109
+ "type": "string",
110
+ "enum": [
111
+ "Accepted",
112
+ "Pending",
113
+ "Rejected"
114
+ ]
115
+ },
116
+ "currentTime": {
117
+ "type": "string",
118
+ "format": "date-time"
119
+ },
120
+ "interval": {
121
+ "type": "integer"
122
+ }
123
+ },
124
+ "required": [
125
+ "status",
126
+ "currentTime",
127
+ "interval"
128
+ ],
129
+ "type": "object"
130
+ },
131
+ {
132
+ "$id": "urn:CancelReservation.req",
133
+ "$schema": "http://json-schema.org/draft-07/schema",
134
+ "additionalProperties": false,
135
+ "properties": {
136
+ "reservationId": {
137
+ "type": "integer"
138
+ }
139
+ },
140
+ "required": [
141
+ "reservationId"
142
+ ],
143
+ "type": "object"
144
+ },
145
+ {
146
+ "$id": "urn:CancelReservation.conf",
147
+ "$schema": "http://json-schema.org/draft-07/schema",
148
+ "additionalProperties": false,
149
+ "properties": {
150
+ "status": {
151
+ "type": "string",
152
+ "enum": [
153
+ "Accepted",
154
+ "Rejected"
155
+ ]
156
+ }
157
+ },
158
+ "required": [
159
+ "status"
160
+ ],
161
+ "type": "object"
162
+ },
163
+ {
164
+ "$id": "urn:CertificateSigned.req",
165
+ "$schema": "http://json-schema.org/draft-07/schema",
166
+ "additionalProperties": false,
167
+ "properties": {
168
+ "certificateChain": {
169
+ "type": "string",
170
+ "maxLength": 10000
171
+ }
172
+ },
173
+ "required": [
174
+ "certificateChain"
175
+ ],
176
+ "type": "object"
177
+ },
178
+ {
179
+ "$id": "urn:CertificateSigned.conf",
180
+ "$schema": "http://json-schema.org/draft-07/schema",
181
+ "additionalProperties": false,
182
+ "definitions": {
183
+ "CertificateSignedStatusEnumType": {
184
+ "type": "string",
185
+ "enum": [
186
+ "Accepted",
187
+ "Rejected"
188
+ ]
189
+ }
190
+ },
191
+ "properties": {
192
+ "status": {
193
+ "$ref": "#/definitions/CertificateSignedStatusEnumType"
194
+ }
195
+ },
196
+ "required": [
197
+ "status"
198
+ ],
199
+ "type": "object"
200
+ },
201
+ {
202
+ "$id": "urn:ChangeAvailability.req",
203
+ "$schema": "http://json-schema.org/draft-07/schema",
204
+ "additionalProperties": false,
205
+ "properties": {
206
+ "connectorId": {
207
+ "type": "integer"
208
+ },
209
+ "type": {
210
+ "type": "string",
211
+ "enum": [
212
+ "Inoperative",
213
+ "Operative"
214
+ ]
215
+ }
216
+ },
217
+ "required": [
218
+ "connectorId",
219
+ "type"
220
+ ],
221
+ "type": "object"
222
+ },
223
+ {
224
+ "$id": "urn:ChangeAvailability.conf",
225
+ "$schema": "http://json-schema.org/draft-07/schema",
226
+ "additionalProperties": false,
227
+ "properties": {
228
+ "status": {
229
+ "type": "string",
230
+ "enum": [
231
+ "Accepted",
232
+ "Rejected",
233
+ "Scheduled"
234
+ ]
235
+ }
236
+ },
237
+ "required": [
238
+ "status"
239
+ ],
240
+ "type": "object"
241
+ },
242
+ {
243
+ "$id": "urn:ChangeConfiguration.req",
244
+ "$schema": "http://json-schema.org/draft-07/schema",
245
+ "additionalProperties": false,
246
+ "properties": {
247
+ "key": {
248
+ "type": "string",
249
+ "maxLength": 50
250
+ },
251
+ "value": {
252
+ "type": "string",
253
+ "maxLength": 500
254
+ }
255
+ },
256
+ "required": [
257
+ "key",
258
+ "value"
259
+ ],
260
+ "type": "object"
261
+ },
262
+ {
263
+ "$id": "urn:ChangeConfiguration.conf",
264
+ "$schema": "http://json-schema.org/draft-07/schema",
265
+ "additionalProperties": false,
266
+ "properties": {
267
+ "status": {
268
+ "type": "string",
269
+ "enum": [
270
+ "Accepted",
271
+ "Rejected",
272
+ "RebootRequired",
273
+ "NotSupported"
274
+ ]
275
+ }
276
+ },
277
+ "required": [
278
+ "status"
279
+ ],
280
+ "type": "object"
281
+ },
282
+ {
283
+ "$id": "urn:ClearCache.req",
284
+ "$schema": "http://json-schema.org/draft-07/schema",
285
+ "additionalProperties": false,
286
+ "properties": {},
287
+ "type": "object"
288
+ },
289
+ {
290
+ "$id": "urn:ClearCache.conf",
291
+ "$schema": "http://json-schema.org/draft-07/schema",
292
+ "additionalProperties": false,
293
+ "properties": {
294
+ "status": {
295
+ "type": "string",
296
+ "enum": [
297
+ "Accepted",
298
+ "Rejected"
299
+ ]
300
+ }
301
+ },
302
+ "required": [
303
+ "status"
304
+ ],
305
+ "type": "object"
306
+ },
307
+ {
308
+ "$id": "urn:ClearChargingProfile.req",
309
+ "$schema": "http://json-schema.org/draft-07/schema",
310
+ "additionalProperties": false,
311
+ "properties": {
312
+ "id": {
313
+ "type": "integer"
314
+ },
315
+ "connectorId": {
316
+ "type": "integer"
317
+ },
318
+ "chargingProfilePurpose": {
319
+ "type": "string",
320
+ "enum": [
321
+ "ChargePointMaxProfile",
322
+ "TxDefaultProfile",
323
+ "TxProfile"
324
+ ]
325
+ },
326
+ "stackLevel": {
327
+ "type": "integer"
328
+ }
329
+ },
330
+ "type": "object"
331
+ },
332
+ {
333
+ "$id": "urn:ClearChargingProfile.conf",
334
+ "$schema": "http://json-schema.org/draft-07/schema",
335
+ "additionalProperties": false,
336
+ "properties": {
337
+ "status": {
338
+ "type": "string",
339
+ "enum": [
340
+ "Accepted",
341
+ "Unknown"
342
+ ]
343
+ }
344
+ },
345
+ "required": [
346
+ "status"
347
+ ],
348
+ "type": "object"
349
+ },
350
+ {
351
+ "$id": "urn:DataTransfer.req",
352
+ "$schema": "http://json-schema.org/draft-07/schema",
353
+ "additionalProperties": false,
354
+ "properties": {
355
+ "vendorId": {
356
+ "type": "string",
357
+ "maxLength": 255
358
+ },
359
+ "messageId": {
360
+ "type": "string",
361
+ "maxLength": 50
362
+ },
363
+ "data": {
364
+ "type": "string"
365
+ }
366
+ },
367
+ "required": [
368
+ "vendorId"
369
+ ],
370
+ "type": "object"
371
+ },
372
+ {
373
+ "$id": "urn:DataTransfer.conf",
374
+ "$schema": "http://json-schema.org/draft-07/schema",
375
+ "additionalProperties": false,
376
+ "properties": {
377
+ "status": {
378
+ "type": "string",
379
+ "enum": [
380
+ "Accepted",
381
+ "Rejected",
382
+ "UnknownMessageId",
383
+ "UnknownVendorId"
384
+ ]
385
+ },
386
+ "data": {
387
+ "type": "string"
388
+ }
389
+ },
390
+ "required": [
391
+ "status"
392
+ ],
393
+ "type": "object"
394
+ },
395
+ {
396
+ "$id": "urn:DeleteCertificate.req",
397
+ "$schema": "http://json-schema.org/draft-07/schema",
398
+ "additionalProperties": false,
399
+ "definitions": {
400
+ "HashAlgorithmEnumType": {
401
+ "type": "string",
402
+ "enum": [
403
+ "SHA256",
404
+ "SHA384",
405
+ "SHA512"
406
+ ]
407
+ },
408
+ "CertificateHashDataType": {
409
+ "type": "object",
410
+ "additionalProperties": false,
411
+ "properties": {
412
+ "hashAlgorithm": {
413
+ "$ref": "#/definitions/HashAlgorithmEnumType"
414
+ },
415
+ "issuerNameHash": {
416
+ "type": "string",
417
+ "maxLength": 128
418
+ },
419
+ "issuerKeyHash": {
420
+ "type": "string",
421
+ "maxLength": 128
422
+ },
423
+ "serialNumber": {
424
+ "type": "string",
425
+ "maxLength": 40
426
+ }
427
+ },
428
+ "required": [
429
+ "hashAlgorithm",
430
+ "issuerNameHash",
431
+ "issuerKeyHash",
432
+ "serialNumber"
433
+ ]
434
+ }
435
+ },
436
+ "properties": {
437
+ "certificateHashData": {
438
+ "$ref": "#/definitions/CertificateHashDataType"
439
+ }
440
+ },
441
+ "required": [
442
+ "certificateHashData"
443
+ ],
444
+ "type": "object"
445
+ },
446
+ {
447
+ "$id": "urn:DeleteCertificate.conf",
448
+ "$schema": "http://json-schema.org/draft-07/schema",
449
+ "additionalProperties": false,
450
+ "definitions": {
451
+ "DeleteCertificateStatusEnumType": {
452
+ "type": "string",
453
+ "enum": [
454
+ "Accepted",
455
+ "Failed",
456
+ "NotFound"
457
+ ]
458
+ }
459
+ },
460
+ "properties": {
461
+ "status": {
462
+ "$ref": "#/definitions/DeleteCertificateStatusEnumType"
463
+ }
464
+ },
465
+ "required": [
466
+ "status"
467
+ ],
468
+ "type": "object"
469
+ },
470
+ {
471
+ "$id": "urn:DiagnosticsStatusNotification.req",
472
+ "$schema": "http://json-schema.org/draft-07/schema",
473
+ "additionalProperties": false,
474
+ "properties": {
475
+ "status": {
476
+ "type": "string",
477
+ "enum": [
478
+ "Idle",
479
+ "Uploaded",
480
+ "UploadFailed",
481
+ "Uploading"
482
+ ]
483
+ }
484
+ },
485
+ "required": [
486
+ "status"
487
+ ],
488
+ "type": "object"
489
+ },
490
+ {
491
+ "$id": "urn:DiagnosticsStatusNotification.conf",
492
+ "$schema": "http://json-schema.org/draft-07/schema",
493
+ "additionalProperties": false,
494
+ "properties": {},
495
+ "type": "object"
496
+ },
497
+ {
498
+ "$id": "urn:ExtendedTriggerMessage.req",
499
+ "$schema": "http://json-schema.org/draft-07/schema",
500
+ "additionalProperties": false,
501
+ "definitions": {
502
+ "MessageTriggerEnumType": {
503
+ "type": "string",
504
+ "enum": [
505
+ "BootNotification",
506
+ "LogStatusNotification",
507
+ "FirmwareStatusNotification",
508
+ "Heartbeat",
509
+ "MeterValues",
510
+ "SignChargePointCertificate",
511
+ "StatusNotification"
512
+ ]
513
+ }
514
+ },
515
+ "properties": {
516
+ "requestedMessage": {
517
+ "$ref": "#/definitions/MessageTriggerEnumType"
518
+ },
519
+ "connectorId": {
520
+ "type": "integer"
521
+ }
522
+ },
523
+ "required": [
524
+ "requestedMessage"
525
+ ],
526
+ "type": "object"
527
+ },
528
+ {
529
+ "$id": "urn:ExtendedTriggerMessage.conf",
530
+ "$schema": "http://json-schema.org/draft-07/schema",
531
+ "additionalProperties": false,
532
+ "definitions": {
533
+ "TriggerMessageStatusEnumType": {
534
+ "type": "string",
535
+ "enum": [
536
+ "Accepted",
537
+ "Rejected",
538
+ "NotImplemented"
539
+ ]
540
+ }
541
+ },
542
+ "properties": {
543
+ "status": {
544
+ "$ref": "#/definitions/TriggerMessageStatusEnumType"
545
+ }
546
+ },
547
+ "required": [
548
+ "status"
549
+ ],
550
+ "type": "object"
551
+ },
552
+ {
553
+ "$id": "urn:FirmwareStatusNotification.req",
554
+ "$schema": "http://json-schema.org/draft-07/schema",
555
+ "additionalProperties": false,
556
+ "properties": {
557
+ "status": {
558
+ "type": "string",
559
+ "enum": [
560
+ "Downloaded",
561
+ "DownloadFailed",
562
+ "Downloading",
563
+ "Idle",
564
+ "InstallationFailed",
565
+ "Installing",
566
+ "Installed"
567
+ ]
568
+ }
569
+ },
570
+ "required": [
571
+ "status"
572
+ ],
573
+ "type": "object"
574
+ },
575
+ {
576
+ "$id": "urn:FirmwareStatusNotification.conf",
577
+ "$schema": "http://json-schema.org/draft-07/schema",
578
+ "additionalProperties": false,
579
+ "properties": {},
580
+ "type": "object"
581
+ },
582
+ {
583
+ "$id": "urn:GetCompositeSchedule.req",
584
+ "$schema": "http://json-schema.org/draft-07/schema",
585
+ "additionalProperties": false,
586
+ "properties": {
587
+ "connectorId": {
588
+ "type": "integer"
589
+ },
590
+ "duration": {
591
+ "type": "integer"
592
+ },
593
+ "chargingRateUnit": {
594
+ "type": "string",
595
+ "enum": [
596
+ "A",
597
+ "W"
598
+ ]
599
+ }
600
+ },
601
+ "required": [
602
+ "connectorId",
603
+ "duration"
604
+ ],
605
+ "type": "object"
606
+ },
607
+ {
608
+ "$id": "urn:GetCompositeSchedule.conf",
609
+ "$schema": "http://json-schema.org/draft-07/schema",
610
+ "additionalProperties": false,
611
+ "properties": {
612
+ "status": {
613
+ "type": "string",
614
+ "enum": [
615
+ "Accepted",
616
+ "Rejected"
617
+ ]
618
+ },
619
+ "connectorId": {
620
+ "type": "integer"
621
+ },
622
+ "scheduleStart": {
623
+ "type": "string",
624
+ "format": "date-time"
625
+ },
626
+ "chargingSchedule": {
627
+ "type": "object",
628
+ "properties": {
629
+ "duration": {
630
+ "type": "integer"
631
+ },
632
+ "startSchedule": {
633
+ "type": "string",
634
+ "format": "date-time"
635
+ },
636
+ "chargingRateUnit": {
637
+ "type": "string",
638
+ "enum": [
639
+ "A",
640
+ "W"
641
+ ]
642
+ },
643
+ "chargingSchedulePeriod": {
644
+ "type": "array",
645
+ "items": {
646
+ "type": "object",
647
+ "properties": {
648
+ "startPeriod": {
649
+ "type": "integer"
650
+ },
651
+ "limit": {
652
+ "type": "number",
653
+ "multipleOf": 0.1
654
+ },
655
+ "numberPhases": {
656
+ "type": "integer"
657
+ }
658
+ },
659
+ "additionalProperties": false,
660
+ "required": [
661
+ "startPeriod",
662
+ "limit"
663
+ ]
664
+ }
665
+ },
666
+ "minChargingRate": {
667
+ "type": "number",
668
+ "multipleOf": 0.1
669
+ }
670
+ },
671
+ "additionalProperties": false,
672
+ "required": [
673
+ "chargingRateUnit",
674
+ "chargingSchedulePeriod"
675
+ ]
676
+ }
677
+ },
678
+ "required": [
679
+ "status"
680
+ ],
681
+ "type": "object"
682
+ },
683
+ {
684
+ "$id": "urn:GetConfiguration.req",
685
+ "$schema": "http://json-schema.org/draft-07/schema",
686
+ "additionalProperties": false,
687
+ "properties": {
688
+ "key": {
689
+ "type": "array",
690
+ "items": {
691
+ "type": "string",
692
+ "maxLength": 50
693
+ }
694
+ }
695
+ },
696
+ "type": "object"
697
+ },
698
+ {
699
+ "$id": "urn:GetConfiguration.conf",
700
+ "$schema": "http://json-schema.org/draft-07/schema",
701
+ "additionalProperties": false,
702
+ "properties": {
703
+ "configurationKey": {
704
+ "type": "array",
705
+ "items": {
706
+ "type": "object",
707
+ "properties": {
708
+ "key": {
709
+ "type": "string",
710
+ "maxLength": 50
711
+ },
712
+ "readonly": {
713
+ "type": "boolean"
714
+ },
715
+ "value": {
716
+ "type": "string",
717
+ "maxLength": 500
718
+ }
719
+ },
720
+ "additionalProperties": false,
721
+ "required": [
722
+ "key",
723
+ "readonly"
724
+ ]
725
+ }
726
+ },
727
+ "unknownKey": {
728
+ "type": "array",
729
+ "items": {
730
+ "type": "string",
731
+ "maxLength": 50
732
+ }
733
+ }
734
+ },
735
+ "type": "object"
736
+ },
737
+ {
738
+ "$id": "urn:GetDiagnostics.req",
739
+ "$schema": "http://json-schema.org/draft-07/schema",
740
+ "additionalProperties": false,
741
+ "properties": {
742
+ "location": {
743
+ "type": "string",
744
+ "format": "uri"
745
+ },
746
+ "retries": {
747
+ "type": "integer"
748
+ },
749
+ "retryInterval": {
750
+ "type": "integer"
751
+ },
752
+ "startTime": {
753
+ "type": "string",
754
+ "format": "date-time"
755
+ },
756
+ "stopTime": {
757
+ "type": "string",
758
+ "format": "date-time"
759
+ }
760
+ },
761
+ "required": [
762
+ "location"
763
+ ],
764
+ "type": "object"
765
+ },
766
+ {
767
+ "$id": "urn:GetDiagnostics.conf",
768
+ "$schema": "http://json-schema.org/draft-07/schema",
769
+ "additionalProperties": false,
770
+ "properties": {
771
+ "fileName": {
772
+ "type": "string",
773
+ "maxLength": 255
774
+ }
775
+ },
776
+ "type": "object"
777
+ },
778
+ {
779
+ "$id": "urn:GetInstalledCertificateIds.req",
780
+ "$schema": "http://json-schema.org/draft-07/schema",
781
+ "additionalProperties": false,
782
+ "definitions": {
783
+ "CertificateUseEnumType": {
784
+ "type": "string",
785
+ "enum": [
786
+ "CentralSystemRootCertificate",
787
+ "ManufacturerRootCertificate"
788
+ ]
789
+ }
790
+ },
791
+ "properties": {
792
+ "certificateType": {
793
+ "$ref": "#/definitions/CertificateUseEnumType"
794
+ }
795
+ },
796
+ "required": [
797
+ "certificateType"
798
+ ],
799
+ "type": "object"
800
+ },
801
+ {
802
+ "$id": "urn:GetInstalledCertificateIds.conf",
803
+ "$schema": "http://json-schema.org/draft-07/schema",
804
+ "additionalProperties": false,
805
+ "definitions": {
806
+ "GetInstalledCertificateStatusEnumType": {
807
+ "type": "string",
808
+ "enum": [
809
+ "Accepted",
810
+ "NotFound"
811
+ ]
812
+ },
813
+ "HashAlgorithmEnumType": {
814
+ "type": "string",
815
+ "enum": [
816
+ "SHA256",
817
+ "SHA384",
818
+ "SHA512"
819
+ ]
820
+ },
821
+ "CertificateHashDataType": {
822
+ "type": "object",
823
+ "additionalProperties": false,
824
+ "properties": {
825
+ "hashAlgorithm": {
826
+ "$ref": "#/definitions/HashAlgorithmEnumType"
827
+ },
828
+ "issuerNameHash": {
829
+ "type": "string",
830
+ "maxLength": 128
831
+ },
832
+ "issuerKeyHash": {
833
+ "type": "string",
834
+ "maxLength": 128
835
+ },
836
+ "serialNumber": {
837
+ "type": "string",
838
+ "maxLength": 40
839
+ }
840
+ },
841
+ "required": [
842
+ "hashAlgorithm",
843
+ "issuerNameHash",
844
+ "issuerKeyHash",
845
+ "serialNumber"
846
+ ]
847
+ }
848
+ },
849
+ "properties": {
850
+ "certificateHashData": {
851
+ "type": "array",
852
+ "items": {
853
+ "$ref": "#/definitions/CertificateHashDataType"
854
+ },
855
+ "minItems": 1
856
+ },
857
+ "status": {
858
+ "$ref": "#/definitions/GetInstalledCertificateStatusEnumType"
859
+ }
860
+ },
861
+ "required": [
862
+ "status"
863
+ ],
864
+ "type": "object"
865
+ },
866
+ {
867
+ "$id": "urn:GetLocalListVersion.req",
868
+ "$schema": "http://json-schema.org/draft-07/schema",
869
+ "additionalProperties": false,
870
+ "properties": {},
871
+ "type": "object"
872
+ },
873
+ {
874
+ "$id": "urn:GetLocalListVersion.conf",
875
+ "$schema": "http://json-schema.org/draft-07/schema",
876
+ "additionalProperties": false,
877
+ "properties": {
878
+ "listVersion": {
879
+ "type": "integer"
880
+ }
881
+ },
882
+ "required": [
883
+ "listVersion"
884
+ ],
885
+ "type": "object"
886
+ },
887
+ {
888
+ "$id": "urn:GetLog.req",
889
+ "$schema": "http://json-schema.org/draft-07/schema",
890
+ "additionalProperties": false,
891
+ "definitions": {
892
+ "LogEnumType": {
893
+ "type": "string",
894
+ "enum": [
895
+ "DiagnosticsLog",
896
+ "SecurityLog"
897
+ ]
898
+ },
899
+ "LogParametersType": {
900
+ "type": "object",
901
+ "additionalProperties": false,
902
+ "properties": {
903
+ "remoteLocation": {
904
+ "type": "string",
905
+ "maxLength": 512
906
+ },
907
+ "oldestTimestamp": {
908
+ "type": "string",
909
+ "format": "date-time"
910
+ },
911
+ "latestTimestamp": {
912
+ "type": "string",
913
+ "format": "date-time"
914
+ }
915
+ },
916
+ "required": [
917
+ "remoteLocation"
918
+ ]
919
+ }
920
+ },
921
+ "properties": {
922
+ "log": {
923
+ "$ref": "#/definitions/LogParametersType"
924
+ },
925
+ "logType": {
926
+ "$ref": "#/definitions/LogEnumType"
927
+ },
928
+ "requestId": {
929
+ "type": "integer"
930
+ },
931
+ "retries": {
932
+ "type": "integer"
933
+ },
934
+ "retryInterval": {
935
+ "type": "integer"
936
+ }
937
+ },
938
+ "required": [
939
+ "logType",
940
+ "requestId",
941
+ "log"
942
+ ],
943
+ "type": "object"
944
+ },
945
+ {
946
+ "$id": "urn:GetLog.conf",
947
+ "$schema": "http://json-schema.org/draft-07/schema",
948
+ "additionalProperties": false,
949
+ "definitions": {
950
+ "LogStatusEnumType": {
951
+ "type": "string",
952
+ "enum": [
953
+ "Accepted",
954
+ "Rejected",
955
+ "AcceptedCanceled"
956
+ ]
957
+ }
958
+ },
959
+ "properties": {
960
+ "status": {
961
+ "$ref": "#/definitions/LogStatusEnumType"
962
+ },
963
+ "filename": {
964
+ "type": "string",
965
+ "maxLength": 255
966
+ }
967
+ },
968
+ "required": [
969
+ "status"
970
+ ],
971
+ "type": "object"
972
+ },
973
+ {
974
+ "$id": "urn:Heartbeat.req",
975
+ "$schema": "http://json-schema.org/draft-07/schema",
976
+ "additionalProperties": false,
977
+ "properties": {},
978
+ "type": "object"
979
+ },
980
+ {
981
+ "$id": "urn:Heartbeat.conf",
982
+ "$schema": "http://json-schema.org/draft-07/schema",
983
+ "additionalProperties": false,
984
+ "properties": {
985
+ "currentTime": {
986
+ "type": "string",
987
+ "format": "date-time"
988
+ }
989
+ },
990
+ "required": [
991
+ "currentTime"
992
+ ],
993
+ "type": "object"
994
+ },
995
+ {
996
+ "$id": "urn:InstallCertificate.req",
997
+ "$schema": "http://json-schema.org/draft-07/schema",
998
+ "additionalProperties": false,
999
+ "definitions": {
1000
+ "CertificateUseEnumType": {
1001
+ "type": "string",
1002
+ "enum": [
1003
+ "CentralSystemRootCertificate",
1004
+ "ManufacturerRootCertificate"
1005
+ ]
1006
+ }
1007
+ },
1008
+ "properties": {
1009
+ "certificateType": {
1010
+ "$ref": "#/definitions/CertificateUseEnumType"
1011
+ },
1012
+ "certificate": {
1013
+ "type": "string",
1014
+ "maxLength": 5500
1015
+ }
1016
+ },
1017
+ "required": [
1018
+ "certificateType",
1019
+ "certificate"
1020
+ ],
1021
+ "type": "object"
1022
+ },
1023
+ {
1024
+ "$id": "urn:InstallCertificate.conf",
1025
+ "$schema": "http://json-schema.org/draft-07/schema",
1026
+ "additionalProperties": false,
1027
+ "definitions": {
1028
+ "InstallCertificateStatusEnumType": {
1029
+ "type": "string",
1030
+ "enum": [
1031
+ "Accepted",
1032
+ "Failed",
1033
+ "Rejected"
1034
+ ]
1035
+ }
1036
+ },
1037
+ "properties": {
1038
+ "status": {
1039
+ "$ref": "#/definitions/InstallCertificateStatusEnumType"
1040
+ }
1041
+ },
1042
+ "required": [
1043
+ "status"
1044
+ ],
1045
+ "type": "object"
1046
+ },
1047
+ {
1048
+ "$id": "urn:LogStatusNotification.req",
1049
+ "$schema": "http://json-schema.org/draft-07/schema",
1050
+ "additionalProperties": false,
1051
+ "definitions": {
1052
+ "UploadLogStatusEnumType": {
1053
+ "type": "string",
1054
+ "enum": [
1055
+ "BadMessage",
1056
+ "Idle",
1057
+ "NotSupportedOperation",
1058
+ "PermissionDenied",
1059
+ "Uploaded",
1060
+ "UploadFailure",
1061
+ "Uploading"
1062
+ ]
1063
+ }
1064
+ },
1065
+ "properties": {
1066
+ "status": {
1067
+ "$ref": "#/definitions/UploadLogStatusEnumType"
1068
+ },
1069
+ "requestId": {
1070
+ "type": "integer"
1071
+ }
1072
+ },
1073
+ "required": [
1074
+ "status"
1075
+ ],
1076
+ "type": "object"
1077
+ },
1078
+ {
1079
+ "$id": "urn:LogStatusNotification.conf",
1080
+ "$schema": "http://json-schema.org/draft-07/schema",
1081
+ "additionalProperties": false,
1082
+ "type": "object"
1083
+ },
1084
+ {
1085
+ "$id": "urn:MeterValues.req",
1086
+ "$schema": "http://json-schema.org/draft-07/schema",
1087
+ "additionalProperties": false,
1088
+ "properties": {
1089
+ "connectorId": {
1090
+ "type": "integer"
1091
+ },
1092
+ "transactionId": {
1093
+ "type": "integer"
1094
+ },
1095
+ "meterValue": {
1096
+ "type": "array",
1097
+ "items": {
1098
+ "type": "object",
1099
+ "properties": {
1100
+ "timestamp": {
1101
+ "type": "string",
1102
+ "format": "date-time"
1103
+ },
1104
+ "sampledValue": {
1105
+ "type": "array",
1106
+ "items": {
1107
+ "type": "object",
1108
+ "properties": {
1109
+ "value": {
1110
+ "type": "string"
1111
+ },
1112
+ "context": {
1113
+ "type": "string",
1114
+ "enum": [
1115
+ "Interruption.Begin",
1116
+ "Interruption.End",
1117
+ "Sample.Clock",
1118
+ "Sample.Periodic",
1119
+ "Transaction.Begin",
1120
+ "Transaction.End",
1121
+ "Trigger",
1122
+ "Other"
1123
+ ]
1124
+ },
1125
+ "format": {
1126
+ "type": "string",
1127
+ "enum": [
1128
+ "Raw",
1129
+ "SignedData"
1130
+ ]
1131
+ },
1132
+ "measurand": {
1133
+ "type": "string",
1134
+ "enum": [
1135
+ "Energy.Active.Export.Register",
1136
+ "Energy.Active.Import.Register",
1137
+ "Energy.Reactive.Export.Register",
1138
+ "Energy.Reactive.Import.Register",
1139
+ "Energy.Active.Export.Interval",
1140
+ "Energy.Active.Import.Interval",
1141
+ "Energy.Reactive.Export.Interval",
1142
+ "Energy.Reactive.Import.Interval",
1143
+ "Power.Active.Export",
1144
+ "Power.Active.Import",
1145
+ "Power.Offered",
1146
+ "Power.Reactive.Export",
1147
+ "Power.Reactive.Import",
1148
+ "Power.Factor",
1149
+ "Current.Import",
1150
+ "Current.Export",
1151
+ "Current.Offered",
1152
+ "Voltage",
1153
+ "Frequency",
1154
+ "Temperature",
1155
+ "SoC",
1156
+ "RPM"
1157
+ ]
1158
+ },
1159
+ "phase": {
1160
+ "type": "string",
1161
+ "enum": [
1162
+ "L1",
1163
+ "L2",
1164
+ "L3",
1165
+ "N",
1166
+ "L1-N",
1167
+ "L2-N",
1168
+ "L3-N",
1169
+ "L1-L2",
1170
+ "L2-L3",
1171
+ "L3-L1"
1172
+ ]
1173
+ },
1174
+ "location": {
1175
+ "type": "string",
1176
+ "enum": [
1177
+ "Cable",
1178
+ "EV",
1179
+ "Inlet",
1180
+ "Outlet",
1181
+ "Body"
1182
+ ]
1183
+ },
1184
+ "unit": {
1185
+ "type": "string",
1186
+ "enum": [
1187
+ "Wh",
1188
+ "kWh",
1189
+ "varh",
1190
+ "kvarh",
1191
+ "W",
1192
+ "kW",
1193
+ "VA",
1194
+ "kVA",
1195
+ "var",
1196
+ "kvar",
1197
+ "A",
1198
+ "V",
1199
+ "K",
1200
+ "Celcius",
1201
+ "Celsius",
1202
+ "Fahrenheit",
1203
+ "Percent"
1204
+ ]
1205
+ }
1206
+ },
1207
+ "additionalProperties": false,
1208
+ "required": [
1209
+ "value"
1210
+ ]
1211
+ }
1212
+ }
1213
+ },
1214
+ "additionalProperties": false,
1215
+ "required": [
1216
+ "timestamp",
1217
+ "sampledValue"
1218
+ ]
1219
+ }
1220
+ }
1221
+ },
1222
+ "required": [
1223
+ "connectorId",
1224
+ "meterValue"
1225
+ ],
1226
+ "type": "object"
1227
+ },
1228
+ {
1229
+ "$id": "urn:MeterValues.conf",
1230
+ "$schema": "http://json-schema.org/draft-07/schema",
1231
+ "additionalProperties": false,
1232
+ "properties": {},
1233
+ "type": "object"
1234
+ },
1235
+ {
1236
+ "$id": "urn:RemoteStartTransaction.req",
1237
+ "$schema": "http://json-schema.org/draft-07/schema",
1238
+ "additionalProperties": false,
1239
+ "properties": {
1240
+ "connectorId": {
1241
+ "type": "integer"
1242
+ },
1243
+ "idTag": {
1244
+ "type": "string",
1245
+ "maxLength": 20
1246
+ },
1247
+ "chargingProfile": {
1248
+ "type": "object",
1249
+ "properties": {
1250
+ "chargingProfileId": {
1251
+ "type": "integer"
1252
+ },
1253
+ "transactionId": {
1254
+ "type": "integer"
1255
+ },
1256
+ "stackLevel": {
1257
+ "type": "integer"
1258
+ },
1259
+ "chargingProfilePurpose": {
1260
+ "type": "string",
1261
+ "enum": [
1262
+ "ChargePointMaxProfile",
1263
+ "TxDefaultProfile",
1264
+ "TxProfile"
1265
+ ]
1266
+ },
1267
+ "chargingProfileKind": {
1268
+ "type": "string",
1269
+ "enum": [
1270
+ "Absolute",
1271
+ "Recurring",
1272
+ "Relative"
1273
+ ]
1274
+ },
1275
+ "recurrencyKind": {
1276
+ "type": "string",
1277
+ "enum": [
1278
+ "Daily",
1279
+ "Weekly"
1280
+ ]
1281
+ },
1282
+ "validFrom": {
1283
+ "type": "string",
1284
+ "format": "date-time"
1285
+ },
1286
+ "validTo": {
1287
+ "type": "string",
1288
+ "format": "date-time"
1289
+ },
1290
+ "chargingSchedule": {
1291
+ "type": "object",
1292
+ "properties": {
1293
+ "duration": {
1294
+ "type": "integer"
1295
+ },
1296
+ "startSchedule": {
1297
+ "type": "string",
1298
+ "format": "date-time"
1299
+ },
1300
+ "chargingRateUnit": {
1301
+ "type": "string",
1302
+ "enum": [
1303
+ "A",
1304
+ "W"
1305
+ ]
1306
+ },
1307
+ "chargingSchedulePeriod": {
1308
+ "type": "array",
1309
+ "items": {
1310
+ "type": "object",
1311
+ "properties": {
1312
+ "startPeriod": {
1313
+ "type": "integer"
1314
+ },
1315
+ "limit": {
1316
+ "type": "number",
1317
+ "multipleOf": 0.1
1318
+ },
1319
+ "numberPhases": {
1320
+ "type": "integer"
1321
+ }
1322
+ },
1323
+ "additionalProperties": false,
1324
+ "required": [
1325
+ "startPeriod",
1326
+ "limit"
1327
+ ]
1328
+ }
1329
+ },
1330
+ "minChargingRate": {
1331
+ "type": "number",
1332
+ "multipleOf": 0.1
1333
+ }
1334
+ },
1335
+ "additionalProperties": false,
1336
+ "required": [
1337
+ "chargingRateUnit",
1338
+ "chargingSchedulePeriod"
1339
+ ]
1340
+ }
1341
+ },
1342
+ "additionalProperties": false,
1343
+ "required": [
1344
+ "chargingProfileId",
1345
+ "stackLevel",
1346
+ "chargingProfilePurpose",
1347
+ "chargingProfileKind",
1348
+ "chargingSchedule"
1349
+ ]
1350
+ }
1351
+ },
1352
+ "required": [
1353
+ "idTag"
1354
+ ],
1355
+ "type": "object"
1356
+ },
1357
+ {
1358
+ "$id": "urn:RemoteStartTransaction.conf",
1359
+ "$schema": "http://json-schema.org/draft-07/schema",
1360
+ "additionalProperties": false,
1361
+ "properties": {
1362
+ "status": {
1363
+ "type": "string",
1364
+ "enum": [
1365
+ "Accepted",
1366
+ "Rejected"
1367
+ ]
1368
+ }
1369
+ },
1370
+ "required": [
1371
+ "status"
1372
+ ],
1373
+ "type": "object"
1374
+ },
1375
+ {
1376
+ "$id": "urn:RemoteStopTransaction.req",
1377
+ "$schema": "http://json-schema.org/draft-07/schema",
1378
+ "additionalProperties": false,
1379
+ "properties": {
1380
+ "transactionId": {
1381
+ "type": "integer"
1382
+ }
1383
+ },
1384
+ "required": [
1385
+ "transactionId"
1386
+ ],
1387
+ "type": "object"
1388
+ },
1389
+ {
1390
+ "$id": "urn:RemoteStopTransaction.conf",
1391
+ "$schema": "http://json-schema.org/draft-07/schema",
1392
+ "additionalProperties": false,
1393
+ "properties": {
1394
+ "status": {
1395
+ "type": "string",
1396
+ "enum": [
1397
+ "Accepted",
1398
+ "Rejected"
1399
+ ]
1400
+ }
1401
+ },
1402
+ "required": [
1403
+ "status"
1404
+ ],
1405
+ "type": "object"
1406
+ },
1407
+ {
1408
+ "$id": "urn:ReserveNow.req",
1409
+ "$schema": "http://json-schema.org/draft-07/schema",
1410
+ "additionalProperties": false,
1411
+ "properties": {
1412
+ "connectorId": {
1413
+ "type": "integer"
1414
+ },
1415
+ "expiryDate": {
1416
+ "type": "string",
1417
+ "format": "date-time"
1418
+ },
1419
+ "idTag": {
1420
+ "type": "string",
1421
+ "maxLength": 20
1422
+ },
1423
+ "parentIdTag": {
1424
+ "type": "string",
1425
+ "maxLength": 20
1426
+ },
1427
+ "reservationId": {
1428
+ "type": "integer"
1429
+ }
1430
+ },
1431
+ "required": [
1432
+ "connectorId",
1433
+ "expiryDate",
1434
+ "idTag",
1435
+ "reservationId"
1436
+ ],
1437
+ "type": "object"
1438
+ },
1439
+ {
1440
+ "$id": "urn:ReserveNow.conf",
1441
+ "$schema": "http://json-schema.org/draft-07/schema",
1442
+ "additionalProperties": false,
1443
+ "properties": {
1444
+ "status": {
1445
+ "type": "string",
1446
+ "enum": [
1447
+ "Accepted",
1448
+ "Faulted",
1449
+ "Occupied",
1450
+ "Rejected",
1451
+ "Unavailable"
1452
+ ]
1453
+ }
1454
+ },
1455
+ "required": [
1456
+ "status"
1457
+ ],
1458
+ "type": "object"
1459
+ },
1460
+ {
1461
+ "$id": "urn:Reset.req",
1462
+ "$schema": "http://json-schema.org/draft-07/schema",
1463
+ "additionalProperties": false,
1464
+ "properties": {
1465
+ "type": {
1466
+ "type": "string",
1467
+ "enum": [
1468
+ "Hard",
1469
+ "Soft"
1470
+ ]
1471
+ }
1472
+ },
1473
+ "required": [
1474
+ "type"
1475
+ ],
1476
+ "type": "object"
1477
+ },
1478
+ {
1479
+ "$id": "urn:Reset.conf",
1480
+ "$schema": "http://json-schema.org/draft-07/schema",
1481
+ "additionalProperties": false,
1482
+ "properties": {
1483
+ "status": {
1484
+ "type": "string",
1485
+ "enum": [
1486
+ "Accepted",
1487
+ "Rejected"
1488
+ ]
1489
+ }
1490
+ },
1491
+ "required": [
1492
+ "status"
1493
+ ],
1494
+ "type": "object"
1495
+ },
1496
+ {
1497
+ "$id": "urn:SecurityEventNotification.req",
1498
+ "$schema": "http://json-schema.org/draft-07/schema",
1499
+ "additionalProperties": false,
1500
+ "properties": {
1501
+ "type": {
1502
+ "type": "string",
1503
+ "maxLength": 50
1504
+ },
1505
+ "timestamp": {
1506
+ "type": "string",
1507
+ "format": "date-time"
1508
+ },
1509
+ "techInfo": {
1510
+ "type": "string",
1511
+ "maxLength": 255
1512
+ }
1513
+ },
1514
+ "required": [
1515
+ "type",
1516
+ "timestamp"
1517
+ ],
1518
+ "type": "object"
1519
+ },
1520
+ {
1521
+ "$id": "urn:SecurityEventNotification.conf",
1522
+ "$schema": "http://json-schema.org/draft-07/schema",
1523
+ "additionalProperties": false,
1524
+ "type": "object"
1525
+ },
1526
+ {
1527
+ "$id": "urn:SendLocalList.req",
1528
+ "$schema": "http://json-schema.org/draft-07/schema",
1529
+ "additionalProperties": false,
1530
+ "properties": {
1531
+ "listVersion": {
1532
+ "type": "integer"
1533
+ },
1534
+ "localAuthorizationList": {
1535
+ "type": "array",
1536
+ "items": {
1537
+ "type": "object",
1538
+ "properties": {
1539
+ "idTag": {
1540
+ "type": "string",
1541
+ "maxLength": 20
1542
+ },
1543
+ "idTagInfo": {
1544
+ "type": "object",
1545
+ "properties": {
1546
+ "expiryDate": {
1547
+ "type": "string",
1548
+ "format": "date-time"
1549
+ },
1550
+ "parentIdTag": {
1551
+ "type": "string",
1552
+ "maxLength": 20
1553
+ },
1554
+ "status": {
1555
+ "type": "string",
1556
+ "enum": [
1557
+ "Accepted",
1558
+ "Blocked",
1559
+ "Expired",
1560
+ "Invalid",
1561
+ "ConcurrentTx"
1562
+ ]
1563
+ }
1564
+ },
1565
+ "additionalProperties": false,
1566
+ "required": [
1567
+ "status"
1568
+ ]
1569
+ }
1570
+ },
1571
+ "additionalProperties": false,
1572
+ "required": [
1573
+ "idTag"
1574
+ ]
1575
+ }
1576
+ },
1577
+ "updateType": {
1578
+ "type": "string",
1579
+ "enum": [
1580
+ "Differential",
1581
+ "Full"
1582
+ ]
1583
+ }
1584
+ },
1585
+ "required": [
1586
+ "listVersion",
1587
+ "updateType"
1588
+ ],
1589
+ "type": "object"
1590
+ },
1591
+ {
1592
+ "$id": "urn:SendLocalList.conf",
1593
+ "$schema": "http://json-schema.org/draft-07/schema",
1594
+ "additionalProperties": false,
1595
+ "properties": {
1596
+ "status": {
1597
+ "type": "string",
1598
+ "enum": [
1599
+ "Accepted",
1600
+ "Failed",
1601
+ "NotSupported",
1602
+ "VersionMismatch"
1603
+ ]
1604
+ }
1605
+ },
1606
+ "required": [
1607
+ "status"
1608
+ ],
1609
+ "type": "object"
1610
+ },
1611
+ {
1612
+ "$id": "urn:SetChargingProfile.req",
1613
+ "$schema": "http://json-schema.org/draft-07/schema",
1614
+ "additionalProperties": false,
1615
+ "properties": {
1616
+ "connectorId": {
1617
+ "type": "integer"
1618
+ },
1619
+ "csChargingProfiles": {
1620
+ "type": "object",
1621
+ "properties": {
1622
+ "chargingProfileId": {
1623
+ "type": "integer"
1624
+ },
1625
+ "transactionId": {
1626
+ "type": "integer"
1627
+ },
1628
+ "stackLevel": {
1629
+ "type": "integer"
1630
+ },
1631
+ "chargingProfilePurpose": {
1632
+ "type": "string",
1633
+ "enum": [
1634
+ "ChargePointMaxProfile",
1635
+ "TxDefaultProfile",
1636
+ "TxProfile"
1637
+ ]
1638
+ },
1639
+ "chargingProfileKind": {
1640
+ "type": "string",
1641
+ "enum": [
1642
+ "Absolute",
1643
+ "Recurring",
1644
+ "Relative"
1645
+ ]
1646
+ },
1647
+ "recurrencyKind": {
1648
+ "type": "string",
1649
+ "enum": [
1650
+ "Daily",
1651
+ "Weekly"
1652
+ ]
1653
+ },
1654
+ "validFrom": {
1655
+ "type": "string",
1656
+ "format": "date-time"
1657
+ },
1658
+ "validTo": {
1659
+ "type": "string",
1660
+ "format": "date-time"
1661
+ },
1662
+ "chargingSchedule": {
1663
+ "type": "object",
1664
+ "properties": {
1665
+ "duration": {
1666
+ "type": "integer"
1667
+ },
1668
+ "startSchedule": {
1669
+ "type": "string",
1670
+ "format": "date-time"
1671
+ },
1672
+ "chargingRateUnit": {
1673
+ "type": "string",
1674
+ "enum": [
1675
+ "A",
1676
+ "W"
1677
+ ]
1678
+ },
1679
+ "chargingSchedulePeriod": {
1680
+ "type": "array",
1681
+ "items": {
1682
+ "type": "object",
1683
+ "properties": {
1684
+ "startPeriod": {
1685
+ "type": "integer"
1686
+ },
1687
+ "limit": {
1688
+ "type": "number",
1689
+ "multipleOf": 0.1
1690
+ },
1691
+ "numberPhases": {
1692
+ "type": "integer"
1693
+ }
1694
+ },
1695
+ "additionalProperties": false,
1696
+ "required": [
1697
+ "startPeriod",
1698
+ "limit"
1699
+ ]
1700
+ }
1701
+ },
1702
+ "minChargingRate": {
1703
+ "type": "number",
1704
+ "multipleOf": 0.1
1705
+ }
1706
+ },
1707
+ "additionalProperties": false,
1708
+ "required": [
1709
+ "chargingRateUnit",
1710
+ "chargingSchedulePeriod"
1711
+ ]
1712
+ }
1713
+ },
1714
+ "additionalProperties": false,
1715
+ "required": [
1716
+ "chargingProfileId",
1717
+ "stackLevel",
1718
+ "chargingProfilePurpose",
1719
+ "chargingProfileKind",
1720
+ "chargingSchedule"
1721
+ ]
1722
+ }
1723
+ },
1724
+ "required": [
1725
+ "connectorId",
1726
+ "csChargingProfiles"
1727
+ ],
1728
+ "type": "object"
1729
+ },
1730
+ {
1731
+ "$id": "urn:SetChargingProfile.conf",
1732
+ "$schema": "http://json-schema.org/draft-07/schema",
1733
+ "additionalProperties": false,
1734
+ "properties": {
1735
+ "status": {
1736
+ "type": "string",
1737
+ "enum": [
1738
+ "Accepted",
1739
+ "Rejected",
1740
+ "NotSupported"
1741
+ ]
1742
+ }
1743
+ },
1744
+ "required": [
1745
+ "status"
1746
+ ],
1747
+ "type": "object"
1748
+ },
1749
+ {
1750
+ "$id": "urn:SignCertificate.req",
1751
+ "$schema": "http://json-schema.org/draft-07/schema",
1752
+ "additionalProperties": false,
1753
+ "properties": {
1754
+ "csr": {
1755
+ "type": "string",
1756
+ "maxLength": 5500
1757
+ }
1758
+ },
1759
+ "required": [
1760
+ "csr"
1761
+ ],
1762
+ "type": "object"
1763
+ },
1764
+ {
1765
+ "$id": "urn:SignCertificate.conf",
1766
+ "$schema": "http://json-schema.org/draft-07/schema",
1767
+ "additionalProperties": false,
1768
+ "definitions": {
1769
+ "GenericStatusEnumType": {
1770
+ "type": "string",
1771
+ "enum": [
1772
+ "Accepted",
1773
+ "Rejected"
1774
+ ]
1775
+ }
1776
+ },
1777
+ "properties": {
1778
+ "status": {
1779
+ "$ref": "#/definitions/GenericStatusEnumType"
1780
+ }
1781
+ },
1782
+ "required": [
1783
+ "status"
1784
+ ],
1785
+ "type": "object"
1786
+ },
1787
+ {
1788
+ "$id": "urn:SignedFirmwareStatusNotification.req",
1789
+ "$schema": "http://json-schema.org/draft-07/schema",
1790
+ "additionalProperties": false,
1791
+ "definitions": {
1792
+ "FirmwareStatusEnumType": {
1793
+ "type": "string",
1794
+ "enum": [
1795
+ "Downloaded",
1796
+ "DownloadFailed",
1797
+ "Downloading",
1798
+ "DownloadScheduled",
1799
+ "DownloadPaused",
1800
+ "Idle",
1801
+ "InstallationFailed",
1802
+ "Installing",
1803
+ "Installed",
1804
+ "InstallRebooting",
1805
+ "InstallScheduled",
1806
+ "InstallVerificationFailed",
1807
+ "InvalidSignature",
1808
+ "SignatureVerified"
1809
+ ]
1810
+ }
1811
+ },
1812
+ "properties": {
1813
+ "status": {
1814
+ "$ref": "#/definitions/FirmwareStatusEnumType"
1815
+ },
1816
+ "requestId": {
1817
+ "type": "integer"
1818
+ }
1819
+ },
1820
+ "required": [
1821
+ "status"
1822
+ ],
1823
+ "type": "object"
1824
+ },
1825
+ {
1826
+ "$id": "urn:SignedFirmwareStatusNotification.conf",
1827
+ "$schema": "http://json-schema.org/draft-07/schema",
1828
+ "additionalProperties": false,
1829
+ "type": "object"
1830
+ },
1831
+ {
1832
+ "$id": "urn:SignedUpdateFirmware.req",
1833
+ "$schema": "http://json-schema.org/draft-07/schema",
1834
+ "additionalProperties": false,
1835
+ "definitions": {
1836
+ "FirmwareType": {
1837
+ "type": "object",
1838
+ "additionalProperties": false,
1839
+ "properties": {
1840
+ "location": {
1841
+ "type": "string",
1842
+ "maxLength": 512
1843
+ },
1844
+ "retrieveDateTime": {
1845
+ "type": "string",
1846
+ "format": "date-time"
1847
+ },
1848
+ "installDateTime": {
1849
+ "type": "string",
1850
+ "format": "date-time"
1851
+ },
1852
+ "signingCertificate": {
1853
+ "type": "string",
1854
+ "maxLength": 5500
1855
+ },
1856
+ "signature": {
1857
+ "type": "string",
1858
+ "maxLength": 800
1859
+ }
1860
+ },
1861
+ "required": [
1862
+ "location",
1863
+ "retrieveDateTime",
1864
+ "signingCertificate",
1865
+ "signature"
1866
+ ]
1867
+ }
1868
+ },
1869
+ "properties": {
1870
+ "retries": {
1871
+ "type": "integer"
1872
+ },
1873
+ "retryInterval": {
1874
+ "type": "integer"
1875
+ },
1876
+ "requestId": {
1877
+ "type": "integer"
1878
+ },
1879
+ "firmware": {
1880
+ "$ref": "#/definitions/FirmwareType"
1881
+ }
1882
+ },
1883
+ "required": [
1884
+ "requestId",
1885
+ "firmware"
1886
+ ],
1887
+ "type": "object"
1888
+ },
1889
+ {
1890
+ "$id": "urn:SignedUpdateFirmware.conf",
1891
+ "$schema": "http://json-schema.org/draft-07/schema",
1892
+ "additionalProperties": false,
1893
+ "definitions": {
1894
+ "UpdateFirmwareStatusEnumType": {
1895
+ "type": "string",
1896
+ "enum": [
1897
+ "Accepted",
1898
+ "Rejected",
1899
+ "AcceptedCanceled",
1900
+ "InvalidCertificate",
1901
+ "RevokedCertificate"
1902
+ ]
1903
+ }
1904
+ },
1905
+ "properties": {
1906
+ "status": {
1907
+ "$ref": "#/definitions/UpdateFirmwareStatusEnumType"
1908
+ }
1909
+ },
1910
+ "required": [
1911
+ "status"
1912
+ ],
1913
+ "type": "object"
1914
+ },
1915
+ {
1916
+ "$id": "urn:StartTransaction.req",
1917
+ "$schema": "http://json-schema.org/draft-07/schema",
1918
+ "additionalProperties": false,
1919
+ "properties": {
1920
+ "connectorId": {
1921
+ "type": "integer"
1922
+ },
1923
+ "idTag": {
1924
+ "type": "string",
1925
+ "maxLength": 20
1926
+ },
1927
+ "meterStart": {
1928
+ "type": "integer"
1929
+ },
1930
+ "reservationId": {
1931
+ "type": "integer"
1932
+ },
1933
+ "timestamp": {
1934
+ "type": "string",
1935
+ "format": "date-time"
1936
+ }
1937
+ },
1938
+ "required": [
1939
+ "connectorId",
1940
+ "idTag",
1941
+ "meterStart",
1942
+ "timestamp"
1943
+ ],
1944
+ "type": "object"
1945
+ },
1946
+ {
1947
+ "$id": "urn:StartTransaction.conf",
1948
+ "$schema": "http://json-schema.org/draft-07/schema",
1949
+ "additionalProperties": false,
1950
+ "properties": {
1951
+ "idTagInfo": {
1952
+ "type": "object",
1953
+ "properties": {
1954
+ "expiryDate": {
1955
+ "type": "string",
1956
+ "format": "date-time"
1957
+ },
1958
+ "parentIdTag": {
1959
+ "type": "string",
1960
+ "maxLength": 20
1961
+ },
1962
+ "status": {
1963
+ "type": "string",
1964
+ "enum": [
1965
+ "Accepted",
1966
+ "Blocked",
1967
+ "Expired",
1968
+ "Invalid",
1969
+ "ConcurrentTx"
1970
+ ]
1971
+ }
1972
+ },
1973
+ "additionalProperties": false,
1974
+ "required": [
1975
+ "status"
1976
+ ]
1977
+ },
1978
+ "transactionId": {
1979
+ "type": "integer"
1980
+ }
1981
+ },
1982
+ "required": [
1983
+ "idTagInfo",
1984
+ "transactionId"
1985
+ ],
1986
+ "type": "object"
1987
+ },
1988
+ {
1989
+ "$id": "urn:StatusNotification.req",
1990
+ "$schema": "http://json-schema.org/draft-07/schema",
1991
+ "additionalProperties": false,
1992
+ "properties": {
1993
+ "connectorId": {
1994
+ "type": "integer"
1995
+ },
1996
+ "errorCode": {
1997
+ "type": "string",
1998
+ "enum": [
1999
+ "ConnectorLockFailure",
2000
+ "EVCommunicationError",
2001
+ "GroundFailure",
2002
+ "HighTemperature",
2003
+ "InternalError",
2004
+ "LocalListConflict",
2005
+ "NoError",
2006
+ "OtherError",
2007
+ "OverCurrentFailure",
2008
+ "PowerMeterFailure",
2009
+ "PowerSwitchFailure",
2010
+ "ReaderFailure",
2011
+ "ResetFailure",
2012
+ "UnderVoltage",
2013
+ "OverVoltage",
2014
+ "WeakSignal"
2015
+ ]
2016
+ },
2017
+ "info": {
2018
+ "type": "string",
2019
+ "maxLength": 50
2020
+ },
2021
+ "status": {
2022
+ "type": "string",
2023
+ "enum": [
2024
+ "Available",
2025
+ "Preparing",
2026
+ "Charging",
2027
+ "SuspendedEVSE",
2028
+ "SuspendedEV",
2029
+ "Finishing",
2030
+ "Reserved",
2031
+ "Unavailable",
2032
+ "Faulted"
2033
+ ]
2034
+ },
2035
+ "timestamp": {
2036
+ "type": "string",
2037
+ "format": "date-time"
2038
+ },
2039
+ "vendorId": {
2040
+ "type": "string",
2041
+ "maxLength": 255
2042
+ },
2043
+ "vendorErrorCode": {
2044
+ "type": "string",
2045
+ "maxLength": 50
2046
+ }
2047
+ },
2048
+ "required": [
2049
+ "connectorId",
2050
+ "errorCode",
2051
+ "status"
2052
+ ],
2053
+ "type": "object"
2054
+ },
2055
+ {
2056
+ "$id": "urn:StatusNotification.conf",
2057
+ "$schema": "http://json-schema.org/draft-07/schema",
2058
+ "additionalProperties": false,
2059
+ "properties": {},
2060
+ "type": "object"
2061
+ },
2062
+ {
2063
+ "$id": "urn:StopTransaction.req",
2064
+ "$schema": "http://json-schema.org/draft-07/schema",
2065
+ "additionalProperties": false,
2066
+ "properties": {
2067
+ "idTag": {
2068
+ "type": "string",
2069
+ "maxLength": 20
2070
+ },
2071
+ "meterStop": {
2072
+ "type": "integer"
2073
+ },
2074
+ "timestamp": {
2075
+ "type": "string",
2076
+ "format": "date-time"
2077
+ },
2078
+ "transactionId": {
2079
+ "type": "integer"
2080
+ },
2081
+ "reason": {
2082
+ "type": "string",
2083
+ "enum": [
2084
+ "EmergencyStop",
2085
+ "EVDisconnected",
2086
+ "HardReset",
2087
+ "Local",
2088
+ "Other",
2089
+ "PowerLoss",
2090
+ "Reboot",
2091
+ "Remote",
2092
+ "SoftReset",
2093
+ "UnlockCommand",
2094
+ "DeAuthorized"
2095
+ ]
2096
+ },
2097
+ "transactionData": {
2098
+ "type": "array",
2099
+ "items": {
2100
+ "type": "object",
2101
+ "properties": {
2102
+ "timestamp": {
2103
+ "type": "string",
2104
+ "format": "date-time"
2105
+ },
2106
+ "sampledValue": {
2107
+ "type": "array",
2108
+ "items": {
2109
+ "type": "object",
2110
+ "properties": {
2111
+ "value": {
2112
+ "type": "string"
2113
+ },
2114
+ "context": {
2115
+ "type": "string",
2116
+ "enum": [
2117
+ "Interruption.Begin",
2118
+ "Interruption.End",
2119
+ "Sample.Clock",
2120
+ "Sample.Periodic",
2121
+ "Transaction.Begin",
2122
+ "Transaction.End",
2123
+ "Trigger",
2124
+ "Other"
2125
+ ]
2126
+ },
2127
+ "format": {
2128
+ "type": "string",
2129
+ "enum": [
2130
+ "Raw",
2131
+ "SignedData"
2132
+ ]
2133
+ },
2134
+ "measurand": {
2135
+ "type": "string",
2136
+ "enum": [
2137
+ "Energy.Active.Export.Register",
2138
+ "Energy.Active.Import.Register",
2139
+ "Energy.Reactive.Export.Register",
2140
+ "Energy.Reactive.Import.Register",
2141
+ "Energy.Active.Export.Interval",
2142
+ "Energy.Active.Import.Interval",
2143
+ "Energy.Reactive.Export.Interval",
2144
+ "Energy.Reactive.Import.Interval",
2145
+ "Power.Active.Export",
2146
+ "Power.Active.Import",
2147
+ "Power.Offered",
2148
+ "Power.Reactive.Export",
2149
+ "Power.Reactive.Import",
2150
+ "Power.Factor",
2151
+ "Current.Import",
2152
+ "Current.Export",
2153
+ "Current.Offered",
2154
+ "Voltage",
2155
+ "Frequency",
2156
+ "Temperature",
2157
+ "SoC",
2158
+ "RPM"
2159
+ ]
2160
+ },
2161
+ "phase": {
2162
+ "type": "string",
2163
+ "enum": [
2164
+ "L1",
2165
+ "L2",
2166
+ "L3",
2167
+ "N",
2168
+ "L1-N",
2169
+ "L2-N",
2170
+ "L3-N",
2171
+ "L1-L2",
2172
+ "L2-L3",
2173
+ "L3-L1"
2174
+ ]
2175
+ },
2176
+ "location": {
2177
+ "type": "string",
2178
+ "enum": [
2179
+ "Cable",
2180
+ "EV",
2181
+ "Inlet",
2182
+ "Outlet",
2183
+ "Body"
2184
+ ]
2185
+ },
2186
+ "unit": {
2187
+ "type": "string",
2188
+ "enum": [
2189
+ "Wh",
2190
+ "kWh",
2191
+ "varh",
2192
+ "kvarh",
2193
+ "W",
2194
+ "kW",
2195
+ "VA",
2196
+ "kVA",
2197
+ "var",
2198
+ "kvar",
2199
+ "A",
2200
+ "V",
2201
+ "K",
2202
+ "Celcius",
2203
+ "Celsius",
2204
+ "Fahrenheit",
2205
+ "Percent"
2206
+ ]
2207
+ }
2208
+ },
2209
+ "additionalProperties": false,
2210
+ "required": [
2211
+ "value"
2212
+ ]
2213
+ }
2214
+ }
2215
+ },
2216
+ "additionalProperties": false,
2217
+ "required": [
2218
+ "timestamp",
2219
+ "sampledValue"
2220
+ ]
2221
+ }
2222
+ }
2223
+ },
2224
+ "required": [
2225
+ "transactionId",
2226
+ "timestamp",
2227
+ "meterStop"
2228
+ ],
2229
+ "type": "object"
2230
+ },
2231
+ {
2232
+ "$id": "urn:StopTransaction.conf",
2233
+ "$schema": "http://json-schema.org/draft-07/schema",
2234
+ "additionalProperties": false,
2235
+ "properties": {
2236
+ "idTagInfo": {
2237
+ "type": "object",
2238
+ "properties": {
2239
+ "expiryDate": {
2240
+ "type": "string",
2241
+ "format": "date-time"
2242
+ },
2243
+ "parentIdTag": {
2244
+ "type": "string",
2245
+ "maxLength": 20
2246
+ },
2247
+ "status": {
2248
+ "type": "string",
2249
+ "enum": [
2250
+ "Accepted",
2251
+ "Blocked",
2252
+ "Expired",
2253
+ "Invalid",
2254
+ "ConcurrentTx"
2255
+ ]
2256
+ }
2257
+ },
2258
+ "additionalProperties": false,
2259
+ "required": [
2260
+ "status"
2261
+ ]
2262
+ }
2263
+ },
2264
+ "type": "object"
2265
+ },
2266
+ {
2267
+ "$id": "urn:TriggerMessage.req",
2268
+ "$schema": "http://json-schema.org/draft-07/schema",
2269
+ "additionalProperties": false,
2270
+ "properties": {
2271
+ "requestedMessage": {
2272
+ "type": "string",
2273
+ "enum": [
2274
+ "BootNotification",
2275
+ "DiagnosticsStatusNotification",
2276
+ "FirmwareStatusNotification",
2277
+ "Heartbeat",
2278
+ "MeterValues",
2279
+ "StatusNotification"
2280
+ ]
2281
+ },
2282
+ "connectorId": {
2283
+ "type": "integer"
2284
+ }
2285
+ },
2286
+ "required": [
2287
+ "requestedMessage"
2288
+ ],
2289
+ "type": "object"
2290
+ },
2291
+ {
2292
+ "$id": "urn:TriggerMessage.conf",
2293
+ "$schema": "http://json-schema.org/draft-07/schema",
2294
+ "additionalProperties": false,
2295
+ "properties": {
2296
+ "status": {
2297
+ "type": "string",
2298
+ "enum": [
2299
+ "Accepted",
2300
+ "Rejected",
2301
+ "NotImplemented"
2302
+ ]
2303
+ }
2304
+ },
2305
+ "required": [
2306
+ "status"
2307
+ ],
2308
+ "type": "object"
2309
+ },
2310
+ {
2311
+ "$id": "urn:UnlockConnector.req",
2312
+ "$schema": "http://json-schema.org/draft-07/schema",
2313
+ "additionalProperties": false,
2314
+ "properties": {
2315
+ "connectorId": {
2316
+ "type": "integer"
2317
+ }
2318
+ },
2319
+ "required": [
2320
+ "connectorId"
2321
+ ],
2322
+ "type": "object"
2323
+ },
2324
+ {
2325
+ "$id": "urn:UnlockConnector.conf",
2326
+ "$schema": "http://json-schema.org/draft-07/schema",
2327
+ "additionalProperties": false,
2328
+ "properties": {
2329
+ "status": {
2330
+ "type": "string",
2331
+ "enum": [
2332
+ "Unlocked",
2333
+ "UnlockFailed",
2334
+ "NotSupported"
2335
+ ]
2336
+ }
2337
+ },
2338
+ "required": [
2339
+ "status"
2340
+ ],
2341
+ "type": "object"
2342
+ },
2343
+ {
2344
+ "$id": "urn:UpdateFirmware.req",
2345
+ "$schema": "http://json-schema.org/draft-07/schema",
2346
+ "additionalProperties": false,
2347
+ "properties": {
2348
+ "location": {
2349
+ "type": "string",
2350
+ "format": "uri"
2351
+ },
2352
+ "retries": {
2353
+ "type": "integer"
2354
+ },
2355
+ "retrieveDate": {
2356
+ "type": "string",
2357
+ "format": "date-time"
2358
+ },
2359
+ "retryInterval": {
2360
+ "type": "integer"
2361
+ }
2362
+ },
2363
+ "required": [
2364
+ "location",
2365
+ "retrieveDate"
2366
+ ],
2367
+ "type": "object"
2368
+ },
2369
+ {
2370
+ "$id": "urn:UpdateFirmware.conf",
2371
+ "$schema": "http://json-schema.org/draft-07/schema",
2372
+ "additionalProperties": false,
2373
+ "properties": {},
2374
+ "type": "object"
2375
+ }
2376
+ ]