ai.newnal.illi.schedule.putEntry

Root or main admin creates or replaces a schedule entry for one or both parents (feature spec A-E04-18). Writes a profileScheduleActivities record in each named parent's repo (the same rkey when creating for both, and one group) with its provenance, and ILLI's scheduleExtra next to it; recomputes the occurrences. Category defaults (reminders, grade, template) are the app's; the server stores what it receives. A lunar yearly entry carries recurrenceRule RSCALE=DANGI;FREQ=YEARLY and the server resolves its dates.

Details · procedure
Kindprocedure
Authorityschedule.illi.newnal.ai
Commit rev3n2zzbam2ed2b
Indexed

Showing version bafyreibmn6lgocqhytxqnetstdh5ssen7s3vkxq325qcuem3dg33oocavq. Show the latest

cid bafyreibmn6lgocqhytxqnetstdh5ssen7s3vkxq325qcuem3dg33oocavq

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Root or main admin creates or replaces a schedule entry for one or both parents (feature spec A-E04-18). Writes a profileScheduleActivities record in each named parent's repo (the same rkey when creating for both, and one group) with its provenance, and ILLI's scheduleExtra next to it; recomputes the occurrences. Category defaults (reminders, grade, template) are the app's; the server stores what it receives. A lunar yearly entry carries recurrenceRule RSCALE=DANGI;FREQ=YEARLY and the server resolves its dates.",
      "errors": [
        {
          "name": "NotMember"
        },
        {
          "name": "NotAdmin"
        },
        {
          "name": "HomeNotFound"
        },
        {
          "name": "ParentNotLinked"
        },
        {
          "name": "InvalidRecord"
        },
        {
          "name": "RecordChanged"
        },
        {
          "name": "DelegationUnavailable"
        },
        {
          "name": "PdsUnavailable"
        },
        {
          "name": "RequestConflict"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "blank": {
              "maxGraphemes": 60,
              "maxLength": 600,
              "type": "string"
            },
            "category": {
              "ref": "ai.newnal.illi.schedule.defs#category",
              "type": "ref"
            },
            "clearImage": {
              "type": "boolean"
            },
            "description": {
              "maxGraphemes": 300,
              "maxLength": 3000,
              "type": "string"
            },
            "expectedCid": {
              "format": "cid",
              "type": "string"
            },
            "grade": {
              "ref": "ai.newnal.illi.schedule.defs#grade",
              "type": "ref"
            },
            "homeId": {
              "format": "tid",
              "type": "string"
            },
            "location": {
              "maxGraphemes": 100,
              "maxLength": 1000,
              "type": "string"
            },
            "recurrenceRule": {
              "maxLength": 256,
              "type": "string"
            },
            "relatedRecords": {
              "items": {
                "format": "at-uri",
                "type": "string"
              },
              "maxLength": 10,
              "type": "array"
            },
            "reminderTime": {
              "maxLength": 5,
              "type": "string"
            },
            "reminders": {
              "items": {
                "maxLength": 32,
                "type": "string"
              },
              "maxLength": 10,
              "type": "array"
            },
            "requestKey": {
              "description": "Idempotency key chosen by the client; a replay with the same key and input returns the first result.",
              "maxLength": 64,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9._:-]+$",
              "type": "string"
            },
            "rkey": {
              "description": "Present when replacing an existing entry.",
              "format": "record-key",
              "type": "string"
            },
            "slots": {
              "items": {
                "description": "The parent slot, 1 or 2.",
                "maximum": 2,
                "minimum": 1,
                "type": "integer"
              },
              "maxLength": 2,
              "minLength": 1,
              "type": "array"
            },
            "time": {
              "ref": "ai.newnal.illi.schedule.defs#time",
              "type": "ref"
            },
            "title": {
              "description": "The completed sentence shown on the device.",
              "maxGraphemes": 120,
              "maxLength": 1200,
              "type": "string"
            }
          },
          "required": [
            "homeId",
            "slots",
            "category",
            "blank",
            "title",
            "time",
            "reminders",
            "grade",
            "requestKey"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "entries": {
              "items": {
                "ref": "ai.newnal.illi.schedule.defs#entryView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "entries"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "ai.newnal.illi.schedule.putEntry",
  "lexicon": 1
}