# dev.knotless.awaitSpaceWrites

> The spaces written to since `cursor`, of the private repositories whose owners invited the caller (dev.knotless.inviteRunner), as their authorities told the appview (com.atproto.space.notifySpaceUpdate, while a credential the appview asked for registers it): nothing written in a space reaches the firehose. Answers as soon as there is one, or with none after a while, to be asked again from the cursor it gives. A write told of is only a reason to look: the caller reads the space itself, as a member. Requires a service token from the caller's PDS, audience the appview's DID, for this method.

- Kind: query
- Authority: knotless.dev
- Lexicon: 1
- Published by [lexicons.knotless.dev](https://lexicon.garden/identity/did:plc:yqsg7znbbhfmj3a2nrpnaerk), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.awaitSpaceWrites)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.awaitSpaceWrites/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.awaitSpaceWrites/analytics)

## Query (`dev.knotless.awaitSpaceWrites`)

Type: query · GET

### Parameters (query string)

- `cursor` (string): Where the last answer ended. With none, the answer says only where things are now.
  - Constraints: maxLength: 64

### Output (application/json)

- `cursor` (string, required): Where this answer ended: the cursor to ask from next.
  - Constraints: maxLength: 64
- `missed` (boolean): Set when `cursor` was none, or of no place the appview remembers, as after it restarted: any space may have been written to since.
- `writes` (array, required)
  - `items` (ref)
    - Reference: `#write`

## #write (`dev.knotless.awaitSpaceWrites#write`)

Type: object

A space written to.

### Properties

- `space` (string, required): The space, as `at://<owner>/space/dev.knotless.space/<name>`.
  - Constraints: maxLength: 512

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "The spaces written to since `cursor`, of the private repositories whose owners invited the caller (dev.knotless.inviteRunner), as their authorities told the appview (com.atproto.space.notifySpaceUpdate, while a credential the appview asked for registers it): nothing written in a space reaches the firehose. Answers as soon as there is one, or with none after a while, to be asked again from the cursor it gives. A write told of is only a reason to look: the caller reads the space itself, as a member. Requires a service token from the caller's PDS, audience the appview's DID, for this method.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "description": "Where this answer ended: the cursor to ask from next.",
              "maxLength": 64,
              "type": "string"
            },
            "missed": {
              "description": "Set when `cursor` was none, or of no place the appview remembers, as after it restarted: any space may have been written to since.",
              "type": "boolean"
            },
            "writes": {
              "items": {
                "ref": "#write",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "cursor",
            "writes"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "cursor": {
            "description": "Where the last answer ended. With none, the answer says only where things are now.",
            "maxLength": 64,
            "type": "string"
          }
        },
        "type": "params"
      },
      "type": "query"
    },
    "write": {
      "description": "A space written to.",
      "properties": {
        "space": {
          "description": "The space, as `at://<owner>/space/dev.knotless.space/<name>`.",
          "maxLength": 512,
          "type": "string"
        }
      },
      "required": [
        "space"
      ],
      "type": "object"
    }
  },
  "description": "A runner's ask of the appview for the private repositories written to, as soon as one is.",
  "id": "dev.knotless.awaitSpaceWrites",
  "lexicon": 1
}
```
