schemas/events.json in losant_rest-1.8.7 vs schemas/events.json in losant_rest-1.8.9
- old
+ new
@@ -34,17 +34,23 @@
"enum": [
"flow",
"user",
"device",
"apiToken",
- "notebook"
+ "experienceUser",
+ "public"
]
},
"sourceId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
+ "sourceName": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 255
+ },
"level": {
"type": "string",
"enum": [
"info",
"warning",
@@ -72,10 +78,15 @@
"data": {},
"deviceId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
+ "deviceName": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 255
+ },
"eventTags": {
"type": "object",
"patternProperties": {
"^[0-9a-zA-Z_-]{1,255}$": {
"type": "string",
@@ -95,17 +106,23 @@
"enum": [
"flow",
"user",
"device",
"apiToken",
- "notebook"
+ "experienceUser",
+ "public"
]
},
"sourceId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
+ "sourceName": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 255
+ },
"creationDate": {
"type": "string",
"format": "date-time"
},
"comment": {
@@ -163,11 +180,14 @@
},
"sortDirection": {
"type": "string",
"enum": [
"asc",
- "desc"
+ "desc",
+ "ASC",
+ "DESC",
+ ""
]
},
"state": {
"type": "string",
"enum": [
@@ -177,8 +197,826 @@
]
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
+ },
+ "query": {
+ "title": "Advanced Event Query",
+ "description": "Schema for advanced event queries",
+ "type": "object",
+ "properties": {
+ "$and": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/advancedEventQuery"
+ }
+ },
+ "$or": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/advancedEventQuery"
+ }
+ },
+ "id": {
+ "oneOf": [
+ {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ {
+ "type": "object",
+ "properties": {
+ "$eq": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$ne": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$gt": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$lt": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$gte": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$lte": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$startsWith": {
+ "type": "string",
+ "minLength": 1
+ },
+ "$endsWith": {
+ "type": "string",
+ "minLength": 1
+ },
+ "$contains": {
+ "type": "string",
+ "minLength": 1
+ }
+ },
+ "additionalProperties": false
+ }
+ ]
+ },
+ "creationDate": {
+ "oneOf": [
+ {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ {
+ "type": "object",
+ "properties": {
+ "$eq": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$ne": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$gt": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$lt": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$gte": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$lte": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$startsWith": {
+ "type": "string",
+ "minLength": 1
+ },
+ "$endsWith": {
+ "type": "string",
+ "minLength": 1
+ },
+ "$contains": {
+ "type": "string",
+ "minLength": 1
+ }
+ },
+ "additionalProperties": false
+ }
+ ]
+ },
+ "lastUpdated": {
+ "oneOf": [
+ {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ {
+ "type": "object",
+ "properties": {
+ "$eq": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$ne": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$gt": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$lt": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$gte": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$lte": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$startsWith": {
+ "type": "string",
+ "minLength": 1
+ },
+ "$endsWith": {
+ "type": "string",
+ "minLength": 1
+ },
+ "$contains": {
+ "type": "string",
+ "minLength": 1
+ }
+ },
+ "additionalProperties": false
+ }
+ ]
+ },
+ "sourceId": {
+ "oneOf": [
+ {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ {
+ "type": "object",
+ "properties": {
+ "$eq": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$ne": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$gt": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$lt": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$gte": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$lte": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$startsWith": {
+ "type": "string",
+ "minLength": 1
+ },
+ "$endsWith": {
+ "type": "string",
+ "minLength": 1
+ },
+ "$contains": {
+ "type": "string",
+ "minLength": 1
+ }
+ },
+ "additionalProperties": false
+ }
+ ]
+ },
+ "sourceType": {
+ "oneOf": [
+ {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ {
+ "type": "object",
+ "properties": {
+ "$eq": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$ne": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$gt": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$lt": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$gte": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$lte": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$startsWith": {
+ "type": "string",
+ "minLength": 1
+ },
+ "$endsWith": {
+ "type": "string",
+ "minLength": 1
+ },
+ "$contains": {
+ "type": "string",
+ "minLength": 1
+ }
+ },
+ "additionalProperties": false
+ }
+ ]
+ },
+ "level": {
+ "oneOf": [
+ {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ {
+ "type": "object",
+ "properties": {
+ "$eq": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$ne": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$gt": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$lt": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$gte": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$lte": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$startsWith": {
+ "type": "string",
+ "minLength": 1
+ },
+ "$endsWith": {
+ "type": "string",
+ "minLength": 1
+ },
+ "$contains": {
+ "type": "string",
+ "minLength": 1
+ }
+ },
+ "additionalProperties": false
+ }
+ ]
+ },
+ "state": {
+ "oneOf": [
+ {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ {
+ "type": "object",
+ "properties": {
+ "$eq": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$ne": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$gt": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$lt": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$gte": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$lte": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$startsWith": {
+ "type": "string",
+ "minLength": 1
+ },
+ "$endsWith": {
+ "type": "string",
+ "minLength": 1
+ },
+ "$contains": {
+ "type": "string",
+ "minLength": 1
+ }
+ },
+ "additionalProperties": false
+ }
+ ]
+ },
+ "subject": {
+ "oneOf": [
+ {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ {
+ "type": "object",
+ "properties": {
+ "$eq": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$ne": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$gt": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$lt": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$gte": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$lte": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$startsWith": {
+ "type": "string",
+ "minLength": 1
+ },
+ "$endsWith": {
+ "type": "string",
+ "minLength": 1
+ },
+ "$contains": {
+ "type": "string",
+ "minLength": 1
+ }
+ },
+ "additionalProperties": false
+ }
+ ]
+ },
+ "deviceId": {
+ "oneOf": [
+ {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ {
+ "type": "object",
+ "properties": {
+ "$eq": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$ne": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$gt": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$lt": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$gte": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$lte": {
+ "type": [
+ "string",
+ "number",
+ "boolean",
+ "null"
+ ]
+ },
+ "$startsWith": {
+ "type": "string",
+ "minLength": 1
+ },
+ "$endsWith": {
+ "type": "string",
+ "minLength": 1
+ },
+ "$contains": {
+ "type": "string",
+ "minLength": 1
+ }
+ },
+ "additionalProperties": false
+ }
+ ]
+ },
+ "eventTags": {
+ "oneOf": [
+ {
+ "oneOf": [
+ {
+ "type": "object",
+ "properties": {
+ "$tagKey": {
+ "type": "string"
+ },
+ "$tagValue": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "minProperties": 1
+ },
+ {
+ "type": "object",
+ "patternProperties": {
+ "^[0-9a-zA-Z_-]{1,255}": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ }
+ ]
+ },
+ {
+ "type": "object",
+ "properties": {
+ "$eq": {
+ "oneOf": [
+ {
+ "type": "object",
+ "properties": {
+ "$tagKey": {
+ "type": "string"
+ },
+ "$tagValue": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "minProperties": 1
+ },
+ {
+ "type": "object",
+ "patternProperties": {
+ "^[0-9a-zA-Z_-]{1,255}": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ }
+ ]
+ }
+ },
+ "minProperties": 1,
+ "additionalProperties": false
+ },
+ {
+ "type": "object",
+ "properties": {
+ "$ne": {
+ "oneOf": [
+ {
+ "type": "object",
+ "properties": {
+ "$tagKey": {
+ "type": "string"
+ },
+ "$tagValue": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "minProperties": 1
+ },
+ {
+ "type": "object",
+ "patternProperties": {
+ "^[0-9a-zA-Z_-]{1,255}": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ }
+ ]
+ }
+ },
+ "minProperties": 1,
+ "additionalProperties": false
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
}
}
}
\ No newline at end of file