# net.nusno.gyoka.feed.defs

- Kind: defs
- Authority: feed.gyoka.nusno.net
- Lexicon: 1
- Published by [nusno.net](https://lexicon.garden/identity/did:plc:gjkxkrudpqumaiiytxodmpaj), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:gjkxkrudpqumaiiytxodmpaj/net.nusno.gyoka.feed.defs)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:gjkxkrudpqumaiiytxodmpaj/net.nusno.gyoka.feed.defs/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:gjkxkrudpqumaiiytxodmpaj/net.nusno.gyoka.feed.defs/analytics)

## #feedView (`net.nusno.gyoka.feed.defs#feedView`)

Type: object

A Gyoka feed entry.

### Properties

- `isActive` (boolean, required): Whether the feed is currently active.
- `langFilter` (boolean, required): Whether language filtering is enabled for the feed.
- `orderRevision` (integer, required): Current feed order revision.
  - Constraints: minimum: 0
- `uri` (string · at-uri, required): AT-URI of the feed generator record.

## #placement (`net.nusno.gyoka.feed.defs#placement`)

Type: object

### Properties

- `anchor` (string · at-uri): AT-URI of the anchor post. Required by before and after placements.
- `position` (string, required)
  - Constraints: enum: append | prepend | before | after

## #postInput (`net.nusno.gyoka.feed.defs#postInput`)

Type: object

### Properties

- `cid` (string · cid, required): CID of the post record.
- `indexedAt` (string · datetime): Timestamp recorded when the post is added. Defaults to the current time when omitted.
- `languages` (array): Optional language tags for the post. The wildcard '*' is accepted, and non-wildcard values are normalized to primary language subtags.
  - Constraints: maxLength: 5
  - `items` (string): A BCP-47 language tag or the wildcard '*'.
- `reason` (union): Reason for including the post in the feed skeleton.
  - One of (closed): `#skeletonReasonRepost`, `#skeletonReasonPin`
- `uri` (string · at-uri, required): AT-URI of the app.bsky.feed.post record to add.

## #postResult (`net.nusno.gyoka.feed.defs#postResult`)

Type: object

### Properties

- `action` (string, required)
  - Constraints: enum: created | updated | unchanged | failed | removed | notFound
- `error` (string): Error code for a failed item.
- `uri` (string · at-uri, required)

## #postView (`net.nusno.gyoka.feed.defs#postView`)

Type: object

### Properties

- `cid` (string · cid, required)
- `indexedAt` (string · datetime, required)
- `languages` (array, required)
  - `items` (string): Normalized primary language tag or '*'.
- `reason` (union)
  - One of (closed): `#skeletonReasonRepost`, `#skeletonReasonPin`
- `uri` (string · at-uri, required)

## #skeletonReasonPin (`net.nusno.gyoka.feed.defs#skeletonReasonPin`)

Type: object

### Properties


## #skeletonReasonRepost (`net.nusno.gyoka.feed.defs#skeletonReasonRepost`)

Type: object

### Properties

- `repost` (string · at-uri, required): AT-URI of the app.bsky.feed.repost record associated with this reason.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "feedView": {
      "description": "A Gyoka feed entry.",
      "properties": {
        "isActive": {
          "description": "Whether the feed is currently active.",
          "type": "boolean"
        },
        "langFilter": {
          "description": "Whether language filtering is enabled for the feed.",
          "type": "boolean"
        },
        "orderRevision": {
          "description": "Current feed order revision.",
          "minimum": 0,
          "type": "integer"
        },
        "uri": {
          "description": "AT-URI of the feed generator record.",
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri",
        "orderRevision",
        "langFilter",
        "isActive"
      ],
      "type": "object"
    },
    "placement": {
      "properties": {
        "anchor": {
          "description": "AT-URI of the anchor post. Required by before and after placements.",
          "format": "at-uri",
          "type": "string"
        },
        "position": {
          "enum": [
            "append",
            "prepend",
            "before",
            "after"
          ],
          "type": "string"
        }
      },
      "required": [
        "position"
      ],
      "type": "object"
    },
    "postInput": {
      "properties": {
        "cid": {
          "description": "CID of the post record.",
          "format": "cid",
          "type": "string"
        },
        "indexedAt": {
          "description": "Timestamp recorded when the post is added. Defaults to the current time when omitted.",
          "format": "datetime",
          "type": "string"
        },
        "languages": {
          "description": "Optional language tags for the post. The wildcard '*' is accepted, and non-wildcard values are normalized to primary language subtags.",
          "items": {
            "description": "A BCP-47 language tag or the wildcard '*'.",
            "type": "string"
          },
          "maxLength": 5,
          "type": "array"
        },
        "reason": {
          "closed": true,
          "description": "Reason for including the post in the feed skeleton.",
          "refs": [
            "#skeletonReasonRepost",
            "#skeletonReasonPin"
          ],
          "type": "union"
        },
        "uri": {
          "description": "AT-URI of the app.bsky.feed.post record to add.",
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri",
        "cid"
      ],
      "type": "object"
    },
    "postResult": {
      "properties": {
        "action": {
          "enum": [
            "created",
            "updated",
            "unchanged",
            "failed",
            "removed",
            "notFound"
          ],
          "type": "string"
        },
        "error": {
          "description": "Error code for a failed item.",
          "type": "string"
        },
        "uri": {
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri",
        "action"
      ],
      "type": "object"
    },
    "postView": {
      "properties": {
        "cid": {
          "format": "cid",
          "type": "string"
        },
        "indexedAt": {
          "format": "datetime",
          "type": "string"
        },
        "languages": {
          "items": {
            "description": "Normalized primary language tag or '*'.",
            "type": "string"
          },
          "type": "array"
        },
        "reason": {
          "closed": true,
          "refs": [
            "#skeletonReasonRepost",
            "#skeletonReasonPin"
          ],
          "type": "union"
        },
        "uri": {
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri",
        "cid",
        "languages",
        "indexedAt"
      ],
      "type": "object"
    },
    "skeletonReasonPin": {
      "properties": {},
      "type": "object"
    },
    "skeletonReasonRepost": {
      "properties": {
        "repost": {
          "description": "AT-URI of the app.bsky.feed.repost record associated with this reason.",
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "repost"
      ],
      "type": "object"
    }
  },
  "id": "net.nusno.gyoka.feed.defs",
  "lexicon": 1
}
```
