# com.suibari.nagi.createKossoriPost

> Published by [suibari.com](https://lexicon.garden/identity/did:plc:uixgxpiqf4i63p6rgpu7ytmx)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:uixgxpiqf4i63p6rgpu7ytmx/com.suibari.nagi.createKossoriPost)
- [Documentation](https://lexicon.garden/lexicon/did:plc:uixgxpiqf4i63p6rgpu7ytmx/com.suibari.nagi.createKossoriPost/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:uixgxpiqf4i63p6rgpu7ytmx/com.suibari.nagi.createKossoriPost/examples)

## Definitions

### `com.suibari.nagi.createKossoriPost`

**Type**: `procedure`

こっそり投稿を作成する。本文は PDS レコードにせず AppView にのみ保存し、著者本人と botたん以外には返さない。URI は著者 DID を含まない AppView 発行の不透明なものになる。画像・リンクカード・チャンネル所属は扱わない。

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `text` | `string` | Yes |  |
| `langs` | `array` | No |  |
| `reply` | `ref` → `com.suibari.nagi.post#replyRef` | No | こっそりスレッドへの返信。ルートが自分のこっそり投稿でなければ拒否される。 |
| `facets` | `array` | No |  |
| `botSilent` | `boolean` | No |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `silentReply` | `boolean` | No | true の返信は直接の返信先へ通知しない。返信以外では効果を持たない。 |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cid` | `string` (cid) | Yes |  |
| `uri` | `string` (at-uri) | Yes |  |

#### Errors

- **AuthRequired**
- **InvalidRequest**
- **ReplyNotAllowed**: 他人のこっそりスレッドには返信できない。

## Raw Schema

```json
{
  "id": "com.suibari.nagi.createKossoriPost",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "text",
            "createdAt"
          ],
          "properties": {
            "text": {
              "type": "string",
              "maxLength": 30000,
              "maxGraphemes": 3000
            },
            "langs": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "language"
              },
              "maxLength": 3
            },
            "reply": {
              "ref": "com.suibari.nagi.post#replyRef",
              "type": "ref",
              "description": "こっそりスレッドへの返信。ルートが自分のこっそり投稿でなければ拒否される。"
            },
            "facets": {
              "type": "array",
              "items": {
                "ref": "app.bsky.richtext.facet",
                "type": "ref"
              }
            },
            "botSilent": {
              "type": "boolean"
            },
            "createdAt": {
              "type": "string",
              "format": "datetime"
            },
            "silentReply": {
              "type": "boolean",
              "description": "true の返信は直接の返信先へ通知しない。返信以外では効果を持たない。"
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "AuthRequired"
        },
        {
          "name": "InvalidRequest"
        },
        {
          "name": "ReplyNotAllowed",
          "description": "他人のこっそりスレッドには返信できない。"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "uri",
            "cid"
          ],
          "properties": {
            "cid": {
              "type": "string",
              "format": "cid"
            },
            "uri": {
              "type": "string",
              "format": "at-uri"
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "こっそり投稿を作成する。本文は PDS レコードにせず AppView にのみ保存し、著者本人と botたん以外には返さない。URI は著者 DID を含まない AppView 発行の不透明なものになる。画像・リンクカード・チャンネル所属は扱わない。"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
