# Shared ## Domain Types ### Pagination Links - `PaginationLinks` Links to use for pagination - **self:** `string` URL of this page - **next:** `string` URL of the next page, if any - **prev:** `string` URL of the previous page, if any ### Result Set - `ResultSet` Result of executing an SQL statement. - **columns:** `Array` Names of columns. Names of columns can be defined using the `AS` keyword in SQL: ```sql SELECT author AS author, COUNT(*) AS count FROM books GROUP BY author ``` - **columnTypes:** `Array` Types of columns. The types are currently shown for types declared in a SQL table. For column types of function calls, for example, an empty string is returned. - **rows:** `Array>` Rows produced by the statement. - **rowsAffected:** `number` Number of rows that were affected by an UPDATE, INSERT or DELETE operation. This value is not specified for other SQL statements. - **lastInsertRowid:** `string | number | null` ROWID of the last inserted row. This value is not specified if the SQL statement was not an INSERT or if the table was not a ROWID table. - `string` - `number` ### User - `User` User object - **id:** `string` The ID of this user - **bio:** `string | null` The user’s biography, if they have provided one - **links:** `Links` - **self:** `string` URL of this user on this API - **profileImageUrl:** `string | null` URL that points to the user’s profile image, if one exists - **url:** `string` URL of this user’s profile on Val Town’s website - **username:** `string | null` The user’s handle that they chose for themselves. Does not include the @ symbol ### Val - `Val` A Val - **id:** `string` The id of the val - **author:** `Author` - **id:** `string` - **username:** `string | null` - **createdAt:** `string` - **description:** `string | null` - **imageUrl:** `string | null` The URL of this val's image - **links:** `Links` - **html:** `string` The URL of this resource on Val Town - **self:** `string` The URL of this resource on this API - **name:** `string` - **privacy:** `"public" | "unlisted" | "private"` This resource's privacy setting. Unlisted resources do not appear on profile pages or elsewhere, but you can link to them. - `"public"` - `"unlisted"` - `"private"`