# us.off-the-clock.listCalendarFeeds

> Published by [off-the-clock.us](https://lexicon.garden/identity/did:plc:tevv7zpavtjtsvqrrwwipobt)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.listCalendarFeeds)
- [Documentation](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.listCalendarFeeds/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.listCalendarFeeds/examples)

## Definitions

### `us.off-the-clock.listCalendarFeeds#calendarFeed`

**Type**: `object`

One calendar feed of the viewer's in one space: every event (all) or those they RSVP'd going or interested to (mine).

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `createdAt` | `string` (datetime) | Yes |  |
| `enabled` | `boolean` | Yes |  |
| `rotatedAt` | `string` (datetime) | No |  |
| `url` | `string` (uri) | Yes | <public URL>/calendar/<token>.ics; the same with webcal: subscribes. |
| `variant` | `string` | Yes |  |

### `us.off-the-clock.listCalendarFeeds`

**Type**: `query`

The viewer's two calendar feeds for one space they read, all and mine, created on first call. Each URL is a capability: anyone holding it reads that feed's events.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `space` | `string` | Yes | A pair's TID. |

#### Output

**Encoding**: `application/json`

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

#### Errors

- **InvalidRequest**
- **NotSpaceMember**

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "calendarFeed": {
      "description": "One calendar feed of the viewer's in one space: every event (all) or those they RSVP'd going or interested to (mine).",
      "properties": {
        "createdAt": {
          "format": "datetime",
          "type": "string"
        },
        "enabled": {
          "type": "boolean"
        },
        "rotatedAt": {
          "format": "datetime",
          "type": "string"
        },
        "url": {
          "description": "<public URL>/calendar/<token>.ics; the same with webcal: subscribes.",
          "format": "uri",
          "type": "string"
        },
        "variant": {
          "knownValues": [
            "all",
            "mine"
          ],
          "type": "string"
        }
      },
      "required": [
        "variant",
        "url",
        "enabled",
        "createdAt"
      ],
      "type": "object"
    },
    "main": {
      "description": "The viewer's two calendar feeds for one space they read, all and mine, created on first call. Each URL is a capability: anyone holding it reads that feed's events.",
      "errors": [
        {
          "name": "InvalidRequest"
        },
        {
          "name": "NotSpaceMember"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "feeds": {
              "items": {
                "ref": "#calendarFeed",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "feeds"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "space": {
            "description": "A pair's TID.",
            "type": "string"
          }
        },
        "required": [
          "space"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "us.off-the-clock.listCalendarFeeds",
  "lexicon": 1
}
```
