{
  "asyncapi": "3.0.0",
  "info": {
    "title": "licenses",
    "version": ""
  },
  "channels": {
    "systemEventsLicenses": {
      "address": "system-events.licenses",
      "messages": {
        "licenseAssignmentDeleted": {
          "$ref": "#/components/messages/licenses.licenseAssignmentDeleted"
        },
        "licenseAssignmentRejected": {
          "$ref": "#/components/messages/licenses.licenseAssignmentRejected"
        },
        "licenseAssignmentUpdated": {
          "$ref": "#/components/messages/licenses.licenseAssignmentUpdated"
        },
        "licenseDataVolumeConsumptionAggregated": {
          "$ref": "#/components/messages/licenses.licenseDataVolumeConsumptionAggregated"
        },
        "licenseDefinitionUpdated": {
          "$ref": "#/components/messages/licenses.licenseDefinitionUpdated"
        },
        "licenseLeaseCreated": {
          "$ref": "#/components/messages/licenses.licenseLeaseCreated"
        },
        "licenseLeaseDeleted": {
          "$ref": "#/components/messages/licenses.licenseLeaseDeleted"
        },
        "licenseLeaseUpdated": {
          "$ref": "#/components/messages/licenses.licenseLeaseUpdated"
        },
        "licensesPurged": {
          "$ref": "#/components/messages/licenses.licensesPurged"
        },
        "licenseTenantAssociated": {
          "$ref": "#/components/messages/licenses.licenseTenantAssociated"
        }
      }
    }
  },
  "operations": {
    "licenseAssignmentDeleted": {
      "action": "send",
      "channel": {
        "$ref": "#/channels/systemEventsLicenses"
      },
      "messages": [
        {
          "$ref": "#/channels/systemEventsLicenses/messages/licenseAssignmentDeleted"
        }
      ]
    },
    "licenseAssignmentRejected": {
      "action": "send",
      "channel": {
        "$ref": "#/channels/systemEventsLicenses"
      },
      "messages": [
        {
          "$ref": "#/channels/systemEventsLicenses/messages/licenseAssignmentRejected"
        }
      ]
    },
    "licenseAssignmentUpdated": {
      "action": "send",
      "channel": {
        "$ref": "#/channels/systemEventsLicenses"
      },
      "messages": [
        {
          "$ref": "#/channels/systemEventsLicenses/messages/licenseAssignmentUpdated"
        }
      ]
    },
    "licenseDataVolumeConsumptionAggregated": {
      "action": "send",
      "channel": {
        "$ref": "#/channels/systemEventsLicenses"
      },
      "messages": [
        {
          "$ref": "#/channels/systemEventsLicenses/messages/licenseDataVolumeConsumptionAggregated"
        }
      ]
    },
    "licenseDefinitionUpdated": {
      "action": "send",
      "channel": {
        "$ref": "#/channels/systemEventsLicenses"
      },
      "messages": [
        {
          "$ref": "#/channels/systemEventsLicenses/messages/licenseDefinitionUpdated"
        }
      ]
    },
    "licenseLeaseCreated": {
      "action": "send",
      "channel": {
        "$ref": "#/channels/systemEventsLicenses"
      },
      "messages": [
        {
          "$ref": "#/channels/systemEventsLicenses/messages/licenseLeaseCreated"
        }
      ]
    },
    "licenseLeaseDeleted": {
      "action": "send",
      "channel": {
        "$ref": "#/channels/systemEventsLicenses"
      },
      "messages": [
        {
          "$ref": "#/channels/systemEventsLicenses/messages/licenseLeaseDeleted"
        }
      ]
    },
    "licenseLeaseUpdated": {
      "action": "send",
      "channel": {
        "$ref": "#/channels/systemEventsLicenses"
      },
      "messages": [
        {
          "$ref": "#/channels/systemEventsLicenses/messages/licenseLeaseUpdated"
        }
      ]
    },
    "licensesPurged": {
      "action": "send",
      "channel": {
        "$ref": "#/channels/systemEventsLicenses"
      },
      "messages": [
        {
          "$ref": "#/channels/systemEventsLicenses/messages/licensesPurged"
        }
      ]
    },
    "licenseTenantAssociated": {
      "action": "send",
      "channel": {
        "$ref": "#/channels/systemEventsLicenses"
      },
      "messages": [
        {
          "$ref": "#/channels/systemEventsLicenses/messages/licenseTenantAssociated"
        }
      ]
    }
  },
  "components": {
    "messages": {
      "licenses.licenseAssignmentDeleted": {
        "name": "com.qlik.license.assignment.deleted",
        "title": "Assignment deleted",
        "payload": {
          "type": "object",
          "allOf": [
            {
              "$ref": "#/components/schemas/cloudEventsAttributes"
            },
            {
              "$ref": "#/components/schemas/cloudEventsQlikCommonAttributes"
            },
            {
              "type": "object",
              "required": [
                "type"
              ],
              "properties": {
                "type": {
                  "type": "string",
                  "default": "com.qlik.license.assignment.deleted",
                  "description": "The event type identifier."
                }
              }
            },
            {
              "$ref": "#/components/schemas/assignmentDeleted"
            }
          ]
        },
        "description": "Event triggered when a license assignment is deleted.",
        "x-qlik-stability": "stable",
        "x-qlik-visibility": "public",
        "x-qlik-deprecated": false
      },
      "licenses.licenseAssignmentRejected": {
        "name": "com.qlik.license.assignment.rejected",
        "title": "Assignment rejected",
        "payload": {
          "type": "object",
          "allOf": [
            {
              "$ref": "#/components/schemas/cloudEventsAttributes"
            },
            {
              "$ref": "#/components/schemas/cloudEventsQlikCommonAttributes"
            },
            {
              "type": "object",
              "required": [
                "type"
              ],
              "properties": {
                "type": {
                  "type": "string",
                  "default": "com.qlik.license.assignment.rejected",
                  "description": "The event type identifier."
                }
              }
            },
            {
              "$ref": "#/components/schemas/assignmentRejected"
            }
          ]
        },
        "description": "Event triggered when a license assignment is rejected.",
        "x-qlik-stability": "stable",
        "x-qlik-visibility": "public",
        "x-qlik-deprecated": false
      },
      "licenses.licenseAssignmentUpdated": {
        "name": "com.qlik.license.assignment.updated",
        "title": "Assignment updated",
        "payload": {
          "type": "object",
          "allOf": [
            {
              "$ref": "#/components/schemas/cloudEventsAttributes"
            },
            {
              "$ref": "#/components/schemas/cloudEventsQlikCommonAttributes"
            },
            {
              "type": "object",
              "required": [
                "type"
              ],
              "properties": {
                "type": {
                  "type": "string",
                  "default": "com.qlik.license.assignment.updated",
                  "description": "The event type identifier."
                }
              }
            },
            {
              "$ref": "#/components/schemas/assignmentUpdated"
            }
          ]
        },
        "description": "Event triggered when a license assignment is updated.",
        "x-qlik-stability": "stable",
        "x-qlik-visibility": "public",
        "x-qlik-deprecated": false
      },
      "licenses.licenseDataVolumeConsumptionAggregated": {
        "name": "com.qlik.license.data.volume.consumption.aggregated",
        "title": "Data volume consumption aggregated",
        "payload": {
          "type": "object",
          "allOf": [
            {
              "$ref": "#/components/schemas/cloudEventsAttributes"
            },
            {
              "$ref": "#/components/schemas/cloudEventsQlikCommonAttributes"
            },
            {
              "type": "object",
              "required": [
                "type"
              ],
              "properties": {
                "type": {
                  "type": "string",
                  "default": "com.qlik.license.data.volume.consumption.aggregated",
                  "description": "The event type identifier."
                }
              }
            },
            {
              "$ref": "#/components/schemas/dataVolumeConsumptionAggregated"
            }
          ]
        },
        "description": "Event triggered when data volume consumption is reported.",
        "x-qlik-stability": "stable",
        "x-qlik-deprecated": true,
        "x-qlik-visibility": "public"
      },
      "licenses.licenseDefinitionUpdated": {
        "name": "com.qlik.license.definition.updated",
        "title": "Definition updated",
        "payload": {
          "type": "object",
          "allOf": [
            {
              "$ref": "#/components/schemas/cloudEventsAttributes"
            },
            {
              "$ref": "#/components/schemas/cloudEventsQlikCommonAttributes"
            },
            {
              "type": "object",
              "required": [
                "type"
              ],
              "properties": {
                "type": {
                  "type": "string",
                  "default": "com.qlik.license.definition.updated",
                  "description": "The event type identifier."
                }
              }
            },
            {
              "$ref": "#/components/schemas/definitionUpdated"
            }
          ]
        },
        "description": "Event triggered when a license definition is updated.",
        "x-qlik-stability": "stable",
        "x-qlik-visibility": "public",
        "x-qlik-deprecated": false
      },
      "licenses.licenseLeaseCreated": {
        "name": "com.qlik.v1.license.lease.created",
        "title": "Lease created",
        "payload": {
          "type": "object",
          "allOf": [
            {
              "$ref": "#/components/schemas/cloudEventsAttributes"
            },
            {
              "$ref": "#/components/schemas/cloudEventsQlikCommonAttributes"
            },
            {
              "type": "object",
              "required": [
                "type"
              ],
              "properties": {
                "type": {
                  "type": "string",
                  "default": "com.qlik.v1.license.lease.created",
                  "description": "The event type identifier."
                }
              }
            },
            {
              "$ref": "#/components/schemas/leaseCreated"
            }
          ]
        },
        "description": "Event triggered when a lease is created.",
        "x-qlik-stability": "stable",
        "x-qlik-visibility": "public",
        "x-qlik-deprecated": false
      },
      "licenses.licenseLeaseDeleted": {
        "name": "com.qlik.v1.license.lease.deleted",
        "title": "Lease deleted",
        "payload": {
          "type": "object",
          "allOf": [
            {
              "$ref": "#/components/schemas/cloudEventsAttributes"
            },
            {
              "$ref": "#/components/schemas/cloudEventsQlikCommonAttributes"
            },
            {
              "type": "object",
              "required": [
                "type"
              ],
              "properties": {
                "type": {
                  "type": "string",
                  "default": "com.qlik.v1.license.lease.deleted",
                  "description": "The event type identifier."
                }
              }
            },
            {
              "$ref": "#/components/schemas/leaseDeleted"
            }
          ]
        },
        "description": "Event triggered when a lease is deleted.",
        "x-qlik-stability": "stable",
        "x-qlik-visibility": "public",
        "x-qlik-deprecated": false
      },
      "licenses.licenseLeaseUpdated": {
        "name": "com.qlik.v1.license.lease.updated",
        "title": "Lease updated",
        "payload": {
          "type": "object",
          "allOf": [
            {
              "$ref": "#/components/schemas/cloudEventsAttributes"
            },
            {
              "$ref": "#/components/schemas/cloudEventsQlikCommonAttributes"
            },
            {
              "type": "object",
              "required": [
                "type"
              ],
              "properties": {
                "type": {
                  "type": "string",
                  "default": "com.qlik.v1.license.lease.updated",
                  "description": "The event type identifier."
                }
              }
            },
            {
              "$ref": "#/components/schemas/leaseUpdated"
            }
          ]
        },
        "description": "Event triggered when a lease is updated.",
        "x-qlik-stability": "stable",
        "x-qlik-visibility": "public",
        "x-qlik-deprecated": false
      },
      "licenses.licensesPurged": {
        "name": "com.qlik.v1.licenses.purged",
        "title": "tenant resources purged",
        "payload": {
          "type": "object",
          "allOf": [
            {
              "$ref": "#/components/schemas/cloudEventsAttributes"
            },
            {
              "$ref": "#/components/schemas/cloudEventsQlikCommonAttributes"
            },
            {
              "type": "object",
              "required": [
                "type"
              ],
              "properties": {
                "type": {
                  "type": "string",
                  "default": "com.qlik.v1.licenses.purged",
                  "description": "The event type identifier."
                }
              }
            },
            {
              "$ref": "#/components/schemas/licensesPurged"
            }
          ]
        },
        "description": "Event triggered when tenant resources are purged as part of a tenant purge operation",
        "x-qlik-stability": "stable",
        "x-qlik-visibility": "public",
        "x-qlik-deprecated": false
      },
      "licenses.licenseTenantAssociated": {
        "name": "com.qlik.v1.license.tenant.associated",
        "title": "Tenant associated",
        "payload": {
          "type": "object",
          "allOf": [
            {
              "$ref": "#/components/schemas/cloudEventsAttributes"
            },
            {
              "$ref": "#/components/schemas/cloudEventsQlikCommonAttributes"
            },
            {
              "type": "object",
              "required": [
                "type"
              ],
              "properties": {
                "type": {
                  "type": "string",
                  "default": "com.qlik.v1.license.tenant.associated",
                  "description": "The event type identifier."
                }
              }
            },
            {
              "$ref": "#/components/schemas/TenantAssociated"
            }
          ]
        },
        "description": "Event triggered when a tenant gets associated to a license.",
        "x-qlik-stability": "stable",
        "x-qlik-visibility": "public",
        "x-qlik-deprecated": false
      }
    },
    "schemas": {
      "assignmentDeleted": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "subject",
              "type",
              "license",
              "origin"
            ],
            "properties": {
              "type": {
                "type": "string",
                "examples": [
                  "professional"
                ],
                "description": "Assignment type."
              },
              "origin": {
                "enum": [
                  "internal",
                  "external"
                ],
                "type": "string",
                "description": "event origin:\n  * `internal` - API triggered\n  * `external` - triggered by a sync operation\n"
              },
              "license": {
                "type": "string",
                "examples": [
                  1234123412341234
                ],
                "description": "License number."
              },
              "subject": {
                "type": "string",
                "examples": [
                  "qtsel\\lhr"
                ],
                "description": "Subject of the user assigned access."
              }
            }
          },
          "tenantid": {
            "type": "string",
            "description": "Unique identifier of the tenant related to the event."
          },
          "sessionid": {
            "type": "string",
            "description": "Unique identifier of the session related to the event."
          }
        }
      },
      "assignmentRejected": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "subject",
              "type",
              "license",
              "origin"
            ],
            "properties": {
              "type": {
                "type": "string",
                "examples": [
                  "professional"
                ],
                "description": "Assignment type."
              },
              "origin": {
                "enum": [
                  "internal",
                  "external"
                ],
                "type": "string",
                "description": "event origin:\n  * `internal` - API triggered\n  * `external` - triggered by a sync operation\n"
              },
              "license": {
                "type": "string",
                "examples": [
                  1234123412341234
                ],
                "description": "License number."
              },
              "message": {
                "type": "string",
                "description": "Message about why the assignment was rejected."
              },
              "subject": {
                "type": "string",
                "examples": [
                  "qtsel\\lhr"
                ],
                "description": "Subject of the user assigned access."
              }
            }
          },
          "tenantid": {
            "type": "string",
            "description": "Unique identifier of the tenant related to the event."
          },
          "sessionid": {
            "type": "string",
            "description": "Unique identifier of the session related to the event."
          }
        }
      },
      "assignmentUpdated": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "subject",
              "type",
              "license",
              "origin"
            ],
            "properties": {
              "type": {
                "type": "string",
                "examples": [
                  "professional"
                ],
                "description": "Assignment type (e.g. 'analyzer_time', 'professional', etc.)."
              },
              "origin": {
                "enum": [
                  "internal",
                  "external"
                ],
                "type": "string",
                "description": "event origin:\n  * `internal` - API triggered\n  * `external` - triggered by a sync operation\n"
              },
              "license": {
                "type": "string",
                "examples": [
                  1234123412341234
                ],
                "description": "License number."
              },
              "subject": {
                "type": "string",
                "examples": [
                  "qtsel\\lhr"
                ],
                "description": "Subject of the user assigned access."
              }
            }
          },
          "tenantid": {
            "type": "string",
            "description": "Unique identifier of the tenant related to the event."
          },
          "sessionid": {
            "type": "string",
            "description": "Unique identifier of the session related to the event."
          }
        }
      },
      "cloudEventsAttributes": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier of the event."
          },
          "time": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when the event happened."
          },
          "type": {
            "type": "string",
            "description": "Type of the event."
          },
          "source": {
            "type": "string",
            "description": "The source of the event."
          },
          "specversion": {
            "enum": [
              "1.0"
            ],
            "type": "string",
            "description": "CloudEvents spec version."
          },
          "datacontenttype": {
            "type": "string",
            "default": "application/json",
            "description": "The content type of the event payload."
          }
        }
      },
      "cloudEventsQlikCommonAttributes": {
        "type": "object",
        "properties": {
          "authtype": {
            "type": "string",
            "description": "The type of principal that triggered the event."
          },
          "authclaims": {
            "type": "string",
            "description": "JSON string representing claims of the principal."
          },
          "tracestate": {
            "type": "string",
            "description": "A comma-delimited list of key-value pairs."
          },
          "traceparent": {
            "type": "string",
            "description": "Contains a version, trace ID, span ID, and trace options."
          }
        }
      },
      "dataVolume": {
        "type": "object",
        "required": [
          "consumptionType",
          "localVolume",
          "externalVolume",
          "unit"
        ],
        "properties": {
          "unit": {
            "type": "string"
          },
          "volume": {
            "type": "integer",
            "format": "int64"
          },
          "localVolume": {
            "type": "integer",
            "format": "int64"
          },
          "externalVolume": {
            "type": "integer",
            "format": "int64"
          },
          "consumptionType": {
            "type": "string"
          }
        }
      },
      "dataVolumeConsumptionAggregated": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "dataVolume",
              "totalLocalConsumption"
            ],
            "properties": {
              "total": {
                "type": "integer",
                "format": "int64"
              },
              "dataVolume": {
                "$ref": "#/components/schemas/dataVolume"
              },
              "globalConsumption": {
                "type": "integer",
                "format": "int64"
              },
              "globalConsumptionUnit": {
                "type": "string",
                "example": "byte"
              },
              "totalLocalConsumption": {
                "type": "integer",
                "format": "int64"
              },
              "licenseHighWatermarkWithinMonth": {
                "type": "integer",
                "format": "int64"
              },
              "licenseHighWatermarkWithinMonthUnit": {
                "type": "string",
                "example": "byte"
              }
            }
          },
          "tenantid": {
            "type": "string",
            "description": "Unique identifier of the tenant related to the event."
          }
        }
      },
      "definitionUpdated": {
        "type": "object",
        "required": [
          "tenantid",
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "license"
            ],
            "properties": {
              "license": {
                "type": "string",
                "description": "License number."
              },
              "parentLicense": {
                "type": "string",
                "description": "Parent license number."
              },
              "capabilityBankId": {
                "type": "string",
                "description": "Capability bank id."
              }
            }
          },
          "userid": {
            "type": "string",
            "description": "Unique identifier of the user related to the event."
          },
          "tenantid": {
            "type": "string",
            "description": "Unique identifier of the tenant related to the event."
          }
        }
      },
      "leaseCreated": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "license",
              "name",
              "resource",
              "size",
              "excess",
              "licenseQuantity",
              "licenseUnlimited",
              "leasedQuantity",
              "excessQuantity",
              "createdAt",
              "updatedAt"
            ],
            "properties": {
              "name": {
                "type": "string",
                "examples": [
                  "amlDepModel1"
                ]
              },
              "size": {
                "type": "integer",
                "examples": [
                  4
                ]
              },
              "excess": {
                "type": "boolean"
              },
              "license": {
                "type": "string",
                "examples": [
                  1234123412341234
                ]
              },
              "resource": {
                "type": "string",
                "examples": [
                  "amlDepModel"
                ]
              },
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "examples": [
                  "2018-10-30T07:06:22Z"
                ]
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time",
                "examples": [
                  "2018-10-30T07:06:22Z"
                ]
              },
              "excessQuantity": {
                "type": "integer",
                "format": "int64"
              },
              "leasedQuantity": {
                "type": "integer",
                "format": "int64"
              },
              "licenseQuantity": {
                "type": "integer",
                "format": "int64"
              },
              "licenseUnlimited": {
                "type": "boolean"
              }
            }
          },
          "userid": {
            "type": "string"
          },
          "tenantid": {
            "type": "string"
          },
          "sessionid": {
            "type": "string"
          }
        }
      },
      "leaseDeleted": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "license",
              "name",
              "resource",
              "size",
              "excess",
              "licenseQuantity",
              "licenseUnlimited",
              "leasedQuantity",
              "excessQuantity",
              "createdAt",
              "updatedAt"
            ],
            "properties": {
              "name": {
                "type": "string",
                "examples": [
                  "amlDepModel1"
                ]
              },
              "size": {
                "type": "integer",
                "examples": [
                  4
                ]
              },
              "excess": {
                "type": "boolean"
              },
              "license": {
                "type": "string",
                "examples": [
                  1234123412341234
                ]
              },
              "resource": {
                "type": "string",
                "examples": [
                  "amlDepModel"
                ]
              },
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "examples": [
                  "2018-10-30T07:06:22Z"
                ]
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time",
                "examples": [
                  "2018-10-30T07:06:22Z"
                ]
              },
              "excessQuantity": {
                "type": "integer",
                "format": "int64"
              },
              "leasedQuantity": {
                "type": "integer",
                "format": "int64"
              },
              "licenseQuantity": {
                "type": "integer",
                "format": "int64"
              },
              "licenseUnlimited": {
                "type": "boolean"
              }
            }
          },
          "userid": {
            "type": "string"
          },
          "tenantid": {
            "type": "string"
          },
          "sessionid": {
            "type": "string"
          }
        }
      },
      "leaseUpdated": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "license",
              "name",
              "resource",
              "size",
              "excess",
              "licenseQuantity",
              "licenseUnlimited",
              "leasedQuantity",
              "excessQuantity",
              "createdAt",
              "updatedAt"
            ],
            "properties": {
              "name": {
                "type": "string",
                "examples": [
                  "amlDepModel1"
                ]
              },
              "size": {
                "type": "integer",
                "examples": [
                  4
                ]
              },
              "excess": {
                "type": "boolean"
              },
              "license": {
                "type": "string",
                "examples": [
                  1234123412341234
                ]
              },
              "_updates": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "path",
                    "oldValue",
                    "newValue"
                  ],
                  "properties": {
                    "path": {
                      "type": "string"
                    },
                    "newValue": {},
                    "oldValue": {}
                  }
                }
              },
              "resource": {
                "type": "string",
                "examples": [
                  "amlDepModel1"
                ]
              },
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "examples": [
                  "2018-10-30T07:06:22Z"
                ]
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time",
                "examples": [
                  "2018-10-30T07:06:22Z"
                ]
              },
              "excessQuantity": {
                "type": "integer",
                "format": "int64"
              },
              "leasedQuantity": {
                "type": "integer",
                "format": "int64"
              },
              "licenseQuantity": {
                "type": "integer",
                "format": "int64"
              },
              "licenseUnlimited": {
                "type": "boolean"
              }
            }
          },
          "userid": {
            "type": "string"
          },
          "tenantid": {
            "type": "string"
          },
          "sessionid": {
            "type": "string"
          }
        }
      },
      "licensesPurged": {
        "type": "object",
        "required": [
          "data",
          "tenantid"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "purgedCount",
              "purgeId",
              "resourceType",
              "success"
            ],
            "properties": {
              "purgeId": {
                "type": "string"
              },
              "success": {
                "type": "boolean"
              },
              "purgedCount": {
                "type": "number"
              },
              "errorMessage": {
                "type": "string"
              },
              "resourceType": {
                "type": "string"
              }
            }
          },
          "tenantid": {
            "type": "string",
            "description": "Unique identifier of the tenant related to the event."
          }
        }
      },
      "TenantAssociated": {
        "type": "object",
        "required": [
          "tenantid",
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "license",
              "parentLicense"
            ],
            "properties": {
              "license": {
                "type": "string"
              },
              "parentLicense": {
                "type": "string"
              },
              "previousLicense": {
                "type": "string"
              },
              "capabilityBankId": {
                "type": "string"
              },
              "previousParentLicense": {
                "type": "string"
              }
            }
          },
          "userid": {
            "type": "string"
          },
          "tenantid": {
            "type": "string"
          }
        }
      }
    }
  }
}