{
  "openrpc": "1.3.2",
  "info": {
    "title": "Allure LMS Mobile API",
    "version": "1.5.0",
    "description": "Connect a learner app to Allure LMS. Authenticate a member, read their courses and look up request and response types for the mobile API. Methods are invoked over Convex RPC using ConvexHttpClient or ConvexReactClient with an Allure Account JWT issued from the \"convex\" template. Minimum supported client contract version: 1.0.0.",
    "contact": {
      "name": "Allure LMS",
      "url": "https://www.allurelms.com/resources/api"
    },
    "x-minimum-client-version": "1.0.0"
  },
  "externalDocs": {
    "description": "Allure LMS Mobile API documentation",
    "url": "https://www.allurelms.com/resources/api"
  },
  "servers": [
    {
      "name": "Assigned Convex deployment",
      "url": "{deploymentUrl}",
      "description": "Convex deployment HTTPS origin supplied for your Allure LMS integration.",
      "variables": {
        "deploymentUrl": {
          "default": "https://example.convex.cloud",
          "description": "Assigned Allure LMS Convex deployment URL."
        }
      }
    }
  ],
  "methods": [
    {
      "name": "mobile/v1/catalog:course",
      "summary": "query mobile/v1/catalog:course",
      "description": "List courses, enroll a learner and open the outline for an enrollment.",
      "tags": [
        {
          "$ref": "#/components/tags/catalog"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "courseId",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "enrollmentId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "includeWebPlacement",
          "required": false,
          "schema": {
            "const": true
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "webPlacement": {
              "type": "string"
            },
            "courseId": {
              "type": "string"
            },
            "title": {
              "type": "string"
            },
            "contentVersion": {
              "type": "string"
            },
            "enrollment": {
              "anyOf": [
                {
                  "type": "null"
                },
                {
                  "type": "object",
                  "properties": {
                    "enrollmentId": {
                      "type": "string"
                    },
                    "progress": {
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "enum": [
                            "not_started",
                            "in_progress",
                            "completed"
                          ]
                        },
                        "progressPercent": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "startedAt": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "completedAt": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "updatedAt": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "status",
                        "progressPercent",
                        "startedAt",
                        "completedAt",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "enrollmentId",
                    "progress"
                  ],
                  "additionalProperties": false
                }
              ]
            },
            "access": {
              "type": "object",
              "properties": {
                "state": {
                  "type": "string",
                  "enum": [
                    "available",
                    "locked",
                    "not_enrolled",
                    "unavailable"
                  ]
                },
                "reason": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "unlockRequirement": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "enum": [
                            "activity_completion",
                            "course_completion",
                            "release",
                            "previous_activity"
                          ]
                        },
                        "title": {
                          "type": "string"
                        },
                        "courseId": {
                          "type": "string"
                        },
                        "activityId": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "satisfied": {
                          "type": "boolean"
                        },
                        "opensAt": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "mode": {
                          "anyOf": [
                            {
                              "const": "all"
                            },
                            {
                              "const": "any"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "requirements": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "courseId": {
                                "type": "string"
                              },
                              "activityId": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "title": {
                                "type": "string"
                              },
                              "satisfied": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "courseId",
                              "activityId",
                              "title",
                              "satisfied"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "kind",
                        "title",
                        "courseId",
                        "activityId",
                        "satisfied",
                        "opensAt",
                        "mode",
                        "requirements"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "required": [
                "state",
                "reason",
                "unlockRequirement"
              ],
              "additionalProperties": false
            },
            "counts": {
              "type": "object",
              "properties": {
                "activities": {
                  "type": "number"
                },
                "completed": {
                  "type": "number"
                }
              },
              "required": [
                "activities",
                "completed"
              ],
              "additionalProperties": false
            },
            "modules": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "moduleId": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "position": {
                    "type": "number"
                  },
                  "activities": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reusableScenario": {
                          "const": true
                        },
                        "activityId": {
                          "type": "string"
                        },
                        "title": {
                          "type": "string"
                        },
                        "position": {
                          "type": "number"
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "text",
                            "video",
                            "document",
                            "link",
                            "embed",
                            "quiz",
                            "scorm",
                            "assignment",
                            "learning_check",
                            "form",
                            "unsupported"
                          ]
                        },
                        "lesson": {
                          "anyOf": [
                            {
                              "type": "null"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "title": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "title"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        },
                        "completionMode": {
                          "type": "string",
                          "enum": [
                            "mark",
                            "quiz",
                            "scorm",
                            "form_submit",
                            "web_only",
                            "none"
                          ]
                        },
                        "completed": {
                          "type": "boolean"
                        },
                        "completedAt": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "latestScorePercent": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "locked": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "activityId",
                        "title",
                        "position",
                        "type",
                        "lesson",
                        "completionMode",
                        "completed",
                        "completedAt",
                        "latestScorePercent",
                        "locked"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "moduleId",
                  "title",
                  "position",
                  "activities"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "courseId",
            "title",
            "contentVersion",
            "enrollment",
            "access",
            "counts",
            "modules"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "query"
    },
    {
      "name": "mobile/v1/catalog:enroll",
      "summary": "mutation mobile/v1/catalog:enroll",
      "description": "List courses, enroll a learner and open the outline for an enrollment.",
      "tags": [
        {
          "$ref": "#/components/tags/catalog"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "courseId",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "courseId": {
              "type": "string"
            },
            "enrollmentId": {
              "type": "string"
            },
            "progress": {
              "type": "object",
              "properties": {
                "status": {
                  "type": "string",
                  "enum": [
                    "not_started",
                    "in_progress",
                    "completed"
                  ]
                },
                "progressPercent": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "startedAt": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "completedAt": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "updatedAt": {
                  "type": "string"
                }
              },
              "required": [
                "status",
                "progressPercent",
                "startedAt",
                "completedAt",
                "updatedAt"
              ],
              "additionalProperties": false
            },
            "alreadyEnrolled": {
              "type": "boolean"
            }
          },
          "required": [
            "courseId",
            "enrollmentId",
            "progress",
            "alreadyEnrolled"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "mutation"
    },
    {
      "name": "mobile/v1/catalog:ensureEnrollments",
      "summary": "mutation mobile/v1/catalog:ensureEnrollments",
      "description": "List courses, enroll a learner and open the outline for an enrollment.",
      "tags": [
        {
          "$ref": "#/components/tags/catalog"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "enrolledCount": {
              "type": "number"
            }
          },
          "required": [
            "enrolledCount"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "mutation"
    },
    {
      "name": "mobile/v1/catalog:list",
      "summary": "query mobile/v1/catalog:list",
      "description": "List courses, enroll a learner and open the outline for an enrollment.",
      "tags": [
        {
          "$ref": "#/components/tags/catalog"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "courses": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "courseId": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "categories": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "name"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "artwork": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "object",
                        "properties": {
                          "url": {
                            "type": "string"
                          },
                          "altText": {
                            "type": "string"
                          },
                          "width": {
                            "type": "number"
                          },
                          "height": {
                            "type": "number"
                          },
                          "focalPoint": {
                            "type": "object",
                            "properties": {
                              "x": {
                                "type": "number"
                              },
                              "y": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "x",
                              "y"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "url",
                          "altText",
                          "width",
                          "height",
                          "focalPoint"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  },
                  "offering": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "internal"
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "const": "commercial"
                          },
                          "priceCents": {
                            "type": "number"
                          },
                          "currency": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "priceCents",
                          "currency"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "continue",
                      "enroll",
                      "assigned_only",
                      "purchase",
                      "unavailable"
                    ]
                  },
                  "enrollment": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "object",
                        "properties": {
                          "enrollmentId": {
                            "type": "string"
                          },
                          "progress": {
                            "type": "object",
                            "properties": {
                              "status": {
                                "type": "string",
                                "enum": [
                                  "not_started",
                                  "in_progress",
                                  "completed"
                                ]
                              },
                              "progressPercent": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "startedAt": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "completedAt": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "updatedAt": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "status",
                              "progressPercent",
                              "startedAt",
                              "completedAt",
                              "updatedAt"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "enrollmentId",
                          "progress"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  },
                  "access": {
                    "type": "object",
                    "properties": {
                      "state": {
                        "type": "string",
                        "enum": [
                          "available",
                          "locked",
                          "not_enrolled",
                          "unavailable"
                        ]
                      },
                      "reason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "unlockRequirement": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "enum": [
                                  "activity_completion",
                                  "course_completion",
                                  "release",
                                  "previous_activity"
                                ]
                              },
                              "title": {
                                "type": "string"
                              },
                              "courseId": {
                                "type": "string"
                              },
                              "activityId": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "satisfied": {
                                "type": "boolean"
                              },
                              "opensAt": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "mode": {
                                "anyOf": [
                                  {
                                    "const": "all"
                                  },
                                  {
                                    "const": "any"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "requirements": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "courseId": {
                                      "type": "string"
                                    },
                                    "activityId": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "title": {
                                      "type": "string"
                                    },
                                    "satisfied": {
                                      "type": "boolean"
                                    }
                                  },
                                  "required": [
                                    "courseId",
                                    "activityId",
                                    "title",
                                    "satisfied"
                                  ],
                                  "additionalProperties": false
                                }
                              }
                            },
                            "required": [
                              "kind",
                              "title",
                              "courseId",
                              "activityId",
                              "satisfied",
                              "opensAt",
                              "mode",
                              "requirements"
                            ],
                            "additionalProperties": false
                          }
                        ]
                      }
                    },
                    "required": [
                      "state",
                      "reason",
                      "unlockRequirement"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "courseId",
                  "title",
                  "categories",
                  "artwork",
                  "offering",
                  "action",
                  "enrollment",
                  "access"
                ],
                "additionalProperties": false
              }
            },
            "truncated": {
              "type": "boolean"
            }
          },
          "required": [
            "courses",
            "truncated"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "query"
    },
    {
      "name": "mobile/v1/catalog:start",
      "summary": "mutation mobile/v1/catalog:start",
      "description": "List courses, enroll a learner and open the outline for an enrollment.",
      "tags": [
        {
          "$ref": "#/components/tags/catalog"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "courseId",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "enrollmentId",
          "required": false,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "courseId": {
              "type": "string"
            },
            "enrollmentId": {
              "type": "string"
            },
            "mode": {
              "type": "string",
              "enum": [
                "started",
                "resumed",
                "review"
              ]
            },
            "progress": {
              "type": "object",
              "properties": {
                "status": {
                  "type": "string",
                  "enum": [
                    "not_started",
                    "in_progress",
                    "completed"
                  ]
                },
                "progressPercent": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "startedAt": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "completedAt": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "updatedAt": {
                  "type": "string"
                }
              },
              "required": [
                "status",
                "progressPercent",
                "startedAt",
                "completedAt",
                "updatedAt"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "courseId",
            "enrollmentId",
            "mode",
            "progress"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "mutation"
    },
    {
      "name": "mobile/v1/community:activityFeed",
      "summary": "query mobile/v1/community:activityFeed",
      "description": "Browse groups and feeds, join discussions, react and report content.",
      "tags": [
        {
          "$ref": "#/components/tags/community"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "paginationOpts",
          "required": true,
          "schema": {
            "type": "object",
            "properties": {
              "numItems": {
                "type": "number"
              },
              "cursor": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "endCursor": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "id": {
                "type": "number"
              },
              "maximumRowsRead": {
                "type": "number"
              },
              "maximumBytesRead": {
                "type": "number"
              }
            },
            "required": [
              "numItems",
              "cursor"
            ],
            "additionalProperties": false
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "page": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "postId": {
                    "type": "string"
                  },
                  "groupId": {
                    "type": "string"
                  },
                  "groupName": {
                    "type": "string"
                  },
                  "authorId": {
                    "type": "string"
                  },
                  "authorName": {
                    "type": "string"
                  },
                  "isMine": {
                    "type": "boolean"
                  },
                  "body": {
                    "type": "string"
                  },
                  "createdAt": {
                    "type": "string"
                  },
                  "editedAt": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "reactionCount": {
                    "type": "number"
                  },
                  "reacted": {
                    "type": "boolean"
                  },
                  "commentCount": {
                    "type": "number"
                  }
                },
                "required": [
                  "postId",
                  "groupId",
                  "groupName",
                  "authorId",
                  "authorName",
                  "isMine",
                  "body",
                  "createdAt",
                  "editedAt",
                  "reactionCount",
                  "reacted",
                  "commentCount"
                ],
                "additionalProperties": false
              }
            },
            "isDone": {
              "type": "boolean"
            },
            "continueCursor": {
              "type": "string"
            }
          },
          "required": [
            "page",
            "isDone",
            "continueCursor"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "query"
    },
    {
      "name": "mobile/v1/community:comments",
      "summary": "query mobile/v1/community:comments",
      "description": "Browse groups and feeds, join discussions, react and report content.",
      "tags": [
        {
          "$ref": "#/components/tags/community"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "postId",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "paginationOpts",
          "required": true,
          "schema": {
            "type": "object",
            "properties": {
              "numItems": {
                "type": "number"
              },
              "cursor": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "endCursor": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "id": {
                "type": "number"
              },
              "maximumRowsRead": {
                "type": "number"
              },
              "maximumBytesRead": {
                "type": "number"
              }
            },
            "required": [
              "numItems",
              "cursor"
            ],
            "additionalProperties": false
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "page": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "commentId": {
                    "type": "string"
                  },
                  "authorName": {
                    "type": "string"
                  },
                  "isMine": {
                    "type": "boolean"
                  },
                  "body": {
                    "type": "string"
                  },
                  "removed": {
                    "type": "boolean"
                  },
                  "createdAt": {
                    "type": "string"
                  }
                },
                "required": [
                  "commentId",
                  "authorName",
                  "isMine",
                  "body",
                  "removed",
                  "createdAt"
                ],
                "additionalProperties": false
              }
            },
            "isDone": {
              "type": "boolean"
            },
            "continueCursor": {
              "type": "string"
            }
          },
          "required": [
            "page",
            "isDone",
            "continueCursor"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "query"
    },
    {
      "name": "mobile/v1/community:createComment",
      "summary": "mutation mobile/v1/community:createComment",
      "description": "Browse groups and feeds, join discussions, react and report content.",
      "tags": [
        {
          "$ref": "#/components/tags/community"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "clientOpId",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "postId",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "body",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "clientOpId": {
              "type": "string"
            },
            "replayed": {
              "type": "boolean"
            },
            "postId": {
              "type": "string"
            }
          },
          "required": [
            "clientOpId",
            "replayed",
            "postId"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "mutation"
    },
    {
      "name": "mobile/v1/community:createPost",
      "summary": "mutation mobile/v1/community:createPost",
      "description": "Browse groups and feeds, join discussions, react and report content.",
      "tags": [
        {
          "$ref": "#/components/tags/community"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "clientOpId",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "groupId",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "body",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "clientOpId": {
              "type": "string"
            },
            "replayed": {
              "type": "boolean"
            },
            "postId": {
              "type": "string"
            },
            "groupId": {
              "type": "string"
            },
            "body": {
              "type": "string"
            },
            "createdAt": {
              "type": "string"
            }
          },
          "required": [
            "clientOpId",
            "replayed",
            "postId",
            "groupId",
            "body",
            "createdAt"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "mutation"
    },
    {
      "name": "mobile/v1/community:deletePost",
      "summary": "mutation mobile/v1/community:deletePost",
      "description": "Browse groups and feeds, join discussions, react and report content.",
      "tags": [
        {
          "$ref": "#/components/tags/community"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "clientOpId",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "postId",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "clientOpId": {
              "type": "string"
            },
            "replayed": {
              "type": "boolean"
            },
            "postId": {
              "type": "string"
            }
          },
          "required": [
            "clientOpId",
            "replayed",
            "postId"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "mutation"
    },
    {
      "name": "mobile/v1/community:editPost",
      "summary": "mutation mobile/v1/community:editPost",
      "description": "Browse groups and feeds, join discussions, react and report content.",
      "tags": [
        {
          "$ref": "#/components/tags/community"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "clientOpId",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "postId",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "body",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "clientOpId": {
              "type": "string"
            },
            "replayed": {
              "type": "boolean"
            },
            "postId": {
              "type": "string"
            },
            "body": {
              "type": "string"
            },
            "editedAt": {
              "type": "string"
            }
          },
          "required": [
            "clientOpId",
            "replayed",
            "postId",
            "body",
            "editedAt"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "mutation"
    },
    {
      "name": "mobile/v1/community:group",
      "summary": "query mobile/v1/community:group",
      "description": "Browse groups and feeds, join discussions, react and report content.",
      "tags": [
        {
          "$ref": "#/components/tags/community"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "groupId",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "groupId": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "description": {
              "type": "string"
            },
            "memberCount": {
              "type": "number"
            },
            "postCount": {
              "type": "number"
            },
            "visibility": {
              "type": "string",
              "enum": [
                "organization",
                "members"
              ]
            },
            "kind": {
              "type": "string",
              "enum": [
                "group",
                "forum"
              ]
            },
            "isMember": {
              "type": "boolean"
            },
            "role": {
              "anyOf": [
                {
                  "const": "owner"
                },
                {
                  "const": "member"
                },
                {
                  "type": "null"
                }
              ]
            },
            "canJoin": {
              "type": "boolean"
            },
            "canLeave": {
              "type": "boolean"
            },
            "updatedAt": {
              "type": "string"
            }
          },
          "required": [
            "groupId",
            "name",
            "description",
            "memberCount",
            "postCount",
            "visibility",
            "kind",
            "isMember",
            "role",
            "canJoin",
            "canLeave",
            "updatedAt"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "query"
    },
    {
      "name": "mobile/v1/community:groupFeed",
      "summary": "query mobile/v1/community:groupFeed",
      "description": "Browse groups and feeds, join discussions, react and report content.",
      "tags": [
        {
          "$ref": "#/components/tags/community"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "groupId",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "paginationOpts",
          "required": true,
          "schema": {
            "type": "object",
            "properties": {
              "numItems": {
                "type": "number"
              },
              "cursor": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "endCursor": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "id": {
                "type": "number"
              },
              "maximumRowsRead": {
                "type": "number"
              },
              "maximumBytesRead": {
                "type": "number"
              }
            },
            "required": [
              "numItems",
              "cursor"
            ],
            "additionalProperties": false
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "page": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "postId": {
                    "type": "string"
                  },
                  "groupId": {
                    "type": "string"
                  },
                  "authorName": {
                    "type": "string"
                  },
                  "isMine": {
                    "type": "boolean"
                  },
                  "body": {
                    "type": "string"
                  },
                  "createdAt": {
                    "type": "string"
                  },
                  "reactionCount": {
                    "type": "number"
                  },
                  "reacted": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "postId",
                  "groupId",
                  "authorName",
                  "isMine",
                  "body",
                  "createdAt",
                  "reactionCount",
                  "reacted"
                ],
                "additionalProperties": false
              }
            },
            "isDone": {
              "type": "boolean"
            },
            "continueCursor": {
              "type": "string"
            }
          },
          "required": [
            "page",
            "isDone",
            "continueCursor"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "query"
    },
    {
      "name": "mobile/v1/community:groups",
      "summary": "query mobile/v1/community:groups",
      "description": "Browse groups and feeds, join discussions, react and report content.",
      "tags": [
        {
          "$ref": "#/components/tags/community"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "paginationOpts",
          "required": true,
          "schema": {
            "type": "object",
            "properties": {
              "numItems": {
                "type": "number"
              },
              "cursor": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "endCursor": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "id": {
                "type": "number"
              },
              "maximumRowsRead": {
                "type": "number"
              },
              "maximumBytesRead": {
                "type": "number"
              }
            },
            "required": [
              "numItems",
              "cursor"
            ],
            "additionalProperties": false
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "page": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "groupId": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  },
                  "memberCount": {
                    "type": "number"
                  },
                  "postCount": {
                    "type": "number"
                  },
                  "visibility": {
                    "type": "string",
                    "enum": [
                      "organization",
                      "members"
                    ]
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "group",
                      "forum"
                    ]
                  },
                  "isMember": {
                    "type": "boolean"
                  },
                  "role": {
                    "anyOf": [
                      {
                        "const": "owner"
                      },
                      {
                        "const": "member"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "canJoin": {
                    "type": "boolean"
                  },
                  "canLeave": {
                    "type": "boolean"
                  },
                  "updatedAt": {
                    "type": "string"
                  }
                },
                "required": [
                  "groupId",
                  "name",
                  "description",
                  "memberCount",
                  "postCount",
                  "visibility",
                  "kind",
                  "isMember",
                  "role",
                  "canJoin",
                  "canLeave",
                  "updatedAt"
                ],
                "additionalProperties": false
              }
            },
            "isDone": {
              "type": "boolean"
            },
            "continueCursor": {
              "type": "string"
            }
          },
          "required": [
            "page",
            "isDone",
            "continueCursor"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "query"
    },
    {
      "name": "mobile/v1/community:joinGroup",
      "summary": "mutation mobile/v1/community:joinGroup",
      "description": "Browse groups and feeds, join discussions, react and report content.",
      "tags": [
        {
          "$ref": "#/components/tags/community"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "clientOpId",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "groupId",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "clientOpId": {
              "type": "string"
            },
            "replayed": {
              "type": "boolean"
            },
            "groupId": {
              "type": "string"
            }
          },
          "required": [
            "clientOpId",
            "replayed",
            "groupId"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "mutation"
    },
    {
      "name": "mobile/v1/community:leaveGroup",
      "summary": "mutation mobile/v1/community:leaveGroup",
      "description": "Browse groups and feeds, join discussions, react and report content.",
      "tags": [
        {
          "$ref": "#/components/tags/community"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "clientOpId",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "groupId",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "clientOpId": {
              "type": "string"
            },
            "replayed": {
              "type": "boolean"
            },
            "groupId": {
              "type": "string"
            }
          },
          "required": [
            "clientOpId",
            "replayed",
            "groupId"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "mutation"
    },
    {
      "name": "mobile/v1/community:react",
      "summary": "mutation mobile/v1/community:react",
      "description": "Browse groups and feeds, join discussions, react and report content.",
      "tags": [
        {
          "$ref": "#/components/tags/community"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "postId",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "active",
          "required": true,
          "schema": {
            "type": "boolean"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "postId": {
              "type": "string"
            },
            "reacted": {
              "type": "boolean"
            }
          },
          "required": [
            "postId",
            "reacted"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "mutation"
    },
    {
      "name": "mobile/v1/community:reportContent",
      "summary": "mutation mobile/v1/community:reportContent",
      "description": "Browse groups and feeds, join discussions, react and report content.",
      "tags": [
        {
          "$ref": "#/components/tags/community"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "clientOpId",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "targetType",
          "required": true,
          "schema": {
            "type": "string",
            "enum": [
              "post",
              "comment"
            ]
          }
        },
        {
          "name": "targetId",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "reason",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "clientOpId": {
              "type": "string"
            },
            "replayed": {
              "type": "boolean"
            }
          },
          "required": [
            "clientOpId",
            "replayed"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "mutation"
    },
    {
      "name": "mobile/v1/content:activity",
      "summary": "query mobile/v1/content:activity",
      "description": "Read activity blocks, prerequisites, completion state and authenticated form placements.",
      "tags": [
        {
          "$ref": "#/components/tags/content"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "courseId",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "activityId",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "enrollmentId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "includeVideoAccessibility",
          "required": false,
          "schema": {
            "type": "boolean"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "courseId": {
              "type": "string"
            },
            "enrollmentId": {
              "type": "string"
            },
            "contentVersion": {
              "type": "string"
            },
            "activity": {
              "type": "object",
              "properties": {
                "reusableScenario": {
                  "const": true
                },
                "activityId": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "text",
                    "video",
                    "document",
                    "link",
                    "embed",
                    "quiz",
                    "scorm",
                    "assignment",
                    "learning_check",
                    "form",
                    "unsupported"
                  ]
                },
                "position": {
                  "type": "number"
                },
                "moduleId": {
                  "type": "string"
                },
                "moduleTitle": {
                  "type": "string"
                },
                "lesson": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "title": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "title"
                      ],
                      "additionalProperties": false
                    }
                  ]
                },
                "completionMode": {
                  "type": "string",
                  "enum": [
                    "mark",
                    "quiz",
                    "scorm",
                    "form_submit",
                    "web_only",
                    "none"
                  ]
                }
              },
              "required": [
                "activityId",
                "title",
                "type",
                "position",
                "moduleId",
                "moduleTitle",
                "lesson",
                "completionMode"
              ],
              "additionalProperties": false
            },
            "access": {
              "type": "object",
              "properties": {
                "state": {
                  "type": "string",
                  "enum": [
                    "available",
                    "locked",
                    "not_enrolled",
                    "unavailable"
                  ]
                },
                "reason": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "unlockRequirement": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "enum": [
                            "activity_completion",
                            "course_completion",
                            "release",
                            "previous_activity"
                          ]
                        },
                        "title": {
                          "type": "string"
                        },
                        "courseId": {
                          "type": "string"
                        },
                        "activityId": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "satisfied": {
                          "type": "boolean"
                        },
                        "opensAt": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "mode": {
                          "anyOf": [
                            {
                              "const": "all"
                            },
                            {
                              "const": "any"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "requirements": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "courseId": {
                                "type": "string"
                              },
                              "activityId": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "title": {
                                "type": "string"
                              },
                              "satisfied": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "courseId",
                              "activityId",
                              "title",
                              "satisfied"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "kind",
                        "title",
                        "courseId",
                        "activityId",
                        "satisfied",
                        "opensAt",
                        "mode",
                        "requirements"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "required": [
                "state",
                "reason",
                "unlockRequirement"
              ],
              "additionalProperties": false
            },
            "completed": {
              "type": "boolean"
            },
            "completedAt": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "blocks": {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "type": {
                        "const": "form"
                      },
                      "placement": {
                        "type": "string"
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "pending",
                          "confirmed",
                          "historical_credit"
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "placement",
                      "status"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "type": {
                        "const": "heading"
                      },
                      "text": {
                        "type": "string"
                      },
                      "level": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "text",
                      "level"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "type": {
                        "const": "paragraph"
                      },
                      "text": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "text"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "type": {
                        "const": "list"
                      },
                      "ordered": {
                        "type": "boolean"
                      },
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "ordered",
                      "items"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "type": {
                        "const": "callout"
                      },
                      "text": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "text"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "type": {
                        "const": "image"
                      },
                      "url": {
                        "type": "string"
                      },
                      "alt": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "url",
                      "alt"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "type": {
                        "const": "video"
                      },
                      "url": {
                        "type": "string"
                      },
                      "captions": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "url": {
                              "type": "string"
                            },
                            "webVtt": {
                              "type": "string"
                            },
                            "language": {
                              "type": "string"
                            },
                            "label": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "language",
                            "label"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "transcript": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "url"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "type": {
                        "const": "document"
                      },
                      "url": {
                        "type": "string"
                      },
                      "fileName": {
                        "type": "string"
                      },
                      "mimeType": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "url",
                      "fileName",
                      "mimeType"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "type": {
                        "const": "link"
                      },
                      "url": {
                        "type": "string"
                      },
                      "label": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "url",
                      "label"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "type": {
                        "const": "embed"
                      },
                      "url": {
                        "type": "string"
                      },
                      "title": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "url",
                      "title"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "type": {
                        "const": "scorm"
                      },
                      "courseId": {
                        "type": "string"
                      },
                      "activityId": {
                        "type": "string"
                      },
                      "title": {
                        "type": "string"
                      },
                      "launchState": {
                        "type": "string",
                        "enum": [
                          "launchable",
                          "in_progress",
                          "unavailable"
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "courseId",
                      "activityId",
                      "title",
                      "launchState"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "type": {
                        "const": "quiz"
                      },
                      "requiresAdmission": {
                        "const": true
                      },
                      "passPercent": {
                        "type": "number"
                      },
                      "questions": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "prompt": {
                              "type": "string"
                            },
                            "kind": {
                              "type": "string",
                              "enum": [
                                "multiple_choice",
                                "true_false"
                              ]
                            },
                            "options": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "label": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "label"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": [
                            "id",
                            "prompt",
                            "kind",
                            "options"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "latestAttempt": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "object",
                            "properties": {
                              "scorePercent": {
                                "type": "number"
                              },
                              "passed": {
                                "type": "boolean"
                              },
                              "recordedAt": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "scorePercent",
                              "passed",
                              "recordedAt"
                            ],
                            "additionalProperties": false
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "passPercent",
                      "questions",
                      "latestAttempt"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "type": {
                        "const": "unsupported"
                      },
                      "title": {
                        "type": "string"
                      },
                      "text": {
                        "type": "string"
                      },
                      "reason": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "title",
                      "text",
                      "reason"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            },
            "previousActivityId": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "nextActivityId": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "courseId",
            "enrollmentId",
            "contentVersion",
            "activity",
            "access",
            "completed",
            "completedAt",
            "blocks",
            "previousActivityId",
            "nextActivityId"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "query"
    },
    {
      "name": "mobile/v1/documents:beginUpload",
      "summary": "mutation mobile/v1/documents:beginUpload",
      "description": "Upload and open learner documents, submit feedback and read coaching notes.",
      "tags": [
        {
          "$ref": "#/components/tags/documents"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "uploadUrl": {
              "type": "string"
            }
          },
          "required": [
            "uploadUrl"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "mutation"
    },
    {
      "name": "mobile/v1/documents:coachFeedback",
      "summary": "mutation mobile/v1/documents:coachFeedback",
      "description": "Upload and open learner documents, submit feedback and read coaching notes.",
      "tags": [
        {
          "$ref": "#/components/tags/documents"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "clientOpId",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "messageId",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "message",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "rating",
          "required": true,
          "schema": {
            "type": "string",
            "enum": [
              "up",
              "down",
              "report"
            ]
          }
        },
        {
          "name": "note",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "source",
          "required": false,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "clientOpId": {
              "type": "string"
            },
            "ok": {
              "const": true
            },
            "feedbackId": {
              "type": "string"
            },
            "replayed": {
              "type": "boolean"
            }
          },
          "required": [
            "clientOpId",
            "ok",
            "feedbackId",
            "replayed"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "mutation"
    },
    {
      "name": "mobile/v1/documents:coachNotes",
      "summary": "query mobile/v1/documents:coachNotes",
      "description": "Upload and open learner documents, submit feedback and read coaching notes.",
      "tags": [
        {
          "$ref": "#/components/tags/documents"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "notes": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "noteId": {
                    "type": "string"
                  },
                  "authorName": {
                    "type": "string"
                  },
                  "body": {
                    "type": "string"
                  },
                  "courseId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "activityId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "documentId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "createdAt": {
                    "type": "string"
                  }
                },
                "required": [
                  "noteId",
                  "authorName",
                  "body",
                  "courseId",
                  "activityId",
                  "documentId",
                  "createdAt"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "notes"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "query"
    },
    {
      "name": "mobile/v1/documents:deleteDocument",
      "summary": "mutation mobile/v1/documents:deleteDocument",
      "description": "Upload and open learner documents, submit feedback and read coaching notes.",
      "tags": [
        {
          "$ref": "#/components/tags/documents"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "documentId",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "documentId": {
              "type": "string"
            },
            "deleted": {
              "const": true
            }
          },
          "required": [
            "documentId",
            "deleted"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "mutation"
    },
    {
      "name": "mobile/v1/documents:myDocuments",
      "summary": "query mobile/v1/documents:myDocuments",
      "description": "Upload and open learner documents, submit feedback and read coaching notes.",
      "tags": [
        {
          "$ref": "#/components/tags/documents"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "documents": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "documentId": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "fileName": {
                    "type": "string"
                  },
                  "mimeType": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "sizeBytes": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "createdAt": {
                    "type": "string"
                  }
                },
                "required": [
                  "documentId",
                  "title",
                  "fileName",
                  "mimeType",
                  "sizeBytes",
                  "createdAt"
                ],
                "additionalProperties": false
              }
            },
            "upload": {
              "type": "object",
              "properties": {
                "maxBytes": {
                  "type": "number"
                },
                "mimeTypes": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "maxBytes",
                "mimeTypes"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "documents",
            "upload"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "query"
    },
    {
      "name": "mobile/v1/documents:openDocument",
      "summary": "query mobile/v1/documents:openDocument",
      "description": "Upload and open learner documents, submit feedback and read coaching notes.",
      "tags": [
        {
          "$ref": "#/components/tags/documents"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "documentId",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "documentId": {
              "type": "string"
            },
            "url": {
              "type": "string"
            },
            "fileName": {
              "type": "string"
            },
            "mimeType": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "documentId",
            "url",
            "fileName",
            "mimeType"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "query"
    },
    {
      "name": "mobile/v1/documents:saveDocument",
      "summary": "mutation mobile/v1/documents:saveDocument",
      "description": "Upload and open learner documents, submit feedback and read coaching notes.",
      "tags": [
        {
          "$ref": "#/components/tags/documents"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "clientOpId",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "storageId",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "title",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "fileName",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "clientOpId": {
              "type": "string"
            },
            "document": {
              "type": "object",
              "properties": {
                "documentId": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "fileName": {
                  "type": "string"
                },
                "mimeType": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "sizeBytes": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "createdAt": {
                  "type": "string"
                }
              },
              "required": [
                "documentId",
                "title",
                "fileName",
                "mimeType",
                "sizeBytes",
                "createdAt"
              ],
              "additionalProperties": false
            },
            "replayed": {
              "type": "boolean"
            }
          },
          "required": [
            "clientOpId",
            "document",
            "replayed"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "mutation"
    },
    {
      "name": "mobile/v1/me:communityTerms",
      "summary": "query mobile/v1/me:communityTerms",
      "description": "Read the signed-in member, available workspaces, capabilities, terminology and theme.",
      "tags": [
        {
          "$ref": "#/components/tags/me"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "discussions": {
              "type": "string"
            }
          },
          "required": [
            "discussions"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "query"
    },
    {
      "name": "mobile/v1/me:get",
      "summary": "query mobile/v1/me:get",
      "description": "Read the signed-in member, available workspaces, capabilities, terminology and theme.",
      "tags": [
        {
          "$ref": "#/components/tags/me"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "mobileApiVersion": {
              "type": "string"
            },
            "user": {
              "type": "object",
              "properties": {
                "userId": {
                  "type": "string"
                },
                "displayName": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "email": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "imageUrl": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "userId",
                "displayName",
                "email",
                "imageUrl"
              ],
              "additionalProperties": false
            },
            "workspace": {
              "type": "object",
              "properties": {
                "tenantId": {
                  "type": "string"
                },
                "displayName": {
                  "type": "string"
                },
                "hostname": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "tenantId",
                "displayName",
                "hostname"
              ],
              "additionalProperties": false
            },
            "role": {
              "type": "string",
              "enum": [
                "learner",
                "teacher",
                "manager",
                "builder",
                "admin"
              ]
            },
            "capabilities": {
              "type": "object",
              "properties": {
                "learning": {
                  "type": "boolean"
                },
                "community": {
                  "type": "boolean"
                },
                "notifications": {
                  "type": "boolean"
                },
                "messages": {
                  "type": "boolean"
                },
                "push": {
                  "type": "boolean"
                },
                "documents": {
                  "type": "boolean"
                },
                "directory": {
                  "type": "boolean"
                },
                "coachFeedback": {
                  "type": "boolean"
                }
              },
              "required": [
                "learning",
                "community",
                "notifications",
                "messages",
                "push",
                "documents",
                "directory",
                "coachFeedback"
              ],
              "additionalProperties": false
            },
            "terminology": {
              "type": "object",
              "properties": {
                "profile": {
                  "type": "string"
                },
                "community": {
                  "type": "string"
                },
                "groups": {
                  "type": "string"
                },
                "messages": {
                  "type": "string"
                }
              },
              "required": [
                "profile",
                "community",
                "groups",
                "messages"
              ],
              "additionalProperties": false
            },
            "theme": {
              "type": "object",
              "properties": {
                "source": {
                  "type": "string",
                  "enum": [
                    "experience",
                    "theme",
                    "default"
                  ]
                },
                "preset": {
                  "type": "string",
                  "enum": [
                    "porcelain",
                    "4kira_preview",
                    "northstar"
                  ]
                },
                "applicationName": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "defaultMode": {
                  "type": "string",
                  "enum": [
                    "light",
                    "dark"
                  ]
                },
                "userMode": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "light",
                        "dark"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "colors": {
                  "type": "object",
                  "properties": {
                    "primary": {
                      "type": "string"
                    },
                    "onPrimary": {
                      "type": "string"
                    },
                    "surfaceTint": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "primary",
                    "onPrimary",
                    "surfaceTint"
                  ],
                  "additionalProperties": false
                },
                "light": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "canvas": {
                          "type": "string"
                        },
                        "surface": {
                          "type": "string"
                        },
                        "ink": {
                          "type": "string"
                        },
                        "mutedInk": {
                          "type": "string"
                        },
                        "action": {
                          "type": "string"
                        },
                        "actionInk": {
                          "type": "string"
                        },
                        "tint": {
                          "type": "string"
                        },
                        "accent": {
                          "type": "string"
                        },
                        "accentInk": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "canvas",
                        "surface",
                        "ink",
                        "mutedInk",
                        "action",
                        "actionInk",
                        "tint",
                        "accent",
                        "accentInk"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "dark": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "canvas": {
                          "type": "string"
                        },
                        "surface": {
                          "type": "string"
                        },
                        "ink": {
                          "type": "string"
                        },
                        "mutedInk": {
                          "type": "string"
                        },
                        "action": {
                          "type": "string"
                        },
                        "actionInk": {
                          "type": "string"
                        },
                        "tint": {
                          "type": "string"
                        },
                        "accent": {
                          "type": "string"
                        },
                        "accentInk": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "canvas",
                        "surface",
                        "ink",
                        "mutedInk",
                        "action",
                        "actionInk",
                        "tint",
                        "accent",
                        "accentInk"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "headingFont": {
                  "anyOf": [
                    {
                      "const": "system"
                    },
                    {
                      "const": "serif"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "source",
                "preset",
                "applicationName",
                "defaultMode",
                "userMode",
                "colors",
                "light",
                "dark",
                "headingFont"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "mobileApiVersion",
            "user",
            "workspace",
            "role",
            "capabilities",
            "terminology",
            "theme"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "query"
    },
    {
      "name": "mobile/v1/me:selectWorkspace",
      "summary": "mutation mobile/v1/me:selectWorkspace",
      "description": "Read the signed-in member, available workspaces, capabilities, terminology and theme.",
      "tags": [
        {
          "$ref": "#/components/tags/me"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "tenantId",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "tenantId": {
              "type": "string"
            }
          },
          "required": [
            "tenantId"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "mutation"
    },
    {
      "name": "mobile/v1/me:workspaces",
      "summary": "query mobile/v1/me:workspaces",
      "description": "Read the signed-in member, available workspaces, capabilities, terminology and theme.",
      "tags": [
        {
          "$ref": "#/components/tags/me"
        }
      ],
      "paramStructure": "by-name",
      "params": [],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "workspaces": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "tenantId": {
                    "type": "string"
                  },
                  "displayName": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "role": {
                    "type": "string",
                    "enum": [
                      "learner",
                      "teacher",
                      "manager",
                      "builder",
                      "admin"
                    ]
                  },
                  "hostname": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "tenantId",
                  "displayName",
                  "role",
                  "hostname"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "workspaces"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "query"
    },
    {
      "name": "mobile/v1/members:block",
      "summary": "mutation mobile/v1/members:block",
      "description": "Read visible profiles, manage connections and update directory visibility.",
      "tags": [
        {
          "$ref": "#/components/tags/members"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "actorId",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "status": {
              "const": "saved"
            }
          },
          "required": [
            "status"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "mutation"
    },
    {
      "name": "mobile/v1/members:directory",
      "summary": "query mobile/v1/members:directory",
      "description": "Read visible profiles, manage connections and update directory visibility.",
      "tags": [
        {
          "$ref": "#/components/tags/members"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "paginationOpts",
          "required": true,
          "schema": {
            "type": "object",
            "properties": {
              "numItems": {
                "type": "number"
              },
              "cursor": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "endCursor": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "id": {
                "type": "number"
              },
              "maximumRowsRead": {
                "type": "number"
              },
              "maximumBytesRead": {
                "type": "number"
              }
            },
            "required": [
              "numItems",
              "cursor"
            ],
            "additionalProperties": false
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "page": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "actorId": {
                    "type": "string"
                  },
                  "displayName": {
                    "type": "string"
                  },
                  "bio": {
                    "type": "string"
                  },
                  "avatarUrl": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "isSelf": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "actorId",
                  "displayName",
                  "bio",
                  "avatarUrl",
                  "isSelf"
                ],
                "additionalProperties": false
              }
            },
            "isDone": {
              "type": "boolean"
            },
            "continueCursor": {
              "type": "string"
            }
          },
          "required": [
            "page",
            "isDone",
            "continueCursor"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "query"
    },
    {
      "name": "mobile/v1/members:friends",
      "summary": "query mobile/v1/members:friends",
      "description": "Read visible profiles, manage connections and update directory visibility.",
      "tags": [
        {
          "$ref": "#/components/tags/members"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "friends": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "actorId": {
                    "type": "string"
                  },
                  "displayName": {
                    "type": "string"
                  },
                  "avatarUrl": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "pending_outgoing",
                      "pending_incoming",
                      "friends"
                    ]
                  },
                  "since": {
                    "type": "string"
                  }
                },
                "required": [
                  "actorId",
                  "displayName",
                  "avatarUrl",
                  "status",
                  "since"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "friends"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "query"
    },
    {
      "name": "mobile/v1/members:profile",
      "summary": "query mobile/v1/members:profile",
      "description": "Read visible profiles, manage connections and update directory visibility.",
      "tags": [
        {
          "$ref": "#/components/tags/members"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "actorId",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "actorId": {
              "type": "string"
            },
            "displayName": {
              "type": "string"
            },
            "bio": {
              "type": "string"
            },
            "avatarUrl": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "isSelf": {
              "type": "boolean"
            },
            "visibility": {
              "type": "string",
              "enum": [
                "public",
                "members",
                "private"
              ]
            },
            "directoryVisible": {
              "type": "boolean"
            },
            "friendStatus": {
              "type": "string",
              "enum": [
                "none",
                "pending_outgoing",
                "pending_incoming",
                "friends"
              ]
            },
            "limited": {
              "type": "boolean"
            }
          },
          "required": [
            "actorId",
            "displayName",
            "bio",
            "avatarUrl",
            "isSelf",
            "visibility",
            "directoryVisible",
            "friendStatus",
            "limited"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "query"
    },
    {
      "name": "mobile/v1/members:removeFriend",
      "summary": "mutation mobile/v1/members:removeFriend",
      "description": "Read visible profiles, manage connections and update directory visibility.",
      "tags": [
        {
          "$ref": "#/components/tags/members"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "actorId",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "status": {
              "const": "saved"
            }
          },
          "required": [
            "status"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "mutation"
    },
    {
      "name": "mobile/v1/members:report",
      "summary": "mutation mobile/v1/members:report",
      "description": "Read visible profiles, manage connections and update directory visibility.",
      "tags": [
        {
          "$ref": "#/components/tags/members"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "actorId",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "reason",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "status": {
              "const": "saved"
            }
          },
          "required": [
            "status"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "mutation"
    },
    {
      "name": "mobile/v1/members:requestFriend",
      "summary": "mutation mobile/v1/members:requestFriend",
      "description": "Read visible profiles, manage connections and update directory visibility.",
      "tags": [
        {
          "$ref": "#/components/tags/members"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "actorId",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "status": {
              "const": "saved"
            }
          },
          "required": [
            "status"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "mutation"
    },
    {
      "name": "mobile/v1/members:respondFriend",
      "summary": "mutation mobile/v1/members:respondFriend",
      "description": "Read visible profiles, manage connections and update directory visibility.",
      "tags": [
        {
          "$ref": "#/components/tags/members"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "requesterId",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "accept",
          "required": true,
          "schema": {
            "type": "boolean"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "status": {
              "const": "saved"
            }
          },
          "required": [
            "status"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "mutation"
    },
    {
      "name": "mobile/v1/members:unblock",
      "summary": "mutation mobile/v1/members:unblock",
      "description": "Read visible profiles, manage connections and update directory visibility.",
      "tags": [
        {
          "$ref": "#/components/tags/members"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "actorId",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "status": {
              "const": "saved"
            }
          },
          "required": [
            "status"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "mutation"
    },
    {
      "name": "mobile/v1/members:updateProfile",
      "summary": "mutation mobile/v1/members:updateProfile",
      "description": "Read visible profiles, manage connections and update directory visibility.",
      "tags": [
        {
          "$ref": "#/components/tags/members"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "displayName",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "bio",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "profileVisibility",
          "required": false,
          "schema": {
            "type": "string",
            "enum": [
              "public",
              "members",
              "private"
            ]
          }
        },
        {
          "name": "directoryVisible",
          "required": false,
          "schema": {
            "type": "boolean"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "status": {
              "const": "saved"
            }
          },
          "required": [
            "status"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "mutation"
    },
    {
      "name": "mobile/v1/messages:block",
      "summary": "mutation mobile/v1/messages:block",
      "description": "Open conversations, send messages and manage unread or blocked threads.",
      "tags": [
        {
          "$ref": "#/components/tags/messages"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "actorId",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "blocked": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "actorId": {
                    "type": "string"
                  },
                  "displayName": {
                    "type": "string"
                  }
                },
                "required": [
                  "actorId",
                  "displayName"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "blocked"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "mutation"
    },
    {
      "name": "mobile/v1/messages:blocked",
      "summary": "query mobile/v1/messages:blocked",
      "description": "Open conversations, send messages and manage unread or blocked threads.",
      "tags": [
        {
          "$ref": "#/components/tags/messages"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "blocked": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "actorId": {
                    "type": "string"
                  },
                  "displayName": {
                    "type": "string"
                  }
                },
                "required": [
                  "actorId",
                  "displayName"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "blocked"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "query"
    },
    {
      "name": "mobile/v1/messages:deleteThread",
      "summary": "mutation mobile/v1/messages:deleteThread",
      "description": "Open conversations, send messages and manage unread or blocked threads.",
      "tags": [
        {
          "$ref": "#/components/tags/messages"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "threadId",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "threadId": {
              "type": "string"
            },
            "status": {
              "const": "saved"
            }
          },
          "required": [
            "threadId",
            "status"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "mutation"
    },
    {
      "name": "mobile/v1/messages:markRead",
      "summary": "mutation mobile/v1/messages:markRead",
      "description": "Open conversations, send messages and manage unread or blocked threads.",
      "tags": [
        {
          "$ref": "#/components/tags/messages"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "threadId",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "threadId": {
              "type": "string"
            },
            "status": {
              "const": "saved"
            }
          },
          "required": [
            "threadId",
            "status"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "mutation"
    },
    {
      "name": "mobile/v1/messages:report",
      "summary": "mutation mobile/v1/messages:report",
      "description": "Open conversations, send messages and manage unread or blocked threads.",
      "tags": [
        {
          "$ref": "#/components/tags/messages"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "threadId",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "messageId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "reason",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "status": {
              "const": "reported"
            }
          },
          "required": [
            "status"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "mutation"
    },
    {
      "name": "mobile/v1/messages:send",
      "summary": "mutation mobile/v1/messages:send",
      "description": "Open conversations, send messages and manage unread or blocked threads.",
      "tags": [
        {
          "$ref": "#/components/tags/messages"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "clientOpId",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "body",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "threadId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "recipientIds",
          "required": false,
          "schema": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "clientOpId": {
              "type": "string"
            },
            "threadId": {
              "type": "string"
            },
            "messageId": {
              "type": "string"
            },
            "createdAt": {
              "type": "string"
            },
            "replayed": {
              "type": "boolean"
            }
          },
          "required": [
            "clientOpId",
            "threadId",
            "messageId",
            "createdAt",
            "replayed"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "mutation"
    },
    {
      "name": "mobile/v1/messages:star",
      "summary": "mutation mobile/v1/messages:star",
      "description": "Open conversations, send messages and manage unread or blocked threads.",
      "tags": [
        {
          "$ref": "#/components/tags/messages"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "threadId",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "starred",
          "required": true,
          "schema": {
            "type": "boolean"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "threadId": {
              "type": "string"
            },
            "status": {
              "const": "saved"
            }
          },
          "required": [
            "threadId",
            "status"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "mutation"
    },
    {
      "name": "mobile/v1/messages:thread",
      "summary": "query mobile/v1/messages:thread",
      "description": "Open conversations, send messages and manage unread or blocked threads.",
      "tags": [
        {
          "$ref": "#/components/tags/messages"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "threadId",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "paginationOpts",
          "required": true,
          "schema": {
            "type": "object",
            "properties": {
              "numItems": {
                "type": "number"
              },
              "cursor": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "endCursor": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "id": {
                "type": "number"
              },
              "maximumRowsRead": {
                "type": "number"
              },
              "maximumBytesRead": {
                "type": "number"
              }
            },
            "required": [
              "numItems",
              "cursor"
            ],
            "additionalProperties": false
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "thread": {
              "type": "object",
              "properties": {
                "threadId": {
                  "type": "string"
                },
                "participants": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "actorId": {
                        "type": "string"
                      },
                      "displayName": {
                        "type": "string"
                      },
                      "isMe": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "actorId",
                      "displayName",
                      "isMe"
                    ],
                    "additionalProperties": false
                  }
                },
                "starred": {
                  "type": "boolean"
                },
                "blockedByMe": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "canSend": {
                  "type": "boolean"
                }
              },
              "required": [
                "threadId",
                "participants",
                "starred",
                "blockedByMe",
                "canSend"
              ],
              "additionalProperties": false
            },
            "page": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "messageId": {
                    "type": "string"
                  },
                  "authorId": {
                    "type": "string"
                  },
                  "isMine": {
                    "type": "boolean"
                  },
                  "body": {
                    "type": "string"
                  },
                  "createdAt": {
                    "type": "string"
                  }
                },
                "required": [
                  "messageId",
                  "authorId",
                  "isMine",
                  "body",
                  "createdAt"
                ],
                "additionalProperties": false
              }
            },
            "isDone": {
              "type": "boolean"
            },
            "continueCursor": {
              "type": "string"
            }
          },
          "required": [
            "thread",
            "page",
            "isDone",
            "continueCursor"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "query"
    },
    {
      "name": "mobile/v1/messages:threads",
      "summary": "query mobile/v1/messages:threads",
      "description": "Open conversations, send messages and manage unread or blocked threads.",
      "tags": [
        {
          "$ref": "#/components/tags/messages"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "paginationOpts",
          "required": true,
          "schema": {
            "type": "object",
            "properties": {
              "numItems": {
                "type": "number"
              },
              "cursor": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "endCursor": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "id": {
                "type": "number"
              },
              "maximumRowsRead": {
                "type": "number"
              },
              "maximumBytesRead": {
                "type": "number"
              }
            },
            "required": [
              "numItems",
              "cursor"
            ],
            "additionalProperties": false
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "page": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "threadId": {
                    "type": "string"
                  },
                  "participants": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "actorId": {
                          "type": "string"
                        },
                        "displayName": {
                          "type": "string"
                        },
                        "isMe": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "actorId",
                        "displayName",
                        "isMe"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "lastMessage": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "object",
                        "properties": {
                          "body": {
                            "type": "string"
                          },
                          "isMine": {
                            "type": "boolean"
                          },
                          "createdAt": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "body",
                          "isMine",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  },
                  "unreadCount": {
                    "type": "number"
                  },
                  "starred": {
                    "type": "boolean"
                  },
                  "updatedAt": {
                    "type": "string"
                  }
                },
                "required": [
                  "threadId",
                  "participants",
                  "lastMessage",
                  "unreadCount",
                  "starred",
                  "updatedAt"
                ],
                "additionalProperties": false
              }
            },
            "isDone": {
              "type": "boolean"
            },
            "continueCursor": {
              "type": "string"
            },
            "unreadTotal": {
              "type": "number"
            }
          },
          "required": [
            "page",
            "isDone",
            "continueCursor",
            "unreadTotal"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "query"
    },
    {
      "name": "mobile/v1/messages:unblock",
      "summary": "mutation mobile/v1/messages:unblock",
      "description": "Open conversations, send messages and manage unread or blocked threads.",
      "tags": [
        {
          "$ref": "#/components/tags/messages"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "actorId",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "blocked": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "actorId": {
                    "type": "string"
                  },
                  "displayName": {
                    "type": "string"
                  }
                },
                "required": [
                  "actorId",
                  "displayName"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "blocked"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "mutation"
    },
    {
      "name": "mobile/v1/messages:unreadCount",
      "summary": "query mobile/v1/messages:unreadCount",
      "description": "Open conversations, send messages and manage unread or blocked threads.",
      "tags": [
        {
          "$ref": "#/components/tags/messages"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "count": {
              "type": "number"
            }
          },
          "required": [
            "count"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "query"
    },
    {
      "name": "mobile/v1/meta:version",
      "summary": "query mobile/v1/meta:version",
      "description": "Check deployment compatibility and upcoming deprecations before making workspace calls.",
      "tags": [
        {
          "$ref": "#/components/tags/meta"
        }
      ],
      "paramStructure": "by-name",
      "params": [],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "mobileApiVersion": {
              "type": "string"
            },
            "minimumClientVersion": {
              "type": "string"
            },
            "deprecations": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "function": {
                    "type": "string"
                  },
                  "replacement": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "sunsetAfter": {
                    "type": "string"
                  }
                },
                "required": [
                  "function",
                  "replacement",
                  "sunsetAfter"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "mobileApiVersion",
            "minimumClientVersion",
            "deprecations"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "query"
    },
    {
      "name": "mobile/v1/notifications:destination",
      "summary": "query mobile/v1/notifications:destination",
      "description": "Read the inbox, mark notifications as read and resolve their destinations.",
      "tags": [
        {
          "$ref": "#/components/tags/notifications"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "notificationId",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "enum": [
                    "grade",
                    "lesson"
                  ]
                },
                "courseId": {
                  "type": "string"
                },
                "enrollmentId": {
                  "type": "string"
                },
                "activityId": {
                  "type": "string"
                }
              },
              "required": [
                "kind",
                "courseId",
                "enrollmentId"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "const": "conversation"
                },
                "threadId": {
                  "type": "string"
                }
              },
              "required": [
                "kind",
                "threadId"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "const": "practice"
                },
                "occurrenceId": {
                  "type": "string"
                }
              },
              "required": [
                "kind",
                "occurrenceId"
              ],
              "additionalProperties": false
            }
          ]
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "query"
    },
    {
      "name": "mobile/v1/notifications:list",
      "summary": "query mobile/v1/notifications:list",
      "description": "Read the inbox, mark notifications as read and resolve their destinations.",
      "tags": [
        {
          "$ref": "#/components/tags/notifications"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "notifications": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "notificationId": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "body": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "unread",
                      "read"
                    ]
                  },
                  "deliveredAt": {
                    "type": "string"
                  }
                },
                "required": [
                  "notificationId",
                  "title",
                  "body",
                  "status",
                  "deliveredAt"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "notifications"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "query"
    },
    {
      "name": "mobile/v1/notifications:markRead",
      "summary": "mutation mobile/v1/notifications:markRead",
      "description": "Read the inbox, mark notifications as read and resolve their destinations.",
      "tags": [
        {
          "$ref": "#/components/tags/notifications"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "notificationId",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "status": {
              "const": "read"
            }
          },
          "required": [
            "status"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "mutation"
    },
    {
      "name": "mobile/v1/preferences:get",
      "summary": "query mobile/v1/preferences:get",
      "description": "Read and update notification, playback, caption and time zone preferences. On v1.5 and later, pass includeShowCaptions: true to receive the optional caption preference.",
      "tags": [
        {
          "$ref": "#/components/tags/preferences"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "includeShowCaptions",
          "required": false,
          "schema": {
            "type": "boolean"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "digestFrequency": {
              "type": "string",
              "enum": [
                "off",
                "daily",
                "weekly"
              ]
            },
            "videoAutoplay": {
              "type": "boolean"
            },
            "showCaptions": {
              "type": "boolean"
            },
            "instantFeedback": {
              "type": "boolean"
            },
            "instantMessages": {
              "type": "boolean"
            },
            "timezone": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "digestFrequency",
            "videoAutoplay",
            "instantFeedback",
            "instantMessages",
            "timezone"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "query"
    },
    {
      "name": "mobile/v1/preferences:set",
      "summary": "mutation mobile/v1/preferences:set",
      "description": "Read and update notification, playback, caption and time zone preferences. On v1.5 and later, pass includeShowCaptions: true to receive the optional caption preference.",
      "tags": [
        {
          "$ref": "#/components/tags/preferences"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "includeShowCaptions",
          "required": false,
          "schema": {
            "type": "boolean"
          }
        },
        {
          "name": "digestFrequency",
          "required": false,
          "schema": {
            "type": "string",
            "enum": [
              "off",
              "daily",
              "weekly"
            ]
          }
        },
        {
          "name": "videoAutoplay",
          "required": false,
          "schema": {
            "type": "boolean"
          }
        },
        {
          "name": "showCaptions",
          "required": false,
          "schema": {
            "type": "boolean"
          }
        },
        {
          "name": "instantFeedback",
          "required": false,
          "schema": {
            "type": "boolean"
          }
        },
        {
          "name": "instantMessages",
          "required": false,
          "schema": {
            "type": "boolean"
          }
        },
        {
          "name": "timezone",
          "required": false,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "digestFrequency": {
              "type": "string",
              "enum": [
                "off",
                "daily",
                "weekly"
              ]
            },
            "videoAutoplay": {
              "type": "boolean"
            },
            "showCaptions": {
              "type": "boolean"
            },
            "instantFeedback": {
              "type": "boolean"
            },
            "instantMessages": {
              "type": "boolean"
            },
            "timezone": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "digestFrequency",
            "videoAutoplay",
            "instantFeedback",
            "instantMessages",
            "timezone"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "mutation"
    },
    {
      "name": "mobile/v1/programs:act",
      "summary": "mutation mobile/v1/programs:act",
      "description": "Read assigned practice, goals, standings and rewards, and record learner actions. Pass command as a JSON-encoded learner command (remind, submit_practice, complete, team, helpful, pause, pin, or redeem).",
      "tags": [
        {
          "$ref": "#/components/tags/programs"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "command",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "saved": {
              "const": true
            }
          },
          "required": [
            "saved"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "mutation"
    },
    {
      "name": "mobile/v1/programs:mine",
      "summary": "query mobile/v1/programs:mine",
      "description": "Read assigned practice, goals, standings and rewards, and record learner actions. Pass includeWebPlacement: true or includePracticeSchedule: true to request eligible opaque web placements.",
      "tags": [
        {
          "$ref": "#/components/tags/programs"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "includeWebPlacement",
          "required": false,
          "schema": {
            "const": true
          }
        },
        {
          "name": "includePracticeSchedule",
          "required": false,
          "schema": {
            "const": true
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "programs": {
              "type": "object",
              "properties": {
                "standings": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "seasonId": {
                        "type": "string"
                      },
                      "title": {
                        "type": "string"
                      },
                      "timeZone": {
                        "type": "string"
                      },
                      "choices": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "title": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "title"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "groupId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "weekly": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "title": {
                              "type": "string"
                            },
                            "members": {
                              "type": "number"
                            },
                            "score": {
                              "type": "number"
                            },
                            "rank": {
                              "type": "number"
                            },
                            "own": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "title",
                            "members",
                            "score",
                            "rank",
                            "own"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "season": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "title": {
                              "type": "string"
                            },
                            "members": {
                              "type": "number"
                            },
                            "score": {
                              "type": "number"
                            },
                            "rank": {
                              "type": "number"
                            },
                            "own": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "title",
                            "members",
                            "score",
                            "rank",
                            "own"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "weeklyLeaders": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "closed": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "seasonId",
                      "title",
                      "timeZone",
                      "choices",
                      "groupId",
                      "weekly",
                      "season",
                      "weeklyLeaders",
                      "closed"
                    ],
                    "additionalProperties": false
                  }
                },
                "tenantId": {
                  "type": "string"
                },
                "ratings": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "skillId": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "skillId",
                      "name"
                    ],
                    "additionalProperties": false
                  }
                },
                "streak": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "count": {
                          "type": "number"
                        },
                        "period": {
                          "type": "string",
                          "enum": [
                            "day",
                            "week"
                          ]
                        },
                        "timeZone": {
                          "type": "string"
                        },
                        "remaining": {
                          "type": "number"
                        },
                        "canPause": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "count",
                        "period",
                        "timeZone",
                        "remaining",
                        "canPause"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "goals": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "title": {
                        "type": "string"
                      },
                      "kind": {
                        "type": "string",
                        "enum": [
                          "achievement",
                          "challenge"
                        ]
                      },
                      "event": {
                        "type": "string",
                        "enum": [
                          "activity",
                          "firstAnswer",
                          "practice"
                        ]
                      },
                      "target": {
                        "type": "number"
                      },
                      "count": {
                        "type": "number"
                      },
                      "rarity": {
                        "type": "string"
                      },
                      "points": {
                        "type": "number"
                      },
                      "credits": {
                        "type": "number"
                      },
                      "earnedAt": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "pinned": {
                        "type": "boolean"
                      },
                      "endsAt": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "season": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "title",
                      "kind",
                      "event",
                      "target",
                      "count",
                      "rarity",
                      "points",
                      "credits",
                      "earnedAt",
                      "pinned",
                      "endsAt",
                      "season"
                    ],
                    "additionalProperties": false
                  }
                },
                "seasons": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "title": {
                        "type": "string"
                      },
                      "startsAt": {
                        "type": "number"
                      },
                      "endsAt": {
                        "type": "number"
                      },
                      "timeZone": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "title",
                      "startsAt",
                      "endsAt",
                      "timeZone"
                    ],
                    "additionalProperties": false
                  }
                },
                "practices": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "checkInAudience": {
                        "type": "string",
                        "enum": [
                          "class",
                          "workspace"
                        ]
                      },
                      "exercise": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "const": "scenario"
                              },
                              "title": {
                                "type": "string"
                              },
                              "graph": {
                                "type": "object",
                                "properties": {
                                  "start": {
                                    "type": "string"
                                  },
                                  "steps": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string"
                                        },
                                        "prompt": {
                                          "type": "string"
                                        },
                                        "choices": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "id": {
                                                "type": "string"
                                              },
                                              "label": {
                                                "type": "string"
                                              },
                                              "feedback": {
                                                "type": "string"
                                              },
                                              "destination": {
                                                "anyOf": [
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "kind": {
                                                        "const": "step"
                                                      },
                                                      "stepId": {
                                                        "type": "string"
                                                      }
                                                    },
                                                    "required": [
                                                      "kind",
                                                      "stepId"
                                                    ],
                                                    "additionalProperties": false
                                                  },
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "kind": {
                                                        "const": "end"
                                                      },
                                                      "outcome": {
                                                        "type": "string",
                                                        "enum": [
                                                          "complete",
                                                          "retry"
                                                        ]
                                                      },
                                                      "message": {
                                                        "type": "string"
                                                      }
                                                    },
                                                    "required": [
                                                      "kind",
                                                      "outcome",
                                                      "message"
                                                    ],
                                                    "additionalProperties": false
                                                  }
                                                ]
                                              }
                                            },
                                            "required": [
                                              "id",
                                              "label",
                                              "feedback",
                                              "destination"
                                            ],
                                            "additionalProperties": false
                                          }
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "prompt",
                                        "choices"
                                      ],
                                      "additionalProperties": false
                                    }
                                  }
                                },
                                "required": [
                                  "start",
                                  "steps"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "required": [
                              "kind",
                              "title",
                              "graph"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "const": "check_in"
                              },
                              "title": {
                                "type": "string"
                              },
                              "prompt": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "kind",
                              "title",
                              "prompt"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "const": "quiz"
                              },
                              "title": {
                                "type": "string"
                              },
                              "questions": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "prompt": {
                                      "type": "string"
                                    },
                                    "options": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string"
                                          },
                                          "label": {
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "label"
                                        ],
                                        "additionalProperties": false
                                      }
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "prompt",
                                    "options"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "passPercent": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "kind",
                              "title",
                              "questions",
                              "passPercent"
                            ],
                            "additionalProperties": false
                          }
                        ]
                      },
                      "result": {
                        "type": "object",
                        "properties": {
                          "scorePercent": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "passed": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "scorePercent",
                          "passed"
                        ],
                        "additionalProperties": false
                      },
                      "skillId": {
                        "type": "string"
                      },
                      "id": {
                        "type": "string"
                      },
                      "title": {
                        "type": "string"
                      },
                      "category": {
                        "type": "string"
                      },
                      "assigned": {
                        "type": "boolean"
                      },
                      "startsAt": {
                        "type": "number"
                      },
                      "endsAt": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "timeZone": {
                        "type": "string"
                      },
                      "body": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "course": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "enrollmentId": {
                                "type": "string"
                              },
                              "complete": {
                                "type": "boolean"
                              },
                              "activityId": {
                                "type": "string"
                              },
                              "activityTitle": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "id",
                              "enrollmentId",
                              "complete"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "completed": {
                        "type": "boolean"
                      },
                      "reminder": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "id",
                      "title",
                      "category",
                      "assigned",
                      "startsAt",
                      "endsAt",
                      "timeZone",
                      "body",
                      "course",
                      "completed",
                      "reminder"
                    ],
                    "additionalProperties": false
                  }
                },
                "recognition": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "points": {
                          "type": "number"
                        },
                        "credits": {
                          "type": "number"
                        },
                        "level": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "next": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string"
                                },
                                "threshold": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "name",
                                "threshold"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "history": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "reason": {
                                "type": "string"
                              },
                              "points": {
                                "type": "number"
                              },
                              "credits": {
                                "type": "number"
                              },
                              "at": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "id",
                              "reason",
                              "points",
                              "credits",
                              "at"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "points",
                        "credits",
                        "level",
                        "next",
                        "history"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "rewards": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "title": {
                        "type": "string"
                      },
                      "cost": {
                        "type": "number"
                      },
                      "stock": {
                        "type": "number"
                      },
                      "kind": {
                        "type": "string",
                        "enum": [
                          "standard",
                          "sponsor",
                          "seasonal",
                          "give_back"
                        ]
                      },
                      "season": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "title",
                      "cost",
                      "stock"
                    ],
                    "additionalProperties": false
                  }
                },
                "redemptions": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "title": {
                        "type": "string"
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "pending",
                          "fulfilled"
                        ]
                      },
                      "cost": {
                        "type": "number"
                      },
                      "kind": {
                        "type": "string",
                        "enum": [
                          "standard",
                          "sponsor",
                          "seasonal",
                          "give_back"
                        ]
                      },
                      "season": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "title",
                      "status",
                      "cost"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "standings",
                "tenantId",
                "ratings",
                "streak",
                "goals",
                "seasons",
                "practices",
                "recognition",
                "rewards",
                "redemptions"
              ],
              "additionalProperties": false
            },
            "terminology": {
              "type": "object",
              "properties": {
                "profile": {
                  "type": "string"
                },
                "community": {
                  "type": "string"
                },
                "groups": {
                  "type": "string"
                },
                "messages": {
                  "type": "string"
                },
                "home": {
                  "type": "string"
                },
                "library": {
                  "type": "string"
                },
                "directory": {
                  "type": "string"
                },
                "discussions": {
                  "type": "string"
                },
                "progressPoint": {
                  "type": "string"
                },
                "progressPoints": {
                  "type": "string"
                },
                "rewardCredit": {
                  "type": "string"
                },
                "practiceItem": {
                  "type": "string"
                },
                "practiceItems": {
                  "type": "string"
                },
                "progress": {
                  "type": "string"
                },
                "levels": {
                  "type": "string"
                },
                "streaks": {
                  "type": "string"
                },
                "streakPauses": {
                  "type": "string"
                },
                "practice": {
                  "type": "string"
                },
                "scheduledPractice": {
                  "type": "string"
                },
                "challenges": {
                  "type": "string"
                },
                "seasons": {
                  "type": "string"
                },
                "skills": {
                  "type": "string"
                },
                "achievements": {
                  "type": "string"
                },
                "rewardCredits": {
                  "type": "string"
                },
                "rewardsCatalog": {
                  "type": "string"
                }
              },
              "required": [
                "profile",
                "community",
                "groups",
                "messages",
                "home",
                "library",
                "directory",
                "discussions",
                "progressPoint",
                "progressPoints",
                "rewardCredit",
                "practiceItem",
                "practiceItems",
                "progress",
                "levels",
                "streaks",
                "streakPauses",
                "practice",
                "scheduledPractice",
                "challenges",
                "seasons",
                "skills",
                "achievements",
                "rewardCredits",
                "rewardsCatalog"
              ],
              "additionalProperties": false
            },
            "webPlacement": {
              "type": "string"
            },
            "practicePlacement": {
              "type": "string"
            }
          },
          "required": [
            "programs",
            "terminology"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "query"
    },
    {
      "name": "mobile/v1/progress:beginQuiz",
      "summary": "mutation mobile/v1/progress:beginQuiz",
      "description": "Read learning records, record completion and manage quiz attempts.",
      "tags": [
        {
          "$ref": "#/components/tags/progress"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "courseId",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "activityId",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "enrollmentId",
          "required": false,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "admissionId": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "admissionId"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "mutation"
    },
    {
      "name": "mobile/v1/progress:completeActivity",
      "summary": "mutation mobile/v1/progress:completeActivity",
      "description": "Read learning records, record completion and manage quiz attempts.",
      "tags": [
        {
          "$ref": "#/components/tags/progress"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "clientOpId",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "courseId",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "activityId",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "enrollmentId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "occurredAt",
          "required": false,
          "schema": {
            "type": "number"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "clientOpId": {
              "type": "string"
            },
            "courseId": {
              "type": "string"
            },
            "activityId": {
              "type": "string"
            },
            "completed": {
              "const": true
            },
            "alreadyComplete": {
              "type": "boolean"
            },
            "completedAt": {
              "type": "string"
            },
            "progress": {
              "type": "object",
              "properties": {
                "status": {
                  "type": "string",
                  "enum": [
                    "not_started",
                    "in_progress",
                    "completed"
                  ]
                },
                "progressPercent": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "startedAt": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "completedAt": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "updatedAt": {
                  "type": "string"
                }
              },
              "required": [
                "status",
                "progressPercent",
                "startedAt",
                "completedAt",
                "updatedAt"
              ],
              "additionalProperties": false
            },
            "replayed": {
              "type": "boolean"
            }
          },
          "required": [
            "clientOpId",
            "courseId",
            "activityId",
            "completed",
            "alreadyComplete",
            "completedAt",
            "progress",
            "replayed"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "mutation"
    },
    {
      "name": "mobile/v1/progress:history",
      "summary": "query mobile/v1/progress:history",
      "description": "Read learning records, record completion and manage quiz attempts.",
      "tags": [
        {
          "$ref": "#/components/tags/progress"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "limit",
          "required": false,
          "schema": {
            "type": "number"
          }
        },
        {
          "name": "before",
          "required": false,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "items": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "completion",
                      "quiz_attempt"
                    ]
                  },
                  "occurredAt": {
                    "type": "string"
                  },
                  "courseId": {
                    "type": "string"
                  },
                  "courseTitle": {
                    "type": "string"
                  },
                  "activityId": {
                    "type": "string"
                  },
                  "activityTitle": {
                    "type": "string"
                  },
                  "scorePercent": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "passed": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "kind",
                  "occurredAt",
                  "courseId",
                  "courseTitle",
                  "activityId",
                  "activityTitle",
                  "scorePercent",
                  "passed"
                ],
                "additionalProperties": false
              }
            },
            "nextBefore": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "items",
            "nextBefore"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "query"
    },
    {
      "name": "mobile/v1/progress:quizAttempts",
      "summary": "query mobile/v1/progress:quizAttempts",
      "description": "Read learning records, record completion and manage quiz attempts.",
      "tags": [
        {
          "$ref": "#/components/tags/progress"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "activityId",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "attempts": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "scorePercent": {
                    "type": "number"
                  },
                  "passed": {
                    "type": "boolean"
                  },
                  "recordedAt": {
                    "type": "string"
                  }
                },
                "required": [
                  "scorePercent",
                  "passed",
                  "recordedAt"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "attempts"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "query"
    },
    {
      "name": "mobile/v1/progress:submitQuiz",
      "summary": "mutation mobile/v1/progress:submitQuiz",
      "description": "Read learning records, record completion and manage quiz attempts.",
      "tags": [
        {
          "$ref": "#/components/tags/progress"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "clientOpId",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "admissionId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "courseId",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "activityId",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "enrollmentId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "responses",
          "required": true,
          "schema": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "questionId": {
                  "type": "string"
                },
                "optionId": {
                  "type": "string"
                }
              },
              "required": [
                "questionId",
                "optionId"
              ],
              "additionalProperties": false
            }
          }
        },
        {
          "name": "occurredAt",
          "required": false,
          "schema": {
            "type": "number"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "clientOpId": {
              "type": "string"
            },
            "courseId": {
              "type": "string"
            },
            "activityId": {
              "type": "string"
            },
            "scorePercent": {
              "type": "number"
            },
            "passPercent": {
              "type": "number"
            },
            "passed": {
              "type": "boolean"
            },
            "recordedAt": {
              "type": "string"
            },
            "progress": {
              "type": "object",
              "properties": {
                "status": {
                  "type": "string",
                  "enum": [
                    "not_started",
                    "in_progress",
                    "completed"
                  ]
                },
                "progressPercent": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "startedAt": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "completedAt": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "updatedAt": {
                  "type": "string"
                }
              },
              "required": [
                "status",
                "progressPercent",
                "startedAt",
                "completedAt",
                "updatedAt"
              ],
              "additionalProperties": false
            },
            "replayed": {
              "type": "boolean"
            }
          },
          "required": [
            "clientOpId",
            "courseId",
            "activityId",
            "scorePercent",
            "passPercent",
            "passed",
            "recordedAt",
            "progress",
            "replayed"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "mutation"
    },
    {
      "name": "mobile/v1/progress:summary",
      "summary": "query mobile/v1/progress:summary",
      "description": "Read learning records, record completion and manage quiz attempts.",
      "tags": [
        {
          "$ref": "#/components/tags/progress"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "courses": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "courseId": {
                    "type": "string"
                  },
                  "enrollmentId": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "artwork": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "object",
                        "properties": {
                          "url": {
                            "type": "string"
                          },
                          "altText": {
                            "type": "string"
                          },
                          "width": {
                            "type": "number"
                          },
                          "height": {
                            "type": "number"
                          },
                          "focalPoint": {
                            "type": "object",
                            "properties": {
                              "x": {
                                "type": "number"
                              },
                              "y": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "x",
                              "y"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "url",
                          "altText",
                          "width",
                          "height",
                          "focalPoint"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  },
                  "progress": {
                    "type": "object",
                    "properties": {
                      "status": {
                        "type": "string",
                        "enum": [
                          "not_started",
                          "in_progress",
                          "completed"
                        ]
                      },
                      "progressPercent": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "startedAt": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "completedAt": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "updatedAt": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "status",
                      "progressPercent",
                      "startedAt",
                      "completedAt",
                      "updatedAt"
                    ],
                    "additionalProperties": false
                  },
                  "counts": {
                    "type": "object",
                    "properties": {
                      "activities": {
                        "type": "number"
                      },
                      "completed": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "activities",
                      "completed"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "courseId",
                  "enrollmentId",
                  "title",
                  "artwork",
                  "progress",
                  "counts"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "courses"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "query"
    },
    {
      "name": "mobile/v1/push:preferences",
      "summary": "query mobile/v1/push:preferences",
      "description": "Register devices and manage push notification preferences.",
      "tags": [
        {
          "$ref": "#/components/tags/push"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "directMessages": {
              "type": "boolean"
            },
            "replies": {
              "type": "boolean"
            },
            "gradingReleased": {
              "type": "boolean"
            },
            "assignments": {
              "type": "boolean"
            },
            "adminBroadcasts": {
              "type": "boolean"
            }
          },
          "required": [
            "directMessages",
            "replies",
            "gradingReleased",
            "assignments",
            "adminBroadcasts"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "query"
    },
    {
      "name": "mobile/v1/push:registerDevice",
      "summary": "mutation mobile/v1/push:registerDevice",
      "description": "Register devices and manage push notification preferences.",
      "tags": [
        {
          "$ref": "#/components/tags/push"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "token",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "platform",
          "required": true,
          "schema": {
            "type": "string",
            "enum": [
              "ios",
              "android"
            ]
          }
        },
        {
          "name": "appVersion",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "deviceId",
          "required": false,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "deviceId": {
              "type": "string"
            },
            "registered": {
              "const": true
            }
          },
          "required": [
            "deviceId",
            "registered"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "mutation"
    },
    {
      "name": "mobile/v1/push:setPreferences",
      "summary": "mutation mobile/v1/push:setPreferences",
      "description": "Register devices and manage push notification preferences.",
      "tags": [
        {
          "$ref": "#/components/tags/push"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "directMessages",
          "required": false,
          "schema": {
            "type": "boolean"
          }
        },
        {
          "name": "replies",
          "required": false,
          "schema": {
            "type": "boolean"
          }
        },
        {
          "name": "gradingReleased",
          "required": false,
          "schema": {
            "type": "boolean"
          }
        },
        {
          "name": "assignments",
          "required": false,
          "schema": {
            "type": "boolean"
          }
        },
        {
          "name": "adminBroadcasts",
          "required": false,
          "schema": {
            "type": "boolean"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "directMessages": {
              "type": "boolean"
            },
            "replies": {
              "type": "boolean"
            },
            "gradingReleased": {
              "type": "boolean"
            },
            "assignments": {
              "type": "boolean"
            },
            "adminBroadcasts": {
              "type": "boolean"
            }
          },
          "required": [
            "directMessages",
            "replies",
            "gradingReleased",
            "assignments",
            "adminBroadcasts"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "mutation"
    },
    {
      "name": "mobile/v1/push:unregisterDevice",
      "summary": "mutation mobile/v1/push:unregisterDevice",
      "description": "Register devices and manage push notification preferences.",
      "tags": [
        {
          "$ref": "#/components/tags/push"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "token",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "unregistered": {
              "const": true
            }
          },
          "required": [
            "unregistered"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "mutation"
    },
    {
      "name": "mobile/v1/scorm:launch",
      "summary": "action mobile/v1/scorm:launch",
      "description": "Launch an authorized SCORM package for the current learner.",
      "tags": [
        {
          "$ref": "#/components/tags/scorm"
        }
      ],
      "paramStructure": "by-name",
      "params": [
        {
          "name": "expectedTenantId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "courseId",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "launchOperationId",
          "required": false,
          "schema": {}
        },
        {
          "name": "enrollmentId",
          "required": false,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "activityId",
          "required": false,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "result",
        "required": true,
        "schema": {
          "type": "object",
          "properties": {
            "courseId": {
              "type": "string"
            },
            "enrollmentId": {
              "type": "string"
            },
            "activityId": {
              "type": "string"
            },
            "packageId": {
              "type": "string"
            },
            "sessionId": {
              "type": "string"
            },
            "playerUrl": {
              "type": "string"
            },
            "expiresAt": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "resumed": {
              "type": "boolean"
            },
            "provider": {
              "const": "allureconnect"
            }
          },
          "required": [
            "courseId",
            "enrollmentId",
            "activityId",
            "packageId",
            "sessionId",
            "playerUrl",
            "expiresAt",
            "resumed",
            "provider"
          ],
          "additionalProperties": false
        }
      },
      "errors": [
        {
          "$ref": "#/components/errors/UNAUTHENTICATED"
        },
        {
          "$ref": "#/components/errors/NO_WORKSPACE"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_SELECTION_REQUIRED"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_MISMATCH"
        },
        {
          "$ref": "#/components/errors/WORKSPACE_INACTIVE"
        },
        {
          "$ref": "#/components/errors/FORBIDDEN"
        },
        {
          "$ref": "#/components/errors/NOT_FOUND"
        },
        {
          "$ref": "#/components/errors/NOT_ENROLLED"
        },
        {
          "$ref": "#/components/errors/LOCKED"
        },
        {
          "$ref": "#/components/errors/INVALID_ARGUMENT"
        },
        {
          "$ref": "#/components/errors/CONFLICT"
        },
        {
          "$ref": "#/components/errors/UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/LIMIT_REACHED"
        },
        {
          "$ref": "#/components/errors/UPSTREAM_UNAVAILABLE"
        },
        {
          "$ref": "#/components/errors/NOT_YET_AVAILABLE"
        },
        {
          "$ref": "#/components/errors/INTERNAL"
        }
      ],
      "x-convex-kind": "action"
    }
  ],
  "components": {
    "tags": {
      "catalog": {
        "name": "Course catalog",
        "description": "List courses, enroll a learner and open the outline for an enrollment."
      },
      "community": {
        "name": "Community",
        "description": "Browse groups and feeds, join discussions, react and report content."
      },
      "content": {
        "name": "Lesson content",
        "description": "Read activity blocks, prerequisites, completion state and authenticated form placements."
      },
      "documents": {
        "name": "Documents and feedback",
        "description": "Upload and open learner documents, submit feedback and read coaching notes."
      },
      "me": {
        "name": "Account and workspace",
        "description": "Read the signed-in member, available workspaces, capabilities, terminology and theme."
      },
      "members": {
        "name": "Member directory",
        "description": "Read visible profiles, manage connections and update directory visibility."
      },
      "messages": {
        "name": "Private messages",
        "description": "Open conversations, send messages and manage unread or blocked threads."
      },
      "meta": {
        "name": "API version",
        "description": "Check deployment compatibility and upcoming deprecations before making workspace calls."
      },
      "notifications": {
        "name": "Notifications",
        "description": "Read the inbox, mark notifications as read and resolve their destinations."
      },
      "preferences": {
        "name": "Learning preferences",
        "description": "Read and update notification, playback, caption and time zone preferences."
      },
      "programs": {
        "name": "Learning programs",
        "description": "Read assigned practice, goals, standings and rewards, and record learner actions."
      },
      "progress": {
        "name": "Progress and quizzes",
        "description": "Read learning records, record completion and manage quiz attempts."
      },
      "push": {
        "name": "Push notifications",
        "description": "Register devices and manage push notification preferences."
      },
      "scorm": {
        "name": "SCORM playback",
        "description": "Launch an authorized SCORM package for the current learner."
      }
    },
    "errors": {
      "UNAUTHENTICATED": {
        "code": -32001,
        "message": "UNAUTHENTICATED",
        "data": {
          "mobileApiVersion": "1.5.0",
          "error": {
            "code": "UNAUTHENTICATED",
            "reason": null,
            "retryable": false,
            "workPackage": null
          }
        }
      },
      "NO_WORKSPACE": {
        "code": -32002,
        "message": "NO_WORKSPACE",
        "data": {
          "mobileApiVersion": "1.5.0",
          "error": {
            "code": "NO_WORKSPACE",
            "reason": null,
            "retryable": false,
            "workPackage": null
          }
        }
      },
      "WORKSPACE_SELECTION_REQUIRED": {
        "code": -32003,
        "message": "WORKSPACE_SELECTION_REQUIRED",
        "data": {
          "mobileApiVersion": "1.5.0",
          "error": {
            "code": "WORKSPACE_SELECTION_REQUIRED",
            "reason": null,
            "retryable": false,
            "workPackage": null
          }
        }
      },
      "WORKSPACE_MISMATCH": {
        "code": -32004,
        "message": "WORKSPACE_MISMATCH",
        "data": {
          "mobileApiVersion": "1.5.0",
          "error": {
            "code": "WORKSPACE_MISMATCH",
            "reason": null,
            "retryable": false,
            "workPackage": null
          }
        }
      },
      "WORKSPACE_INACTIVE": {
        "code": -32005,
        "message": "WORKSPACE_INACTIVE",
        "data": {
          "mobileApiVersion": "1.5.0",
          "error": {
            "code": "WORKSPACE_INACTIVE",
            "reason": null,
            "retryable": false,
            "workPackage": null
          }
        }
      },
      "FORBIDDEN": {
        "code": -32006,
        "message": "FORBIDDEN",
        "data": {
          "mobileApiVersion": "1.5.0",
          "error": {
            "code": "FORBIDDEN",
            "reason": null,
            "retryable": false,
            "workPackage": null
          }
        }
      },
      "NOT_FOUND": {
        "code": -32007,
        "message": "NOT_FOUND",
        "data": {
          "mobileApiVersion": "1.5.0",
          "error": {
            "code": "NOT_FOUND",
            "reason": null,
            "retryable": false,
            "workPackage": null
          }
        }
      },
      "NOT_ENROLLED": {
        "code": -32008,
        "message": "NOT_ENROLLED",
        "data": {
          "mobileApiVersion": "1.5.0",
          "error": {
            "code": "NOT_ENROLLED",
            "reason": null,
            "retryable": false,
            "workPackage": null
          }
        }
      },
      "LOCKED": {
        "code": -32009,
        "message": "LOCKED",
        "data": {
          "mobileApiVersion": "1.5.0",
          "error": {
            "code": "LOCKED",
            "reason": null,
            "retryable": false,
            "workPackage": null
          }
        }
      },
      "INVALID_ARGUMENT": {
        "code": -32010,
        "message": "INVALID_ARGUMENT",
        "data": {
          "mobileApiVersion": "1.5.0",
          "error": {
            "code": "INVALID_ARGUMENT",
            "reason": null,
            "retryable": false,
            "workPackage": null
          }
        }
      },
      "CONFLICT": {
        "code": -32011,
        "message": "CONFLICT",
        "data": {
          "mobileApiVersion": "1.5.0",
          "error": {
            "code": "CONFLICT",
            "reason": null,
            "retryable": false,
            "workPackage": null
          }
        }
      },
      "UNAVAILABLE": {
        "code": -32012,
        "message": "UNAVAILABLE",
        "data": {
          "mobileApiVersion": "1.5.0",
          "error": {
            "code": "UNAVAILABLE",
            "reason": null,
            "retryable": false,
            "workPackage": null
          }
        }
      },
      "LIMIT_REACHED": {
        "code": -32013,
        "message": "LIMIT_REACHED",
        "data": {
          "mobileApiVersion": "1.5.0",
          "error": {
            "code": "LIMIT_REACHED",
            "reason": null,
            "retryable": false,
            "workPackage": null
          }
        }
      },
      "UPSTREAM_UNAVAILABLE": {
        "code": -32014,
        "message": "UPSTREAM_UNAVAILABLE",
        "data": {
          "mobileApiVersion": "1.5.0",
          "error": {
            "code": "UPSTREAM_UNAVAILABLE",
            "reason": null,
            "retryable": true,
            "workPackage": null
          }
        }
      },
      "NOT_YET_AVAILABLE": {
        "code": -32015,
        "message": "NOT_YET_AVAILABLE",
        "data": {
          "mobileApiVersion": "1.5.0",
          "error": {
            "code": "NOT_YET_AVAILABLE",
            "reason": null,
            "retryable": false,
            "workPackage": null
          }
        }
      },
      "INTERNAL": {
        "code": -32016,
        "message": "INTERNAL",
        "data": {
          "mobileApiVersion": "1.5.0",
          "error": {
            "code": "INTERNAL",
            "reason": null,
            "retryable": true,
            "workPackage": null
          }
        }
      }
    },
    "schemas": {
      "MobileErrorEnvelope": {
        "type": "object",
        "description": "Structured error payload returned in ConvexError.data for mobile/v1/* failures.",
        "properties": {
          "mobileApiVersion": {
            "type": "string"
          },
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "UNAUTHENTICATED",
                  "NO_WORKSPACE",
                  "WORKSPACE_SELECTION_REQUIRED",
                  "WORKSPACE_MISMATCH",
                  "WORKSPACE_INACTIVE",
                  "FORBIDDEN",
                  "NOT_FOUND",
                  "NOT_ENROLLED",
                  "LOCKED",
                  "INVALID_ARGUMENT",
                  "CONFLICT",
                  "UNAVAILABLE",
                  "LIMIT_REACHED",
                  "UPSTREAM_UNAVAILABLE",
                  "NOT_YET_AVAILABLE",
                  "INTERNAL"
                ]
              },
              "reason": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "retryable": {
                "type": "boolean"
              },
              "workPackage": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "L5",
                      "L6",
                      "L7",
                      "L8"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "code",
              "reason",
              "retryable",
              "workPackage"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "mobileApiVersion",
          "error"
        ],
        "additionalProperties": false
      }
    }
  }
}
