{
  "asyncapi": "3.0.0",
  "info": {
    "title": "core/spaces",
    "version": ""
  },
  "channels": {
    "systemEventsSpaces": {
      "address": "system-events.spaces",
      "messages": {
        "coreSpaceAssignmentCreated": {
          "$ref": "#/components/messages/spaces.coreSpaceAssignmentCreated"
        },
        "coreSpaceAssignmentDeleted": {
          "$ref": "#/components/messages/spaces.coreSpaceAssignmentDeleted"
        },
        "coreSpaceAssignmentUpdated": {
          "$ref": "#/components/messages/spaces.coreSpaceAssignmentUpdated"
        },
        "coreSpaceCreated": {
          "$ref": "#/components/messages/spaces.coreSpaceCreated"
        },
        "coreSpaceDeleted": {
          "$ref": "#/components/messages/spaces.coreSpaceDeleted"
        },
        "coreSpaceRequestApproved": {
          "$ref": "#/components/messages/spaces.coreSpaceRequestApproved"
        },
        "coreSpaceRequestCreated": {
          "$ref": "#/components/messages/spaces.coreSpaceRequestCreated"
        },
        "coreSpaceRequestDeleted": {
          "$ref": "#/components/messages/spaces.coreSpaceRequestDeleted"
        },
        "coreSpaceSettingsUpdated": {
          "$ref": "#/components/messages/spaces.coreSpaceSettingsUpdated"
        },
        "coreSpaceShareCreated": {
          "$ref": "#/components/messages/spaces.coreSpaceShareCreated"
        },
        "coreSpaceShareDeleted": {
          "$ref": "#/components/messages/spaces.coreSpaceShareDeleted"
        },
        "coreSpaceShareUpdated": {
          "$ref": "#/components/messages/spaces.coreSpaceShareUpdated"
        },
        "coreSpaceUpdated": {
          "$ref": "#/components/messages/spaces.coreSpaceUpdated"
        }
      }
    }
  },
  "operations": {
    "coreSpaceAssignmentCreated": {
      "action": "send",
      "channel": {
        "$ref": "#/channels/systemEventsSpaces"
      },
      "messages": [
        {
          "$ref": "#/channels/systemEventsSpaces/messages/coreSpaceAssignmentCreated"
        }
      ]
    },
    "coreSpaceAssignmentDeleted": {
      "action": "send",
      "channel": {
        "$ref": "#/channels/systemEventsSpaces"
      },
      "messages": [
        {
          "$ref": "#/channels/systemEventsSpaces/messages/coreSpaceAssignmentDeleted"
        }
      ]
    },
    "coreSpaceAssignmentUpdated": {
      "action": "send",
      "channel": {
        "$ref": "#/channels/systemEventsSpaces"
      },
      "messages": [
        {
          "$ref": "#/channels/systemEventsSpaces/messages/coreSpaceAssignmentUpdated"
        }
      ]
    },
    "coreSpaceCreated": {
      "action": "send",
      "channel": {
        "$ref": "#/channels/systemEventsSpaces"
      },
      "messages": [
        {
          "$ref": "#/channels/systemEventsSpaces/messages/coreSpaceCreated"
        }
      ]
    },
    "coreSpaceDeleted": {
      "action": "send",
      "channel": {
        "$ref": "#/channels/systemEventsSpaces"
      },
      "messages": [
        {
          "$ref": "#/channels/systemEventsSpaces/messages/coreSpaceDeleted"
        }
      ]
    },
    "coreSpaceRequestApproved": {
      "action": "send",
      "channel": {
        "$ref": "#/channels/systemEventsSpaces"
      },
      "messages": [
        {
          "$ref": "#/channels/systemEventsSpaces/messages/coreSpaceRequestApproved"
        }
      ]
    },
    "coreSpaceRequestCreated": {
      "action": "send",
      "channel": {
        "$ref": "#/channels/systemEventsSpaces"
      },
      "messages": [
        {
          "$ref": "#/channels/systemEventsSpaces/messages/coreSpaceRequestCreated"
        }
      ]
    },
    "coreSpaceRequestDeleted": {
      "action": "send",
      "channel": {
        "$ref": "#/channels/systemEventsSpaces"
      },
      "messages": [
        {
          "$ref": "#/channels/systemEventsSpaces/messages/coreSpaceRequestDeleted"
        }
      ]
    },
    "coreSpaceSettingsUpdated": {
      "action": "send",
      "channel": {
        "$ref": "#/channels/systemEventsSpaces"
      },
      "messages": [
        {
          "$ref": "#/channels/systemEventsSpaces/messages/coreSpaceSettingsUpdated"
        }
      ]
    },
    "coreSpaceShareCreated": {
      "action": "send",
      "channel": {
        "$ref": "#/channels/systemEventsSpaces"
      },
      "messages": [
        {
          "$ref": "#/channels/systemEventsSpaces/messages/coreSpaceShareCreated"
        }
      ]
    },
    "coreSpaceShareDeleted": {
      "action": "send",
      "channel": {
        "$ref": "#/channels/systemEventsSpaces"
      },
      "messages": [
        {
          "$ref": "#/channels/systemEventsSpaces/messages/coreSpaceShareDeleted"
        }
      ]
    },
    "coreSpaceShareUpdated": {
      "action": "send",
      "channel": {
        "$ref": "#/channels/systemEventsSpaces"
      },
      "messages": [
        {
          "$ref": "#/channels/systemEventsSpaces/messages/coreSpaceShareUpdated"
        }
      ]
    },
    "coreSpaceUpdated": {
      "action": "send",
      "channel": {
        "$ref": "#/channels/systemEventsSpaces"
      },
      "messages": [
        {
          "$ref": "#/channels/systemEventsSpaces/messages/coreSpaceUpdated"
        }
      ]
    }
  },
  "components": {
    "messages": {
      "spaces.coreSpaceAssignmentCreated": {
        "name": "com.qlik.core.space.assignment.created",
        "tags": [
          {
            "name": "spaces"
          }
        ],
        "title": "Space assignment created",
        "payload": {
          "type": "object",
          "allOf": [
            {
              "$ref": "#/components/schemas/cloudEventsContextAttributes"
            },
            {
              "$ref": "#/components/schemas/cloudEventsQlikExtensionsAttributes"
            },
            {
              "type": "object",
              "properties": {
                "data": {
                  "type": "object",
                  "examples": [],
                  "required": [
                    "id",
                    "type",
                    "assigneeId",
                    "roles",
                    "spaceId",
                    "tenantId",
                    "createdAt",
                    "createdBy"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Identifier of the assignment."
                    },
                    "type": {
                      "$ref": "#/components/schemas/assignmentTypes"
                    },
                    "roles": {
                      "$ref": "#/components/schemas/spaceRoles"
                    },
                    "spaceId": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Identifier of the space the assignment belongs to."
                    },
                    "tenantId": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Identifier of the tenant the space belongs to."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2025-03-07T23:47:53Z",
                      "description": "Timestamp when the assignment was created."
                    },
                    "createdBy": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Identifier of the user who created the assignment."
                    },
                    "spaceType": {
                      "$ref": "#/components/schemas/spaceTypes"
                    },
                    "assigneeId": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Identifier of the user or group assigned to the space."
                    }
                  },
                  "description": "Details of the created assignment."
                },
                "type": {
                  "type": "string",
                  "default": "com.qlik.core.space.assignment.created",
                  "description": "Unique identifier for the event type."
                }
              }
            }
          ]
        },
        "description": "Published when a user or group is assigned to a space.",
        "x-qlik-deprecated": false,
        "x-qlik-stability": "stable",
        "x-qlik-visibility": "public"
      },
      "spaces.coreSpaceAssignmentDeleted": {
        "name": "com.qlik.core.space.assignment.deleted",
        "tags": [
          {
            "name": "spaces"
          }
        ],
        "title": "Space assignment deleted",
        "payload": {
          "type": "object",
          "allOf": [
            {
              "$ref": "#/components/schemas/cloudEventsContextAttributes"
            },
            {
              "$ref": "#/components/schemas/cloudEventsQlikExtensionsAttributes"
            },
            {
              "type": "object",
              "properties": {
                "data": {
                  "type": "object",
                  "examples": [],
                  "required": [
                    "id",
                    "spaceId",
                    "assigneeId",
                    "type",
                    "spaceName",
                    "spaceDelete"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Identifier of the assignment."
                    },
                    "type": {
                      "$ref": "#/components/schemas/assignmentTypes"
                    },
                    "spaceId": {
                      "type": "string",
                      "description": "Identifier of the space the assignment belongs to."
                    },
                    "spaceName": {
                      "type": "string",
                      "description": "Name of the space."
                    },
                    "assigneeId": {
                      "type": "string",
                      "description": "Identifier of the user or group assigned to the space."
                    },
                    "description": {
                      "type": "string",
                      "description": "Description of the assignment."
                    },
                    "spaceDelete": {
                      "type": "boolean",
                      "description": "If true the assignment was deleted because its parent space was deleted."
                    }
                  },
                  "description": "Details of the deleted assignment."
                },
                "type": {
                  "type": "string",
                  "default": "com.qlik.core.space.assignment.deleted",
                  "description": "Unique identifier for the event type."
                }
              }
            }
          ]
        },
        "description": "Published when a space assignment is deleted.",
        "x-qlik-deprecated": false,
        "x-qlik-stability": "stable",
        "x-qlik-visibility": "public"
      },
      "spaces.coreSpaceAssignmentUpdated": {
        "name": "com.qlik.core.space.assignment.updated",
        "tags": [
          {
            "name": "spaces"
          }
        ],
        "title": "Space assignment updated",
        "payload": {
          "type": "object",
          "allOf": [
            {
              "$ref": "#/components/schemas/cloudEventsContextAttributes"
            },
            {
              "$ref": "#/components/schemas/cloudEventsQlikExtensionsAttributes"
            },
            {
              "type": "object",
              "properties": {
                "data": {
                  "type": "object",
                  "examples": [],
                  "required": [
                    "id",
                    "roles",
                    "updatedAt",
                    "assigneeId",
                    "type",
                    "spaceId",
                    "updatedBy"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Identifier of the assignment."
                    },
                    "type": {
                      "$ref": "#/components/schemas/assignmentTypes"
                    },
                    "roles": {
                      "$ref": "#/components/schemas/spaceRoles"
                    },
                    "spaceId": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Identifier of the space the assignment belongs to."
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2025-03-07T23:47:53Z",
                      "description": "Timestamp when the assignment was updated."
                    },
                    "updatedBy": {
                      "type": "string",
                      "description": "Identifier of the user who updated the assignment."
                    },
                    "assigneeId": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Identifier of the user or group assigned to the space."
                    },
                    "description": {
                      "type": "string",
                      "description": "Description of the assignment."
                    }
                  },
                  "description": "Details of the updated assignment."
                },
                "type": {
                  "type": "string",
                  "default": "com.qlik.core.space.assignment.updated",
                  "description": "Unique identifier for the event type."
                }
              }
            }
          ]
        },
        "description": "Published when a space assignment is updated.",
        "x-qlik-deprecated": false,
        "x-qlik-stability": "stable",
        "x-qlik-visibility": "public"
      },
      "spaces.coreSpaceCreated": {
        "name": "com.qlik.core.space.created",
        "tags": [
          {
            "name": "spaces"
          }
        ],
        "title": "Space created",
        "payload": {
          "type": "object",
          "allOf": [
            {
              "$ref": "#/components/schemas/cloudEventsContextAttributes"
            },
            {
              "$ref": "#/components/schemas/cloudEventsQlikExtensionsAttributes"
            },
            {
              "type": "object",
              "properties": {
                "data": {
                  "type": "object",
                  "examples": [],
                  "required": [
                    "id",
                    "type",
                    "ownerId",
                    "tenantId",
                    "createdAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Identifier of the space."
                    },
                    "name": {
                      "type": "string",
                      "example": "Public space",
                      "description": "Name of the space."
                    },
                    "type": {
                      "$ref": "#/components/schemas/spaceTypes"
                    },
                    "ownerId": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Identifier of the space owner."
                    },
                    "tenantId": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Identifier of the tenant the space belongs to."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2025-03-07T23:47:53Z",
                      "description": "Timestamp when the space was created."
                    },
                    "createdBy": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Identifier of the user who created the space."
                    },
                    "variables": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/variable"
                      },
                      "description": "Key-value pairs."
                    },
                    "description": {
                      "type": "string",
                      "example": "Publicly available space",
                      "description": "Description of the space."
                    },
                    "environment": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "example": "00000000-0000-0000-0000-000000000000",
                          "description": "Identifier of the environment."
                        },
                        "name": {
                          "type": "string",
                          "example": "Production",
                          "description": "Name of the environment."
                        },
                        "tenantId": {
                          "type": "string",
                          "example": "00000000-0000-0000-0000-000000000000",
                          "description": "Identifier of the tenant."
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2025-03-07T23:47:53Z",
                          "description": "Timestamp when the environment was created."
                        },
                        "createdBy": {
                          "type": "string",
                          "example": "00000000-0000-0000-0000-000000000000",
                          "description": "Identifier of the user who created the environment."
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2025-03-07T23:47:53Z",
                          "description": "Timestamp when the environment was updated."
                        },
                        "updatedBy": {
                          "type": "string",
                          "example": "00000000-0000-0000-0000-000000000000",
                          "description": "Identifier of the user who last updated the environment."
                        },
                        "variables": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/variable"
                          },
                          "description": "Key-value pairs."
                        },
                        "spaceCount": {
                          "type": "integer",
                          "example": 5,
                          "description": "Number of spaces in the environment."
                        },
                        "description": {
                          "type": "string",
                          "example": "Production environment",
                          "description": "Description of the environment."
                        },
                        "permissions": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "example": [
                            "read",
                            "update"
                          ],
                          "description": "Permissions the requesting user has on the environment."
                        },
                        "defaultDesignEnvironment": {
                          "type": "boolean",
                          "example": false,
                          "description": "Whether this is the default design environment."
                        },
                        "environmentConfiguration": {
                          "type": "string",
                          "example": "{\"key\":\"value\"}",
                          "description": "Configuration of the environment."
                        }
                      },
                      "description": "Environment details if the space belongs to an environment."
                    },
                    "environmentId": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Identifier of the environment the space belongs to."
                    }
                  },
                  "description": "Details of the created space."
                },
                "type": {
                  "type": "string",
                  "default": "com.qlik.core.space.created",
                  "description": "Unique identifier for the event type."
                }
              }
            }
          ]
        },
        "description": "Published when a space is created in the tenant.",
        "x-qlik-deprecated": false,
        "x-qlik-stability": "stable",
        "x-qlik-visibility": "public"
      },
      "spaces.coreSpaceDeleted": {
        "name": "com.qlik.core.space.deleted",
        "tags": [
          {
            "name": "spaces"
          }
        ],
        "title": "Space deleted",
        "payload": {
          "type": "object",
          "allOf": [
            {
              "$ref": "#/components/schemas/cloudEventsContextAttributes"
            },
            {
              "$ref": "#/components/schemas/cloudEventsQlikExtensionsAttributes"
            },
            {
              "type": "object",
              "properties": {
                "data": {
                  "type": "object",
                  "examples": [],
                  "required": [
                    "id"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Identifier of the deleted space."
                    },
                    "name": {
                      "type": "string",
                      "description": "Name of the space."
                    },
                    "ownerId": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Identifier of the space owner."
                    },
                    "description": {
                      "type": "string",
                      "example": "Publicly available space",
                      "description": "Description of the space."
                    }
                  },
                  "description": "Details of the deleted space."
                },
                "type": {
                  "type": "string",
                  "default": "com.qlik.core.space.deleted",
                  "description": "Unique identifier for the event type."
                }
              }
            }
          ]
        },
        "description": "Published when a space is deleted from the tenant.",
        "x-qlik-deprecated": false,
        "x-qlik-stability": "stable",
        "x-qlik-visibility": "public"
      },
      "spaces.coreSpaceRequestApproved": {
        "name": "com.qlik.core.space.request.approved",
        "tags": [
          {
            "name": "requests"
          }
        ],
        "title": "Space request approved",
        "payload": {
          "type": "object",
          "allOf": [
            {
              "$ref": "#/components/schemas/cloudEventsContextAttributes"
            },
            {
              "$ref": "#/components/schemas/cloudEventsQlikExtensionsAttributes"
            },
            {
              "type": "object",
              "properties": {
                "data": {
                  "type": "object",
                  "examples": [
                    {
                      "id": "00000000-0000-0000-0000-000000000000",
                      "roles": [
                        "consumer"
                      ],
                      "spaceId": "00000000-0000-0000-0000-000000001",
                      "tenantId": "00000000-0000-0000-0000-000000000000",
                      "createdAt": "2025-03-07T23:47:53Z",
                      "createdBy": "00000000-0000-0000-0000-000000000000",
                      "assigneeId": "00000000-0000-0000-0000-000000000000",
                      "resourceId": "00000000-0000-0000-0000-000000000001",
                      "description": "Request for accessing the resource",
                      "resourceType": "app"
                    }
                  ],
                  "required": [
                    "id",
                    "tenantId",
                    "description",
                    "assigneeId",
                    "createdBy",
                    "roles",
                    "spaceId",
                    "createdAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Identifier of the request."
                    },
                    "roles": {
                      "$ref": "#/components/schemas/spaceRoles"
                    },
                    "spaceId": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000001",
                      "description": "Identifier of the space related to the request."
                    },
                    "tenantId": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Identifier of the tenant the request belongs to."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2025-03-07T23:47:53Z",
                      "description": "Timestamp when the request was created."
                    },
                    "createdBy": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Identifier of the user who approved the access request."
                    },
                    "assigneeId": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Identifier of the user who is assigned the resource."
                    },
                    "resourceId": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000001",
                      "description": "Identifier of the resource related to the request."
                    },
                    "description": {
                      "type": "string",
                      "example": "Request for accessing the resource#123",
                      "description": "Description of the request."
                    },
                    "resourceType": {
                      "type": "string",
                      "example": "app",
                      "description": "Type of the resource related to the request."
                    }
                  },
                  "description": "Details of the approved request."
                },
                "type": {
                  "type": "string",
                  "default": "com.qlik.core.space.request.approved",
                  "description": "Unique identifier for the event type."
                }
              }
            }
          ]
        },
        "description": "Published when a space access request is approved.",
        "x-qlik-stability": "stable",
        "x-qlik-visibility": "public",
        "x-qlik-deprecated": false
      },
      "spaces.coreSpaceRequestCreated": {
        "name": "com.qlik.core.space.request.created",
        "tags": [
          {
            "name": "requests"
          }
        ],
        "title": "Space request created",
        "payload": {
          "type": "object",
          "allOf": [
            {
              "$ref": "#/components/schemas/cloudEventsContextAttributes"
            },
            {
              "$ref": "#/components/schemas/cloudEventsQlikExtensionsAttributes"
            },
            {
              "type": "object",
              "properties": {
                "data": {
                  "type": "object",
                  "examples": [
                    {
                      "id": "00000000-0000-0000-0000-000000000000",
                      "type": "assignment",
                      "roles": [
                        "consumer"
                      ],
                      "spaceId": "12345678-abcd-abcd-abcd-abcd12345678",
                      "tenantId": "00000000-0000-0000-0000-000000000000",
                      "createdAt": "2025-03-07T23:47:53Z",
                      "createdBy": "00000000-0000-0000-0000-000000000001",
                      "resourceId": "12345678-abcd-abcd-abcd-abcd12345678",
                      "description": "Request for accessing the resource 123",
                      "overWritten": false,
                      "resourceName": "My App",
                      "resourceType": "app"
                    }
                  ],
                  "required": [
                    "id",
                    "tenantId",
                    "description",
                    "createdBy",
                    "roles",
                    "type",
                    "spaceId",
                    "createdAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Identifier of the request."
                    },
                    "type": {
                      "$ref": "#/components/schemas/requestTypes"
                    },
                    "roles": {
                      "$ref": "#/components/schemas/spaceRoles"
                    },
                    "spaceId": {
                      "type": "string",
                      "example": "12345678-abcd-abcd-abcd-abcd12345678",
                      "description": "Identifier of the space related to the request."
                    },
                    "tenantId": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Identifier of the tenant the request belongs to."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2025-03-07T23:47:53Z",
                      "description": "Timestamp when the request was created."
                    },
                    "createdBy": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000001",
                      "description": "Identifier of the user who created the access request."
                    },
                    "resourceId": {
                      "type": "string",
                      "example": "12345678-abcd-abcd-abcd-abcd12345678",
                      "description": "Identifier of the resource related to the request."
                    },
                    "description": {
                      "type": "string",
                      "example": "Request for accessing the resource#123",
                      "description": "Description of the request."
                    },
                    "overWritten": {
                      "type": "boolean",
                      "example": false,
                      "description": "Indicates if the request was over-written by another request."
                    },
                    "resourceName": {
                      "type": "string",
                      "example": "My App",
                      "description": "Name of the resource related to the request."
                    },
                    "resourceType": {
                      "type": "string",
                      "example": "app",
                      "description": "Type of the resource related to the request."
                    }
                  },
                  "description": "Details of the created request."
                },
                "type": {
                  "type": "string",
                  "default": "com.qlik.core.space.request.created",
                  "description": "Unique identifier for the event type."
                }
              }
            }
          ]
        },
        "description": "Published when a space access request is created.",
        "x-qlik-stability": "stable",
        "x-qlik-visibility": "public",
        "x-qlik-deprecated": false
      },
      "spaces.coreSpaceRequestDeleted": {
        "name": "com.qlik.core.space.request.deleted",
        "tags": [
          {
            "name": "requests"
          }
        ],
        "title": "Space request deleted",
        "payload": {
          "type": "object",
          "allOf": [
            {
              "$ref": "#/components/schemas/cloudEventsContextAttributes"
            },
            {
              "$ref": "#/components/schemas/cloudEventsQlikExtensionsAttributes"
            },
            {
              "type": "object",
              "properties": {
                "data": {
                  "type": "object",
                  "examples": [
                    {
                      "id": "00000000-0000-0000-0000-000000000000",
                      "type": "assignment",
                      "roles": [
                        "consumer"
                      ],
                      "spaceId": "00000000-0000-0000-0000-000000001234",
                      "tenantId": "00000000-0000-0000-0000-000000000000",
                      "createdAt": "2025-03-07T23:47:53Z",
                      "createdBy": "00000000-0000-0000-0000-000000000000",
                      "resourceId": "12345678-abcd-abcd-abcd-abcd12345678",
                      "description": "Request for accessing the resource 123",
                      "resourceType": "app",
                      "requestedUserId": "00000000-0000-0000-0000-000000000001"
                    }
                  ],
                  "required": [
                    "id",
                    "tenantId",
                    "description",
                    "createdBy",
                    "requestedUserId",
                    "roles",
                    "type",
                    "spaceId",
                    "createdAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Identifier of the request."
                    },
                    "type": {
                      "$ref": "#/components/schemas/requestTypes"
                    },
                    "roles": {
                      "$ref": "#/components/schemas/spaceRoles"
                    },
                    "spaceId": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000001234",
                      "description": "Identifier of the space related to the request."
                    },
                    "tenantId": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Identifier of the tenant the request belongs to."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2025-03-07T23:47:53Z",
                      "description": "Timestamp when the request was created."
                    },
                    "createdBy": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Identifier of the user who deleted the access request."
                    },
                    "resourceId": {
                      "type": "string",
                      "example": "12345678-abcd-abcd-abcd-abcd12345678",
                      "description": "Identifier of the resource related to the request."
                    },
                    "description": {
                      "type": "string",
                      "example": "Request for accessing the resource#123",
                      "description": "Description of the request."
                    },
                    "resourceType": {
                      "type": "string",
                      "example": "app",
                      "description": "Type of the resource related to the request."
                    },
                    "requestedUserId": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000001",
                      "description": "Identifier of the user for whom access was requested."
                    }
                  },
                  "description": "Details of the deleted request."
                },
                "type": {
                  "type": "string",
                  "default": "com.qlik.core.space.request.deleted",
                  "description": "Unique identifier for the event type."
                }
              }
            }
          ]
        },
        "description": "Published when a space access request is deleted.",
        "x-qlik-stability": "stable",
        "x-qlik-visibility": "public",
        "x-qlik-deprecated": false
      },
      "spaces.coreSpaceSettingsUpdated": {
        "name": "com.qlik.core.space.settings.updated",
        "tags": [
          {
            "name": "spaces"
          }
        ],
        "title": "Space settings updated",
        "payload": {
          "type": "object",
          "allOf": [
            {
              "$ref": "#/components/schemas/cloudEventsContextAttributes"
            },
            {
              "$ref": "#/components/schemas/cloudEventsQlikExtensionsAttributes"
            },
            {
              "type": "object",
              "properties": {
                "data": {
                  "type": "object",
                  "examples": [],
                  "required": [
                    "allowOffline",
                    "allowShares",
                    "tenantId"
                  ],
                  "properties": {
                    "tenantId": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Identifier of the tenant."
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2025-03-07T23:47:53Z",
                      "description": "Timestamp when the settings were updated."
                    },
                    "allowShares": {
                      "type": "boolean",
                      "description": "Whether app sharing is allowed in the tenant."
                    },
                    "allowOffline": {
                      "type": "boolean",
                      "description": "Whether offline usage is allowed from shared or managed spaces."
                    }
                  },
                  "description": "Details of the updated space settings."
                },
                "type": {
                  "type": "string",
                  "default": "com.qlik.core.space.settings.updated",
                  "description": "Unique identifier for the event type."
                }
              }
            }
          ]
        },
        "description": "Published when the space settings are updated.",
        "x-qlik-deprecated": false,
        "x-qlik-stability": "stable",
        "x-qlik-visibility": "public"
      },
      "spaces.coreSpaceShareCreated": {
        "name": "com.qlik.core.space.share.created",
        "tags": [
          {
            "name": "spaces"
          }
        ],
        "title": "Space share created",
        "payload": {
          "type": "object",
          "allOf": [
            {
              "$ref": "#/components/schemas/cloudEventsContextAttributes"
            },
            {
              "$ref": "#/components/schemas/cloudEventsQlikExtensionsAttributes"
            },
            {
              "type": "object",
              "properties": {
                "data": {
                  "type": "object",
                  "examples": [],
                  "required": [
                    "id",
                    "type",
                    "assigneeId",
                    "roles",
                    "spaceId",
                    "spaceType",
                    "tenantId",
                    "createdAt",
                    "createdBy",
                    "resourceId",
                    "resourceType",
                    "resourceName"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Unique identifier for the share."
                    },
                    "type": {
                      "$ref": "#/components/schemas/assignmentTypes"
                    },
                    "roles": {
                      "$ref": "#/components/schemas/spaceRoles"
                    },
                    "spaceId": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Identifier of the space the share belongs to."
                    },
                    "tenantId": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Identifier of the tenant."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2025-03-07T23:47:53Z",
                      "description": "Timestamp when the share was created."
                    },
                    "createdBy": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Identifier of the user who created the share."
                    },
                    "spaceType": {
                      "$ref": "#/components/schemas/spaceTypes"
                    },
                    "assigneeId": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Unique identifier for the user or group assigned the share."
                    },
                    "resourceId": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Identifier for the resource being shared."
                    },
                    "resourceName": {
                      "type": "string",
                      "example": "SomeApp",
                      "description": "Name of the resource being shared."
                    },
                    "resourceType": {
                      "$ref": "#/components/schemas/shareResourceTypes"
                    }
                  },
                  "description": "Details of the created share."
                },
                "type": {
                  "type": "string",
                  "default": "com.qlik.core.space.share.created",
                  "description": "Unique identifier for the event type."
                }
              }
            }
          ]
        },
        "description": "Published when a new space share is created.",
        "x-qlik-deprecated": false,
        "x-qlik-stability": "stable",
        "x-qlik-visibility": "public"
      },
      "spaces.coreSpaceShareDeleted": {
        "name": "com.qlik.core.space.share.deleted",
        "tags": [
          {
            "name": "spaces"
          }
        ],
        "title": "Space share deleted",
        "payload": {
          "type": "object",
          "allOf": [
            {
              "$ref": "#/components/schemas/cloudEventsContextAttributes"
            },
            {
              "$ref": "#/components/schemas/cloudEventsQlikExtensionsAttributes"
            },
            {
              "type": "object",
              "properties": {
                "data": {
                  "type": "object",
                  "examples": [],
                  "required": [
                    "id",
                    "spaceId",
                    "assigneeId",
                    "type",
                    "spaceName",
                    "spaceDelete",
                    "resourceType",
                    "resourceId",
                    "resourceName"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Unique identifier for the share."
                    },
                    "type": {
                      "$ref": "#/components/schemas/assignmentTypes"
                    },
                    "spaceId": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Identifier of the space the share belongs to."
                    },
                    "spaceName": {
                      "type": "string",
                      "example": "Accounting",
                      "description": "Name of the space."
                    },
                    "assigneeId": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Unique identifier for the user or group assigned the share."
                    },
                    "resourceId": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Identifier for the resource being shared."
                    },
                    "description": {
                      "type": "string",
                      "example": "Shared app for science",
                      "description": "Description of the share."
                    },
                    "spaceDelete": {
                      "type": "boolean",
                      "description": "If true the share was deleted because its parent space was deleted."
                    },
                    "resourceName": {
                      "type": "string",
                      "example": "SomeApp",
                      "description": "Name of the resource being shared."
                    },
                    "resourceType": {
                      "$ref": "#/components/schemas/shareResourceTypes"
                    }
                  },
                  "description": "Details of the deleted share."
                },
                "type": {
                  "type": "string",
                  "default": "com.qlik.core.space.share.deleted",
                  "description": "Unique identifier for the event type."
                }
              }
            }
          ]
        },
        "description": "Published when a space share is deleted.",
        "x-qlik-deprecated": false,
        "x-qlik-stability": "stable",
        "x-qlik-visibility": "public"
      },
      "spaces.coreSpaceShareUpdated": {
        "name": "com.qlik.core.space.share.updated",
        "tags": [
          {
            "name": "spaces"
          }
        ],
        "title": "Space share updated",
        "payload": {
          "type": "object",
          "allOf": [
            {
              "$ref": "#/components/schemas/cloudEventsContextAttributes"
            },
            {
              "$ref": "#/components/schemas/cloudEventsQlikExtensionsAttributes"
            },
            {
              "type": "object",
              "properties": {
                "data": {
                  "type": "object",
                  "examples": [],
                  "required": [
                    "id",
                    "resourceId",
                    "resourceName",
                    "resourceType",
                    "type",
                    "assigneeId",
                    "roles",
                    "spaceId",
                    "linkId",
                    "spaceType",
                    "tenantId",
                    "createdAt",
                    "createdBy",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Unique identifier for the share."
                    },
                    "type": {
                      "$ref": "#/components/schemas/assignmentTypes"
                    },
                    "roles": {
                      "$ref": "#/components/schemas/spaceRoles"
                    },
                    "linkId": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Identifier of the share link."
                    },
                    "spaceId": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Identifier of the space the share belongs to."
                    },
                    "tenantId": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Identifier of the tenant related to the event."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2025-03-07T23:47:53Z",
                      "description": "Timestamp when the share was created."
                    },
                    "createdBy": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Identifier of the user who created the share."
                    },
                    "spaceType": {
                      "$ref": "#/components/schemas/spaceTypes"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2025-03-07T23:47:53Z",
                      "description": "Timestamp when the share was updated."
                    },
                    "updatedBy": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Identifier of the user who updated the share."
                    },
                    "assigneeId": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Identifier of the user or group assigned the share."
                    },
                    "resourceId": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Identifier for the resource being shared."
                    },
                    "resourceName": {
                      "type": "string",
                      "example": "SomeApp",
                      "description": "Name of the resource being shared."
                    },
                    "resourceType": {
                      "$ref": "#/components/schemas/shareResourceTypes"
                    }
                  },
                  "description": "Details of the updated share."
                },
                "type": {
                  "type": "string",
                  "default": "com.qlik.core.space.share.updated",
                  "description": "Unique identifier for the event type."
                }
              }
            }
          ]
        },
        "description": "Published when a space share is updated.",
        "x-qlik-deprecated": false,
        "x-qlik-stability": "stable",
        "x-qlik-visibility": "public"
      },
      "spaces.coreSpaceUpdated": {
        "name": "com.qlik.core.space.updated",
        "tags": [
          {
            "name": "spaces"
          }
        ],
        "title": "Space updated",
        "payload": {
          "type": "object",
          "allOf": [
            {
              "$ref": "#/components/schemas/cloudEventsContextAttributes"
            },
            {
              "$ref": "#/components/schemas/cloudEventsQlikExtensionsAttributes"
            },
            {
              "type": "object",
              "properties": {
                "data": {
                  "type": "object",
                  "examples": [],
                  "required": [
                    "id",
                    "ownerId",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Identifier of the space."
                    },
                    "name": {
                      "type": "string",
                      "example": "Public space",
                      "description": "Name of the space."
                    },
                    "type": {
                      "$ref": "#/components/schemas/spaceTypes"
                    },
                    "ownerId": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Identifier of the space owner."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2025-03-07T23:47:53Z",
                      "description": "Timestamp when the space was created."
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2025-03-07T23:47:53Z",
                      "description": "Timestamp when the space was updated."
                    },
                    "variables": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/variable"
                      },
                      "description": "Key-value pairs."
                    },
                    "description": {
                      "type": "string",
                      "example": "Publicly available space",
                      "description": "Description of the space."
                    },
                    "environment": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "example": "00000000-0000-0000-0000-000000000000",
                          "description": "Identifier of the environment."
                        },
                        "name": {
                          "type": "string",
                          "example": "Production",
                          "description": "Name of the environment."
                        },
                        "tenantId": {
                          "type": "string",
                          "example": "00000000-0000-0000-0000-000000000000",
                          "description": "Identifier of the tenant."
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2025-03-07T23:47:53Z",
                          "description": "Timestamp when the environment was created."
                        },
                        "createdBy": {
                          "type": "string",
                          "example": "00000000-0000-0000-0000-000000000000",
                          "description": "Identifier of the user who created the environment."
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2025-03-07T23:47:53Z",
                          "description": "Timestamp when the environment was updated."
                        },
                        "updatedBy": {
                          "type": "string",
                          "example": "00000000-0000-0000-0000-000000000000",
                          "description": "Identifier of the user who last updated the environment."
                        },
                        "variables": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/variable"
                          },
                          "description": "Key-value pairs."
                        },
                        "spaceCount": {
                          "type": "integer",
                          "example": 5,
                          "description": "Number of spaces in the environment."
                        },
                        "description": {
                          "type": "string",
                          "example": "Production environment",
                          "description": "Description of the environment."
                        },
                        "permissions": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "example": [
                            "read",
                            "update"
                          ],
                          "description": "Permissions the requesting user has on the environment."
                        },
                        "defaultDesignEnvironment": {
                          "type": "boolean",
                          "example": false,
                          "description": "Whether this is the default design environment."
                        },
                        "environmentConfiguration": {
                          "type": "string",
                          "example": "{\"key\":\"value\"}",
                          "description": "Configuration of the environment."
                        }
                      },
                      "description": "Environment details if the space belongs to an environment."
                    },
                    "previousName": {
                      "type": "string",
                      "example": "Old space name",
                      "description": "Previous name of the space before the update."
                    },
                    "restrictions": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/restriction"
                      },
                      "description": "Restrictions applied to the space."
                    },
                    "environmentId": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Identifier of the environment the space belongs to."
                    },
                    "previousOwnerId": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "description": "Identifier of the previous space owner before the update."
                    }
                  },
                  "description": "Details of the updated space."
                },
                "type": {
                  "type": "string",
                  "default": "com.qlik.core.space.updated",
                  "description": "Unique identifier for the event type."
                }
              }
            }
          ]
        },
        "description": "Published when a space is updated.",
        "x-qlik-deprecated": false,
        "x-qlik-stability": "stable",
        "x-qlik-visibility": "public"
      }
    },
    "schemas": {
      "assignmentTypes": {
        "enum": [
          "user",
          "group"
        ],
        "type": "string",
        "description": "Type of assignee for a space assignment."
      },
      "cloudEventsContextAttributes": {
        "type": "object",
        "required": [
          "id",
          "source",
          "specversion",
          "type"
        ],
        "properties": {
          "id": {
            "type": "string",
            "examples": [
              "A234-1234-1234"
            ],
            "minLength": 1,
            "description": "Identifies the event."
          },
          "time": {
            "type": "string",
            "format": "date-time",
            "examples": [
              "2026-04-05T17:31:00Z"
            ],
            "minLength": 1,
            "description": "Timestamp of when the occurrence happened. Must adhere to RFC 3339."
          },
          "type": {
            "type": "string",
            "examples": [
              "com.qlik.core.space.created"
            ],
            "minLength": 1,
            "description": "Describes the type of event related to the originating occurrence."
          },
          "source": {
            "type": "string",
            "format": "uri-reference",
            "examples": [
              "com.qlik/my-service"
            ],
            "minLength": 1,
            "description": "Identifies the context in which an event happened."
          },
          "specversion": {
            "type": "string",
            "examples": [
              "1.0.2"
            ],
            "minLength": 1,
            "description": "The version of the CloudEvents specification which the event uses."
          },
          "datacontenttype": {
            "type": "string",
            "examples": [
              "application/json"
            ],
            "minLength": 1,
            "description": "Content type of the data value. Must adhere to RFC 2046 format."
          }
        },
        "description": "CloudEvents Specification JSON Schema"
      },
      "cloudEventsQlikExtensionsAttributes": {
        "type": "object",
        "required": [
          "tenantid"
        ],
        "properties": {
          "userid": {
            "type": "string",
            "examples": [
              "00000000-0000-0000-0000-000000000000"
            ],
            "description": "Unique identifier for the user triggering the event."
          },
          "tenantid": {
            "type": "string",
            "examples": [
              "TiQ8GPVr8qI714Lp5ChAAFFaU24MJy69"
            ],
            "description": "Unique identifier for the tenant related to the event."
          }
        },
        "description": "Additional metadata and custom fields"
      },
      "requestTypes": {
        "enum": [
          "assignment",
          "share"
        ],
        "type": "string",
        "description": "Type of request."
      },
      "restriction": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "00000000-0000-0000-0000-000000000000",
            "description": "Identifier of the restriction."
          },
          "code": {
            "type": "string",
            "example": "SPACE_LIMIT_REACHED",
            "description": "Code of the restriction."
          },
          "action": {
            "type": "string",
            "example": "block",
            "description": "Action associated with the restriction."
          },
          "description": {
            "type": "string",
            "example": "The space has reached its resource limit.",
            "description": "Description of the restriction."
          }
        },
        "description": "Restriction applied to the space."
      },
      "shareResourceTypes": {
        "enum": [
          "app",
          "note"
        ],
        "type": "string",
        "description": "All supported resource types for sharing."
      },
      "spaceRoles": {
        "type": "array",
        "items": {
          "enum": [
            "facilitator",
            "producer",
            "consumer",
            "dataconsumer",
            "contributor",
            "operator",
            "publisher",
            "basicconsumer",
            "codeveloper"
          ],
          "type": "string"
        },
        "description": "The roles a user or group can be assigned within a space."
      },
      "spaceTypes": {
        "enum": [
          "managed",
          "shared",
          "data"
        ],
        "type": "string",
        "description": "The type of the space."
      },
      "variable": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "readOnly": true,
            "description": "Variable key."
          },
          "value": {
            "type": "string",
            "readOnly": true,
            "description": "Variable value."
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2025-03-07T23:47:53Z",
            "readOnly": true,
            "description": "Timestamp when the variable was last updated."
          }
        }
      }
    }
  }
}