# ai.newnal.illi.media.getTodayUploadCount

> Persisted photo originals on the current date in the family timezone, including pending/failed/cancelled media registration. Same-file duplicate uploads count once; videos and deleted originals are excluded. Includes remaining uploads to the ten-photo new-work condition.

- Kind: query
- Authority: media.illi.newnal.ai
- Lexicon: 1
- Published by [illi-service.newnal.id](https://lexicon.garden/identity/did:plc:uztm7bi2ce42dez3uu3qafro), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.media.getTodayUploadCount)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.media.getTodayUploadCount/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.media.getTodayUploadCount/analytics)

## Query (`ai.newnal.illi.media.getTodayUploadCount`)

Type: query · GET

### Parameters (query string)

- `homeId` (string · tid, required)

### Output (application/json)

- `accumulatedPhotoCount` (integer, required): Home-wide persisted photo originals by the completedPhotoCount rule without the date condition, including pending/failed media registration and processing. Independent of prior use.
  - Constraints: minimum: 0
- `completedPhotoCount` (integer, required)
  - Constraints: minimum: 0
- `localDate` (string, required)
  - Constraints: maxLength: 10
- `remainingPhotoCount` (integer, required)
  - Constraints: minimum: 0
- `requiredPhotoCount` (integer, required)
  - Constraints: const: 10
- `timezone` (string, required)

### Errors

- `NotMember`: No description in schema.
- `HomeNotFound`: No description in schema.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Persisted photo originals on the current date in the family timezone, including pending/failed/cancelled media registration. Same-file duplicate uploads count once; videos and deleted originals are excluded. Includes remaining uploads to the ten-photo new-work condition.",
      "errors": [
        {
          "name": "NotMember"
        },
        {
          "name": "HomeNotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "accumulatedPhotoCount": {
              "description": "Home-wide persisted photo originals by the completedPhotoCount rule without the date condition, including pending/failed media registration and processing. Independent of prior use.",
              "minimum": 0,
              "type": "integer"
            },
            "completedPhotoCount": {
              "minimum": 0,
              "type": "integer"
            },
            "localDate": {
              "maxLength": 10,
              "type": "string"
            },
            "remainingPhotoCount": {
              "minimum": 0,
              "type": "integer"
            },
            "requiredPhotoCount": {
              "const": 10,
              "type": "integer"
            },
            "timezone": {
              "type": "string"
            }
          },
          "required": [
            "localDate",
            "timezone",
            "completedPhotoCount",
            "requiredPhotoCount",
            "remainingPhotoCount",
            "accumulatedPhotoCount"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "homeId": {
            "format": "tid",
            "type": "string"
          }
        },
        "required": [
          "homeId"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "ai.newnal.illi.media.getTodayUploadCount",
  "lexicon": 1
}
```
