At

 view release on metacpan or  search on metacpan

lib/At/Protocol/Handle.pm  view on Meta::CPAN

            require Carp;
            Carp::carp 'development or testing TLD used in handle: ' . $id;
            $warned = 1;
        }
        bless \$id, $class;
    }

    # Taken from https://github.com/bluesky-social/atproto/blob/main/packages/syntax/src/handle.ts
    # Handle constraints, in English:
    #  - must be a possible domain name
    #    - RFC-1035 is commonly referenced, but has been updated. eg, RFC-3696,
    #      section 2. and RFC-3986, section 3. can now have leading numbers (eg,
    #      4chan.org)
    #    - "labels" (sub-names) are made of ASCII letters, digits, hyphens
    #    - can not start or end with a hyphen
    #    - TLD (last component) should not start with a digit
    #    - can't end with a hyphen (can end with digit)
    #    - each segment must be between 1 and 63 characters (not including any periods)
    #    - overall length can't be more than 253 characters
    #    - separated by (ASCII) periods; does not start or end with period
    #    - case insensitive

share/lexicons/com/atproto/server/createAccount.json  view on Meta::CPAN

            "password": {
              "type": "string",
              "description": "Initial account password. May need to meet instance-specific password strength requirements."
            },
            "recoveryKey": {
              "type": "string",
              "description": "DID PLC rotation key (aka, recovery key) to be included in PLC creation operation."
            },
            "plcOp": {
              "type": "unknown",
              "description": "A signed DID PLC operation to be submitted as part of importing an existing account to this instance. NOTE: this optional field may be updated when full account migration is implemented."
            }
          }
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "description": "Account login session returned on successful account creation.",
          "required": ["accessJwt", "refreshJwt", "handle", "did"],

share/lexicons/com/atproto/sync/subscribeRepos.json  view on Meta::CPAN

        "blocks": {
          "type": "bytes",
          "description": "CAR file containing relevant blocks, as a diff since the previous repo state.",
          "maxLength": 1000000
        },
        "ops": {
          "type": "array",
          "items": {
            "type": "ref",
            "ref": "#repoOp",
            "description": "List of repo mutation operations in this commit (eg, records created, updated, or deleted)."
          },
          "maxLength": 200
        },
        "blobs": {
          "type": "array",
          "items": {
            "type": "cid-link",
            "description": "List of new blobs (by CID) referenced by records in this commit."
          }
        },
        "time": {
          "type": "string",
          "format": "datetime",
          "description": "Timestamp of when this message was originally broadcast."
        }
      }
    },
    "identity": {
      "type": "object",
      "description": "Represents a change to an account's identity. Could be an updated handle, signing key, or pds hosting endpoint. Serves as a prod to all downstream services to refresh their identity cache.",
      "required": ["seq", "did", "time"],
      "properties": {
        "seq": { "type": "integer" },
        "did": { "type": "string", "format": "did" },
        "time": { "type": "string", "format": "datetime" },
        "handle": {
          "type": "string",
          "format": "handle",
          "description": "The current handle for the account, or 'handle.invalid' if validation fails. This field is optional, might have been validated or passed-through from an upstream source. Semantics and behaviors for PDS vs Relay may evolve in...
        }

share/lexicons/tools/ozone/communication/defs.json  view on Meta::CPAN

  "defs": {
    "templateView": {
      "type": "object",
      "required": [
        "id",
        "name",
        "contentMarkdown",
        "disabled",
        "lastUpdatedBy",
        "createdAt",
        "updatedAt"
      ],
      "properties": {
        "id": { "type": "string" },
        "name": { "type": "string", "description": "Name of the template." },
        "subject": {
          "type": "string",
          "description": "Content of the template, can contain markdown and variable placeholders."
        },
        "contentMarkdown": {
          "type": "string",

share/lexicons/tools/ozone/communication/defs.json  view on Meta::CPAN

        },
        "disabled": { "type": "boolean" },
        "lang": {
          "type": "string",
          "format": "language",
          "description": "Message language."
        },
        "lastUpdatedBy": {
          "type": "string",
          "format": "did",
          "description": "DID of the user who last updated the template."
        },
        "createdAt": { "type": "string", "format": "datetime" },
        "updatedAt": { "type": "string", "format": "datetime" }
      }
    }
  }
}

share/lexicons/tools/ozone/communication/updateTemplate.json  view on Meta::CPAN

      "type": "procedure",
      "description": "Administrative action to update an existing communication template. Allows passing partial fields to patch specific fields only.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": ["id"],
          "properties": {
            "id": {
              "type": "string",
              "description": "ID of the template to be updated."
            },
            "name": {
              "type": "string",
              "description": "Name of the template."
            },
            "lang": {
              "type": "string",
              "format": "language",
              "description": "Message language."
            },
            "contentMarkdown": {
              "type": "string",
              "description": "Content of the template, markdown supported, can contain variable placeholders."
            },
            "subject": {
              "type": "string",
              "description": "Subject of the message, used in emails."
            },
            "updatedBy": {
              "type": "string",
              "format": "did",
              "description": "DID of the user who is updating the template."
            },
            "disabled": {
              "type": "boolean"
            }
          }
        }
      },

