{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-365/json-schema/microsoft-365-microsoft-graph-teams-app-schema.json",
  "title": "microsoft.graph.teamsApp",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-365-appcatalogs-teamsapp-api-openapi.yml#/components/schemas/microsoft.graph.teamsApp",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.entity"
    },
    {
      "title": "teamsApp",
      "type": "object",
      "properties": {
        "displayName": {
          "type": [
            "string",
            "null"
          ],
          "description": "The name of the catalog app provided by the app developer in the Microsoft Teams zip app package."
        },
        "distributionMethod": {
          "$ref": "#/$defs/microsoft.graph.teamsAppDistributionMethod"
        },
        "externalId": {
          "type": [
            "string",
            "null"
          ],
          "description": "The ID of the catalog provided by the app developer in the Microsoft Teams zip app package."
        },
        "appDefinitions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.teamsAppDefinition"
          },
          "description": "The details for each version of the app.",
          "x-ms-navigationProperty": true
        }
      },
      "additionalProperties": {
        "type": "object"
      }
    }
  ],
  "$defs": {
    "microsoft.graph.entity": {
      "title": "entity",
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier for an entity. Read-only."
        }
      },
      "additionalProperties": {
        "type": "object"
      }
    },
    "microsoft.graph.identity": {
      "title": "identity",
      "type": "object",
      "properties": {
        "displayName": {
          "type": [
            "string",
            "null"
          ],
          "description": "The display name of the identity.For drive items, the display name might not always be available or up to date. For example, if a user changes their display name the API might show the new value in a future response, but the items associated with the user don't show up as changed when using delta."
        },
        "id": {
          "type": [
            "string",
            "null"
          ],
          "description": "Unique identifier for the identity or actor. For example, in the access reviews decisions API, this property might record the id of the principal, that is, the group, user, or application that's subject to review."
        }
      },
      "additionalProperties": {
        "type": "object"
      }
    },
    "microsoft.graph.identitySet": {
      "title": "identitySet",
      "type": "object",
      "properties": {
        "application": {
          "$ref": "#/$defs/microsoft.graph.identity"
        },
        "device": {
          "$ref": "#/$defs/microsoft.graph.identity"
        },
        "user": {
          "$ref": "#/$defs/microsoft.graph.identity"
        }
      },
      "additionalProperties": {
        "type": "object"
      }
    },
    "microsoft.graph.teamsAppAuthorization": {
      "title": "teamsAppAuthorization",
      "type": "object",
      "properties": {
        "clientAppId": {
          "type": [
            "string",
            "null"
          ],
          "description": "The registration ID of the Microsoft Entra app ID associated with the teamsApp."
        },
        "requiredPermissionSet": {
          "$ref": "#/$defs/microsoft.graph.teamsAppPermissionSet"
        }
      },
      "additionalProperties": {
        "type": "object"
      }
    },
    "microsoft.graph.teamsAppDefinition": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "teamsAppDefinition",
          "type": "object",
          "properties": {
            "authorization": {
              "$ref": "#/$defs/microsoft.graph.teamsAppAuthorization"
            },
            "createdBy": {
              "$ref": "#/$defs/microsoft.graph.identitySet"
            },
            "description": {
              "type": [
                "string",
                "null"
              ],
              "description": "Verbose description of the application."
            },
            "displayName": {
              "type": [
                "string",
                "null"
              ],
              "description": "The name of the app provided by the app developer."
            },
            "lastModifiedDateTime": {
              "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
              "type": [
                "string",
                "null"
              ],
              "format": "date-time"
            },
            "publishingState": {
              "$ref": "#/$defs/microsoft.graph.teamsAppPublishingState"
            },
            "shortDescription": {
              "type": [
                "string",
                "null"
              ],
              "description": "Short description of the application."
            },
            "teamsAppId": {
              "type": [
                "string",
                "null"
              ],
              "description": "The ID from the Teams app manifest."
            },
            "version": {
              "type": [
                "string",
                "null"
              ],
              "description": "The version number of the application."
            },
            "bot": {
              "$ref": "#/$defs/microsoft.graph.teamworkBot"
            }
          },
          "additionalProperties": {
            "type": "object"
          }
        }
      ]
    },
    "microsoft.graph.teamsAppDistributionMethod": {
      "title": "teamsAppDistributionMethod",
      "enum": [
        "store",
        "organization",
        "sideloaded",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.teamsAppPermissionSet": {
      "title": "teamsAppPermissionSet",
      "type": "object",
      "properties": {
        "resourceSpecificPermissions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.teamsAppResourceSpecificPermission"
          },
          "description": "A collection of resource-specific permissions."
        }
      },
      "additionalProperties": {
        "type": "object"
      }
    },
    "microsoft.graph.teamsAppPublishingState": {
      "title": "teamsAppPublishingState",
      "enum": [
        "submitted",
        "rejected",
        "published",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.teamsAppResourceSpecificPermission": {
      "title": "teamsAppResourceSpecificPermission",
      "type": "object",
      "properties": {
        "permissionType": {
          "$ref": "#/$defs/microsoft.graph.teamsAppResourceSpecificPermissionType"
        },
        "permissionValue": {
          "type": [
            "string",
            "null"
          ],
          "description": "The name of the resource-specific permission."
        }
      },
      "additionalProperties": {
        "type": "object"
      }
    },
    "microsoft.graph.teamsAppResourceSpecificPermissionType": {
      "title": "teamsAppResourceSpecificPermissionType",
      "enum": [
        "delegated",
        "application",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.teamworkBot": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "teamworkBot",
          "type": "object",
          "additionalProperties": {
            "type": "object"
          }
        }
      ]
    }
  }
}