{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trimble/json-schema/trimble-project-details-response-schema.json",
  "title": "ViewProjectDetailsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trimble-connect-core-v2-openapi.yml#/components/schemas/ProjectDetailsResponse",
  "required": [
    "id",
    "name",
    "rootId",
    "thumbnail",
    "location",
    "lastVisitedOn",
    "createdOn",
    "updatedOn",
    "modifiedOn",
    "createdBy",
    "updatedBy",
    "modifiedBy",
    "size",
    "filesCount",
    "foldersCount",
    "versionsCount",
    "usersCount",
    "description",
    "startDate",
    "endDate",
    "access"
  ],
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Project Identifier"
    },
    "name": {
      "type": "string",
      "description": "Name of the project"
    },
    "crs": {
      "$ref": "#/$defs/Crs"
    },
    "rootId": {
      "type": "string",
      "description": "Identifier of root folder for the project"
    },
    "thumbnail": {
      "type": "string",
      "description": "URL to fetch the thumbnail of the project (if exists)"
    },
    "address": {
      "$ref": "#/$defs/Address"
    },
    "location": {
      "type": "string",
      "description": "Name of the region the project is hosted on"
    },
    "lastVisitedOn": {
      "type": "string",
      "description": "(timestamp) An ISO8601 date when the user last visited the project"
    },
    "modifiedOn": {
      "type": "string",
      "description": "(timestamp) An ISO8601 date when the Project was modified"
    },
    "createdOn": {
      "type": "string",
      "description": "(timestamp) An ISO8601 date when the Project was created"
    },
    "updatedOn": {
      "type": "string",
      "description": "(timestamp) An ISO8601 date when the Project was updated"
    },
    "createdBy": {
      "$ref": "#/$defs/CreatedBy"
    },
    "modifiedBy": {
      "$ref": "#/$defs/ModifiedBy"
    },
    "updatedBy": {
      "$ref": "#/$defs/UpdatedBy"
    },
    "size": {
      "type": "integer",
      "format": "int32",
      "description": "Size of project in bytes"
    },
    "filesCount": {
      "type": "integer",
      "format": "int32",
      "description": "Count of Files in the project"
    },
    "foldersCount": {
      "type": "integer",
      "format": "int32",
      "description": "Count of Folders in the project"
    },
    "versionsCount": {
      "type": "integer",
      "format": "int32",
      "description": "Count of Versions - includes the number of files plus the revisions count of all files"
    },
    "usersCount": {
      "type": "integer",
      "format": "int32",
      "description": "Count of Users in the project"
    },
    "description": {
      "type": "string",
      "description": "Description of the project"
    },
    "startDate": {
      "type": "string",
      "description": "Start date of the project (timestamp)"
    },
    "endDate": {
      "type": "string",
      "description": "End date of the project (timestamp)"
    },
    "access": {
      "type": "string",
      "enum": [
        "FULL_ACCESS",
        "NO_ACCESS"
      ],
      "description": "Flag to indicate access state based on commerce status of the project in context of the current user"
    },
    "license": {
      "$ref": "#/$defs/License"
    }
  },
  "$defs": {
    "Accounts": {
      "title": "ProjectAccount",
      "description": "Project Account information about account-based access policies",
      "type": "object",
      "properties": {
        "accountId": {
          "type": "string"
        },
        "accountTRN": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "source": {
          "type": "string"
        },
        "adminPortalUrl": {
          "type": "string"
        },
        "primary": {
          "type": "boolean"
        },
        "policyType": {
          "type": "string"
        }
      }
    },
    "Address": {
      "title": "ProjectAddress",
      "description": "Text is the textual representation of the address. Geometry is the project boundary as an array of lat, long coordinates (either a single point or a closed polygon).",
      "type": "object",
      "properties": {
        "text": {
          "type": "string"
        },
        "geometry": {
          "type": "string"
        }
      }
    },
    "Company": {
      "title": "Company",
      "required": [
        "name",
        "website",
        "image",
        "role",
        "createdOn",
        "modifiedOn",
        "createdBy",
        "modifiedBy"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "website": {
          "type": "string"
        },
        "image": {
          "type": "string"
        },
        "role": {
          "type": "string"
        },
        "createdOn": {
          "type": "string"
        },
        "modifiedOn": {
          "type": "string"
        },
        "createdBy": {
          "$ref": "#/$defs/CreatedBy"
        },
        "modifiedBy": {
          "$ref": "#/$defs/ModifiedBy"
        }
      }
    },
    "CreatedBy": {
      "title": "CreatedBy",
      "required": [
        "id",
        "firstName",
        "lastName",
        "email",
        "status"
      ],
      "type": "object",
      "description": "User details of who created this object",
      "properties": {
        "id": {
          "type": "string",
          "description": "User identifier"
        },
        "tiduuid": {
          "type": "string",
          "description": "Trimble ID of the user"
        },
        "firstName": {
          "type": "string"
        },
        "lastName": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "description": "User status. User's status is PENDING when a new user has been invited to a project and has not access Connect yet. Once the user has accessed Connect, the status becomes ACTIVE. REMOVED is a project specific status that is shown for users that have been removed from a project.",
          "enum": [
            "ACTIVE",
            "PENDING",
            "REMOVED"
          ]
        },
        "company": {
          "$ref": "#/$defs/Company"
        },
        "companies": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Company"
          }
        },
        "companyAdmin": {
          "type": "boolean"
        }
      }
    },
    "Crs": {
      "title": "ProjectCrs",
      "description": "CRS information of the project contains the fields - name and csib64. All the fields in the CRS are String and optional.",
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "csib64": {
          "type": "string"
        }
      }
    },
    "License": {
      "title": "LicenseDetails",
      "description": "Information about the license the project is associated with. An empty object for “license” property indicates that the project does not have any license mapped with it in ECom Enforcement rules",
      "required": [
        "id",
        "subscriptionId",
        "orgName",
        "ownerId",
        "accounts",
        "ecomSource",
        "type",
        "sku",
        "name",
        "skuType",
        "description",
        "maxProjects",
        "maxStorage",
        "maxInvites",
        "maxCollaborators",
        "maxUsers",
        "maxForms",
        "mrp",
        "statusShare",
        "usedProjects",
        "usedStorage",
        "usedInvites",
        "upgradeLink",
        "ecomAdminPortalUrl"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "subscriptionId": {
          "type": "string"
        },
        "orgName": {
          "type": "string"
        },
        "ownerId": {
          "type": "string"
        },
        "accounts": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Accounts"
          }
        },
        "ecomSource": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "sku": {
          "type": "string"
        },
        "skuType": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "maxProjects": {
          "type": "integer",
          "format": "int32"
        },
        "maxStorage": {
          "type": "integer",
          "format": "int32"
        },
        "maxInvites": {
          "type": "integer",
          "format": "int32"
        },
        "maxCollaborators": {
          "type": "integer",
          "format": "int32"
        },
        "maxUsers": {
          "type": "integer",
          "format": "int32"
        },
        "maxForms": {
          "type": "integer",
          "format": "int32"
        },
        "mrp": {
          "type": "boolean"
        },
        "statusShare": {
          "type": "boolean"
        },
        "usedInvites": {
          "type": "integer",
          "format": "int32"
        },
        "usedProjects": {
          "type": "integer",
          "format": "int32"
        },
        "usedStorage": {
          "type": "integer",
          "format": "int32"
        },
        "upgradeLink": {
          "type": "string"
        },
        "ecomAdminPortalUrl": {
          "type": "string"
        }
      }
    },
    "ModifiedBy": {
      "title": "ModifiedBy",
      "required": [
        "id",
        "firstName",
        "lastName",
        "email",
        "status"
      ],
      "type": "object",
      "description": "User details of who modified this object recently",
      "properties": {
        "id": {
          "type": "string",
          "description": "User identifier"
        },
        "tiduuid": {
          "type": "string",
          "description": "Trimble ID of the user"
        },
        "firstName": {
          "type": "string"
        },
        "lastName": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "description": "User status. User's status is PENDING when a new user has been invited to a project and has not access Connect yet. Once the user has accessed Connect, the status becomes ACTIVE. REMOVED is a project specific status that is shown for users that have been removed from a project.",
          "enum": [
            "ACTIVE",
            "PENDING",
            "REMOVED"
          ]
        }
      }
    },
    "UpdatedBy": {
      "title": "UpdatedBy",
      "required": [
        "id",
        "firstName",
        "lastName",
        "email",
        "status"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "firstName": {
          "type": "string"
        },
        "lastName": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "status": {
          "type": "string"
        }
      }
    }
  }
}