# social.nstar.public.declaration

> Published by [nstar.social](https://lexicon.garden/identity/did:web:nstar.social)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:web:nstar.social/social.nstar.public.declaration)
- [Documentation](https://lexicon.garden/lexicon/did:web:nstar.social/social.nstar.public.declaration/docs)
- [Examples](https://lexicon.garden/lexicon/did:web:nstar.social/social.nstar.public.declaration/examples)

## Definitions

### `social.nstar.public.declaration`

**Type**: `record`

A declaration of NorthStar Social account.

**Key**: `literal:self`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `service` | `array` | Yes |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `allowConnect` | `string` | Yes | Whom may request to connect. |

### `social.nstar.public.declaration#service`

**Type**: `object`

List of NorthStar Social services

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `id` | `string` | Yes | A unique identifier for the service -- a string conforming to the rules of [RFC3986] for URIs. |
| `type` | `string` | Yes | The type of service being defined. |
| `serviceEndpoint` | `string` | Yes | The URI where the service can be accessed -- a string conforming to the rules of [RFC3986] for URIs. |

## Raw Schema

```json
{
  "id": "social.nstar.public.declaration",
  "defs": {
    "main": {
      "key": "literal:self",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "service",
          "allowConnect",
          "createdAt"
        ],
        "properties": {
          "service": {
            "type": "array",
            "items": {
              "ref": "lex:social.nstar.actor.declaration#service",
              "type": "ref"
            },
            "maxLength": 10
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "allowConnect": {
            "type": "string",
            "description": "Whom may request to connect.",
            "knownValues": [
              "none",
              "all",
              "following"
            ]
          }
        }
      },
      "description": "A declaration of NorthStar Social account."
    },
    "service": {
      "type": "object",
      "required": [
        "id",
        "type",
        "serviceEndpoint"
      ],
      "properties": {
        "id": {
          "type": "string",
          "maxLength": 2000,
          "minLength": 1,
          "description": "A unique identifier for the service -- a string conforming to the rules of [RFC3986] for URIs."
        },
        "type": {
          "type": "string",
          "maxLength": 2000,
          "minLength": 1,
          "description": "The type of service being defined."
        },
        "serviceEndpoint": {
          "type": "string",
          "maxLength": 2000,
          "minLength": 1,
          "description": "The URI where the service can be accessed -- a string conforming to the rules of [RFC3986] for URIs."
        }
      },
      "description": "List of NorthStar Social services"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
