ocpp-messages
Version:
TypeScript definitions for Open Charge Point Protocol (OCPP)
211 lines • 4.84 kB
JSON
{
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "urn:OCPP:Cp:2:2018:4:SendLocalListRequest",
"comment": "OCPP 2.0 - v1p0",
"definitions": {
"AuthorizationStatusEnumType": {
"type": "string",
"additionalProperties": true,
"enum": [
"Accepted",
"Blocked",
"ConcurrentTx",
"Expired",
"Invalid",
"NoCredit",
"NotAllowedTypeEVSE",
"NotAtThisLocation",
"NotAtThisTime",
"Unknown"
]
},
"IdTokenEnumType": {
"type": "string",
"additionalProperties": true,
"enum": [
"Central",
"eMAID",
"ISO14443",
"KeyCode",
"Local",
"NoAuthorization",
"ISO15693"
]
},
"MessageFormatEnumType": {
"type": "string",
"additionalProperties": true,
"enum": [
"ASCII",
"HTML",
"URI",
"UTF8"
]
},
"UpdateEnumType": {
"type": "string",
"additionalProperties": true,
"enum": [
"Differential",
"Full"
]
},
"AdditionalInfoType": {
"javaType": "AdditionalInfo",
"type": "object",
"additionalProperties": true,
"properties": {
"additionalIdToken": {
"type": "string",
"maxLength": 36
},
"type": {
"type": "string",
"maxLength": 50
}
},
"required": [
"additionalIdToken",
"type"
]
},
"AuthorizationData": {
"javaType": "AuthorizationData",
"type": "object",
"additionalProperties": true,
"properties": {
"idToken": {
"$ref": "#/definitions/IdTokenType"
},
"idTokenInfo": {
"$ref": "#/definitions/IdTokenInfoType"
}
},
"required": [
"idToken"
]
},
"GroupIdTokenType": {
"javaType": "GroupIdToken",
"type": "object",
"additionalProperties": true,
"properties": {
"idToken": {
"type": "string",
"maxLength": 36
},
"type": {
"$ref": "#/definitions/IdTokenEnumType"
}
},
"required": [
"idToken",
"type"
]
},
"IdTokenInfoType": {
"javaType": "IdTokenInfo",
"type": "object",
"additionalProperties": true,
"properties": {
"status": {
"$ref": "#/definitions/AuthorizationStatusEnumType"
},
"cacheExpiryDateTime": {
"type": "string",
"format": "date-time"
},
"chargingPriority": {
"type": "integer"
},
"groupIdToken": {
"$ref": "#/definitions/GroupIdTokenType"
},
"language1": {
"type": "string",
"maxLength": 8
},
"language2": {
"type": "string",
"maxLength": 8
},
"personalMessage": {
"$ref": "#/definitions/MessageContentType"
}
},
"required": [
"status"
]
},
"IdTokenType": {
"javaType": "IdToken",
"type": "object",
"additionalProperties": true,
"properties": {
"additionalInfo": {
"type": "array",
"additionalItems": false,
"items": {
"$ref": "#/definitions/AdditionalInfoType"
},
"minItems": 1
},
"idToken": {
"type": "string",
"maxLength": 36
},
"type": {
"$ref": "#/definitions/IdTokenEnumType"
}
},
"required": [
"idToken",
"type"
]
},
"MessageContentType": {
"javaType": "MessageContent",
"type": "object",
"additionalProperties": true,
"properties": {
"format": {
"$ref": "#/definitions/MessageFormatEnumType"
},
"language": {
"type": "string",
"maxLength": 8
},
"content": {
"type": "string",
"maxLength": 512
}
},
"required": [
"format",
"content"
]
}
},
"type": "object",
"additionalProperties": true,
"properties": {
"localAuthorizationList": {
"type": "array",
"additionalItems": false,
"items": {
"$ref": "#/definitions/AuthorizationData"
},
"minItems": 1
},
"versionNumber": {
"type": "integer"
},
"updateType": {
"$ref": "#/definitions/UpdateEnumType"
}
},
"required": [
"versionNumber",
"updateType"
]
}