share/lexicons/tools/ozone/moderation/defs.json  view on Meta::CPAN

        "subjectBlobs": {
          "type": "array",
          "items": { "type": "ref", "ref": "#blobView" }
        },
        "createdBy": { "type": "string", "format": "did" },
        "createdAt": { "type": "string", "format": "datetime" }
      }
    },
    "subjectStatusView": {
      "type": "object",
      "required": ["id", "subject", "createdAt", "updatedAt", "reviewState"],
      "properties": {
        "id": { "type": "integer" },
        "subject": {
          "type": "union",
          "refs": [
            "com.atproto.admin.defs#repoRef",
            "com.atproto.repo.strongRef"
          ]
        },
        "hosting": {
          "type": "union",
          "refs": ["#accountHosting", "#recordHosting"]
        },
        "subjectBlobCids": {
          "type": "array",
          "items": { "type": "string", "format": "cid" }
        },
        "subjectRepoHandle": { "type": "string" },
        "updatedAt": {
          "type": "string",
          "format": "datetime",
          "description": "Timestamp referencing when the last update was made to the moderation status of the subject"
        },
        "createdAt": {
          "type": "string",
          "format": "datetime",
          "description": "Timestamp referencing the first moderation status impacting event was emitted on the subject"
        },
        "reviewState": {

share/lexicons/tools/ozone/moderation/defs.json  view on Meta::CPAN

        "status": {
          "type": "string",
          "knownValues": [
            "takendown",
            "suspended",
            "deleted",
            "deactivated",
            "unknown"
          ]
        },
        "updatedAt": {
          "type": "string",
          "format": "datetime"
        },
        "createdAt": {
          "type": "string",
          "format": "datetime"
        },
        "deletedAt": {
          "type": "string",
          "format": "datetime"

share/lexicons/tools/ozone/moderation/defs.json  view on Meta::CPAN

      }
    },
    "recordHosting": {
      "type": "object",
      "required": ["status"],
      "properties": {
        "status": {
          "type": "string",
          "knownValues": ["deleted", "unknown"]
        },
        "updatedAt": {
          "type": "string",
          "format": "datetime"
        },
        "createdAt": {
          "type": "string",
          "format": "datetime"
        },
        "deletedAt": {
          "type": "string",
          "format": "datetime"

share/lexicons/tools/ozone/moderation/queryStatuses.json  view on Meta::CPAN

            "description": "Search subjects where the associated record/account was deleted after a given timestamp"
          },
          "hostingDeletedBefore": {
            "type": "string",
            "format": "datetime",
            "description": "Search subjects where the associated record/account was deleted before a given timestamp"
          },
          "hostingUpdatedAfter": {
            "type": "string",
            "format": "datetime",
            "description": "Search subjects where the associated record/account was updated after a given timestamp"
          },
          "hostingUpdatedBefore": {
            "type": "string",
            "format": "datetime",
            "description": "Search subjects where the associated record/account was updated before a given timestamp"
          },
          "hostingStatuses": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Search subjects by the status of the associated record/account"
          },
          "reviewedBefore": {
            "type": "string",

share/lexicons/tools/ozone/set/defs.json  view on Meta::CPAN

        },
        "description": {
          "type": "string",
          "maxGraphemes": 1024,
          "maxLength": 10240
        }
      }
    },
    "setView": {
      "type": "object",
      "required": ["name", "setSize", "createdAt", "updatedAt"],
      "properties": {
        "name": {
          "type": "string",
          "minLength": 3,
          "maxLength": 128
        },
        "description": {
          "type": "string",
          "maxGraphemes": 1024,
          "maxLength": 10240
        },
        "setSize": {
          "type": "integer"
        },
        "createdAt": {
          "type": "string",
          "format": "datetime"
        },
        "updatedAt": {
          "type": "string",
          "format": "datetime"
        }
      }
    }
  }
}

share/lexicons/tools/ozone/set/querySets.json  view on Meta::CPAN

            "default": 50
          },
          "cursor": {
            "type": "string"
          },
          "namePrefix": {
            "type": "string"
          },
          "sortBy": {
            "type": "string",
            "enum": ["name", "createdAt", "updatedAt"],
            "default": "name"
          },
          "sortDirection": {
            "type": "string",
            "default": "asc",
            "enum": ["asc", "desc"],
            "description": "Defaults to ascending order of name field."
          }
        }
      },

share/lexicons/tools/ozone/setting/defs.json  view on Meta::CPAN

        },
        "description": {
          "type": "string",
          "maxGraphemes": 1024,
          "maxLength": 10240
        },
        "createdAt": {
          "type": "string",
          "format": "datetime"
        },
        "updatedAt": {
          "type": "string",
          "format": "datetime"
        },
        "managerRole": {
          "type": "string",
          "knownValues": [
            "tools.ozone.team.defs#roleModerator",
            "tools.ozone.team.defs#roleTriage",
            "tools.ozone.team.defs#roleAdmin"
          ]

share/lexicons/tools/ozone/team/defs.json  view on Meta::CPAN

      "type": "object",
      "required": ["did", "role"],
      "properties": {
        "did": { "type": "string", "format": "did" },
        "disabled": { "type": "boolean" },
        "profile": {
          "type": "ref",
          "ref": "app.bsky.actor.defs#profileViewDetailed"
        },
        "createdAt": { "type": "string", "format": "datetime" },
        "updatedAt": { "type": "string", "format": "datetime" },
        "lastUpdatedBy": { "type": "string" },
        "role": {
          "type": "string",
          "knownValues": ["#roleAdmin", "#roleModerator", "#roleTriage"]
        }
      }
    },
    "roleAdmin": {
      "type": "token",
      "description": "Admin role. Highest level of access, can perform all actions."

share/lexicons/tools/ozone/team/updateMember.json  view on Meta::CPAN

      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "ref",
          "ref": "tools.ozone.team.defs#member"
        }
      },
      "errors": [
        {
          "name": "MemberNotFound",
          "description": "The member being updated does not exist in the team"
        }
      ]
    }
  }
}



( run in 0.359 second using v1.01-cache-2.11-cpan-05444aca049 )