--- components: responses: {} schemas: AccountTokenCreated: description: A newly created account token. properties: expires_at: description: When the token expires, if set. format: date-time nullable: true type: string x-struct: x-validate: id: description: The token unique identifier. type: string x-struct: x-validate: token: description: The generated account token. Store this securely - it cannot be retrieved again. type: string x-struct: x-validate: required: - token - id title: AccountTokenCreated type: object x-struct: x-validate: CacheActionItem: description: Represents an action item stored in the cache. properties: hash: description: The hash that uniquely identifies the artifact in the cache. type: string x-struct: x-validate: required: - hash title: CacheActionItem type: object x-struct: Elixir.TuistWeb.API.Schemas.CacheActionItem x-validate: OrganizationList: description: The list of organizations the authenticated subject is part of. properties: organizations: items: $ref: "#/components/schemas/Organization" type: array x-struct: x-validate: required: - organizations title: OrganizationList type: object x-struct: x-validate: BundleRequest: description: Request schema for bundle creation properties: bundle: properties: app_bundle_id: description: The bundle ID of the app type: string x-struct: x-validate: artifacts: description: The artifacts in this bundle items: $ref: "#/components/schemas/BundleArtifact" type: array x-struct: x-validate: download_size: description: The bundle download size in bytes type: integer x-struct: x-validate: git_branch: description: The git branch associated with the bundle. type: string x-struct: x-validate: git_commit_sha: description: The git commit SHA associated with the bundle. type: string x-struct: x-validate: git_ref: description: Git reference of the repository. When run from CI in a pull request, this will be the remote reference to the pull request, such as `refs/pull/23958/merge`. type: string x-struct: x-validate: install_size: description: The bundle install size in bytes type: integer x-struct: x-validate: name: description: The name of the bundle type: string x-struct: x-validate: supported_platforms: description: List of supported platforms items: $ref: "#/components/schemas/BundleSupportedPlatform" type: array x-struct: x-validate: type: description: The type of the bundle enum: - ipa - app - xcarchive type: string x-struct: x-validate: version: description: The version of the bundle type: string x-struct: x-validate: required: - app_bundle_id - name - supported_platforms - version - install_size - artifacts type: object x-struct: x-validate: required: - bundle title: BundleRequest type: object x-struct: x-validate: ArtifactUploadID: description: The upload has been initiated and a ID is returned to upload the various parts using multi-part uploads properties: data: description: Data that contains ID that's associated with the multipart upload to use when uploading parts properties: upload_id: description: The upload ID type: string x-struct: x-validate: required: - upload_id type: object x-struct: x-validate: status: default: success enum: - success type: string x-struct: x-validate: required: - status - data title: ArtifactUploadID type: object x-struct: Elixir.TuistWeb.API.Schemas.ArtifactUploadId x-validate: CacheCategory: default: builds description: The category of the cache. enum: - tests - builds title: CacheCategory type: string x-struct: Elixir.TuistWeb.API.Schemas.CacheCategory x-validate: CacheArtifactDownloadURL: description: The URL to download the artifact from the cache. properties: data: properties: expires_at: description: The UNIX timestamp when the URL expires. type: integer x-struct: x-validate: url: description: The URL to download the artifact from the cache. type: string x-struct: x-validate: required: - url - expires_at type: object x-struct: x-validate: status: default: success enum: - success type: string x-struct: x-validate: required: - status - data title: CacheArtifactDownloadURL type: object x-struct: Elixir.TuistWeb.API.Schemas.CacheArtifactDownloadURL x-validate: Tokens: description: A list of project tokens. properties: tokens: items: $ref: "#/components/schemas/ProjectToken" type: array x-struct: x-validate: required: - tokens title: Tokens type: object x-struct: x-validate: ArtifactMultipartUploadParts: description: It represents a part that has been uploaded using multipart uploads. The part is identified by its number and the etag properties: parts: items: properties: etag: description: The ETag of the part type: string x-struct: x-validate: part_number: description: The part number type: integer x-struct: x-validate: required: - part_number - etag type: object x-struct: x-validate: type: array x-struct: x-validate: upload_id: description: The upload ID type: string x-struct: x-validate: required: - upload_id - parts title: ArtifactMultipartUploadParts type: object x-struct: Elixir.TuistWeb.API.Schemas.ArtifactMultipartUploadParts x-validate: CommandEvent: description: A command event. example: id: 123e4567-e89b-12d3-a456-426614174000 name: build project_id: 123 test_run_url: https://tuist.dev/my-account/my-project/tests/test-runs/123e4567-e89b-12d3-a456-426614174000 url: https://tuist.dev/my-account/my-project/runs/123e4567-e89b-12d3-a456-426614174000 properties: id: description: The unique identifier of the command event. format: uuid type: string x-struct: x-validate: name: description: The name of the command type: string x-struct: x-validate: project_id: description: The project identifier type: integer x-struct: x-validate: test_run_url: description: The URL to the test run, if available nullable: true type: string x-struct: x-validate: url: description: The URL to the command event type: string x-struct: x-validate: required: - id - project_id - name - url title: CommandEvent type: object x-struct: Elixir.TuistWeb.API.Schemas.CommandEvent x-validate: CacheActionItemUploadParams: properties: hash: description: The hash of the cache action item. type: string x-struct: x-validate: title: CacheActionItemUploadParams type: object x-struct: x-validate: ArtifactMultipartUploadPart: description: Represents an multipart upload's part identified by the upload id and the part number properties: content_length: description: The content length of the part. type: integer x-struct: x-validate: part_number: description: The part number of the multipart upload. type: integer x-struct: x-validate: upload_id: description: The upload ID. type: string x-struct: x-validate: required: - part_number - upload_id title: ArtifactMultipartUploadPart type: object x-struct: Elixir.TuistWeb.API.Schemas.ArtifactMultipartUploadPart x-validate: ProjectFullToken: description: A new project token. properties: token: description: The generated project token. type: string x-struct: x-validate: required: - token title: ProjectFullToken type: object x-struct: x-validate: PreviewArtifactUpload: description: The upload has been initiated and preview and upload unique identifier are returned to upload the various parts using multi-part uploads properties: data: description: Data that contains preview and upload unique identifier associated with the multipart upload to use when uploading parts properties: app_build_id: description: The id of the app build. type: string x-struct: x-validate: preview_id: deprecated: true description: The id of the preview. type: string x-struct: x-validate: upload_id: description: The upload ID type: string x-struct: x-validate: required: - upload_id - app_build_id type: object x-struct: x-validate: status: default: success enum: - success type: string x-struct: x-validate: required: - status - data title: PreviewArtifactUpload type: object x-struct: x-validate: Project: properties: default_branch: description: The default branch of the project. example: main type: string x-struct: x-validate: full_name: description: The full name of the project (e.g. tuist/tuist) type: string x-struct: x-validate: id: description: ID of the project type: number x-struct: x-validate: repository_url: description: The URL of the connected git repository, such as https://github.com/tuist/tuist or https://github.com/tuist/tuist.git type: string x-struct: x-validate: token: deprecated: true description: The token that should be used to authenticate the project. For CI only. type: string x-struct: x-validate: visibility: description: The visibility of the project enum: - private - public type: string x-struct: x-validate: required: - id - full_name - token - default_branch - visibility title: Project type: object x-struct: Elixir.TuistWeb.API.Schemas.Project x-validate: Invitation: properties: id: description: The invitation's unique identifier type: number x-struct: x-validate: invitee_email: description: The email of the invitee type: string x-struct: x-validate: inviter: $ref: "#/components/schemas/User" organization_id: description: The id of the organization the invitee is invited to type: number x-struct: x-validate: token: description: The token to accept the invitation type: string x-struct: x-validate: required: - id - invitee_email - organization_id - inviter - token title: Invitation type: object x-struct: Elixir.TuistWeb.API.Schemas.Invitation x-validate: PreviewIndexPage: default: 1 description: The page number to return. minimum: 1 title: PreviewIndexPage type: integer x-struct: x-validate: Account: properties: handle: description: The handle of the account type: string x-struct: x-validate: id: description: ID of the account type: number x-struct: x-validate: required: - id - handle title: Account type: object x-struct: Elixir.TuistWeb.API.Schemas.Account x-validate: OrganizationMember: description: An organization member properties: email: description: The organization member's email type: string x-struct: x-validate: id: description: The organization member's unique identifier type: number x-struct: x-validate: name: description: The organization member's name type: string x-struct: x-validate: role: description: The organization member's role enum: - admin - user type: string x-struct: x-validate: required: - id - email - name - role title: OrganizationMember type: object x-struct: Elixir.TuistWeb.API.Schemas.OrganizationMember x-validate: Organization: description: An organization properties: id: description: The organization's unique identifier type: number x-struct: x-validate: invitations: description: A list of organization invitations items: $ref: "#/components/schemas/Invitation" type: array x-struct: x-validate: members: description: A list of organization members items: $ref: "#/components/schemas/OrganizationMember" type: array x-struct: x-validate: name: description: The organization's name type: string x-struct: x-validate: plan: description: The plan associated with the organization enum: - air - pro - enterprise - none type: string x-struct: x-validate: sso_organization_id: description: The organization ID associated with the SSO provider type: string x-struct: x-validate: sso_provider: description: The SSO provider set up for the organization enum: - google - okta type: string x-struct: x-validate: required: - id - name - plan - members - invitations title: Organization type: object x-struct: Elixir.TuistWeb.API.Schemas.Organization x-validate: AccountTokens: properties: meta: $ref: "#/components/schemas/PaginationMetadata" tokens: items: properties: all_projects: description: Whether token has access to all projects. type: boolean x-struct: x-validate: expires_at: description: When the token expires. format: date-time nullable: true type: string x-struct: x-validate: id: description: Token unique identifier. type: string x-struct: x-validate: inserted_at: description: When the token was created. format: date-time type: string x-struct: x-validate: name: description: Friendly name for the token. nullable: true type: string x-struct: x-validate: project_handles: description: List of project handles the token can access (when all_projects is false). items: type: string x-struct: x-validate: type: array x-struct: x-validate: scopes: description: Token scopes. items: enum: - ci - account:members:read - account:members:write - account:registry:read - account:registry:write - project:previews:read - project:previews:write - project:admin:read - project:admin:write - project:cache:read - project:cache:write - project:bundles:read - project:bundles:write - project:tests:read - project:tests:write - project:builds:read - project:builds:write - project:runs:read - project:runs:write type: string x-struct: x-validate: type: array x-struct: x-validate: required: - id - scopes - all_projects - inserted_at type: object x-struct: x-validate: type: array x-struct: x-validate: required: - tokens - meta title: AccountTokens type: object x-struct: x-validate: LatestPreviewResponse: properties: preview: $ref: "#/components/schemas/Preview" title: LatestPreviewResponse type: object x-struct: x-validate: PreviewSupportedPlatform: enum: - ios - ios_simulator - tvos - tvos_simulator - watchos - watchos_simulator - visionos - visionos_simulator - macos title: PreviewSupportedPlatform type: string x-struct: Elixir.TuistWeb.API.Schemas.PreviewSupportedPlatform x-validate: CommandEventArtifact: description: It represents an artifact that's associated with a command event (e.g. result bundles) properties: name: description: The name of the file. It's used only for certain types such as result_bundle_object type: string x-struct: x-validate: type: description: | The command event artifact type. It can be: - result_bundle: A result bundle artifact that represents the whole `.xcresult` bundle - invocation_record: An invocation record artifact. This is a root bundle object of the result bundle - result_bundle_object: A result bundle object. There are many different bundle objects per result bundle. enum: - result_bundle - invocation_record - result_bundle_object type: string x-struct: x-validate: required: - type title: CommandEventArtifact type: object x-struct: Elixir.TuistWeb.API.Schemas.CommandEventArtifact x-validate: Preview: properties: builds: items: $ref: "#/components/schemas/AppBuild" type: array x-struct: x-validate: bundle_identifier: description: The bundle identifier of the preview type: string x-struct: x-validate: created_by: $ref: "#/components/schemas/Account" created_from_ci: description: Whether the preview was created from CI type: boolean x-struct: x-validate: device_url: description: The URL to download the preview on a device type: string x-struct: x-validate: display_name: description: The display name of the preview type: string x-struct: x-validate: git_branch: description: The git branch associated with the preview type: string x-struct: x-validate: git_commit_sha: description: The git commit SHA associated with the preview type: string x-struct: x-validate: icon_url: description: The URL for the icon image of the preview type: string x-struct: x-validate: id: description: Unique identifier of the preview. type: string x-struct: x-validate: inserted_at: description: The date and time when the preview was inserted format: date_time type: string x-struct: x-validate: qr_code_url: description: The URL for the QR code image to dowload the preview type: string x-struct: x-validate: supported_platforms: items: $ref: "#/components/schemas/PreviewSupportedPlatform" type: array x-struct: x-validate: url: description: The URL to download the preview type: string x-struct: x-validate: version: description: The app version of the preview type: string x-struct: x-validate: required: - id - url - qr_code_url - icon_url - builds - supported_platforms - inserted_at - created_from_ci - device_url title: Preview type: object x-struct: Elixir.TuistWeb.API.Schemas.Preview x-validate: ValidationError: properties: fields: additionalProperties: items: type: string x-struct: x-validate: type: array x-struct: x-validate: description: Field-specific validation errors type: object x-struct: x-validate: message: description: The error message type: string x-struct: x-validate: required: - message - fields title: ValidationError type: object x-struct: Elixir.TuistWeb.API.Schemas.ValidationError x-validate: RunParams: description: Parameters to create a single run. oneOf: - properties: cacheable_tasks: description: Cacheable tasks associated with the build run. items: properties: cas_output_node_ids: description: Array of CAS output node IDs associated with this cacheable task. items: type: string x-struct: x-validate: type: array x-struct: x-validate: description: description: Optional description of the cacheable task. type: string x-struct: x-validate: key: description: The cache key of the task. type: string x-struct: x-validate: read_duration: description: The duration in milliseconds for reading from cache. type: number x-struct: x-validate: status: description: The cache status of the task. enum: - hit_local - hit_remote - miss type: string x-struct: x-validate: type: description: The type of cacheable task. enum: - clang - swift type: string x-struct: x-validate: write_duration: description: The duration in milliseconds for writing to cache. type: number x-struct: x-validate: required: - type - status - key type: object x-struct: x-validate: type: array x-struct: x-validate: cas_outputs: description: CAS output operations associated with the build run. items: properties: checksum: description: The checksum of the CAS object. type: string x-struct: x-validate: compressed_size: description: The compressed size of the CAS object in bytes. type: integer x-struct: x-validate: duration: description: The duration of the CAS operation in milliseconds. type: number x-struct: x-validate: node_id: description: The CAS node identifier. type: string x-struct: x-validate: operation: description: The type of CAS operation. enum: - download - upload type: string x-struct: x-validate: size: description: The size of the CAS object in bytes. type: integer x-struct: x-validate: type: description: The type of the CAS output file. enum: - swift - sil - sib - image - dSYM - dependencies - emit-module-dependencies - autolink - swiftmodule - swiftdoc - swiftinterface - object - ast-dump - raw-sil - raw-sib - raw-llvm-ir - llvm-ir - llvm-bc - private-swiftinterface - package-swiftinterface - objc-header - swift-dependencies - dependency-scanner-cache - json-dependencies - json-target-info - json-supported-features - json-module-artifacts - imported-modules - module-trace - index-data - index-unit-output-path - yaml-opt-record - bitstream-opt-record - diagnostics - emit-module-diagnostics - dependency-scan-diagnostics - api-baseline-json - abi-baseline-json - const-values - api-descriptor-json - swift-module-summary - module-semantic-info - cached-diagnostics - json-supported-swift-features - modulemap - pch - pcm - tbd - remap - localization-strings - clang-header - swiftsourceinfo - assembly - unknown type: string x-struct: x-validate: required: - node_id - checksum - size - duration - compressed_size - operation type: object x-struct: x-validate: type: array x-struct: x-validate: category: description: The category of the build run, can be clean or incremental. enum: - clean - incremental type: string x-struct: x-validate: ci_host: description: The CI host URL (optional, for self-hosted instances). type: string x-struct: x-validate: ci_project_handle: description: "The CI project handle (e.g., 'owner/repo' for GitHub, project path for GitLab)." type: string x-struct: x-validate: ci_provider: description: The CI provider. enum: - github - gitlab - bitrise - circleci - buildkite - codemagic type: string x-struct: x-validate: ci_run_id: description: The CI run identifier (e.g., GitHub Actions run ID, GitLab pipeline ID). type: string x-struct: x-validate: configuration: description: The build configuration (e.g., Debug, Release). type: string x-struct: x-validate: duration: description: Duration of the run in milliseconds. type: integer x-struct: x-validate: files: description: Compiled files associated with the build run. items: properties: compilation_duration: description: The duration of the compilation for the file in milliseconds. type: integer x-struct: x-validate: path: description: The file path where the issue occurred, relative to the project root. type: string x-struct: x-validate: project: description: The project name associated with the file. type: string x-struct: x-validate: target: description: The target name associated with the file. type: string x-struct: x-validate: type: description: The type of the file. enum: - swift - c type: string x-struct: x-validate: required: - type - target - project - path - compilation_duration type: object x-struct: x-validate: type: array x-struct: x-validate: git_branch: description: The git branch. type: string x-struct: x-validate: git_commit_sha: description: The commit SHA. type: string x-struct: x-validate: git_ref: description: The git reference. type: string x-struct: x-validate: git_remote_url_origin: description: The git remote URL origin. type: string x-struct: x-validate: id: description: UUID of a run generated by the system. type: string x-struct: x-validate: is_ci: description: Indicates if the run was executed on a Continuous Integration (CI) system. type: boolean x-struct: x-validate: issues: description: The build issues associated with the build run. items: properties: ending_column: description: The ending column number of the issue. type: integer x-struct: x-validate: ending_line: description: The ending line number of the issue. type: integer x-struct: x-validate: message: description: The detailed message of the issue. type: string x-struct: x-validate: path: description: The file path where the issue occurred, relative to the project root. type: string x-struct: x-validate: project: description: The project name associated with the issue. type: string x-struct: x-validate: signature: description: The signature of the issue. type: string x-struct: x-validate: starting_column: description: The starting column number of the issue. type: integer x-struct: x-validate: starting_line: description: The starting line number of the issue. type: integer x-struct: x-validate: step_type: description: The step type where the issue occurred, such as swift_compilation. enum: - c_compilation - swift_compilation - script_execution - create_static_library - linker - copy_swift_libs - compile_assets_catalog - compile_storyboard - write_auxiliary_file - link_storyboards - copy_resource_file - merge_swift_module - xib_compilation - swift_aggregated_compilation - precompile_bridging_header - other - validate_embedded_binary - validate type: string x-struct: x-validate: target: description: The target name associated with the issue. type: string x-struct: x-validate: title: description: The title of the build issue. type: string x-struct: x-validate: type: description: The type of the issue. enum: - warning - error type: string x-struct: x-validate: required: - type - target - project - title - signature - step_type - starting_line - ending_line - starting_column - ending_column type: object x-struct: x-validate: type: array x-struct: x-validate: macos_version: description: The version of macOS used during the run. type: string x-struct: x-validate: model_identifier: description: Identifier for the model where the run was executed, such as MacBookAir10,1. type: string x-struct: x-validate: scheme: description: The scheme used for the build. type: string x-struct: x-validate: status: description: The status of the build run. enum: - success - failure type: string x-struct: x-validate: targets: description: Targets with build metadata associated with the build run. items: properties: build_duration: description: The build duration for the target in milliseconds. type: integer x-struct: x-validate: compilation_duration: description: The duration of the compilation for the target in milliseconds. type: integer x-struct: x-validate: name: description: The target name. type: string x-struct: x-validate: project: description: The target's project name. type: string x-struct: x-validate: status: description: The status of the target's build. enum: - success - failure type: string x-struct: x-validate: required: - name - project - build_duration - compilation_duration - status type: object x-struct: x-validate: type: array x-struct: x-validate: type: description: "The type of the run, which is 'build' in this case." enum: - build type: string x-struct: x-validate: xcode_version: description: The version of Xcode used during the run. type: string x-struct: x-validate: required: - id - duration - is_ci title: BuildRun type: object x-struct: x-validate: - properties: build_run_id: description: The UUID of an associated build run. type: string x-struct: x-validate: ci_host: description: The CI host URL (optional, for self-hosted instances). type: string x-struct: x-validate: ci_project_handle: description: "The CI project handle (e.g., 'owner/repo' for GitHub, project path for GitLab)." type: string x-struct: x-validate: ci_provider: description: The CI provider. enum: - github - gitlab - bitrise - circleci - buildkite - codemagic type: string x-struct: x-validate: ci_run_id: description: The CI run identifier (e.g., GitHub Actions run ID, GitLab pipeline ID). type: string x-struct: x-validate: duration: description: Duration of the run in milliseconds. type: integer x-struct: x-validate: git_branch: description: The git branch. type: string x-struct: x-validate: git_commit_sha: description: The commit SHA. type: string x-struct: x-validate: git_ref: description: The git reference. type: string x-struct: x-validate: git_remote_url_origin: description: The git remote URL origin. type: string x-struct: x-validate: is_ci: description: Indicates if the run was executed on a Continuous Integration (CI) system. type: boolean x-struct: x-validate: macos_version: description: The version of macOS used during the run. type: string x-struct: x-validate: model_identifier: description: Identifier for the model where the run was executed, such as MacBookAir10,1. type: string x-struct: x-validate: scheme: description: The scheme used for the test run. type: string x-struct: x-validate: status: description: The status of the test run. enum: - success - failure - skipped type: string x-struct: x-validate: test_modules: description: The test modules associated with the test run. items: properties: duration: description: The duration of the test module in milliseconds. type: integer x-struct: x-validate: name: description: The name of the test module/target. type: string x-struct: x-validate: status: description: The status of the test module. enum: - success - failure type: string x-struct: x-validate: test_cases: description: The test cases within this module. items: properties: duration: description: The duration of the test case in milliseconds. type: integer x-struct: x-validate: failures: description: The failures that occurred in this test case. items: properties: issue_type: description: The type of issue that occurred. enum: - error_thrown - assertion_failure - issue_recorded type: string x-struct: x-validate: line_number: description: The line number where the failure occurred. type: integer x-struct: x-validate: message: description: The failure message. type: string x-struct: x-validate: path: description: The file path where the failure occurred, relative to the project root. type: string x-struct: x-validate: required: - line_number type: object x-struct: x-validate: type: array x-struct: x-validate: name: description: The name of the test case. type: string x-struct: x-validate: status: description: The status of the test case. enum: - success - failure - skipped type: string x-struct: x-validate: test_suite_name: description: The name of the test suite this test case belongs to (optional). type: string x-struct: x-validate: required: - name - status - duration type: object x-struct: x-validate: type: array x-struct: x-validate: test_suites: description: The test suites within this module. items: properties: duration: description: The duration of the test suite in milliseconds. type: integer x-struct: x-validate: name: description: The name of the test suite. type: string x-struct: x-validate: status: description: The status of the test suite. enum: - success - failure - skipped type: string x-struct: x-validate: required: - name - status - duration type: object x-struct: x-validate: type: array x-struct: x-validate: required: - name - status - duration type: object x-struct: x-validate: type: array x-struct: x-validate: type: description: "The type of the run, which is 'test' in this case." enum: - test type: string x-struct: x-validate: xcode_version: description: The version of Xcode used during the run. type: string x-struct: x-validate: required: - type - duration - test_modules - macos_version - is_ci title: TestRun type: object x-struct: x-validate: title: RunParams x-struct: x-validate: RunsIndexPageSize: default: 20 description: The maximum number of runs to return in a single page. maximum: 100 minimum: 1 title: RunsIndexPageSize type: integer x-struct: x-validate: Bundle: description: Response schema for bundle properties: app_bundle_id: description: The bundle ID of the app type: string x-struct: x-validate: artifacts: description: The artifacts in this bundle items: $ref: "#/components/schemas/BundleArtifact" type: array x-struct: x-validate: download_size: description: The bundle download size in bytes type: integer x-struct: x-validate: git_branch: description: The git branch associated with the bundle. type: string x-struct: x-validate: git_commit_sha: description: The git commit SHA associated with the bundle. type: string x-struct: x-validate: git_ref: description: Git reference of the repository. When run from CI in a pull request, this will be the remote reference to the pull request, such as `refs/pull/23958/merge`. type: string x-struct: x-validate: id: description: The ID of the bundle. This is not a bundle ID that you'd set in Xcode but the database identifier of the bundle. type: string x-struct: x-validate: inserted_at: description: When the bundle was created format: date-time type: string x-struct: x-validate: install_size: description: The bundle install size in bytes type: integer x-struct: x-validate: name: description: The name of the bundle type: string x-struct: x-validate: supported_platforms: description: List of supported platforms items: $ref: "#/components/schemas/BundleSupportedPlatform" type: array x-struct: x-validate: uploaded_by_account: description: The account that uploaded this bundle type: string x-struct: x-validate: url: description: The URL to view this bundle type: string x-struct: x-validate: version: description: The version of the bundle type: string x-struct: x-validate: required: - id - name - app_bundle_id - version - supported_platforms - install_size - inserted_at - uploaded_by_account - url title: Bundle type: object x-struct: Elixir.TuistWeb.API.Schemas.Bundle x-validate: BundleArtifact: description: A bundle artifact schema properties: artifact_type: description: The type of artifact enum: - directory - file - font - binary - localization - asset - unknown type: string x-struct: x-validate: children: description: Nested child artifacts, for example for artifacts that represent a directory. items: $ref: "#/components/schemas/BundleArtifact" type: array x-struct: x-validate: path: description: The path to the artifact relative to the root of the bundle. type: string x-struct: x-validate: shasum: description: The SHA checksum of the artifact type: string x-struct: x-validate: size: description: The size of the artifact in bytes type: integer x-struct: x-validate: required: - artifact_type - path - size - shasum title: BundleArtifact type: object x-struct: Elixir.TuistWeb.API.Schemas.BundleArtifact x-validate: RunsBuild: description: Represents a single build run. properties: duration: description: The duration of the build run in milliseconds type: integer x-struct: x-validate: id: description: The unique identifier of the build run type: string x-struct: x-validate: project_id: description: The ID of the Tuist project associated with this build run type: integer x-struct: x-validate: type: description: "The type of the run, which is 'build' in this case" enum: - build type: string x-struct: x-validate: url: description: The URL to access the build run type: string x-struct: x-validate: required: - type - id - duration - project_id - url title: RunsBuild type: object x-struct: Elixir.TuistWeb.API.Schemas.Runs.Build x-validate: ProjectToken: description: A token to authenticate API requests as a project. properties: id: description: The token unique identifier. type: string x-struct: x-validate: inserted_at: description: The timestamp of when the token was created. format: date-time type: string x-struct: x-validate: required: - id - inserted_at title: ProjectToken type: object x-struct: Elixir.TuistWeb.API.Schemas.ProjectToken x-validate: TestRun: properties: build_run_id: description: The UUID of an associated build run. type: string x-struct: x-validate: ci_host: description: The CI host URL (optional, for self-hosted instances). type: string x-struct: x-validate: ci_project_handle: description: "The CI project handle (e.g., 'owner/repo' for GitHub, project path for GitLab)." type: string x-struct: x-validate: ci_provider: description: The CI provider. enum: - github - gitlab - bitrise - circleci - buildkite - codemagic type: string x-struct: x-validate: ci_run_id: description: The CI run identifier (e.g., GitHub Actions run ID, GitLab pipeline ID). type: string x-struct: x-validate: duration: description: Duration of the run in milliseconds. type: integer x-struct: x-validate: git_branch: description: The git branch. type: string x-struct: x-validate: git_commit_sha: description: The commit SHA. type: string x-struct: x-validate: git_ref: description: The git reference. type: string x-struct: x-validate: git_remote_url_origin: description: The git remote URL origin. type: string x-struct: x-validate: is_ci: description: Indicates if the run was executed on a Continuous Integration (CI) system. type: boolean x-struct: x-validate: macos_version: description: The version of macOS used during the run. type: string x-struct: x-validate: model_identifier: description: Identifier for the model where the run was executed, such as MacBookAir10,1. type: string x-struct: x-validate: scheme: description: The scheme used for the test run. type: string x-struct: x-validate: status: description: The status of the test run. enum: - success - failure - skipped type: string x-struct: x-validate: test_modules: description: The test modules associated with the test run. items: properties: duration: description: The duration of the test module in milliseconds. type: integer x-struct: x-validate: name: description: The name of the test module/target. type: string x-struct: x-validate: status: description: The status of the test module. enum: - success - failure type: string x-struct: x-validate: test_cases: description: The test cases within this module. items: properties: duration: description: The duration of the test case in milliseconds. type: integer x-struct: x-validate: failures: description: The failures that occurred in this test case. items: properties: issue_type: description: The type of issue that occurred. enum: - error_thrown - assertion_failure - issue_recorded type: string x-struct: x-validate: line_number: description: The line number where the failure occurred. type: integer x-struct: x-validate: message: description: The failure message. type: string x-struct: x-validate: path: description: The file path where the failure occurred, relative to the project root. type: string x-struct: x-validate: required: - line_number type: object x-struct: x-validate: type: array x-struct: x-validate: name: description: The name of the test case. type: string x-struct: x-validate: status: description: The status of the test case. enum: - success - failure - skipped type: string x-struct: x-validate: test_suite_name: description: The name of the test suite this test case belongs to (optional). type: string x-struct: x-validate: required: - name - status - duration type: object x-struct: x-validate: type: array x-struct: x-validate: test_suites: description: The test suites within this module. items: properties: duration: description: The duration of the test suite in milliseconds. type: integer x-struct: x-validate: name: description: The name of the test suite. type: string x-struct: x-validate: status: description: The status of the test suite. enum: - success - failure - skipped type: string x-struct: x-validate: required: - name - status - duration type: object x-struct: x-validate: type: array x-struct: x-validate: required: - name - status - duration type: object x-struct: x-validate: type: array x-struct: x-validate: type: description: "The type of the run, which is 'test' in this case." enum: - test type: string x-struct: x-validate: xcode_version: description: The version of Xcode used during the run. type: string x-struct: x-validate: required: - type - duration - test_modules - macos_version - is_ci title: TestRun type: object x-struct: x-validate: OrganizationUsage: description: The usage of an organization. properties: current_month_remote_cache_hits: description: The number of remote cache hits in the current month type: number x-struct: x-validate: required: - current_month_remote_cache_hits title: OrganizationUsage type: object x-struct: Elixir.TuistWeb.API.Schemas.OrganizationUsage x-validate: PreviewsIndex: properties: pagination_metadata: $ref: "#/components/schemas/PaginationMetadata" previews: description: Previews list. items: $ref: "#/components/schemas/Preview" type: array x-struct: x-validate: required: - previews - pagination_metadata title: PreviewsIndex type: object x-struct: x-validate: ArtifactUploadURL: description: The URL to upload an artifact. properties: expires_at: description: The UNIX timestamp when the URL expires. type: integer x-struct: x-validate: url: description: The URL to upload the artifact. type: string x-struct: x-validate: required: - url - expires_at title: ArtifactUploadURL type: object x-struct: Elixir.TuistWeb.API.Schemas.ArtifactUploadURL x-validate: DeviceCodeAuthenticationTokens: description: Token to authenticate the user with. properties: access_token: description: A short-lived token to authenticate API requests as user. type: string x-struct: x-validate: refresh_token: description: A token to generate new access tokens when they expire. type: string x-struct: x-validate: token: deprecated: true description: User authentication token type: string x-struct: x-validate: title: DeviceCodeAuthenticationTokens type: object x-struct: x-validate: AbsentCacheArtifact: properties: error: items: properties: code: default: not_found type: string x-struct: x-validate: message: type: string x-struct: x-validate: type: object x-struct: x-validate: type: array x-struct: x-validate: title: AbsentCacheArtifact type: object x-struct: x-validate: Error: properties: message: description: The error message type: string x-struct: x-validate: required: - message title: Error type: object x-struct: Elixir.TuistWeb.API.Schemas.Error x-validate: RunsIndexPage: default: 1 description: The page number to return. minimum: 1 title: RunsIndexPage type: integer x-struct: x-validate: OIDCTokenExchangeResponse: properties: access_token: description: The Tuist access token to use for API requests. type: string x-struct: x-validate: expires_in: description: Token lifetime in seconds. type: integer x-struct: x-validate: required: - access_token - expires_in title: OIDCTokenExchangeResponse type: object x-struct: x-validate: CacheEndpoints: description: List of available cache endpoints properties: endpoints: items: type: string x-struct: x-validate: type: array x-struct: x-validate: required: - endpoints title: CacheEndpoints type: object x-struct: x-validate: Run: description: The schema for a Tuist run. properties: cacheable_targets: description: Cacheable targets of the run items: type: string x-struct: x-validate: type: array x-struct: x-validate: command_arguments: description: Arguments passed to the command items: type: string x-struct: x-validate: type: array x-struct: x-validate: duration: description: Duration of the run type: number x-struct: x-validate: git_branch: description: Git branch of the repository type: string x-struct: x-validate: git_commit_sha: description: Git commit SHA of the repository type: string x-struct: x-validate: git_ref: description: Git reference of the repository. When run from CI in a pull request, this will be the remote reference to the pull request, such as `refs/pull/23958/merge`. type: string x-struct: x-validate: id: description: ID of the run type: number x-struct: x-validate: local_cache_target_hits: description: Local cache target hits of the run items: type: string x-struct: x-validate: type: array x-struct: x-validate: local_test_target_hits: description: Local test target hits of the run items: type: string x-struct: x-validate: type: array x-struct: x-validate: macos_version: description: Version of macOS used type: string x-struct: x-validate: name: description: Command name of the run type: string x-struct: x-validate: preview_id: description: ID of the associated preview type: string x-struct: x-validate: ran_at: description: Unix timestamp in seconds since epoch (1970-01-01T00:00:00Z) example: 1715606400 format: int64 type: integer x-struct: x-validate: ran_by: description: The account triggered the run. properties: handle: description: The handle of the account that triggered the run. type: string x-struct: x-validate: required: - handle type: string x-struct: x-validate: remote_cache_target_hits: description: Remote cache target hits of the run items: type: string x-struct: x-validate: type: array x-struct: x-validate: remote_test_target_hits: description: Remote test target hits of the run items: type: string x-struct: x-validate: type: array x-struct: x-validate: status: description: Status of the command event type: string x-struct: x-validate: subcommand: description: Subcommand of the run type: string x-struct: x-validate: swift_version: description: Version of Swift used type: string x-struct: x-validate: test_targets: description: Test targets of the run items: type: string x-struct: x-validate: type: array x-struct: x-validate: tuist_version: description: Version of Tuist used type: string x-struct: x-validate: url: description: URL to the run type: string x-struct: x-validate: required: - id - name - duration - subcommand - command_arguments - tuist_version - swift_version - macos_version - status - git_commit_sha - git_ref - git_branch - url - ran_at title: Run type: object x-struct: Elixir.TuistWeb.API.Schemas.Run x-validate: BundleSupportedPlatform: description: A platform that a bundle can support (e.g. iOS) enum: - ios - ios_simulator - tvos - tvos_simulator - watchos - watchos_simulator - visionos - visionos_simulator - macos title: BundleSupportedPlatform type: string x-struct: Elixir.TuistWeb.API.Schemas.BundleSupportedPlatform x-validate: CacheArtifactExistence: description: The artifact exists in the cache and can be downloaded properties: data: properties: {} type: object x-struct: x-validate: status: default: success enum: - success type: string x-struct: x-validate: title: CacheArtifactExistence type: object x-struct: x-validate: ArtifactMultipartUploadURL: description: The URL to upload a multipart part properties: data: properties: url: description: The URL to upload the part type: string x-struct: x-validate: required: - url type: object x-struct: x-validate: status: default: success enum: - success type: string x-struct: x-validate: required: - status - data title: ArtifactMultipartUploadURL type: object x-struct: Elixir.TuistWeb.API.Schemas.ArtifactMultipartUploadUrl x-validate: AppBuild: properties: binary_id: description: The Mach-O UUID of the build's main binary. type: string x-struct: x-validate: id: description: Unique identifier of the build. type: string x-struct: x-validate: supported_platforms: items: $ref: "#/components/schemas/PreviewSupportedPlatform" type: array x-struct: x-validate: type: description: The type of the build enum: - app_bundle - ipa type: string x-struct: x-validate: url: description: The URL to download the build type: string x-struct: x-validate: required: - id - url - type - supported_platforms title: AppBuild type: object x-struct: Elixir.TuistWeb.API.Schemas.AppBuild x-validate: CacheArtifactMultipartUploadCompletion: description: This response confirms that the upload has been completed successfully. The cache will now be able to serve the artifact. properties: data: properties: {} type: object x-struct: x-validate: status: default: success enum: - success type: string x-struct: x-validate: title: CacheArtifactMultipartUploadCompletion type: object x-struct: x-validate: BuildRun: properties: cacheable_tasks: description: Cacheable tasks associated with the build run. items: properties: cas_output_node_ids: description: Array of CAS output node IDs associated with this cacheable task. items: type: string x-struct: x-validate: type: array x-struct: x-validate: description: description: Optional description of the cacheable task. type: string x-struct: x-validate: key: description: The cache key of the task. type: string x-struct: x-validate: read_duration: description: The duration in milliseconds for reading from cache. type: number x-struct: x-validate: status: description: The cache status of the task. enum: - hit_local - hit_remote - miss type: string x-struct: x-validate: type: description: The type of cacheable task. enum: - clang - swift type: string x-struct: x-validate: write_duration: description: The duration in milliseconds for writing to cache. type: number x-struct: x-validate: required: - type - status - key type: object x-struct: x-validate: type: array x-struct: x-validate: cas_outputs: description: CAS output operations associated with the build run. items: properties: checksum: description: The checksum of the CAS object. type: string x-struct: x-validate: compressed_size: description: The compressed size of the CAS object in bytes. type: integer x-struct: x-validate: duration: description: The duration of the CAS operation in milliseconds. type: number x-struct: x-validate: node_id: description: The CAS node identifier. type: string x-struct: x-validate: operation: description: The type of CAS operation. enum: - download - upload type: string x-struct: x-validate: size: description: The size of the CAS object in bytes. type: integer x-struct: x-validate: type: description: The type of the CAS output file. enum: - swift - sil - sib - image - dSYM - dependencies - emit-module-dependencies - autolink - swiftmodule - swiftdoc - swiftinterface - object - ast-dump - raw-sil - raw-sib - raw-llvm-ir - llvm-ir - llvm-bc - private-swiftinterface - package-swiftinterface - objc-header - swift-dependencies - dependency-scanner-cache - json-dependencies - json-target-info - json-supported-features - json-module-artifacts - imported-modules - module-trace - index-data - index-unit-output-path - yaml-opt-record - bitstream-opt-record - diagnostics - emit-module-diagnostics - dependency-scan-diagnostics - api-baseline-json - abi-baseline-json - const-values - api-descriptor-json - swift-module-summary - module-semantic-info - cached-diagnostics - json-supported-swift-features - modulemap - pch - pcm - tbd - remap - localization-strings - clang-header - swiftsourceinfo - assembly - unknown type: string x-struct: x-validate: required: - node_id - checksum - size - duration - compressed_size - operation type: object x-struct: x-validate: type: array x-struct: x-validate: category: description: The category of the build run, can be clean or incremental. enum: - clean - incremental type: string x-struct: x-validate: ci_host: description: The CI host URL (optional, for self-hosted instances). type: string x-struct: x-validate: ci_project_handle: description: "The CI project handle (e.g., 'owner/repo' for GitHub, project path for GitLab)." type: string x-struct: x-validate: ci_provider: description: The CI provider. enum: - github - gitlab - bitrise - circleci - buildkite - codemagic type: string x-struct: x-validate: ci_run_id: description: The CI run identifier (e.g., GitHub Actions run ID, GitLab pipeline ID). type: string x-struct: x-validate: configuration: description: The build configuration (e.g., Debug, Release). type: string x-struct: x-validate: duration: description: Duration of the run in milliseconds. type: integer x-struct: x-validate: files: description: Compiled files associated with the build run. items: properties: compilation_duration: description: The duration of the compilation for the file in milliseconds. type: integer x-struct: x-validate: path: description: The file path where the issue occurred, relative to the project root. type: string x-struct: x-validate: project: description: The project name associated with the file. type: string x-struct: x-validate: target: description: The target name associated with the file. type: string x-struct: x-validate: type: description: The type of the file. enum: - swift - c type: string x-struct: x-validate: required: - type - target - project - path - compilation_duration type: object x-struct: x-validate: type: array x-struct: x-validate: git_branch: description: The git branch. type: string x-struct: x-validate: git_commit_sha: description: The commit SHA. type: string x-struct: x-validate: git_ref: description: The git reference. type: string x-struct: x-validate: git_remote_url_origin: description: The git remote URL origin. type: string x-struct: x-validate: id: description: UUID of a run generated by the system. type: string x-struct: x-validate: is_ci: description: Indicates if the run was executed on a Continuous Integration (CI) system. type: boolean x-struct: x-validate: issues: description: The build issues associated with the build run. items: properties: ending_column: description: The ending column number of the issue. type: integer x-struct: x-validate: ending_line: description: The ending line number of the issue. type: integer x-struct: x-validate: message: description: The detailed message of the issue. type: string x-struct: x-validate: path: description: The file path where the issue occurred, relative to the project root. type: string x-struct: x-validate: project: description: The project name associated with the issue. type: string x-struct: x-validate: signature: description: The signature of the issue. type: string x-struct: x-validate: starting_column: description: The starting column number of the issue. type: integer x-struct: x-validate: starting_line: description: The starting line number of the issue. type: integer x-struct: x-validate: step_type: description: The step type where the issue occurred, such as swift_compilation. enum: - c_compilation - swift_compilation - script_execution - create_static_library - linker - copy_swift_libs - compile_assets_catalog - compile_storyboard - write_auxiliary_file - link_storyboards - copy_resource_file - merge_swift_module - xib_compilation - swift_aggregated_compilation - precompile_bridging_header - other - validate_embedded_binary - validate type: string x-struct: x-validate: target: description: The target name associated with the issue. type: string x-struct: x-validate: title: description: The title of the build issue. type: string x-struct: x-validate: type: description: The type of the issue. enum: - warning - error type: string x-struct: x-validate: required: - type - target - project - title - signature - step_type - starting_line - ending_line - starting_column - ending_column type: object x-struct: x-validate: type: array x-struct: x-validate: macos_version: description: The version of macOS used during the run. type: string x-struct: x-validate: model_identifier: description: Identifier for the model where the run was executed, such as MacBookAir10,1. type: string x-struct: x-validate: scheme: description: The scheme used for the build. type: string x-struct: x-validate: status: description: The status of the build run. enum: - success - failure type: string x-struct: x-validate: targets: description: Targets with build metadata associated with the build run. items: properties: build_duration: description: The build duration for the target in milliseconds. type: integer x-struct: x-validate: compilation_duration: description: The duration of the compilation for the target in milliseconds. type: integer x-struct: x-validate: name: description: The target name. type: string x-struct: x-validate: project: description: The target's project name. type: string x-struct: x-validate: status: description: The status of the target's build. enum: - success - failure type: string x-struct: x-validate: required: - name - project - build_duration - compilation_duration - status type: object x-struct: x-validate: type: array x-struct: x-validate: type: description: "The type of the run, which is 'build' in this case." enum: - build type: string x-struct: x-validate: xcode_version: description: The version of Xcode used during the run. type: string x-struct: x-validate: required: - id - duration - is_ci title: BuildRun type: object x-struct: x-validate: OIDCTokenExchangeRequest: properties: token: description: The OIDC JWT token from the CI provider. type: string x-struct: x-validate: required: - token title: OIDCTokenExchangeRequest type: object x-struct: x-validate: RunsTest: description: Represents a single test run. properties: duration: description: The duration of the test run in milliseconds type: integer x-struct: x-validate: id: description: The unique identifier of the test run type: string x-struct: x-validate: project_id: description: The ID of the Tuist project associated with this test run type: integer x-struct: x-validate: type: description: "The type of the run, which is 'test' in this case" enum: - test type: string x-struct: x-validate: url: description: The URL to access the test run type: string x-struct: x-validate: required: - type - id - duration - project_id - url title: RunsTest type: object x-struct: Elixir.TuistWeb.API.Schemas.Runs.Test x-validate: PaginationMetadata: description: Pagination metadata. properties: current_page: description: Current page number. Always `nil` when using cursor-based pagination. type: integer x-struct: x-validate: has_next_page: description: Whether there are more pages available. type: boolean x-struct: x-validate: has_previous_page: description: Whether there are previous pages available. type: boolean x-struct: x-validate: page_size: description: Number of items per page. type: integer x-struct: x-validate: total_count: description: Total number of items. type: integer x-struct: x-validate: total_pages: description: Total number of pages. Always `nil` when using cursor-based pagination. type: integer x-struct: x-validate: required: - has_next_page - has_previous_page - page_size - total_count title: PaginationMetadata type: object x-struct: Elixir.TuistWeb.API.Schemas.PaginationMetadata x-validate: AuthenticationTokens: description: A pair of access token to authenticate requests and refresh token to generate new access tokens when they expire. properties: access_token: description: API access token. type: string x-struct: x-validate: refresh_token: description: A token to generate new API access tokens when they expire. type: string x-struct: x-validate: required: - access_token - refresh_token title: AuthenticationTokens type: object x-struct: Elixir.TuistWeb.API.Schemas.AuthenticationTokens x-validate: CreateAccountToken: description: The request to create a new account token. properties: expires_at: description: Optional expiration datetime (ISO8601). If not set, the token never expires. format: date-time type: string x-struct: x-validate: name: description: Unique name for the token. Must contain only alphanumeric characters, hyphens, and underscores (1-32 characters). type: string x-struct: x-validate: project_handles: description: List of project handles to restrict access to. If not provided, the token has access to all projects. items: type: string x-struct: x-validate: type: array x-struct: x-validate: scopes: description: The scopes for the new account token. example: - project:cache:read - project:builds:write items: description: A scope string in format entity:object:access_level. enum: - ci - account:members:read - account:members:write - account:registry:read - account:registry:write - project:previews:read - project:previews:write - project:admin:read - project:admin:write - project:cache:read - project:cache:write - project:bundles:read - project:bundles:write - project:tests:read - project:tests:write - project:builds:read - project:builds:write - project:runs:read - project:runs:write type: string x-struct: x-validate: type: array x-struct: x-validate: required: - scopes title: CreateAccountToken type: object x-struct: x-validate: PreviewIndexPageSize: default: 10 description: The maximum number of preview to return in a single page. maximum: 20 minimum: 1 title: PreviewIndexPageSize type: integer x-struct: x-validate: User: description: A user. properties: email: description: The user's email type: string x-struct: x-validate: id: description: The user's unique identifier type: number x-struct: x-validate: name: description: The user's name type: string x-struct: x-validate: required: - id - email - name title: User type: object x-struct: Elixir.TuistWeb.API.Schemas.User x-validate: securitySchemes: authorization: scheme: bearer type: http cookie: in: cookie name: _tuist_cloud_key type: apiKey oauth2: flows: authorizationCode: authorizationUrl: /oauth2/authorize scopes: read: Read access to resources write: Write access to resources tokenUrl: /oauth2/token type: oauth2 info: title: Tuist version: 0.1.0 x-logo: altText: Tuist logo url: http://localhost:8080/images/open-graph/squared.png openapi: 3.0.0 paths: /api/cache/multipart/complete: post: callbacks: {} description: Given the upload ID and all the parts with their ETags, this endpoint completes the multipart upload. The cache will then be able to serve the artifact. operationId: completeCacheArtifactMultipartUpload parameters: - description: The category of the cache. It's used to differentiate between different types of caches. in: query name: cache_category required: false schema: $ref: "#/components/schemas/CacheCategory" - description: "The project identifier '{account_name}/{project_name}'." in: query name: project_id required: true schema: type: string x-struct: x-validate: - description: The hash that uniquely identifies the artifact in the cache. in: query name: hash required: true schema: type: string x-struct: x-validate: - description: The upload ID. in: query name: upload_id required: true schema: type: string x-struct: x-validate: - description: The name of the artifact. in: query name: name required: true schema: type: string x-struct: x-validate: requestBody: content: application/json: schema: properties: parts: items: properties: etag: description: The ETag of the part type: string x-struct: x-validate: part_number: description: The part number type: integer x-struct: x-validate: type: object x-struct: x-validate: type: array x-struct: x-validate: type: object x-struct: x-validate: description: Multi-part upload parts required: false responses: "200": content: application/json: schema: description: This response confirms that the upload has been completed successfully. The cache will now be able to serve the artifact. properties: data: properties: {} type: object x-struct: x-validate: status: default: success enum: - success type: string x-struct: x-validate: title: CacheArtifactMultipartUploadCompletion type: object x-struct: x-validate: description: The upload has been completed "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "402": content: application/json: schema: $ref: "#/components/schemas/Error" description: The account has an invalid plan "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: The project doesn't exist summary: It completes a multi-part upload. tags: - Cache /api/analytics: post: callbacks: {} operationId: createCommandEvent parameters: - description: The project id. in: query name: project_id required: true schema: type: string x-struct: x-validate: requestBody: content: application/json: schema: properties: build_run_id: description: The build run identifier. type: string x-struct: x-validate: client_id: description: The client id of the command. type: string x-struct: x-validate: command_arguments: description: The arguments of the command. items: type: string x-struct: x-validate: type: array x-struct: x-validate: duration: description: The duration of the command. type: integer x-struct: x-validate: error_message: description: The error message of the command. type: string x-struct: x-validate: git_branch: description: The git branch. type: string x-struct: x-validate: git_commit_sha: description: The commit SHA. type: string x-struct: x-validate: git_ref: description: The git ref. When on CI, the value can be equal to remote reference such as `refs/pull/1234/merge`. type: string x-struct: x-validate: git_remote_url_origin: description: The git remote URL origin. type: string x-struct: x-validate: is_ci: description: Whether the command was run in a CI environment. type: boolean x-struct: x-validate: macos_version: description: The version of macOS that ran the command. type: string x-struct: x-validate: name: description: The name of the command. type: string x-struct: x-validate: params: deprecated: true description: Extra parameters. properties: cacheable_targets: description: A list of cacheable targets. items: type: string x-struct: x-validate: type: array x-struct: x-validate: local_cache_target_hits: description: A list of local cache target hits. items: type: string x-struct: x-validate: type: array x-struct: x-validate: local_test_target_hits: description: A list of local targets whose tests were skipped. items: type: string x-struct: x-validate: type: array x-struct: x-validate: remote_cache_target_hits: description: A list of remote cache target hits. items: type: string x-struct: x-validate: type: array x-struct: x-validate: remote_test_target_hits: description: A list of remote targets whose tests were skipped. items: type: string x-struct: x-validate: type: array x-struct: x-validate: test_targets: description: The list of targets that were tested. items: type: string x-struct: x-validate: type: array x-struct: x-validate: type: object x-struct: x-validate: preview_id: description: The preview identifier. type: string x-struct: x-validate: ran_at: description: The date for when the command was run. format: string type: string x-struct: x-validate: status: description: The status of the command. enum: - success - failure type: string x-struct: x-validate: subcommand: description: The subcommand of the command. type: string x-struct: x-validate: swift_version: description: The version of Swift that ran the command. type: string x-struct: x-validate: test_run_id: description: The test run identifier. type: string x-struct: x-validate: tuist_version: description: The version of Tuist that ran the command. type: string x-struct: x-validate: xcode_graph: description: The schema for the Xcode graph. properties: binary_build_duration: description: The estimated time in milliseconds that would take to build the part of the graph that has been replaced as binaries. type: integer x-struct: x-validate: name: description: Name of the Xcode graph type: string x-struct: x-validate: projects: description: Projects present in an Xcode graph items: properties: name: description: Name of the project type: string x-struct: x-validate: path: description: Path of the project type: string x-struct: x-validate: targets: description: Targets present in a project items: properties: binary_cache_metadata: description: Binary cache metadata properties: build_duration: description: The compilation time of a binary in milliseconds. type: integer x-struct: x-validate: hash: description: Hash of the target type: string x-struct: x-validate: hit: description: The binary cache hit status enum: - miss - local - remote type: string x-struct: x-validate: subhashes: description: Individual component hashes that make up the final hash properties: additional_strings: description: Additional strings used in the hash items: type: string x-struct: x-validate: type: array x-struct: x-validate: buildable_folders: description: Buildable folders hash type: string x-struct: x-validate: copy_files: description: Copy files hash type: string x-struct: x-validate: core_data_models: description: Core data models hash type: string x-struct: x-validate: dependencies: description: Dependencies hash type: string x-struct: x-validate: deployment_target: description: Deployment target hash type: string x-struct: x-validate: entitlements: description: Entitlements hash type: string x-struct: x-validate: environment: description: Environment hash type: string x-struct: x-validate: external: description: External project hash type: string x-struct: x-validate: headers: description: Headers hash type: string x-struct: x-validate: info_plist: description: Info.plist hash type: string x-struct: x-validate: project_settings: description: Project settings hash type: string x-struct: x-validate: resources: description: Resources hash type: string x-struct: x-validate: sources: description: Sources hash type: string x-struct: x-validate: target_scripts: description: Target scripts hash type: string x-struct: x-validate: target_settings: description: Target settings hash type: string x-struct: x-validate: type: object x-struct: x-validate: required: - hash - hit type: object x-struct: x-validate: bundle_id: description: Bundle ID of the target type: string x-struct: x-validate: destinations: description: Destinations for the target items: enum: - iphone - ipad - mac - mac_with_ipad_design - mac_catalyst - apple_watch - apple_tv - apple_vision - apple_vision_with_ipad_design type: string x-struct: x-validate: type: array x-struct: x-validate: name: description: Name of the target type: string x-struct: x-validate: product: description: Product type of the target enum: - app - static_library - dynamic_library - framework - static_framework - unit_tests - ui_tests - bundle - command_line_tool - app_extension - watch_2_app - watch_2_extension - tv_top_shelf_extension - messages_extension - sticker_pack_extension - app_clip - xpc - system_extension - extension_kit_extension - macro type: string x-struct: x-validate: product_name: description: Product name of the target type: string x-struct: x-validate: selective_testing_metadata: description: Selective testing metadata properties: hash: description: Hash of the target type: string x-struct: x-validate: hit: description: The selective testing hit status enum: - miss - local - remote type: string x-struct: x-validate: required: - hash - hit type: object x-struct: x-validate: required: - name type: object x-struct: x-validate: type: array x-struct: x-validate: required: - name - path - targets x-struct: x-validate: type: array x-struct: x-validate: required: - name - projects type: object x-struct: x-validate: required: - name - duration - tuist_version - swift_version - macos_version - is_ci - client_id type: object x-struct: x-validate: description: Run params required: false responses: "200": content: application/json: schema: $ref: "#/components/schemas/CommandEvent" description: The run was created "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: You don't have permission to create runs for the project. summary: Create a a new command analytics event tags: - Analytics /api/projects/{account_handle}/{project_handle}/previews/start: post: callbacks: {} description: The endpoint returns an upload ID that can be used to generate URLs for the individual parts and complete the upload. operationId: startPreviewsMultipartUpload parameters: - description: The handle of the account. in: path name: account_handle required: true schema: type: string x-struct: x-validate: - description: The handle of the project. in: path name: project_handle required: true schema: type: string x-struct: x-validate: requestBody: content: application/json: schema: properties: binary_id: description: The Mach-O UUID of the binary. type: string x-struct: x-validate: build_version: description: The CFBundleVersion of the app. type: string x-struct: x-validate: bundle_identifier: description: The bundle identifier of the preview. type: string x-struct: x-validate: display_name: description: The display name of the preview. type: string x-struct: x-validate: git_branch: description: The git branch associated with the preview. type: string x-struct: x-validate: git_commit_sha: description: The git commit SHA associated with the preview. type: string x-struct: x-validate: git_ref: description: The git ref associated with the preview. type: string x-struct: x-validate: supported_platforms: description: The supported platforms of the preview. items: $ref: "#/components/schemas/PreviewSupportedPlatform" type: array x-struct: x-validate: type: default: app_bundle description: The type of the preview to upload. enum: - app_bundle - ipa type: string x-struct: x-validate: version: description: The version of the preview. type: string x-struct: x-validate: type: object x-struct: x-validate: description: Preview upload request params required: false responses: "200": content: application/json: schema: description: The upload has been initiated and preview and upload unique identifier are returned to upload the various parts using multi-part uploads properties: data: description: Data that contains preview and upload unique identifier associated with the multipart upload to use when uploading parts properties: app_build_id: description: The id of the app build. type: string x-struct: x-validate: preview_id: deprecated: true description: The id of the preview. type: string x-struct: x-validate: upload_id: description: The upload ID type: string x-struct: x-validate: required: - upload_id - app_build_id type: object x-struct: x-validate: status: default: success enum: - success type: string x-struct: x-validate: required: - status - data title: PreviewArtifactUpload type: object x-struct: x-validate: description: The upload has been started "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: The project doesn't exist "409": content: application/json: schema: $ref: "#/components/schemas/Error" description: An app build with the same binary ID and build version already exists summary: It initiates a multipart upload for a preview artifact. tags: - Previews /api/auth: post: callbacks: {} description: This endpoint returns API tokens for a given email and password. operationId: authenticate parameters: [] requestBody: content: application/json: schema: properties: email: description: The email to authenticate with. type: string x-struct: x-validate: password: description: The password to authenticate with. type: string x-struct: x-validate: required: - email - password type: object x-struct: x-validate: description: Authentication params. required: false responses: "200": content: application/json: schema: $ref: "#/components/schemas/AuthenticationTokens" description: Successfully authenticated and returned new API tokens. "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: Invalid email or password. "429": content: application/json: schema: $ref: "#/components/schemas/Error" description: You've exceeded the rate limit. summary: Authenticate with email and password. tags: - Authentication /api/auth/refresh_token: post: callbacks: {} description: This endpoint returns new tokens for a given refresh token if the refresh token is valid. operationId: refreshToken parameters: [] requestBody: content: application/json: schema: properties: refresh_token: description: User refresh token type: string x-struct: x-validate: required: - refresh_token type: object x-struct: x-validate: description: Token params required: false responses: "200": content: application/json: schema: $ref: "#/components/schemas/AuthenticationTokens" description: Succcessfully generated new API tokens. "400": content: application/json: schema: $ref: "#/components/schemas/Error" description: The token can't be refreshed because it has invalid type "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to issue new tokens summary: Request new tokens. tags: - Authentication /api/projects/{account_handle}/{project_handle}/runs/{run_id}/complete: post: callbacks: {} description: Given the upload ID and all the parts with their ETags, this endpoint completes the multipart upload. operationId: completeAnalyticsArtifactMultipartUploadProject parameters: - description: The handle of the account. in: path name: account_handle required: true schema: type: string x-struct: x-validate: - description: The handle of the project. in: path name: project_handle required: true schema: type: string x-struct: x-validate: - description: The id of the run. in: path name: run_id required: true schema: type: string x-struct: x-validate: requestBody: content: application/json: schema: properties: command_event_artifact: $ref: "#/components/schemas/CommandEventArtifact" multipart_upload_parts: $ref: "#/components/schemas/ArtifactMultipartUploadParts" required: - command_event_artifact - multipart_upload_parts type: object x-struct: x-validate: description: Run artifact multipart upload completion required: false responses: "204": description: The upload has been completed "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: The project doesn't exist "500": content: application/json: schema: $ref: "#/components/schemas/Error" description: An internal server error occurred summary: It completes a multi-part upload tags: - Analytics /api/projects/{account_handle}/{project_handle}/bundles: get: callbacks: {} operationId: listBundles parameters: - description: Page number for pagination. in: query name: page required: false schema: type: integer x-struct: x-validate: - description: The handle of the account. in: path name: account_handle required: true schema: type: string x-struct: x-validate: - description: The handle of the project. in: path name: project_handle required: true schema: type: string x-struct: x-validate: - description: Number of items per page. in: query name: page_size required: false schema: type: integer x-struct: x-validate: - description: Filter bundles by git branch. in: query name: git_branch required: false schema: type: string x-struct: x-validate: responses: "200": content: application/json: schema: properties: bundles: items: $ref: "#/components/schemas/Bundle" type: array x-struct: x-validate: meta: $ref: "#/components/schemas/PaginationMetadata" required: - bundles - meta type: object x-struct: x-validate: description: List of bundles "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to list bundles "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: You are not authorized to list bundles summary: List bundles for a project tags: - Bundles post: callbacks: {} operationId: createBundle parameters: - description: The handle of the account. in: path name: account_handle required: true schema: type: string x-struct: x-validate: - description: The handle of the project. in: path name: project_handle required: true schema: type: string x-struct: x-validate: requestBody: content: application/json: schema: description: Request schema for bundle creation properties: bundle: properties: app_bundle_id: description: The bundle ID of the app type: string x-struct: x-validate: artifacts: description: The artifacts in this bundle items: $ref: "#/components/schemas/BundleArtifact" type: array x-struct: x-validate: download_size: description: The bundle download size in bytes type: integer x-struct: x-validate: git_branch: description: The git branch associated with the bundle. type: string x-struct: x-validate: git_commit_sha: description: The git commit SHA associated with the bundle. type: string x-struct: x-validate: git_ref: description: Git reference of the repository. When run from CI in a pull request, this will be the remote reference to the pull request, such as `refs/pull/23958/merge`. type: string x-struct: x-validate: install_size: description: The bundle install size in bytes type: integer x-struct: x-validate: name: description: The name of the bundle type: string x-struct: x-validate: supported_platforms: description: List of supported platforms items: $ref: "#/components/schemas/BundleSupportedPlatform" type: array x-struct: x-validate: type: description: The type of the bundle enum: - ipa - app - xcarchive type: string x-struct: x-validate: version: description: The version of the bundle type: string x-struct: x-validate: required: - app_bundle_id - name - supported_platforms - version - install_size - artifacts type: object x-struct: x-validate: required: - bundle title: BundleRequest type: object x-struct: x-validate: description: Bundle params required: false responses: "200": content: application/json: schema: $ref: "#/components/schemas/Bundle" description: The bundle was created successfully "400": content: application/json: schema: $ref: "#/components/schemas/ValidationError" description: Validation errors occurred "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to create a bundle "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: You are not authorized to create a bundle summary: Create a new bundle with artifacts tags: - Bundles /api/cache/keyvalue: put: callbacks: {} operationId: putCacheValue parameters: - description: The handle of the project's account. in: query name: account_handle required: true schema: type: string x-struct: x-validate: - description: The handle of the project. in: query name: project_handle required: true schema: type: string x-struct: x-validate: requestBody: content: application/json: schema: properties: cas_id: description: The CAS identifier type: string x-struct: x-validate: entries: description: Map of entry keys to encoded values items: properties: value: description: The value of the entry type: string x-struct: x-validate: required: - value type: object x-struct: x-validate: type: array x-struct: x-validate: required: - cas_id - entries type: object x-struct: x-validate: description: CAS entries with CAS ID required: true responses: "204": description: Value stored successfully "400": content: application/json: schema: $ref: "#/components/schemas/Error" description: The request is invalid "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: The project was not found summary: Store cache key value entries. tags: - KeyValue /api/auth/device_code/{device_code}: get: callbacks: {} description: This endpoint returns a token for a given device code if the device code is authenticated. operationId: getDeviceCode parameters: - description: The device code to query. in: path name: device_code required: true schema: type: string x-struct: x-validate: responses: "200": content: application/json: schema: description: Token to authenticate the user with. properties: access_token: description: A short-lived token to authenticate API requests as user. type: string x-struct: x-validate: refresh_token: description: A token to generate new access tokens when they expire. type: string x-struct: x-validate: token: deprecated: true description: User authentication token type: string x-struct: x-validate: title: DeviceCodeAuthenticationTokens type: object x-struct: x-validate: description: The device code is authenticated "202": content: application/json: schema: type: object x-struct: x-validate: description: The device code is not authenticated "400": content: application/json: schema: $ref: "#/components/schemas/Error" description: The request was not accepted, e.g., when the device code is expired summary: Get a specific device code. tags: - Authentication /api/runs/{run_id}/start: post: callbacks: {} deprecated: true description: The endpoint returns an upload ID that can be used to generate URLs for the individual parts and complete the upload. operationId: startAnalyticsArtifactMultipartUpload parameters: - description: The id of the run UUID. in: path name: run_id required: true schema: type: string x-struct: x-validate: requestBody: content: application/json: schema: $ref: "#/components/schemas/CommandEventArtifact" description: Artifact to upload required: false responses: "200": content: application/json: schema: $ref: "#/components/schemas/ArtifactUploadID" description: The upload has been started "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: The run doesn't exist summary: It initiates a multipart upload for a run artifact tags: - Analytics /api/projects: get: callbacks: {} operationId: listProjects parameters: [] responses: "200": content: application/json: schema: properties: projects: items: $ref: "#/components/schemas/Project" type: array x-struct: x-validate: required: - projects type: object x-struct: x-validate: description: List of projects "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource summary: List projects the authenticated user has access to. tags: - Projects post: callbacks: {} operationId: createProject parameters: [] requestBody: content: application/json: schema: properties: full_handle: description: The full handle of the project that should be created. example: tuist/tuist type: string x-struct: x-validate: name: deprecated: true description: The name of the project that should be created. type: string x-struct: x-validate: organization: deprecated: true description: Organization to create the project with. If not specified, the project will be created with the current user's personal account. type: string x-struct: x-validate: type: object x-struct: x-validate: description: Projects params required: false responses: "200": content: application/json: schema: $ref: "#/components/schemas/Project" description: The project was created "400": content: application/json: schema: $ref: "#/components/schemas/Error" description: The account was not found "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action summary: Create a new project. tags: - Projects /api/projects/{account_handle}/{project_handle}/tokens: get: callbacks: {} description: This endpoint returns all tokens for a given project. operationId: listProjectTokens parameters: - description: The account handle. in: path name: account_handle required: true schema: type: string x-struct: x-validate: - description: The project handle. in: path name: project_handle required: true schema: type: string x-struct: x-validate: responses: "200": content: application/json: schema: description: A list of project tokens. properties: tokens: items: $ref: "#/components/schemas/ProjectToken" type: array x-struct: x-validate: required: - tokens title: Tokens type: object x-struct: x-validate: description: A list of project tokens. "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to list tokens "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authorized to list tokens "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: The project was not found summary: List all project tokens. tags: - Project tokens post: callbacks: {} description: This endpoint returns a new project token. operationId: createProjectToken parameters: - description: The account handle. in: path name: account_handle required: true schema: type: string x-struct: x-validate: - description: The project handle. in: path name: project_handle required: true schema: type: string x-struct: x-validate: responses: "200": content: application/json: schema: description: A new project token. properties: token: description: The generated project token. type: string x-struct: x-validate: required: - token title: ProjectFullToken type: object x-struct: x-validate: description: A project token was generated "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to issue new tokens "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authorized to issue new tokens "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: The project was not found summary: Create a new project token. tags: - Project tokens /api/organizations/{organization_name}/usage: get: callbacks: {} description: Returns the usage of the organization with the given identifier. (e.g. number of remote cache hits) operationId: showOrganizationUsage parameters: - description: The name of the organization to show. in: path name: organization_name required: true schema: type: string x-struct: x-validate: responses: "200": content: application/json: schema: $ref: "#/components/schemas/OrganizationUsage" description: The organization usage "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: The organization with the given name was not found summary: Shows the usage of an organization tags: - Organizations /api/cache/multipart/start: post: callbacks: {} description: The endpoint returns an upload ID that can be used to generate URLs for the individual parts and complete the upload. operationId: startCacheArtifactMultipartUpload parameters: - description: The category of the cache. It's used to differentiate between different types of caches. in: query name: cache_category required: false schema: $ref: "#/components/schemas/CacheCategory" - description: "The project identifier '{account_name}/{project_name}'." in: query name: project_id required: true schema: type: string x-struct: x-validate: - description: The hash that uniquely identifies the artifact in the cache. in: query name: hash required: true schema: type: string x-struct: x-validate: - description: The name of the artifact. in: query name: name required: true schema: type: string x-struct: x-validate: responses: "200": content: application/json: schema: $ref: "#/components/schemas/ArtifactUploadID" description: The upload has been started "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "402": content: application/json: schema: $ref: "#/components/schemas/Error" description: The account has an invalid plan "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: The project doesn't exist summary: It initiates a multipart upload in the cache. tags: - Cache /api/projects/{account_handle}/{project_handle}/cache/ac/{hash}: get: callbacks: {} description: This endpoint gets an item from the action cache. operationId: getCacheActionItem parameters: - description: The name of the account that the project belongs to. in: path name: account_handle required: true schema: type: string x-struct: x-validate: - description: The name of the project the cache action item belongs to. in: path name: project_handle required: true schema: type: string x-struct: x-validate: - description: The hash that uniquely identifies an item in the action cache. in: path name: hash required: true schema: type: string x-struct: x-validate: responses: "200": content: application/json: schema: $ref: "#/components/schemas/CacheActionItem" description: The item exists in the action cache "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "402": content: application/json: schema: $ref: "#/components/schemas/Error" description: The account has an invalid plan "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: The item doesn't exist in the actino cache summary: Get a cache action item. tags: - Cache /api/projects/{account_handle}/{project_handle}/runs/{run_id}/complete_artifacts_uploads: put: callbacks: {} description: Given a run, it marks all artifact uploads as finished and does extra processing of a given command run, such as test flakiness detection. operationId: completeAnalyticsArtifactsUploadsProject parameters: - description: The handle of the account. in: path name: account_handle required: true schema: type: string x-struct: x-validate: - description: The handle of the project. in: path name: project_handle required: true schema: type: string x-struct: x-validate: - description: The id of the run. in: path name: run_id required: true schema: type: string x-struct: x-validate: requestBody: content: application/json: schema: properties: {} type: object x-struct: x-validate: description: Extra metadata for the post-processing of a command event. required: false responses: "204": description: The run artifact uploads were successfully finished "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: The run doesn't exist summary: Completes artifacts uploads for a given run tags: - Analytics /api/cache/multipart/generate-url: post: callbacks: {} description: Given an upload ID and a part number, this endpoint returns a signed URL that can be used to upload a part of a multipart upload. The URL is short-lived and expires in 120 seconds. operationId: generateCacheArtifactMultipartUploadURL parameters: - description: The category of the cache. It's used to differentiate between different types of caches. in: query name: cache_category required: false schema: $ref: "#/components/schemas/CacheCategory" - description: The size in bytes of the part that will be uploaded. It's used to generate the signed URL. in: query name: content_length required: false schema: type: integer x-struct: x-validate: - description: "The project identifier '{account_name}/{project_name}'." in: query name: project_id required: true schema: type: string x-struct: x-validate: - description: The hash that uniquely identifies the artifact in the cache. in: query name: hash required: true schema: type: string x-struct: x-validate: - description: The part number of the multipart upload. in: query name: part_number required: true schema: type: integer x-struct: x-validate: - description: The upload ID. in: query name: upload_id required: true schema: type: string x-struct: x-validate: - description: The name of the artifact. in: query name: name required: true schema: type: string x-struct: x-validate: responses: "200": content: application/json: schema: $ref: "#/components/schemas/ArtifactMultipartUploadURL" description: The URL has been generated "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "402": content: application/json: schema: $ref: "#/components/schemas/Error" description: The account has an invalid plan "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: The project doesn't exist summary: It generates a signed URL for uploading a part. tags: - Cache /api/projects/{account_handle}/{project_handle}/previews/latest: get: callbacks: {} description: Given a binary ID (Mach-O UUID) and build version (CFBundleVersion), returns the latest preview on the same track (bundle identifier and git branch). Returns nil if no matching build is found. operationId: getLatestPreview parameters: - description: The handle of the account. in: path name: account_handle required: true schema: type: string x-struct: x-validate: - description: The handle of the project. in: path name: project_handle required: true schema: type: string x-struct: x-validate: - description: The Mach-O UUID of the running binary. in: query name: binary_id required: true schema: type: string x-struct: x-validate: - description: The CFBundleVersion of the running app. in: query name: build_version required: true schema: type: string x-struct: x-validate: responses: "200": content: application/json: schema: properties: preview: $ref: "#/components/schemas/Preview" title: LatestPreviewResponse type: object x-struct: x-validate: description: The latest preview on the same track, or null if not found. "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action summary: Get the latest preview for a binary. tags: - Previews /api/projects/{account_handle}/{project_handle}/runs/{run_id}/generate-url: post: callbacks: {} description: Given an upload ID and a part number, this endpoint returns a signed URL that can be used to upload a part of a multipart upload. The URL is short-lived and expires in 120 seconds. operationId: generateAnalyticsArtifactMultipartUploadURLProject parameters: - description: The handle of the account. in: path name: account_handle required: true schema: type: string x-struct: x-validate: - description: The handle of the project. in: path name: project_handle required: true schema: type: string x-struct: x-validate: - description: The id of the run. in: path name: run_id required: true schema: type: string x-struct: x-validate: requestBody: content: application/json: schema: properties: command_event_artifact: $ref: "#/components/schemas/CommandEventArtifact" multipart_upload_part: $ref: "#/components/schemas/ArtifactMultipartUploadPart" required: - command_event_artifact - multipart_upload_part type: object x-struct: x-validate: description: Artifact to generate a signed URL for required: false responses: "200": content: application/json: schema: $ref: "#/components/schemas/ArtifactMultipartUploadURL" description: The URL has been generated "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: The project doesn't exist summary: It generates a signed URL for uploading a part tags: - Analytics /api/projects/{account_handle}/{project_handle}/runs/{run_id}/start: post: callbacks: {} description: The endpoint returns an upload ID that can be used to generate URLs for the individual parts and complete the upload. operationId: startAnalyticsArtifactMultipartUploadProject parameters: - description: The handle of the account. in: path name: account_handle required: true schema: type: string x-struct: x-validate: - description: The handle of the project. in: path name: project_handle required: true schema: type: string x-struct: x-validate: - description: The id of the run. in: path name: run_id required: true schema: type: string x-struct: x-validate: requestBody: content: application/json: schema: $ref: "#/components/schemas/CommandEventArtifact" description: Artifact to upload required: false responses: "200": content: application/json: schema: $ref: "#/components/schemas/ArtifactUploadID" description: The upload has been started "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: The run doesn't exist summary: It initiates a multipart upload for a run artifact tags: - Analytics /api/auth/apple: post: callbacks: {} description: This endpoint returns API tokens for a given Apple identity token and authorization code from the first-party Tuist iOS app. operationId: authenticateApple parameters: [] requestBody: content: application/json: schema: properties: authorization_code: description: The Apple authorization code. type: string x-struct: x-validate: identity_token: description: The Apple identity token. type: string x-struct: x-validate: required: - identity_token - authorization_code type: object x-struct: x-validate: description: Apple authentication params. required: false responses: "200": content: application/json: schema: $ref: "#/components/schemas/AuthenticationTokens" description: Successfully authenticated and returned new API tokens. "400": content: application/json: schema: $ref: "#/components/schemas/Error" description: Invalid request parameters. "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: Invalid Apple identity token or authorization code. summary: Authenticate with Apple identity token. tags: - Authentication /api/auth/oidc/token: post: callbacks: {} description: | Exchange an OIDC token from a supported CI provider (GitHub Actions, CircleCI, or Bitrise) for a short-lived Tuist access token. operationId: exchangeOIDCToken parameters: [] requestBody: content: application/json: schema: properties: token: description: The OIDC JWT token from the CI provider. type: string x-struct: x-validate: required: - token title: OIDCTokenExchangeRequest type: object x-struct: x-validate: description: OIDC token exchange request required: false responses: "200": content: application/json: schema: properties: access_token: description: The Tuist access token to use for API requests. type: string x-struct: x-validate: expires_in: description: Token lifetime in seconds. type: integer x-struct: x-validate: required: - access_token - expires_in title: OIDCTokenExchangeResponse type: object x-struct: x-validate: description: Token exchange successful "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: Invalid or expired OIDC token "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: No projects linked to the repository summary: Exchange a CI provider OIDC token for a Tuist access token. tags: - OIDC Authentication /api/projects/{account_handle}/{project_handle}/cache/ac: post: callbacks: {} description: The endpoint caches a given action item without uploading a file. To upload files, use the multipart upload instead. operationId: uploadCacheActionItem parameters: - description: The name of the account that the project belongs to. in: path name: account_handle required: true schema: type: string x-struct: x-validate: - description: The name of the project to clean cache for in: path name: project_handle required: true schema: type: string x-struct: x-validate: requestBody: content: application/json: schema: properties: hash: description: The hash of the cache action item. type: string x-struct: x-validate: title: CacheActionItemUploadParams type: object x-struct: x-validate: description: Cache action item upload params required: false responses: "200": content: application/json: schema: $ref: "#/components/schemas/CacheActionItem" description: The request is valid but the cache action item already exists "201": content: application/json: schema: $ref: "#/components/schemas/CacheActionItem" description: The action item was cached "400": content: application/json: schema: $ref: "#/components/schemas/Error" description: The request has missing or invalid parameters "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "402": content: application/json: schema: $ref: "#/components/schemas/Error" description: The account has an invalid plan "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: The project doesn't exist summary: It uploads a given cache action item. tags: - Cache /api/organizations/{organization_name}: delete: callbacks: {} deprecated: true description: Deletes the organization with the given name. operationId: deleteOrganization parameters: - description: The name of the organization to delete. in: path name: organization_name required: true schema: type: string x-struct: x-validate: responses: "204": description: The organization was deleted "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: The organization with the given name was not found summary: Deletes an organization tags: - Organizations get: callbacks: {} description: Returns the organization with the given identifier. operationId: showOrganization parameters: - description: The name of the organization to show. in: path name: organization_name required: true schema: type: string x-struct: x-validate: responses: "200": content: application/json: schema: $ref: "#/components/schemas/Organization" description: The organization "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: The organization with the given name was not found summary: Shows an organization tags: - Organizations patch: callbacks: {} description: Updates an organization with given parameters. operationId: updateOrganization (2) parameters: - description: The name of the organization to update. in: path name: organization_name required: true schema: type: string x-struct: x-validate: requestBody: content: application/json: schema: properties: sso_organization_id: description: The SSO organization ID to be associated with the SSO provider nullable: true type: string x-struct: x-validate: sso_provider: description: The SSO provider to set up for the organization enum: - google - okta - none type: string x-struct: x-validate: type: object x-struct: x-validate: description: Organization update params required: false responses: "200": content: application/json: schema: $ref: "#/components/schemas/Organization" description: The organization "400": content: application/json: schema: $ref: "#/components/schemas/Error" description: The organization could not be updated due to a validation error "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: The organization with the given name was not found summary: Updates an organization tags: - Organizations put: callbacks: {} description: Updates an organization with given parameters. operationId: updateOrganization parameters: - description: The name of the organization to update. in: path name: organization_name required: true schema: type: string x-struct: x-validate: requestBody: content: application/json: schema: properties: sso_organization_id: description: The SSO organization ID to be associated with the SSO provider nullable: true type: string x-struct: x-validate: sso_provider: description: The SSO provider to set up for the organization enum: - google - okta - none type: string x-struct: x-validate: type: object x-struct: x-validate: description: Organization update params required: false responses: "200": content: application/json: schema: $ref: "#/components/schemas/Organization" description: The organization "400": content: application/json: schema: $ref: "#/components/schemas/Error" description: The organization could not be updated due to a validation error "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: The organization with the given name was not found summary: Updates an organization tags: - Organizations /api/projects/{account_handle}/{project_handle}/previews/generate-url: post: callbacks: {} description: Given an upload ID and a part number, this endpoint returns a signed URL that can be used to upload a part of a multipart upload. The URL is short-lived and expires in 120 seconds. operationId: generatePreviewsMultipartUploadURL parameters: - description: The handle of the account. in: path name: account_handle required: true schema: type: string x-struct: x-validate: - description: The handle of the project. in: path name: project_handle required: true schema: type: string x-struct: x-validate: requestBody: content: application/json: schema: properties: app_build_id: description: The id of the app build. type: string x-struct: x-validate: multipart_upload_part: $ref: "#/components/schemas/ArtifactMultipartUploadPart" preview_id: deprecated: true description: The id of the preview. type: string x-struct: x-validate: required: - multipart_upload_part - preview_id type: object x-struct: x-validate: description: Artifact to generate a signed URL for required: false responses: "200": content: application/json: schema: $ref: "#/components/schemas/ArtifactMultipartUploadURL" description: The URL has been generated "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: The project doesn't exist summary: It generates a signed URL for uploading a part. tags: - Previews /api/projects/{account_handle}/{project_handle}/bundles/{bundle_id}: get: callbacks: {} operationId: getBundle parameters: - description: The handle of the account. in: path name: account_handle required: true schema: type: string x-struct: x-validate: - description: The handle of the project. in: path name: project_handle required: true schema: type: string x-struct: x-validate: - description: The ID of the bundle. in: path name: bundle_id required: true schema: format: uuid type: string x-struct: x-validate: responses: "200": content: application/json: schema: $ref: "#/components/schemas/Bundle" description: Bundle details "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to view this bundle "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: You are not authorized to view this bundle "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: Bundle not found "422": content: application/json: schema: $ref: "#/components/schemas/Error" description: Invalid request parameters summary: Get a single bundle by ID tags: - Bundles /api/accounts/{account_handle}/tokens: get: callbacks: {} description: This endpoint returns all tokens for a given account with pagination support. operationId: listAccountTokens parameters: - description: The account handle. in: path name: account_handle required: true schema: type: string x-struct: x-validate: - description: Page number for pagination. in: query name: page required: false schema: type: integer x-struct: x-validate: - description: Number of items per page. in: query name: page_size required: false schema: type: integer x-struct: x-validate: responses: "200": content: application/json: schema: properties: meta: $ref: "#/components/schemas/PaginationMetadata" tokens: items: properties: all_projects: description: Whether token has access to all projects. type: boolean x-struct: x-validate: expires_at: description: When the token expires. format: date-time nullable: true type: string x-struct: x-validate: id: description: Token unique identifier. type: string x-struct: x-validate: inserted_at: description: When the token was created. format: date-time type: string x-struct: x-validate: name: description: Friendly name for the token. nullable: true type: string x-struct: x-validate: project_handles: description: List of project handles the token can access (when all_projects is false). items: type: string x-struct: x-validate: type: array x-struct: x-validate: scopes: description: Token scopes. items: enum: - ci - account:members:read - account:members:write - account:registry:read - account:registry:write - project:previews:read - project:previews:write - project:admin:read - project:admin:write - project:cache:read - project:cache:write - project:bundles:read - project:bundles:write - project:tests:read - project:tests:write - project:builds:read - project:builds:write - project:runs:read - project:runs:write type: string x-struct: x-validate: type: array x-struct: x-validate: required: - id - scopes - all_projects - inserted_at type: object x-struct: x-validate: type: array x-struct: x-validate: required: - tokens - meta title: AccountTokens type: object x-struct: x-validate: description: A list of account tokens. "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to list tokens "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authorized to list tokens "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: The account was not found summary: List all account tokens. tags: - Account tokens post: callbacks: {} description: This endpoint returns a new fine-grained account token with specified scopes and optional project restrictions. operationId: createAccountToken parameters: - description: The account handle. in: path name: account_handle required: true schema: type: string x-struct: x-validate: requestBody: content: application/json: schema: description: The request to create a new account token. properties: expires_at: description: Optional expiration datetime (ISO8601). If not set, the token never expires. format: date-time type: string x-struct: x-validate: name: description: Unique name for the token. Must contain only alphanumeric characters, hyphens, and underscores (1-32 characters). type: string x-struct: x-validate: project_handles: description: List of project handles to restrict access to. If not provided, the token has access to all projects. items: type: string x-struct: x-validate: type: array x-struct: x-validate: scopes: description: The scopes for the new account token. example: - project:cache:read - project:builds:write items: description: A scope string in format entity:object:access_level. enum: - ci - account:members:read - account:members:write - account:registry:read - account:registry:write - project:previews:read - project:previews:write - project:admin:read - project:admin:write - project:cache:read - project:cache:write - project:bundles:read - project:bundles:write - project:tests:read - project:tests:write - project:builds:read - project:builds:write - project:runs:read - project:runs:write type: string x-struct: x-validate: type: array x-struct: x-validate: required: - scopes title: CreateAccountToken type: object x-struct: x-validate: description: Create account token params required: false responses: "200": content: application/json: schema: description: A newly created account token. properties: expires_at: description: When the token expires, if set. format: date-time nullable: true type: string x-struct: x-validate: id: description: The token unique identifier. type: string x-struct: x-validate: token: description: The generated account token. Store this securely - it cannot be retrieved again. type: string x-struct: x-validate: required: - token - id title: AccountTokenCreated type: object x-struct: x-validate: description: An account token was generated "400": content: application/json: schema: $ref: "#/components/schemas/Error" description: The request is invalid "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to issue new tokens "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authorized to issue new tokens "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: The account or project was not found summary: Create a new account token. tags: - Account tokens /api/runs/{run_id}/generate-url: post: callbacks: {} deprecated: true description: Given an upload ID and a part number, this endpoint returns a signed URL that can be used to upload a part of a multipart upload. The URL is short-lived and expires in 120 seconds. operationId: generateAnalyticsArtifactMultipartUploadURL parameters: - description: The id of the run. in: path name: run_id required: true schema: type: string x-struct: x-validate: requestBody: content: application/json: schema: properties: command_event_artifact: $ref: "#/components/schemas/CommandEventArtifact" multipart_upload_part: $ref: "#/components/schemas/ArtifactMultipartUploadPart" required: - command_event_artifact - multipart_upload_part type: object x-struct: x-validate: description: Artifact to generate a signed URL for required: false responses: "200": content: application/json: schema: $ref: "#/components/schemas/ArtifactMultipartUploadURL" description: The URL has been generated "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: The project doesn't exist summary: It generates a signed URL for uploading a part. tags: - Analytics /api/projects/{account_handle}/{project_handle}/cache/clean: put: callbacks: {} operationId: cleanCache parameters: - description: The name of the account that the project belongs to. in: path name: account_handle required: true schema: type: string x-struct: x-validate: - description: The name of the project to clean cache for in: path name: project_handle required: true schema: type: string x-struct: x-validate: responses: "204": description: The cache has been successfully cleaned "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: The project was not found summary: Cleans cache for a given project tags: - Cache /api/accounts/{account_handle}/tokens/{token_name}: delete: callbacks: {} description: This endpoint revokes (deletes) an account token by name. operationId: revokeAccountToken parameters: - description: The account handle. in: path name: account_handle required: true schema: type: string x-struct: x-validate: - description: The token name to revoke. in: path name: token_name required: true schema: type: string x-struct: x-validate: responses: "204": description: The account token was revoked "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to revoke tokens "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authorized to revoke tokens "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: The token was not found summary: Revoke an account token. tags: - Account tokens /api/organizations/{organization_name}/invitations: delete: callbacks: {} description: Cancels an invitation for a given invitee email and an organization. operationId: cancelInvitation parameters: - description: The name of the organization. in: path name: organization_name required: true schema: type: string x-struct: x-validate: requestBody: content: application/json: schema: properties: invitee_email: description: The email of the invitee. type: string x-struct: x-validate: required: - invitee_email type: object x-struct: x-validate: description: Invitation params required: false responses: "204": description: The invitation was cancelled "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: The invitation with the given invitee email and organization name was not found summary: Cancels an invitation tags: - Invitations post: callbacks: {} description: Invites a user with a given email to a given organization. operationId: createInvitation parameters: - description: The name of the organization. in: path name: organization_name required: true schema: type: string x-struct: x-validate: requestBody: content: application/json: schema: properties: invitee_email: description: The email of the invitee. type: string x-struct: x-validate: required: - invitee_email type: object x-struct: x-validate: description: Invitation params required: false responses: "200": content: application/json: schema: $ref: "#/components/schemas/Invitation" description: The user was invited "400": content: application/json: schema: $ref: "#/components/schemas/Error" description: The user could not be invited due to a validation error "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: The organization was not found summary: Creates an invitation tags: - Invitations /api/cache/cas/{id}: get: callbacks: {} operationId: loadCacheCAS parameters: - description: The handle of the project's account. in: query name: account_handle required: true schema: type: string x-struct: x-validate: - description: The handle of the project. in: query name: project_handle required: true schema: type: string x-struct: x-validate: - description: The artifact identifier. in: path name: id required: true schema: type: string x-struct: x-validate: responses: "200": content: application/octet-stream: {} description: Artifact content stream "400": content: application/json: schema: $ref: "#/components/schemas/Error" description: The request is invalid "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: Artifact does not exist summary: Download a CAS artifact. tags: - CAS post: callbacks: {} operationId: saveCacheCAS parameters: - description: The handle of the project's account. in: query name: account_handle required: true schema: type: string x-struct: x-validate: - description: The handle of the project. in: query name: project_handle required: true schema: type: string x-struct: x-validate: - description: The artifact identifier. in: path name: id required: true schema: type: string x-struct: x-validate: requestBody: content: application/octet-stream: {} description: The CAS artifact data required: true responses: "204": description: Upload successful "400": content: application/json: schema: $ref: "#/components/schemas/Error" description: The request is invalid "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action summary: Save a CAS artifact tags: - CAS /api/projects/{account_handle}/{project_handle}/previews: get: callbacks: {} description: This endpoint returns a list of previews for a given project. operationId: listPreviews parameters: - description: The handle of the account. in: path name: account_handle required: true schema: type: string x-struct: x-validate: - description: The handle of the project. in: path name: project_handle required: true schema: type: string x-struct: x-validate: - description: The display name of previews. in: query name: display_name required: false schema: type: string x-struct: x-validate: - description: The preview version specifier. Currently, accepts a commit SHA, branch name, or latest. in: query name: specifier required: false schema: type: string x-struct: x-validate: - description: "" in: query name: supported_platforms required: false schema: description: The supported platforms of the preview. items: $ref: "#/components/schemas/PreviewSupportedPlatform" type: array x-struct: x-validate: - description: "" in: query name: page_size required: false schema: default: 10 description: The maximum number of preview to return in a single page. maximum: 20 minimum: 1 title: PreviewIndexPageSize type: integer x-struct: x-validate: - description: "" in: query name: page required: false schema: default: 1 description: The page number to return. minimum: 1 title: PreviewIndexPage type: integer x-struct: x-validate: - description: Distinct fields – no two previews will be returned with this field having the same value. in: query name: distinct_field required: false schema: enum: - bundle_identifier type: string x-struct: x-validate: responses: "200": content: application/json: schema: properties: pagination_metadata: $ref: "#/components/schemas/PaginationMetadata" previews: description: Previews list. items: $ref: "#/components/schemas/Preview" type: array x-struct: x-validate: required: - previews - pagination_metadata title: PreviewsIndex type: object x-struct: x-validate: description: Successful response for listing previews. "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action summary: List previews. tags: - Previews /api/cache: get: callbacks: {} description: This endpoint returns a signed URL that can be used to download an artifact from the cache. operationId: downloadCacheArtifact parameters: - description: The category of the cache. It's used to differentiate between different types of caches. in: query name: cache_category required: false schema: $ref: "#/components/schemas/CacheCategory" - description: "The project identifier '{account_name}/{project_name}'." in: query name: project_id required: true schema: type: string x-struct: x-validate: - description: The hash that uniquely identifies the artifact in the cache. in: query name: hash required: true schema: type: string x-struct: x-validate: - description: The name of the artifact. in: query name: name required: true schema: type: string x-struct: x-validate: responses: "200": content: application/json: schema: $ref: "#/components/schemas/CacheArtifactDownloadURL" description: The artifact exists and is downloadable "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "402": content: application/json: schema: $ref: "#/components/schemas/Error" description: The account has an invalid plan "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: The project or the cache artifact doesn't exist summary: Downloads an artifact from the cache. tags: - Cache /api/cache/keyvalue/{cas_id}: get: callbacks: {} operationId: getCacheValue parameters: - description: The CAS identifier. in: path name: cas_id required: true schema: type: string x-struct: x-validate: - description: The handle of the project's account. in: query name: account_handle required: true schema: type: string x-struct: x-validate: - description: The handle of the project. in: query name: project_handle required: true schema: type: string x-struct: x-validate: responses: "200": content: application/json: schema: properties: entries: items: properties: value: description: The value of the entry type: string x-struct: x-validate: required: - value type: object x-struct: x-validate: type: array x-struct: x-validate: required: - entries type: object x-struct: x-validate: description: Cache value retrieved successfully "400": content: application/json: schema: $ref: "#/components/schemas/Error" description: The request is invalid "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: No entries found for the given CAS ID summary: Get cache value. tags: - KeyValue /api/cache/endpoints: get: callbacks: {} description: This endpoint returns a list of available cache endpoints. operationId: getCacheEndpoints parameters: [] responses: "200": content: application/json: schema: description: List of available cache endpoints properties: endpoints: items: type: string x-struct: x-validate: type: array x-struct: x-validate: required: - endpoints title: CacheEndpoints type: object x-struct: x-validate: description: List of cache endpoints summary: Get cache endpoints. tags: - Cache /api/runs/{run_id}/complete: post: callbacks: {} deprecated: true description: Given the upload ID and all the parts with their ETags, this endpoint completes the multipart upload. operationId: completeAnalyticsArtifactMultipartUpload parameters: - description: The id of the run. in: path name: run_id required: true schema: type: string x-struct: x-validate: requestBody: content: application/json: schema: properties: command_event_artifact: $ref: "#/components/schemas/CommandEventArtifact" multipart_upload_parts: $ref: "#/components/schemas/ArtifactMultipartUploadParts" required: - command_event_artifact - multipart_upload_parts type: object x-struct: x-validate: description: Run artifact multipart upload completion required: false responses: "204": description: The upload has been completed "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: The project doesn't exist "500": content: application/json: schema: $ref: "#/components/schemas/Error" description: An internal server error occurred summary: It completes a multi-part upload. tags: - Analytics /api/organizations: get: callbacks: {} description: Returns all the organizations the authenticated subject is part of. operationId: listOrganizations parameters: [] responses: "200": content: application/json: schema: description: The list of organizations the authenticated subject is part of. properties: organizations: items: $ref: "#/components/schemas/Organization" type: array x-struct: x-validate: required: - organizations title: OrganizationList type: object x-struct: x-validate: description: The list of organizations "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action summary: Lists the organizations tags: - Organizations post: callbacks: {} description: Creates an organization with the given name. operationId: createOrganization parameters: [] requestBody: content: application/json: schema: properties: name: description: The name of the organization that should be created. type: string x-struct: x-validate: required: - name type: object x-struct: x-validate: description: Organization params required: false responses: "200": content: application/json: schema: $ref: "#/components/schemas/Organization" description: The organization was created "400": content: application/json: schema: $ref: "#/components/schemas/Error" description: The organization could not be created due to a validation error summary: Creates an organization tags: - Organizations /api/projects/{account_handle}/{project_handle}/previews/{preview_id}: delete: callbacks: {} description: This endpoint deletes a preview with a given id. operationId: deletePreview parameters: - description: The handle of the account. in: path name: account_handle required: true schema: type: string x-struct: x-validate: - description: The handle of the project. in: path name: project_handle required: true schema: type: string x-struct: x-validate: - description: The id of the preview to delete. in: path name: preview_id required: true schema: type: string x-struct: x-validate: responses: "204": description: The preview was deleted "400": content: application/json: schema: $ref: "#/components/schemas/Error" description: The request is invalid "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: The preview does not exist summary: Deletes a preview. tags: - Previews get: callbacks: {} description: This endpoint returns a preview with a given id, including the url to download the preview. operationId: downloadPreview parameters: - description: The handle of the account. in: path name: account_handle required: true schema: type: string x-struct: x-validate: - description: The handle of the project. in: path name: project_handle required: true schema: type: string x-struct: x-validate: - description: The id of the preview. in: path name: preview_id required: true schema: type: string x-struct: x-validate: responses: "200": content: application/json: schema: $ref: "#/components/schemas/Preview" description: The preview exists and can be downloaded "400": content: application/json: schema: $ref: "#/components/schemas/Error" description: The request is invalid "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: The preview does not exist summary: Returns a preview with a given id. tags: - Previews /api/cache/exists: get: callbacks: {} deprecated: true description: This endpoint checks if an artifact exists in the cache. It returns a 404 status code if the artifact does not exist. operationId: cacheArtifactExists parameters: - description: The category of the cache. It's used to differentiate between different types of caches. in: query name: cache_category required: false schema: $ref: "#/components/schemas/CacheCategory" - description: "The project identifier '{account_name}/{project_name}'." in: query name: project_id required: true schema: type: string x-struct: x-validate: - description: The hash that uniquely identifies the artifact in the cache. in: query name: hash required: true schema: type: string x-struct: x-validate: - description: The name of the artifact. in: query name: name required: true schema: type: string x-struct: x-validate: responses: "200": content: application/json: schema: description: The artifact exists in the cache and can be downloaded properties: data: properties: {} type: object x-struct: x-validate: status: default: success enum: - success type: string x-struct: x-validate: title: CacheArtifactExistence type: object x-struct: x-validate: description: The artifact exists "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "402": content: application/json: schema: $ref: "#/components/schemas/Error" description: The account has an invalid plan "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action "404": content: application/json: schema: properties: error: items: properties: code: default: not_found type: string x-struct: x-validate: message: type: string x-struct: x-validate: type: object x-struct: x-validate: type: array x-struct: x-validate: title: AbsentCacheArtifact type: object x-struct: x-validate: description: The artifact doesn't exist summary: It checks if an artifact exists in the cache. tags: - Cache /api/projects/{account_handle}/{project_handle}/tokens/{id}: delete: callbacks: {} operationId: revokeProjectToken parameters: - description: The account handle. in: path name: account_handle required: true schema: type: string x-struct: x-validate: - description: The project handle. in: path name: project_handle required: true schema: type: string x-struct: x-validate: - description: The ID of the project token in: path name: id required: true schema: type: string x-struct: x-validate: responses: "204": description: The project token was revoked "400": content: application/json: schema: $ref: "#/components/schemas/Error" description: The provided token ID is not valid "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: The project token was not found summary: Revokes a project token. tags: - Project tokens /api/projects/{account_handle}/{project_handle}: get: callbacks: {} operationId: showProject parameters: - description: The name of the account that the project belongs to. in: path name: account_handle required: true schema: type: string x-struct: x-validate: - description: The name of the project to show in: path name: project_handle required: true schema: type: string x-struct: x-validate: responses: "200": content: application/json: schema: $ref: "#/components/schemas/Project" description: The project to show "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: The project was not found summary: Returns a project based on the handle. tags: - Projects put: callbacks: {} description: Updates a project with given parameters. operationId: updateProject parameters: - description: The handle of the project's account. in: path name: account_handle required: true schema: type: string x-struct: x-validate: - description: The handle of the project to update. in: path name: project_handle required: true schema: type: string x-struct: x-validate: requestBody: content: application/json: schema: properties: default_branch: description: The default branch for the project. type: string x-struct: x-validate: visibility: description: The visibility of the project. Public projects are visible to everyone, private projects are only visible to the project's members. enum: - public - private type: string x-struct: x-validate: type: object x-struct: x-validate: description: Project update params required: false responses: "200": content: application/json: schema: $ref: "#/components/schemas/Project" description: The updated project "400": content: application/json: schema: $ref: "#/components/schemas/Error" description: The request is invalid "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: The project with the given account and project handles was not found summary: Updates a project tags: - Projects /api/projects/{account_handle}/{project_handle}/runs: get: callbacks: {} operationId: listRuns parameters: - description: The handle of the account. in: path name: account_handle required: true schema: type: string x-struct: x-validate: - description: The handle of the project. in: path name: project_handle required: true schema: type: string x-struct: x-validate: - description: The name of the run. in: query name: name required: false schema: type: string x-struct: x-validate: - description: The git ref of the run. in: query name: git_ref required: false schema: type: string x-struct: x-validate: - description: The git branch of the run. in: query name: git_branch required: false schema: type: string x-struct: x-validate: - description: The git commit SHA of the run. in: query name: git_commit_sha required: false schema: type: string x-struct: x-validate: - description: "" in: query name: page_size required: false schema: default: 20 description: The maximum number of runs to return in a single page. maximum: 100 minimum: 1 title: RunsIndexPageSize type: integer x-struct: x-validate: - description: "" in: query name: page required: false schema: default: 1 description: The page number to return. minimum: 1 title: RunsIndexPage type: integer x-struct: x-validate: responses: "200": content: application/json: schema: properties: runs: items: $ref: "#/components/schemas/Run" type: array x-struct: x-validate: required: - runs type: object x-struct: x-validate: description: List of runs "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: You don't have permission to access this resource summary: List runs associated with a given project. tags: - Runs post: callbacks: {} operationId: createRun parameters: - description: The handle of the project's account. in: path name: account_handle required: true schema: type: string x-struct: x-validate: - description: The handle of the project to create a build for. in: path name: project_handle required: true schema: type: string x-struct: x-validate: requestBody: content: application/json: schema: description: Parameters to create a single run. oneOf: - properties: cacheable_tasks: description: Cacheable tasks associated with the build run. items: properties: cas_output_node_ids: description: Array of CAS output node IDs associated with this cacheable task. items: type: string x-struct: x-validate: type: array x-struct: x-validate: description: description: Optional description of the cacheable task. type: string x-struct: x-validate: key: description: The cache key of the task. type: string x-struct: x-validate: read_duration: description: The duration in milliseconds for reading from cache. type: number x-struct: x-validate: status: description: The cache status of the task. enum: - hit_local - hit_remote - miss type: string x-struct: x-validate: type: description: The type of cacheable task. enum: - clang - swift type: string x-struct: x-validate: write_duration: description: The duration in milliseconds for writing to cache. type: number x-struct: x-validate: required: - type - status - key type: object x-struct: x-validate: type: array x-struct: x-validate: cas_outputs: description: CAS output operations associated with the build run. items: properties: checksum: description: The checksum of the CAS object. type: string x-struct: x-validate: compressed_size: description: The compressed size of the CAS object in bytes. type: integer x-struct: x-validate: duration: description: The duration of the CAS operation in milliseconds. type: number x-struct: x-validate: node_id: description: The CAS node identifier. type: string x-struct: x-validate: operation: description: The type of CAS operation. enum: - download - upload type: string x-struct: x-validate: size: description: The size of the CAS object in bytes. type: integer x-struct: x-validate: type: description: The type of the CAS output file. enum: - swift - sil - sib - image - dSYM - dependencies - emit-module-dependencies - autolink - swiftmodule - swiftdoc - swiftinterface - object - ast-dump - raw-sil - raw-sib - raw-llvm-ir - llvm-ir - llvm-bc - private-swiftinterface - package-swiftinterface - objc-header - swift-dependencies - dependency-scanner-cache - json-dependencies - json-target-info - json-supported-features - json-module-artifacts - imported-modules - module-trace - index-data - index-unit-output-path - yaml-opt-record - bitstream-opt-record - diagnostics - emit-module-diagnostics - dependency-scan-diagnostics - api-baseline-json - abi-baseline-json - const-values - api-descriptor-json - swift-module-summary - module-semantic-info - cached-diagnostics - json-supported-swift-features - modulemap - pch - pcm - tbd - remap - localization-strings - clang-header - swiftsourceinfo - assembly - unknown type: string x-struct: x-validate: required: - node_id - checksum - size - duration - compressed_size - operation type: object x-struct: x-validate: type: array x-struct: x-validate: category: description: The category of the build run, can be clean or incremental. enum: - clean - incremental type: string x-struct: x-validate: ci_host: description: The CI host URL (optional, for self-hosted instances). type: string x-struct: x-validate: ci_project_handle: description: "The CI project handle (e.g., 'owner/repo' for GitHub, project path for GitLab)." type: string x-struct: x-validate: ci_provider: description: The CI provider. enum: - github - gitlab - bitrise - circleci - buildkite - codemagic type: string x-struct: x-validate: ci_run_id: description: The CI run identifier (e.g., GitHub Actions run ID, GitLab pipeline ID). type: string x-struct: x-validate: configuration: description: The build configuration (e.g., Debug, Release). type: string x-struct: x-validate: duration: description: Duration of the run in milliseconds. type: integer x-struct: x-validate: files: description: Compiled files associated with the build run. items: properties: compilation_duration: description: The duration of the compilation for the file in milliseconds. type: integer x-struct: x-validate: path: description: The file path where the issue occurred, relative to the project root. type: string x-struct: x-validate: project: description: The project name associated with the file. type: string x-struct: x-validate: target: description: The target name associated with the file. type: string x-struct: x-validate: type: description: The type of the file. enum: - swift - c type: string x-struct: x-validate: required: - type - target - project - path - compilation_duration type: object x-struct: x-validate: type: array x-struct: x-validate: git_branch: description: The git branch. type: string x-struct: x-validate: git_commit_sha: description: The commit SHA. type: string x-struct: x-validate: git_ref: description: The git reference. type: string x-struct: x-validate: git_remote_url_origin: description: The git remote URL origin. type: string x-struct: x-validate: id: description: UUID of a run generated by the system. type: string x-struct: x-validate: is_ci: description: Indicates if the run was executed on a Continuous Integration (CI) system. type: boolean x-struct: x-validate: issues: description: The build issues associated with the build run. items: properties: ending_column: description: The ending column number of the issue. type: integer x-struct: x-validate: ending_line: description: The ending line number of the issue. type: integer x-struct: x-validate: message: description: The detailed message of the issue. type: string x-struct: x-validate: path: description: The file path where the issue occurred, relative to the project root. type: string x-struct: x-validate: project: description: The project name associated with the issue. type: string x-struct: x-validate: signature: description: The signature of the issue. type: string x-struct: x-validate: starting_column: description: The starting column number of the issue. type: integer x-struct: x-validate: starting_line: description: The starting line number of the issue. type: integer x-struct: x-validate: step_type: description: The step type where the issue occurred, such as swift_compilation. enum: - c_compilation - swift_compilation - script_execution - create_static_library - linker - copy_swift_libs - compile_assets_catalog - compile_storyboard - write_auxiliary_file - link_storyboards - copy_resource_file - merge_swift_module - xib_compilation - swift_aggregated_compilation - precompile_bridging_header - other - validate_embedded_binary - validate type: string x-struct: x-validate: target: description: The target name associated with the issue. type: string x-struct: x-validate: title: description: The title of the build issue. type: string x-struct: x-validate: type: description: The type of the issue. enum: - warning - error type: string x-struct: x-validate: required: - type - target - project - title - signature - step_type - starting_line - ending_line - starting_column - ending_column type: object x-struct: x-validate: type: array x-struct: x-validate: macos_version: description: The version of macOS used during the run. type: string x-struct: x-validate: model_identifier: description: Identifier for the model where the run was executed, such as MacBookAir10,1. type: string x-struct: x-validate: scheme: description: The scheme used for the build. type: string x-struct: x-validate: status: description: The status of the build run. enum: - success - failure type: string x-struct: x-validate: targets: description: Targets with build metadata associated with the build run. items: properties: build_duration: description: The build duration for the target in milliseconds. type: integer x-struct: x-validate: compilation_duration: description: The duration of the compilation for the target in milliseconds. type: integer x-struct: x-validate: name: description: The target name. type: string x-struct: x-validate: project: description: The target's project name. type: string x-struct: x-validate: status: description: The status of the target's build. enum: - success - failure type: string x-struct: x-validate: required: - name - project - build_duration - compilation_duration - status type: object x-struct: x-validate: type: array x-struct: x-validate: type: description: "The type of the run, which is 'build' in this case." enum: - build type: string x-struct: x-validate: xcode_version: description: The version of Xcode used during the run. type: string x-struct: x-validate: required: - id - duration - is_ci title: BuildRun type: object x-struct: x-validate: - properties: build_run_id: description: The UUID of an associated build run. type: string x-struct: x-validate: ci_host: description: The CI host URL (optional, for self-hosted instances). type: string x-struct: x-validate: ci_project_handle: description: "The CI project handle (e.g., 'owner/repo' for GitHub, project path for GitLab)." type: string x-struct: x-validate: ci_provider: description: The CI provider. enum: - github - gitlab - bitrise - circleci - buildkite - codemagic type: string x-struct: x-validate: ci_run_id: description: The CI run identifier (e.g., GitHub Actions run ID, GitLab pipeline ID). type: string x-struct: x-validate: duration: description: Duration of the run in milliseconds. type: integer x-struct: x-validate: git_branch: description: The git branch. type: string x-struct: x-validate: git_commit_sha: description: The commit SHA. type: string x-struct: x-validate: git_ref: description: The git reference. type: string x-struct: x-validate: git_remote_url_origin: description: The git remote URL origin. type: string x-struct: x-validate: is_ci: description: Indicates if the run was executed on a Continuous Integration (CI) system. type: boolean x-struct: x-validate: macos_version: description: The version of macOS used during the run. type: string x-struct: x-validate: model_identifier: description: Identifier for the model where the run was executed, such as MacBookAir10,1. type: string x-struct: x-validate: scheme: description: The scheme used for the test run. type: string x-struct: x-validate: status: description: The status of the test run. enum: - success - failure - skipped type: string x-struct: x-validate: test_modules: description: The test modules associated with the test run. items: properties: duration: description: The duration of the test module in milliseconds. type: integer x-struct: x-validate: name: description: The name of the test module/target. type: string x-struct: x-validate: status: description: The status of the test module. enum: - success - failure type: string x-struct: x-validate: test_cases: description: The test cases within this module. items: properties: duration: description: The duration of the test case in milliseconds. type: integer x-struct: x-validate: failures: description: The failures that occurred in this test case. items: properties: issue_type: description: The type of issue that occurred. enum: - error_thrown - assertion_failure - issue_recorded type: string x-struct: x-validate: line_number: description: The line number where the failure occurred. type: integer x-struct: x-validate: message: description: The failure message. type: string x-struct: x-validate: path: description: The file path where the failure occurred, relative to the project root. type: string x-struct: x-validate: required: - line_number type: object x-struct: x-validate: type: array x-struct: x-validate: name: description: The name of the test case. type: string x-struct: x-validate: status: description: The status of the test case. enum: - success - failure - skipped type: string x-struct: x-validate: test_suite_name: description: The name of the test suite this test case belongs to (optional). type: string x-struct: x-validate: required: - name - status - duration type: object x-struct: x-validate: type: array x-struct: x-validate: test_suites: description: The test suites within this module. items: properties: duration: description: The duration of the test suite in milliseconds. type: integer x-struct: x-validate: name: description: The name of the test suite. type: string x-struct: x-validate: status: description: The status of the test suite. enum: - success - failure - skipped type: string x-struct: x-validate: required: - name - status - duration type: object x-struct: x-validate: type: array x-struct: x-validate: required: - name - status - duration type: object x-struct: x-validate: type: array x-struct: x-validate: type: description: "The type of the run, which is 'test' in this case." enum: - test type: string x-struct: x-validate: xcode_version: description: The version of Xcode used during the run. type: string x-struct: x-validate: required: - type - duration - test_modules - macos_version - is_ci title: TestRun type: object x-struct: x-validate: title: RunParams x-struct: x-validate: description: Run params required: false responses: "200": content: application/json: schema: oneOf: - $ref: "#/components/schemas/RunsBuild" - $ref: "#/components/schemas/RunsTest" x-struct: x-validate: description: The created run "400": content: application/json: schema: $ref: "#/components/schemas/Error" description: The request parameters are invalid "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to create a run "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: The project doesn't exist summary: Create a new run. tags: - Runs /api/organizations/{organization_name}/members/{user_name}: delete: callbacks: {} description: Removes a member with a given username from a given organization operationId: removeOrganizationMember parameters: - description: The name of the organization to remove the member from. in: path name: organization_name required: true schema: type: string x-struct: x-validate: - description: The name of the user to remove from the organization. in: path name: user_name required: true schema: type: string x-struct: x-validate: responses: "204": description: The member was removed "400": content: application/json: schema: $ref: "#/components/schemas/Error" description: The member could not be removed due to a validation error "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: The organization or the user with the given name was not found summary: Removes a member from an organization tags: - Organizations put: callbacks: {} description: Updates a member in a given organization operationId: updateOrganizationMember parameters: - description: The name of the organization to update the member in. in: path name: organization_name required: true schema: type: string x-struct: x-validate: - description: The name of the user to update in the organization. in: path name: user_name required: true schema: type: string x-struct: x-validate: requestBody: content: application/json: schema: properties: role: description: The role to update the member to enum: - admin - user type: string x-struct: x-validate: required: - role type: object x-struct: x-validate: description: Member update params required: false responses: "200": content: application/json: schema: $ref: "#/components/schemas/OrganizationMember" description: The member was updated "400": content: application/json: schema: $ref: "#/components/schemas/Error" description: The member could not be updated due to a validation error "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: The organization or the user with the given name was not found summary: Updates a member in an organization tags: - Organizations /api/projects/{account_handle}/{project_handle}/previews/{preview_id}/icons: post: callbacks: {} description: The endpoint uploads a preview icon. operationId: uploadPreviewIcon parameters: - description: The handle of the account. in: path name: account_handle required: true schema: type: string x-struct: x-validate: - description: The handle of the project. in: path name: project_handle required: true schema: type: string x-struct: x-validate: - description: The preview identifier. in: path name: preview_id required: true schema: type: string x-struct: x-validate: responses: "200": content: application/json: schema: $ref: "#/components/schemas/ArtifactUploadURL" description: The presigned upload URL "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: The project or preview doesn't exist summary: Uploads a preview icon. tags: - Previews /api/projects/{account_handle}/{project_handle}/previews/complete: post: callbacks: {} description: Given the upload ID and all the parts with their ETags, this endpoint completes the multipart upload. operationId: completePreviewsMultipartUpload parameters: - description: The handle of the account. in: path name: account_handle required: true schema: type: string x-struct: x-validate: - description: The handle of the project. in: path name: project_handle required: true schema: type: string x-struct: x-validate: requestBody: content: application/json: schema: description: The request body to complete the multipart upload of a preview. properties: app_build_id: description: The id of the app build. type: string x-struct: x-validate: multipart_upload_parts: $ref: "#/components/schemas/ArtifactMultipartUploadParts" preview_id: deprecated: true description: The id of the preview. type: string x-struct: x-validate: required: - multipart_upload_parts - preview_id type: object x-struct: x-validate: description: preview multipart upload completion required: false responses: "200": content: application/json: schema: $ref: "#/components/schemas/Preview" description: The upload has been completed "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: The project or preview doesn't exist summary: It completes a multi-part upload. tags: - Previews /api/projects/{id}: delete: callbacks: {} operationId: deleteProject parameters: - description: The id of the project to delete. in: path name: id required: true schema: type: integer x-struct: x-validate: responses: "204": description: The project was successfully deleted. "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: The project was not found summary: Deletes a project with a given id. tags: - Projects /api/accounts/{account_handle}: delete: callbacks: {} description: Deletes the account with the given handle. operationId: deleteAccount parameters: - description: The handle of the account to delete. in: path name: account_handle required: true schema: type: string x-struct: x-validate: responses: "204": description: The account was deleted "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: The account with the given handle was not found summary: Deletes an account tags: - Account patch: callbacks: {} description: Updates the given account operationId: updateAccount parameters: - description: The handle of the account. in: path name: account_handle required: true schema: type: string x-struct: x-validate: requestBody: content: application/json: schema: properties: handle: description: The new account handle. type: string x-struct: x-validate: type: object x-struct: x-validate: description: Change account required: false responses: "200": content: application/json: schema: $ref: "#/components/schemas/Account" description: Account successfully updated "400": content: application/json: schema: $ref: "#/components/schemas/ValidationError" description: Validation errors occurred "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to update your account. "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: You don't have permission to update this account. "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: An account with this handle was not found. summary: Update account tags: - Account /api/runs/{run_id}/complete_artifacts_uploads: put: callbacks: {} deprecated: true description: Given a run, it marks all artifact uploads as finished and does extra processing of a given command run, such as test flakiness detection. operationId: completeAnalyticsArtifactsUploads parameters: - description: The id of the run. in: path name: run_id required: true schema: type: string x-struct: x-validate: requestBody: content: application/json: schema: deprecated: true properties: {} type: object x-struct: x-validate: description: Extra metadata for the post-processing of a run. required: false responses: "204": description: The run artifact uploads were successfully finished "401": content: application/json: schema: $ref: "#/components/schemas/Error" description: You need to be authenticated to access this resource "403": content: application/json: schema: $ref: "#/components/schemas/Error" description: The authenticated subject is not authorized to perform this action "404": content: application/json: schema: $ref: "#/components/schemas/Error" description: The run doesn't exist summary: Completes artifacts uploads for a given run tags: - Analytics security: - authorization: [] - cookie: [] servers: - url: http://localhost:8080 variables: {} tags: []