# at.tensei.subscription

> Published by [tensei.at](https://lexicon.garden/identity/did:plc:7fk7ea7vlnlpzgy225x66vro)

✓ This is the authoritative definition for this NSID.

## Description

A subscription to a pipeline the subscriber owns (spec §1.1, §1.3).

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:7fk7ea7vlnlpzgy225x66vro/at.tensei.subscription)
- [Documentation](https://lexicon.garden/lexicon/did:plc:7fk7ea7vlnlpzgy225x66vro/at.tensei.subscription/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:7fk7ea7vlnlpzgy225x66vro/at.tensei.subscription/examples)

## Definitions

### `at.tensei.subscription`

**Type**: `record`

The subscriber reads `pipeline` as a feed. It names the subscriber's own pipeline, authored or adopted: adopting another person's pipeline copies it, with its mappings, into the subscriber's repo, and a subscription targets that copy, never the original author's configuration (§1.3). The lexicon language cannot state that the pipeline is in the subscriber's own repo, or that it is an at.tensei.pipeline record.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `createdAt` | `string` (datetime) | Yes |  |
| `pipeline` | `string` (at-uri) | Yes | at://<the subscriber's DID>/at.tensei.pipeline/<rkey>. Not pinned to a CID: a subscription follows the subscriber's own edits to their pipeline. |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "The subscriber reads `pipeline` as a feed. It names the subscriber's own pipeline, authored or adopted: adopting another person's pipeline copies it, with its mappings, into the subscriber's repo, and a subscription targets that copy, never the original author's configuration (§1.3). The lexicon language cannot state that the pipeline is in the subscriber's own repo, or that it is an at.tensei.pipeline record.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "pipeline": {
            "description": "at://<the subscriber's DID>/at.tensei.pipeline/<rkey>. Not pinned to a CID: a subscription follows the subscriber's own edits to their pipeline.",
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [
          "pipeline",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "A subscription to a pipeline the subscriber owns (spec §1.1, §1.3).",
  "id": "at.tensei.subscription",
  "lexicon": 1
}
```
