# fyi.opensocial.listTabShares

> Published by [lexicons.opensocial.fyi](https://lexicon.garden/identity/did:plc:2gqnilpksz2e7faj3bwvo6qc)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.listTabShares)
- [Documentation](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.listTabShares/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.listTabShares/examples)

## Definitions

### `fyi.opensocial.listTabShares`

**Type**: `query`

Where a tab you can see is shared as a template: within the group, with everyone from the group, and with everyone from you; each with its versions, and whether you may take one back.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `group` | `string` (did) | Yes |  |
| `tab` | `string` | Yes | The tab's namespace. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `shares` | `array` | Yes |  |

#### Errors

- **NotFound**
- **Forbidden**

### `fyi.opensocial.listTabShares#shareView`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `audience` | `string` | Yes | Where it's shared: group, the group's members space; everyone-as-group, the group's repo; everyone-as-me, your own repo. |
| `description` | `string` | Yes |  |
| `mayTakeBack` | `boolean` | Yes | Whether you may take back its latest version. |
| `name` | `string` | Yes | What it's called. |
| `uri` | `string` (at-uri) | Yes | Its fyi.opensocial.template. |
| `versions` | `array` | Yes | Every version, newest first. |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Where a tab you can see is shared as a template: within the group, with everyone from the group, and with everyone from you; each with its versions, and whether you may take one back.",
      "errors": [
        {
          "name": "NotFound"
        },
        {
          "name": "Forbidden"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "shares": {
              "items": {
                "ref": "#shareView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "shares"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "group": {
            "format": "did",
            "type": "string"
          },
          "tab": {
            "description": "The tab's namespace.",
            "maxLength": 13,
            "type": "string"
          }
        },
        "required": [
          "group",
          "tab"
        ],
        "type": "params"
      },
      "type": "query"
    },
    "shareView": {
      "properties": {
        "audience": {
          "description": "Where it's shared: group, the group's members space; everyone-as-group, the group's repo; everyone-as-me, your own repo.",
          "knownValues": [
            "group",
            "everyone-as-group",
            "everyone-as-me"
          ],
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "mayTakeBack": {
          "description": "Whether you may take back its latest version.",
          "type": "boolean"
        },
        "name": {
          "description": "What it's called.",
          "type": "string"
        },
        "uri": {
          "description": "Its fyi.opensocial.template.",
          "format": "at-uri",
          "type": "string"
        },
        "versions": {
          "description": "Every version, newest first.",
          "items": {
            "ref": "fyi.opensocial.listTemplates#versionView",
            "type": "ref"
          },
          "type": "array"
        }
      },
      "required": [
        "audience",
        "uri",
        "name",
        "description",
        "versions",
        "mayTakeBack"
      ],
      "type": "object"
    }
  },
  "id": "fyi.opensocial.listTabShares",
  "lexicon": 1
}
```
