class APIV1_HandshakeAnonymousAnswerSchema(BaseSchema): handshake = fields.CheckedConstant("answer", required=True) type = fields.EnumCheckedConstant(APIV1_HandshakeType.ANONYMOUS, required=True) client_api_version = ApiVersionField(required=True) organization_id = OrganizationIDField(required=True) # Cannot provide rvk during organization bootstrap rvk = fields.VerifyKey(missing=None)
class HandshakeInvitedAnswerSchema(BaseSchema): handshake = fields.CheckedConstant("answer", required=True) type = fields.EnumCheckedConstant(HandshakeType.INVITED, required=True) client_api_version = ApiVersionField(required=True) organization_id = OrganizationIDField(required=True) invitation_type = InvitationTypeField(required=True) token = fields.UUID(required=True)
class APIV1_HandshakeAuthenticatedAnswerSchema(BaseSchema): handshake = fields.CheckedConstant("answer", required=True) type = fields.EnumCheckedConstant(APIV1_HandshakeType.AUTHENTICATED, required=True) client_api_version = ApiVersionField(required=True) organization_id = OrganizationIDField(required=True) device_id = DeviceIDField(required=True) rvk = fields.VerifyKey(required=True) answer = fields.Bytes(required=True)
class APIV1_OrganizationStatusReqSchema(BaseReqSchema): organization_id = OrganizationIDField(required=True)
class APIV1_OrganizationCreateReqSchema(BaseReqSchema): organization_id = OrganizationIDField(required=True) expiration_date = fields.DateTime(allow_none=True, required=False)
class OrganizationBootstrapWebhookSchema(BaseSchema): organization_id = OrganizationIDField(required=True) device_id = DeviceIDField(required=True) device_label = fields.String(allow_none=True, required=True) human_email = fields.String(allow_none=True, required=True) human_label = fields.String(allow_none=True, required=True)